/* Classic RWS artwork with original CSS backs; provenance in docs/assets/tarot-rws.json. */
.tarot-section { background: #191524; color: #f4edde; border: 1px solid #51405e; border-radius: 24px; padding: clamp(20px,4vw,40px); margin: 24px 0; }
.tarot-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.tarot-heading h2 { color:#f5eddf; font-size:clamp(23px,3.4vw,34px); line-height:1.45; margin:10px 0; }
.tarot-kicker { font-size:11px; letter-spacing:.18em; color:#cba882; }
.tarot-seal { color:#cfad86; font-size:58px; }
.tarot-intro,.tarot-status { color:#c0b3c9; line-height:1.8; font-size:14px; }
.tarot-spread { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(8px,2vw,22px); margin:24px 0; }
.tarot-slot { min-width:0; text-align:center; }
.tarot-position { font-size:13px; color:#c5a580; letter-spacing:.12em; margin:0 0 13px; }
.tarot-card { position:relative; aspect-ratio: .62; min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px 8px; border:1px solid #8b7159; border-radius:15px; background:repeating-linear-gradient(45deg,transparent,transparent 21px,#c1a07812 22px,#c1a07812 23px),#221c2d; color:#d5b58f; overflow:hidden; }
.tarot-card:before { content:''; position:absolute; inset:9px; border:1px solid #977c5555; border-radius:8px; pointer-events:none; }
.tarot-emblem { font-size:clamp(34px,5vw,65px); line-height:1; display:block; }
.tarot-emblem.reversed { transform:rotate(180deg); }
.tarot-card.revealed { background:linear-gradient(160deg,#3a2c43,#211a2e); }
.tarot-card-number { font-size:10px; color:#bfa7c5; }
.tarot-card-name { font-size:clamp(11px,1.7vw,17px); color:#f4eadc; max-width:95%; overflow-wrap:anywhere; font-weight:500; line-height:1.6; }
.tarot-orientation { font-size:12px; padding:3px 11px; border:1px solid #977c5580; border-radius:20px; }
.tarot-flip { animation:tarot-reveal .55s both; animation-delay:var(--card-delay,0ms); }
@keyframes tarot-reveal { from { opacity:.2; transform:perspective(700px) rotateY(90deg); } to { opacity:1; transform:perspective(700px) rotateY(0); } }
.tarot-draw-button { display:flex; justify-content:center; gap:20px; width:100%; border:0; background:linear-gradient(110deg,#ba8168,#855268); color:white; cursor:pointer; padding:19px; border-radius:16px; font-size:17px; font-weight:600; }
.tarot-draw-button:disabled { opacity:.65; cursor:wait; }
.tarot-draw-button:focus-visible { outline:3px solid #e5c1a2; outline-offset:4px; }
.tarot-footnote { color:#a69bab; font-size:12px; line-height:1.8; }
.tarot-record-spread { background:#191524; padding:clamp(12px,2vw,24px); border-radius:20px; }
@media(max-width:480px) { .tarot-card { gap:9px; padding:12px 7px; border-radius:10px; } .tarot-card-number { font-size:9px; } .tarot-section { padding:18px 12px; } .tarot-heading h2 { font-size:24px; } .tarot-seal { display:none; } }
@media(prefers-reduced-motion:reduce) { .tarot-flip { animation:none; } }
:root {
  --paper: #f3efe5;
  --paper-deep: #e8e0d0;
  --ink: #132e2b;
  --ink-soft: #46605b;
  --forest: #123e38;
  --forest-2: #1f5a50;
  --mint: #c8ddd0;
  --lime: #d9e8a9;
  --amber: #d88943;
  --line: rgba(19, 46, 43, .16);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(34, 53, 47, .12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(216, 137, 67, .11), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.app-shell { min-height: 100vh; overflow: hidden; }
.section-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  width: min(1280px, calc(100% - 48px));
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 39px; height: 39px; border: 1.5px solid var(--ink); border-radius: 50%;
  position: relative; display: grid; place-items: center;
}
.brand-mark::after { content: ""; width: 4px; height: 4px; background: var(--amber); border-radius: 50%; }
.brand-mark i { position: absolute; width: 1px; height: 27px; background: var(--ink); left: 18px; top: 5px; transform-origin: center; }
.brand-mark i:nth-child(1) { transform: rotate(0deg); }
.brand-mark i:nth-child(2) { transform: rotate(60deg); }
.brand-mark i:nth-child(3) { transform: rotate(120deg); }
.brand strong { display: block; font-size: 18px; letter-spacing: .18em; line-height: 1; }
.brand small { display: block; color: var(--ink-soft); font-size: 11px; margin-top: 6px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.header-auth { display: flex; align-items: center; gap: 10px; margin-left: 28px; flex-shrink: 0; }
.header-auth-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 18px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: var(--paper); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.header-auth-button:hover { opacity: .85; }
.header-auth-button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.header-auth-button:disabled { opacity: .6; cursor: wait; }
.header-auth-state { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.main-nav a { color: var(--ink-soft); font-size: 14px; position: relative; padding: 10px 0; }
.main-nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: 2px; background: var(--amber); transition: right .25s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { right: 0; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 10px; color: var(--paper); background: var(--forest); font-size: 10px; }
.mobile-menu { display: none; border: 0; background: transparent; padding: 8px; }
.mobile-menu span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 85px; padding-top: 52px; padding-bottom: 70px; }
.eyebrow { margin: 0 0 24px; color: var(--forest-2); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--lime); }
.hero h1, .page-heading h1, .records-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5.1vw, 75px); font-weight: 500; line-height: 1.16; letter-spacing: -.045em; }
.hero h1 em, .page-heading h1 em { color: var(--amber); font-style: normal; }
.hero-lead { max-width: 570px; color: var(--ink-soft); font-size: 17px; line-height: 1.9; margin: 30px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.button { min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-weight: 650; font-size: 14px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--forest); box-shadow: 0 13px 24px rgba(18, 62, 56, .15); }
.button-primary:hover { background: #0b302c; box-shadow: 0 16px 30px rgba(18, 62, 56, .22); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.25); }
.button.small { min-height: 44px; padding: 0 18px; }
.micro-copy { color: #70807c; font-size: 12px; margin-top: 24px; }
.micro-copy span { color: var(--amber); margin-right: 6px; }

.reason-card { position: relative; min-height: 525px; padding: 27px 30px 30px; background: var(--forest); color: #fff; border-radius: 12px 90px 12px 12px; box-shadow: var(--shadow); overflow: hidden; }
.reason-card::before { content: ""; position: absolute; inset: auto -18% -20% auto; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.reason-head { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.78); font-size: 12px; letter-spacing: .08em; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217,232,169,.12); }
.signal-orbit { height: 235px; position: relative; }
.orbit { position: absolute; border: 1px solid rgba(217,232,169,.24); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-13deg); }
.orbit-one { width: 205px; height: 112px; }
.orbit-two { width: 135px; height: 205px; transform: translate(-50%, -50%) rotate(48deg); }
.orbit-center { position: absolute; width: 62px; height: 62px; display: grid; place-items: center; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lime); color: var(--forest); font-family: var(--serif); font-size: 25px; box-shadow: 0 0 45px rgba(217,232,169,.25); }
.orbit-node { position: absolute; width: 9px; height: 9px; border: 2px solid var(--lime); background: var(--forest); border-radius: 50%; }
.node-a { top: 27%; left: 31%; }.node-b { top: 61%; right: 25%; }.node-c { bottom: 17%; left: 45%; }
.reason-list { list-style: none; margin: 4px 0 0; padding: 0; position: relative; z-index: 1; }
.reason-list li { display: flex; gap: 17px; align-items: flex-start; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
.reason-list li > span { color: var(--lime); font-family: Georgia, serif; font-size: 12px; margin-top: 3px; }
.reason-list strong { display: block; font-size: 14px; margin-bottom: 6px; }
.reason-list small { color: rgba(255,255,255,.57); font-size: 12px; }

.product-section { display: grid; grid-template-columns: 320px 1fr; gap: 64px; padding-top: 112px; padding-bottom: 125px; }
.section-intro h2, .principle-copy h2 { margin: 0 0 26px; font-family: var(--serif); font-size: 43px; line-height: 1.25; font-weight: 500; letter-spacing: -.04em; }
.section-intro > p:last-child { color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { min-height: 390px; padding: 23px; border: 1px solid var(--line); border-radius: 8px 45px 8px 8px; background: rgba(255,253,248,.52); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, background .25s; }
.product-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(34, 53, 47, .10); background: var(--white); }
.product-card.featured { color: #fff; background: var(--forest); border-color: var(--forest); }
.card-number { align-self: flex-end; font: 12px Georgia, serif; color: var(--amber); }
.card-icon { width: 54px; height: 54px; margin: 28px 0 31px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 20px; opacity: .9; }
.card-kicker { margin: 0 0 8px; color: var(--amber); font-size: 11px; letter-spacing: .14em; }
.product-card h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.product-card > p:not(.card-kicker) { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.product-card.featured > p:not(.card-kicker) { color: rgba(255,255,255,.68); }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 19px; border-top: 1px solid currentColor; font-size: 13px; opacity: .75; }
.card-link b { font-size: 18px; font-weight: 400; }

.principle-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; margin-bottom: 110px; padding: 70px; border-radius: var(--radius-xl) var(--radius-xl) 110px var(--radius-xl); background: var(--forest); color: #fff; }
.principle-copy h2 { font-size: 44px; }
.principle-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.principle-steps div { padding-top: 9px; }
.principle-steps span { color: var(--lime); font-family: Georgia, serif; font-style: italic; font-size: 30px; }
.principle-steps strong { display: block; margin: 31px 0 12px; font-family: var(--serif); font-size: 22px; }
.principle-steps p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.8; }

.form-page { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; padding-top: 72px; padding-bottom: 115px; }
.compact-page { grid-template-columns: .68fr 1.32fr; }
.form-page > * { min-width: 0; }
.page-heading { position: sticky; top: 28px; }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--ink-soft); font-size: 13px; }
.page-heading h1 { font-size: clamp(43px, 4.5vw, 66px); }
.page-heading > p:last-child { margin: 26px 0 0; max-width: 405px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.form-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,253,248,.7); box-shadow: 0 25px 70px rgba(34,53,47,.08); }
.form-section + .form-section { margin-top: 42px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-label > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--forest); font: italic 12px Georgia, serif; }
.section-label strong { display: block; font-family: var(--serif); font-size: 20px; }
.section-label small { color: var(--ink-soft); display: block; margin-top: 5px; font-size: 11px; }
.field { display: block; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 12px; font-weight: 650; }
.field > span em { color: #83908d; font-style: normal; font-weight: 400; }
.field textarea, .field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: 0; color: var(--ink); background: var(--white); transition: border .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 104px; padding: 16px; line-height: 1.7; }
.field input, .field select { height: 50px; padding: 0 14px; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea:focus, .field input:focus, .field select:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(31,90,80,.09); }
.field textarea::placeholder, .field input::placeholder { color: #9ea8a5; }
.field-hint { display: flex; justify-content: space-between; margin-top: 8px; color: #7d8b87; font-size: 10px; font-weight: 400; }
.field-hint b { font-weight: 400; }.field-hint i { font-style: normal; }
.choice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.choice-row label { cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label span { height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: var(--white); font-size: 12px; transition: all .2s; }
.choice-row input:checked + span { color: #fff; border-color: var(--forest); background: var(--forest); box-shadow: 0 8px 18px rgba(18,62,56,.12); }
.choice-row input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.method-field { margin-bottom: 30px; }
.method-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-choice-grid label { cursor: pointer; }
.method-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.method-choice-grid label > span { min-height: 106px; padding: 17px 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-soft); background: var(--white); transition: border .2s, background .2s, transform .2s; }
.method-choice-grid label:hover > span { transform: translateY(-2px); border-color: rgba(31,90,80,.42); }
.method-choice-grid b { color: var(--forest); font-family: var(--serif); font-size: 16px; }
.method-choice-grid small { margin-top: 8px; font-size: 10px; line-height: 1.55; }
.method-choice-grid input:checked + span { color: rgba(255,255,255,.72); border-color: var(--forest); background: var(--forest); box-shadow: 0 10px 24px rgba(18,62,56,.13); }
.method-choice-grid input:checked + span b { color: #fff; }
.method-choice-grid input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.suggestion-field { margin-bottom: 22px; }
.question-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.question-suggestion { min-height: 92px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: var(--white); text-align: left; cursor: pointer; transition: border .2s, background .2s, transform .2s; }
.question-suggestion:hover { transform: translateY(-2px); border-color: rgba(31,90,80,.45); }
.question-suggestion.active { border-color: var(--forest); background: rgba(200,221,208,.34); box-shadow: 0 8px 18px rgba(18,62,56,.08); }
.question-suggestion strong { display: block; margin-bottom: 7px; color: var(--forest); font-size: 12px; }
.question-suggestion span { display: block; font-size: 10px; line-height: 1.55; }
.suggestion-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 12px; color: var(--ink-soft); background: var(--paper); font-size: 11px; }
.context-details { margin-top: -2px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,253,248,.48); }
.context-details summary { min-height: 50px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--forest-2); cursor: pointer; list-style: none; font-size: 12px; }
.context-details summary::-webkit-details-marker { display: none; }
.context-details summary small { color: #83908d; font-size: 10px; }
.context-details[open] summary { border-bottom: 1px solid var(--line); }
.context-options { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 14px 0; }
.context-option { padding: 7px 10px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: var(--white); cursor: pointer; font-size: 10px; }
.context-option.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.compact-field { margin: 0 !important; padding: 12px 14px 14px !important; }
.compact-field input { height: 44px; }
.location-search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.location-search-row input { min-width: 0; }
.location-search-button { min-width: 72px; border: 0; border-radius: 12px; color: #fff; background: var(--forest); cursor: pointer; font-size: 12px; }
.location-search-button:disabled, .location-current-button:disabled { cursor: wait; opacity: .65; }
.location-actions { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.location-actions small { color: #7d8b87; text-align: right; font-size: 9px; line-height: 1.45; }
.location-current-button { padding: 8px 0; border: 0; color: var(--forest-2); background: transparent; cursor: pointer; font-size: 11px; }
.location-results { margin-top: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 16px 36px rgba(34,53,47,.10); }
.location-result { width: 100%; min-height: 52px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.location-result:last-child { border-bottom: 0; }
.location-result:hover, .location-result:focus-visible { background: rgba(200,221,208,.28); outline: 0; }
.location-result strong { font-size: 11px; font-weight: 600; line-height: 1.5; }
.location-result small { flex: 0 0 auto; color: #83908d; font-size: 9px; }
.location-result-note { margin: 0; padding: 15px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.selected-location { margin-top: 7px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border-radius: 11px; color: var(--forest); background: rgba(200,221,208,.36); }
.selected-location span { flex: 0 0 auto; color: var(--forest-2); font-size: 9px; }
.selected-location strong { font-size: 11px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.gender-field { margin: 0; }
.choice-row.compact { grid-template-columns: 1fr 1fr; }
.privacy-note { display: flex; gap: 13px; margin-top: 5px; padding: 15px; border-radius: 13px; color: var(--ink-soft); background: rgba(200,221,208,.34); }
.privacy-note > span { color: var(--forest-2); font-size: 22px; }
.privacy-note p { margin: 0; font-size: 11px; line-height: 1.7; }
.privacy-note strong { color: var(--ink); display: block; margin-bottom: 2px; }
.dice-cast-button { width: 100%; padding: 0; overflow: hidden; border: 1px solid rgba(31,90,80,.25); border-radius: 18px; color: var(--ink); background: var(--white); text-align: left; cursor: pointer; box-shadow: 0 14px 35px rgba(31,90,80,.06); transition: transform .22s, border-color .22s, box-shadow .22s; }
.dice-cast-button:hover { transform: translateY(-2px); border-color: rgba(31,90,80,.48); box-shadow: 0 18px 42px rgba(31,90,80,.11); }
.dice-cast-button:focus-visible { outline: 3px solid rgba(197,115,52,.5); outline-offset: 3px; }
.dice-cast-button:disabled { cursor: wait; }
.dice-cast-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 0; }
.dice-cast-topline > span { display: flex; align-items: baseline; gap: 10px; }
.dice-cast-topline b { color: var(--forest); font-family: var(--serif); font-size: 15px; }
.dice-cast-topline small { color: var(--ink-soft); font-size: 10px; }
.dice-cast-topline em { padding: 5px 9px; border-radius: 100px; color: #8c4f20; background: #f7e6d3; font-size: 9px; font-style: normal; white-space: nowrap; }
.dice-cast-stage { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; padding: 25px 22px 24px; }
.dice-cast-item { min-width: 0; display: grid; justify-items: center; text-align: center; }
.dice-cast-face { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 12px; clip-path: polygon(27% 0,73% 0,100% 27%,100% 73%,73% 100%,27% 100%,0 73%,0 27%); color: var(--lime); background: var(--forest); font: 29px Georgia, serif; box-shadow: inset 0 0 0 6px rgba(255,255,255,.08); transform: rotate(0deg); transition: transform .32s cubic-bezier(.2,.8,.2,1), background .25s; }
.dice-cast-item small { color: var(--ink-soft); font-size: 9px; line-height: 1.45; }
.dice-cast-item strong { min-height: 21px; margin-top: 5px; font-family: var(--serif); font-size: 14px; }
.dice-cast-join { color: var(--amber); font: 17px Georgia, serif; }
.dice-cast-action { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; color: #fff; background: var(--forest); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.dice-cast-action .button-loader { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.dice-cast-button.loading .button-loader { display: block; }
.dice-cast-button.loading .button-arrow { display: none; }
.dice-cast-button.rolling .dice-cast-face { animation: dice-tumble .48s cubic-bezier(.3,.7,.4,1) infinite alternate; background: var(--forest-2); }
.dice-cast-button.rolling .dice-cast-item:nth-child(3) .dice-cast-face { animation-delay: -.16s; }
.dice-cast-button.rolling .dice-cast-item:nth-child(5) .dice-cast-face { animation-delay: -.31s; }
.dice-cast-button.landed { border-color: rgba(197,115,52,.48); box-shadow: 0 18px 42px rgba(197,115,52,.12); }
.dice-cast-button.landed .dice-cast-face { background: #8c4f20; transform: rotate(3deg) scale(1.03); }
.dice-cast-button.landed .dice-cast-item:nth-child(3) .dice-cast-face { transform: rotate(-3deg) scale(1.03); }
.dice-cast-button.landed .dice-cast-action { background: #8c4f20; }
.dice-roll-status { min-height: 18px; margin: 12px 4px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; text-align: center; }
.dice-note { margin-top: 14px; }
@keyframes dice-tumble { from { transform: rotate(-10deg) translateY(-3px) scale(.94); } to { transform: rotate(12deg) translateY(4px) scale(1.05); } }
.form-error { margin: 20px 0 0; padding: 12px 14px; color: #7d2f20; background: #fae6df; border-radius: 10px; font-size: 12px; }
.submit-button { width: 100%; margin-top: 28px; border: 0; position: relative; }
.submit-button.loading { pointer-events: none; opacity: .84; }
.submit-button .button-loader { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button.loading .button-loader { display: block; }
.submit-button.loading .button-arrow { display: none; }
.submit-note { color: #87918e; text-align: center; font-size: 10px; line-height: 1.6; }
.profile-form { margin-bottom: 24px; }
.profile-result { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: var(--white); box-shadow: var(--shadow); animation: rise .45s ease both; }
.profile-report-head { padding: 32px 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; color: #fff; background: var(--forest); }
.profile-report-head .result-kicker { margin: 0; color: var(--lime); font-size: 10px; letter-spacing: .14em; }
.profile-report-head h2 { margin: 10px 0 9px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.profile-dna { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.7; }
.profile-copy { flex: 0 0 auto; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); }
.profile-copy:hover { background: rgba(255,255,255,.08); }
.profile-result > .demo-warning { margin: 22px 36px 0; }
.profile-report-document { min-width: 0; max-width: 100%; padding: 18px 48px 44px; overflow-wrap: anywhere; }
.profile-report-head > div { min-width: 0; overflow-wrap: anywhere; }
.profile-note { overflow-wrap: anywhere; }
.profile-report-document h1 { margin: 34px 0 18px; font-family: var(--serif); font-size: 31px; font-weight: 500; }
.profile-report-document h2 { margin: 38px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--forest); }
.profile-report-document h3 { margin: 28px 0 12px; font-size: 16px; color: var(--forest-2); }
.profile-report-document p, .profile-report-document li { color: var(--ink-soft); font-size: 13px; line-height: 1.95; }
.profile-report-document p { margin: 12px 0; }
.profile-report-document ul, .profile-report-document ol { margin: 12px 0; padding-left: 24px; }
.profile-report-document li { margin: 7px 0; padding-left: 3px; }
.profile-report-document strong { color: var(--ink); }
.profile-report-document blockquote { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; color: var(--forest); background: var(--paper); font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.profile-report-document hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.profile-table-wrap { width: 100%; max-width: 100%; margin: 18px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.profile-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.profile-table th, .profile-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; line-height: 1.65; }
.profile-table th:last-child, .profile-table td:last-child { border-right: 0; }
.profile-table tr:last-child td { border-bottom: 0; }
.profile-table th { color: var(--forest); background: var(--paper); font-weight: 600; }
.profile-table td { color: var(--ink-soft); }
.profile-note { margin: 0 !important; padding: 16px 36px 22px; border-top: 1px dashed var(--line); color: #87918e !important; font-size: 10px !important; line-height: 1.7; }

.records-page { padding-top: 70px; padding-bottom: 115px; }
.records-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.records-heading h1 { font-size: clamp(42px, 4.3vw, 62px); }
.records-layout { min-height: 650px; display: grid; grid-template-columns: 330px 1fr; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: rgba(255,253,248,.6); box-shadow: var(--shadow); }
.records-sidebar { padding: 28px 18px; border-right: 1px solid var(--line); background: rgba(232,224,208,.4); }
.records-sidebar-head { padding: 0 7px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.records-sidebar-head strong { font-family: var(--serif); font-size: 19px; }.records-sidebar-head small { color: #7f8b88; font-size: 9px; }
.records-list { display: grid; gap: 9px; }
.record-list-item { width: 100%; min-height: 110px; padding: 16px; border: 1px solid transparent; border-radius: 15px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: .2s; }
.record-list-item:hover { background: rgba(255,255,255,.5); }
.record-list-item.active { border-color: rgba(31,90,80,.33); background: var(--white); box-shadow: 0 10px 25px rgba(34,53,47,.06); }
.record-list-item strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.55; }
.record-list-item p { margin: 12px 0 0; display: flex; justify-content: space-between; gap: 10px; color: #7d8986; font-size: 10px; }
.record-detail { padding: 42px 48px 55px; min-width: 0; }
.empty-state { min-height: 520px; display: grid; place-items: center; text-align: center; }
.empty-state-symbol { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); font-size: 24px; color: var(--amber); }
.empty-state h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 23px; }.empty-state p { margin: 0 0 24px; color: var(--ink-soft); font-size: 12px; }
.record-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #75827f; font-size: 11px; }
.record-topline-actions { display: flex; gap: 8px; }
.text-button { border: 1px solid var(--line); border-radius: 100px; padding: 8px 12px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 11px; }
.text-button:hover { background: var(--paper-deep); }
.record-question { margin: 26px 0 10px; font-family: var(--serif); font-size: clamp(27px, 3vw, 39px); line-height: 1.4; font-weight: 500; }
.record-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 27px; }
.record-tag { padding: 6px 9px; border-radius: 100px; color: var(--forest-2); background: rgba(200,221,208,.42); font-size: 10px; }
.dice-result-strip { margin: 4px 0 24px; padding: 20px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(232,224,208,.35); }
.dice-result-face { min-width: 0; display: flex; align-items: center; gap: 12px; }
.dice-result-face span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--lime); background: var(--forest); font: 23px Georgia, serif; }
.dice-result-face strong { font-family: var(--serif); font-size: 13px; }
.dice-result-join { color: var(--amber); font: 15px Georgia, serif; }
.demo-warning { margin: 0 0 24px; padding: 12px 14px; border-left: 3px solid var(--amber); border-radius: 5px 10px 10px 5px; color: #7c4a22; background: #f7e6d3; font-size: 11px; line-height: 1.6; }
.result-block { margin-top: 15px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.result-block.conclusion { color: #fff; background: var(--forest); border-color: var(--forest); }
.result-block h3 { margin: 0 0 17px; color: var(--amber); font-size: 12px; letter-spacing: .12em; }
.result-block.conclusion h3 { color: var(--lime); }
.result-block p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 2; white-space: pre-line; }
.result-block > p + p { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.result-block.conclusion p { color: rgba(255,255,255,.88); font-size: 17px; }
.question-reframe { background: rgba(232,224,208,.35); }
.question-reframe .question-reframe-note { color: var(--ink-soft); font-family: var(--sans); font-size: 12px; line-height: 1.75; }
.question-reframe blockquote { margin: 16px 0 0; padding: 15px 17px; border-left: 3px solid var(--amber); border-radius: 0 11px 11px 0; color: var(--forest); background: var(--white); font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.formula-block { border-color: rgba(197,115,52,.32); background: #fffaf3; }
.formula-block p { color: var(--forest); font-size: 18px; line-height: 1.85; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evidence-item { padding: 17px; border-radius: 12px; background: var(--paper); }
.evidence-item small { color: var(--amber); font-size: 10px; }.evidence-item strong { display: block; margin: 7px 0; font-size: 13px; }.evidence-item p { font-family: var(--sans); font-size: 12px; line-height: 1.7; }
.growth-block { background: rgba(200,221,208,.18); }
.growth-block .growth-insight { font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.growth-block h4 { margin: 25px 0 8px; color: var(--forest); font-size: 12px; letter-spacing: .08em; }
.action-list { list-style: none; margin: 0; padding: 0; counter-reset: action; }
.action-list li { counter-increment: action; display: grid; grid-template-columns: 27px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.action-list li:last-child { border-bottom: 0; }.action-list li::before { content: counter(action, decimal-leading-zero); color: var(--amber); font: italic 11px Georgia, serif; }
.reminder-block { background: transparent; }
.reminder-list { margin: 0; padding-left: 19px; }
.reminder-list li { margin: 9px 0; padding-left: 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.reminder-list li::marker { color: var(--amber); }
.watch-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.watch-list li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); font-size: 11px; }
.uncertainty { background: transparent; }.uncertainty p { font-family: var(--sans); font-size: 12px; line-height: 1.8; }
.method-note { margin-top: 25px; padding-top: 20px; border-top: 1px dashed var(--line); color: #7d8986; font-size: 10px; line-height: 1.8; }
.storage-note { margin-top: 15px; color: #81908c; text-align: center; font-size: 10px; }
.mobile-detail-back { display: none; }

.site-footer { width: min(1280px, calc(100% - 48px)); margin: 0 auto; min-height: 145px; padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); }
.site-footer strong { color: var(--ink); font-size: 13px; }.site-footer p { margin: 8px 0 0; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); padding: 12px 17px; border-radius: 100px; color: #fff; background: var(--forest); box-shadow: var(--shadow); font-size: 12px; opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.reveal { animation: rise .65s cubic-bezier(.21,.8,.37,1) both; }
.delay-1 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 42px; }
  .product-section { grid-template-columns: 1fr; }
  .section-intro { max-width: 630px; }
  .form-page { grid-template-columns: 1fr; gap: 42px; }
  .page-heading { position: static; max-width: 720px; }
  .form-column, .form-card { max-width: 780px; width: 100%; }
  .principle-section { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 760px) {
  .section-wrap, .site-header, .site-footer { width: min(100% - 30px, 560px); }
  .site-header { height: 74px; }
  .brand strong { font-size: 16px; }.brand small { font-size: 9px; }.brand-mark { width: 34px; height: 34px; }.brand-mark i { height: 23px; left: 15px; }
  .mobile-menu { display: block; margin-left: auto; }
  .header-auth { margin-left: 10px; }
  .header-auth-button { min-height: 40px; padding: 8px 12px; }
  .header-auth-state { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 67px; display: none; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { padding: 13px; }.main-nav a::after { display: none; }
  .hero { display: block; padding-top: 60px; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(44px, 14vw, 63px); }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .reason-card { margin-top: 55px; min-height: 500px; padding: 24px; border-radius: 10px 65px 10px 10px; }
  .product-section { padding-top: 78px; padding-bottom: 78px; gap: 35px; }
  .section-intro h2, .principle-copy h2 { font-size: 35px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 310px; }
  .card-icon { margin: 15px 0 24px; }
  .principle-section { width: calc(100% - 20px); margin-bottom: 70px; padding: 45px 27px; border-radius: 27px 27px 68px 27px; }
  .principle-steps { grid-template-columns: 1fr; gap: 27px; }
  .principle-steps div { display: grid; grid-template-columns: 42px 1fr; gap: 0 12px; }
  .principle-steps strong { margin: 7px 0 6px; }.principle-steps p { grid-column: 2; }
  .form-page { padding-top: 42px; padding-bottom: 80px; }
  .back-link { margin-bottom: 34px; }.page-heading h1 { font-size: 44px; }.page-heading > p:last-child { font-size: 13px; }
  .form-card { padding: 25px 18px; border-radius: 24px; }
  .choice-row { gap: 6px; }.choice-row label span { font-size: 11px; }
  .question-suggestions { grid-template-columns: 1fr; }
  .question-suggestion { min-height: 76px; }
  .method-choice-grid { grid-template-columns: 1fr; }
  .method-choice-grid label > span { min-height: 88px; }
  .dice-cast-topline { padding: 15px 15px 0; }
  .dice-cast-topline > span { display: grid; gap: 3px; }
  .dice-cast-stage { gap: 6px; padding: 22px 10px 20px; }
  .dice-cast-face { width: 53px; height: 53px; font-size: 24px; }
  .dice-cast-item small { font-size: 8px; }
  .dice-cast-item strong { font-size: 12px; }
  .location-actions { align-items: flex-start; flex-direction: column; gap: 0; }
  .location-actions small { text-align: left; }
  .field-grid { grid-template-columns: 1fr; }.gender-field { margin-bottom: 24px; }
  .profile-report-head { padding: 25px 20px; flex-direction: column; }
  .profile-report-head h2 { font-size: 25px; }
  .profile-report-document { padding: 8px 20px 32px; }
  .profile-report-document h2 { margin-top: 32px; font-size: 21px; }
  .profile-result > .demo-warning { margin: 18px 20px 0; }
  .profile-note { padding-inline: 20px; }
  .records-page { padding-top: 44px; padding-bottom: 80px; }
  .records-heading { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .records-layout { min-height: 550px; display: block; border-radius: 24px; overflow: hidden; }
  .records-sidebar { min-height: 520px; border-right: 0; }
  .record-detail { display: none; padding: 22px 17px 40px; }
  .records-layout.detail-open .records-sidebar { display: none; }
  .records-layout.detail-open .record-detail { display: block; }
  .mobile-detail-back { display: inline-flex; margin-bottom: 18px; border: 0; padding: 0; color: var(--ink-soft); background: transparent; font-size: 12px; }
  .record-topline { align-items: flex-start; }.record-topline-actions { flex-direction: column; }
  .result-block { padding: 20px 17px; }.record-question { font-size: 27px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .formula-block p { font-size: 16px; }
  .dice-result-strip { gap: 7px; padding: 15px 10px; }
  .dice-result-face { justify-content: center; }
  .dice-result-face span { width: 42px; height: 42px; font-size: 20px; }
  .dice-result-face strong { display: none; }
  .site-footer { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dice-cast-button, .dice-cast-face { transition: none; }
  .dice-cast-button.rolling .dice-cast-face { animation: none; }
}

@media (max-width: 390px) {
  .hero-actions .button { width: 100%; }
  .form-card { padding-inline: 15px; }
  .records-heading h1 { font-size: 38px; }
}

/* Home: profile first, with two clearly described core entry points. */
.home-hero { min-height: 630px; grid-template-columns: 1.05fr 1fr; gap: 64px; padding-top: 58px; padding-bottom: 58px; }
.hero-slogan { margin: 20px 0 0; color: var(--ink-soft); font-family: Georgia, serif; font-size: 19px; letter-spacing: .035em; }
.home-hero .hero-lead { margin: 28px 0 0; font-size: 16px; }
.home-hero .hero-lead strong { color: var(--forest); font-weight: 650; }
.home-hero .hero-actions { gap: 12px; margin-top: 28px; }
.home-hero .micro-copy { line-height: 1.8; }
.home-features { min-width: 0; display: grid; gap: 16px; }
.home-features-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.home-features-heading p { margin: 8px 0 4px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.home-feature { display: block; min-width: 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px 38px 12px 12px; transition: transform .2s, box-shadow .2s; }
.home-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-feature:focus-visible, .home-hero .button:focus-visible, .home-records a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.home-feature-profile { background: var(--forest); color: var(--white); }
.home-feature-ask { background: var(--white); }
.home-feature-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 11px; letter-spacing: .1em; }
.home-feature-profile .home-feature-top { color: var(--lime); }
.home-feature-top > span:last-child { font-size: 22px; line-height: 1; }
.home-feature h3 { margin: 12px 0 10px; font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .04em; }
.home-feature > p { margin: 0; max-width: 380px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.home-feature-profile > p { color: #d7e3dd; }
.home-feature-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.home-feature-bottom > span { color: var(--ink-soft); font-size: 11px; }
.home-feature-bottom strong { font-size: 12px; font-weight: 600; }
.home-feature-bottom strong span { margin-left: 9px; }
.home-feature-profile .home-feature-bottom { border-color: rgba(255,255,255,.2); }
.home-feature-profile .home-feature-bottom > span { color: #c4d6cc; }
.home-records { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; margin-bottom: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-records strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.home-records p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.home-records .back-link { margin: 0; flex-shrink: 0; }
@media (max-width: 1020px) and (min-width: 761px) {
  .home-hero { gap: 30px; }
  .home-hero h1 { font-size: 54px; }
  .home-hero .hero-actions .button { padding: 0 17px; gap: 10px; }
  .desktop-break { display: none; }
}
@media (max-width: 760px) {
  .home-hero { min-height: 0; padding-top: 34px; padding-bottom: 30px; }
  .home-hero .eyebrow { margin-bottom: 20px; font-size: 11px; }
  .home-hero h1 { font-size: clamp(42px, 11.5vw, 60px); line-height: 1.2; }
  .hero-slogan { margin-top: 16px; font-size: 16px; }
  .home-hero .hero-lead { margin-top: 22px; font-size: 14px; line-height: 1.9; }
  .desktop-break { display: none; }
  .home-hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }
  .home-hero .hero-actions .button { width: 100%; padding: 0 10px; gap: 8px; font-size: 13px; }
  .home-hero .micro-copy { margin-top: 18px; font-size: 10px; }
  .home-features { margin-top: 32px; gap: 14px; }
  .home-feature { padding: 21px 22px; }
  .home-feature h3 { font-size: 30px; }
  .home-feature > p { font-size: 13px; }
  .home-records { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 36px; }
  .home-records strong { font-size: 19px; }
}

/* A single full-width empty state; populated records retain list/detail layout. */
.records-layout.is-empty { display: block; min-height: 440px; }
.records-layout.is-empty .records-sidebar { display: block; border-right: 0; background: transparent; }
.records-layout.is-empty .record-detail { display: none; }
.records-layout.is-empty .empty-state { min-height: 350px; padding: 24px 12px; }
.records-page .storage-note { max-width: 720px; margin: 18px auto 0; font-size: 12px; line-height: 1.8; }

/* Invisible choice inputs must not inherit the full-width text-field sizing. */
.field input[type="radio"] { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; }

/* Full, uncropped card artwork; captions remain upright for reversed cards. */
.tarot-card { width:100%; min-height:0; aspect-ratio:3/5; }
.tarot-card.revealed { display:block; padding:0; border:1px solid #c7ae82; border-radius:8px; background:#f3e7cc; box-shadow:0 8px 20px #0004; cursor:zoom-in; }
.tarot-card.revealed:before { display:none; }
.tarot-artwork { display:block; width:100%; height:100%; object-fit:contain; }
.tarot-artwork[hidden] { display:none; }
.tarot-artwork.reversed { transform:rotate(180deg); }
.tarot-card-name { display:block; max-width:100%; margin:12px 0 6px; font-size:clamp(12px,1.7vw,17px); }
.tarot-orientation { display:inline-block; font-size:11px; color:#dcc5a6; padding:2px 9px; }
.tarot-artwork-error { display:grid; height:100%; place-items:center; color:#5b472f; padding:8px; }
.tarot-card:focus-visible { outline:3px solid #edc58d; outline-offset:4px; }
.tarot-art-dialog { width:min(90vw,440px); max-height:94dvh; padding:18px; border:1px solid #a58a68; border-radius:18px; background:#211b2c; color:#f6ebd8; box-shadow:0 24px 100px #0008; }
.tarot-art-dialog::backdrop { background:#141820c9; backdrop-filter:blur(5px); }
.tarot-art-close { display:block; margin-left:auto; padding:10px 14px; border:1px solid #b69b7966; border-radius:24px; background:transparent; color:#f6ebd8; cursor:pointer; }
.tarot-art-dialog h2 { font-size:15px; text-align:center; line-height:1.6; color:inherit; margin:12px 0; }
.tarot-art-frame { width:min(100%,42dvh,360px); aspect-ratio:3/5; margin:auto; }
.tarot-art-frame img { border-radius:5px; }
/* Three faceted dice: celestial orbit, zodiac stars, and twelve house sectors. */
.dice-cast-stage { background:radial-gradient(ellipse at 50% 45%,#e6e0cf80,transparent 75%); }
.dice-cast-face { width:96px; height:96px; clip-path:none; background:transparent; box-shadow:none; filter:drop-shadow(0 9px 6px #17372c26); }
.dice-art { display:block; width:100%; height:100%; overflow:visible; }
.dice-cast-button.rolling .dice-cast-face, .dice-cast-button.landed .dice-cast-face { background:transparent; }
.dice-cast-button.landed .dice-cast-face { transform:scale(1.04); }
.dice-cast-button.landed .dice-cast-item:nth-child(3) .dice-cast-face { transform:scale(1.04); }
.dice-result-face { flex-direction:column; gap:8px; text-align:center; }
.dice-result-face .dice-result-art { width:78px; height:78px; background:transparent; border-radius:0; filter:drop-shadow(0 5px 4px #17372c20); }
.dice-result-face strong { display:block; line-height:1.5; }
.question-suggestion { position:relative; padding:16px 28px 16px 16px; }
.question-suggestion:after { content:'↗'; position:absolute; top:14px; right:12px; color:var(--amber); font-size:14px; }
.question-suggestion strong { font-size:13px; }
.question-suggestion span { font-size:12px; line-height:1.7; }
@media(max-width:480px) {
  .dice-cast-face { width:68px; height:68px; }
  .dice-result-face .dice-result-art { width:60px; height:60px; }
  .dice-result-face strong { display:block; font-size:11px; }
  .tarot-card-name { margin-top:9px; }
  .tarot-orientation { font-size:10px; padding:1px 7px; }
}

/* H5-20260916-02: light editorial homepage; decorative art is not a reading. */
body { background: #faf8f2; }
.site-header { width: min(1180px,calc(100% - 64px)); height: 112px; border-bottom: 0; gap: 28px; }
.site-header .brand strong { font-family: var(--serif); font-size: 28px; letter-spacing: .06em; }
.site-header .brand small { font-size: 10px; letter-spacing: .2em; margin-top: 9px; color: #64716a; }
.site-header .main-nav { margin-left: auto; gap: 30px; }
.login-placeholder { position: relative; color: var(--forest); border: 1px solid var(--forest); border-radius: 24px; padding: 7px 24px; background: transparent; font-size: 13px; opacity: 1; cursor: default; flex-shrink: 0; }
.login-soon { display: block; font-size: 9px; color: #64716a; margin-top: 2px; }
.editorial-home { --editorial-gold: #aa9064; }
.editorial-home .section-wrap { width: min(1180px,calc(100% - 64px)); }
.editorial-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-top: 26px; padding-bottom: 46px; border-bottom: 1px solid #52716a; }
.editorial-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(50px,6.2vw,82px); letter-spacing: .025em; line-height: 1.25; margin: 0; }
.editorial-hero h1 em { color: #b9672e; font-style: normal; }
.editorial-hero-copy > p { font-size: clamp(16px,1.5vw,19px); line-height: 1.8; margin: 24px 0 32px; }
.editorial-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.editorial-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 10px 24px; border: 1px solid var(--forest); border-radius: 28px; font-size: 15px; line-height: 1.5; transition: background .2s,color .2s; }
.editorial-actions .editorial-button { padding-inline: 16px; gap: 12px; white-space: nowrap; }
.editorial-button:hover { background: #e8eee5; }
.editorial-button:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.editorial-primary { background: #b9672e; color: #fffdf8; border-color: #b9672e; }
.editorial-primary:hover { background: #995425; }
.editorial-hero-art { display: flex; align-items: center; min-width: 0; color: var(--editorial-gold); }
.editorial-wheel { width: 83%; flex-shrink: 0; overflow: visible; }
.editorial-hero-art > p { font-family: var(--serif); color: #6d7468; font-size: 12px; line-height: 1.9; writing-mode: vertical-rl; letter-spacing: .14em; margin-left: 12px; }
.editorial-functions { padding-top: 24px; display: grid; gap: 22px; }
.editorial-feature { min-width: 0; display: grid; grid-template-columns: 1.25fr 1fr .73fr; align-items: center; gap: 22px; padding: 30px 28px; background: #edf0e7; min-height: 250px; }
.editorial-feature-copy h2 { font-family: var(--serif); font-size: clamp(30px,3vw,42px); letter-spacing: .07em; margin: 0 0 13px; font-weight: 600; }
.editorial-feature-copy p { font-size: 16px; line-height: 1.8; margin: 0 0 26px; }
.editorial-feature-copy .editorial-methods { font-size: 13px; margin-top: -12px; margin-bottom: 25px; }
.editorial-feature-copy .editorial-button { padding: 8px 24px; min-height: 40px; }
.editorial-feature-art { min-width: 0; color: var(--editorial-gold); }
.editorial-feature-art > svg { display: block; width: 100%; height: auto; }
.editorial-feature-note { border-left: 1px solid #b9c3b8; padding-left: 26px; }
.editorial-feature-note h3 { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 0 0 14px; font-weight: 600; }
.editorial-feature-note p { font-size: 13px; line-height: 1.85; margin: 0; color: #48605a; }
.editorial-feature-note small { display: block; margin-top: 20px; font-family: Georgia,serif; font-size: 9px; color: #6b786c; line-height: 1.7; letter-spacing: .16em; }
.editorial-reading-art { height: 225px; position: relative; }
.editorial-card-fan { position: absolute; inset: 3px 12% 25px; }
.editorial-card-fan img { position: absolute; width: 42%; height: 78%; object-fit: cover; border: 4px solid #f9f5e9; outline: 1px solid #bdad8d; border-radius: 3px; filter: grayscale(.9) sepia(.25); }
.editorial-card-fan img:nth-child(1) { left: 2%; top: 23px; transform: rotate(-16deg); }
.editorial-card-fan img:nth-child(2) { left: 29%; top: 0; z-index: 2; }
.editorial-card-fan img:nth-child(3) { right: 0; top: 24px; transform: rotate(16deg); z-index: 3; }
.editorial-die { position: absolute; bottom: -2px; left: 31%; width: 63px; transform: rotate(-12deg); z-index: 4; color: #c7b48b; }
.editorial-die svg { width: 100%; fill: #28483e; stroke-width: 1.5; }
.editorial-guide { border-top: 1px solid #52716a; margin-top: 28px !important; padding-top: 32px; padding-bottom: 48px; }
.editorial-guide h2 { font-family: var(--serif); font-size: clamp(26px,2.8vw,36px); font-weight: 600; margin: 0 0 12px; }
.editorial-guide-lead { font-family: var(--serif); font-size: 20px; margin: 0; }
.editorial-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 42px; }
.editorial-steps > div { display: flex; gap: 19px; align-items: center; padding: 6px 23px; border-left: 1px solid #bbc5bb; }
.editorial-steps > div:first-child { padding-left: 0; border: 0; }
.editorial-steps > div:last-child { padding-right: 0; }
.editorial-steps svg { flex: 0 0 42px; width: 42px; height: 42px; stroke-width: 1.2; }
.editorial-steps h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0; line-height: 1.5; }
.editorial-steps h3 span { font-family: Georgia,serif; font-style: italic; margin-right: 8px; }
.editorial-steps p { color: #48605a; font-size: 14px; margin: 8px 0 0; }
.site-footer { width: min(1180px,calc(100% - 64px)); min-height: 105px; }
.footer-note { text-align: right; }
.footer-note small { display: block; font-size: 10px; color: #64716a; margin-top: 9px; }
.footer-version { margin-top: 9px; font-size: 11px; color: #64716a; }
.footer-version summary { cursor: pointer; }
.footer-version summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.footer-version small { overflow-wrap: anywhere; }
@media(max-width:1050px) {
  .site-header { gap: 18px; }.site-header .main-nav { gap: 18px; }.site-header .brand strong { font-size: 23px; }
  .editorial-feature { grid-template-columns: 1.1fr .9fr .75fr; gap: 18px; padding: 26px 22px; }
  .editorial-feature-note { padding-left: 18px; }.editorial-feature-copy p { font-size: 14px; }
  .editorial-steps > div { gap: 12px; padding: 6px 15px; }.editorial-steps h3 { font-size: 16px; }
}
@media(max-width:760px) {
  .site-header,.editorial-home .section-wrap,.site-footer { width: calc(100% - 36px); }
  .site-header { height: 90px; gap: 14px; }.site-header .brand strong { font-size: 22px; }.site-header .brand small { font-size: 9px; letter-spacing: .12em; }
  .login-placeholder { margin-left: auto; padding: 5px 16px; font-size: 12px; }.site-header .main-nav { margin-left: 0; top: 78px; }.mobile-menu { flex-shrink: 0; }
  .editorial-hero { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 20px; padding-bottom: 30px; }.editorial-hero h1 { font-size: 45px; }
  .editorial-hero-copy { grid-column: 1 / -1; position: relative; z-index: 1; }.editorial-hero-copy > p { font-size: 15px; margin: 18px 0 24px; }
  .editorial-hero-art { grid-column: 1 / -1; justify-content: center; margin-top: 12px; }.editorial-wheel { width: min(72%,290px); }.editorial-hero-art > p { font-size: 11px; }
  .editorial-actions { gap: 10px; }.editorial-actions .editorial-button { flex: 1 1 100%; padding: 10px 12px; gap: 10px; font-size: 14px; }
  .editorial-functions { gap: 18px; padding-top: 18px; }
  .editorial-feature { grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 18px 10px; padding: 24px 20px; }
  .editorial-feature-copy { grid-column: 1 / -1; }.editorial-feature-copy h2 { font-size: 32px; }.editorial-feature-copy p { font-size: 15px; margin-bottom: 18px; }
  .editorial-feature-copy .editorial-methods { font-size: 12px; margin-top: -4px; margin-bottom: 18px; }
  .editorial-feature-art { grid-column: 1; }.editorial-feature-note { grid-column: 2; padding-left: 14px; }.editorial-feature-note h3 { font-size: 15px; }.editorial-feature-note p { font-size: 12px; }.editorial-feature-note small { display: none; }
  .editorial-reading-art { height: 185px; }.editorial-card-fan { inset: 8px 6% 25px; }.editorial-die { width: 48px; }
  .editorial-guide { margin-top: 22px !important; padding-top: 28px; padding-bottom: 30px; }.editorial-guide h2 { font-size: 26px; line-height: 1.5; }.editorial-guide-lead { font-size: 17px; }
  .editorial-steps { grid-template-columns: 1fr; margin-top: 24px; gap: 0; }.editorial-steps > div,.editorial-steps > div:first-child,.editorial-steps > div:last-child { border: 0; border-bottom: 1px solid #d6ddd2; padding: 18px 0; gap: 20px; }.editorial-steps > div:last-child { border-bottom: 0; }
  .editorial-steps h3 { font-size: 19px; }.editorial-steps p { font-size: 14px; }
  .site-footer { padding: 25px 0; gap: 18px; }.footer-note { text-align: left; }.site-footer p { line-height: 1.8; }
}
@media(max-width:360px) {
  .site-header { gap: 10px; }.site-header .brand strong { font-size: 19px; }.login-placeholder { padding: 5px 10px; }
  .editorial-feature { padding: 22px 16px; }.editorial-hero h1 { font-size: 42px; }.editorial-actions .editorial-button { font-size: 12px; }
}
@media(max-width:760px) {
  .editorial-feature { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .editorial-feature-note h3 { font-size: 16px; }
  .editorial-feature-note p { font-size: 13px; }
}

/* Local draft: profile form and the three consultation tools. */
.consultation-page { padding: 24px 0 70px; }
.consultation-heading { text-align: center; padding: 6px 0 28px; }
.consultation-heading .back-link { display: block; text-align: left; margin-bottom: 18px; }
.consultation-heading h1 { font: 600 clamp(30px,3.5vw,46px)/1.5 var(--serif); margin: 0 0 10px; }
.consultation-heading > p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.consultation-form { min-width: 0; }
.consultation-form .method-field > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.consultation-form .method-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.consultation-form .method-choice-grid label > span { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 8px 16px; min-height: 148px; border-radius: 10px; padding: 22px; background: transparent; }
.consultation-form .method-art { width: 68px; height: 68px; grid-row: 1 / 3; align-self: center; color: #a68b61; stroke-width: 1.2; }
.consultation-form .method-choice-grid b { align-self: end; font-size: 20px; }
.consultation-form .method-choice-grid small { margin: 0; font-size: 12px; line-height: 1.7; }
.consultation-form .method-choice-grid input:checked + span { color: var(--ink-soft); background: #edf0e7; border: 2px solid var(--forest); padding: 21px; box-shadow: none; }
.consultation-form .method-choice-grid input:checked + span b { color: var(--forest); }
.consultation-workspace { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: stretch; }
.consultation-question,.consultation-tool { min-width: 0; padding: 28px; border-radius: 10px; }
.consultation-question { background: #edf0e7; margin: 0; border: 0; }
.consultation-tool { border: 1px solid var(--line); background: #fffdf84d; }
.consultation-tool .form-section { padding: 0; border: 0; margin: 0; }
.consultation-form .field > span,.consultation-form .field > legend { font-size: 15px; }
.consultation-form .choice-row label > span { min-height: 42px; border-radius: 30px; }
.consultation-form .choice-row input:checked + span { background: #b9672e; border-color: #b9672e; color: white; }
.consultation-form .question-suggestions,.more-scenarios-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.consultation-form .question-suggestion { min-height: 104px; padding: 13px 15px; border-radius: 9px; box-shadow: none; }
.consultation-form .question-suggestion strong { font-size: 14px; margin-bottom: 7px; }
.consultation-form .question-suggestion span { font-size: 12px; line-height: 1.7; }
.more-scenarios { grid-column: 1 / -1; }
.more-scenarios summary { cursor: pointer; padding: 10px 0; color: var(--forest); font-size: 13px; }
.consultation-form textarea { min-height: 160px; background: #fff; font-size: 14px; }
.consultation-form .compact-field textarea { min-height: 110px; }
.consultation-form .context-details summary small { max-width: 160px; line-height: 1.5; }
.consultation-tool .section-label { margin-bottom: 26px; }
.consultation-tool .section-label strong { font: 600 28px/1.4 var(--serif); }
.consultation-tool .section-label small { font-size: 13px; line-height: 1.8; margin-top: 10px; }
.consultation-tool .location-actions { flex-direction: column; align-items: stretch; gap: 8px; margin: 14px 0; }
.consultation-tool .location-current-button { border: 1px solid var(--line); border-radius: 8px; padding: 13px; font-size: 14px; }
.consultation-tool .location-actions small { text-align: left; font-size: 11px; }
.consultation-tool .privacy-note { padding: 15px 0; margin-top: 18px; background: transparent; border-top: 1px solid var(--line); border-radius: 0; }
.consultation-tool .privacy-note p { font-size: 12px; }
.consultation-actions { margin-top: 22px; }
.consultation-actions .button { width: 100%; min-height: 56px; margin: 0; border-radius: 10px; background: var(--forest); color: #fff; }
.consultation-actions .submit-note { font-size: 12px; }
.consultation-tool .dice-cast-button { cursor: default; box-shadow: none; border: 0; border-radius: 0; background: transparent; }
.consultation-tool .dice-cast-topline { display: none; }
.consultation-tool .dice-cast-stage { gap: 6px; padding: 42px 0; }
.consultation-tool .dice-cast-face { width: clamp(70px,7vw,100px); height: clamp(70px,7vw,100px); }
.consultation-tool .dice-cast-item small { font-size: 11px; }
.consultation-tool .dice-cast-item strong { font-size: 14px; }
.consultation-tool .dice-roll-status { font-size: 13px; line-height: 1.8; }
.consultation-tool .tarot-section { color: var(--forest); background: transparent; border-radius: 0; }
.consultation-tool .tarot-heading h2 { color: var(--forest); font: 600 27px/1.5 var(--serif); margin: 0 0 14px; }
.consultation-tool .tarot-kicker,.consultation-tool .tarot-seal { display: none; }
.consultation-tool .tarot-intro,.consultation-tool .tarot-status,.consultation-tool .tarot-footnote { color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.consultation-tool .tarot-spread { gap: 10px; margin: 26px 0; }
.consultation-tool .tarot-position { color: var(--forest); font-size: 14px; letter-spacing: 0; }
.consultation-tool .tarot-card { min-height: 0; aspect-ratio: .6; border-radius: 8px; background: repeating-linear-gradient(45deg,transparent,transparent 21px,#c1a07812 22px,#c1a07812 23px),#183f38; }
.consultation-tool .tarot-card-name { color: var(--forest); font-size: 12px; }
.consultation-tool .tarot-orientation { color: var(--ink-soft); }
.profile-editorial .form-page { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 48px; align-items: start; padding-top: 36px; }
.profile-editorial .page-heading { position: static; }
.profile-editorial .page-heading h1 { font-size: clamp(36px,4vw,56px); line-height: 1.4; margin-top: 24px; }
.profile-editorial .page-heading > p { font-size: 17px; line-height: 1.85; }
.profile-intro-art { color: #a68b61; max-width: 450px; margin: 20px 0; }
.profile-intro-art svg { display: block; width: 100%; }
.profile-outcomes { background: #edf0e7; padding: 24px; border-radius: 10px; }
.profile-outcomes h2 { font: 600 24px/1.5 var(--serif); margin: 0 0 20px; }
.profile-outcomes > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile-outcomes p { margin: 0; }.profile-outcomes strong { display: block; font-size: 15px; margin-bottom: 8px; }.profile-outcomes span { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.profile-editorial .form-card { background: #fffdfa; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: none; }
.profile-time-note { text-align: right; margin: 0 0 28px; font-size: 12px; color: var(--ink-soft); }
.profile-editorial .field > span,.profile-editorial legend { font-size: 15px; }
.profile-location-group { grid-column: 1 / -1; min-width: 0; border: 0; margin: 6px 0 25px; padding: 0; }
.profile-location-group > legend { margin-bottom: 16px; font-weight: 600; }
.profile-location-group .field { margin-bottom: 8px; }
.profile-location-group .field-hint { font-size: 12px; margin: 0; line-height: 1.8; }
.profile-editorial .gender-field { grid-column: 1 / -1; }
.profile-editorial .submit-button { min-height: 56px; border-radius: 10px; margin-top: 28px; }
.profile-editorial .profile-form select:disabled { background: #f0f1ec; color: #64716a; cursor: not-allowed; }
@media(max-width:1020px) {
 .consultation-form .method-choice-grid label > span { grid-template-columns: 44px minmax(0,1fr); gap: 6px 12px; padding: 16px; }
 .consultation-form .method-choice-grid input:checked + span { padding: 15px; }
 .consultation-form .method-art { width: 44px; height: 44px; }
 .consultation-form .method-choice-grid b { font-size: 17px; }
 .consultation-question,.consultation-tool { padding: 22px; }
 .profile-editorial .form-page { gap: 25px; }.profile-editorial .form-card { padding: 25px; }
}
@media(max-width:800px) {
 .consultation-workspace { grid-template-columns: 1fr; }
 .consultation-tool .dice-cast-stage { padding: 25px 0; }.consultation-tool .dice-cast-face { width: 90px; height: 90px; }
 .consultation-tool .tarot-spread { max-width: 450px; margin: 22px auto; }
 .profile-editorial .form-page { grid-template-columns: 1fr; }.profile-editorial .page-heading { max-width: none; }.profile-intro-art { display: none; }.profile-outcomes { margin-top: 20px; }
 .profile-outcomes > div { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
}
@media(max-width:600px) {
 .consultation-page { padding-top: 8px; }.consultation-heading { text-align: left; }.consultation-heading h1 { font-size: 29px; }.consultation-heading > p { font-size: 14px; line-height: 1.8; }
 .consultation-form .method-choice-grid { gap: 7px; }.consultation-form .method-choice-grid label > span { display: flex; align-items: center; justify-content: start; text-align: center; min-height: 215px; padding: 13px 9px; gap: 8px; }
 .consultation-form .method-choice-grid input:checked + span { padding: 12px 8px; }.consultation-form .method-choice-grid b { align-self: auto; font-size: 15px; }.consultation-form .method-choice-grid small { font-size: 11px; line-height: 1.65; }
 .consultation-question,.consultation-tool { padding: 22px 16px; }.consultation-form .question-suggestion { padding: 12px; min-height: 115px; }.consultation-form .question-suggestion strong { font-size: 13px; }.consultation-form .question-suggestion span { font-size: 12px; }
 .consultation-form .context-details summary { flex-wrap: wrap; gap: 5px; padding: 12px; }.consultation-form .context-details summary small { max-width: none; }
 .consultation-tool .dice-cast-face { width: 70px; height: 70px; }.consultation-tool .dice-cast-item small { font-size: 9px; }
 .profile-editorial .form-page { padding-top: 10px; gap: 24px; }.profile-editorial .page-heading h1 { font-size: 36px; }.profile-editorial .page-heading > p { font-size: 15px; }
 .profile-outcomes { padding: 20px; }.profile-outcomes > div { grid-template-columns: 1fr 1fr; gap: 18px; }.profile-editorial .form-card { padding: 24px 18px; }
 .profile-editorial .field-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 12px; }.profile-editorial select,.profile-editorial input { min-width: 0; padding: 12px 8px; font-size: 14px; }
}
@media(max-width:360px) {
 .consultation-form .question-suggestions,.more-scenarios-grid { grid-template-columns: 1fr; }
 .consultation-form .question-suggestion { min-height: auto; }
 .consultation-form .method-choice-grid label > span { padding-inline: 5px; }.consultation-form .method-choice-grid input:checked + span { padding-inline: 4px; }.consultation-form .method-choice-grid b { font-size: 13px; }
}

/* Full reading stays on the consultation page, outside the compact input panels. */
.consultation-result { margin-top: 36px; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow-wrap: anywhere; scroll-margin-top: 24px; }
.consultation-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.consultation-result-heading h2 { margin: 0; font: 500 30px/1.5 var(--serif); }
.consultation-result > .record-detail { display: block; padding: 20px 0 0; }
.consultation-result .record-question { font-size: clamp(24px,3vw,38px); }
@media (max-width: 600px) { .consultation-result { padding: 24px 18px; margin-top: 24px; }.consultation-result-heading h2 { font-size: 25px; } }
/* Account scope: no global input or layout overrides. */
.account-panel { max-width: 720px; padding-top: 48px; padding-bottom: 48px; }
.account-panel h1 { font-size: clamp(28px, 5vw, 42px); }
#auth-form { display: grid; gap: 16px; max-width: 480px; margin: 28px 0; }
#auth-form[hidden] { display: none; }
#auth-form input { width: 100%; padding: 14px; border: 1px solid #b9c4b8; border-radius: 10px; font: inherit; background: #fff; color: #183d36; }
#auth-form button { justify-self: start; }
#auth-status { min-height: 3em; margin: 20px 0; }
.account-panel button:disabled { opacity: .6; cursor: not-allowed; }

/* Keep PR #20 focusable radio geometry without reverting the new layout. */
.choice-row label, .method-choice-grid label { position: relative; min-width: 0; }
.choice-row input, .method-choice-grid input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.history-status { padding: 12px; color: var(--forest); overflow-wrap: anywhere; }
.history-status button { margin: 8px; }

/* Phase-one feedback and contact preferences; hidden until authenticated CRM availability is confirmed. */
.crm-user-tools{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}.crm-user-tools .text-button{font-size:12px}.crm-report-tools{border-top:1px solid var(--line);padding-top:22px;margin-top:30px;display:flex;justify-content:space-between;align-items:center;gap:15px}.crm-report-tools p{font-size:13px;line-height:1.7;color:var(--ink-soft);margin:0}.crm-report-tools button{white-space:nowrap;font-size:13px}.crm-user-dialog{padding:30px;border:1px solid #bbc6b6;background:#fffdf8;color:#253c34;max-width:min(540px,calc(100% - 32px));width:100%;max-height:90vh;overflow:auto}.crm-user-dialog::backdrop{background:#18302588}.crm-user-dialog h2{font-family:var(--serif);font-size:27px;font-weight:500;margin:20px 0 12px}.crm-dialog-close{float:right;font-size:12px}.crm-dialog-intro{font-size:13px;line-height:1.8;color:#69746a;margin-bottom:24px}.crm-user-form{display:grid;gap:16px}.crm-field{display:grid;gap:8px;font-size:13px}.crm-field textarea,.crm-field select{width:100%;border:1px solid #bdc8b9;background:#fffdf8;color:#253c34;padding:11px;font:inherit;border-radius:0}.crm-field textarea{resize:vertical;min-height:110px;line-height:1.8}.crm-user-form .button{border-radius:0;min-height:44px}.crm-save-status{font-size:13px;line-height:1.7;margin:0;min-height:1em;color:#305442}.crm-save-status.error{color:#a44335}.crm-check{display:flex;gap:13px;align-items:flex-start;border-bottom:1px solid #d8ddd2;padding:0 0 17px;cursor:pointer}.crm-check input{flex:0 0 17px;width:17px;height:17px;margin:4px 0 0;accent-color:#2f5141}.crm-check strong{font-weight:500;display:block;font-size:14px}.crm-check small{display:block;color:#69746a;font-size:12px;line-height:1.7;margin-top:4px}.crm-user-dialog :focus-visible{outline:2px solid #a45f39;outline-offset:4px}@media(max-width:600px){.crm-report-tools{align-items:flex-start;flex-direction:column;gap:8px}.crm-user-dialog{padding:23px}.crm-user-tools{justify-content:center}.site-footer:has(.crm-user-tools:not([hidden])){flex-wrap:wrap}}
.liuyao-section { min-width:0; }
.liuyao-timezone-field { margin-bottom:20px; }
.liuyao-timezone-field input { font-size:13px; }
.liuyao-timezone-field .field-hint { display:block; line-height:1.7; }
.liuyao-empty { padding:27px 24px 22px; text-align:center; border:1px solid #bba1764a; border-radius:20px; background:radial-gradient(ellipse at 50% 25%,#ecdfc875,transparent 80%),#f6f1e6; }
.liuyao-coins { display:flex; justify-content:center; gap:clamp(12px,3vw,30px); padding:8px 0 27px; }
.liuyao-coins > span { width:clamp(64px,9vw,90px); height:clamp(64px,9vw,90px); border-radius:50%; border:1px solid #b89a64; box-shadow:inset 0 0 0 5px #b89a6420,0 7px 15px #85714a14; background:linear-gradient(145deg,#e8d7b2,#eee3cc); display:flex; align-items:center; justify-content:center; gap:7px; color:#82683e; font-family:var(--serif); font-size:15px; }
.liuyao-coins i { width:16px; height:16px; border:1px solid #9c804d; background:var(--paper); }
.liuyao-empty > strong { font-family:var(--serif); color:var(--forest); font-size:18px; font-weight:500; line-height:1.7; }
.liuyao-empty p { max-width:430px; margin:12px auto 0; color:var(--ink-soft); font-size:12px; line-height:1.9; }
.liuyao-empty.casting .liuyao-coins > span { animation:coin-breathe .9s ease-in-out infinite alternate; }
.liuyao-empty.casting .liuyao-coins > span:nth-child(2) { animation-delay:.18s; }
.liuyao-empty.casting .liuyao-coins > span:nth-child(3) { animation-delay:.36s; }
@keyframes coin-breathe { to { transform:translateY(-5px) rotate(7deg); opacity:.65; } }
.liuyao-status { margin:16px 0 12px; font-size:12px; color:var(--forest-2); line-height:1.85; }
.liuyao-wait { width:100%; min-width:0; padding:16px; margin:0 0 16px; border:1px solid var(--line); background:var(--paper); color:var(--forest-2); box-sizing:border-box; }
.liuyao-wait[hidden] { display:none; }
.liuyao-wait-title { margin:0 0 10px; font-size:15px; font-weight:600; }
.liuyao-wait-progress { display:block; width:100%; height:8px; accent-color:var(--forest); }
.liuyao-wait-elapsed, .liuyao-wait-note { margin:10px 0 0; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
@media (prefers-reduced-motion: reduce) { .liuyao-wait-progress:indeterminate { visibility:hidden; } }
.liuyao-footnote { color:#827968; font-size:11px; line-height:1.85; margin:16px 0 0; }
.liuyao-pending-list { display:grid; gap:8px; padding:16px; margin-bottom:20px; border:1px solid #bba17655; border-radius:12px; background:#ede4d1a1; }
.liuyao-pending-list > strong { color:#79613c; font-size:11px; font-weight:500; }
.liuyao-pending-list summary { cursor:pointer; color:#79613c; font-size:13px; }
.liuyao-pending-list details[open] .liuyao-resume { display:block; margin-top:10px; }
#liuyao-retest { display:block; margin-top:16px; min-height:44px; }
.liuyao-resume { text-align:left; border:0; padding:9px 0; cursor:pointer; background:transparent; color:var(--forest); font-size:12px; line-height:1.7; overflow-wrap:anywhere; border-top:1px solid #bba17640; }
.liuyao-chart { min-width:0; border:1px solid #bba17670; border-radius:18px; padding:24px; background:linear-gradient(140deg,#f8f3e8,#f1eadb); }
.liuyao-chart-names { display:grid; grid-template-columns:1fr 30px 1fr; align-items:center; text-align:center; margin-bottom:23px; gap:5px; }
.liuyao-chart-names small { display:block; color:#8b795b; font-size:10px; letter-spacing:.08em; margin-bottom:8px; }
.liuyao-chart-names strong { color:var(--forest); font:500 clamp(20px,2.2vw,26px) var(--serif); }
.liuyao-chart-arrow { color:#a1875d; font-size:20px; }
.liuyao-diagram { max-width:390px; margin:0 auto; display:grid; gap:11px; }
.liuyao-diagram-row { display:grid; grid-template-columns:30px minmax(45px,1fr) 25px minmax(45px,1fr) 22px; align-items:center; gap:10px; min-height:17px; }
.liuyao-position { font-size:10px; color:#91826a; }
.liuyao-glyph { display:flex; gap:12px; width:100%; height:9px; }
.liuyao-glyph i { display:block; flex:1; border-radius:1px; background:var(--forest); }
.liuyao-glyph.changed i { background:#718778; }
.liuyao-diagram-row.moving .liuyao-glyph:not(.changed) i { background:#aa783a; }
.liuyao-moving { text-align:center; color:#aa783a; font-size:14px; line-height:1; }
.liuyao-role { color:var(--forest); font-size:10px; font-weight:500; }
.liuyao-calendar { margin:22px 0 6px; text-align:center; color:#786647; font-size:11px; line-height:1.8; }
.liuyao-cast-time { margin:0; text-align:center; color:#8f8371; font-size:9px; line-height:1.8; overflow-wrap:anywhere; }
.liuyao-chart-details { margin-top:20px; border-top:1px solid #bba17650; padding-top:14px; }
.liuyao-chart-details summary { font-size:11px; color:var(--forest-2); cursor:pointer; line-height:1.8; }
.liuyao-chart-details > p { margin:15px 0 10px; color:#81755f; font-size:10px; line-height:1.8; }
.liuyao-table-wrap { overflow-x:auto; max-width:100%; margin:15px 0; }
.liuyao-table { border-collapse:collapse; width:100%; min-width:405px; font-size:10px; }
.liuyao-table th,.liuyao-table td { padding:10px 5px; border-bottom:1px solid #bba17635; text-align:left; white-space:nowrap; }
.liuyao-table th { color:#8b7859; font-weight:500; }
.liuyao-table td { color:var(--forest-2); }
.liuyao-tosses { padding:0; margin:12px 0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.liuyao-tosses li { display:flex; align-items:center; gap:9px; color:#8c7856; font-size:10px; }
.liuyao-toss-values { display:flex; gap:4px; }
.liuyao-toss-values b { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; border:1px solid #c1a97b; font-size:10px; font-weight:500; }
.liuyao-toss-values .face-a { background:#e3d1ae; }.liuyao-toss-values .face-b { background:#f9f5ed; }
.liuyao-tosses li > strong { font-weight:500; }
.liuyao-cast-id { overflow-wrap:anywhere; }
.liuyao-record-plate { margin:8px 0 25px; }
#ask-form :disabled { cursor:default; }
#ask-form textarea:disabled,#ask-form .liuyao-timezone-field input:disabled { color:var(--ink-soft); opacity:1; -webkit-text-fill-color:var(--ink-soft); background:#ece6d8; }
#ask-form .question-suggestion:disabled,#ask-form .context-option:disabled { opacity:.55; }
.liuyao-resume:focus-visible,.liuyao-chart-details summary:focus-visible { outline:2px solid var(--amber); outline-offset:4px; }
@media(max-width:760px) {
  .local-version-banner { width:min(100% - 30px,560px); flex-wrap:wrap; gap:5px; padding:11px 13px; }
  .local-version-banner p { font-size:10px; }
  .liuyao-chart { padding:20px 14px; }
  .liuyao-chart-names strong { font-size:21px; }
  .liuyao-empty { padding:22px 14px; }
  .liuyao-empty > strong { font-size:16px; }
  .liuyao-diagram-row { gap:7px; grid-template-columns:27px minmax(38px,1fr) 18px minmax(38px,1fr) 17px; }
  .liuyao-tosses li { gap:5px; }
  .liuyao-toss-values { gap:3px; }
  .liuyao-toss-values b { width:20px; height:20px; }
}
@media(prefers-reduced-motion:reduce) { .liuyao-empty.casting .liuyao-coins > span { animation:none; } }

.liuyao-clarification { margin:16px 0 20px; padding:15px 17px; border:1px solid #bba17660; border-radius:12px; background:#f8f3e9; }
.liuyao-clarification summary { color:var(--forest); font-size:12px; cursor:pointer; line-height:1.8; }
.liuyao-clarification .field { margin:16px 0 0; }
.liuyao-clarification .field-hint { align-items:flex-start; gap:10px; line-height:1.7; }
.liuyao-clarification-request { margin:14px 0; padding-left:11px; border-left:2px solid var(--amber); color:#795b32; font-size:12px; line-height:1.9; white-space:pre-line; }
.record-supplement > p { margin:12px 0 0; color:var(--ink-soft); font-size:12px; line-height:1.9; white-space:pre-line; }

.counter-evidence-block { background:#f6f0e5; border-color:#bba17666; }
.liuyao-moving-review { margin:18px 0; padding:17px 20px; border:1px solid var(--line); border-radius:14px; background:#faf6ee; }
.liuyao-moving-review summary { color:var(--forest-2); font-size:12px; cursor:pointer; line-height:1.8; }
.liuyao-moving-review-item { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.liuyao-moving-review-item h4 { margin:0 0 14px; color:var(--amber); font-size:13px; }
.liuyao-moving-review-item > strong { display:block; font-size:11px; color:var(--forest); margin-top:12px; font-weight:500; }
.liuyao-moving-review-item p { margin:6px 0 12px; color:var(--ink-soft); font-size:12px; line-height:1.95; white-space:pre-line; }

/* Unified candidate: preserve the accepted editorial layout while adding a peer feature. */
.local-candidate-notice { padding:12px 24px; margin:0 auto; max-width:1440px; color:var(--ink-soft); background:#efe8d8; font-size:12px; line-height:1.7; text-align:center; }
.editorial-ziwei { background:#eee9ed; }
.editorial-ziwei .editorial-feature-art { color:#8b788c; }
.site-header .main-nav { gap:clamp(14px,2vw,30px); }
#view-ziwei { padding-top:32px; }
.liuyao-section .section-label > span { display:none; }
@media(max-width:1100px) and (min-width:761px) {
  .site-header { flex-wrap:wrap; gap:18px; }
  .site-header .main-nav { order:3; width:100%; justify-content:flex-end; }
  .header-auth { margin-left:auto; }
}
@media(max-width:760px) { .local-candidate-notice { padding:10px 18px; text-align:left; } }
