
:root{color-scheme:dark;--bg:#0c0c18;--panel:#19172a;--panel2:#232039;--gold:#e5c28d;--text:#f5eef7;--muted:#b9b0ca;--line:#453b59}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0%,#29203c 0%,var(--bg) 48%);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}.wrap{max-width:1060px;margin:auto;padding:22px 16px 65px}header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 0 24px}h1,h2,h3{line-height:1.23}h1{font-size:clamp(29px,5vw,48px);margin:12px 0}h2{font-size:24px}h3{font-size:19px;margin:0 0 8px}.brand{font-size:23px;font-weight:800;letter-spacing:.18em;color:var(--gold)}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:.17em;text-transform:uppercase}.muted,small{color:var(--muted)}.hero{padding:34px;border:1px solid #655274;border-radius:24px;background:linear-gradient(125deg,#2a203b,#151424 75%);margin-bottom:22px}.tabs,.subtabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 24px}button,.btn{border:1px solid #6c587e;background:#28213b;color:var(--text);padding:11px 15px;border-radius:12px;font-weight:650;cursor:pointer}button:hover{border-color:var(--gold)}button.active,.primary{background:var(--gold);color:#21192a;border-color:var(--gold)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.card,.panel{border:1px solid var(--line);background:var(--panel);border-radius:19px;padding:21px;margin-bottom:15px}.card{display:flex;flex-direction:column;gap:9px}.card button{margin-top:auto}.tag{display:inline-block;border:1px solid #6d577c;border-radius:99px;padding:3px 10px;font-size:12px;color:var(--gold);width:max-content}.hidden{display:none!important}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.fields{display:grid;gap:12px}label{display:block;color:var(--gold);font-size:13px;margin-bottom:5px}input,select,textarea{background:#100f20;border:1px solid #5b4b6e;border-radius:10px;color:white;padding:12px;width:100%;font:inherit}textarea{min-height:125px}details{border:1px solid var(--line);padding:13px 16px;border-radius:12px;margin:8px 0;background:#201c30}summary{cursor:pointer;color:var(--gold);font-weight:650}details p{margin:10px 0 0}.notice{padding:14px 17px;border-left:3px solid var(--gold);background:#262137;border-radius:8px;margin:15px 0}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.stat{font-size:30px;color:var(--gold);font-weight:800}.palm{max-width:260px;width:100%;display:block;margin:10px auto}.palm path.line{fill:none;stroke:var(--gold);stroke-width:5;stroke-linecap:round;cursor:pointer}.palm path.line:hover{stroke:white}.tarot{width:100%;min-height:155px;font-size:40px;color:var(--gold);background:linear-gradient(145deg,#3d2850,#1a1833);border:1px solid #c8a66e}.tarot small{display:block;font-size:13px;color:#f4e4c8}.footer{color:#a69cb9;font-size:12px;padding-top:35px}.chapter{margin:22px 0 10px;color:var(--gold)}@media(max-width:640px){.two{grid-template-columns:1fr}.hero{padding:24px 20px}.wrap{padding:14px 12px 45px}button{font-size:14px}}

/* ASTRA atmospheric motion layer */
body{position:relative;isolation:isolate;background:radial-gradient(ellipse at 80% -10%,#38234e 0%,transparent 44%),radial-gradient(ellipse at 5% 75%,#211c3c 0%,transparent 43%),#0c0c18}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.36;background-image:radial-gradient(1px 1px at 11% 13%,#fff 99%,transparent),radial-gradient(2px 2px at 77% 27%,#eac88b 99%,transparent),radial-gradient(1px 1px at 49% 70%,#fff 99%,transparent),radial-gradient(1px 1px at 85% 86%,#f5d8a6 99%,transparent),radial-gradient(1px 1px at 30% 48%,#fff 99%,transparent);background-size:310px 290px;animation:starsDrift 32s linear infinite}
body:after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 50% 10%,rgba(184,130,221,.1),transparent 55%);animation:aurora 13s ease-in-out infinite alternate}
@keyframes starsDrift{to{background-position:65px 100px}}
@keyframes aurora{from{opacity:.3;transform:translateY(-2%)}to{opacity:1;transform:translateY(3%)}}
@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes shimmer{0%,100%{text-shadow:0 0 5px #b8935960}50%{text-shadow:0 0 18px #e5c28d88}}
@keyframes halo{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.hero{position:relative;overflow:hidden;box-shadow:0 15px 55px #0004}
.hero:after{content:"✧";position:absolute;right:6%;top:10%;font-size:130px;line-height:1;color:#d4aee0;opacity:.12;pointer-events:none;animation:halo 50s linear infinite}
.hero h1{background:linear-gradient(100deg,#fff3df,#e5c28d,#f7dcff);background-clip:text;-webkit-background-clip:text;color:transparent}
.brand{animation:shimmer 6s ease-in-out infinite}
.card,.panel,details{animation:appear .45s ease both;transition:border-color .25s,box-shadow .25s,transform .25s}
.card:hover{transform:translateY(-3px);border-color:#9374a7;box-shadow:0 10px 28px #0004}
details[open]{border-color:#9d80aa;box-shadow:inset 0 0 22px #9d80aa12}
button{transition:transform .18s,background .2s,border-color .2s,box-shadow .2s}
button:active{transform:scale(.97)}
button.primary:hover,.primary:hover{box-shadow:0 0 20px #e5c28d55}
.tarot{position:relative;overflow:hidden;transition:transform .45s,box-shadow .45s}
.tarot:hover{transform:perspective(500px) rotateY(8deg) translateY(-3px);box-shadow:0 0 30px #a37ac955}
.palm path.line{transition:stroke .25s,stroke-width .25s;filter:drop-shadow(0 0 3px #edc994)}
.palm path.line:hover{stroke-width:8;filter:drop-shadow(0 0 8px #f9dc9a)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.book-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-height:145px;padding:23px;background:linear-gradient(140deg,#211b39,#111525);border:1px solid #80673f;border-radius:17px;color:#f5e8d1;cursor:pointer;width:100%}.book-tile strong{font-size:21px}.book-tile small{color:#c6bfd2}.book-tile span:last-child{color:#e9c778}.book-icon{font-size:34px;color:#e9c778}.book-paragraph{border-bottom:1px solid #6a5a463b;padding:13px 0}.book-paragraph p{line-height:1.8} 
/* ASTRA v3: three visual worlds */
body{transition:background-color .65s ease,background-image .65s ease}
body.world-astro{--gold:#e7c77e;background:radial-gradient(ellipse at 75% 12%,#233d70 0%,#101a36 38%,#090d1c 85%);}
body.world-tarot{--gold:#f0bd89;background:radial-gradient(ellipse at 70% 10%,#63304e 0%,#2b132b 44%,#120c1a 90%);}
body.world-palm{--gold:#e8bb80;background:radial-gradient(ellipse at 70% 10%,#62472e 0%,#30231d 45%,#151117 90%);}
.world-stage{position:relative;overflow:hidden;border:1px solid #bfa16c77;border-radius:22px;min-height:170px;margin:14px 0 20px;padding:28px 22px;background:linear-gradient(125deg,#ffffff0b,#00000044);text-align:center;isolation:isolate}
.world-stage h2{font-family:Georgia,serif;font-size:clamp(26px,5vw,43px);margin:10px 0;color:#f5dba7}
.world-stage p{color:#e1d4c5;margin:0}.world-stage .sigil{font-size:46px;display:inline-block;color:#f4cf8b;text-shadow:0 0 22px #f7cb7eaa;animation:astraFloat 5s ease-in-out infinite}
.world-stage:before{content:'';position:absolute;inset:-60%;z-index:-1;background:repeating-conic-gradient(from 0deg,#eac17e13 0deg 2deg,transparent 2deg 25deg);animation:astraSpin 90s linear infinite}
.world-astro .world-stage{background:radial-gradient(circle at center,#344b86a6,#10152dd9)}
.world-tarot .world-stage{background:radial-gradient(circle at center,#713954a6,#230e24eb)}
.world-palm .world-stage{background:radial-gradient(circle at center,#7a5636a6,#2b1c1aeb)}
.world-astro .book-tile:hover,.world-tarot .book-tile:hover,.world-palm .book-tile:hover{box-shadow:0 0 25px #dfb87944;transform:translateY(-3px)}
.book-tile{transition:transform .3s,box-shadow .3s}.world-stage .ornament{letter-spacing:12px;opacity:.7}
@keyframes astraSpin{to{transform:rotate(360deg)}}@keyframes astraFloat{50%{transform:translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.world-stage:before,.world-stage .sigil{animation:none}body,.book-tile{transition:none}}


html{scroll-padding-top:90px}button,input,select{min-height:44px}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ffe0a6;outline-offset:4px}p{overflow-wrap:anywhere;white-space:pre-line}.tabs{position:sticky;top:0;background:#100e20f5;z-index:10;padding:10px 0;backdrop-filter:blur(14px)}.reading-tools{position:sticky;top:80px;z-index:5;background:#19172af5;padding:12px;border:1px solid var(--line);border-radius:12px}.reading-tools input{margin-bottom:8px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#e5c28d;color:#21192a;padding:12px 22px;border-radius:12px;z-index:100;max-width:90vw}.status{color:var(--gold)}.panel,.card,.two>*{min-width:0}a{color:var(--gold)}@media(max-width:640px){.tabs{flex-wrap:nowrap;overflow-x:auto}.tabs button{flex-shrink:0}.reading-tools{top:76px}.hero h1{font-size:35px}.grid{grid-template-columns:1fr}header .tag{white-space:normal;width:auto}.panel{padding:17px}.subtabs{flex-wrap:nowrap;overflow-x:auto}.subtabs button{flex-shrink:0}}@media print{.hero,.tabs,.subtabs,button,.reading-tools,.footer,header{display:none!important}body{background:white;color:black}.panel,details{background:white;color:black;box-shadow:none;break-inside:avoid}summary,h2{color:#333}details:not([open])>*:not(summary){display:block}}


.quick-menu{position:sticky;top:0;z-index:60;background:rgba(18,15,35,.97);border:1px solid rgba(215,179,107,.4);border-radius:15px;padding:10px 12px;margin:12px 0 18px;box-shadow:0 8px 26px rgba(0,0,0,.35);backdrop-filter:blur(12px)}
.quick-menu-title{color:#e9c988;font-size:12px;font-weight:800;letter-spacing:.07em;margin:0 0 7px}
.quick-menu-scroll{display:flex;gap:7px;overflow-x:auto;align-items:center;padding-bottom:3px;scrollbar-width:thin}
.quick-menu-scroll .quick-link,.quick-chapter{flex-shrink:0;border:1px solid rgba(215,179,107,.4);border-radius:9px;padding:10px 12px;background:#27213d;color:#f5e8ce;font-size:13px;cursor:pointer;min-height:42px}
.quick-menu-scroll .quick-active{background:#8b6839;color:white;border-color:#e9c988}
.quick-chapter{max-width:210px}
@media(max-width:640px){.quick-menu{top:0;margin:8px 0 12px}.quick-menu-scroll .quick-link,.quick-chapter{font-size:12px;padding:9px}}


:root{--v4-gold:#b8935d}body{transition:background .65s ease,color .4s ease;background:#f2ede5;color:#342f2b}body:before{opacity:.08!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .hero{background:linear-gradient(145deg,#fffaf2,#e9dfd0)!important;color:#332e29!important;border:1px solid #d8c9b3!important;box-shadow:0 18px 60px #58462c18!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .hero h1,body:not(.world-astro):not(.world-tarot):not(.world-palm) .hero .eyebrow{color:#715437!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .hero p{color:#64584c!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .panel,body:not(.world-astro):not(.world-tarot):not(.world-palm) .card{background:#fffaf2!important;color:#3d352e!important;border-color:#ded0bd!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .panel p,body:not(.world-astro):not(.world-tarot):not(.world-palm) .card p{color:#54493e!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) h1,body:not(.world-astro):not(.world-tarot):not(.world-palm) h2,body:not(.world-astro):not(.world-tarot):not(.world-palm) h3{color:#5b4534}body:not(.world-astro):not(.world-tarot):not(.world-palm) .tabs{background:#e9e0d4f5!important}body:not(.world-astro):not(.world-tarot):not(.world-palm) .tabs button{color:#503e31!important}body.world-astro{background:#101f3c!important;--gold:#e4ba65!important}body.world-tarot{background:#39172f!important;--gold:#f0b978!important}body.world-palm{background:#253c35!important;--gold:#e8bc7c!important}body.world-astro .panel,body.world-astro .card{background:#1b345b!important}body.world-tarot .panel,body.world-tarot .card{background:#562642!important}body.world-palm .panel,body.world-palm .card{background:#365348!important}body.world-astro .world-stage{background:radial-gradient(ellipse at 50% 40%,#294d82,#101f3c)!important}body.world-tarot .world-stage{background:radial-gradient(ellipse at 50% 40%,#753b60,#39172f)!important}body.world-palm .world-stage{background:radial-gradient(ellipse at 50% 40%,#4b6b54,#253c35)!important}.world-stage{position:relative;overflow:hidden;animation:revealWorld .6s ease both}.world-stage:after{content:'✧       ·       ✦       ·       ✧';position:absolute;bottom:9px;left:0;width:100%;text-align:center;opacity:.35;letter-spacing:16px;pointer-events:none}.world-stage .sigil{animation:sigilGlow 5s ease-in-out infinite alternate}.quick-menu{top:0!important}.astra-mode{position:fixed;bottom:18px;right:16px;z-index:200;border-radius:999px!important;padding:11px 16px!important;background:#e5c58d!important;color:#26222a!important;box-shadow:0 7px 28px #0006;font-weight:700}.astra-progress{height:3px;background:#ffffff24;border-radius:8px;overflow:hidden;margin-top:8px}.astra-progress>span{display:block;height:100%;background:#e5c58d;transition:width .4s}.astra-breadcrumb{font-size:12px;opacity:.85;letter-spacing:.04em;margin:0 0 7px}.astra-reading{background:#f3eee5!important;color:#302e2b!important}.astra-reading .panel,.astra-reading .card,.astra-reading .world-stage{background:#fffdf8!important;color:#302e2b!important;border-color:#d9cdbb!important}.astra-reading .panel h1,.astra-reading .panel h2,.astra-reading .panel h3,.astra-reading .panel p,.astra-reading .panel b,.astra-reading .world-stage h2,.astra-reading .world-stage p{color:#302e2b!important}.astra-reading .world-stage .sigil{animation:none}.astra-reading .quick-menu{background:#eee5d8!important}.astra-reading .quick-link,.astra-reading .quick-chapter{background:#fff9f0!important;color:#382f2b!important}.astra-reading .quick-active{background:#b8935d!important;color:#fff!important}.astra-reading .panel p{font-size:1.08rem;line-height:1.85}.astra-reading .world-stage:after{display:none}@keyframes revealWorld{from{opacity:.4;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes sigilGlow{from{filter:drop-shadow(0 0 3px #e5c58d55)}to{filter:drop-shadow(0 0 19px #e5c58dcc)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:640px){.astra-mode{bottom:12px;right:10px;font-size:12px}}


/* Quiet personal identity; chapter content remains the visual focal point. */
.astra-person-header{text-align:center;padding:24px 22px 20px!important;margin-top:14px;margin-bottom:13px!important}
.astra-person-header .eyebrow{font-size:10px;letter-spacing:.19em;opacity:.75}
.astra-person-name{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(21px,3.2vw,29px);line-height:1.35;letter-spacing:.025em;color:#e7dccb;margin:10px 0 12px;text-wrap:balance}
.astra-person-rule{width:46px;height:1px;background:currentColor;opacity:.33;margin:0 auto 10px}
.astra-person-meta{font-size:12px;opacity:.75;margin:0!important;line-height:1.5}
body:not(.world-astro):not(.world-tarot):not(.world-palm) .astra-person-name{color:#685443}
body.world-astro .astra-person-name{color:#e2dcd0}
body.world-tarot .astra-person-name{color:#f0dedb}
body.world-palm .astra-person-name{color:#e7dfce}
.astra-reading .astra-person-name{color:#54493d!important}
@media(max-width:640px){.astra-person-header{padding:18px 15px 16px!important}.astra-person-name{font-size:23px}.astra-person-meta{font-size:11px}}


/* v6: one quiet navigation bar and one contextual chapter chooser */
body.astra-client .hero,body.astra-client nav.tabs{display:none!important}
body.astra-client .wrap>header{padding:4px 0 8px}
.astra-v6-bar{position:sticky;top:0;z-index:110;display:flex;align-items:center;gap:9px;padding:9px 10px;margin:6px 0 17px;border-radius:15px;background:rgba(19,30,48,.97);border:1px solid #a58c6655;box-shadow:0 8px 26px #0003;backdrop-filter:blur(12px)}
.astra-v6-bar button{padding:8px 11px;min-width:43px;min-height:43px;background:transparent;border:1px solid #b8a17766;color:#f0e3c9}
.astra-v6-center{flex:1;text-align:center;min-width:0}.astra-v6-center small{display:block;color:#d6bb86;font-size:10px;letter-spacing:.14em}.astra-v6-center strong{display:block;font-weight:550;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff4e3}
.astra-v6-menu{position:fixed;inset:0;z-index:300;display:none;background:#080c14b8;padding:16px;align-items:center;justify-content:center}.astra-v6-menu.open{display:flex}
.astra-v6-dialog{width:min(470px,100%);max-height:85vh;overflow:auto;background:#f4eee5;color:#312e2b;border-radius:20px;padding:20px;box-shadow:0 24px 80px #0009}.astra-v6-dialog h2{color:#3e362e!important;margin:0 0 14px}.astra-v6-dialog button{display:block;width:100%;text-align:left;background:#fffaf2;color:#45382b;border:1px solid #dfcfb9;margin:7px 0;padding:13px;border-radius:12px}.astra-v6-dialog button:hover{background:#eadcc7}.astra-v6-dialog .close{width:auto;margin-left:auto;background:#e6d9c8}
.astra-v6-home{display:grid;gap:12px}.astra-v6-tile{display:block;width:100%;text-align:left;border-radius:18px;padding:21px;border:1px solid #c7a87555;color:#fff7ea!important}.astra-v6-tile b{display:block;font-size:22px;font-weight:550}.astra-v6-tile span{display:block;font-size:13px;opacity:.85;margin-top:5px}.astra-v6-tile.astro{background:#253c61}.astra-v6-tile.tarot{background:#562642}.astra-v6-tile.palm{background:#365348}.astra-v6-tile:focus-visible{outline:3px solid #f3ca75}
.astra-v6-identity{text-align:center;padding:14px 0 22px}.astra-v6-identity .eyebrow{color:#b99b6e}.astra-v6-identity .astra-person-name{font-size:clamp(21px,3vw,27px);font-weight:400;letter-spacing:.025em}
body.astra-client .world-stage{margin-top:8px}body.astra-client .astra-mode{z-index:130}
@media(max-width:600px){.astra-v6-dialog{padding:15px}.astra-v6-bar{margin-top:0}.astra-v6-tile{padding:18px}}


/* Readable planet interpretations across all themes and mobile screens */
.natal-experience .natal-detail, .natal-experience #natal-planet-detail {background:#fffaf1!important;color:#24262b!important;border:1px solid #d8c9ae!important;}
.natal-experience .natal-detail h3,.natal-experience #natal-planet-detail h3 {color:#33291f!important;opacity:1!important;}
.natal-experience .natal-detail p,.natal-experience .natal-detail p b,.natal-experience #natal-planet-detail p,.natal-experience #natal-planet-detail b {color:#24262b!important;opacity:1!important;text-shadow:none!important;font-size:clamp(16px,2.3vw,18px)!important;line-height:1.75!important;}
.natal-experience .natal-planet-picker button {color:#fff5e4!important;background:#253954!important;border-color:#bba373!important;opacity:1!important;}
.natal-experience .natal-planet-picker button[aria-pressed="true"] {background:#e5c88b!important;color:#172337!important;font-weight:700!important;}
.astra-reading .natal-experience .natal-planet-picker button {color:#2c261f!important;background:#f7ebd8!important;}
.astra-reading .natal-experience .natal-planet-picker button[aria-pressed="true"] {background:#8b683d!important;color:white!important;}


/* Consistent high contrast for every master's content, not just the planet widget. */
body.world-astro:not(.astra-reading),body.world-tarot:not(.astra-reading),body.world-palm:not(.astra-reading){color:#f7f2e9!important;--text:#f7f2e9;--muted:#d8d5d0}
body.world-astro:not(.astra-reading) #app .panel,body.world-astro:not(.astra-reading) #app .card{background:#1b345b!important;color:#f7f2e9!important}
body.world-tarot:not(.astra-reading) #app .panel,body.world-tarot:not(.astra-reading) #app .card{background:#562642!important;color:#fff4ee!important}
body.world-palm:not(.astra-reading) #app .panel,body.world-palm:not(.astra-reading) #app .card{background:#365348!important;color:#fff7e9!important}
body:is(.world-astro,.world-tarot,.world-palm):not(.astra-reading) #app :is(.panel,.card,.world-stage,.notice,details,.chapter-content,.chapter-body,.chapter-page) :is(h1,h2,h3,h4,h5,p,li,blockquote,strong,b,small,summary),
body:is(.world-astro,.world-tarot,.world-palm):not(.astra-reading) #app :is(.panel,.card,.world-stage,.notice,details,.chapter-content,.chapter-body,.chapter-page){color:#fff6e9!important;text-shadow:none!important;opacity:1!important}
body:is(.world-astro,.world-tarot,.world-palm):not(.astra-reading) #app :is(.panel,.card,.world-stage,.notice,details) .muted{color:#e2d8ca!important}
/* Light interpretation widgets must retain dark text, regardless of their ancestors. */
body #app .natal-experience :is(.natal-detail,#natal-planet-detail),body #app .natal-experience :is(.natal-detail,#natal-planet-detail) *{color:#24262b!important;text-shadow:none!important}
body #app .natal-experience .natal-planet-picker button{color:#fff5e4!important}
body #app .natal-experience .natal-planet-picker button[aria-pressed=true]{color:#172337!important}
/* Reading mode applies to all chapter cards and text. */
body.astra-reading #app :is(.panel,.card,.world-stage,.notice,details,.chapter-content,.chapter-body,.chapter-page){background:#fffaf1!important;color:#282827!important;border-color:#d6c8b2!important}
body.astra-reading #app :is(.panel,.card,.world-stage,.notice,details,.chapter-content,.chapter-body,.chapter-page) :is(h1,h2,h3,h4,p,li,b,strong,small,summary){color:#282827!important;text-shadow:none!important;opacity:1!important}
body.astra-reading #app .natal-planet-picker button{background:#f0e1ca!important;color:#292620!important}
body.astra-reading #app .natal-planet-picker button[aria-pressed=true]{background:#80613c!important;color:#fff!important}
/* Small screens: reading control must not cover content. */
.astra-mode{position:sticky!important;bottom:10px!important;right:auto!important;left:auto!important;display:block!important;margin:16px 0 16px auto!important;width:max-content;max-width:100%;z-index:25!important}
@media(max-width:640px){#app :is(.panel,.card,details) p{line-height:1.7} .astra-mode{font-size:13px!important;padding:9px 13px!important}}


.natal-experience{max-width:900px;margin:auto}.natal-intro{text-align:center;margin:16px 0 20px}.natal-intro .subtle{color:#d4c7b3;font-size:13px;letter-spacing:.12em}.natal-intro h2{font-family:Georgia,serif;font-size:clamp(27px,5vw,39px);font-weight:400;margin:8px 0;color:#f4e5c8}.natal-orbit-panel{background:radial-gradient(ellipse at 50% 45%,#203b67,#101b33 70%)!important;border:1px solid #a88b5a66!important;border-radius:24px;padding:16px 12px 20px;overflow:hidden}.natal-wheel{display:block;max-width:440px;width:100%;margin:auto;filter:drop-shadow(0 0 25px #b9975030)}.natal-wheel .ring{fill:none;stroke:#d5b878;stroke-width:1;opacity:.7}.natal-wheel .orbit{fill:none;stroke:#b3c9f2;stroke-width:.7;opacity:.3;stroke-dasharray:2 7}.natal-wheel .rays{stroke:#d4b979;stroke-width:.6;opacity:.36}.natal-wheel .star{fill:#f9e4ad}.natal-wheel .glyph{font-family:Georgia,serif;fill:#e8d2a0;font-size:17px;text-anchor:middle;dominant-baseline:middle}.natal-wheel .planet-dot{fill:#f2d69a;stroke:#fff0c5;stroke-width:1.5}.natal-wheel .planet-node{cursor:pointer;outline:none}.natal-wheel .planet-node:focus .planet-dot,.natal-wheel .planet-node:hover .planet-dot,.natal-wheel .planet-node.chosen .planet-dot{fill:#fff8d9;stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 8px #f5c76c)}.natal-wheel .planet-node .halo{fill:#e8bd63;opacity:.12}.natal-wheel .planet-node.chosen .halo{opacity:.35}.natal-wheel .wheel-core{fill:#f6d79c;filter:drop-shadow(0 0 8px #e4b764)}.natal-wheel .slow-turn{transform-origin:200px 200px;animation:astraOrbit 100s linear infinite}@keyframes astraOrbit{to{transform:rotate(360deg)}}.natal-planet-picker{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:15px 0}.natal-planet-picker button{background:#ffffff0d;color:#eadfcb;border:1px solid #bca37166;border-radius:99px;padding:9px 13px;font-size:13px}.natal-planet-picker button[aria-pressed=true]{background:#d7b879;color:#18243a;border-color:#e6cf9d}.natal-detail{background:#f7f1e7;color:#302d2a;border-radius:16px;padding:20px;min-height:135px;box-shadow:0 8px 24px #0002}.natal-detail h3{color:#5c4831!important;margin:0 0 7px;font-family:Georgia,serif;font-weight:400;font-size:23px}.natal-detail p{color:#403a32!important;margin:6px 0;line-height:1.65}.natal-follow{margin-top:16px}.natal-follow .panel{margin:0 0 12px}.natal-note{font-size:12px;color:#d4c7b3;text-align:center;margin-top:12px}.astra-reading .natal-orbit-panel{background:#ece4d7!important}.astra-reading .natal-intro h2,.astra-reading .natal-intro .subtle,.astra-reading .natal-note{color:#57483b!important}.astra-reading .natal-planet-picker button{color:#433528;background:#fff9f0}.astra-reading .natal-planet-picker button[aria-pressed=true]{background:#a17e4c;color:#fff}@media(prefers-reduced-motion:reduce){.natal-wheel .slow-turn{animation:none}}@media(max-width:520px){.natal-orbit-panel{padding:12px 8px}.natal-detail{padding:16px}.natal-planet-picker button{padding:8px 11px}}
/* Server integration: preserve v9 worlds while keeping real forms readable. */
.v9-staging-label{font-size:12px;color:#68513b;text-align:center;margin:10px 0}.topbar{gap:12px}.topbar form{margin:0}.topbar button{min-height:44px}.astra-client .world-stage{margin-bottom:18px}.astra-client #v9-book:focus{outline:none}.natal-wheel .planet-node .glyph{fill:#16243b;font-size:17px}.world-stage:empty{display:none}.astra-v6-tile strong{display:block;font-size:22px;font-weight:550}.astra-v6-tile{min-height:100px}.book-tile{width:100%;text-align:left}.book-tile strong,.book-tile span{display:block}.book-tile span{margin-top:7px}.book-paragraph p{white-space:pre-wrap}.palm-card-art{max-width:270px}.astra-v6-menu:not(.open){display:none}.astra-v6-menu .astra-v6-dialog{overscroll-behavior:contain}.astra-v6-menu .astra-v6-dialog button strong{font-weight:600}.astra-v6-menu .astra-v6-dialog button span{display:block}.astra-reading .v9-staging-label{color:#68513b}body.world-astro:not(.astra-reading) .v9-staging-label,body.world-tarot:not(.astra-reading) .v9-staging-label,body.world-palm:not(.astra-reading) .v9-staging-label{color:#e2d8ca}body:not(.world-astro):not(.world-tarot):not(.world-palm) .muted{color:#675a4e}body:not(.world-astro):not(.world-tarot):not(.world-palm) label{color:#6b5034}body:not(.world-astro):not(.world-tarot):not(.world-palm) details{background:#fffaf2;color:#342f2b;border-color:#d8c9b3}body:not(.world-astro):not(.world-tarot):not(.world-palm) summary{color:#6b5034}body:not(.world-astro):not(.world-tarot):not(.world-palm) a{color:#6b5034}body:not(.world-astro):not(.world-tarot):not(.world-palm) .brand{color:#6b5034}body:not(.world-astro):not(.world-tarot):not(.world-palm) .tag{color:#6b5034;border-color:#ab9273}body:not(.world-astro):not(.world-tarot):not(.world-palm) .notice{background:#e8ddce;color:#44382d}.astra-v6-bar .astra-v6-center strong{color:#fff4e3!important}body.astra-reading .astra-v6-bar .astra-v6-center strong{color:#fff4e3!important}body.astra-client:not(.world-astro):not(.world-tarot):not(.world-palm) .astra-v6-tile strong,body.astra-client:not(.world-astro):not(.world-tarot):not(.world-palm) .astra-v6-tile span{color:#fff6e9!important}body.astra-client .astra-v6-home .astra-v6-tile.tarot{font-size:16px;min-height:100px}body.astra-reading .natal-wheel .glyph{fill:#26354a}body.astra-reading .natal-wheel .ring{stroke:#856734}body.astra-reading .natal-wheel .rays{stroke:#856734}body.astra-reading .natal-wheel .orbit{stroke:#52729c}.astra-mode{position:static!important;margin-top:20px!important}body.astra-client .footer{color:#675a4e}body.astra-client:is(.world-astro,.world-tarot,.world-palm):not(.astra-reading) .footer{color:#e2d8ca}@media(max-width:430px){.astra-v6-bar{gap:5px;padding:8px 6px}.astra-v6-bar button{padding:8px;min-width:44px}.astra-v6-center strong{font-size:13px}.natal-planet-picker button{min-height:44px}.world-stage{padding:20px 12px}.world-stage .sigil{font-size:52px}.astra-v6-dialog{max-height:80dvh}}@media print{.astra-v6-bar,.astra-mode,.v9-staging-label,.topbar,.tabs{display:none!important}#v9-book .panel{color:#111!important;background:#fff!important}}

.book-tile[hidden]{display:none!important}

body:not(.world-astro):not(.world-tarot):not(.world-palm) .astra-v6-identity .eyebrow{color:#795b32}body:not(.world-astro):not(.world-tarot):not(.world-palm) .tabs a,body:not(.world-astro):not(.world-tarot):not(.world-palm) a.btn{background:#fffaf2;color:#503e31;border:1px solid #bba68c}body:not(.world-astro):not(.world-tarot):not(.world-palm) .tabs a[aria-current=page]{background:#80613c;color:#fff}body .astra-v6-dialog .close{min-height:44px}
/* Correct specificity in reading mode: worlds must not keep a dark page behind dark text. */
body.astra-reading{background:#f3eee5!important;color:#302e2b!important}body.astra-reading .brand,body.astra-reading .role,body.astra-reading .footer,body.astra-reading .tag{color:#67513b!important}body.astra-reading .natal-wheel .slow-turn{animation:none}body.astra-reading .natal-intro h2,body.astra-reading .natal-note{color:#57483b!important}
/* The v6 chapter chooser uses compact rows, not full-size home tiles. */
.astra-v6-dialog .book-tile{min-height:44px!important;height:auto!important;display:block;padding:13px!important}.astra-v6-dialog .book-tile strong{font-size:16px!important;line-height:1.4}.astra-v6-dialog .book-tile span{display:none}
body.astra-reading #app .muted,body.astra-reading #app .natal-intro p{color:#675a4e!important}body.astra-reading #app .book-tile{background:#fffaf1!important;color:#282827!important;border-color:#d6c8b2!important}body.astra-reading #app .book-tile strong,body.astra-reading #app .book-tile span{color:#282827!important}

.chapter-editor-section{border-bottom:1px solid #d8c9b3;padding:16px 0;margin-bottom:16px}.chapter-editor-section textarea{min-height:180px}

#v9-fallback[hidden]{display:none!important}
/* Server-created Tarot and palm materials follow the same reading palette. */
body.astra-reading #app .tarot-reading-card{background:#fffaf1!important;color:#282827!important;border-color:#d6c8b2!important}body.astra-reading #app .tarot-reading-card figcaption,body.astra-reading #app .tarot-reading-card figcaption span,body.astra-reading #app .palm-figure figcaption,body.astra-reading #app .tarot-credit{color:#675a4e!important}body.astra-reading #app .tarot-position{color:#6b5034!important;border-color:#ab9273!important}body.astra-client{transition:none}

/* Home navigation is not a palm illustration or a rotating Tarot card. */
.astra-v6-home .astra-v6-tile.palm{max-width:none;margin:0}.astra-v6-home .astra-v6-tile.tarot:hover{transform:translateY(-3px)}

/* A master inspecting a book must retain the server-authorized studio navigation. */
body.astra-master.astra-client nav.tabs{display:flex!important}body.astra-master nav.tabs{position:static;flex-wrap:wrap;overflow:visible;gap:8px;background:#f2ede5;padding:10px;border:1px solid #d6c8b2;border-radius:14px}body.astra-master nav.tabs a,body.astra-master .master-book-tools a{display:inline-flex;align-items:center;min-height:44px;padding:9px 13px;border-radius:10px;background:#fffaf2!important;color:#503e31!important;border:1px solid #bba68c;text-decoration:none;font-weight:650}body.astra-master nav.tabs a[aria-current=page],body.astra-master .master-book-tools .master-studio-link{background:#80613c!important;color:#fff!important}body.astra-master .master-book-tools{margin:12px 0;gap:8px}body.astra-master .master-book-tools .tag{color:#503e31;background:#fffaf2;border-color:#bba68c}@media(max-width:430px){body.astra-master nav.tabs a{font-size:14px;padding:8px 10px}.master-book-tools .master-studio-link{flex-basis:100%;justify-content:center}}

/* Mobile studio: a multiline action is one box, not an inline border per line. */
body #app a.btn{display:inline-flex;align-items:center;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.45}
body #app p>a.btn{display:flex;width:fit-content}
/* Keep full Tarot interpretations readable inside the dark nested card. */
body:not(.astra-reading) #app .tarot-reading-card,body:not(.astra-reading) #app .tarot-reading-card :is(h1,h2,h3,h4,p,li,b,strong){color:#fff6e9!important;text-shadow:none!important;opacity:1!important}
body:not(.astra-reading) #app .tarot-reading-card figcaption{color:#f0d396!important}
body:not(.astra-reading) #app .tarot-reading-card figcaption span,body:not(.astra-reading) #app .tarot-position{color:#ded3e5!important}
body:not(.astra-reading) #app .tarot-credit{color:#675a4e!important}
body:is(.world-astro,.world-tarot,.world-palm):not(.astra-reading) #app .tarot-credit{color:#e2d8ca!important}
body:not(.world-astro):not(.world-tarot):not(.world-palm) .topbar .role{color:#675a4e!important}

/* Muted captions must also be readable in the neutral studio and reading mode. */
body:not(.world-astro):not(.world-tarot):not(.world-palm){--muted:#675a4e}
body.astra-reading{--muted:#675a4e}
body:not(.world-astro):not(.world-tarot):not(.world-palm) .footer,body:not(.world-astro):not(.world-tarot):not(.world-palm) .palm-figure figcaption{color:#675a4e!important}
/* Selection changes update foreground and background together, without a low-contrast transition. */
.natal-planet-picker button,.palm-tabs button{transition:transform .18s,box-shadow .2s}
.astra-v6-dialog a{display:block;max-width:100%;padding:13px;margin:7px 0;border:1px solid #dfcfb9;border-radius:12px;background:#fffaf2;color:#45382b!important;text-decoration:none;font-weight:650;overflow-wrap:anywhere}.astra-v6-dialog a:focus-visible{outline:3px solid #80613c;outline-offset:2px}
/* If script bundles fail, the server fallback still exposes every released palm interpretation. */
#v9-fallback .palm-state[hidden]{display:grid!important}#v9-fallback .palm-tabs,#v9-fallback .palm-navigation{display:none!important}

.mcp-permission{display:flex;align-items:flex-start;gap:10px}.mcp-permission input[type=checkbox]{width:22px;min-width:22px;min-height:22px;margin:2px 0}.row code{overflow-wrap:anywhere}

.mcp-permission{min-height:44px;cursor:pointer}

/* Subscription controls preserve the v9 neutral studio. */
.subscription-card{min-width:0}.subscription-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}.subscription-dates{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:10px}.subscription-dates dd{margin:0;overflow-wrap:anywhere}.subscription-status{display:inline-block;padding:8px 12px;border:1px solid #8c7354;border-radius:12px;color:#493c2b;background:#f4ead9}.subscription-danger{padding:14px 0;border-top:1px solid #c8b9a6}.subscription-card button,.subscription-card summary{min-height:44px}.subscription-entry{margin:14px 0}.subscription-card details{margin-block:14px}.subscription-card .mcp-permission{color:#493c2b}@media(max-width:480px){.subscription-dates{grid-template-columns:1fr;gap:6px}.subscription-dates dd{margin-bottom:12px}.subscription-actions form,.subscription-actions button{width:100%}}

.subscription-card fieldset{min-width:0;margin:0}.subscription-card label{overflow-wrap:anywhere}
