/* Cosmos: scoped visual system for the existing Kuddit web shell. */
.cosmos-page{--cx-bg:#0b1322;--cx-panel:#101c2e;--cx-line:#2a3b51;--cx-gold:#dec08b;--cx-text:#e9edf4;--cx-muted:#a4b3c8;--cx-focus:#f4d49a;color:var(--cx-text);background:radial-gradient(ellipse at 86% 1%,#283347 0,transparent 36%),radial-gradient(ellipse at 8% 44%,#14263d 0,transparent 42%),var(--cx-bg);border:1px solid #26384e;border-radius:22px;overflow:hidden;margin:24px 0 48px;font-family:inherit;box-shadow:0 12px 42px rgba(4,13,28,.12);color-scheme:dark}
.cosmos-page *{box-sizing:border-box}
.cosmos-page a{color:inherit;text-decoration:none}
.cosmos-page :is(h1,h2,h3,p){margin:0}
.cosmos-page button,.cosmos-page input,.cosmos-page select{font:inherit}
.cosmos-page button{cursor:pointer}
.cosmos-page button:disabled{opacity:.55;cursor:wait}
.cosmos-page :is(a,button,input,select):focus-visible{outline:2px solid var(--cx-focus);outline-offset:3px}
.cosmos-page [hidden]{display:none!important}
.cx-top{position:relative;padding:34px 36px 25px;overflow:hidden}
.cx-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,32%);gap:24px;align-items:center;position:relative;z-index:1}
.cx-overline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.7rem;letter-spacing:.18em;font-weight:650;color:var(--cx-gold);text-transform:uppercase}
.cx-overline:before{content:"";width:28px;height:1px;background:var(--cx-gold)}
.cx-top h1{font-family:Georgia,"Noto Serif SC","Noto Serif CJK SC",serif;letter-spacing:-.035em;font-weight:500;line-height:1.12;font-size:clamp(2rem,4.6vw,4rem);margin:20px 0 12px;color:#f5e8d0;max-width:720px;overflow-wrap:anywhere}
.cx-top:not(.cx-home-hero) h1{font-size:clamp(1.9rem,3.5vw,3rem)}
.cx-intro{font-size:clamp(.88rem,1.5vw,1.05rem);line-height:1.7;max-width:650px;color:var(--cx-muted)}
.cx-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}
.cx-tag{display:inline-flex;align-items:center;gap:7px;font-size:.75rem;line-height:1.35;border:1px solid #465366;border-radius:100px;padding:7px 11px;color:#d4dce8;background:rgba(21,36,56,.58)}
.cx-tag svg,.cx-icon{width:18px;height:18px;flex:none}
.cx-tag svg{color:var(--cx-gold);width:14px;height:14px}
.cx-hero-art{width:100%;max-width:300px;justify-self:end;display:block;filter:drop-shadow(0 0 22px rgba(193,164,107,.1))}
.cx-top:not(.cx-home-hero) .cx-hero-art{max-width:175px}
.cx-orbit-dash{transform-origin:center;animation:cx-orbit 40s linear infinite}
@keyframes cx-orbit{to{transform:rotate(360deg)}}
.cx-nav{display:flex;gap:4px;align-items:center;padding:0 28px 12px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#5e697c transparent}
.cx-nav a{flex:none;display:inline-flex;gap:8px;align-items:center;white-space:nowrap;font-size:.79rem;line-height:1.3;color:#bac7d8;border:1px solid transparent;padding:10px 12px;border-radius:8px;transition:background .18s,border-color .18s,color .18s}
.cx-nav a svg{width:16px;height:16px;color:#b7a17c}
.cx-nav a:hover{background:#1a2a3e;color:#fff}
.cx-nav a[aria-current=page]{border-color:#78684f;color:#f3d6a0;background:#302c30}
.cx-rule{height:1px;background:linear-gradient(90deg,transparent,#47546a,transparent);margin:0 25px}
.cx-directory{padding:26px 28px 30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cx-feature{display:flex;flex-direction:column;min-width:0;position:relative;background:linear-gradient(155deg,#17273c 0,#101b2b 74%);border:1px solid #324359;border-radius:15px;overflow:hidden;transition:transform .22s,border-color .22s,box-shadow .22s}
.cx-feature:hover{transform:translateY(-4px);border-color:#94805d;box-shadow:0 12px 24px #050c1680}
.cx-feature-art{display:block;width:100%;height:145px;border-bottom:1px solid #2b3b50;background:radial-gradient(ellipse at 50% 50%,#243a51,#101b2c 73%)}
.cx-feature-body{padding:18px 17px 19px;display:flex;flex-direction:column;gap:8px;flex:1}
.cx-feature-index{font-size:.66rem;letter-spacing:.14em;color:#bda779;font-variant-numeric:tabular-nums}
.cx-feature h2{font-family:inherit;font-size:1.18rem;font-weight:620;letter-spacing:-.018em;line-height:1.35}
.cx-feature p{font-size:.81rem;line-height:1.65;color:var(--cx-muted);min-height:2.65em}
.cx-feature-link{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;color:var(--cx-gold);font-size:.8rem;padding-top:10px}
.cx-feature-link svg{width:18px;height:18px}
.cx-workspace{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);align-items:start;gap:16px;padding:20px 24px 28px}
.cx-panel{border:1px solid #304159;background:rgba(15,27,44,.9);border-radius:14px;min-width:0;padding:20px}
.cx-input-panel{position:sticky;top:14px}
.cx-panel-heading{display:flex;gap:9px;align-items:center;margin-bottom:19px}
.cx-panel-heading h2{font-size:1.03rem;line-height:1.3;font-weight:650}
.cx-panel-index{display:inline-block;color:var(--cx-gold);font-size:.68rem;letter-spacing:.13em;font-weight:600;font-variant-numeric:tabular-nums}
.cx-form{display:grid;gap:15px}
.cx-field{display:grid;gap:7px;position:relative;min-width:0}
.cx-field-label{font-size:.79rem;font-weight:550;color:#d7dfeb;line-height:1.4}
.cx-fields-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.cx-control{display:block;width:100%;min-width:0;height:43px;min-height:43px;color:#eff2f7;border:1px solid #3c4d64;background:#0c1728;border-radius:7px;padding:9px 10px;outline:none;font-size:.82rem!important;line-height:1.4;box-shadow:none}
.cx-control:hover{border-color:#697b93}
.cx-control:focus{border-color:#d0b57c}
.cx-control::placeholder{color:#8190a6}
.cx-control[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;accent-color:#d9bb82;padding:0;margin:2px 0 0}
.cx-control[type=date],.cx-control[type=time]{padding:7px 6px;color-scheme:dark}
.cx-control[type=number]{font-variant-numeric:tabular-nums}
.cx-control::-webkit-calendar-picker-indicator{opacity:.75}
.cx-check{display:flex;gap:9px;align-items:flex-start;font-size:.77rem;color:#b8c7da;line-height:1.5;cursor:pointer}
.cx-muted{font-size:.76rem;line-height:1.65;color:var(--cx-muted);overflow-wrap:anywhere}
.cx-field small{font-size:.71rem}
.cx-city-results{position:absolute;z-index:8;top:calc(100% - 3px);left:0;right:0;max-height:240px;overflow-y:auto;border:1px solid #626e82;border-radius:8px;background:#132338;box-shadow:0 12px 30px #030a16bf;padding:5px}
.cx-city-option{display:block;width:100%;text-align:left;padding:10px 8px;border:0;border-bottom:1px solid #33445a;border-radius:4px;color:#e4eaf2;background:transparent;font-size:.76rem!important;line-height:1.45}
.cx-city-option:hover,.cx-city-option:focus-visible{background:#26394f;color:#f4d6a2}
.cx-city-results .cx-note{padding:10px;font-size:.77rem}
.cx-button,.cx-secondary{display:inline-flex;gap:7px;justify-content:center;align-items:center;min-height:41px;border-radius:8px;font-size:.83rem!important;font-weight:620;line-height:1.4;transition:background .18s,border-color .18s,transform .18s;white-space:normal}
.cx-button svg,.cx-secondary svg{width:16px;height:16px}
.cx-primary{color:#19202b;background:linear-gradient(125deg,#f2d8a5,#d4b17b);border:1px solid #d1ae76;padding:12px 16px}
.cx-primary:hover{background:#f5dcb0}
.cx-primary:active,.cx-secondary:active{transform:translateY(1px)}
.cx-secondary{background:#142337;color:#d5deeb;border:1px solid #3a4a61;padding:8px 12px}
.cx-secondary:hover{background:#24364b;border-color:#917c5c}
.cx-input-panel>.cx-field,.cx-input-panel>.cx-check,.cx-input-panel>.cx-button,.cx-input-panel>.cx-secondary{margin-bottom:15px}
.cx-input-panel>.cx-button,.cx-input-panel>.cx-secondary{width:100%}
.cx-privacy{border-top:1px solid #334359;margin-top:18px;padding-top:14px;display:flex;align-items:flex-start;gap:9px;color:var(--cx-muted);font-size:.72rem;line-height:1.55}
.cx-privacy svg{color:#d4b87f;width:16px;height:16px}
.cx-privacy small{font-size:inherit}
.cx-error{font-size:.76rem;color:#ffc2b2;line-height:1.55}
.cx-error:empty{display:none}
.cx-output-panel{min-height:500px;transition:opacity .18s}
.cx-output-panel[aria-busy=true]{opacity:.68;cursor:progress}
.cx-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px 6px 32px;gap:14px;justify-content:center;min-height:456px}
.cx-empty .cx-chart-svg{max-width:360px;width:100%;opacity:.9}
.cx-empty h2{font-size:1.2rem;font-weight:550;color:#eee2cc}
.cx-empty p{max-width:390px;line-height:1.7;font-size:.82rem}
.cx-note{font-size:.76rem;line-height:1.75;color:#a8b8cc;margin-top:12px!important;overflow-wrap:anywhere}
.cx-warning{margin-top:15px!important;color:#f2cc91;border:1px solid #806642;border-radius:8px;background:#342b25;padding:11px;font-size:.77rem;line-height:1.6}
.cx-result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 15px}
.cx-result-heading h2{font-size:1.3rem;line-height:1.25;letter-spacing:-.025em;font-weight:600;margin:5px 0 5px}
.cx-result-heading .cx-muted{font-variant-numeric:tabular-nums}
.cx-result-heading .cx-secondary{align-self:center;font-size:.73rem!important}
.cx-visual{display:grid;place-items:center;background:#0b1424;border:1px solid #2b3c53;border-radius:11px;overflow:hidden;min-height:180px;padding:8px}
.cx-chart-svg{display:block;width:100%;max-width:640px;height:auto}
.cx-chart-svg g[tabindex]:focus{outline:none;filter:drop-shadow(0 0 4px #f7cc90)}
.cx-chart-svg g[tabindex]:hover{filter:drop-shadow(0 0 4px #f7cc90)}
.cx-visual-small .cx-chart-svg{max-width:440px}
.cx-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.cx-metric{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 11px;border:1px solid #304159;border-radius:9px;background:#132237}
.cx-metric strong{font-size:clamp(.77rem,1.28vw,1rem);font-weight:600;line-height:1.4;color:#f0d9b0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cx-metric .cx-muted{font-size:.7rem;line-height:1.4}
.cx-result-section{margin-top:21px}
.cx-section-title{font-size:.93rem;font-weight:620;color:#e3e9f1;margin-bottom:10px!important}
.cx-table-wrap{border:1px solid #304159;border-radius:8px;overflow:auto}
.cx-table{border-collapse:collapse;width:100%;min-width:320px;text-align:left;font-size:.77rem;line-height:1.55;font-variant-numeric:tabular-nums}
.cx-table th{color:#a8b7cb;background:#17273c;font-size:.71rem;font-weight:550;white-space:nowrap}
.cx-table td,.cx-table th{padding:9px 11px;border-bottom:1px solid #2b3c52}
.cx-table td{color:#d5dfeb}
.cx-table tr:last-child td{border-bottom:0}
.cx-table tr:nth-child(even) td{background:rgba(37,58,81,.22)}
.cx-time-controls{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.cx-time-controls button{font-variant-numeric:tabular-nums;min-width:66px}
.cx-birth-visual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:14px;border:1px solid #3a4d63;border-radius:12px;background:radial-gradient(ellipse at 20% 30%,#27384e,#0b1424 67%);padding:18px}
.cx-birth-moon{text-align:center;display:grid;justify-items:center;gap:7px}
.cx-moon-svg{width:100%;max-width:220px;filter:drop-shadow(0 0 14px #e3c98d24)}
.cx-birth-moon h3{font-size:1.03rem;color:#e8d6b4}
.cx-birth-info{display:grid;gap:10px;min-width:0}
.cx-birth-info h3{font-family:Georgia,serif;font-size:clamp(1.35rem,2.5vw,2.15rem);font-weight:500;color:#f0d7a6;overflow-wrap:anywhere}
.cx-palaces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(105px,auto));gap:5px;border:1px solid #33455c;border-radius:10px;padding:7px;background:#0b1424}
.cx-palace{display:flex;flex-direction:column;gap:7px;text-align:left;min-width:0;padding:8px 6px;background:#142439;border:1px solid #3a4a62;border-radius:6px;color:#dce4f0;font-size:.7rem!important;line-height:1.45}
.cx-palace[aria-pressed=true]{border-color:#d7b47b;background:#302d32}
.cx-palace:hover{border-color:#ae9365}
.cx-palace-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start;gap:3px}
.cx-palace-top strong{color:#e7d3a9;font-size:.72rem;line-height:1.3;overflow-wrap:anywhere}
.cx-palace-top small{font-size:.65rem;color:#a2b2c8}
.cx-palace-stars{display:grid;gap:3px;flex:1;overflow-wrap:anywhere}
.cx-palace-age{font-size:.62rem;color:#9eacc0;margin-top:auto;font-variant-numeric:tabular-nums}
.cx-palace-center{grid-area:2 / 2 / 4 / 4;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:10px;text-align:center;min-width:0;border-radius:6px;background:radial-gradient(ellipse,#26364b,#111e30);border:1px solid #635b4e}
.cx-palace-center h3{font-size:1rem;color:#f0d8a9;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cx-palace-center .cx-panel-index{font-size:.58rem}
.cx-palace-center .cx-metric{padding:6px;background:none;border:0;gap:2px}
.cx-palace-center .cx-metric strong{font-size:.83rem}
.cx-palace-center .cx-metric .cx-muted{font-size:.67rem}
.cx-star-chips{display:flex;gap:6px;flex-wrap:wrap}
.cx-star-chip{padding:6px 8px;border:1px solid #405169;border-radius:6px;font-size:.73rem;color:#d2deed;background:#142338}
.cx-tarot-art{width:100%;height:auto;display:block;filter:drop-shadow(0 5px 9px #0005)}
.cx-tarot-empty .cx-tarot-art{max-width:160px;transform:rotate(-5deg);margin:15px 0}
.cx-tarot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0 12px}
.cx-tarot-single{grid-template-columns:minmax(120px,190px);justify-content:center}
.cx-tarot-cross{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.cx-tarot-card{border:0;background:none;color:var(--cx-text);padding:0;text-align:center;min-width:0;perspective:850px;display:flex;flex-direction:column;gap:9px;align-items:stretch}
.cx-card-flip{position:relative;width:100%;aspect-ratio:180/292;display:block;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.75,.2,1),filter .18s}
.cx-tarot-card:hover .cx-card-flip{filter:brightness(1.15)}
.cx-card-face{position:absolute;inset:0;backface-visibility:hidden;display:block;-webkit-backface-visibility:hidden}
.cx-card-front{transform:rotateY(180deg)}
.cx-reverse-art .cx-tarot-art{transform:rotate(180deg)}
.cx-tarot-card.is-revealed .cx-card-flip{transform:rotateY(180deg)}
.cx-card-caption{font-size:.75rem;line-height:1.4;min-height:2.6em;color:#d8c29c;overflow-wrap:anywhere}
.cx-tarot-cross .cx-card-caption{font-size:.65rem}
.cx-tarot-details{display:grid;gap:9px}
.cx-tarot-reading{border:1px solid #3c4c63;border-radius:10px;padding:13px;background:linear-gradient(140deg,#1a2a40,#101d2e);display:grid;gap:6px;animation:cx-reading-in .32s ease-out both}
@keyframes cx-reading-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.cx-tarot-reading h3{font-weight:620;font-size:1rem;color:#ecd5ab}
.cx-reading-theme{font-size:.83rem;line-height:1.6;color:#e0e8f2;margin:0!important}
.cx-footer{padding:0 30px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:flex-start}
.cx-footer .cx-note{max-width:810px;margin:0!important}
.cx-footer a{display:inline-flex;gap:6px;align-items:center;font-size:.75rem;color:#d4b47d;white-space:normal;text-decoration:underline;text-underline-offset:3px}
.cx-footer a:hover{color:#f3d8a4}
.cx-loading{grid-column:1/-1;text-align:center;color:#a9b9cf;padding:28px;font-size:.86rem}
.cx-noscript{padding:20px;color:#e1cb9d;font-size:.84rem}
.cosmos-home-promotion{border:1px solid #cfbf9d;background:linear-gradient(110deg,#f8f4eb,#fffdf9);border-radius:12px;padding:15px 20px;margin:18px 0;display:flex;align-items:center;gap:14px;text-decoration:none;color:#222b3d!important}
.cosmos-home-promotion>svg{width:35px;height:35px;color:#9e7843;flex:none}
.cosmos-home-promotion>div{flex:1;min-width:0}
.cosmos-home-promotion h2{font-size:1.08rem!important;font-weight:600;margin:0 0 3px!important}
.cosmos-home-promotion p{font-size:.82rem!important;color:#615f60;margin:0!important;line-height:1.55}
.cosmos-home-promotion .cx-home-arrow{width:22px;height:22px;transition:transform .15s}
.cosmos-home-promotion:hover .cx-home-arrow{transform:translateX(3px)}
@media(max-width:1000px){.cx-workspace{grid-template-columns:minmax(218px,275px) minmax(0,1fr);padding:18px 16px;gap:12px}.cx-panel{padding:15px}.cx-fields-row{gap:6px}.cx-control{padding:8px 6px}.cx-directory{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px}.cx-top{padding:28px 25px 20px}.cx-nav{padding:0 16px 11px}.cx-palace{padding:7px 4px}}
@media(max-width:760px){.cosmos-page{margin:12px 0 26px;border-radius:13px}.cx-top{padding:24px 18px 17px}.cx-top h1{font-size:2.25rem;margin:14px 0 10px}.cx-top:not(.cx-home-hero) h1{font-size:1.92rem}.cx-hero-grid{grid-template-columns:minmax(0,1fr) 106px;gap:9px}.cx-home-hero .cx-hero-grid{grid-template-columns:minmax(0,1fr) 90px}.cx-hero-art{max-width:106px}.cx-overline{font-size:.62rem;letter-spacing:.12em}.cx-overline:before{width:17px}.cx-intro{font-size:.83rem}.cx-tags{gap:6px;margin-top:16px}.cx-tag{font-size:.68rem;padding:5px 8px}.cx-nav{padding:0 10px 10px}.cx-nav a{font-size:.75rem;padding:9px 10px}.cx-directory{padding:15px;gap:10px}.cx-feature-art{height:110px}.cx-feature-body{padding:13px}.cx-feature h2{font-size:1rem}.cx-feature p{font-size:.75rem}.cx-workspace{grid-template-columns:1fr;padding:12px;gap:12px}.cx-input-panel{position:static}.cx-panel{padding:15px}.cx-input-panel .cx-fields-row{gap:10px}.cx-control{height:44px;padding:9px 10px}.cx-output-panel{min-height:350px}.cx-empty{min-height:305px;padding:15px 2px;gap:10px}.cx-empty .cx-chart-svg{max-width:255px}.cx-metrics{gap:6px}.cx-metric{padding:9px 8px;gap:4px}.cx-metric strong{font-size:.82rem}.cx-result-heading h2{font-size:1.15rem}.cx-palace{padding:6px 4px;font-size:.63rem!important}.cx-palace-top strong{font-size:.65rem}.cx-palaces{grid-template-rows:repeat(4,minmax(89px,auto))}.cx-palace-center{padding:5px;gap:5px}.cx-palace-center .cx-metric{padding:3px}.cx-palace-center .cx-metric strong{font-size:.69rem}.cx-palace-center h3{font-size:.84rem}.cx-tarot-cross{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.cx-tarot-card{gap:5px}.cx-footer{padding:0 16px 20px}.cx-birth-visual{padding:12px;gap:9px}.cx-birth-info h3{font-size:1.3rem}}
@media(max-width:400px){.cx-hero-grid,.cx-home-hero .cx-hero-grid{grid-template-columns:minmax(0,1fr) 64px}.cx-top h1{font-size:1.8rem}.cx-top:not(.cx-home-hero) h1{font-size:1.7rem}.cx-directory{grid-template-columns:1fr;gap:11px}.cx-feature{display:grid;grid-template-columns:112px 1fr}.cx-feature-art{height:100%;min-height:130px;border-bottom:0;border-right:1px solid #2b3b50}.cx-feature-body{padding:12px}.cx-feature p{min-height:0}.cx-panel{padding:12px}.cx-metric strong{font-size:.73rem}.cx-metric .cx-muted{font-size:.65rem}.cx-palace-age{font-size:.56rem}.cx-palace-center .cx-metric strong{font-size:.64rem}.cx-birth-visual{grid-template-columns:1fr}.cx-birth-info{text-align:center}.cx-moon-svg{max-width:150px}}
@media(prefers-reduced-motion:reduce){.cosmos-page *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.cx-feature:hover{transform:none}}


/* Ensure the host site's light theme cannot reduce contrast inside the dark workspace. */
.cosmos-page .cx-feature h2,.cosmos-page .cx-panel-heading h2,.cosmos-page .cx-result-heading h2{color:var(--cx-text)}
.cosmos-page .cx-top h1{text-wrap:balance}
.cosmos-page[data-locale=zh] .cx-home-hero h1,.cosmos-page[data-locale=ja] .cx-home-hero h1{font-size:clamp(1.8rem,3.6vw,3rem);letter-spacing:-.03em}
.cx-card-position{font-size:.68rem;line-height:1.4;color:#b5c6db;min-height:2.8em;display:flex;justify-content:center;align-items:flex-end;overflow-wrap:anywhere}
.cx-tarot-card .cx-card-caption{min-height:2.8em}
.cx-tarot-cross{grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.cx-tarot-cross .cx-tarot-card{grid-row:var(--cx-card-row);grid-column:var(--cx-card-col)}
.cx-tarot-cross .cx-cross-center{grid-column:2 / 4;width:calc((100% - 8px)/2);justify-self:center}
@media(max-width:1000px){.cx-tarot-cross{grid-template-columns:repeat(3,minmax(0,1fr))}.cx-tarot-cross .cx-tarot-card{grid-area:auto;width:100%}.cx-tarot-cross .cx-cross-center{grid-area:auto;width:100%}}
@media(max-width:760px){body:has(.cosmos-page) .back-to-top{display:none!important}.cx-tarot-cross{grid-template-columns:repeat(2,minmax(0,1fr))}.cx-card-position{font-size:.72rem}}


/* Additional calculation modes and complete card guide. */
.cx-subform{min-width:0;border:1px solid #3a4d63;border-radius:8px;padding:12px 10px;display:grid;gap:10px}
.cx-subform legend{color:#e5c797;font-size:.77rem;padding:0 6px}
.cx-location-fields,.cx-compare-location{display:grid;gap:12px}
.cx-inline-form{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:12px 0}
.cx-inline-form>.cx-field{flex:1;min-width:130px}
.cx-insight-list{display:grid;gap:7px;margin:10px 0}
.cx-insight{border:1px solid #36485f;border-radius:8px;background:#122035;padding:10px 12px}
.cx-insight summary{color:#dfd2bc;font-size:.8rem;cursor:pointer;line-height:1.5}
.cx-insight p{margin-top:7px!important}
.cx-guide-card{border:1px solid #3b4a62;border-radius:9px;background:#142337;padding:11px;min-width:0}
.cx-guide-card strong,.cx-guide-card h4{color:#e5d3ae;font-size:.86rem;line-height:1.4;margin:4px 0}
.cx-guide-card.is-current{border-color:#c5a979;background:#2b2a30}
.cx-guide-card .cx-note{margin-top:5px!important}
.cx-zodiac-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cx-zodiac-glyph{font-size:1.65rem;color:#e6c58b}
.cx-chart-legend{display:flex;flex-wrap:wrap;gap:15px;margin:12px 0;font-size:.8rem}
.cx-legend-gold,.cx-legend-blue{display:flex;align-items:center;gap:7px;color:#d7e2ef}
.cx-legend-gold:before,.cx-legend-blue:before{content:"";width:9px;height:9px;border-radius:50%;background:#dec08b}
.cx-legend-blue:before{background:#9ccbf1}
.cx-classic-card{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px;aspect-ratio:420/730;background:#101b2c;filter:drop-shadow(0 4px 10px #0007)}
.cx-reverse-art .cx-classic-card{transform:rotate(180deg)}
.cx-card-face>.cx-classic-card{position:absolute;inset:0}
.cx-tarot-library{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:16px}
.cx-library-card{min-width:0;background:#111f32;border:1px solid #384a61;border-radius:8px;display:flex;flex-direction:column;padding:6px;gap:7px;text-align:center;color:#ded3bd;font-size:.7rem!important;line-height:1.4}
.cx-library-card:hover{border-color:#c3a16d}
.cx-library-card .cx-classic-card{height:auto;aspect-ratio:420/730}
.cx-card-detail{display:grid;grid-template-columns:minmax(100px,25%) 1fr;gap:16px;margin-top:15px}
.cx-card-detail:empty{display:none}
.cx-card-detail-copy h3{color:#e6d3ad;font-size:1.1rem}
.cx-card-detail .cx-result-section{margin-top:10px}
.cx-history-entry{border:1px solid #3a4a60;background:#142337;border-radius:8px;color:#e8d9bd;text-align:left;padding:10px 12px;display:grid;gap:6px}
.cx-reading-copy>.cx-insight{margin-top:8px}
.cx-output-panel>.cx-secondary{margin-top:12px}
@media(max-width:900px){.cx-tarot-library{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.cx-tarot-library{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.cx-zodiac-library{grid-template-columns:repeat(2,minmax(0,1fr))}.cx-card-detail{grid-template-columns:90px 1fr;gap:10px}.cx-subform{padding:10px 7px}}

/* Archive, calculation settings and lunar calendar share the Cosmos palette. */
.cx-archive-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 28px 12px}
.cx-archive-toolbar .cx-secondary{min-height:34px;padding:6px 12px;border-color:#655a49;color:#e6cea1}
.cx-archive-toolbar .cx-muted{max-width:340px;text-align:right;line-height:1.4}
.cx-archive-dialog{width:min(760px,calc(100vw - 28px));max-height:min(86vh,840px);border:1px solid #657287;border-radius:17px;background:#101c2e;color:#e4ebf5;padding:0;box-shadow:0 25px 100px #050b18c7;overflow:auto}
.cx-archive-dialog::backdrop{background:#040914b3;backdrop-filter:blur(5px)}
.cx-archive-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:#17273d;border-bottom:1px solid #394c64;position:sticky;top:0;z-index:1}
.cosmos-page .cx-archive-head h2{color:#efddba;font-size:1.35rem;font-weight:600}
.cx-dialog-close{width:35px;height:35px;display:grid;place-items:center;border:1px solid #526277;border-radius:8px;color:#dfe7f3;background:#142337;font-size:1.5rem!important;line-height:1}
.cx-archive-body{padding:20px 24px;display:grid;gap:12px}
.cx-archive-body .cx-result-section{margin-top:5px}
.cx-archive-list{display:grid;gap:8px}
.cx-archive-row{display:flex;gap:9px;align-items:center;border:1px solid #34475f;background:#142338;padding:9px;border-radius:8px;min-width:0}
.cx-archive-item{flex:1;min-width:0;border:0;background:none;display:flex;flex-direction:column;gap:5px;text-align:left;padding:7px;color:#e5d3b1;overflow-wrap:anywhere}
.cx-archive-item:hover{color:#fff0cf}
.cx-archive-row>.cx-secondary{min-width:66px}
.cx-actions{display:grid;gap:10px;margin-top:20px;padding:14px;border:1px solid #3a4a62;border-radius:10px;background:linear-gradient(150deg,#17263a,#101c2e)}
.cx-action-buttons{display:flex;flex-wrap:wrap;gap:8px}
.cx-action-buttons .cx-secondary{flex:1;min-width:120px}
.cx-lunar-fields{display:grid;gap:10px}
.cx-daily-panel{grid-column:1/-1;margin:0;min-width:0}
.cosmos-page>.cx-daily-panel{margin:10px 28px 26px}
.cx-daily-panel .cx-inline-form{margin:6px 0 16px}
.cx-moon-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:14px 0}
.cx-moon-day{min-width:0;min-height:82px;border:1px solid #364b63;border-radius:8px;background:#122135;padding:7px;display:flex;flex-direction:column;gap:4px;align-items:center;color:#d7e2f1;font-variant-numeric:tabular-nums}
.cx-moon-day:hover,.cx-moon-day.is-current{border-color:#ddbd84;background:#2d2b33}
.cx-moon-day strong{font-size:.85rem;color:#e6d1ad}
.cx-moon-day svg{width:min(100%,70px);height:auto}
.cx-moon-day small{font-size:.67rem;color:#aabbd0}
.cx-daily-panel .cx-visual .cx-chart-svg{max-width:480px}
.cx-input-panel>.cx-secondary{margin-top:8px}
.cx-output-panel .cx-guide-card{margin:8px 0}
.cx-palace-top small{overflow-wrap:anywhere}
@media(max-width:760px){.cx-archive-toolbar{padding:0 14px 10px;justify-content:space-between}.cx-archive-toolbar .cx-muted{font-size:.63rem;text-align:left}.cx-archive-dialog{max-height:90vh}.cx-archive-head,.cx-archive-body{padding:15px}.cosmos-page>.cx-daily-panel{margin:10px 12px 17px}.cx-moon-calendar{gap:4px}.cx-moon-day{min-height:63px;padding:4px;gap:2px}.cx-moon-day strong{font-size:.72rem}.cx-moon-day small{font-size:.57rem}.cx-action-buttons .cx-secondary{min-width:100px}}
@media(max-width:400px){.cx-archive-toolbar .cx-muted{max-width:180px}.cx-moon-calendar{gap:3px}.cx-moon-day{padding:3px;min-height:52px}.cx-moon-day small{font-size:.51rem}.cx-archive-row>.cx-secondary{min-width:52px}}


.cx-pick-deck{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px;margin:16px 0}
.cx-pick-card{border:0;background:transparent;color:#cdb88e;padding:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;transition:transform .18s,opacity .18s;font-size:.56rem!important}
.cx-pick-card:hover{transform:translateY(-4px)}
.cx-pick-card[aria-pressed=true]{opacity:.27;transform:scale(.88)}
.cx-pick-card svg{width:100%;height:auto}
.cx-tarot-five{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
@media(max-width:1000px){.cx-pick-deck{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(max-width:760px){.cx-pick-deck{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.cx-tarot-five{grid-template-columns:repeat(3,minmax(0,1fr))}.cx-pick-card{font-size:.52rem!important}}
@media(max-width:400px){.cx-pick-deck{grid-template-columns:repeat(7,minmax(0,1fr))}}


.cx-home-daily{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,180px);gap:18px;align-items:center;margin:6px 28px 26px;background:radial-gradient(ellipse at 90% 30%,#233850,#132135 68%)}
.cx-home-daily-copy h2{color:#ead6ad;font-size:1.28rem;margin:5px 0}
.cx-home-daily-copy .cx-primary{margin-top:13px;max-width:max-content}
.cx-daily-intro{display:grid;grid-template-columns:104px minmax(0,1fr);gap:13px;align-items:center}
.cx-daily-intro .cx-metrics{margin:0}
.cx-daily-moon .cx-moon-svg{width:104px;height:104px}
.cx-daily-panel .cx-action-buttons{margin-top:16px}
@media(max-width:760px){.cx-home-daily{margin:6px 12px 17px;gap:10px;grid-template-columns:minmax(0,1fr) 72px}.cx-home-daily-copy .cx-metrics{grid-template-columns:1fr}.cx-home-daily-copy h2{font-size:1.08rem}.cx-home-daily-copy .cx-metric{padding:6px}.cx-daily-intro{grid-template-columns:65px minmax(0,1fr);gap:7px}.cx-daily-moon .cx-moon-svg{width:65px;height:65px}.cx-daily-intro .cx-metrics{grid-template-columns:1fr;gap:4px}.cx-daily-intro .cx-metric{padding:6px 8px}}

