/* Original approved illustrations are immutable; live controls use their native coordinates. */
body:has(.reference-page.active) main { width:100%;max-width:none;margin:0;padding:0; }
.reference-page { padding:0; }
.approved-artboard { position:relative;isolation:isolate;width:100%;aspect-ratio:1672/941;container-type:inline-size;overflow:hidden; }
.approved-artwork { position:absolute;inset:0;width:100%;height:100%;display:block; }
.approved-legacy-content { display:none; }
body:has(.reference-page.active:not(#home))>.head { display:none; }
.approved-control { position:absolute;z-index:2;display:block;padding:0!important;margin:0!important;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;cursor:pointer; }
.approved-control>* { opacity:0;pointer-events:none; }
.approved-control:hover { transform:none; }
.approved-control:focus-visible { outline:3px solid #d53678;outline-offset:3px;box-shadow:0 0 0 5px #fff8!important; }
.approved-live { position:absolute;z-index:3;min-height:0!important;max-width:none;font-family:'Noto Serif TC','PMingLiU',serif;color:#754069;line-height:1.7; }
.approved-question { padding:0;border:0;resize:none;background:transparent;color:transparent;font-size:1.08cqw;outline:none;scrollbar-width:none; }
.approved-question::-webkit-scrollbar { display:none; }
.approved-question::placeholder { color:transparent; }
.approved-question:focus,.approved-question.has-value { background:#fffcfa;color:#754069; }
.approved-question:focus-visible { outline:2px solid #ee87b4;outline-offset:6px;border-radius:5px; }
.approved-question-counter { background:#fffaf8;color:#a77a9b;font-size:.78cqw;text-align:left;white-space:nowrap; }
.approved-category-controls { position:absolute;inset:0;display:contents; }
.approved-category-controls .chip { min-height:0;border:0;border-radius:20px; }
.approved-free .approved-count-choice { outline:.06cqw solid #f9d6c0;outline-offset:-.06cqw;border-radius:1.077cqw; }
.approved-free .approved-category-controls .chip { border-radius:.957cqw; }
.approved-free .approved-category-controls .chip[aria-pressed="true"] { outline:.12cqw solid #e29328;outline-offset:-.12cqw; }
/* Cover the Love tab's baked-in pink; the other neutral tabs keep their artwork. */
.approved-free .approved-category-controls .chip[data-category="love"]::before { content:'';position:absolute;inset:0;border-radius:inherit;background:#fffaf9;box-shadow:inset 0 0 0 1px #f2bea5; }
.approved-free .approved-category-controls .chip[aria-pressed="true"]::before { content:'';position:absolute;inset:0;border:.06cqw solid #e29328;border-radius:inherit;background:linear-gradient(120deg,#fff9ee,#fff0dc);box-shadow:0 0 0 .24cqw #fff8ea,inset 0 0 0 .23cqw #fff8ea,inset 0 0 0 .36cqw #ebb354; }
/* Crop the unchanged artwork so the visible icons retain their original shapes. */
.approved-free .approved-category-controls .chip[aria-pressed="true"]>b,.approved-free .approved-category-controls .chip[data-category="love"]>b { position:absolute;z-index:1;left:var(--category-icon-left);top:.598086cqw;width:2.392344cqw;height:2.392344cqw;opacity:1;color:transparent!important;font-size:0!important;background-image:url('../free-extended-reference-v1.png');background-repeat:no-repeat;background-size:4180% 2352.5%;background-position:var(--category-icon-position) 44.72808%;filter:contrast(1.18) brightness(1.07);mix-blend-mode:multiply; }
.approved-free .approved-category-controls .chip[aria-pressed="true"]>.approved-category-label,.approved-free .approved-category-controls .chip[data-category="love"]>.approved-category-label { position:absolute;z-index:1;left:var(--category-label-left);top:1.1cqw;opacity:1;color:#80345c;font:700 1.05cqw/1.7 'Noto Serif TC','PMingLiU',serif;white-space:nowrap; }
.approved-free .approved-category-controls .chip[data-category="love"] { --category-icon-left:1.973684cqw;--category-icon-position:19.730392%;--category-label-left:5.3cqw; }
.approved-free .approved-category-controls .chip[data-category="love"]>b { filter:grayscale(1) brightness(.6) contrast(12) invert(1) invert(.12) sepia(1) saturate(3) hue-rotate(-60deg) brightness(3.6); }
.approved-free .approved-category-controls .chip[data-category="career"] { --category-icon-left:1.435407cqw;--category-icon-position:30.637255%;--category-label-left:5.024cqw; }
.approved-free .approved-category-controls .chip[data-category="finance"] { --category-icon-left:1.315789cqw;--category-icon-position:41.789216%;--category-label-left:4.844cqw; }
.approved-free .approved-category-controls .chip[data-category="relationships"] { --category-icon-left:1.196172cqw;--category-icon-position:52.757353%;--category-label-left:4.306cqw; }
.approved-free .approved-category-controls .chip[data-category="self"] { --category-icon-left:1.016746cqw;--category-icon-position:63.909314%;--category-label-left:4.246cqw; }
.approved-free .approved-category-controls .chip[data-category="spiritual"] { --category-icon-left:.956938cqw;--category-icon-position:75%;--category-label-left:4.186cqw; }
.approved-free .approved-category-controls .chip:focus-visible { outline:2px solid #99653f;outline-offset:5px; }
.approved-free .approved-category-controls .chip[aria-pressed="true"]:focus-visible { outline-color:#e29328; }
.approved-category-status { position:absolute;z-index:2;display:none;place-items:center;border-radius:50%;background:#e29328;opacity:1;pointer-events:none; }
.approved-category-status svg { width:70%;height:70%;fill:none;stroke:white;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.approved-free .approved-category-controls .chip>.approved-category-status { right:.4cqw;top:-.2cqw;width:1.2cqw;height:1.2cqw; }
.approved-free .approved-category-controls .chip[aria-pressed="true"]>.approved-category-status { display:grid; }
.approved-free .approved-count-choice[data-count="3"] { isolation:isolate;outline:0; }
.approved-free .approved-count-choice[data-count="3"]::before { content:'';position:absolute;inset:0;border:.06cqw solid #f9d6c0;border-radius:1.077cqw;background:linear-gradient(#fdfbf9,#fdf8f6);box-shadow:0 0 0 .24cqw #fffaf8; }
/* Reuse the original tile art; lift its pale baked-in pink into the neutral surface below. */
.approved-free .approved-count-choice[data-count="3"]::after { content:'';position:absolute;inset:0;border-radius:1.077cqw;background:url('../free-approved-reference-v2.png') 22.821897% 65.838509% / 445.866667% 691.911765%;clip-path:inset(.3cqw round .78cqw);filter:contrast(1.08) brightness(1.035);mix-blend-mode:multiply;mask-image:radial-gradient(circle at 95.2% 12.5%,transparent 1.05cqw,#000 1.12cqw); }
.approved-free .approved-count-choice[aria-pressed="true"] { outline:.12cqw solid #e29328;outline-offset:-.12cqw; }
.approved-free .approved-count-choice[aria-pressed="true"]::before { content:'';position:absolute;inset:0;border:.06cqw solid #e29328;border-radius:1.077cqw;background:linear-gradient(120deg,#fff9ee,#fff0dc);box-shadow:0 0 0 .24cqw #fff8ea,inset 0 0 0 .23cqw #fff8ea,inset 0 0 0 .36cqw #ebb354; }
.approved-free .approved-count-choice[aria-pressed="true"]:not([data-count="3"]) { z-index:auto; }
.approved-free .approved-count-choice[aria-pressed="true"]:not([data-count="3"])::before { mix-blend-mode:multiply; }
.approved-free .approved-count-status { position:absolute;z-index:1;right:.4cqw;top:.4cqw;display:none;place-items:center;width:1.6cqw;height:1.6cqw;border-radius:50%;background:#e29328;opacity:1; }
.approved-free .approved-count-choice[aria-pressed="true"] .approved-count-status { display:grid; }
.approved-count-status svg { width:70%;height:70%;fill:none;stroke:white;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.approved-start[data-selection]::after { content:attr(data-selection);position:absolute;left:28%;top:21%;width:57%;height:60%;display:grid;place-items:center;background:linear-gradient(110deg,#ed79b1,#d070ce);color:white;font-family:'Noto Serif TC','PMingLiU',serif;font-size:1.22cqw;font-weight:600;white-space:nowrap; }
.approved-control.approved-year-start { display:flex;align-items:center;justify-content:center;border:2px solid #fff6!important;border-radius:999px;background:linear-gradient(110deg,#ff819f,#df62c8 65%,#b45aec)!important;box-shadow:0 0 .45cqw #fff,0 0 .8cqw #e994ca8c!important;color:#fff!important;font:600 clamp(14px,1.35cqw,24px)/1.2 'Noto Serif TC','PMingLiU',serif!important;letter-spacing:.04em;white-space:nowrap; }
.approved-year-start::before { content:'✦';margin-right:.5em;font-size:.8em; }
.approved-year-start:hover { filter:brightness(1.08); }
.approved-common-questions { line-height:1.4;pointer-events:none; }
.approved-common-header { display:flex;align-items:center;justify-content:space-between; }
.approved-common-all-topics { display:none; }
.approved-topics-arrow { display:grid;place-items:center;flex:none;border:1px solid #e7ac8c!important;border-radius:50%;background:linear-gradient(135deg,#fffcfa,#ffedf5)!important;box-shadow:inset 0 0 0 2px #fffdfb,0 2px 5px #b3597c1c!important;color:#c34486!important; }
.approved-topics-arrow>svg { width:60%;height:60%;opacity:1;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;pointer-events:none; }
.approved-common-title { margin:0;width:16cqw;height:1.55cqw;background:#fff9f9;font-size:1.07cqw;font-weight:600;color:#972052; }
.approved-common-row { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.66cqw;margin-top:.06cqw; }
.approved-common-row button { display:flex;align-items:center;gap:.7cqw;margin:0;padding:.45cqw .85cqw;height:2.55cqw;min-height:0;border:1px solid #f5dde5;border-radius:.45cqw;background:#fffdfd;color:#783768;font-family:'Noto Serif TC','PMingLiU',serif;font-size:1.02cqw;font-weight:500;line-height:1.25; }
.approved-common-row button svg { flex:none;width:1.6cqw;height:1.45cqw;fill:none;stroke:#f0448c;stroke-width:1.5; }
.approved-common-row button[aria-pressed="true"] { border-color:#e3478b;background:#fff0f6; }
.approved-common-row button { pointer-events:auto; }
.approved-common-row button:focus-visible { outline:2px solid #c02d6c;outline-offset:2px; }
.approved-oracle-moon-art { z-index:1;display:block;object-fit:contain;pointer-events:none; }
.approved-free .approved-count-choice:focus-visible { outline:2px solid #99653f;outline-offset:5px; }
.approved-free .approved-count-choice[aria-pressed="true"]:focus-visible { outline-color:#e29328;outline-offset:5px; }
.approved-panel { width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #edbacd;border-radius:24px;background:#fffbfc;color:#703356;box-shadow:0 24px 90px #58213d55; }
.approved-panel::backdrop { background:#4e203655;backdrop-filter:blur(6px); }
.approved-panel>header { position:sticky;top:-24px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-24px -24px 20px;padding:18px 24px;background:#fffbfc;border-bottom:1px solid #f2d2df; }
.approved-panel>header h2 { margin:0;font-size:1.5rem; }
.approved-panel>header button { width:42px;height:42px;border:1px solid #e6adc6;border-radius:50%;background:white;color:#8f285a;font-size:24px; }
.approved-panel-body>* { display:block; }
.approved-panel .reference-topic-list { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.approved-panel [hidden] { display:none!important; }
.comparison-topic-modes { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px; }
.comparison-topic-modes button { min-height:44px;padding:8px 20px;border:1px solid #e9b7cc;border-radius:999px;background:#fff;color:#803252;font-weight:700; }
.comparison-topic-modes button[aria-pressed="true"] { background:#963665;color:white;border-color:#963665; }
.comparison-spread-guide { padding:18px;border:1px solid #efd2de;border-radius:18px;background:#fff5f9; }
.comparison-spread-guide h3,.comparison-topic-group h3,.comparison-quick-topics h3,.comparison-custom-topic h3 { margin:0 0 12px;font-size:1.2rem; }
.comparison-spread-guide p { margin:0 0 10px; }
.comparison-spread-guide summary { cursor:pointer;color:#a23668;font-weight:700; }
.comparison-spread-guide li { margin:10px 0; }
.comparison-spread-guide li span { display:block; }
.weekly-topic-guide { margin-bottom:20px; }
.weekly-topic-guide>.reference-topic-list { margin-top:16px;grid-template-columns:minmax(0,1fr); }
.comparison-topic-group,.comparison-quick-topics,.comparison-custom-topic { margin-top:24px; }
.comparison-topic-group h3 { padding-bottom:10px;border-bottom:1px solid #efc8d8; }
.comparison-topic-group h3 small { font-size:.85rem;color:#9c6880;font-weight:400; }
.reference-topic-list .topic-safety-notice { margin-top:8px;color:#843255;line-height:1.6; }
.reading-position-question { padding:10px 14px;border-left:3px solid #d7659b;background:#fff3f8;color:#7c3256; }
.approved-panel .oracle-message-card { min-height:0; }
.oracle-message-card .oracle-card-layout { display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:32px;align-items:center; }
.oracle-card-art { margin:0; }
.oracle-card-art img { display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;border-radius:16px;box-shadow:0 12px 28px #71365024; }
.oracle-card-art figcaption { margin-top:14px;text-align:center;color:#87405f;font-size:18px;letter-spacing:.12em; }
.oracle-card-copy { min-width:0;line-height:1.8; }
.approved-panel .school-section,.approved-panel .about-guide { margin:0; }
.approved-panel button:focus-visible,.approved-mobile-controls button:focus-visible { outline:3px solid #c24483;outline-offset:3px; }
.approved-history-item { padding:16px 0;border-bottom:1px solid #efd0de; }
.approved-mobile-controls { display:none; }
.approved-night .approved-artwork,.approved-night .home-approved-artwork { filter:brightness(.65) saturate(.8); }
.approved-night .approved-free .approved-category-controls .chip[data-category="love"]::before { background:linear-gradient(#a4a3a2,#a4a1a0);box-shadow:inset 0 0 0 1px #c79f8f; }
.approved-night .approved-free .approved-category-controls .chip[aria-pressed="true"]::before { background:linear-gradient(120deg,#a8a296,#a79e90);box-shadow:0 0 0 .24cqw #a5a3a2,inset 0 0 0 .23cqw #fff8ea,inset 0 0 0 .36cqw #ebb354; }
.approved-night .approved-free .approved-category-controls .chip[aria-pressed="true"]>.approved-category-label,.approved-night .approved-free .approved-category-controls .chip[data-category="love"]>.approved-category-label { color:#53223c; }
.approved-night .approved-free .approved-count-choice[data-count="3"]::before { background:linear-gradient(#a4a3a2,#a4a1a0);box-shadow:0 0 0 .24cqw #a5a3a2; }
.approved-night .approved-free .approved-count-choice[data-count="3"]::after { filter:contrast(1.08) brightness(1.035) brightness(.65) saturate(.8);mix-blend-mode:darken; }
.approved-night .approved-free .approved-count-choice[data-count="3"][aria-pressed="true"]::before { background:linear-gradient(120deg,#a8a296,#a79e90);box-shadow:0 0 0 .24cqw #a5a3a2,inset 0 0 0 .23cqw #fff8ea,inset 0 0 0 .36cqw #ebb354; }
.free-reading-workspace { width:min(1320px,100%);margin:auto; }
#free:has(.reading.show) .approved-legacy-content { display:block; }
#free:has(.reading.show) .approved-legacy-content>*:not(.free-reading-workspace) { display:none; }
.approved-panel .zodiac-result { color:#743457; }
@media(max-width:760px) {
  .approved-common-mobile .approved-common-title { width:auto;height:auto;font-size:18px;background:none;margin:0; }
  .approved-common-mobile .approved-common-all-topics { display:flex;align-items:center;gap:8px;min-height:48px;padding:0;border:0;background:transparent;color:#a83370;font-size:16px;white-space:nowrap; }
  .approved-common-mobile .approved-topics-arrow { width:32px;height:32px; }
  .approved-common-mobile .approved-common-row { grid-template-columns:1fr;gap:8px; }
  .approved-common-mobile .approved-common-row button { height:auto;min-height:48px;gap:12px;font-size:16px; }
  .approved-common-mobile .approved-common-row svg { width:24px;height:22px; }
  .approved-mobile-controls { display:grid;gap:12px;padding:20px 16px;background:#fff7fa;color:#703356; }
  .approved-mobile-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .approved-mobile-controls button { min-height:48px;padding:10px 14px;border:1px solid #e8b6cd;border-radius:13px;background:#fffdfc;color:#823451;font-size:16px; }
  .approved-mobile-controls textarea,.approved-mobile-controls input,.approved-mobile-controls select { width:100%;min-height:48px;padding:12px;border:1px solid #e8b6cd;border-radius:12px;background:white;color:#713552; }
  .approved-mobile-controls textarea { min-height:110px; }
  .approved-mobile-categories,.approved-mobile-counts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  .approved-mobile-draw-actions { display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px; }
  .approved-mobile-draw-actions .approved-mobile-start,.approved-mobile-draw-actions .approved-mobile-year-start { border:1px solid #fff;border-radius:999px;background:linear-gradient(110deg,#ff819f,#df62c8 65%,#b45aec);box-shadow:0 3px 12px #ca659733;color:white;font-weight:600; }
  .approved-mobile-categories button { position:relative;border-width:2px;padding:9px 30px 9px 10px;white-space:nowrap; }
  .approved-mobile-categories button[aria-pressed="true"] { border:2px solid #e29328;background:linear-gradient(120deg,#fff9ee,#fff0dc);box-shadow:inset 0 0 0 3px #fff8ea,inset 0 0 0 4px #ebb354; }
  .approved-mobile-categories button>.approved-category-status { right:6px;top:6px;width:20px;height:20px; }
  .approved-mobile-categories button[aria-pressed="true"]>.approved-category-status { display:grid; }
  .approved-mobile-counts button[aria-pressed="true"] { position:relative;border:2px solid #e29328;background:linear-gradient(120deg,#fff9ee,#fff0dc);box-shadow:inset 0 0 0 3px #fff8ea,inset 0 0 0 4px #ebb354; }
  .approved-mobile-counts button[aria-pressed="true"]::after { content:'✓';position:absolute;right:8px;top:8px;color:#e29328; }
  .approved-panel { padding:18px; }
  .approved-panel>header { top:-18px;margin:-18px -18px 18px;padding:14px 18px; }
  .approved-panel .reference-topic-list { grid-template-columns:1fr; }
  .approved-panel>header h2 { font-size:1.2rem; }
  .oracle-message-card .oracle-card-layout { grid-template-columns:minmax(0,1fr);gap:24px; }
  .oracle-card-art { width:min(210px,100%);justify-self:center; }
  .approved-panel .oracle-message-card { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { .approved-control { transition:none!important; } }
@media(min-width:761px) { html:has(.reference-page.active) { scrollbar-width:none; } }
