:root{--ink:#232234;--muted:#514e60;--linen:#f7f4ee;--paper:#fffdf8;--edge:#ded8cf;--night:#181a31;--gold:#efca98;--accent:#5a4879;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--linen);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;line-height:1.65}[hidden]{display:none!important}a{color:inherit}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:4px}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #875a29}.frame{width:min(1100px,calc(100% - 3rem));margin-inline:auto}.sky{background:radial-gradient(ellipse at 74% 45%,#262c50,transparent 58%),var(--night);color:#fbf7f0;border-bottom:1px solid #b29270}.sky nav{display:flex;justify-content:space-between;align-items:center;padding:1.4rem 0;border-bottom:1px solid #ffffff28}.brand{font-size:.88rem;letter-spacing:.18em;text-decoration:none;font-weight:750}.brand span,footer span{color:var(--gold);margin-right:.4rem}.navlink{color:#e1dcea;text-underline-offset:4px}.hero{min-height:480px;display:grid;grid-template-columns:1fr .9fr;align-items:center;gap:1.5rem;padding:3rem 0 4rem}.hero>div{position:relative;z-index:1}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;line-height:1.13;margin:0 0 .7em}h1{font-size:clamp(3rem,7.3vw,6.8rem);letter-spacing:-.062em;margin:.17em 0 .22em}h1 em{color:var(--gold);font-weight:400}h2{font-size:clamp(2rem,4.8vw,3.55rem);letter-spacing:-.046em}h3{font-size:clamp(1.4rem,3.3vw,2.2rem);letter-spacing:-.025em}p{margin:0 0 1rem}.intro{color:#e4e0ea;max-width:36ch;font-size:1.09rem;margin-bottom:1.5rem}.orbit{width:100%;max-height:414px}.eyebrow{color:#624b43;letter-spacing:.15em;font-size:.77rem;font-weight:800;margin-bottom:.7rem}.sky .eyebrow{color:var(--gold)}.cta,.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:45px;padding:.61rem 1.05rem;border-radius:6px;text-decoration:none;border:1px solid transparent;font-weight:700;font-size:.94rem}.cta{background:#24223c;color:#fff}.sky .cta{background:var(--gold);color:#282135}.secondary{background:transparent;color:#323049;border-color:#aaa0b1}.cta:hover,.secondary:hover{filter:brightness(.94)}.compose{display:grid;grid-template-columns:.75fr 1.25fr;gap:clamp(1.2rem,5vw,5rem);padding:3.4rem 0;border-bottom:1px solid var(--edge);scroll-margin-top:1rem}.compose p,.methodology p{max-width:60ch;color:var(--muted)}.privacy{padding-left:1rem;border-left:2px solid #b79368;font-size:.92rem}.inputs{display:grid;grid-template-columns:1fr 1fr;gap:.85rem 1rem}.wide{grid-column:1/-1}label{display:block;font-weight:700;color:#302c40}label small{display:block;font-weight:400;color:var(--muted);font-size:.84rem}input,select{display:block;width:100%;min-width:0;margin-top:.35rem;background:var(--paper);border:1px solid #a49aa5;border-radius:5px;color:var(--ink);padding:.68rem .72rem;min-height:46px}.micro{font-size:.88rem;color:var(--muted);margin:.7rem 0}.problem:not(:empty){color:#9c283b;font-weight:600}.problem:empty{display:none}.actions,.result-title{display:flex;gap:.7rem;flex-wrap:wrap}.result-title{justify-content:space-between;align-items:center}.result-title h2{margin:0 0 .17em}.result-title p:not(.eyebrow){color:var(--muted)}#results{padding:3rem 0}.lenses{display:grid;grid-template-columns:repeat(5,1fr);gap:.45rem;margin:1.45rem 0}.lens{display:flex;align-items:center;gap:.52rem;text-align:left;background:var(--paper);border:1px solid var(--edge);padding:.65rem .7rem;min-height:50px;border-radius:5px;color:var(--ink);font-weight:720}.lens[aria-pressed=true]{border-color:var(--tone);box-shadow:inset 0 -3px var(--tone)}.dot{width:.65rem;height:.65rem;border-radius:50%;background:var(--tone);flex:none}.hd{--tone:#654f87}.astro{--tone:#2c6380}.num{--tone:#894866}.bazi{--tone:#855b23}.ziwei{--tone:#346354}.layout{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:1.5rem}.overview{border-top:3px solid var(--tone);padding:1.35rem 1rem;background:#f0ebe5;align-self:start;border-radius:5px}.overview p{color:#514a59}.status{font-size:.85rem;font-weight:670;margin:0;color:#4d4558!important}.read{max-width:76ch}.reading-entry{border:1px solid var(--edge);background:var(--paper);border-radius:7px;margin:0 0 .65rem;padding:.9rem 1rem}.reading-entry summary{cursor:pointer;font-weight:750;list-style-position:inside}.value{font-weight:500;color:#48405e;display:block;padding-left:1.2rem}.entry-body{padding-top:.9rem}.cabin{background:#eeeaf2;border-left:3px solid var(--tone);padding:.75rem 1rem;border-radius:0 6px 6px 0}.data{font-size:.9rem;color:var(--muted)}.refs{font-size:.89rem;margin-top:1.15rem}.refs a{display:inline-block;margin-right:.8rem;text-underline-offset:3px}.paper{display:none}.methodology{padding:3rem 0;border-top:1px solid var(--edge)}.methodology h2{font-size:clamp(1.75rem,4vw,2.8rem)}footer{padding:1.1rem 0 2rem;color:var(--muted);font-size:.9rem}
@media(max-width:760px){.frame{width:calc(100% - 2rem)}.hero{grid-template-columns:1fr;gap:0;padding:2.25rem 0 2rem}.orbit{max-height:235px}.compose,.layout{grid-template-columns:1fr;gap:1rem}.lenses{grid-template-columns:repeat(2,1fr)}.compose{padding:2.25rem 0}.lens:last-child{grid-column:1/-1}}
@media(max-width:400px){.inputs{grid-template-columns:1fr}.wide{grid-column:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{@page{margin:16mm}body{background:white;color:#111;font-size:10.8pt}.sky,.compose,.methodology,footer,.no-print,#reading,#results>.micro{display:none!important}.frame{width:auto}#results{padding:0}.paper{display:block}.paper article{break-before:page}.paper article:first-child{break-before:auto}.paper h3{margin-top:1rem}.paper .reading-entry{break-inside:avoid;padding:.45rem .65rem}.paper .cabin{padding:.4rem .65rem}.paper .refs a{word-break:break-word}}
.entries{margin-top:.72rem}.refs strong{display:inline-block;margin-bottom:.25rem}.cabin p{margin:.15rem 0 0}.entry-body>p{margin:.7rem 0}.data summary{margin-top:.7rem}.reading-entry h4{margin:.1rem 0}.overview .eyebrow{font-size:.73rem}.read{font-size:1.045rem;line-height:1.7}
.chart-map{border-top:1px solid #d6cbc5;margin-top:1.05rem;padding-top:.9rem}.chart-map h4{margin:0;font-size:.96rem}.chart-map .micro{font-size:.84rem;line-height:1.35}.points{display:grid;gap:.35rem}.point{display:grid;grid-template-columns:auto 1fr;gap:.55rem;align-items:center;text-align:left;min-height:40px;color:var(--ink);background:var(--paper);border:1px solid var(--edge);border-radius:5px;padding:.4rem .55rem;font-size:.88rem;line-height:1.35}.point:hover{border-color:var(--tone)}.point-index{color:var(--tone);font-size:.8rem;font-variant-numeric:tabular-nums;font-weight:800}.point-fold summary{cursor:pointer;font-size:.88rem;font-weight:650;margin-bottom:.5rem}@media(max-width:760px){.points{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));}}
.lens-caption{display:grid;gap:.12rem;line-height:1.25}.lens-caption small{font-size:.77rem;font-weight:500;color:var(--muted);overflow-wrap:anywhere}.lens{align-items:flex-start}.lens .dot{margin-top:.33rem}
/* Next-gen visual pass: contrast-rich interface chrome; low-chroma reading surface. */
:root{--ink:#1f2334;--muted:#505568;--linen:#f6f7fb;--paper:#fff;--edge:#dce0ec;--night:#13152a;--gold:#b6f3d5;--accent:#4f479b}
h1,h2,h3{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:770;line-height:1.055}
.sky{overflow:hidden;position:relative;background:radial-gradient(ellipse at 78% 50%,#302a5d 0%,#1e2040 36%,transparent 67%),#13152a;border-bottom:1px solid #3f4070}
.sky nav{padding:1.14rem 0;border-color:#ffffff26}.brand{font-size:.9rem;letter-spacing:.1em;font-weight:840}
.navlink{text-decoration:none;border:1px solid #ffffff36;border-radius:999px;padding:.35rem .75rem;font-size:.88rem}
.hero{min-height:465px;grid-template-columns:1.05fr .95fr;padding:2.7rem 0 3.1rem}
.hero h1{font-size:clamp(2.95rem,7vw,6.35rem);letter-spacing:-.066em;margin:.23em 0 .25em}
.hero h1 em{color:var(--gold);font-weight:770;font-style:normal}
.hero .intro{font-size:1.05rem;line-height:1.65;color:#e4e5f3;max-width:43ch}
.hero-badge{display:inline-flex;align-items:center;gap:.55rem;border:1px solid #b6f3d56b;border-radius:999px;padding:.28rem .6rem;letter-spacing:.08em;font-size:.73rem}
.hero-badge span{width:7px;height:7px;border-radius:50%;background:var(--gold);display:block}
.hero-badge b{border-left:1px solid #ffffff42;padding-left:.55rem;color:#e5dfff}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem}.hero-actions>span{font-size:.88rem;color:#d3d3e7}
.sky .cta{border-radius:999px;padding-inline:1.2rem;color:#172b2a}
.diagram{position:relative;align-self:center;isolation:isolate;max-width:490px;justify-self:center;width:100%}
.diagram:before{position:absolute;inset:11% 9%;content:"";z-index:-1;background-image:radial-gradient(#c3c9ef72 1px,transparent 1px);background-size:15px 15px;opacity:.5;border-radius:50%;mask-image:radial-gradient(#000,transparent 73%)}
.diagram .orbit{display:block;width:100%;max-height:410px}
.diagram-label{position:absolute;display:flex;align-items:center;gap:.38rem;padding:.25rem .48rem;background:#22233b;border:1px solid #aca5d575;color:#f0ecff;border-radius:999px;font-size:.65rem;letter-spacing:.032em;font-weight:770;white-space:nowrap}.diagram-label i{width:6px;height:6px;background:var(--spot);border-radius:100%}
.l1{top:9%;left:41%;--spot:#b6f3d5}.l2{top:33%;right:4%;--spot:#b7cbff}.l3{bottom:19%;right:7%;--spot:#ffbadb}.l4{bottom:19%;left:18%;--spot:#ffd197}.l5{top:33%;left:11%;--spot:#a9eedf}
.eyebrow{color:#534c82}.privacy{border-color:#6c64a6}.cta{border-radius:9px;background:#2d2a59}.secondary{border-color:#9198b5;border-radius:9px}.overview{background:#edf0f8}.cabin{background:#eef0f8}.result-title h2{font-size:clamp(2.25rem,5vw,3.6rem)}.lens,.overview,.reading-entry{border-radius:10px}.reading-entry{box-shadow:0 1px 2px #25264a08}
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:.55rem}.diagram{max-width:400px}.diagram .orbit{max-height:253px}.sky nav{padding:.9rem 0}.hero h1{font-size:clamp(2.85rem,10.5vw,5rem)}}
@media(max-width:400px){.diagram-label{font-size:.58rem}.l2{right:3%}.l4{left:16%}}
/* Result atlas: five lenses, persistent index, interactive chart, focused reading. */
#results.frame-atlas{width:100%}
body:has(#results:not([hidden])) main.frame{width:min(1500px,calc(100% - 3rem))}
body:has(#results:not([hidden])) .compose,body:has(#results:not([hidden])) .methodology{max-width:1100px;margin-inline:auto}
#reading{scroll-margin-top:1.25rem}.lenses{gap:.7rem;margin:1.55rem 0 1.9rem}
.hd{--wash:#f0ebff}.astro{--wash:#eaf2ff}.num{--wash:#fff2d9}.bazi{--wash:#eaf3ed}.ziwei{--wash:#fbeee6}
.lens{min-height:154px;display:flex;flex-direction:column;gap:.78rem;align-items:stretch;padding:.8rem .9rem;background:var(--wash);border:1px solid color-mix(in srgb,var(--tone) 26%,white);box-shadow:none}
.lens[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--tone);border-color:var(--tone)}.lens:hover{border-color:var(--tone)}
.lens-top,.lens-bottom{width:100%}.lens-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--tone)}
.lens-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--tone) 34%,white);background:#ffffff92;border-radius:10px;font-size:1.28rem;line-height:1}
.lens-meta{font-size:.75rem;font-weight:665}.lens-bottom{display:grid;gap:.15rem}.lens-name{font-size:1.08rem}.lens-result{font-size:.89rem;color:var(--ink);font-weight:560;overflow-wrap:anywhere}.lens-note{font-size:.78rem;color:var(--tone);font-weight:660}
.atlas-layout{display:grid;grid-template-columns:minmax(145px,.67fr) minmax(246px,1.23fr) minmax(310px,1.65fr);gap:1rem;align-items:start}
.atlas-toc,.atlas-map,.atlas-panel{padding:1rem;border-radius:14px;border:1px solid var(--edge);min-width:0}
.atlas-toc{background:#eef0f7}.atlas-toc summary{cursor:pointer;font-weight:750;font-size:.92rem}.atlas-toc .atlas-search{font-size:.88rem;margin:.6rem 0}
.toc-list{display:grid;gap:.25rem;max-height:70vh;overflow:auto;padding:3px}.toc-entry{border:0;border-left:3px solid transparent;padding:.5rem .52rem;background:transparent;color:var(--ink);text-align:left;border-radius:5px;font-size:.9rem;line-height:1.45}.toc-entry:hover,.toc-entry[aria-current=true]{background:#fff;border-left-color:var(--tone)}.toc-entry[aria-current=true]{font-weight:750;color:var(--tone)}
.atlas-map{background:var(--wash);border-color:color-mix(in srgb,var(--tone) 25%,white)}.atlas-panel{background:#fff;padding:clamp(1.05rem,2.5vw,2.2rem);scroll-margin-top:1rem}
.atlas-map .eyebrow,.atlas-panel .eyebrow{color:var(--tone)}.atlas-map h3{font-size:1.32rem}.atlas-map .atlas-intro{font-size:.93rem;line-height:1.55;margin-bottom:.6rem}.atlas-status{font-size:.79rem;color:var(--tone);font-weight:750}
.atlas-panel h3{font-size:clamp(1.6rem,3.5vw,2.6rem);line-height:1.15;margin-bottom:.5rem}.result-value{font-size:1.08rem;font-weight:680;color:var(--tone);overflow-wrap:anywhere}.reading-tabs{display:flex;flex-wrap:wrap;gap:.2rem .4rem;border-bottom:1px solid var(--edge);margin:.7rem 0 1.3rem}.reading-tab{padding:.6rem .46rem;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:.9rem;min-height:43px}.reading-tab[aria-pressed=true]{border-color:var(--tone);font-weight:750;color:var(--tone)}.reading-copy{max-width:66ch;font-size:1.065rem;line-height:1.7}.atlas-caption{border-left:3px solid var(--tone);background:var(--wash);padding:.6rem .9rem}.next-reading{color:var(--tone);border:1px solid var(--edge);padding:.5rem .7rem;background:#fff;border-radius:8px;font-size:.88rem}
.atlas-map button{overflow-wrap:anywhere}.atlas-map svg{display:block;width:100%;height:auto;overflow:visible}.atlas-map svg text{fill:var(--ink)}.atlas-map [aria-pressed=true]{outline:2px solid var(--tone);outline-offset:2px}
@media(min-width:1000px){.atlas-toc{position:sticky;top:1rem}}
@media(max-width:999px){.atlas-layout{grid-template-columns:minmax(215px,1fr) minmax(280px,1.35fr)}.atlas-toc{grid-column:1/-1}.toc-list{max-height:260px}}
@media(max-width:650px){body:has(#results:not([hidden])) main.frame{width:calc(100% - 1.5rem)}.atlas-layout{grid-template-columns:minmax(0,1fr)}.lens{min-height:130px;padding:.72rem}.lens:last-child{grid-column:auto}.lens-meta{font-size:.69rem}.lenses{gap:.45rem}.atlas-map,.atlas-panel{padding:1rem}.reading-tabs{gap:0}.reading-tab{padding:.55rem .35rem;font-size:.83rem}}
@media print{body:has(#results:not([hidden])) main.frame{width:auto}}

.atlas-map .chart-map{margin-top:.9rem;padding-top:.8rem;border-top:1px solid color-mix(in srgb,var(--tone) 25%,white)}.atlas-map .map-title{font-size:1.05rem;margin-bottom:.4rem}.map-caption{font-size:.83rem;color:var(--muted);line-height:1.47}.map-grid{display:grid;gap:.45rem}.map-pillar,.map-button{min-width:0}.map-button{min-height:50px;padding:.52rem .56rem;border:1px solid color-mix(in srgb,var(--tone) 27%,white);background:#ffffffbd;color:var(--ink);border-radius:8px;text-align:left;line-height:1.25;display:flex;flex-direction:column;justify-content:center;gap:.24rem}.map-button:hover{border-color:var(--tone);background:#fff}.map-label{font-size:.79rem;font-weight:680}.map-value,.map-star,.map-branch{font-size:.76rem;color:var(--muted)}.map-big{font-size:1.58rem;line-height:1;font-weight:790;color:var(--tone)}.map-numbers,.map-pillars,.map-hd-columns,.map-planet-list{grid-template-columns:repeat(2,minmax(0,1fr))}.map-hd-group{display:grid;gap:.45rem;min-width:0}.map-hd-group h4{margin:0;color:var(--tone);line-height:1.3}.map-pillars .map-button{min-height:85px}.map-pillars .map-branch{color:var(--tone);font-weight:660}.map-day,.map-body-palace{background:color-mix(in srgb,var(--tone) 10%,white)}.map-missing{opacity:.7}.map-zodiac{margin-bottom:.5rem}.map-planet{cursor:pointer}.map-planet[aria-pressed=true] circle:nth-last-child(2),.map-planet:focus circle:nth-last-child(2){stroke:var(--tone);stroke-width:2.7}.map-ziwei-ring{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(52px,auto));gap:.28rem}.map-ziwei-center{grid-area:2/2/4/4;display:grid;place-items:stretch}.map-ziwei-summary{justify-content:center;text-align:center;background:transparent;border:0}.map-palace{padding:.33rem .26rem;min-height:68px;align-items:start;justify-content:start;gap:.14rem}.map-palace .map-label{font-size:.7rem}.map-palace .map-value,.map-palace .map-star,.map-body-label{font-size:.64rem;line-height:1.24}.map-body-label{font-weight:750;color:var(--tone)}.map-ziwei-ring [aria-pressed=true]{outline-offset:0}.atlas-map .map-planet[aria-pressed=true]{outline:none}
.map-cell-1-1{grid-area:1/1}.map-cell-1-2{grid-area:1/2}.map-cell-1-3{grid-area:1/3}.map-cell-1-4{grid-area:1/4}.map-cell-2-1{grid-area:2/1}.map-cell-2-2{grid-area:2/2}.map-cell-2-3{grid-area:2/3}.map-cell-2-4{grid-area:2/4}.map-cell-3-1{grid-area:3/1}.map-cell-3-2{grid-area:3/2}.map-cell-3-3{grid-area:3/3}.map-cell-3-4{grid-area:3/4}.map-cell-4-1{grid-area:4/1}.map-cell-4-2{grid-area:4/2}.map-cell-4-3{grid-area:4/3}.map-cell-4-4{grid-area:4/4}
/* Card previews reflect the personal Atlas: distinctive marks, calm surfaces. */
.hd{--wash:#f1ebfb;--tone:#65438e}.astro{--wash:#eaf2fb;--tone:#285d92}.num{--wash:#fbf0d9;--tone:#7d520b}.bazi{--wash:#e7f2ec;--tone:#24604c}.ziwei{--wash:#fbece1;--tone:#8d472b}
.lenses{gap:clamp(.45rem,1.2vw,.9rem)}.lens{display:grid;grid-template-rows:auto auto 1fr auto;align-content:stretch;gap:.58rem;min-height:242px}.lens .lens-name{font-size:clamp(1rem,1.67vw,1.3rem);line-height:1.18;letter-spacing:-.035em}.lens .lens-result{font-size:.82rem;line-height:1.38}.lens-open{font-size:.79rem;font-weight:750;color:var(--tone);padding:.42rem 0 0;border-top:1px solid color-mix(in srgb,var(--tone) 23%,white);margin-top:.05rem}.lens-preview{min-height:68px;display:grid;align-content:center;gap:.22rem;min-width:0}.mini-cell{display:grid;gap:.12rem;min-width:0}.mini-cell small{font-size:.65rem;color:var(--tone);font-weight:650;line-height:1.1}.mini-cell strong{color:var(--tone);font-size:.82rem;line-height:1.16;overflow-wrap:anywhere}.preview-hd .mini-cell{grid-template-columns:1fr auto;align-items:center;border:1px solid #fff;background:#ffffff84;border-radius:5px;padding:.2rem .29rem}.preview-hd .mini-cell small{font-size:.59rem}.preview-astro{display:flex;align-items:center;gap:.55rem}.mini-wheel{width:48px;height:48px;flex:none;display:grid;place-items:center;border:1px solid #87a9cb;border-radius:100%;background:conic-gradient(#a5c9ea 0 30deg,#eed6ba 30deg 60deg,#b0d5cc 60deg 90deg,#b9ccdf 90deg 120deg,#ead7a8 120deg 150deg,#b7dcce 150deg 180deg,#a5c9ea 180deg 210deg,#eed6ba 210deg 240deg,#b0d5cc 240deg 270deg,#b9ccdf 270deg 300deg,#ead7a8 300deg 330deg,#b7dcce 330deg);}.mini-wheel-core{display:grid;place-items:center;width:33px;height:33px;background:#eef6ff;border:1px solid #98b6d4;border-radius:100%;color:var(--tone)}.mini-astro{display:grid;gap:.42rem}.preview-num{grid-template-columns:repeat(2,minmax(0,1fr));text-align:center}.preview-num strong{font-size:1.54rem;grid-row:1}.preview-bazi{grid-template-columns:repeat(4,minmax(0,1fr));text-align:center;gap:.18rem}.preview-bazi .mini-cell{padding:.18rem .05rem;align-content:start;border-top:1px solid #a6c6b8}.preview-bazi .mini-cell strong{font-size:.75rem;white-space:normal;overflow-wrap:normal}.preview-ziwei{display:flex;align-items:center;justify-content:center;gap:.55rem}.mini-palaces{width:50px;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;flex:none}.mini-palace{aspect-ratio:1;border-radius:2px;border:1px solid #cda384;background:#fff8}.mini-center{border-color:transparent;background:transparent}.atlas-external{display:inline-block;font-size:.84rem;font-weight:750;color:var(--tone);margin-top:.75rem;text-underline-offset:3px}.atlas-external-note{font-size:.75rem;color:var(--muted);line-height:1.35;margin:.2rem 0 0}
@media(min-width:761px) and (max-width:940px){.lens{padding:.6rem}.preview-bazi{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-astro{gap:.3rem}.mini-wheel{width:36px;height:36px}.mini-wheel-core{width:25px;height:25px}.preview-hd .mini-cell small{font-size:.55rem}}
@media(max-width:650px){.lens{min-height:194px;gap:.44rem}.lens-preview{min-height:57px}.lens .lens-name{font-size:1.02rem}.lens-open{font-size:.73rem}.preview-bazi .mini-cell strong{font-size:.68rem}}
.import-quick{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--edge)}.import-quick p{font-size:.87rem;margin:0 0 .45rem}.atlas-import{display:flex;margin-top:.8rem}.import-dialog{width:min(620px,calc(100% - 1.5rem));max-height:88vh;border:1px solid var(--edge);border-radius:16px;background:var(--paper);color:var(--ink);padding:clamp(1rem,3vw,1.55rem);box-shadow:0 16px 60px #15152a48;overflow:auto}.import-dialog::backdrop{background:#15172d8a}.import-head{display:flex;align-items:start;justify-content:space-between;gap:.6rem}.import-head h2{font-size:clamp(1.45rem,4vw,2.35rem);margin-bottom:.7rem}.import-head button{min-height:38px;padding:.3rem .67rem;font-size:.82rem}.import-dialog #import-message{color:#443676;font-weight:650;margin-top:.6rem}.import-dialog fieldset{margin:.65rem 0;padding:.75rem;border:1px solid var(--edge);border-radius:9px}.import-dialog legend{font-size:.9rem;font-weight:750}.import-fields{display:grid;grid-template-columns:1fr 1fr;gap:.55rem .65rem}.import-fields label{font-size:.82rem}.import-fields input{font-size:.88rem;margin-top:.15rem;min-height:38px}.import-dialog input[type=file]{font-size:.88rem}.import-dialog .cta{margin-top:.3rem}
@media(max-width:420px){.import-fields{grid-template-columns:1fr}}
@media print{.import-dialog{display:none!important}}
.map-hd-import-controls{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.55rem}.map-import-channel,.map-import-center-select{cursor:pointer}.map-import-channel[aria-pressed=true] path:last-child,.map-import-channel:focus path:last-child{stroke:#583688;stroke-width:6}.map-import-center-select[aria-pressed=true] polygon,.map-import-center-select:focus polygon{stroke:#583688;stroke-width:3}.atlas-map .map-import-channel[aria-pressed=true],.atlas-map .map-import-center-select[aria-pressed=true]{outline:none}
.import-provenance{margin:.65rem 0;padding:.55rem .65rem;border:1px solid #d1ded9;border-radius:.5rem;background:#f0f8f5;font-size:.875rem;line-height:1.5;color:#224c3e}
.import-field{display:grid;align-content:start;gap:.2rem;min-width:0}.import-field label{margin:0}.import-field-status{display:block;color:#575369;font-size:.875rem;line-height:1.35}.import-field-status[data-state=source]{color:#216142}.import-field-status[data-state=edited],.import-field-status[data-state=derived]{color:#285d92}.import-extras{margin-top:.75rem;border-top:1px solid var(--edge);padding-top:.55rem}.import-extras summary{cursor:pointer;font-weight:700;margin-bottom:.45rem}
