.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:7px;border:0;border-radius:50%;background:transparent;color:var(--gold);cursor:pointer}.theme-toggle:hover{background:var(--line)}.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
:root[data-theme=light]{color-scheme:light;--bg:#f7f4ef;--surface:#fffdf9;--ivory:#29242d;--gold:#886035;--muted:#6c6470;--line:rgba(70,49,32,.17)}
:root[data-theme=light] body{background:var(--bg);color:var(--ivory)}
:root[data-theme=light] .sidebar{background:#f0ebe4}
:root[data-theme=light] :is(.brand,.mobile-brand,.header-mood,.sidebar nav a,.sidebar-footer,.back-link,.workspace-label,.art-credit,.app-footer,.language-picker select){color:var(--muted)}
:root[data-theme=light] .sidebar nav a:is(:hover,[aria-current=page]){background:#e5d9c9;color:#573d26}
:root[data-theme=light] :is(.controls,.discovery-panel,.dreams-list-panel,.settings-card,.lunar-event,.symbol-explanation,.reading-entry,.palm-report,.palm-upload,.upload-card){background:var(--surface);border-color:var(--line);color:var(--ivory)}
:root[data-theme=light] :is(input,select,textarea){background:#fffcf7;color:#29242d;border-color:#cec2b6}
:root[data-theme=light] :is(input,textarea)::placeholder{color:#817888}
:root[data-theme=light] :is(.form-note,.settings-card p,.section-heading>p,.control-heading p,.controls label,.card-position,.dream-entry time,.lunar-event time,.lunar-event p){color:var(--muted)}
:root[data-theme=light] .button.secondary{background:transparent;border-color:#b7a28a;color:#684c30}
:root[data-theme=light] .button.primary{background:#765333;border-color:#765333;color:#fffaf3}
:root[data-theme=light] .sound-toggle{border-color:#cdbfad;color:#675640;background:#fffaf5}
:root[data-theme=light] .experience{background:#fffcf7;border-color:#d7cbbc;box-shadow:0 8px 30px #58412a08;color:#29242d}
:root[data-theme=light] .experience :is(h3,p,.experience-top){color:inherit}
:root[data-theme=light] .experience p{color:#6c6470}
:root[data-theme=light] .experience-art{opacity:.45}
:root[data-theme=light] :is(.portal-hero,.art-panel){--gold:#dec39f;--muted:#c8bdcb;color:#f3eee5}
:root[data-theme=light] .portal-hero :is(h1,p,.eyebrow,.portal-caption){color:#f3eee5}
:root[data-theme=light] .art-caption{color:#d6c5b0}
:root[data-theme=light] .bottom-nav{background:#fffaf2ef}
:root[data-theme=light] .bottom-nav a{color:#716774}
:root[data-theme=light] .bottom-nav a[aria-current=page]{color:#765333}
:root[data-theme=light] :is(.account-dialog,.wait-popup,dialog){background:#fffaf4;color:#29242d;border-color:#cdbda9;box-shadow:0 20px 80px #51402b30}
:root[data-theme=light] :is(.account-close,.wait-close,.wait-popup p,.wait-popup small){color:#6c6470}
:root[data-theme=light] :is(.account-dialog,.wait-popup) h3{color:#29242d}
:root[data-theme=light] .account-dialog .settings-card{background:transparent}
:root[data-theme=light] :is(.account-dialog,dialog)::backdrop{background:#3b302766}
:root[data-theme=light] .tarot-card{color:#29242d}
:root[data-theme=light] :is(.reading-history summary,.reading-entry summary){color:#745431}
@media(max-width:760px){.header-tools{gap:5px}.theme-toggle{width:32px;height:34px;padding:6px}}

@media(max-width:760px){.header-tools .sound-toggle{font-size:0;width:28px;height:32px;padding:5px;border:0}.header-tools .sound-toggle:before{content:'';display:block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 9h4l5-5v16l-5-5H3zM15 7l1-1a9 9 0 0 1 0 12l-1-1a7 7 0 0 0 0-10z'/%3E%3C/svg%3E") center/contain no-repeat}.header-tools .sound-toggle[aria-pressed=false]:before{opacity:.4}}

:root[data-theme=light] .wait-popup{background:linear-gradient(135deg,#fffdf8f5,#f5ede3f5);border-color:#cdbda980;box-shadow:0 18px 60px #51402b20,inset 0 1px #fff}:root[data-theme=light] .wait-emblem{background:#a77d3f08;border-color:#a77d3f30}:root[data-theme=light] .wait-brand{color:#8d693d}
