.dashboard-page {
  --bg:#100d1b;--paper:#1d172d;--layer:#29213d;--inset:#171124;
  --ink:#fcf7ff;--dim:#c1b4d0;--soft:#e0d2ee;--line:#514464;
  --accent:#eacc91;--accent-strong:#ffe7ad;--accent-ink:#251b32;--status:#ffb6cd;
  background:radial-gradient(ellipse at 68% 0%,#2b2248 0%,transparent 48rem),var(--bg);
}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) {
  color-scheme:light;
  --bg:#fcfbf7;--paper:#ffffff;--layer:#e8edf0;--inset:#f6f9f7;
  --ink:#173e36;--dim:#47615a;--soft:#314e46;--line:#b4c8bf;
  --accent:#096452;--accent-strong:#074e40;--accent-ink:#fff;--status:#862744;
  background:radial-gradient(ellipse at 85% 0%,#eff6f2,transparent 35rem),var(--bg);
}
.dashboard-page :where(button,a,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--accent);outline-offset:3px;
}
.dash-brand-mark {background:#eacc91;color:#2b1c3f}
.dash-settings {justify-content:center;min-width:44px;padding-inline:6px;background:var(--layer);color:var(--ink)}
.dash-actions {gap:5px}
.dash-title h1 {font-family:TodaySerif,"Noto Serif CJK KR",serif;letter-spacing:-.055em}
.profile-strip {display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-bottom:14px}
.profile-strip select {width:auto;max-width:100%;min-height:44px}
.profile-strip a {padding:8px 3px;text-underline-offset:4px}
.profile-strip span,.profile-strip a {font-size:.85rem;color:var(--dim)}
.season-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.season-grid button {
  text-align:left;display:grid;align-content:end;gap:3px;min-height:124px;padding:14px;
  border-radius:17px;border:1px solid #76608f;background:#372453;color:#fff7ff;overflow-wrap:anywhere;
}
.season-grid button:nth-child(2) {background:#352a46;border-color:#9e7954}
.season-grid button:nth-child(3) {background:#242e52;border-color:#606c9b}
.season-grid button span {font-size:1.44rem;color:#ffdc9d}
.season-grid button strong {line-height:1.35;word-break:keep-all}
.season-grid button small {color:#e1d0ef;font-size:.73rem;line-height:1.35}
.season-grid button:hover,.reading-links :is(button,a):hover {border-color:var(--accent)}
.season-grid button:active,.reading-links :is(button,a):active {transform:translateY(2px)}
.reading-links {grid-template-columns:repeat(4,minmax(0,1fr))}
.reading-links a {text-decoration:none}
.reading-links :is(button,a) {transition:transform .15s,border-color .15s}
.reading-links :is(button,a)>span {color:var(--accent)}
.reading-links :is(button,a)>strong {overflow-wrap:anywhere;line-height:1.35}
.reading-links a small {color:var(--dim);font-size:.73rem}
.profile-actions,.play-actions,.preset-questions {display:flex;flex-wrap:wrap;gap:7px;margin-block:10px}
.profile-actions [hidden] {display:none}
.return-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.return-grid form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.return-grid form button {grid-column:1/-1;justify-self:start}
.return-grid section > p {margin-bottom:8px}
.saved-row,.annual-bar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding-block:4px}
.annual-chart {padding:14px;border:1px solid var(--line);border-radius:12px}
.annual-bar {grid-template-columns:55px minmax(0,1fr) 24px}
.annual-bar progress {accent-color:var(--accent);width:100%}
.date-form {display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:12px}
#search-results {display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#search-dialog {max-width:min(94vw,620px);color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:16px}
[data-theme=light] .dash-day {background:#f6f9f7;color:#31544a;border-color:#b4c8bf}
[data-theme=light] .dash-day[aria-pressed=true] {background:#bfe5d5;color:#153d34}
[data-theme=light] .dash-nav a[aria-current] {color:white;background:#096452}
[data-theme=light] .dash-settings {background:#e8edf0}
[data-theme=light] .season-grid button {background:#f7e7bf;color:#27443a;border-color:#c2a46d}
[data-theme=light] .season-grid button:nth-child(2) {background:#e8edf0;border-color:#bac8ce}
[data-theme=light] .season-grid button:nth-child(3) {background:#bfe5d5;border-color:#90b8a5}
[data-theme=light] .season-grid button span {color:#725824}
[data-theme=light] .season-grid button small {color:#36554a}
@media(max-width:850px) {
}
@media(max-width:600px) {
  .dash-chip {display:none}
  .dash-settings {min-height:44px}
  .dash-nav {background:var(--paper)}
  .dash-nav a {font-size:.75rem;padding-inline:1px}
  .season-grid {gap:6px}
  .season-grid button {min-height:106px;padding:8px}
  .season-grid button strong {font-size:.86rem}
  .reading-links {grid-template-columns:repeat(3,minmax(0,1fr))}
  .return-grid {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce) {
  .season-grid button,.reading-links :is(button,a) {transition:none}
}

/* Pair light-mode text with the surface it is rendered on. */
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .dash-tile.month {background:#e4f3ed}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .dash-tile.annual {background:#f7ecd1}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) :is(.dash-tile-label,.dash-tile-link) {color:#3c5750}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .dash-week-caption {background:#eff6f2}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .dash-meditation {background:#e5f3ec;border-color:#a3c7b6}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .dash-med-icon {background:#096452;color:#fff;border-color:#096452}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .reading-dialog-head {background:#fff}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .reading-lead {background:#f0f7f3;border-color:#a8c9b9}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) .reading-next {background:#e4f2ea}
:is(html[data-theme=light] .dashboard-page,.dashboard-page[data-theme=light]) :is(input,textarea)::placeholder {color:#546963}
.dashboard-page .talisman-caption {color:#fff}
.dashboard-page .dash-day[aria-pressed=true] {color:var(--ink)}
.form-options {margin:10px 0;border-bottom:1px solid var(--line);padding:0 0 6px}
.form-options summary {cursor:pointer;min-height:44px;padding:9px 0;color:var(--ink);font-weight:700}
.form-options :is(textarea,select,button) {margin-block:5px}
.birth-field {display:block;margin-top:12px}
.birth-field input {margin-top:4px}
#quick-selected {margin:10px 0;font-weight:700}
#quick-guest a {display:inline-flex;align-items:center;min-height:44px;color:var(--accent-strong);text-underline-offset:3px}
.return-grid form[hidden],.dashboard-page [hidden] {display:none}
#profile-onboarding {max-width:520px;margin:clamp(18px,5vw,52px) auto}
#profile-onboarding .reading-primary {width:100%}
#natal-form,#compatibility,#quick-question {scroll-margin-bottom:84px}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.advertise-shell {max-width:920px}
.advertise {padding:30px 0 48px}
.advertise > p {margin:8px 0 18px}
.ad-placements {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:10px;margin-bottom:16px}
.advertise h2 {font-size:1.1rem}
.advertise form {display:grid;gap:10px;margin:12px 0}
.advertise label {font-weight:700}
.advertise label :is(input,select,textarea) {margin-top:4px}
.advertise form button {justify-self:start}
.advertise #advertise-status:empty {display:none}

.skip-link {position:fixed;z-index:10;inset:8px auto auto 8px;transform:translateY(-200%);padding:9px 13px;background:var(--paper,#fff);color:var(--ink,#173e36);border:2px solid currentColor;border-radius:7px}
.skip-link:focus {transform:none}
.browse-menu {border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.browse-menu summary {cursor:pointer;padding:10px 13px;min-height:44px;font-weight:750}
.browse-menu .reading-links {padding:0 10px 10px}
.dash-period-cards {grid-template-columns:1fr}
.reading-copy + .reading-copy {margin-top:.75em}
.reading-topics .reading-block .reading-copy + .reading-copy {margin-top:.65em}
.reading-key {display:block;font-weight:750;margin-bottom:.45em}
.reading-topics {margin-top:.6rem}
.image-tools {margin:.65rem 0}
.image-tools > summary,.result-actions > summary {font-weight:750;cursor:pointer}
.image-tools .talisman-result {margin-top:.55rem}
.reading-actions a[download] {overflow-wrap:anywhere}
#daily-tags {display:flex;gap:6px;flex-wrap:wrap;margin-bottom:.4rem}
#daily-tags span {border-radius:999px;background:var(--layer);color:var(--ink);padding:3px 8px}
.play-actions [aria-pressed=true] {background:var(--accent);color:var(--accent-ink)}
.tarot-figure {margin:0 0 10px;border-radius:14px;background:#183a34;color:#fbebbb;padding:12px;text-align:center}
.tarot-emblem {display:grid;place-items:center;margin:0 auto 5px;width:100%;max-width:180px;aspect-ratio:3/2;background:radial-gradient(ellipse,#305f53,#142d29);border:1px solid #c5a86a;border-radius:12px;font-size:clamp(2.5rem,13vw,4rem);line-height:1}
@media(max-width:600px){.dash-title h1 {font-size:clamp(1.55rem,7vw,2rem)}}
@media(max-width:365px){.dash-shell {padding-inline:10px}.dash-header {gap:4px}.dash-brand {font-size:.88rem;gap:4px}.dash-brand-mark {width:25px;height:25px}.dash-actions {gap:3px}.dash-settings {min-width:42px}}
@media(prefers-reduced-motion:reduce){#reading-dialog[open]{animation:none}}

html[data-theme=light]:has(.dashboard-page) {background:#fcfbf7;color-scheme:light}
html[data-theme=dark]:has(.dashboard-page) {background:#100d1b;color-scheme:dark}
#week-date-reading {margin-top:.55rem}
#dash-detail-steps .reading-block {margin:.65rem 0}

.featured-fortunes {display:grid;gap:10px}
.seasonal-entries {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.seasonal-entry {position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:132px;padding:clamp(11px,3vw,29px);border:1px solid;border-radius:16px;text-decoration:none;word-break:keep-all}
.seasonal-entry > span:first-child,.seasonal-entry small {font-size:clamp(.71rem,2.5vw,.92rem)}
.seasonal-entry strong {font-family:TodaySerif,"Noto Serif KR",serif;font-size:clamp(1.1rem,4.4vw,2.35rem);line-height:1.2;letter-spacing:-.05em}
.seasonal-newyear {background:#fff0cb;color:#513609;border-color:#d4b466}
.seasonal-tojeong {background:#def3e8;color:#104a37;border-color:#9ac7ad}
.season-arrow,.daily-entry-arrow {font-size:1.1rem;line-height:1}
.season-arrow {margin-top:5px}
.daily-entry {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:9px 14px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--paper);text-decoration:none}
.daily-entry > span:first-child {display:flex;align-items:baseline;flex-wrap:wrap;gap:1px 12px}
.daily-entry small {color:var(--dim);font-size:.82rem}
.seasonal-entry:hover strong,.daily-entry:hover strong {text-decoration:underline;text-underline-offset:.15em}
.seasonal-entry:focus-visible,.daily-entry:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
[data-theme=dark] .seasonal-newyear {background:#342916;color:#ffe9b2;border-color:#926d36}
[data-theme=dark] .seasonal-tojeong {background:#123831;color:#d6f5e6;border-color:#477f69}
.choice-panel {margin-block:14px}
.choice-panel h2 {font-size:1.22rem;margin:0 0 4px}
.choice-panel > p:first-of-type {color:var(--dim)}
.choice-presets {margin:9px 0}
.choice-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
.choice-form :is(input,select) {width:100%;font-size:16px}
.choice-form button {align-self:end;justify-self:start}
.choice-basis {font-size:.84rem}
.choice-result {padding:10px 12px;margin-top:10px;border:1px solid var(--line);border-radius:11px;background:var(--layer);overflow-wrap:anywhere}
.choice-result p {margin:3px 0 0;color:var(--dim)}
.choice-result:empty,#choice-error:empty,#dash-date:empty {display:none}
@media(max-width:500px){.choice-form :is(#choice-context,button) {grid-column:1/-1}}

.profile-default-chip:not(:empty) {border:1px solid var(--line);padding:3px 8px;border-radius:999px;background:var(--layer)}
#profile-mode {font-weight:750;margin:.65rem 0}
.question-highlight {padding:12px;margin:8px 0 12px;border:1px solid var(--line);border-radius:13px;background:var(--layer)}
.question-highlight p {margin:0 0 8px}
.question-highlight button {text-align:left;justify-content:flex-start}
#quick-limit,.match-example {margin:.65rem 0;padding:9px 11px;border-left:3px solid var(--accent);background:var(--layer)}
.match-basis,#match-result .report-panel > small {color:var(--dim)}
.return-grid #compatibility {grid-column:1/-1}
.match-regions {min-width:0;margin:0;border:1px solid var(--line);border-radius:10px;padding:10px}
.match-regions legend {padding:0 4px;font-weight:700}
.match-regions legend small {color:var(--dim);font-weight:500}
.match-regions p {color:var(--dim);font-size:.86rem;margin:0 0 .5rem}
.match-regions div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#compatibility-form {display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
#compatibility-form :is(fieldset,button) {grid-column:1/-1}
#compatibility-form button {justify-self:start}
.image-tools .talisman-visual {min-height:0;width:min(100%,325px)}

.profile-fields {min-width:0;margin:12px 0;padding:9px;border:1px solid var(--line);border-radius:10px}
.profile-fields legend {padding:0 4px;font-weight:750}
.profile-fields .checkbox-row {display:flex;align-items:center;gap:6px;min-height:36px}
.profile-fields input[type=checkbox] {width:auto;margin:0}
.alert-hours {display:flex;flex-wrap:wrap;gap:4px 16px}
#profile-context label small,#profile-editor > label small {display:block;margin-top:4px;color:var(--dim)}
#profile-editor > label > small:first-of-type {display:inline}
.situation-note,.hour-visual {margin:10px 0;padding:12px;background:var(--layer);border:1px solid var(--line);border-radius:12px}
.situation-note h3,.hour-visual h4 {margin:0 0 5px}
.hour-visual {display:flex;align-items:center;gap:12px}
.hour-visual img {max-width:27%;height:auto;object-fit:contain}
.prominent-share {margin-top:12px}
.share-saju-status a,.reading-micro a {overflow-wrap:anywhere}
#saved-choices h3 {margin:12px 0 5px;font-size:1rem}
#saved-choice-list {list-style:none;padding:0;margin:0}
#saved-choice-list li {display:flex;gap:5px;margin:5px 0}
#saved-choice-list button:first-child {word-break:break-word}

.inquiry-panel {max-width:650px}
.advertise .inquiry-warning,.advertise #inquiry-privacy {margin:0;font-size:.9rem;color:var(--dim)}
.advertise .inquiry-consent {display:flex;align-items:flex-start;gap:8px}
.advertise .inquiry-consent input {width:auto;margin:5px 0 0}
.advertise #advertise-status {overflow-wrap:anywhere}
.privacy-sections {display:grid;gap:10px}
