
:root{
 --bg:#09070f;--bg2:#100b18;--panel:#15101f;--panel2:#1a1326;--text:#f7f1ff;--muted:#a99bb8;
 --gold:#dfbd73;--gold2:#f4df9e;--violet:#9270ff;--line:rgba(255,255,255,.10);--shadow:0 24px 70px rgba(0,0,0,.35);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:
radial-gradient(circle at 10% -5%,rgba(118,78,210,.21),transparent 30%),radial-gradient(circle at 91% 5%,rgba(223,189,115,.1),transparent 28%),linear-gradient(180deg,var(--bg),#0d0915 62%,#08060d);min-height:100vh}
body.light{--bg:#f7f1e7;--bg2:#fffaf3;--panel:#fffaf3;--panel2:#fff5e5;--text:#2e2433;--muted:#776b7e;--line:rgba(45,30,55,.13);--shadow:0 20px 50px rgba(45,30,55,.12)}
a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.stars{position:fixed;inset:0;pointer-events:none;opacity:.35;background-image:radial-gradient(circle,#fff 1px,transparent 1.4px),radial-gradient(circle,#ad90ff .8px,transparent 1.2px);background-size:90px 90px,150px 150px;background-position:12px 18px,60px 80px;mask-image:linear-gradient(#000,transparent 75%)}
.topbar{height:76px;position:sticky;top:0;z-index:40;padding:0 clamp(18px,4vw,64px);display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);background:rgba(9,7,15,.82);backdrop-filter:blur(18px)}.light .topbar{background:rgba(247,241,231,.88)}
.brand{display:flex;align-items:center;gap:11px;min-width:max-content}.brand-mark{width:42px;height:42px;border:1px solid rgba(223,189,115,.45);border-radius:50%;display:grid;place-items:center;color:var(--gold2);box-shadow:inset 0 0 22px rgba(223,189,115,.08)}.brand b{display:block;font-family:Georgia,serif;letter-spacing:.12em;font-size:14px}.brand small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.nav{flex:1;display:flex;align-items:center;justify-content:center;gap:18px}.nav a,.mobile-nav a{font-size:11px;color:var(--muted);padding:9px 0;border-bottom:1px solid transparent}.nav a:hover,.nav a.active{color:var(--gold2);border-color:var(--gold)}
.icon-btn,.menu-btn{border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--text);padding:8px 11px;cursor:pointer}.menu-btn{display:none}.mobile-nav{display:none}
.hero,.page-hero,.section,footer{max-width:1320px;margin:auto}.hero{min-height:650px;padding:76px clamp(20px,5vw,70px);display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:55px}.hero h1,.page-hero h1{font-family:Georgia,serif;font-weight:500;letter-spacing:-.045em;line-height:.96;margin:18px 0 24px}.hero h1{font-size:clamp(48px,6.2vw,88px)}.hero h1 span,.page-hero h1 span{color:var(--gold2);font-style:italic}.hero p,.page-hero p{color:var(--muted);font-size:17px;line-height:1.7;max-width:720px}.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--gold);font-weight:900}.hero-actions{display:flex;gap:12px;margin:30px 0 23px}.btn{border:1px solid var(--line);border-radius:12px;padding:13px 18px;cursor:pointer;color:var(--text);background:rgba(255,255,255,.035);font-weight:750;display:inline-flex;justify-content:center;align-items:center;transition:.2s}.btn:hover{transform:translateY(-2px);border-color:rgba(223,189,115,.5)}.btn.primary{border:0;color:#241708;background:linear-gradient(135deg,#ead08c,#ba8d3e);box-shadow:0 14px 35px rgba(205,160,73,.18)}.full{width:100%}.trust-row{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:11px}
.hero-orbit{display:grid;place-items:center}.orbital-card{width:min(410px,90vw);aspect-ratio:1;border:1px solid rgba(223,189,115,.3);border-radius:50%;display:grid;place-items:center;align-content:center;text-align:center;background:radial-gradient(circle at 50% 40%,rgba(145,108,255,.22),transparent 42%),rgba(255,255,255,.015);box-shadow:inset 0 0 100px rgba(143,105,255,.09),0 0 90px rgba(0,0,0,.2);position:relative}.orbital-card:before,.orbital-card:after{content:"";position:absolute;border-radius:50%;border:1px dashed rgba(255,255,255,.11);inset:9%}.orbital-card:after{inset:22%;border-style:solid;border-color:rgba(223,189,115,.13)}.orbit-title{font-size:10px;letter-spacing:.2em;color:var(--gold);z-index:2}.big-date{font-family:Georgia,serif;color:var(--gold2);font-size:74px;line-height:1.05;z-index:2}.gold-line{width:80px;height:1px;background:var(--gold);margin:17px auto;opacity:.5}.v2-orbit>div{z-index:2}.muted{color:var(--muted)}
.section{padding:84px clamp(20px,5vw,70px)}.section.compact{padding-top:45px;padding-bottom:70px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:32px}.section h2,.panel h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.03em}.section h2{font-size:clamp(34px,4vw,54px);margin:9px 0 0}.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.portal-card{min-height:188px;padding:24px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.016));transition:.2s}.portal-card:hover{transform:translateY(-4px);border-color:rgba(223,189,115,.45)}.portal-card>span{width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(223,189,115,.22);border-radius:12px;color:var(--gold2);font-family:Georgia,serif;font-size:20px}.portal-card b{display:block;margin:20px 0 8px;font-size:15px}.portal-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.portal-card.accent{background:linear-gradient(140deg,rgba(223,189,115,.11),rgba(145,108,255,.08));border-color:rgba(223,189,115,.28)}
.split-note{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px;padding:36px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.018)}.note-stack{display:grid;gap:13px}.note-stack>div{padding:18px;border:1px solid var(--line);border-radius:13px}.note-stack p{color:var(--muted);font-size:12px;line-height:1.6;margin:8px 0 0}.badge{font-size:9px;letter-spacing:.12em;padding:5px 8px;border-radius:999px}.badge.calc{background:rgba(83,203,149,.12);color:#91e7bb;border:1px solid rgba(83,203,149,.2)}.badge.culture{background:rgba(223,189,115,.12);color:var(--gold2);border:1px solid rgba(223,189,115,.2)}.badge.reflect{background:rgba(146,112,255,.12);color:#c4b3ff;border:1px solid rgba(146,112,255,.2)}
.page-hero{padding:78px clamp(20px,5vw,70px) 50px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.page-hero h1{font-size:clamp(46px,5.4vw,76px)}.hero-symbol{font-family:Georgia,serif;color:var(--gold2);font-size:90px;opacity:.7}
.app-section{padding-top:48px}.tool-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}.panel,.result-card,.mini-tool,.chat-shell{border:1px solid var(--line);border-radius:18px;background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.016));box-shadow:var(--shadow)}.panel{padding:28px}.panel.slim{box-shadow:none}.panel h2{font-size:31px;margin:0 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:15px}.form-grid.one{grid-template-columns:1fr}.form-grid label,.panel label,.ai-profile label{font-size:10px;font-weight:800;color:var(--muted);letter-spacing:.04em}.form-grid input,.form-grid select,.panel input,.panel select,.ai-profile input,.ai-profile select,.interactive input,.interactive select{width:100%;margin-top:7px;border:1px solid var(--line);border-radius:10px;padding:12px;background:rgba(0,0,0,.14);color:var(--text);outline:none}.light input,.light select{background:rgba(255,255,255,.75)}.result-card{padding:28px}.result-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--gold);letter-spacing:.13em}.result-content{min-height:300px;padding-top:20px;color:var(--muted);line-height:1.7}.result-content.empty{display:grid;place-items:center;align-content:center;text-align:center}.result-content h3{font-family:Georgia,serif;font-weight:500;color:var(--text);font-size:29px;margin:3px 0 13px}.result-content strong{color:var(--gold2)}.placeholder-symbol{font-size:60px;color:rgba(223,189,115,.5)}.micro{font-size:10px;color:var(--muted);text-align:center}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.info-card{padding:20px;border:1px solid var(--line);border-radius:14px}.info-card b{color:var(--gold2)}.info-card p,.warning-box{color:var(--muted);font-size:12px;line-height:1.65}.warning-box{padding:20px;border:1px solid rgba(223,189,115,.22);background:rgba(223,189,115,.045);border-radius:14px}.warning-box b{color:var(--gold2)}
.pill-row{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.pill{padding:7px 10px;border-radius:999px;border:1px solid var(--line);font-size:11px}.pillar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.pillar{padding:15px;border:1px solid var(--line);border-radius:12px;text-align:center}.pillar small{display:block;color:var(--muted);margin-bottom:7px}.pillar b{font-family:Georgia,serif;font-size:22px;color:var(--gold2)}
.chart-meta{margin:18px 0;color:var(--muted);font-size:12px}.palace-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,minmax(150px,auto));gap:8px}.palace{border:1px solid var(--line);border-radius:13px;padding:14px;background:rgba(255,255,255,.025);position:relative}.palace b{display:block;color:var(--gold2);font-family:Georgia,serif;font-size:18px}.palace small{color:var(--muted)}.palace .proto{margin-top:12px;font-size:10px;color:var(--muted);line-height:1.5}.palace.center{grid-column:2/4;grid-row:2/4;display:grid;place-items:center;text-align:center;background:radial-gradient(circle,rgba(146,112,255,.12),transparent 65%)}.empty-palace{grid-column:1/-1;min-height:270px;display:grid;place-items:center;color:var(--muted)}
.triple-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.mini-tool{padding:27px}.mini-icon{font-size:35px;color:var(--gold2)}.mini-tool h3{font-family:Georgia,serif;font-size:25px;margin:14px 0 8px}.mini-tool p{color:var(--muted);font-size:12px;line-height:1.55;min-height:40px}.interactive input,.interactive select{margin:12px 0}.inline-result{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.6}.inline-result:empty{display:none}.inline-result strong{color:var(--gold2)}.tarot-cards{display:grid;gap:8px}.tarot-item{padding:10px;border:1px solid var(--line);border-radius:10px}.score-ring{width:110px;height:110px;border:1px solid rgba(223,189,115,.4);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:31px;color:var(--gold2);margin:15px 0}
.ai-layout{display:grid;grid-template-columns:300px 1fr;gap:17px}.ai-profile{display:grid;gap:13px;align-content:start}.ai-profile h3{font-family:Georgia,serif;font-size:25px;margin:0 0 8px}.privacy-note{font-size:10px;color:var(--muted);padding:10px;border:1px solid var(--line);border-radius:10px}.chat-shell{min-height:580px;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.chat-head{display:flex;gap:10px;align-items:center;padding:17px;border-bottom:1px solid var(--line)}.avatar{width:40px;height:40px;border-radius:50%;border:1px solid rgba(223,189,115,.4);display:grid;place-items:center;color:var(--gold2)}.chat-head b{display:block}.chat-head small{display:block;color:var(--muted);font-size:9px}.chat-messages{padding:22px;overflow:auto;display:flex;flex-direction:column;gap:10px}.msg{max-width:78%;padding:11px 13px;border-radius:13px;font-size:12px;line-height:1.55}.msg.bot{align-self:flex-start;background:rgba(255,255,255,.05);border:1px solid var(--line)}.msg.user{align-self:flex-end;background:rgba(223,189,115,.12);border:1px solid rgba(223,189,115,.2)}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px;border-top:1px solid var(--line)}.chat-compose input{border:1px solid var(--line);border-radius:11px;background:rgba(0,0,0,.14);color:var(--text);padding:12px;outline:none}.chat-compose button{border:0;border-radius:10px;padding:0 18px;background:linear-gradient(135deg,#e6c77f,#b98b3c);font-weight:800;color:#251708;cursor:pointer}
footer{padding:38px clamp(20px,5vw,70px) 55px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:25px;color:var(--muted);font-size:10px}footer b{color:var(--gold2);letter-spacing:.12em}footer p{margin:6px 0 0}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);padding:10px 14px;background:#21182d;border:1px solid var(--line);border-radius:10px;opacity:0;transition:.2s;pointer-events:none;z-index:100;font-size:11px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.nav{gap:11px}.nav a{font-size:9px}.portal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.nav{display:none}.menu-btn{display:block;margin-left:auto}.icon-btn{margin-left:0}.mobile-nav.show{display:grid;position:fixed;z-index:35;top:76px;left:0;right:0;padding:16px 24px;background:rgba(15,10,23,.97);border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr;gap:5px}.hero{grid-template-columns:1fr;padding-top:50px}.hero-orbit{order:-1}.orbital-card{width:min(320px,75vw)}.hero-copy{text-align:center}.hero-copy p{margin-inline:auto}.hero-actions,.trust-row{justify-content:center}.tool-layout,.split-note,.ai-layout{grid-template-columns:1fr}.page-hero{padding-top:55px}.hero-symbol{font-size:58px}.triple-grid,.info-grid{grid-template-columns:1fr}.palace-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:auto}.palace.center{grid-column:1/-1;grid-row:auto;min-height:150px}}
@media(max-width:600px){.brand small{display:none}.hero{padding-inline:18px}.hero h1{font-size:48px}.page-hero{padding-inline:18px}.page-hero h1{font-size:44px}.page-hero p{font-size:14px}.hero-symbol{display:none}.section{padding:62px 18px}.portal-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.pillar-grid{grid-template-columns:1fr 1fr}.palace-grid{grid-template-columns:1fr 1fr}.palace.center{grid-column:1/-1}.section h2{font-size:37px}.hero-actions{flex-direction:column}.btn{width:100%}.mobile-nav.show{grid-template-columns:1fr}.chat-shell{min-height:520px}footer{flex-direction:column}}

/* ===== V3 additions ===== */
.big-percent{font-family:Georgia,serif;font-size:78px;color:var(--gold2);line-height:1}
.mini-status{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:14px}
.portal-card.locked{opacity:.72}.pipeline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pipeline span{padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:10px;color:var(--gold2)}.pipeline i{color:var(--muted)}
.button-row{display:flex;gap:10px;flex-wrap:wrap}.facts-summary{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.fact-chip{border:1px solid var(--line);border-radius:12px;padding:10px 13px;background:rgba(255,255,255,.025)}.fact-chip small{display:block;color:var(--muted);font-size:9px}.fact-chip b{display:block;margin-top:5px;color:var(--gold2);font-family:Georgia,serif}
.validator-strip{margin:12px 0 18px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);font-size:11px}.validator-strip.pass{border-color:rgba(83,203,149,.28);background:rgba(83,203,149,.06);color:#91e7bb}.validator-strip.fail{border-color:rgba(240,102,102,.28);background:rgba(240,102,102,.05);color:#f3a0a0}
.v3-chart .palace{min-height:170px}.palace-head{display:flex;justify-content:space-between;gap:8px}.palace-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.palace-tag{font-size:8px;padding:4px 6px;border:1px solid var(--line);border-radius:999px}.palace-tag.soul{color:var(--gold2);border-color:rgba(223,189,115,.38)}.palace-tag.body{color:#c9b8ff;border-color:rgba(146,112,255,.38)}.palace-stars-locked{margin-top:13px;padding:8px;border:1px dashed var(--line);border-radius:9px;color:var(--muted);font-size:9px}.decadal{margin-top:10px;color:var(--muted);font-size:9px}
.two-panel{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.facts-code{white-space:pre-wrap;overflow:auto;max-height:430px;color:#cdbfe1;font-size:10px;line-height:1.6;background:rgba(0,0,0,.18);padding:14px;border-radius:12px;border:1px solid var(--line)}.light .facts-code{background:#f7f0e4;color:#493b50}.coverage-list{display:grid;gap:8px;margin-top:18px}.coverage-list>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:9px 0;font-size:11px}.ok{color:#91e7bb}.lock{color:#d6b2ff}
.profile-list{display:grid;gap:10px}.profile-card{display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:15px}.profile-card b{display:block}.profile-card small{display:block;color:var(--muted);margin-top:5px}.profile-actions{display:flex;gap:7px}.tiny-action{border:1px solid var(--line);background:transparent;color:var(--text);border-radius:8px;padding:7px 9px;cursor:pointer;font-size:10px}
.engine-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:22px}.engine-kpis>div{border:1px solid var(--line);border-radius:15px;padding:20px}.engine-kpis b{font-family:Georgia,serif;color:var(--gold2);font-size:32px;display:block}.engine-kpis span{font-size:10px;color:var(--muted)}.rule-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:15px}.rule-table{width:100%;border-collapse:collapse;min-width:760px}.rule-table th,.rule-table td{text-align:left;padding:13px;border-bottom:1px solid var(--line);font-size:11px}.rule-table th{color:var(--gold);font-size:9px;letter-spacing:.1em}.locked-badge{background:rgba(146,112,255,.1);color:#c9b8ff;border:1px solid rgba(146,112,255,.2)}
.section-head.small h2{font-size:32px}
@media(max-width:850px){.two-panel{grid-template-columns:1fr}.engine-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.engine-kpis{grid-template-columns:1fr}.button-row{flex-direction:column}.button-row .btn{width:100%}}

/* ===== V4 additions ===== */
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--gold2)}
.major-star-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}.major-star-chip{font-size:10px;font-weight:800;padding:6px 8px;border-radius:9px;border:1px solid var(--line)}.major-star-chip.ziwei{color:#f3d790;border-color:rgba(223,189,115,.34);background:rgba(223,189,115,.07)}.major-star-chip.tianfu{color:#c9b8ff;border-color:rgba(146,112,255,.34);background:rgba(146,112,255,.07)}.major-star-empty{font-size:9px;color:var(--muted);margin-top:14px;font-style:italic}.lock-note{font-size:8px;color:var(--muted);margin-top:7px}.v4-chart .palace{min-height:190px}
.star-family{margin-bottom:45px}.family-head{display:flex;gap:16px;align-items:center;margin-bottom:18px}.family-head>span{width:60px;height:60px;border:1px solid rgba(223,189,115,.3);border-radius:16px;display:grid;place-items:center;color:var(--gold2);font-family:Georgia,serif;font-size:28px}.family-head h2{margin:4px 0 0}.star-catalog{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.star-catalog article{padding:20px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.024)}.star-catalog b{display:block;color:var(--gold2);font-family:Georgia,serif;font-size:20px}.star-catalog small{display:block;color:var(--muted);font-size:9px;margin:5px 0 13px}.star-catalog p{font-size:11px;color:var(--muted);line-height:1.6;margin:0}
.test-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.test-card{border:1px solid var(--line);border-radius:13px;padding:15px}.test-card.pass{border-color:rgba(83,203,149,.24);background:rgba(83,203,149,.035)}.test-card.fail{border-color:rgba(240,102,102,.3);background:rgba(240,102,102,.04)}.test-card b{display:block;font-size:10px;color:#91e7bb}.test-card.fail b{color:#f3a0a0}.test-card span{display:block;margin:7px 0;font-size:11px}.test-card small{color:var(--muted);font-size:9px}
@media(max-width:950px){.star-catalog{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.star-catalog,.test-grid{grid-template-columns:1fr}.v4-chart .palace{min-height:165px}}

/* ===== V5 additions ===== */
.v5-chart .palace{min-height:215px}.aux-star-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.aux-star-chip{font-size:8px;padding:5px 6px;border-radius:8px;border:1px solid var(--line);color:var(--muted)}.aux-star-chip.benefic{color:#a6dfc0;border-color:rgba(83,203,149,.23)}.aux-star-chip.malefic{color:#e4a5aa;border-color:rgba(235,104,115,.22)}.aux-star-chip.dynamic{color:#aebdf0;border-color:rgba(102,130,220,.22)}.mutagen{display:inline-block;margin-left:4px;font-style:normal;font-size:7px;padding:2px 4px;border-radius:999px;vertical-align:1px}.m-Lộc{background:rgba(83,203,149,.15);color:#91e7bb}.m-Quyền{background:rgba(224,151,75,.15);color:#efbe83}.m-Khoa{background:rgba(100,150,240,.15);color:#a9c9ff}.m-Kỵ{background:rgba(229,91,112,.15);color:#f3a0b0}.v5-catalog{grid-template-columns:repeat(4,1fr)}.mutagen-table td:not(:first-child){color:var(--gold2)}
@media(max-width:950px){.v5-catalog{grid-template-columns:1fr 1fr}}@media(max-width:600px){.v5-catalog{grid-template-columns:1fr}.v5-chart .palace{min-height:190px}}

/* ===== V6 additions ===== */
.v6-chart .palace{min-height:245px}.palace-tag.annual{color:#9fd5ff;border-color:rgba(80,160,225,.4)}.cycle-lines{display:grid;gap:3px;margin-top:9px;padding-top:8px;border-top:1px dashed var(--line);font-size:8px;color:var(--muted)}.cycle-lines b{color:var(--gold2);font-weight:700}
.cycle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.cycle-card{padding:26px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.025)}.cycle-card>span{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(223,189,115,.3);border-radius:13px;color:var(--gold2);font-family:Georgia,serif;font-size:22px}.cycle-card h3{font-family:Georgia,serif;font-size:25px;margin:15px 0 8px}.cycle-card p{color:var(--muted);font-size:11px;line-height:1.6}.cycle-seq{font-size:9px;color:var(--muted);line-height:1.8;padding:12px;border:1px dashed var(--line);border-radius:10px;margin-top:14px}
.diff-details{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.diff-added{padding:14px;border:1px solid rgba(83,203,149,.22);background:rgba(83,203,149,.035);border-radius:12px}.diff-added b{display:block;color:#91e7bb;font-size:10px}.diff-added span{font-size:9px;color:var(--muted)}
@media(max-width:850px){.cycle-grid{grid-template-columns:1fr}.diff-details{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.diff-details{grid-template-columns:1fr}.v6-chart .palace{min-height:215px}}

/* ===== V7 additions ===== */
.scope-bar{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.scope-pill{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--muted);padding:8px 10px;border-radius:999px;font-size:9px}.dynamic-stack,.scope-grid{display:grid;gap:10px;margin-top:15px}.scope-grid{grid-template-columns:repeat(2,1fr)}.scope-card{border:1px solid var(--line);border-radius:13px;padding:14px}.scope-card>div:first-child{display:flex;justify-content:space-between;gap:10px}.scope-card b{text-transform:uppercase;color:var(--gold2);font-size:10px}.scope-card small{color:var(--muted)}.scope-mutagens{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.scope-mutagens span{font-size:9px;padding:5px 7px;border-radius:8px}.corpus-text{width:100%;margin:15px 0;background:rgba(0,0,0,.18);border:1px solid var(--line);border-radius:12px;color:#d6c9e5;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;line-height:1.55}.corpus-summary{font-size:22px;font-family:Georgia,serif;margin:15px 0}.test-grid.single{grid-template-columns:1fr}.test-grid.single small{display:block;margin-top:5px}.diff-alert{color:#f0c07c}.hero-v7 .orbital-card{box-shadow:inset 0 0 110px rgba(118,83,220,.12),0 0 90px rgba(0,0,0,.2)}
@media(max-width:700px){.scope-grid{grid-template-columns:1fr}}

/* ===== V8 additions ===== */
.v8-chart .palace{min-height:255px}.brightness-tag{display:inline-block;font-style:normal;font-size:7px;margin-left:4px;padding:2px 4px;border-radius:999px;background:rgba(255,255,255,.07);color:var(--gold2)}
.flow-mini{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px;padding-top:8px;border-top:1px dashed var(--line)}.flow-mini i{font-style:normal;font-size:7px;color:var(--muted);padding:3px 5px;border:1px solid var(--line);border-radius:6px}
.brightness-id{font-size:28px!important;word-break:break-all}.brightness-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.brightness-card{padding:14px;border:1px solid var(--line);border-radius:12px}.brightness-card b{display:block;color:var(--gold2);margin-bottom:8px}.brightness-card>div{display:grid;grid-template-columns:repeat(12,1fr);gap:3px}.brightness-card span{font-size:7px;text-align:center;padding:5px 2px;background:rgba(255,255,255,.035);border-radius:4px;color:var(--muted)}
.file-drop{display:block;border:1px dashed rgba(223,189,115,.35);padding:14px;border-radius:12px;color:var(--muted);font-size:10px;margin:15px 0}.file-drop input{display:block;margin-top:9px;color:var(--text)}
button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:800px){.brightness-grid{grid-template-columns:1fr}}@media(max-width:600px){.brightness-card>div{grid-template-columns:repeat(6,1fr)}}

/* ===== V9 additions ===== */
.v9-chart .palace{min-height:285px}.adjective-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px}.adjective-chip{font-size:7px;padding:4px 5px;border-radius:6px;border:1px solid var(--line);color:var(--muted)}.adjective-chip.year{border-color:rgba(223,189,115,.18)}.adjective-chip.month{border-color:rgba(120,170,245,.2)}.adjective-chip.day{border-color:rgba(130,210,165,.2)}.adjective-chip.hour{border-color:rgba(190,130,245,.2)}
.count-stack{display:grid;gap:9px;margin-top:15px}.count-stack>div{display:flex;justify-content:space-between;padding:11px;border-bottom:1px solid var(--line)}.count-stack b{color:var(--gold2)}
.registry-groups{display:grid;grid-template-columns:1fr 1fr;gap:14px}.registry-group{border:1px solid var(--line);border-radius:16px;padding:20px;background:rgba(255,255,255,.02)}.registry-head{display:flex;justify-content:space-between;align-items:center}.registry-head h2{font-size:24px!important}.registry-head b{color:var(--gold2);font-size:24px}.registry-chips{display:flex;flex-wrap:wrap;gap:6px}.registry-chips span{font-size:9px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;color:var(--muted)}
.school-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.school-card{padding:26px;border:1px solid var(--line);border-radius:17px}.school-card.active{border-color:rgba(83,203,149,.25)}.school-card.locked{opacity:.72}.school-card h2{font-family:Georgia,serif;font-size:30px}.school-card p,.school-card li{font-size:11px;color:var(--muted);line-height:1.7}
.release-hero{display:flex;justify-content:space-between;align-items:center;padding:28px;border:1px solid var(--line);border-radius:18px;margin-bottom:16px}.release-hero.pass{border-color:rgba(83,203,149,.27)}.release-hero h2{font-family:Georgia,serif;font-size:36px;margin:8px 0}.release-score{font-family:Georgia,serif;color:var(--gold2);font-size:48px;text-align:center}.release-score small{display:block;font-family:inherit;font-size:9px;color:var(--muted)}.gate-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.gate-card{padding:18px;border:1px solid var(--line);border-radius:13px}.gate-card.pass{border-color:rgba(83,203,149,.22)}.gate-card.hold{border-color:rgba(235,170,80,.25)}.gate-card b{display:block;color:#91e7bb}.gate-card.hold b{color:#efbe83}.gate-card span,.gate-card small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.release-json-panel{box-shadow:none}
@media(max-width:850px){.registry-groups,.school-grid{grid-template-columns:1fr}.gate-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.gate-grid{grid-template-columns:1fr}.release-hero{align-items:flex-start;gap:20px;flex-direction:column}}

/* ===== V10 additions ===== */
.hero-v10 .big-percent{font-size:60px}.v10-chart .palace{min-height:290px}.boundary-note{padding:11px 14px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);font-size:10px;margin:12px 0}.boundary-note b{color:var(--gold2)}
.school-card.zhongzhou{border-color:rgba(150,115,255,.32)}.cli-panel{margin-bottom:14px}.cli-panel pre{font-size:12px;line-height:1.9}
.profile-card{min-height:55px}

/* ===== V11 additions ===== */
.hero-v11 .big-percent{font-size:72px}.registry-proof{border-left:2px solid var(--gold2);padding-left:14px}.reference-source{font-size:8px;color:var(--muted)}.boundary-note strong{color:var(--gold2)}

/* V12 */
.oracle-note{font-size:10px;color:var(--muted)}

/* V14 */
.provider-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.provider-card{border:1px solid var(--line);border-radius:16px;padding:20px;background:rgba(255,255,255,.02)}.provider-card h2{font-family:Georgia,serif;font-size:25px}.provider-card p,.provider-card small{color:var(--muted)}@media(max-width:760px){.provider-grid{grid-template-columns:1fr}}

/* V16 */
.pipeline-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pipeline-stage{border:1px solid var(--line);border-radius:13px;padding:13px;background:rgba(255,255,255,.02);display:grid;grid-template-columns:1fr auto;gap:5px}.pipeline-stage small{grid-column:1/-1;color:var(--muted)}.pipeline-stage.pass{border-color:rgba(70,210,130,.35)}.pipeline-stage.fail{border-color:rgba(255,90,90,.45)}.pipeline-stage.hold{border-color:rgba(240,190,90,.4)}.pipeline-stage.running{box-shadow:inset 0 0 0 1px rgba(180,140,255,.3)}@media(max-width:760px){.pipeline-grid{grid-template-columns:1fr}}

/* V17 */
.evidence-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.evidence-card{border:1px solid var(--line);border-radius:15px;padding:16px;background:rgba(255,255,255,.02)}.evidence-card.blocker{border-color:rgba(255,86,86,.5)}.evidence-card.high{border-color:rgba(255,180,90,.4)}.evidence-card.medium{border-color:rgba(235,210,90,.35)}.evidence-top{display:flex;justify-content:space-between;gap:10px}.evidence-card p{font-size:11px;color:var(--gold2)}.evidence-card small{color:var(--muted)}.evidence-action{font-size:11px;margin:10px 0;padding:9px;border-left:2px solid var(--gold2);color:var(--muted)}.evidence-card select{width:100%;margin-top:6px}.hotspot-list{display:grid;gap:8px}.hotspot-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px}.hotspot-row span,.hotspot-row small{color:var(--muted)}@media(max-width:760px){.evidence-grid{grid-template-columns:1fr}.hotspot-row{grid-template-columns:1fr}}

/* V18 */
.family-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.family-node{border:1px solid var(--line);border-radius:16px;padding:15px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:6px}.family-node span,.family-node small{color:var(--muted)}.relation-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.relation-list>div{border:1px solid var(--line);padding:10px;border-radius:12px;display:flex;justify-content:space-between;gap:10px}.compat-score{display:flex;align-items:end;gap:14px;margin:8px 0 20px}.compat-score b{font-size:68px;font-family:Georgia,serif;color:var(--gold2);line-height:.9}.compat-score span{font-size:16px}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:10px 0}.day-list,.direction-list{display:grid;gap:10px}.day-card,.direction-row{border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;grid-template-columns:auto 1fr;gap:12px;background:rgba(255,255,255,.02)}.day-card span,.day-card small,.direction-row span,.direction-row small{display:block;color:var(--muted)}.day-card em{display:block;margin-top:6px;color:var(--gold2);font-size:10px}.day-rank{font-family:Georgia,serif;font-size:28px;color:var(--gold2)}.direction-row{grid-template-columns:120px 1fr}.direction-row small{grid-column:1/-1}.provider-card label,.panel label{display:block;margin:8px 0}.portal-card span{font-size:23px}.gate-card.hold{border-color:rgba(240,190,90,.4)}
@media(max-width:900px){.family-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.family-grid,.relation-list,.check-grid{grid-template-columns:1fr}.direction-row{grid-template-columns:1fr}}

/* V19 */
.manage-list{display:grid;gap:8px}
.manage-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px}
.manage-row small{display:block;color:var(--muted);margin-top:4px}
.hour-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.hour-card{border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center}
.hour-card span,.hour-card small{display:block;color:var(--muted)}
.decision-list{display:grid;gap:10px}
.decision-card{border:1px solid var(--line);border-radius:15px;padding:14px;display:grid;grid-template-columns:auto 1fr;gap:12px;background:rgba(255,255,255,.02)}
.decision-card span,.decision-card small,.decision-card em,.decision-card strong{display:block;margin-top:5px}
.decision-card span,.decision-card small{color:var(--muted)}
.decision-card em{color:var(--gold2);font-style:normal}
.decision-card strong{color:#ffb0a7;font-size:10px}
.compact-kpis{grid-template-columns:1fr!important}
.heat-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.heat-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:15px}
.heat-day{min-height:72px;border:1px solid var(--line);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:3px}
.heat-day span{font-size:18px}.heat-day small{font-size:9px;color:var(--muted)}
.level-0{opacity:.55}.level-1{background:rgba(255,90,90,.08)}.level-2{background:rgba(240,190,90,.08)}
.level-3{background:rgba(110,190,130,.08)}.level-4,.level-5{background:rgba(110,210,150,.14);border-color:rgba(110,210,150,.35)}
@media(max-width:900px){.hour-grid{grid-template-columns:repeat(3,1fr)}.heat-controls{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.hour-grid{grid-template-columns:repeat(2,1fr)}.heat-grid{grid-template-columns:repeat(4,1fr)}.heat-controls{grid-template-columns:1fr}}

/* V20 */
.calendar-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.calendar-card{border:1px solid var(--line);border-radius:16px;padding:15px;background:rgba(255,255,255,.025);min-height:155px}
.calendar-card>b{display:block;font-family:Georgia,serif;font-size:22px;margin:20px 0 8px;color:var(--gold2)}
.calendar-card p,.calendar-card small{color:var(--muted)}
.calendar-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.calendar-top span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.calendar-top small{font-size:9px;border:1px solid var(--line);padding:3px 6px;border-radius:999px}
.calendar-gregorian{border-top:2px solid rgba(255,205,105,.75)}
.calendar-eastern_lunisolar{border-top:2px solid rgba(190,145,255,.75)}
.calendar-hijri{border-top:2px solid rgba(100,210,170,.75)}
.calendar-saka{border-top:2px solid rgba(255,150,85,.75)}
.calendar-hebrew{border-top:2px solid rgba(105,165,255,.75)}
.marker-list{display:grid;gap:8px}.marker-row{border:1px solid var(--line);border-radius:12px;padding:11px;display:flex;justify-content:space-between;gap:12px}.marker-row span{color:var(--muted)}
.conversion-arrow{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;text-align:center;margin:10px 0}.conversion-arrow b{color:var(--gold2)}
.big-date{font-family:Georgia,serif;font-size:30px;color:var(--gold2);text-align:center;margin:18px 0}
.mini-json{max-height:260px;overflow:auto;border:1px solid var(--line);padding:10px;border-radius:12px;font-size:10px;background:rgba(0,0,0,.15)}
.formula-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.formula-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:rgba(255,255,255,.02)}.formula-card p{font-size:12px;line-height:1.65}.formula-card p b{color:var(--gold2)}.formula-caveat{border-left:2px solid var(--gold2);padding:10px;color:var(--muted);font-size:10px;background:rgba(240,190,90,.04)}
.arithmetic-line{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:18px 0;text-align:center;border:1px solid var(--line);padding:15px;border-radius:14px}.arithmetic-line span{color:var(--gold2)}
.year-list{display:grid;gap:8px;margin-top:14px}.year-row{display:grid;grid-template-columns:180px 1fr 120px 1.5fr;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px}.year-row strong{font-family:Georgia,serif;font-size:20px;color:var(--gold2)}.year-row small{color:var(--muted)}
.calendar-detail-head{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px}.calendar-detail-head span{font-size:10px;letter-spacing:.12em;color:var(--gold2);text-transform:uppercase}.calendar-detail-head h2{font-family:Georgia,serif;font-size:38px;margin:6px 0}.calendar-detail-head p{color:var(--muted)}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.metric-grid>div{border:1px solid var(--line);border-radius:12px;padding:12px}.metric-grid b,.metric-grid span{display:block}.metric-grid b{font-size:13px}.metric-grid span{color:var(--muted);font-size:9px;margin-top:4px}
.formula-list{display:grid;gap:8px;margin:14px 0}.formula-list>div{display:grid;grid-template-columns:30px 1fr;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px}.formula-list>div>b{color:var(--gold2)}
@media(max-width:1100px){.calendar-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:800px){.calendar-grid,.formula-grid{grid-template-columns:1fr 1fr}.year-row{grid-template-columns:1fr 1fr}.metric-grid{grid-template-columns:1fr}}@media(max-width:520px){.calendar-grid,.formula-grid{grid-template-columns:1fr}.year-row{grid-template-columns:1fr}.conversion-arrow,.arithmetic-line{grid-template-columns:1fr}}

/* V21 */
.boundary-hero{display:flex;justify-content:space-between;align-items:end;gap:12px;border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:12px}.boundary-hero b{font-family:Georgia,serif;font-size:28px;color:var(--gold2)}.boundary-hero span{color:var(--muted)}
.term-list{display:grid;gap:7px;margin-top:12px}.term-row{display:grid;grid-template-columns:190px 1fr 180px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:10px}.term-row span{color:var(--muted)}.term-row strong{font-size:11px;color:var(--gold2)}
.occ-list{display:grid;gap:7px;margin-top:12px}.occ-row{display:grid;grid-template-columns:120px 1fr 160px;gap:10px;border:1px solid var(--line);border-radius:11px;padding:10px}.occ-row span{font-weight:700}.occ-row small{color:var(--muted)}
.collision-list{display:grid;gap:7px}.collision-card{border:1px solid var(--line);border-radius:12px;padding:11px;display:grid;grid-template-columns:120px 1fr;gap:10px}.collision-card b{color:var(--gold2)}.collision-card span{color:var(--muted)}
.world-solar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.world-solar-grid>div{border:1px solid var(--line);border-radius:11px;padding:10px}
@media(max-width:800px){.term-row,.occ-row,.collision-card{grid-template-columns:1fr}.world-solar-grid{grid-template-columns:1fr 1fr}}

/* V22 */
.moon-main{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;margin:16px 0}.moon-orb{display:grid;place-items:center}.moon-disc{width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 35% 32%,#fffde7,#d7d2b7 45%,#777 70%,#222);box-shadow:0 0 40px rgba(240,220,150,.18)}.moon-copy h2{font-family:Georgia,serif;font-size:34px;color:var(--gold2)}
.crescent-zone{border:1px solid var(--line);border-radius:16px;padding:18px;margin:14px 0;display:flex;justify-content:space-between}.crescent-zone b{font-size:28px}.zone-A{border-color:rgba(100,220,150,.6)}.zone-B{border-color:rgba(170,220,120,.5)}.zone-C{border-color:rgba(240,190,90,.5)}.zone-D{border-color:rgba(255,100,100,.45)}
.zman-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.zman-row{border:1px solid var(--line);border-radius:12px;padding:11px;display:grid;grid-template-columns:1.5fr 90px 1fr;gap:8px}.zman-row span{font-family:Georgia,serif;color:var(--gold2);font-size:18px}.zman-row small{color:var(--muted)}
.history-flow{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;text-align:center}.history-flow>div{border:1px solid var(--line);border-radius:14px;padding:18px}.history-flow b,.history-flow span{display:block}.history-flow b{font-family:Georgia,serif;font-size:22px;color:var(--gold2)}.history-flow span{color:var(--muted)}
.year-detail{border:1px solid var(--line);border-radius:12px;margin:8px 0;padding:10px}.year-detail summary{cursor:pointer;font-size:17px}.year-detail summary b{color:var(--gold2);float:right}
.signal-list{display:grid;gap:8px;margin:14px 0}.signal{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;grid-template-columns:150px 1fr;gap:10px}.signal.support{border-left:3px solid rgba(100,220,150,.8)}.signal.caution{border-left:3px solid rgba(255,100,100,.7)}.signal.context{border-left:3px solid rgba(150,150,255,.7)}.signal span{color:var(--muted)}
@media(max-width:700px){.moon-main{grid-template-columns:1fr}.zman-list{grid-template-columns:1fr}.history-flow{grid-template-columns:1fr}.signal{grid-template-columns:1fr}}

/* V23 */
.moon-year-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.moon-month{border:1px solid var(--line);border-radius:14px;padding:12px}.moon-month h3{font-family:Georgia,serif;color:var(--gold2);margin:0 0 8px}.moon-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.moon-days>div{min-height:53px;border:1px solid rgba(255,255,255,.05);border-radius:7px;padding:4px;text-align:center}.moon-days b,.moon-days span,.moon-days small{display:block}.moon-days span{font-size:18px}.moon-days small{font-size:8px;color:var(--muted)}
.transition-list{display:grid;gap:6px;margin-top:10px}.transition-list>div{display:flex;justify-content:space-between;border:1px solid var(--line);padding:9px;border-radius:10px}
.prop-map{width:100%;min-height:300px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.015)}.prop-map text{fill:var(--text);font-size:11px}.prop-dot{fill:#d9b76e}.ref-dot{fill:#8fc7ff}.property-list{display:grid;gap:7px;margin-top:10px}.property-row{display:grid;grid-template-columns:1fr 120px 160px;gap:10px;border:1px solid var(--line);padding:10px;border-radius:10px}.property-row strong{color:var(--gold2)}
.year-short-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.year-short{border:1px solid var(--line);border-radius:14px;padding:12px}.year-short h3{font-family:Georgia,serif;color:var(--gold2);font-size:26px}.year-short>div{border-top:1px solid var(--line);padding:9px 0}.year-short b,.year-short span,.year-short small{display:block}.year-short span{color:var(--gold2)}.year-short small{color:var(--muted)}
@media(max-width:900px){.moon-year-grid{grid-template-columns:1fr 1fr}.year-short-grid{grid-template-columns:1fr}}@media(max-width:560px){.moon-year-grid{grid-template-columns:1fr}.moon-days{grid-template-columns:repeat(7,1fr)}.property-row{grid-template-columns:1fr}}


/* =========================================================
   V23 LUXURY UI — BLACK JADE / CHAMPAGNE / IVORY
   Visual-only override. Engine/data behavior is unchanged.
   ========================================================= */
:root{
  --bg:#070807;
  --bg2:#0d100e;
  --panel:rgba(18,20,18,.88);
  --panel2:rgba(24,26,23,.92);
  --text:#f6f0e5;
  --muted:#b7ab98;
  --gold:#c9a867;
  --gold2:#f0d9a3;
  --gold3:#9d7941;
  --ivory:#fff8ea;
  --jade:#1f3a31;
  --wine:#4b2228;
  --line:rgba(222,194,136,.18);
  --line2:rgba(222,194,136,.34);
  --shadow:0 28px 80px rgba(0,0,0,.46);
  --shadow-gold:0 14px 40px rgba(139,103,48,.12);
}
html{background:#060706}
body{
  position:relative;
  overflow-x:hidden;
  color:var(--text);
  font-family:"Segoe UI",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:.006em;
  background:
    radial-gradient(circle at 8% 0%,rgba(126,91,47,.14),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(25,78,61,.16),transparent 27%),
    radial-gradient(circle at 50% 78%,rgba(96,55,68,.07),transparent 30%),
    linear-gradient(180deg,#060706 0%,#0a0c0a 45%,#060706 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-2;
  opacity:.18;
  background:
    radial-gradient(circle at 50% 0%,transparent 0 79px,rgba(215,183,119,.22) 80px 81px,transparent 82px),
    radial-gradient(circle at 50% 0%,transparent 0 118px,rgba(215,183,119,.10) 119px 120px,transparent 121px);
  background-size:320px 320px;
  background-position:center -190px;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.009) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.5),transparent 72%);
}
::selection{background:rgba(201,168,103,.28);color:var(--ivory)}
a,button,.portal-card,.panel,.calendar-card,.year-short,.moon-month{transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease,background .24s ease}
.light{
  --bg:#f3eee4;--bg2:#fbf7ef;--panel:rgba(255,252,246,.93);--panel2:#f5ede0;
  --text:#28221a;--muted:#766b5c;--line:rgba(111,83,42,.17);--line2:rgba(111,83,42,.3);
}

/* Header / brand */
.topbar{
  height:88px;
  padding:0 clamp(18px,3vw,54px);
  gap:22px;
  border-bottom:1px solid rgba(218,187,126,.22);
  background:rgba(5,7,6,.9);
  box-shadow:0 8px 38px rgba(0,0,0,.24);
  backdrop-filter:blur(28px) saturate(115%);
}
.topbar::after{
  content:"";
  position:absolute;left:4%;right:4%;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(229,199,140,.48),transparent);
}
.brand{gap:13px}
.brand-mark{
  width:49px;height:49px;
  border:1px solid rgba(231,201,143,.58);
  background:
    radial-gradient(circle at 50% 42%,rgba(235,205,149,.13),transparent 58%),
    #0b0d0b;
  color:var(--gold2);
  box-shadow:inset 0 0 0 5px rgba(199,165,99,.035),0 0 30px rgba(199,165,99,.09);
  position:relative;
}
.brand-mark::after{
  content:"";
  position:absolute;inset:5px;border:1px solid rgba(231,201,143,.16);border-radius:50%;
}
.brand b{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
  font-size:15px;
  letter-spacing:.18em;
  color:var(--ivory);
}
.brand small{color:#948a7a;letter-spacing:.07em;font-size:8.5px;text-transform:uppercase}
.nav{
  justify-content:flex-start;
  gap:7px;
  overflow-x:auto;
  scrollbar-width:none;
  mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%);
  padding:0 14px;
}
.nav::-webkit-scrollbar{display:none}
.nav a,.mobile-nav a{
  white-space:nowrap;
  border:1px solid transparent;
  border-radius:999px;
  padding:9px 12px;
  font-size:10px;
  letter-spacing:.04em;
}
.nav a:hover,.nav a.active{
  color:var(--gold2);
  border-color:rgba(215,183,119,.22);
  background:rgba(215,183,119,.055);
  box-shadow:inset 0 0 20px rgba(215,183,119,.025);
}
.icon-btn,.menu-btn{
  border-color:rgba(222,194,136,.2);
  border-radius:999px;
  min-width:40px;min-height:40px;
  background:rgba(255,255,255,.025);
}
.icon-btn:hover,.menu-btn:hover{border-color:var(--line2);background:rgba(201,168,103,.08)}

/* Typography */
.hero h1,.page-hero h1,.section h2,.panel h2,.portal-card b,
.calendar-card>b,.year-short h3,.moon-month h3,.result-content h3{
  font-family:Georgia,"Times New Roman",serif;
}
.hero h1,.page-hero h1{
  font-weight:400;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.hero h1 span,.page-hero h1 span{
  background:linear-gradient(90deg,#a88142 0%,#f2dca9 38%,#cba865 72%,#967039 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-style:italic;
  text-shadow:0 8px 38px rgba(201,168,103,.08);
}
.eyebrow{
  display:flex;align-items:center;gap:12px;
  color:#c8a96e;
  font-size:9.5px;
  letter-spacing:.26em;
  font-weight:700;
}
.eyebrow::before{content:"";width:34px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}
.hero p,.page-hero p{color:#b9ae9e;line-height:1.8;font-size:16px}

/* Hero */
.hero{
  min-height:690px;
  padding-top:90px;padding-bottom:92px;
  position:relative;
}
.hero::before{
  content:"✦";
  position:absolute;
  top:45px;left:50%;
  transform:translateX(-50%);
  color:rgba(224,193,132,.22);
  font-size:16px;
}
.hero::after{
  content:"";
  position:absolute;left:5%;right:5%;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(224,193,132,.25),transparent);
}
.hero h1{font-size:clamp(54px,6.3vw,94px);line-height:.94;margin-top:22px}
.hero-actions{gap:10px;margin-top:34px}
.btn{
  min-height:46px;
  border-radius:999px;
  padding:12px 20px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-color:rgba(216,186,127,.18);
  background:rgba(255,255,255,.025);
  box-shadow:none;
}
.btn:hover{transform:translateY(-2px);border-color:rgba(231,201,143,.48);box-shadow:var(--shadow-gold)}
.btn.primary{
  color:#20180d;
  background:linear-gradient(135deg,#f0d99d 0%,#cba45f 48%,#9e773d 100%);
  border:1px solid rgba(255,239,199,.36);
  box-shadow:0 14px 36px rgba(139,103,48,.16),inset 0 1px rgba(255,255,255,.48);
}
.btn.primary:hover{box-shadow:0 18px 48px rgba(139,103,48,.26)}
.orbital-card{
  width:min(430px,90vw);
  border:1px solid rgba(221,191,130,.28);
  background:
    radial-gradient(circle at 50% 40%,rgba(37,69,57,.24),transparent 40%),
    radial-gradient(circle at 50% 50%,rgba(201,168,103,.07),transparent 62%),
    rgba(10,12,10,.64);
  box-shadow:
    inset 0 0 0 8px rgba(201,168,103,.018),
    inset 0 0 110px rgba(201,168,103,.055),
    0 35px 95px rgba(0,0,0,.36);
}
.orbital-card:before{border-color:rgba(229,199,140,.16)}
.orbital-card:after{border-color:rgba(229,199,140,.08)}
.big-percent,.big-date{font-family:Georgia,"Times New Roman",serif;color:var(--gold2);text-shadow:0 8px 38px rgba(201,168,103,.18)}

/* Sections / page hero */
.section{padding-top:92px;padding-bottom:92px}
.page-hero{
  min-height:330px;
  padding-top:90px;padding-bottom:66px;
  border-bottom:1px solid rgba(222,194,136,.13);
  position:relative;
}
.page-hero::after{
  content:"";
  position:absolute;left:7%;right:7%;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(222,194,136,.3),transparent);
}
.page-hero h1{font-size:clamp(50px,5.6vw,80px)}
.hero-symbol{color:var(--gold2);opacity:.34;font-size:100px;text-shadow:0 0 42px rgba(201,168,103,.2)}
.section-head{border-bottom:1px solid rgba(222,194,136,.11);padding-bottom:20px}
.section h2{font-weight:400;color:var(--ivory)}

/* Cards */
.portal-grid{gap:16px}
.portal-card,.panel,.result-card,.mini-tool,.chat-shell,.calendar-card,.formula-card,.moon-month,.year-short{
  background:
    linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.008)),
    rgba(13,15,13,.78);
  border:1px solid rgba(222,194,136,.16);
  box-shadow:0 18px 55px rgba(0,0,0,.18);
  position:relative;
  overflow:hidden;
}
.portal-card::after,.panel::after,.calendar-card::after,.moon-month::after,.year-short::after{
  content:"";
  position:absolute;inset:5px;
  border:1px solid rgba(222,194,136,.045);
  border-radius:inherit;
  pointer-events:none;
}
.portal-card{min-height:214px;padding:28px;border-radius:22px}
.portal-card:hover,.calendar-card:hover,.moon-month:hover,.year-short:hover{
  transform:translateY(-5px);
  border-color:rgba(230,199,139,.38);
  box-shadow:0 26px 70px rgba(0,0,0,.3),0 0 0 1px rgba(201,168,103,.04);
}
.portal-card.accent{
  background:
    radial-gradient(circle at 100% 0,rgba(201,168,103,.12),transparent 36%),
    linear-gradient(145deg,rgba(38,70,59,.23),rgba(14,15,13,.76));
  border-color:rgba(229,198,138,.31);
}
.portal-card>span{
  width:52px;height:52px;border-radius:50%;
  border-color:rgba(222,194,136,.27);
  background:rgba(201,168,103,.045);
  color:var(--gold2);
  box-shadow:inset 0 0 0 4px rgba(201,168,103,.018);
}
.portal-card b{font-size:19px;font-weight:400;letter-spacing:.01em;margin-top:24px}
.portal-card p{font-size:12px;line-height:1.75;color:#a99f91}
.panel,.result-card{border-radius:22px;padding:30px}
.panel h2{font-weight:400;color:var(--ivory)}

/* Forms */
.form-grid label,.panel label,.ai-profile label{
  color:#b7ab98;
  font-size:9px;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.form-grid input,.form-grid select,.panel input,.panel select,.ai-profile input,.ai-profile select,.interactive input,.interactive select,textarea{
  border-radius:12px;
  border:1px solid rgba(222,194,136,.16);
  background:rgba(4,6,5,.48);
  color:var(--ivory);
  min-height:45px;
  padding:12px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(232,202,142,.44)!important;
  box-shadow:0 0 0 3px rgba(201,168,103,.06);
}
select option{background:#0d100e;color:var(--ivory)}
.warning-box{
  border-color:rgba(201,168,103,.18);
  background:linear-gradient(90deg,rgba(201,168,103,.05),rgba(201,168,103,.018));
  border-radius:16px;
}

/* Data / tables */
.rule-table-wrap{
  border:1px solid rgba(222,194,136,.14);
  border-radius:20px;
  overflow:auto;
  background:rgba(11,13,11,.66);
  box-shadow:var(--shadow);
}
.rule-table{border-collapse:collapse;width:100%}
.rule-table th{
  position:sticky;top:0;z-index:2;
  background:#101310;
  color:#cdb47e;
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(222,194,136,.18);
}
.rule-table td{border-bottom:1px solid rgba(255,255,255,.045);padding:15px 16px}
.rule-table tr:hover td{background:rgba(201,168,103,.025)}
.badge{
  letter-spacing:.09em;
  border:1px solid rgba(222,194,136,.15);
  background:rgba(201,168,103,.06);
  color:#d8bc83;
}
.badge.calc{background:rgba(42,91,68,.16);color:#9fd9b8;border-color:rgba(93,173,128,.18)}

/* Result/metrics */
.metric-grid>div,.coverage-list>div,.engine-kpis>div,.info-card,.pillar,.hour-card,.manage-row,.occ-row,.property-row,.transition-list>div{
  border-color:rgba(222,194,136,.12)!important;
  background:rgba(255,255,255,.014);
  border-radius:13px;
}
.metric-grid b,.coverage-list b,.property-row strong,.year-short span,.zman-row span{color:var(--gold2)}
.result-top{color:#bea16c}
.compat-score b{font-family:Georgia,"Times New Roman",serif;color:var(--gold2)}
.facts-code,.mini-json{
  background:#080a08;
  border-color:rgba(222,194,136,.12);
  color:#d7cec0;
  box-shadow:inset 0 0 40px rgba(0,0,0,.25);
}

/* V20/21/22/23 special blocks */
.calendar-grid{gap:13px}
.calendar-card{border-radius:20px;padding:19px;min-height:174px}
.calendar-card>b{font-size:24px;font-weight:400}
.calendar-top span{color:#d8c49b}
.calendar-top small{border-color:rgba(222,194,136,.15)}
.calendar-gregorian,.calendar-eastern_lunisolar,.calendar-hijri,.calendar-saka,.calendar-hebrew{border-top:1px solid rgba(230,199,139,.36)}
.moon-main{
  border:1px solid rgba(222,194,136,.12);
  border-radius:22px;
  padding:24px;
  background:radial-gradient(circle at 10% 50%,rgba(201,168,103,.06),transparent 32%);
}
.moon-disc{
  box-shadow:0 0 60px rgba(236,218,177,.14),inset -18px -10px 34px rgba(0,0,0,.22);
}
.crescent-zone{border-radius:20px;background:rgba(255,255,255,.015)}
.zman-row{border-radius:13px}
.history-flow>div{border-color:rgba(222,194,136,.15);background:rgba(255,255,255,.015);border-radius:18px}
.signal{border-color:rgba(222,194,136,.11);background:rgba(255,255,255,.012)}
.moon-year-grid{gap:16px}
.moon-month{border-radius:20px;padding:16px}
.moon-month h3{font-size:23px;font-weight:400;margin-bottom:12px}
.moon-days{gap:5px}
.moon-days>div{
  min-height:58px;
  border-color:rgba(222,194,136,.075);
  background:rgba(255,255,255,.012);
  border-radius:9px;
}
.moon-days>div:hover{background:rgba(201,168,103,.055);border-color:rgba(222,194,136,.2)}
.moon-days b{color:#c5b8a4;font-size:10px}
.moon-days span{color:#efe1bd}
.prop-map{
  border-radius:20px;
  border-color:rgba(222,194,136,.16);
  background:
    radial-gradient(circle at 50% 50%,rgba(31,58,49,.15),transparent 42%),
    linear-gradient(rgba(222,194,136,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(222,194,136,.025) 1px,transparent 1px),
    #0b0d0b;
  background-size:auto,32px 32px,32px 32px,auto;
}
.prop-dot{fill:#d1af6a}.ref-dot{fill:#dbe6dc;stroke:#d1af6a;stroke-width:2}
.year-short-grid{gap:16px}
.year-short{border-radius:20px;padding:19px}
.year-short h3{font-size:32px;font-weight:400;border-bottom:1px solid rgba(222,194,136,.12);padding-bottom:10px;margin-top:0}
.year-short>div{border-color:rgba(222,194,136,.09)}
.heat-day{border-color:rgba(222,194,136,.1);background:rgba(255,255,255,.01)}
.level-4,.level-5{background:rgba(70,115,83,.12);border-color:rgba(119,170,130,.22)}
.gate-card{
  border-radius:20px!important;
  border-color:rgba(222,194,136,.14)!important;
  background:rgba(255,255,255,.014)!important;
}

/* Footer */
footer{
  border-top:1px solid rgba(222,194,136,.12);
  margin-top:30px;
  padding-top:36px!important;padding-bottom:44px!important;
  color:#8e8477;
  position:relative;
}
footer::before{
  content:"✦";
  position:absolute;top:-9px;left:50%;transform:translateX(-50%);
  background:#070807;color:#b8975d;padding:0 16px;
}

/* Scrollbar */
*{scrollbar-color:#6e5630 #0b0d0b;scrollbar-width:thin}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#0b0d0b}
::-webkit-scrollbar-thumb{background:linear-gradient(#816638,#5d4828);border-radius:999px;border:2px solid #0b0d0b}

/* Responsive luxury tuning */
@media(max-width:1100px){
  .topbar{height:78px}
  .brand small{display:none}
  .nav{gap:4px}
  .nav a{padding:8px 9px;font-size:9px}
  .hero{min-height:610px;gap:30px}
}
@media(max-width:900px){
  .topbar{height:72px}
  .nav{display:none}
  .menu-btn{display:inline-grid;place-items:center}
  .mobile-nav{
    position:fixed;top:72px;left:12px;right:12px;z-index:39;
    max-height:72vh;overflow:auto;
    padding:12px;
    border:1px solid rgba(222,194,136,.18);
    border-radius:18px;
    background:rgba(8,10,8,.97);
    box-shadow:0 24px 70px rgba(0,0,0,.5);
    backdrop-filter:blur(24px);
  }
  .mobile-nav.open{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .mobile-nav a{border:1px solid rgba(222,194,136,.08);padding:11px 12px}
  .hero{grid-template-columns:1fr;padding-top:64px}
  .hero-orbit{margin-top:6px}
  .portal-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .brand b{font-size:12px}
  .brand-mark{width:43px;height:43px}
  .hero{padding-left:18px;padding-right:18px;min-height:auto}
  .hero h1{font-size:50px}
  .page-hero{padding-left:18px;padding-right:18px;min-height:250px}
  .page-hero h1{font-size:45px}
  .hero-symbol{font-size:62px}
  .section{padding:68px 18px}
  .portal-grid{grid-template-columns:1fr}
  .portal-card{min-height:185px}
  .panel,.result-card{padding:20px}
  .mobile-nav.open{grid-template-columns:1fr}
}


/* =========================================================
   V23 ROYAL RED-GOLD UI — Red / Gold / Black / White
   Luxury color override only.
   ========================================================= */
:root{
  --bg:#050505;
  --bg2:#0b0909;
  --panel:rgba(20,11,11,.90);
  --panel2:rgba(28,15,15,.94);
  --text:#fffaf2;
  --muted:#d4c8bc;
  --gold:#d4aa4a;
  --gold2:#f2d48c;
  --gold3:#9f7128;
  --ivory:#fffdf8;
  --jade:#402020;
  --wine:#7a1018;
  --line:rgba(242,212,140,.18);
  --line2:rgba(242,212,140,.34);
  --shadow:0 28px 80px rgba(0,0,0,.52);
  --shadow-gold:0 16px 42px rgba(184,123,28,.18);
}
html{background:#040404}
body{
  background:
    radial-gradient(circle at 8% 0%,rgba(153,18,32,.18),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(171,121,33,.14),transparent 27%),
    radial-gradient(circle at 50% 78%,rgba(92,9,20,.11),transparent 30%),
    linear-gradient(180deg,#040404 0%,#0a0606 45%,#040404 100%);
}
body::before{
  opacity:.22;
  background:
    radial-gradient(circle at 50% 0%,transparent 0 79px,rgba(242,212,140,.24) 80px 81px,transparent 82px),
    radial-gradient(circle at 50% 0%,transparent 0 118px,rgba(242,212,140,.10) 119px 120px,transparent 121px);
  background-size:320px 320px;
  background-position:center -190px;
}
body::after{
  background:
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.008) 1px,transparent 1px);
}
.topbar{
  background:linear-gradient(180deg,rgba(15,7,7,.96),rgba(10,6,6,.92));
  border-bottom:1px solid rgba(242,212,140,.22);
}
.topbar::after,
.page-hero::after,
.hero::after{
  background:linear-gradient(90deg,transparent,rgba(242,212,140,.48),transparent);
}
.brand-mark{
  background:
    radial-gradient(circle at 50% 42%,rgba(242,212,140,.14),transparent 58%),
    radial-gradient(circle at 50% 75%,rgba(143,12,30,.18),transparent 55%),
    #120909;
  color:var(--gold2);
  border-color:rgba(242,212,140,.56);
  box-shadow:inset 0 0 0 5px rgba(212,170,74,.05),0 0 32px rgba(143,12,30,.12);
}
.brand small{color:#d9c2b8}
.nav a:hover,.nav a.active{
  color:var(--gold2);
  border-color:rgba(242,212,140,.26);
  background:linear-gradient(180deg,rgba(143,12,30,.16),rgba(212,170,74,.07));
}
.icon-btn,.menu-btn{
  border-color:rgba(242,212,140,.22);
  background:rgba(255,255,255,.025);
}
.hero h1 span,.page-hero h1 span{
  background:linear-gradient(90deg,#8d0d18 0%,#f4d896 28%,#c79632 58%,#fff6df 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 10px 38px rgba(143,12,30,.14);
}
.eyebrow,.hero-symbol,.big-percent,.big-date,.result-top,.calendar-card>b,.year-short h3,.moon-month h3,.compat-score b{color:var(--gold2)}
.btn{
  border-color:rgba(242,212,140,.18);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));
}
.btn:hover{border-color:rgba(242,212,140,.45)}
.btn.primary{
  color:#220e07;
  background:linear-gradient(135deg,#fff0c7 0%,#d4aa4a 35%,#b8892b 62%,#8f0c1e 100%);
  border:1px solid rgba(255,245,214,.42);
  box-shadow:0 16px 40px rgba(143,12,30,.22), inset 0 1px rgba(255,255,255,.42);
}
.orbital-card{
  border-color:rgba(242,212,140,.30);
  background:
    radial-gradient(circle at 50% 40%,rgba(143,12,30,.20),transparent 40%),
    radial-gradient(circle at 50% 55%,rgba(212,170,74,.10),transparent 62%),
    rgba(14,9,9,.72);
  box-shadow:inset 0 0 0 8px rgba(212,170,74,.025), inset 0 0 110px rgba(143,12,30,.09), 0 35px 95px rgba(0,0,0,.40);
}
.portal-card,.panel,.result-card,.mini-tool,.chat-shell,.calendar-card,.formula-card,.moon-month,.year-short{
  background:
    linear-gradient(145deg,rgba(255,255,255,.038),rgba(255,255,255,.01)),
    linear-gradient(180deg,rgba(29,12,12,.86),rgba(12,9,9,.84));
  border:1px solid rgba(242,212,140,.16);
}
.portal-card::after,.panel::after,.calendar-card::after,.moon-month::after,.year-short::after{
  border-color:rgba(242,212,140,.05);
}
.portal-card:hover,.calendar-card:hover,.moon-month:hover,.year-short:hover{
  border-color:rgba(242,212,140,.36);
  box-shadow:0 26px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(143,12,30,.10);
}
.portal-card.accent{
  background:
    radial-gradient(circle at 100% 0,rgba(212,170,74,.16),transparent 36%),
    linear-gradient(145deg,rgba(122,16,24,.26),rgba(18,10,10,.80));
  border-color:rgba(242,212,140,.30);
}
.portal-card>span{
  border-color:rgba(242,212,140,.28);
  background:linear-gradient(180deg,rgba(143,12,30,.12),rgba(212,170,74,.08));
  color:var(--gold2);
}
.portal-card p,.hero p,.page-hero p{color:#dfd3c7}
.form-grid input,.form-grid select,.panel input,.panel select,.ai-profile input,.ai-profile select,.interactive input,.interactive select,textarea{
  border:1px solid rgba(242,212,140,.16);
  background:rgba(9,6,6,.56);
  color:var(--ivory);
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(242,212,140,.44)!important;
  box-shadow:0 0 0 3px rgba(143,12,30,.10);
}
.warning-box{
  border-color:rgba(242,212,140,.16);
  background:linear-gradient(90deg,rgba(143,12,30,.10),rgba(212,170,74,.06));
}
.rule-table-wrap{border-color:rgba(242,212,140,.14);background:rgba(14,10,10,.72)}
.rule-table th{background:#160d0d;color:#f2d48c;border-bottom:1px solid rgba(242,212,140,.18)}
.rule-table tr:hover td{background:rgba(143,12,30,.06)}
.badge{background:rgba(212,170,74,.10);color:#f0d48c;border-color:rgba(242,212,140,.16)}
.badge.calc{background:rgba(143,12,30,.16);color:#fff1c7;border-color:rgba(242,212,140,.18)}
.facts-code,.mini-json{background:#0a0606;border-color:rgba(242,212,140,.12);color:#f0e8da}
.prop-map{
  border-color:rgba(242,212,140,.18);
  background:
    radial-gradient(circle at 50% 50%,rgba(143,12,30,.14),transparent 42%),
    linear-gradient(rgba(242,212,140,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(242,212,140,.03) 1px,transparent 1px),
    #0b0707;
  background-size:auto,32px 32px,32px 32px,auto;
}
.prop-dot{fill:#d4aa4a}.ref-dot{fill:#fff8ea;stroke:#d4aa4a;stroke-width:2}
.level-4,.level-5{background:rgba(143,12,30,.12);border-color:rgba(242,212,140,.22)}
footer::before{background:#050505;color:#d4aa4a}
*{scrollbar-color:#8f0c1e #120909}
::-webkit-scrollbar-track{background:#120909}
::-webkit-scrollbar-thumb{background:linear-gradient(#b88729,#8f0c1e);border:2px solid #120909}


/* =========================================================
   V24 PREMIUM COMPACT UI
   Goal: clearer menu, one-screen-first-fold, elegant typography,
   refined premium black / ivory / antique-gold / burgundy palette.
   ========================================================= */
:root{
  --bg:#060505;
  --bg2:#0f0b0b;
  --panel:rgba(16,10,10,.92);
  --panel2:rgba(24,15,15,.96);
  --text:#f7f0e7;
  --muted:#c8b8a5;
  --gold:#b68a3a;
  --gold2:#e4c98d;
  --gold3:#866126;
  --ivory:#fffaf3;
  --wine:#5d1016;
  --line:rgba(228,201,141,.16);
  --line2:rgba(228,201,141,.28);
  --shadow:0 22px 60px rgba(0,0,0,.36);
  --shadow-gold:0 14px 28px rgba(182,138,58,.14);
}
html{background:#050404}
body{
  font-family:"Aptos","Segoe UI","Helvetica Neue",Arial,sans-serif;
  letter-spacing:.01em;
  background:
    radial-gradient(circle at 0 0, rgba(93,16,22,.14), transparent 25%),
    radial-gradient(circle at 100% 0, rgba(182,138,58,.08), transparent 26%),
    linear-gradient(180deg,#050404 0%,#0b0808 100%);
}
body::before{opacity:.10}
body::after{opacity:.18}
.hero h1,.page-hero h1,.section h2,.panel h2,.portal-card b,
.calendar-card>b,.year-short h3,.moon-month h3,.result-content h3,.brand b,
.big-date,.big-percent,.compat-score b{
  font-family:"Baskerville Old Face","Palatino Linotype","Book Antiqua","Iowan Old Style",Georgia,serif;
}

/* Cleaner header */
.topbar{
  position:sticky;top:0;z-index:60;
  height:auto;min-height:72px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  padding:10px 22px;
  background:linear-gradient(180deg,rgba(9,6,6,.96),rgba(8,5,5,.92));
  border-bottom:1px solid rgba(228,201,141,.18);
  box-shadow:0 10px 28px rgba(0,0,0,.24);
}
.brand{gap:12px;min-width:0}
.brand-mark{width:46px;height:46px}
.brand b{font-size:15px;letter-spacing:.14em;line-height:1.05}
.brand small{font-size:8.5px;letter-spacing:.14em;color:#c9b08a}
.nav{
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  overflow:visible;
  mask-image:none;
  padding:0;
  max-width:1100px;
  margin:0 auto;
}
.nav a,.mobile-nav a{
  padding:9px 14px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.02em;
  color:#efe2d0;
  border:1px solid rgba(228,201,141,.12);
  background:rgba(255,255,255,.018);
  border-radius:999px;
}
.nav a:hover,.nav a.active{
  color:#fff8ec;
  border-color:rgba(228,201,141,.34);
  background:linear-gradient(180deg,rgba(93,16,22,.18),rgba(182,138,58,.10));
  box-shadow:0 8px 18px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.05);
}
.icon-btn,.menu-btn{min-width:42px;min-height:42px}

/* Premium typography and compact first fold */
.page-hero{
  min-height:170px;
  padding:32px clamp(20px,4vw,52px) 20px;
  align-items:end;
}
.page-hero h1{
  font-size:clamp(36px,4.2vw,60px);
  line-height:1.02;
  margin:8px 0 0;
}
.page-hero h1 br{display:none}
.hero-symbol{font-size:56px;opacity:.24}
.eyebrow{font-size:10px;letter-spacing:.22em;color:#ddbe7e}
.page-hero p,.hero p{font-size:15px;line-height:1.65;color:#d7c7b2}
.section{padding:22px clamp(18px,4vw,52px) 42px}
.section.compact{padding-top:18px;padding-bottom:30px}
.page-hero + .section{padding-top:18px}

.panel,.result-card,.calendar-card,.formula-card,.moon-month,.year-short,.mini-tool,.chat-shell{
  border-radius:18px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.03),rgba(255,255,255,.01)),
    linear-gradient(180deg,rgba(18,11,11,.92),rgba(10,7,7,.90));
  border:1px solid rgba(228,201,141,.15);
  box-shadow:0 14px 36px rgba(0,0,0,.26);
}
.panel{padding:20px 22px}
.portal-card{
  min-height:190px;
  border-radius:18px;
}
.portal-card b{font-size:18px}
.portal-card p{font-size:12.5px;color:#cdbca6}

label,.panel label,.form-grid label,.ai-profile label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:#d8bb7b;
}
input,select,textarea,.panel input,.panel select,.form-grid input,.form-grid select{
  min-height:42px;
  border-radius:12px;
  font-size:13px;
}
.btn{
  min-height:44px;
  padding:11px 18px;
  font-size:11px;
  letter-spacing:.08em;
}
.btn.primary{
  color:#23150b;
  background:linear-gradient(135deg,#f4e2b5 0%,#d1a64f 45%,#a5712d 100%);
}
.heat-controls{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  gap:12px;
  align-items:end;
}
.heat-controls label{margin:0}
.heat-controls .btn{min-width:240px}

/* Make data blocks denser so more content fits in first screen */
.moon-main,.coverage-list,.calendar-grid,.info-grid,.triple-grid{gap:12px}
.moon-main .result-card,.moon-main .panel,.coverage-list .panel,.coverage-list .result-card{
  padding:18px;
}
.result-grid,.stat-grid,.facts-grid,.check-grid{gap:10px}
.rule-table th,.rule-table td{padding:10px 12px}
footer{padding:26px clamp(18px,4vw,52px);font-size:12px;color:#c9b7a1}

/* Better desktop fit */
@media (max-width:1180px){
  .topbar{grid-template-columns:auto 1fr auto;padding:8px 14px}
  .brand b{font-size:14px}
  .nav a{font-size:10px;padding:8px 12px}
}
@media (max-width:900px){
  .topbar{display:flex;flex-wrap:wrap;align-items:center}
  .nav{display:none}
  .mobile-nav{
    background:rgba(11,7,7,.97);
    border-bottom:1px solid rgba(228,201,141,.16);
  }
  .mobile-nav.open,.mobile-nav.show{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px}
  .page-hero{min-height:150px;padding-top:22px;padding-bottom:14px}
  .page-hero h1{font-size:36px}
  .hero-symbol{display:none}
  .section{padding:18px 16px 34px}
  .heat-controls{grid-template-columns:1fr}
  .heat-controls .btn{min-width:0;width:100%}
}
@media (max-width:600px){
  .brand small{display:none}
  .brand b{font-size:13px;letter-spacing:.1em}
  .brand-mark{width:42px;height:42px}
  .page-hero h1{font-size:32px}
  .panel{padding:16px}
  .mobile-nav.open,.mobile-nav.show{grid-template-columns:1fr}
}


/* =========================================================
   V24.1 MODERN LUXURY — OPTION B
   One-screen shell + grouped navigation + clean premium type
   ========================================================= */
:root{
  --bg:#070707;
  --bg2:#0b0b0b;
  --panel:rgba(18,18,18,.94);
  --panel2:#131313;
  --text:#f7f4ee;
  --muted:#afa79d;
  --gold:#c7a75b;
  --gold2:#ead9aa;
  --wine:#68141d;
  --red:#8f1d29;
  --line:rgba(234,217,170,.12);
  --line2:rgba(234,217,170,.24);
}
html,body{height:100%;background:#070707}
body{
  color:var(--text);
  font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at 18% -10%,rgba(143,29,41,.12),transparent 28%),
    radial-gradient(circle at 84% -4%,rgba(199,167,91,.07),transparent 26%),
    #070707;
}
body::before,body::after{display:none!important}

/* Typography: modern premium, not old-fashioned */
.hero h1,.page-hero h1,.section h2,.panel h2,.portal-card b,.calendar-card>b,
.year-short h3,.moon-month h3,.result-content h3,.brand b,.big-date,.big-percent,.compat-score b{
  font-family:"Segoe UI Variable Display","Aptos Display","Helvetica Neue",Arial,sans-serif;
  font-weight:650;
  letter-spacing:-.035em;
}
.hero h1 span,.page-hero h1 span{
  font-style:normal;
  color:var(--gold2);
  background:none;
  -webkit-text-fill-color:initial;
  text-shadow:none;
}
.brand b{font-weight:700;letter-spacing:.12em}
.eyebrow{font-family:Inter,"Segoe UI",sans-serif;letter-spacing:.18em;color:#d3b86e}

/* One screen shell */
@media(min-width:901px){
  body.v241-shell{height:100vh;overflow:hidden}
  body.v241-shell main{height:calc(100vh - 64px);overflow:auto;scrollbar-gutter:stable}
  body.v241-shell .topbar{height:64px;min-height:64px}
  body.v241-shell .page-hero{min-height:105px;padding:18px 28px 12px}
  body.v241-shell .page-hero h1{font-size:clamp(28px,3vw,44px);line-height:1.02;margin:4px 0 0}
  body.v241-shell .page-hero p{font-size:12px;line-height:1.45;margin:8px 0 0;max-width:820px}
  body.v241-shell .hero-symbol{font-size:38px}
  body.v241-shell .section{padding:12px 28px 24px}
  body.v241-shell .page-hero + .section{padding-top:12px}
  body.v241-shell .panel{padding:14px 16px}
  body.v241-shell .heat-controls{min-height:72px}
  body.v241-shell .moon-main{padding:14px 16px;margin:10px 0}
  body.v241-shell footer{padding:14px 28px 18px;margin-top:10px}
}

/* Header */
.topbar{
  height:64px;min-height:64px;
  display:grid;grid-template-columns:250px 1fr 44px;
  align-items:center;gap:14px;
  padding:0 18px;
  background:rgba(7,7,7,.96);
  border-bottom:1px solid rgba(234,217,170,.11);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  backdrop-filter:blur(20px);
}
.topbar::after{display:none}
.brand{gap:10px;min-width:0}
.brand-mark{
  width:38px;height:38px;
  border:1px solid rgba(199,167,91,.42);
  background:#0b0b0b;
  box-shadow:none;
}
.brand-mark::after{inset:4px;border-color:rgba(199,167,91,.10)}
.brand b{font-size:13px;color:#fffaf1}
.brand small{font-size:7px;color:#a89f94;letter-spacing:.12em}
.icon-btn,.menu-btn{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border-radius:12px;border-color:rgba(234,217,170,.14);background:#0e0e0e}

/* Grouped menu */
.nav-groups{display:flex;justify-content:center;align-items:center;gap:5px;overflow:visible;padding:0;margin:0;mask-image:none}
.nav-home,.nav-group-btn{
  height:36px;display:inline-flex;align-items:center;gap:5px;
  padding:0 11px!important;
  color:#d8d2c9!important;
  background:transparent!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  font-size:10px!important;
  font-weight:600;letter-spacing:.01em;white-space:nowrap;
  cursor:pointer;
}
.nav-home:hover,.nav-home.active,.nav-group.active>.nav-group-btn,.nav-group.open>.nav-group-btn{
  color:#fff8ec!important;
  background:rgba(199,167,91,.07)!important;
  border-color:rgba(199,167,91,.18)!important;
}
.nav-group{position:relative}
.chev{font-size:10px;opacity:.55;transform:translateY(-1px)}
.nav-menu{
  display:none;position:absolute;top:44px;left:50%;transform:translateX(-50%);
  min-width:190px;padding:8px;z-index:90;
  border:1px solid rgba(234,217,170,.14);border-radius:14px;
  background:rgba(12,12,12,.98);box-shadow:0 22px 54px rgba(0,0,0,.5);
  backdrop-filter:blur(20px);
}
.nav-group.open .nav-menu{display:grid;gap:3px}
.nav-menu a{
  padding:10px 11px!important;border:0!important;border-radius:9px!important;
  font-size:11px!important;color:#cfc8be!important;background:transparent!important;
}
.nav-menu a:hover,.nav-menu a.active{color:#fff8eb!important;background:rgba(143,29,41,.15)!important}

/* Modern cards */
.portal-card,.panel,.result-card,.calendar-card,.formula-card,.moon-month,.year-short,.mini-tool,.chat-shell{
  border-radius:16px;
  border:1px solid rgba(234,217,170,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.008)),#101010;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.portal-card::after,.panel::after,.calendar-card::after,.moon-month::after,.year-short::after{display:none}
.portal-card:hover,.calendar-card:hover,.moon-month:hover,.year-short:hover{transform:translateY(-2px);border-color:rgba(199,167,91,.24);box-shadow:0 18px 38px rgba(0,0,0,.28)}
.portal-card.accent{background:linear-gradient(135deg,rgba(143,29,41,.14),rgba(199,167,91,.05)),#101010;border-color:rgba(199,167,91,.18)}
.portal-card>span{border-radius:12px;background:#141414;border-color:rgba(199,167,91,.15)}

/* Inputs and buttons */
.form-grid input,.form-grid select,.panel input,.panel select,.ai-profile input,.ai-profile select,.interactive input,.interactive select,textarea{
  background:#0b0b0b;color:#f3ede5;border:1px solid rgba(234,217,170,.11);border-radius:10px;min-height:40px;font-size:12px
}
input:focus,select:focus,textarea:focus{border-color:rgba(199,167,91,.34)!important;box-shadow:0 0 0 3px rgba(199,167,91,.05)}
.btn{border-radius:10px;min-height:40px;padding:10px 16px;font-size:10px;letter-spacing:.06em;background:#121212;border-color:rgba(234,217,170,.11)}
.btn.primary{background:linear-gradient(135deg,#e9d39c,#b99042);color:#1d160d;border:0;box-shadow:none}
.btn.primary:hover{box-shadow:0 10px 26px rgba(199,167,91,.12)}

/* Palette: red only as accent */
.warning-box{background:rgba(143,29,41,.08);border-color:rgba(143,29,41,.18)}
.badge{background:rgba(199,167,91,.06);color:#d8c28c;border-color:rgba(199,167,91,.12)}
.badge.calc{background:rgba(143,29,41,.10);color:#e9d8b0;border-color:rgba(143,29,41,.20)}
.rule-table th{background:#0d0d0d;color:#cdbb90}
.rule-table tr:hover td{background:rgba(199,167,91,.025)}
.facts-code,.mini-json{background:#090909;color:#dcd5cc}

/* Keep density high */
.heat-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,auto);gap:10px;align-items:end}
.metric-grid{gap:8px}.metric-grid>div{padding:10px}
.coverage-list{gap:6px}.coverage-list>div{padding:8px 10px}
.moon-main{grid-template-columns:160px 1fr;gap:16px}
.moon-disc{width:130px;height:130px}
.moon-copy h2{font-size:26px;margin:0 0 10px}
.calendar-card{min-height:140px;padding:14px}.calendar-card>b{font-size:19px;margin:14px 0 6px}

/* Mobile */
.v241-mobile{display:none}
@media(max-width:900px){
  body.v241-shell{overflow:auto;height:auto}
  body.v241-shell main{height:auto;overflow:visible}
  .topbar{display:flex;height:60px;min-height:60px;padding:0 12px}
  .nav-groups{display:none}
  .menu-btn{display:inline-grid;place-items:center;margin-left:auto}
  .v241-mobile.show{display:grid;position:fixed;z-index:100;top:60px;left:10px;right:10px;max-height:calc(100vh - 72px);overflow:auto;padding:10px;gap:8px;border-radius:14px;border:1px solid rgba(234,217,170,.14);background:rgba(10,10,10,.985);box-shadow:0 24px 60px rgba(0,0,0,.55)}
  .m-group{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:8px;border:1px solid rgba(234,217,170,.08);border-radius:10px}
  .m-group b{grid-column:1/-1;color:#d3b86e;font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:4px}
  .v241-mobile a{padding:9px 10px;border-radius:8px;color:#ddd5ca;background:#121212;border:0;font-size:11px}
  .page-hero{min-height:120px;padding:18px 16px 12px}.page-hero h1{font-size:30px}
  .section{padding:12px 16px 30px}.heat-controls{grid-template-columns:1fr}.moon-main{grid-template-columns:1fr}.moon-disc{width:120px;height:120px}
}

/* V24.2 FAMILY-FIRST INTAKE */
.family-entry,.mobile-family-entry{color:#1b1007!important;background:linear-gradient(135deg,#f3dfad,#c89d48)!important;border:1px solid rgba(255,244,216,.45)!important;font-weight:800!important;letter-spacing:.04em!important;box-shadow:0 8px 20px rgba(169,122,38,.16)}
.family-entry:hover{transform:translateY(-1px);filter:brightness(1.04)}
.family-home{min-height:calc(100vh - 76px);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:clamp(28px,5vw,80px);align-items:center;max-width:1440px;margin:auto;padding:clamp(36px,6vh,70px) clamp(22px,5vw,72px)}
.family-home h1,.family-intake-head h1{font-family:"Baskerville Old Face","Palatino Linotype",Georgia,serif;font-weight:400;font-size:clamp(52px,6vw,88px);line-height:.94;letter-spacing:-.045em;margin:14px 0 22px}.family-home h1 span,.family-intake-head h1 span{color:#dec181;font-style:italic}.family-home p,.family-intake-head p{max-width:800px;color:#d5c5b1;line-height:1.7;font-size:16px}.family-home-panel{border:1px solid rgba(228,201,141,.18);border-radius:22px;padding:28px;background:linear-gradient(145deg,rgba(93,16,22,.12),rgba(255,255,255,.02)),#100b0b;box-shadow:0 24px 60px rgba(0,0,0,.32)}.home-panel-title span{font-size:9px;letter-spacing:.18em;color:#cda95e}.home-panel-title b{display:block;font-family:Georgia,serif;font-size:28px;margin-top:6px}.input-checklist{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:22px 0}.input-checklist div{border:1px solid rgba(228,201,141,.1);padding:11px 12px;border-radius:11px;color:#e5d7c6;background:rgba(255,255,255,.015)}.home-panel-link{color:#e4c98d;font-weight:700}.home-input-guide{display:flex;align-items:center;gap:10px;margin-top:28px}.home-input-guide div{display:flex;align-items:center;gap:7px;color:#cdbda9;font-size:12px}.home-input-guide b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(228,201,141,.1);color:#e4c98d}.home-input-guide i{color:#765c35}.lookup-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.lookup-grid>a{min-height:108px;border:1px solid rgba(228,201,141,.13);border-radius:16px;padding:16px;background:rgba(255,255,255,.018);display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center}.lookup-grid>a:hover{border-color:rgba(228,201,141,.34);background:linear-gradient(145deg,rgba(93,16,22,.10),rgba(228,201,141,.035));transform:translateY(-2px)}.lookup-grid>a>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(228,201,141,.08);color:#e4c98d;font-family:Georgia,serif;font-size:20px}.lookup-grid b{font-family:Georgia,serif;font-size:17px}.lookup-grid small{color:#bba994}.family-intake-main{max-width:1540px;margin:auto}.family-intake-head{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:end;padding:26px clamp(18px,4vw,52px) 14px}.family-intake-head h1{font-size:clamp(42px,4.5vw,66px);margin:8px 0 10px}.family-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.file-btn{position:relative;overflow:hidden;cursor:pointer}.file-btn input{position:absolute;opacity:0;inset:0;cursor:pointer}.family-intake-section{padding-top:8px}.family-intake-grid{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(600px,1.18fr);gap:14px}.family-list-panel,.family-form-panel{min-height:560px;max-height:calc(100vh - 180px);overflow:auto}.family-list-title,.form-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid rgba(228,201,141,.1);padding-bottom:13px;margin-bottom:13px}.family-list-title span,.form-title span{font-size:9px;letter-spacing:.16em;color:#cda95e}.family-list-title b{display:block;margin-top:4px}.family-list-title strong{font-family:Georgia,serif;font-size:28px;color:#e4c98d}.family-list-title a{font-size:11px;color:#e4c98d}.family-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:12px}.family-stats>div{border:1px solid rgba(228,201,141,.09);border-radius:10px;padding:8px;text-align:center;background:rgba(255,255,255,.012)}.family-stats b,.family-stats span{display:block}.family-stats b{font-family:Georgia,serif;font-size:19px;color:#e4c98d}.family-stats span{font-size:8px;color:#aa9b89}.family-list{display:grid;gap:7px}.family-person{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;border:1px solid rgba(228,201,141,.1);border-radius:13px;padding:10px;background:rgba(255,255,255,.012)}.family-person.owner{border-color:rgba(228,201,141,.3);background:linear-gradient(90deg,rgba(228,201,141,.05),rgba(93,16,22,.04))}.family-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#1b1111;border:1px solid rgba(228,201,141,.16);color:#e4c98d;font-family:Georgia,serif}.family-person-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.family-person-top b{font-family:Georgia,serif;font-size:16px}.family-person-top span{font-size:8px;letter-spacing:.06em;text-transform:uppercase;color:#d4b977;border:1px solid rgba(228,201,141,.12);padding:3px 6px;border-radius:999px}.family-person-copy small,.family-person-copy em{display:block;margin-top:2px;color:#a99a88;font-size:9.5px}.family-person-copy em{color:#cdb57e;font-style:normal}.family-person-actions{display:flex;gap:4px}.mini-action{border:1px solid rgba(228,201,141,.1);background:rgba(255,255,255,.02);color:#d9c9b6;border-radius:8px;padding:6px 7px;font-size:8px;cursor:pointer}.mini-action:hover{border-color:rgba(228,201,141,.3)}.mini-action.danger{color:#cc8d8d}.family-empty{padding:40px 20px;text-align:center;border:1px dashed rgba(228,201,141,.14);border-radius:14px}.family-empty b,.family-empty span{display:block}.family-empty span{color:#a99a88;margin-top:5px}.form-title h2{margin:5px 0 0;font-size:28px}.active-person{text-align:right}.active-person b,.active-person span{display:block}.active-person b{color:#e4c98d}.active-person span{font-size:9px;color:#aa9b89;margin-top:3px}.quick-role-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:13px}.quick-role-row button{border:1px solid rgba(228,201,141,.12);background:rgba(255,255,255,.018);color:#d9cab8;border-radius:999px;padding:7px 10px;font-size:9px;cursor:pointer}.quick-role-row button:hover{background:rgba(228,201,141,.06);border-color:rgba(228,201,141,.3);color:#fff8eb}.family-form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.family-form-grid label{font-size:9px;letter-spacing:.09em;color:#cbb174}.family-form-grid .wide{grid-column:span 2}.family-form-grid input,.family-form-grid select{width:100%;margin-top:5px}.check-label{display:flex;align-items:center;gap:7px;min-height:42px;margin-top:16px;padding:0 8px;border:1px solid rgba(228,201,141,.08);border-radius:11px}.check-label input{width:auto!important;margin:0!important}.family-save-row{display:flex;gap:8px;margin-top:15px}.family-note{display:grid;grid-template-columns:auto 1fr;gap:9px;margin-top:12px;padding:10px 12px;border-left:2px solid #a87d35;background:rgba(228,201,141,.025);font-size:10px;color:#b8aa98}.family-note b{color:#ddc181}.family-lookup-section{padding-top:28px}.home-lookups{grid-template-columns:repeat(6,1fr)}
@media(max-width:1100px){.family-intake-grid{grid-template-columns:1fr}.family-list-panel,.family-form-panel{min-height:auto;max-height:none}.family-form-grid{grid-template-columns:repeat(2,1fr)}.family-home{grid-template-columns:1fr;min-height:auto;padding-top:48px}.home-lookups{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.family-intake-head{grid-template-columns:1fr}.family-head-actions{justify-content:flex-start}.family-form-grid{grid-template-columns:1fr}.family-form-grid .wide{grid-column:auto}.family-stats{grid-template-columns:repeat(3,1fr)}.lookup-grid,.home-lookups{grid-template-columns:1fr 1fr}.input-checklist{grid-template-columns:1fr}.family-person{grid-template-columns:38px 1fr}.family-person-actions{grid-column:2}.family-home h1{font-size:48px}}

/* =========================================================
   V25 KNOWLEDGE DEPTH ENGINE UI
   ========================================================= */
.v25-main{min-height:100vh}.v25-hero{min-height:210px}.v25-hero h1{max-width:1050px}
.v25-kpis{grid-template-columns:repeat(4,1fr);margin:0 0 24px}.v25-kpis>div{border:1px solid var(--line);border-radius:16px;padding:18px;background:rgba(255,255,255,.018)}.v25-kpis b{font-family:Georgia,serif;font-size:30px;color:var(--gold2)}.v25-kpis span{display:block;color:var(--muted);font-size:10px;margin-top:4px;text-transform:uppercase;letter-spacing:.08em}
.v25-module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.v25-module-grid>a{border:1px solid var(--line);border-radius:18px;padding:20px;min-height:160px;background:linear-gradient(145deg,rgba(255,255,255,.028),rgba(255,255,255,.008));text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:8px}.v25-module-grid>a:hover{transform:translateY(-3px);border-color:var(--line2);box-shadow:var(--shadow-gold)}.v25-module-grid span{font-family:Georgia,serif;font-size:30px;color:var(--gold2)}.v25-module-grid b{font-family:Georgia,serif;font-size:18px}.v25-module-grid small{color:var(--muted);line-height:1.55}
.v25-contract-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.v25-contract{border:1px solid var(--line);border-radius:14px;padding:14px;background:rgba(255,255,255,.015)}.v25-contract b{display:block;color:var(--gold2);text-transform:uppercase;font-size:10px;letter-spacing:.08em}.v25-contract span{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.55}
.v25-control{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr)) auto;gap:12px;align-items:end;margin-bottom:16px}.v25-control label{margin:0}.v25-check{display:flex;align-items:center;gap:8px;padding:0 4px 12px}.v25-check input{min-height:auto;width:auto}.v25-checklist{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.v25-checklist label{border:1px solid var(--line);border-radius:999px;padding:8px 10px;display:flex;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font-size:11px;color:var(--text)}.v25-checklist input{min-height:auto;width:auto}
.v25-report{display:grid;gap:14px}.v25-report:empty{display:none}.v25-report-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;border-bottom:1px solid var(--line);padding:14px 0}.v25-report-head>div>span{font-size:9px;letter-spacing:.12em;color:var(--gold2);text-transform:uppercase}.v25-report-head h2{font-family:Georgia,serif;font-size:32px;font-weight:400;margin:4px 0 0}.v25-report-head>b{font-family:Georgia,serif;font-size:22px;color:var(--gold2)}
.v25-pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.v25-pillars>div{border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center;background:rgba(255,255,255,.015)}.v25-pillars small,.v25-pillars span{display:block;color:var(--muted)}.v25-pillars b{display:block;font-family:Georgia,serif;font-size:26px;color:var(--gold2);margin:7px 0}
.v25-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v25-two>section{border:1px solid var(--line);border-radius:18px;padding:18px;background:rgba(255,255,255,.012)}.v25-two h3,.v25-report h3{font-family:Georgia,serif;font-size:19px;font-weight:400;margin:10px 0 12px}.v25-line{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05)}.v25-line span{color:var(--muted)}
.v25-element{display:grid;grid-template-columns:52px 1fr 42px;gap:8px;align-items:center;margin:8px 0}.v25-element>div{height:8px;background:rgba(255,255,255,.05);border-radius:999px;overflow:hidden}.v25-element i{display:block;height:100%;background:linear-gradient(90deg,var(--gold3),var(--gold2));border-radius:999px}.v25-element span{color:var(--muted);text-align:right}.v25-note{font-size:10px;color:var(--muted);line-height:1.55}
.v25-signal{border:1px solid var(--line);border-radius:12px;padding:10px;margin:6px 0;display:grid;gap:4px}.v25-signal span{color:var(--muted)}.v25-signal.support{border-left:3px solid #7bb893}.v25-signal.friction{border-left:3px solid #be6a6a}
.v25-provenance{display:flex;gap:6px;flex-wrap:wrap}.v25-chip{font-size:9px;color:var(--gold2);border:1px solid var(--line);border-radius:999px;padding:5px 8px;background:rgba(201,168,103,.04)}
.v25-focus-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.v25-focus-grid>article{border:1px solid var(--line);border-radius:18px;padding:16px;background:rgba(255,255,255,.012)}.v25-focus-grid small{color:var(--gold2);text-transform:uppercase;letter-spacing:.08em}.v25-focus-grid h3{margin:7px 0;font-size:20px}.v25-focus-grid p{color:var(--muted);font-size:11px}.v25-star{border-top:1px solid rgba(255,255,255,.05);padding:9px 0;display:grid;grid-template-columns:95px 1fr auto;gap:8px}.v25-star span{color:var(--muted);font-size:10px}.v25-star em{font-style:normal;color:var(--gold2);font-size:10px}.v25-aux{font-size:10px;line-height:1.55;color:var(--muted);margin-top:8px}.v25-details{border:1px solid var(--line);border-radius:16px;padding:12px}.v25-details summary{cursor:pointer;color:var(--gold2)}.v25-palace-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.v25-palace-list>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid rgba(255,255,255,.05);padding:8px}.v25-palace-list span{color:var(--muted);text-align:right}
.v25-pair{border:1px solid var(--line);border-radius:14px;padding:13px;margin:8px 0;background:rgba(255,255,255,.012)}.v25-pair>div{display:flex;justify-content:space-between;gap:10px}.v25-pair>div span,.v25-pair>small{color:var(--muted);font-size:10px}.v25-pair p{margin:7px 0 0;font-size:10px;line-height:1.5}.v25-pair .support{color:#9fd1b0}.v25-pair .friction{color:#e0a0a0}
.v25-evidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.v25-evidence-grid>div{border:1px solid var(--line);border-radius:13px;padding:12px;background:rgba(255,255,255,.012)}.v25-evidence-grid b,.v25-evidence-grid span{display:block}.v25-evidence-grid span{color:var(--muted);margin-top:4px}.v25-hour-row{display:flex;gap:7px;flex-wrap:wrap}.v25-hour-row span{border:1px solid var(--line);border-radius:999px;padding:7px 9px;font-size:10px;color:var(--muted)}
.v25-dir{display:grid;gap:5px;margin-top:10px}.v25-dir b{color:#9fd1b0}.v25-dir.bad b{color:#e0a0a0}.v25-dir span{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.v25-module-grid{grid-template-columns:repeat(2,1fr)}.v25-focus-grid{grid-template-columns:1fr 1fr}.v25-control{grid-template-columns:1fr 1fr}.v25-control .btn{grid-column:1/-1}.v25-contract-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.v25-kpis,.v25-pillars,.v25-evidence-grid{grid-template-columns:1fr 1fr}.v25-two,.v25-focus-grid,.v25-palace-list{grid-template-columns:1fr}.v25-control{grid-template-columns:1fr}.v25-module-grid{grid-template-columns:1fr}.v25-contract-grid{grid-template-columns:1fr}.v25-report-head{align-items:flex-start;flex-direction:column}.v25-pair>div{flex-direction:column}}
.v25-home-cta{margin:14px clamp(18px,4vw,52px) 0;border:1px solid var(--line2);border-radius:16px;padding:13px 16px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(90deg,rgba(114,18,25,.11),rgba(201,168,103,.05));position:relative;z-index:5}.v25-home-cta div{display:grid;gap:2px}.v25-home-cta span{font-size:8px;letter-spacing:.14em;color:var(--gold2)}.v25-home-cta b{font-family:Georgia,serif;font-size:17px}.v25-home-cta small{color:var(--muted)}.v25-home-cta a{color:var(--gold2);font-size:10px;text-decoration:none;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:9px 12px}@media(max-width:700px){.v25-home-cta{flex-direction:column;align-items:flex-start}.v25-home-cta a{white-space:normal}}
.v25-royal-home{background:#030403;color:#eee7db}.v25-royal-home main{max-width:1800px;margin:auto;padding:30px}.royal-hero{min-height:490px;display:grid;grid-template-columns:280px minmax(400px,1fr) minmax(560px,1.15fr);gap:28px;align-items:center}.astro-visual{height:410px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid rgba(205,153,65,.35);border-radius:50%}.orbit:after{content:"";position:absolute;inset:18%;border:1px dashed rgba(213,168,77,.22);border-radius:50%}.o1{width:280px;height:280px}.o2{width:210px;height:210px}.o3{width:130px;height:130px}.crescent{font-size:84px;color:#e5b85e;text-shadow:0 0 28px #9d5e20}.hero-message>small{color:#b88e43;letter-spacing:.16em}.hero-message h1{font:400 clamp(44px,3.6vw,62px)/.98 Georgia;color:#f3eee5;letter-spacing:-.035em;margin:16px 0}.hero-message h1 em{color:#d7a94d;font-style:normal}.hero-message>p{color:#c9c0b4;font:italic 14px/1.7 Georgia;max-width:620px}.royal-actions{display:flex;gap:12px;margin-top:20px}.royal-btn{min-height:48px;padding:0 22px;border:1px solid rgba(213,168,77,.48);border-radius:7px;background:#0d0d0b;color:#e2bd6c;display:flex;align-items:center;justify-content:center;font:600 13px Georgia}.royal-btn.gold{background:linear-gradient(100deg,#f4d782,#d7a94d,#edc875);color:#1c1408}.quick-profile{padding:22px;border:1px solid rgba(181,78,38,.65);border-radius:16px;background:linear-gradient(135deg,rgba(48,18,12,.45),#0e0d0b 40%);box-shadow:0 18px 55px #000}.quick-profile h2{font:17px Georgia;color:#d8b462;border-bottom:1px solid rgba(213,168,77,.25);padding-bottom:16px;margin:0 0 16px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px}.quick-grid label{font:11px Georgia;color:#d8d0c5;text-transform:none;letter-spacing:0}.quick-grid input,.quick-grid select{width:100%;height:41px;margin-top:7px;padding:0 13px;border:1px solid rgba(213,168,77,.3);border-radius:6px;background:#090a08;color:#cfc5b8;color-scheme:dark}.add-family{height:43px;margin-top:17px;border:1px dashed rgba(213,168,77,.48);display:flex;align-items:center;justify-content:center;color:#d6ae60;font:12px Georgia}.service-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.service-strip>a{min-height:132px;padding:16px;display:grid;grid-template-columns:68px 1fr;gap:12px;align-items:center;border:1px solid rgba(213,168,77,.35);border-radius:8px;background:linear-gradient(135deg,rgba(62,27,18,.24),#12110e);transition:.2s}.service-strip>a:hover{transform:translateY(-3px);border-color:#d5a84d}.service-strip i{width:64px;height:64px;border:1px solid rgba(213,168,77,.42);border-radius:50%;display:grid;place-items:center;color:#dbac51;font:25px Georgia}.service-strip h3{font:14px Georgia;margin:0 0 8px}.service-strip p{color:#aaa094;font:italic 10px/1.45 Georgia}.service-strip b{color:#d5a84d;font:9px Georgia}.deep-strip{margin-top:24px;min-height:110px;padding:16px;display:grid;grid-template-columns:1.3fr repeat(4,1fr);align-items:center;border:1px solid rgba(213,168,77,.44);border-radius:12px;background:radial-gradient(circle at 50% 0,rgba(122,25,20,.25),transparent 55%),#0d0908}.deep-strip h2{font:19px Georgia;color:#e5c574}.deep-strip a{height:65px;padding:20px;border-left:1px solid rgba(213,168,77,.2);display:flex;align-items:center;color:#dcb964;font:12px Georgia}.v25-royal-home footer{display:none}@media(max-width:1250px){.royal-hero{grid-template-columns:200px 1fr 1.15fr}.astro-visual{transform:scale(.8)}.hero-message h1{font-size:44px}.service-strip{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){.v25-royal-home main{padding:18px 15px}.royal-hero{grid-template-columns:1fr}.astro-visual{height:230px;transform:scale(.7);margin:-50px 0 -20px}.hero-message{text-align:center}.royal-actions{justify-content:center}.service-strip,.deep-strip{grid-template-columns:1fr 1fr}}@media(max-width:580px){.hero-message h1{font-size:38px}.quick-grid,.service-strip,.deep-strip{grid-template-columns:1fr}.royal-actions{flex-direction:column}.service-strip>a{grid-template-columns:58px 1fr}.service-strip i{width:54px;height:54px}}
.v25-depth-panel{margin-top:18px;padding:18px;border:1px solid rgba(201,168,103,.22);border-radius:16px;background:linear-gradient(135deg,rgba(201,168,103,.05),rgba(114,18,25,.05))}.v25-depth-panel h3{font-family:Georgia,serif;color:var(--gold2);margin:12px 0}.v25-lo-shu{width:min(420px,100%);display:grid;grid-template-columns:repeat(3,1fr);margin:16px auto;border:1px solid var(--line)}.v25-lo-shu b{aspect-ratio:1;display:grid;place-items:center;border:1px solid var(--line);font:26px Georgia;color:var(--gold2)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}:focus-visible{outline:2px solid #e4bd67!important;outline-offset:3px!important}.skip-link{position:fixed;left:12px;top:-60px;z-index:999;padding:10px 14px;background:#e4bd67;color:#111;border-radius:8px}.skip-link:focus{top:12px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V25.3 brand system and esoteric depth */
body{background-image:linear-gradient(rgba(4,3,2,.90),rgba(4,3,2,.94)),url("assets/brand/background-v25-2.webp");background-size:cover;background-position:center top;background-attachment:fixed}
.brand{min-width:220px}.brand-logo-img{display:block;width:220px;height:auto;max-height:62px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 14px rgba(220,158,46,.18))}
.v25-royal-home .royal-hero{background-image:linear-gradient(90deg,rgba(3,2,1,.2),rgba(3,2,1,.6) 55%,rgba(3,2,1,.9)),url("assets/brand/hero-v25-2.webp");background-size:cover;background-position:center}.v25-royal-home .royal-hero .astro-visual{opacity:.08}
.esoteric-depth{margin-top:28px}.esoteric-depth .panel{background:linear-gradient(145deg,rgba(28,19,11,.94),rgba(8,7,6,.96));border:1px solid rgba(218,164,65,.32)}
.esoteric-kpis{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;margin:18px 0}.esoteric-kpis article{display:grid;gap:5px;padding:16px;border:1px solid rgba(218,164,65,.3);border-radius:12px;background:rgba(255,255,255,.025)}.esoteric-kpis b{font:700 30px Georgia,serif;color:#f2c45d}.esoteric-kpis span{font-weight:700}.esoteric-kpis small{color:var(--muted)}
.birth-grid{display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));max-width:420px;margin:12px 0;direction:rtl}.birth-grid b{display:grid;place-items:center;min-height:76px;border:1px solid rgba(218,164,65,.3);font-size:24px;color:#e9bd5b;direction:ltr}.birth-grid small{font:400 11px system-ui;color:var(--muted)}
.tarot-cards{display:grid;gap:8px;margin-top:14px}.tarot-item{display:grid;gap:4px;padding:12px;border-left:3px solid #c89532;background:rgba(255,255,255,.035)}.tarot-item small{color:var(--muted)}
.hex-lines{display:grid;gap:7px;width:130px;margin:18px auto}.hex-lines i{display:block;height:8px;border-radius:3px;background:#dfab40}.hex-lines i.yin{background:linear-gradient(90deg,#dfab40 0 42%,transparent 42% 58%,#dfab40 58%)}
.culture-hero{padding:52px 34px;border:1px solid rgba(218,164,65,.28);border-radius:18px;background:linear-gradient(90deg,rgba(5,4,3,.35),rgba(5,4,3,.9)),url("assets/brand/hero-v25-2.webp") center/cover}.culture-hero h1{max-width:780px;font:700 clamp(36px,5vw,72px)/1.05 Georgia,serif;color:#f3d08a}.culture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.culture-grid article{padding:22px;border:1px solid rgba(218,164,65,.25);border-radius:14px;background:rgba(10,8,6,.86)}
@media(max-width:980px){.brand-logo-img{width:170px}.esoteric-kpis{grid-template-columns:repeat(3,1fr)}.culture-grid{grid-template-columns:1fr}.v25-royal-home .royal-hero{background-position:38% center}}
@media(max-width:620px){body{background-attachment:scroll}.esoteric-kpis{grid-template-columns:repeat(2,1fr)}.culture-hero{padding:32px 20px}.brand{min-width:150px}.brand-logo-img{width:150px}}

/* V25.3 ART-RICH BACKGROUND + ICON LANGUAGE */
body{position:relative;background-image:linear-gradient(180deg,rgba(3,3,2,.72),rgba(3,3,2,.84) 45%,rgba(3,3,2,.78)),url("assets/brand/background-v25-2.webp");background-size:cover;background-position:center top;background-attachment:fixed}
body::before{content:"";position:fixed;z-index:-1;inset:64px 0 0;pointer-events:none;background:radial-gradient(circle at 8% 16%,rgba(228,177,71,.15),transparent 18%),radial-gradient(circle at 91% 20%,rgba(228,177,71,.12),transparent 17%),linear-gradient(90deg,rgba(216,161,55,.12) 1px,transparent 1px);background-size:auto,auto,220px 100%;mask-image:linear-gradient(to bottom,#000,transparent 80%)}
main{position:relative}main::before,main::after{content:"✦";position:fixed;z-index:-1;pointer-events:none;color:rgba(227,177,70,.18);font-size:34px;text-shadow:0 0 36px rgba(227,177,70,.35)}main::before{left:3.5vw;top:20vh}main::after{right:4vw;top:31vh}
.page-hero{position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(3,3,2,.68),rgba(3,3,2,.86)),url("assets/brand/hero-v25-2.webp") center 54%/cover;border-bottom:1px solid rgba(222,171,66,.22)}.page-hero::after{content:"☾  ✦  ☉";position:absolute;right:34px;bottom:16px;color:rgba(230,184,86,.3);font:28px Georgia;letter-spacing:.38em}.page-hero .hero-symbol{width:64px;height:64px;border:1px solid rgba(229,181,78,.32);border-radius:50%;display:grid;place-items:center;color:#d8aa51;background:radial-gradient(circle,rgba(215,165,64,.12),transparent 68%);box-shadow:0 0 35px rgba(220,169,65,.1)}
.panel{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(28,23,16,.88),rgba(10,10,9,.92));border-color:rgba(225,181,88,.22)}.panel::before{content:"";position:absolute;pointer-events:none;width:110px;height:110px;right:-44px;top:-46px;border:1px solid rgba(224,173,68,.13);border-radius:50%;box-shadow:0 0 0 13px rgba(224,173,68,.025),0 0 0 27px rgba(224,173,68,.018)}
.eyebrow::before{content:"✦";margin-right:9px;color:#e5b957}.section-head h2::before,.panel>h2::before,.panel>h3::before{content:"✧";margin-right:8px;color:#d8a84c}
.nav a::before,.nav-group-btn::before,.panel label::before,.btn::before{display:inline-block;color:#d7a84d;margin-right:7px;font-weight:400}.nav a[href="index.html"]::before{content:"⌂"}.nav a[href="family-intake.html"]::before{content:"♙"}.nav-group:nth-of-type(1)>.nav-group-btn::before{content:"✦"}.nav-group:nth-of-type(2)>.nav-group-btn::before{content:"♊"}.nav-group:nth-of-type(3)>.nav-group-btn::before{content:"▣"}.nav-group:nth-of-type(4)>.nav-group-btn::before{content:"☉"}.nav-group:nth-of-type(5)>.nav-group-btn::before{content:"◇"}.nav-group:nth-of-type(6)>.nav-group-btn::before{content:"▥"}.nav-group:nth-of-type(7)>.nav-group-btn::before{content:"⚙"}
body[data-current="couple.html"] .panel:first-child label:nth-of-type(1)::before{content:"☉"}body[data-current="couple.html"] .panel:first-child label:nth-of-type(2)::before{content:"☽"}body[data-current="couple.html"] .panel:first-child label:nth-of-type(3)::before{content:"◎"}body[data-current="couple.html"] #compat18Run::before{content:"⇄"}body[data-current="couple.html"] .two-panel>.panel:last-child::after{content:"☯";position:absolute;right:22px;bottom:10px;color:rgba(220,170,69,.08);font:100px Georgia;pointer-events:none}
.btn.primary{position:relative;background:linear-gradient(100deg,#f2d998,#bd9140 72%,#dfb85f)}.btn:not(.primary)::before{content:"✦"}
footer{background:linear-gradient(180deg,rgba(8,7,5,.92),rgba(13,9,5,.98));border-top:1px solid rgba(221,172,70,.2)}
@media(max-width:900px){body{background-position:42% top}.page-hero::after{font-size:18px;right:12px}.nav a::before,.nav-group-btn::before{margin-right:5px}}

/* V25.3 THEME REPAIR — final source of truth */
body::before{display:block!important}
body.light{color-scheme:light;--bg:#f4efe4;--bg2:#fffaf1;--panel:rgba(255,252,245,.92);--panel2:#f4eadb;--text:#292117;--muted:#726453;--gold:#9b6819;--gold2:#71470f;--line:rgba(100,72,31,.19);--line2:rgba(100,72,31,.34);background-image:linear-gradient(180deg,rgba(255,250,239,.76),rgba(247,239,223,.86) 48%,rgba(255,249,238,.8)),url("assets/brand/background-v25-2.webp");background-color:#f5efe4;color:var(--text)}
body.light::before{opacity:.32;background:radial-gradient(circle at 8% 16%,rgba(154,104,25,.18),transparent 18%),radial-gradient(circle at 91% 20%,rgba(154,104,25,.14),transparent 17%),linear-gradient(90deg,rgba(121,83,28,.12) 1px,transparent 1px);background-size:auto,auto,220px 100%}
body.light main::before,body.light main::after{color:rgba(121,78,19,.22);text-shadow:none}
body.light .topbar{background:rgba(255,250,240,.91);border-color:rgba(113,75,22,.2);box-shadow:0 8px 28px rgba(70,46,15,.08)}
body.light .nav a,body.light .nav-group-btn,body.light .icon-btn,body.light .menu-btn{color:#342719}body.light .nav-group-btn:hover,body.light .nav-group.active>.nav-group-btn{background:rgba(151,101,27,.09);border-color:rgba(151,101,27,.23)}body.light .nav-menu{background:rgba(255,251,242,.98);border-color:rgba(126,87,29,.2);box-shadow:0 18px 46px rgba(69,46,16,.14)}body.light .nav-menu a:hover,body.light .nav-menu a.active{background:rgba(151,101,27,.09);color:#70460e}
body.light .page-hero{background-image:linear-gradient(90deg,rgba(255,250,240,.73),rgba(255,250,240,.9)),url("assets/brand/hero-v25-2.webp");border-color:rgba(129,88,28,.2)}body.light .page-hero h1,body.light .page-hero p{color:#2f2418}body.light .page-hero .hero-symbol{background:rgba(255,250,240,.58);color:#895915}
body.light .panel,body.light .portal-card,body.light .result-card,body.light .calendar-card,body.light .formula-card,body.light .moon-month,body.light .year-short,body.light .mini-tool,body.light .chat-shell,body.light .v25-depth-panel,body.light .v25-module-grid>a,body.light .v25-two>section,body.light .v25-focus-grid>article{background:linear-gradient(145deg,rgba(255,253,248,.96),rgba(245,237,223,.93));border-color:rgba(117,80,27,.2);box-shadow:0 14px 34px rgba(72,46,13,.08);color:var(--text)}
body.light .panel::before{border-color:rgba(135,89,20,.15);box-shadow:0 0 0 13px rgba(135,89,20,.03),0 0 0 27px rgba(135,89,20,.02)}
body.light input,body.light select,body.light textarea,body.light .form-grid input,body.light .form-grid select,body.light .panel input,body.light .panel select,body.light .quick-grid input,body.light .quick-grid select{background:rgba(255,255,255,.86);color:#302418;border-color:rgba(107,73,25,.22);color-scheme:light}body.light input::placeholder,body.light textarea::placeholder{color:#8a7a66}
body.light .btn:not(.primary),body.light .royal-btn:not(.gold),body.light .tiny-action,body.light .mini-action{background:rgba(255,252,246,.82);color:#4b361e;border-color:rgba(116,78,25,.23)}
body.light footer{background:rgba(239,228,208,.92);color:#493a29;border-color:rgba(111,75,24,.2)}
body.light.v25-royal-home{background:#f5efe4;color:#2b2116}body.light.v25-royal-home .royal-hero{background-image:linear-gradient(90deg,rgba(255,248,235,.48),rgba(255,248,235,.78) 55%,rgba(255,248,235,.93)),url("assets/brand/hero-v25-2.webp")}body.light .hero-message h1{color:#2e2317}body.light .hero-message>p{color:#655744}body.light .quick-profile{background:linear-gradient(135deg,rgba(231,201,145,.32),rgba(255,252,245,.96) 42%);border-color:rgba(151,97,30,.35);box-shadow:0 18px 48px rgba(80,51,16,.12)}body.light .quick-profile h2,body.light .quick-grid label{color:#66430f}body.light .service-strip>a,body.light .deep-strip{background:linear-gradient(145deg,rgba(255,252,246,.96),rgba(238,225,202,.91));border-color:rgba(130,86,23,.25);color:#342719}body.light .service-strip p{color:#756551}body.light .deep-strip a{color:#70480f;border-color:rgba(130,86,23,.2)}
body.light .warning-box{background:rgba(132,82,17,.055);border-color:rgba(132,82,17,.2)}body.light .facts-code,body.light .mini-json{background:#f7f0e4;color:#493b50}
@media(prefers-color-scheme:dark){body:not(.light){color-scheme:dark}}

/* V25.4 TYPOGRAPHY I18N ICONS */
html{font-size:16px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body{font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.55;font-synthesis:none}.hero h1,.page-hero h1,.hero-message h1,h1,h2,h3,.quick-profile h2,.service-strip h3{font-family:Cambria,"Times New Roman",Georgia,serif;font-kerning:normal}.eyebrow,label,.nav,.btn{font-family:"Segoe UI",Roboto,Arial,sans-serif}.nav a,.nav-group-btn{font-size:12px;letter-spacing:0}.panel label,.form-grid label,.ai-profile label{font-size:11px;line-height:1.4;letter-spacing:.025em}.panel,.result-card{font-size:13px}.btn{font-size:11px;letter-spacing:.035em}.v25-note,.micro,.v25-pair p,.v25-pair small{font-size:11px}.eyebrow{font-size:11px;letter-spacing:.14em;line-height:1.45}.hero-message>p,.page-hero p{font-size:15px}
.lang-btn{height:38px;min-width:68px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--text);cursor:pointer;font:700 10px "Segoe UI",sans-serif}.lang-btn span{color:var(--gold2)}.lang-btn b{opacity:.55}.lang-btn:hover{border-color:var(--line2);background:rgba(201,168,103,.06)}
.v25-icon{width:17px;height:17px;flex:0 0 17px;display:inline-block;vertical-align:-3px;margin-right:7px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;color:#d6a64b}.nav .v25-icon{width:15px;height:15px;flex-basis:15px;margin-right:6px}.family-entry .v25-icon,.btn.primary .v25-icon{color:#3b260d}.panel label>.v25-icon{width:14px;height:14px;vertical-align:-3px;margin-right:5px}.nav [data-v25-icon]::before,.panel label[data-v25-icon]::before,.btn[data-v25-icon]::before{content:none!important}.nav a[data-v25-icon],.nav-group-btn[data-v25-icon],.btn[data-v25-icon]{display:inline-flex;align-items:center}
body.light{background-image:linear-gradient(180deg,rgba(255,251,242,.54),rgba(250,241,225,.66) 48%,rgba(255,250,239,.58)),url("assets/brand/background-v25-2.webp");background-color:#f7f0e3;color:#241b12}body.light::before{opacity:.5}body.light .topbar{background:rgba(255,252,245,.96)}body.light .panel,body.light .portal-card,body.light .result-card,body.light .calendar-card,body.light .formula-card,body.light .moon-month,body.light .year-short,body.light .mini-tool,body.light .chat-shell{background:linear-gradient(145deg,rgba(255,255,252,.985),rgba(247,237,218,.97));border-color:rgba(112,72,20,.27);box-shadow:0 14px 32px rgba(69,42,10,.12)}body.light .page-hero{background-image:linear-gradient(90deg,rgba(255,251,242,.55),rgba(255,251,242,.78)),url("assets/brand/hero-v25-2.webp")}body.light .muted,body.light small,body.light .v25-note{color:#695844}body.light .lang-btn{background:rgba(255,255,255,.72);border-color:rgba(103,68,21,.22)}
@media(max-width:900px){body{font-size:13px}.lang-btn{min-width:60px;height:36px}.brand-logo-img{width:160px}.page-hero h1{font-size:34px}}

/* V25.5 AI SEARCH + INTERPRETATION */
.ai-search-open{height:38px;display:inline-flex;align-items:center;gap:3px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(135deg,rgba(201,168,103,.12),rgba(255,255,255,.02));color:var(--text);font:700 11px "Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}.ai-search-open:hover{border-color:var(--line2);box-shadow:0 8px 24px rgba(192,143,45,.12)}
.ai-search-modal{display:none;position:fixed;z-index:300;inset:0;padding:5vh 18px;background:rgba(0,0,0,.72);backdrop-filter:blur(10px);overflow:auto}.ai-search-modal.open{display:block}.ai-search-shell{position:relative;width:min(900px,100%);margin:auto;padding:28px;border:1px solid rgba(220,171,72,.32);border-radius:20px;background:linear-gradient(145deg,#18130d,#080807 72%);box-shadow:0 30px 90px #000;color:var(--text)}.ai-search-shell h2{font:500 34px Cambria,Georgia,serif;margin:7px 0}.ai-search-shell>p{color:var(--muted)}.ai-search-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);font-size:22px;cursor:pointer}.ai-search-box{display:grid;grid-template-columns:1fr auto;gap:8px;margin:22px 0 10px}.ai-search-box input{height:50px;padding:0 16px;border:1px solid rgba(217,169,69,.32);border-radius:11px;background:#090908;color:#f7f0e4;font-size:14px}.ai-search-box button{padding:0 22px;border:0;border-radius:11px;background:linear-gradient(135deg,#efd189,#bd8e3b);color:#241707;font-weight:800}.ai-search-actions{display:flex;gap:8px;flex-wrap:wrap}.ai-search-actions button,.ai-search-actions a{padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:rgba(255,255,255,.025);color:var(--text);font-size:11px;cursor:pointer}.ai-search-output{margin-top:20px;display:grid;gap:12px}.ai-synthesis{padding:17px;border:1px solid rgba(218,168,67,.2);border-radius:14px;background:rgba(218,168,67,.045)}.ai-answer-head{display:flex;justify-content:space-between;color:var(--gold2);font-size:10px;letter-spacing:.08em}.ai-synthesis ul{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0;list-style:none}.ai-synthesis li{padding:10px;border:1px solid var(--line);border-radius:10px}.ai-synthesis li b,.ai-synthesis li small{display:block}.ai-synthesis li small{margin-top:4px;color:var(--muted);line-height:1.45}.ai-citation-note{padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.ai-result-list{display:grid;gap:6px}.ai-result-list>a{display:grid;grid-template-columns:32px 1fr;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;color:var(--text)}.ai-result-list>a>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:rgba(209,162,67,.1);color:var(--gold2)}.ai-result-list b,.ai-result-list small{display:block}.ai-result-list small{color:var(--muted);margin-top:3px}
body.light .ai-search-modal{background:rgba(53,40,21,.42)}body.light .ai-search-shell{background:linear-gradient(145deg,#fffdf8,#f1e4cc);border-color:rgba(122,79,19,.35);box-shadow:0 30px 80px rgba(65,40,9,.24)}body.light .ai-search-box input{background:#fff;color:#2b2014}body.light .ai-search-actions button,body.light .ai-search-actions a{background:rgba(255,255,255,.7)}
@media(max-width:780px){.ai-search-open span{display:none}.ai-search-open{width:38px;padding:0;justify-content:center}.ai-search-shell{padding:22px 15px}.ai-search-box{grid-template-columns:1fr}.ai-search-box button{height:44px}.ai-synthesis ul{grid-template-columns:1fr}}

/* V25.6 MODERN VIETNAMESE TYPE — final typography override */
:root{--font-ui:"Segoe UI Variable Text","Segoe UI",Tahoma,Arial,sans-serif;--font-display:"Segoe UI Variable Display","Segoe UI",Tahoma,Arial,sans-serif}
html,body,button,input,select,textarea{font-family:var(--font-ui)!important;font-variant-ligatures:common-ligatures;font-feature-settings:"kern" 1,"liga" 1}
body{font-size:14px;line-height:1.6;letter-spacing:0}
h1,h2,h3,h4,h5,h6,.hero h1,.page-hero h1,.hero-message h1,.quick-profile h2,.service-strip h3,.v25-report-head h2,.v25-pillars b,.compat-score b,.esoteric-kpis b{font-family:var(--font-display)!important;font-style:normal!important;font-weight:700!important;letter-spacing:-.025em;line-height:1.12}
.hero-message h1{font-size:clamp(42px,3.5vw,60px);letter-spacing:-.045em}.hero-message h1 em,.hero h1 span,.page-hero h1 span{font-family:inherit!important;font-style:normal!important;font-weight:750}
.page-hero h1{font-weight:720!important}.panel h2,.section-head h2{font-weight:700!important;letter-spacing:-.025em}.panel h3,.service-strip h3{font-weight:650!important;letter-spacing:-.01em}
.nav,.nav a,.nav-group-btn,.btn,.eyebrow,label,.badge,.lang-btn,.ai-search-open{font-family:var(--font-ui)!important}.nav a,.nav-group-btn{font-weight:600}.eyebrow{font-weight:750;letter-spacing:.12em}.btn{font-weight:700;letter-spacing:.02em}
.quick-profile h2{font-size:18px;letter-spacing:-.01em}.quick-grid label{font-family:var(--font-ui)!important;font-size:11px;font-weight:650}.royal-btn,.service-strip p,.service-strip b,.deep-strip h2,.deep-strip a{font-family:var(--font-ui)!important;font-style:normal!important}.service-strip p{line-height:1.5}.deep-strip h2{font-weight:700}
@media(max-width:700px){body{font-size:13px}.hero-message h1{font-size:38px}.page-hero h1{font-size:32px}}

/* V25.7 HEADER HERO FIX */
.v25-royal-home .royal-hero{grid-template-columns:minmax(440px,.92fr) minmax(500px,1.08fr);gap:34px;min-height:540px;padding:26px 28px;position:relative}.v25-royal-home .royal-hero>.astro-visual{display:none}.v25-royal-home .hero-message{max-width:680px;padding-left:clamp(18px,4vw,76px);position:relative;z-index:2}.v25-royal-home .hero-message h1{font-family:var(--font-display)!important;font-size:clamp(44px,4vw,66px)!important;line-height:1.02!important;letter-spacing:-.052em;max-width:650px;margin:14px 0 18px}.v25-royal-home .hero-message>p{font-family:var(--font-ui)!important;font-style:normal!important;font-size:15px!important;font-weight:450;line-height:1.7!important;letter-spacing:0;color:#d4c9bb;max-width:590px;margin:0}.v25-royal-home .hero-message h1 br{display:none}.v25-royal-home .hero-message h1 em{display:inline;color:#ddb04f}.v25-royal-home .quick-profile{min-width:0;position:relative;z-index:2}
.topbar{flex-wrap:nowrap}.topbar .nav{min-width:0;flex:1}.topbar>.ai-search-open,.topbar>.lang-btn,.topbar>.icon-btn{flex:0 0 auto}.lang-btn{order:initial}.icon-btn{order:initial}
body.light.v25-royal-home .hero-message>p{color:#594a38}
@media(max-width:1320px){.topbar{height:72px;min-height:72px;padding:0 18px;gap:10px}.brand{min-width:175px}.brand-logo-img{width:175px}.nav-groups{display:none!important}.menu-btn{display:inline-grid!important;place-items:center;margin-left:auto;order:2}.ai-search-open{order:3}.lang-btn{order:4}.icon-btn{order:5}.v241-mobile.show{display:grid;top:72px}.v25-royal-home .royal-hero{grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr);padding:22px 18px}.v25-royal-home .hero-message{padding-left:24px}.v25-royal-home .hero-message h1{font-size:clamp(40px,4.4vw,56px)!important}}
@media(max-width:980px){.v25-royal-home .royal-hero{grid-template-columns:1fr;min-height:auto;padding:36px 18px;background-position:34% center}.v25-royal-home .hero-message{max-width:760px;padding:0 12px;text-align:left}.v25-royal-home .hero-message h1{max-width:760px;font-size:clamp(38px,8vw,58px)!important}.v25-royal-home .hero-message>p{max-width:680px}.v25-royal-home .royal-actions{justify-content:flex-start}.v25-royal-home .quick-profile{width:100%;margin-top:10px}.topbar .ai-search-open span{display:none}}
@media(max-width:620px){.topbar{padding:0 10px;gap:7px}.brand{min-width:142px}.brand-logo-img{width:142px}.menu-btn,.ai-search-open,.lang-btn,.icon-btn{height:36px}.lang-btn{min-width:52px;padding:0 6px}.v25-royal-home main{padding:12px 10px}.v25-royal-home .royal-hero{padding:28px 12px}.v25-royal-home .hero-message{padding:0}.v25-royal-home .hero-message h1{font-size:38px!important;line-height:1.04!important}.v25-royal-home .hero-message>p{font-size:14px!important}.quick-profile{padding:17px}.quick-grid{grid-template-columns:1fr}.service-strip,.deep-strip{grid-template-columns:1fr}}

/* V25.8 — celestial art icon system */
.v25-art-icon{width:68px;height:68px;object-fit:contain;flex:0 0 auto;border-radius:20px;filter:drop-shadow(0 8px 16px rgba(0,0,0,.38));transition:transform .28s ease,filter .28s ease}
.lookup-grid>a,.home-lookups>a,.service-strip>a,.deep-strip>a,.v25-module-grid>a,.portal-card,.module-card{position:relative;overflow:hidden}
.lookup-grid>a>.v25-art-icon,.home-lookups>a>.v25-art-icon{width:60px;height:60px;margin:0 4px 0 0}
.lookup-grid>a>span:not(.v25-icon),.home-lookups>a>span:not(.v25-icon){display:none}
.service-strip>a>.v25-art-icon,.v25-module-grid>a>.v25-art-icon,.portal-card>.v25-art-icon,.module-card>.v25-art-icon{width:76px;height:76px;margin-bottom:10px}
.deep-strip>a>.v25-art-icon{width:48px;height:48px;margin-right:10px;vertical-align:middle}
.lookup-grid>a:hover>.v25-art-icon,.service-strip>a:hover>.v25-art-icon,.deep-strip>a:hover>.v25-art-icon,.v25-module-grid>a:hover>.v25-art-icon,.portal-card:hover>.v25-art-icon,.module-card:hover>.v25-art-icon{transform:translateY(-3px) scale(1.055);filter:drop-shadow(0 10px 22px rgba(218,166,67,.38))}
.page-hero,.family-home-copy,.hero-copy{position:relative}
.v25-hero-medallion{position:absolute;right:18px;top:12px;width:108px;height:108px;object-fit:contain;border-radius:28px;opacity:.9;filter:drop-shadow(0 12px 28px rgba(0,0,0,.45));pointer-events:none;animation:v25-medallion-float 5s ease-in-out infinite}
.family-home-copy>.v25-hero-medallion{right:24px;top:28px;width:128px;height:128px;opacity:.82}
[data-theme="light"] .v25-art-icon,[data-theme="light"] .v25-hero-medallion{filter:drop-shadow(0 8px 18px rgba(102,67,10,.2))}
@keyframes v25-medallion-float{50%{transform:translateY(-6px)}}
@media(max-width:900px){.v25-hero-medallion{width:78px;height:78px;right:8px;top:8px;opacity:.58}.family-home-copy>.v25-hero-medallion{width:86px;height:86px;right:8px}.v25-art-icon{width:56px;height:56px}.service-strip>a>.v25-art-icon,.v25-module-grid>a>.v25-art-icon{width:62px;height:62px}}
@media(prefers-reduced-motion:reduce){.v25-hero-medallion{animation:none}.v25-art-icon{transition:none}}
/* V25.9 — universal responsive layout */
*,*::before,*::after{box-sizing:border-box}html{width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{width:100%;min-width:0;overflow-x:hidden}img,svg,video,canvas{max-width:100%}img{height:auto}button,input,select,textarea{max-width:100%}h1,h2,h3,h4,p,small,b,a,td,th{overflow-wrap:anywhere}.section,.hero,.page-hero,footer,main,.panel,.result-card{min-width:0}
.rule-table-wrap,.table-wrap,.data-table-wrap,.calendar-table-wrap,.facts-code,.mini-json{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}.rule-table,table{font-variant-numeric:tabular-nums}.mobile-nav,.v241-mobile{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}.btn,.icon-btn,.menu-btn,.lang-btn,.ai-search-open,.tiny-action,.nav-group-btn{touch-action:manipulation}
@media(max-width:1180px){
 .section{padding-inline:28px}.page-hero{padding-inline:28px}.portal-grid,.triple-grid,.star-catalog,.v5-catalog,.engine-kpis,.v25-module-grid,.service-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.info-grid,.diff-details{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-layout,.two-panel,.split-note{gap:14px}.panel,.result-card,.mini-tool{padding:22px}.v25-hero-medallion{right:26px}
}
@media(min-width:768px) and (max-width:1180px){
 .topbar{padding-inline:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.v25-royal-home main{padding-inline:20px}.v25-royal-home .royal-hero{grid-template-columns:1fr;padding:34px 26px}.v25-royal-home .hero-message{padding-left:0;max-width:760px}.v25-royal-home .quick-profile{width:100%;max-width:none}.family-home{grid-template-columns:1fr!important}.family-home-copy,.family-home-panel{min-width:0}.lookup-grid,.home-lookups{grid-template-columns:repeat(3,minmax(0,1fr))!important}.palace-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ai-layout{grid-template-columns:minmax(230px,.38fr) minmax(0,1fr)}
}
@media(max-width:767px){
 :root{--mobile-gutter:14px}.topbar{height:64px;min-height:64px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));gap:5px}.brand{min-width:0;flex:1}.brand-logo-img{width:min(138px,37vw);max-height:52px;object-fit:contain}.menu-btn,.icon-btn,.lang-btn,.ai-search-open{width:36px;min-width:36px;height:36px;padding:0;border-radius:9px}.lang-btn{font-size:0}.lang-btn span{font-size:9px}.v241-mobile.show,.mobile-nav.show{top:64px;grid-template-columns:1fr;padding:12px var(--mobile-gutter) calc(18px + env(safe-area-inset-bottom))}
 .section{padding:46px var(--mobile-gutter)}.section.compact{padding:28px var(--mobile-gutter) 42px}.page-hero{min-height:210px;padding:38px var(--mobile-gutter) 30px;align-items:flex-end}.page-hero>div{width:100%;padding-right:54px}.page-hero h1{font-size:clamp(30px,10vw,42px)!important;line-height:1.08!important;margin:10px 0 14px}.page-hero p{font-size:13px;line-height:1.6}.v25-hero-medallion,.family-home-copy>.v25-hero-medallion{width:60px;height:60px;right:4px;top:6px;opacity:.5;border-radius:16px}
 .hero,.royal-hero,.family-home,.tool-layout,.two-panel,.split-note,.ai-layout{grid-template-columns:minmax(0,1fr)!important}.v25-royal-home main{padding:8px}.v25-royal-home .royal-hero{padding:24px 12px;background-position:28% center}.v25-royal-home .hero-message h1{font-size:clamp(34px,10.5vw,44px)!important}.v25-royal-home .royal-actions,.hero-actions,.button-row{display:grid;grid-template-columns:1fr;width:100%}.v25-royal-home .royal-actions>a,.hero-actions>a,.button-row>*{width:100%}.quick-profile,.panel,.result-card,.mini-tool,.chat-shell{padding:16px;border-radius:14px}.quick-grid,.form-grid,.info-grid,.triple-grid,.portal-grid,.star-catalog,.v5-catalog,.cycle-grid,.diff-details,.registry-groups,.school-grid,.engine-kpis,.v25-module-grid,.service-strip,.deep-strip,.lookup-grid,.home-lookups{grid-template-columns:minmax(0,1fr)!important}
 .lookup-grid>a,.home-lookups>a{min-height:82px;padding:12px}.lookup-grid>a>.v25-art-icon,.home-lookups>a>.v25-art-icon{width:52px;height:52px}.service-strip>a{min-height:120px}.deep-strip>a{min-height:64px}.family-home-copy{padding-inline:0}.family-home-panel{width:100%}.home-input-guide{overflow-x:auto;justify-content:flex-start;padding-bottom:6px}.home-input-guide>div{min-width:90px}.section-head,.result-top,.release-hero,.registry-head{align-items:flex-start;flex-direction:column;gap:10px}.profile-card{grid-template-columns:1fr}.profile-actions{flex-wrap:wrap}.pillar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.palace-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.palace{padding:10px;min-height:150px}.chat-shell{min-height:70dvh;padding:0}.chat-compose{grid-template-columns:minmax(0,1fr) auto}.msg{max-width:90%}.ai-search-modal{padding:12px 8px}.ai-search-shell{max-height:calc(100dvh - 24px);overflow-y:auto;border-radius:15px}.ai-search-shell h2{font-size:27px}.ai-result-list>a{grid-template-columns:28px minmax(0,1fr)}
 table{font-size:11px}.rule-table{min-width:680px}.btn,button,select,input{min-height:44px}footer{padding-left:var(--mobile-gutter);padding-right:var(--mobile-gutter);padding-bottom:max(22px,env(safe-area-inset-bottom))}
}
@media(max-width:420px){
 .topbar{gap:4px}.brand-logo-img{width:116px}.ai-search-open{display:none}.v25-royal-home .hero-message h1{font-size:34px!important}.pillar-grid,.palace-grid{grid-template-columns:1fr}.palace.center{grid-column:1}.quick-profile,.panel,.result-card{padding:14px}.v25-art-icon{width:50px;height:50px}.service-strip>a>.v25-art-icon,.v25-module-grid>a>.v25-art-icon{width:56px;height:56px}.chat-compose{grid-template-columns:1fr}.chat-compose button{height:44px}.brand b{font-size:11px}.brand small{display:none}}
@media(orientation:landscape) and (max-height:520px){.topbar{position:relative}.v241-mobile.show,.mobile-nav.show{top:0;max-height:100dvh}.page-hero{min-height:170px;padding-block:24px}.v25-royal-home .royal-hero{padding-block:18px}}
/* V25.10 — compact service cards on phones */
.service-strip>a>.v25-icon,.service-strip>a>i,.deep-strip>a>.v25-icon{display:none!important}
.service-strip>a{grid-template-columns:76px minmax(0,1fr);grid-template-rows:1fr;align-items:center}
.service-strip>a>.v25-art-icon{grid-column:1;grid-row:1;width:72px;height:72px;margin:0}
.service-strip>a>div{grid-column:2;grid-row:1;min-width:0;width:100%;align-self:center}
.service-strip h3,.service-strip p,.service-strip b{max-width:none;width:auto}.service-strip p{margin:0 0 10px}.service-strip b{display:inline-block}
.deep-strip>a{gap:8px}.deep-strip>a>.v25-art-icon{margin:0;flex:0 0 44px;width:44px;height:44px}
@media(max-width:767px){
 .service-strip{gap:10px!important}.service-strip>a{min-height:112px!important;height:auto;padding:14px!important;grid-template-columns:70px minmax(0,1fr)!important;gap:14px!important}.service-strip>a>.v25-art-icon{width:66px!important;height:66px!important;border-radius:17px}.service-strip h3{font-size:16px!important;line-height:1.2;margin:0 0 6px!important}.service-strip p{font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important;max-width:34ch}.service-strip b{font-size:10px!important;line-height:1.3}.deep-strip{padding:14px!important;gap:8px!important}.deep-strip h2{font-size:18px;margin:3px 0 8px}.deep-strip>a{height:auto!important;min-height:58px!important;padding:9px 10px!important;border-left:0!important;border-top:1px solid rgba(213,168,77,.18);font-size:12px!important}.deep-strip>a>.v25-art-icon{width:42px;height:42px;flex-basis:42px}}
@media(max-width:420px){.service-strip>a{grid-template-columns:62px minmax(0,1fr)!important;gap:11px!important;min-height:104px!important;padding:12px!important}.service-strip>a>.v25-art-icon{width:58px!important;height:58px!important}.service-strip h3{font-size:15px!important}.service-strip p{font-size:11px!important;line-height:1.45!important}}
/* V25.11 — unified navigation and reading journey */
.nav a.active,.nav-menu a.active,.mobile-nav a.active{color:#f1c86d!important}.nav-group.active>.nav-group-btn{color:#f1c86d;border-color:rgba(222,175,75,.38);background:rgba(222,175,75,.07)}
.v25-journey{max-width:1320px;margin:14px auto 0;padding:0 clamp(20px,5vw,70px);display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.v25-journey span{min-height:42px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.022);font-size:11px}.v25-journey span:first-child{border-color:rgba(220,173,72,.38);color:var(--text)}.v25-journey b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(215,166,66,.12);color:var(--gold2)}.v25-journey i{color:rgba(218,171,74,.48);font-style:normal}
.v25-related{max-width:1320px;margin:42px auto 70px;padding:28px clamp(20px,5vw,70px);border-top:1px solid var(--line)}.v25-related h2{font-size:clamp(28px,3vw,42px);margin:7px 0 20px}.v25-related>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.v25-related a{min-height:130px;padding:20px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,rgba(218,170,70,.055),rgba(255,255,255,.015));display:flex;flex-direction:column}.v25-related a:hover{border-color:rgba(220,173,72,.42);transform:translateY(-2px)}.v25-related b{font-size:16px;color:var(--text)}.v25-related span{margin-top:7px;color:var(--muted);font-size:11px;line-height:1.5}.v25-related em{margin-top:auto;padding-top:14px;color:var(--gold2);font-size:10px;font-style:normal;font-weight:700}
.result-content.empty{min-height:220px!important}.result-card:has(.result-content.empty){min-height:280px}.result-card,.panel,.mini-tool{background-image:radial-gradient(circle at 100% 0,rgba(218,168,67,.055),transparent 24%)}.result-card .result-top,.panel>h2,.mini-tool>h3{position:relative}.result-card .result-top:after{content:"✦";color:rgba(218,170,70,.28);font-size:17px}
.topbar #aiSearchOpenUnified{flex:0 0 auto}.topbar #langBtnUnified{flex:0 0 auto}
@media(max-width:900px){.v25-journey{padding-inline:18px;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch}.v25-journey span{flex:0 0 auto}.v25-related{padding-inline:18px}.v25-related>div:last-child{grid-template-columns:1fr 1fr}.topbar #aiSearchOpenUnified span{display:none}}
@media(max-width:620px){.v25-journey{margin-top:9px;gap:6px}.v25-journey span{min-height:38px;padding:7px 10px;font-size:10px}.v25-journey b{width:21px;height:21px}.v25-journey i{display:none}.v25-related{margin-top:28px;padding:22px 14px 44px}.v25-related>div:last-child{grid-template-columns:1fr}.v25-related a{min-height:104px}.topbar #langBtnUnified{min-width:48px}.result-content.empty{min-height:170px!important}.result-card:has(.result-content.empty){min-height:220px}}
/* V25.12 — stable header across laptop and tablet widths */
.topbar{height:72px;min-height:72px;max-height:72px;flex-wrap:nowrap!important}.topbar .brand{flex:0 0 auto}.topbar .nav-groups{min-width:0;flex:1;flex-wrap:nowrap!important;align-items:center;justify-content:center}.topbar .nav-groups>a,.topbar .nav-group,.topbar .nav-group-btn{flex:0 0 auto;white-space:nowrap}.topbar>.ai-search-open,.topbar>.lang-btn,.topbar>.icon-btn{flex:0 0 auto}.nav-menu{white-space:normal}
@media(min-width:1481px){.topbar{padding-inline:16px;gap:8px}.brand-logo-img{width:190px}.topbar .nav-groups{gap:4px}.topbar .nav a,.topbar .nav-group-btn{padding-inline:9px;font-size:10px}.topbar .family-entry{padding-inline:13px}.topbar .ai-search-open{padding-inline:9px}}
@media(max-width:1480px){
 .topbar{padding:0 14px;gap:8px}.topbar .brand{min-width:0;margin-right:auto}.brand-logo-img{width:176px;max-height:58px}.topbar .nav-groups{display:none!important}.topbar .menu-btn{display:inline-grid!important;place-items:center;order:2;margin-left:auto}.topbar>.ai-search-open{order:3}.topbar>.lang-btn{order:4}.topbar>.icon-btn{order:5}.v241-mobile.show,.mobile-nav.show{display:grid;top:72px}
}
@media(max-width:620px){.topbar{height:64px;min-height:64px;max-height:64px;padding-inline:8px;gap:5px}.brand-logo-img{width:min(138px,36vw)}.v241-mobile.show,.mobile-nav.show{top:64px}.topbar>.ai-search-open{width:36px;min-width:36px}.topbar>.lang-btn{width:48px;min-width:48px}}
@media(max-width:390px){.brand-logo-img{width:108px}.topbar>.ai-search-open{display:none}.topbar>.lang-btn{width:42px;min-width:42px}}
/* V25.13 — family intake: stable viewport origin + readable lookup cards */
html,
body,
body.v241-shell {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #050504 !important;
}
body > .topbar {
  top: 0 !important;
  margin: 0 !important;
  translate: none !important;
}
.family-lookup-section .lookup-grid > a {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 14px !important;
  row-gap: 5px !important;
  align-content: center !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 142px !important;
  padding: 18px !important;
}
.family-lookup-section .lookup-grid > a > .v25-art-icon {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
}
.family-lookup-section .lookup-grid > a > .v25-icon,
.family-lookup-section .lookup-grid > a > span { display: none !important; }
.family-lookup-section .lookup-grid > a > b,
.family-lookup-section .lookup-grid > a > small {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  text-align: left !important;
}
.family-lookup-section .lookup-grid > a > b {
  grid-row: 1 !important;
  align-self: end !important;
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.22 !important;
}
.family-lookup-section .lookup-grid > a > small {
  grid-row: 2 !important;
  align-self: start !important;
  display: block !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
@media (max-width: 1100px) and (min-width: 768px) {
  .family-lookup-section .lookup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  html, body, body.v241-shell {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }
  .family-lookup-section .lookup-grid > a {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    min-height: 112px !important;
    padding: 14px !important;
  }
  .family-lookup-section .lookup-grid > a > .v25-art-icon {
    width: 54px !important;
    height: 54px !important;
  }
  .family-lookup-section .lookup-grid > a > b { font-size: 15px !important; }
}

/* V25.14 — reliable mobile menu + huyền tượng image libraries */
.topbar .menu-btn{position:relative;z-index:110;pointer-events:auto;touch-action:manipulation}
.mobile-nav.show,.mobile-nav.open,.v241-mobile.show,.v241-mobile.open{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.v25-home-symbols,.v25-symbol-group{margin:24px 30px 36px;padding:26px;border:1px solid rgba(218,170,70,.28);border-radius:18px;background:linear-gradient(145deg,rgba(31,20,10,.9),rgba(8,8,7,.96));box-shadow:0 18px 48px rgba(0,0,0,.28)}
.v25-symbol-group{margin:28px clamp(18px,4vw,56px)}
.v25-symbol-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.v25-symbol-head span{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.14em}
.v25-symbol-head h2{margin:7px 0 4px;font:500 clamp(27px,3vw,42px)/1.08 Cambria,Georgia,serif;color:var(--text)}
.v25-symbol-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.v25-symbol-head>a{flex:0 0 auto;color:var(--gold2);font-size:11px;font-weight:800}
.v25-symbol-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.v25-symbol-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.v25-card-library .v25-symbol-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
.v25-symbol-tile{min-width:0;margin:0;padding:9px;border:1px solid rgba(218,170,70,.2);border-radius:14px;background:radial-gradient(circle at 50% 15%,rgba(214,158,52,.08),transparent 58%),#090907;transition:transform .2s,border-color .2s}
.v25-symbol-tile:hover{transform:translateY(-4px);border-color:rgba(235,190,92,.55)}
.v25-symbol-tile img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:10px;filter:drop-shadow(0 8px 13px rgba(0,0,0,.5))}
.v25-symbol-tile figcaption{padding:8px 3px 2px;text-align:center;color:#e6c477;font:700 10px/1.3 Cambria,Georgia,serif}
@media(max-width:1100px){.v25-symbol-preview,.v25-symbol-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.v25-card-library .v25-symbol-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.v25-home-symbols,.v25-symbol-group{margin:16px 10px 26px;padding:16px}.v25-symbol-head{align-items:flex-start;flex-direction:column}.v25-symbol-preview,.v25-symbol-grid,.v25-card-library .v25-symbol-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v25-symbol-tile{padding:7px}.v25-symbol-tile figcaption{font-size:10px}}

/* V25.15 — compact header without horizontal spill */
html,body{width:100%;max-width:100%;overflow-x:hidden;background:#050504!important}
.topbar{width:100%;max-width:100vw;box-sizing:border-box;overflow:visible}
@media(max-width:1480px){
  .topbar #aiSearchOpenUnified span{display:none!important}
  .topbar #aiSearchOpenUnified{width:38px!important;min-width:38px!important;padding:0!important;justify-content:center!important;overflow:hidden!important}
  .topbar .brand{max-width:min(190px,32vw);overflow:hidden}
  .topbar .brand-logo-img{max-width:100%;object-fit:contain}
}
@media(max-width:700px){
  .topbar{padding-inline:8px!important;gap:6px!important}
  .topbar .brand{flex:1 1 auto!important;min-width:0!important;max-width:none!important}
  .topbar .brand-logo-img{width:min(138px,38vw)!important;max-width:100%!important}
  .topbar #aiSearchOpenUnified{display:none!important}
  .topbar #langBtnUnified{width:42px!important;min-width:42px!important;padding:0!important;overflow:hidden!important}
  .topbar #themeBtn,.topbar #menuBtn{width:38px!important;min-width:38px!important}
  #mobileNav.mobile-nav,#mobileNav.v241-mobile{box-sizing:border-box!important;width:auto!important;max-width:none!important;left:0!important;right:0!important;margin:0!important;border-radius:0 0 16px 16px!important;z-index:1000!important}
  #mobileNav.show,#mobileNav.open{display:grid!important;grid-template-columns:1fr!important;top:64px!important;max-height:calc(100dvh - 64px)!important}
}
@media(max-width:420px){
  .topbar #langBtnUnified{display:none!important}
  .topbar .brand-logo-img{width:min(130px,48vw)!important}
}

/* V25.16 — responsive navigation panel for compact desktop, tablet and phone */
@media (min-width:701px) and (max-width:1480px){
  #mobileNav.v241-mobile.show,#mobileNav.v241-mobile.open,#mobileNav.mobile-nav.show,#mobileNav.mobile-nav.open{
    display:grid!important;position:fixed!important;z-index:1000!important;top:72px!important;left:14px!important;right:14px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 86px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:16px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;border:1px solid rgba(208,157,48,.38)!important;border-radius:0 0 18px 18px!important;background:rgba(5,5,4,.985)!important;box-shadow:0 28px 70px rgba(0,0,0,.72)!important
  }
  #mobileNav>.mobile-family-entry,#mobileNav>a:first-child{display:flex!important;align-items:center!important;min-height:42px!important;padding:10px 14px!important;border:1px solid rgba(208,157,48,.25)!important;border-radius:10px!important;background:linear-gradient(135deg,rgba(226,185,93,.16),rgba(255,255,255,.025))!important;color:#f1d58c!important;font-weight:800!important}
  #mobileNav>.mobile-family-entry{grid-column:2/-1!important;background:linear-gradient(100deg,#f1d894,#c89a3c)!important;color:#171108!important}
  #mobileNav .m-group{display:grid!important;grid-template-columns:1fr!important;align-content:start!important;gap:5px!important;min-width:0!important;padding:13px!important;border:1px solid rgba(208,157,48,.22)!important;border-radius:12px!important;background:linear-gradient(145deg,rgba(27,22,15,.96),rgba(10,10,9,.98))!important}
  #mobileNav .m-group b{display:block!important;margin:0 0 5px!important;padding-bottom:8px!important;border-bottom:1px solid rgba(208,157,48,.2)!important;color:#e7bd5c!important;font-size:12px!important;letter-spacing:.04em!important}
  #mobileNav .m-group a{display:flex!important;align-items:center!important;min-width:0!important;min-height:36px!important;padding:7px 9px!important;border:0!important;border-radius:8px!important;background:rgba(255,255,255,.025)!important;color:#eee7dc!important;font-size:11px!important;line-height:1.25!important;white-space:normal!important}
  #mobileNav .m-group a:hover,#mobileNav .m-group a:focus-visible{background:rgba(216,169,65,.13)!important;color:#f5d98e!important}
}
@media (min-width:701px) and (max-width:980px){
  #mobileNav.v241-mobile.show,#mobileNav.v241-mobile.open,#mobileNav.mobile-nav.show,#mobileNav.mobile-nav.open{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #mobileNav>.mobile-family-entry{grid-column:auto!important}
}
@media (max-width:700px){
  #mobileNav.v241-mobile.show,#mobileNav.v241-mobile.open,#mobileNav.mobile-nav.show,#mobileNav.mobile-nav.open{display:grid!important;position:fixed!important;top:64px!important;left:0!important;right:0!important;width:auto!important;max-height:calc(100dvh - 64px)!important;overflow-y:auto!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px 10px calc(18px + env(safe-area-inset-bottom))!important;background:rgba(5,5,4,.99)!important}
  #mobileNav .m-group{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;padding:11px!important;border:1px solid rgba(208,157,48,.22)!important;border-radius:11px!important;background:rgba(18,15,11,.98)!important}
  #mobileNav .m-group b{padding:4px 5px 8px!important;color:#e7bd5c!important;font-size:12px!important;border-bottom:1px solid rgba(208,157,48,.18)!important}
  #mobileNav .m-group a,#mobileNav>a{display:flex!important;align-items:center!important;min-height:42px!important;padding:9px 10px!important;border-radius:8px!important;color:#eee7dc!important;background:rgba(255,255,255,.025)!important;white-space:normal!important}
  #mobileNav>.mobile-family-entry{background:linear-gradient(100deg,#f1d894,#c89a3c)!important;color:#171108!important;font-weight:900!important}
}

/* V25.17 — compact mobile controls and calm introductory typography */
.v25-royal-home .hero-message h1>span,.v25-royal-home .hero-message h1>em{display:block!important}
.v25-royal-home .hero-message h1>span{color:#f3eee5}
.v25-royal-home .hero-message h1>em{margin-top:.08em;color:#ddb04f}
.v25-royal-home .hero-message>small{display:block;max-width:48ch;line-height:1.5}
@media(max-width:700px){
  .topbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;height:64px!important;min-height:64px!important;max-height:64px!important;padding:0 8px!important;gap:6px!important;overflow:hidden!important}
  .topbar>.brand{display:flex!important;flex:0 1 auto!important;min-width:0!important;max-width:calc(100% - 88px)!important;margin:0!important;overflow:hidden!important}
  .topbar>.menu-btn{display:inline-grid!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;margin-left:auto!important;order:20!important}
  .topbar>.icon-btn{display:inline-grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;margin:0!important;order:21!important}
  .topbar>.lang-btn,.topbar>#langBtn,.topbar>#langBtnUnified,.topbar>.ai-search-open{display:none!important}
  .v25-royal-home main{padding:8px!important}
  .v25-royal-home .royal-hero{padding:24px 14px 28px!important;background-position:30% center!important}
  .v25-royal-home .hero-message{text-align:left!important;padding:0!important}
  .v25-royal-home .hero-message>small{font-size:10px!important;letter-spacing:.1em!important;max-width:34ch!important}
  .v25-royal-home .hero-message h1{margin:12px 0 16px!important;max-width:12ch!important;font-size:clamp(38px,11vw,50px)!important;line-height:1.06!important;letter-spacing:-.045em!important}
  .v25-royal-home .hero-message h1>em{margin-top:.12em!important}
  .v25-royal-home .hero-message>p{max-width:42ch!important;font-size:14px!important;line-height:1.65!important;color:#ddd2c4!important}
}
@media(max-width:420px){
  .v25-royal-home .hero-message h1{font-size:38px!important;max-width:11ch!important}
  .v25-royal-home .hero-message>p{font-size:13px!important}
}

/* V25.18 — one clear action, reader-centered interpretation */
.topbar{display:flex!important;grid-template-columns:none!important}
.soul-insights{margin:26px 0;padding:clamp(24px,4vw,48px);border:1px solid rgba(213,168,77,.32);border-radius:18px;background:radial-gradient(circle at 88% 8%,rgba(138,27,24,.22),transparent 27%),linear-gradient(145deg,#120d09,#080807 62%);position:relative;overflow:hidden}
.soul-insights::after{content:"☾";position:absolute;right:4%;top:-5%;font:180px/1 Georgia;color:rgba(218,173,76,.045);pointer-events:none}
.soul-insights-head{max-width:820px;position:relative;z-index:1}.soul-insights-head small{color:#c89a43;font:750 10px/1.4 var(--font-ui);letter-spacing:.16em}.soul-insights-head h2{margin:12px 0 14px;font:700 clamp(32px,4vw,54px)/1.04 var(--font-display);letter-spacing:-.045em;color:#f3eee5}.soul-insights-head h2 em{display:inline;color:#ddb04f;font-style:normal}.soul-insights-head>p{max-width:720px;margin:0;color:#c9bfb1;font:400 15px/1.75 var(--font-ui)}
.soul-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:30px;position:relative;z-index:1}.soul-insight-grid article{min-width:0;min-height:176px;padding:20px;border:1px solid rgba(213,168,77,.2);border-radius:13px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));transition:transform .2s,border-color .2s,background .2s}.soul-insight-grid article:hover{transform:translateY(-3px);border-color:rgba(225,183,88,.46);background:rgba(213,168,77,.055)}.soul-insight-grid article>span{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(218,174,78,.4);border-radius:50%;color:#d9aa4b;font:700 10px var(--font-ui)}.soul-insight-grid h3{margin:14px 0 8px;color:#f0e8dc;font:700 18px/1.25 var(--font-display)!important;letter-spacing:-.02em}.soul-insight-grid p{margin:0;color:#bcb1a4;font:400 12px/1.65 var(--font-ui)}
.soul-insights-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding-top:20px;border-top:1px solid rgba(213,168,77,.2);position:relative;z-index:1}.soul-insights-foot b,.soul-insights-foot span{display:block}.soul-insights-foot b{color:#e7c16e;font:700 15px var(--font-display)}.soul-insights-foot span{margin-top:4px;color:#9f9589;font:11px/1.5 var(--font-ui)}.soul-insights-foot a{flex:0 0 auto;min-height:44px;padding:0 18px;border:1px solid rgba(220,175,77,.46);border-radius:8px;display:flex;align-items:center;color:#e4bd65;background:rgba(213,168,77,.06);font:750 11px var(--font-ui)}
@media(max-width:980px){.soul-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.topbar{display:flex!important}.soul-insights{margin:18px 0;padding:22px 16px}.soul-insights-head h2{font-size:34px;line-height:1.08}.soul-insights-head h2 br{display:none}.soul-insights-head>p{font-size:13px}.soul-insight-grid{grid-template-columns:1fr;gap:9px;margin-top:22px}.soul-insight-grid article{min-height:0;padding:17px}.soul-insight-grid h3{font-size:17px}.soul-insight-grid p{font-size:12px}.soul-insights-foot{align-items:stretch;flex-direction:column}.soul-insights-foot a{justify-content:center;width:100%}}

/* =========================================================
   V25.19 UI STABILITY — one font system, one mobile shell
   ========================================================= */
:root{--font-ui:"Segoe UI",Arial,sans-serif;--font-display:Cambria,Georgia,"Times New Roman",serif;--tap:44px}
html{font-family:var(--font-ui);text-size-adjust:100%;-webkit-text-size-adjust:100%;scrollbar-gutter:stable}
body,button,input,select,textarea{font-family:var(--font-ui)}
h1,h2,h3,.brand b,.hero-message h1,.family-home h1,.page-hero h1{font-family:var(--font-display)}
img,svg,video,canvas{max-width:100%;height:auto}
button,a,input,select,textarea{box-sizing:border-box}button,a{touch-action:manipulation}
.topbar{width:100%;max-width:100vw;box-sizing:border-box}.topbar .brand{min-width:0}.topbar .brand-logo-img{display:block;object-fit:contain}
.menu-btn,.icon-btn,.lang-btn,.ai-search-open{min-width:var(--tap);min-height:var(--tap)}
.mobile-nav{visibility:hidden;pointer-events:none}.mobile-nav.show,.mobile-nav.open{visibility:visible;pointer-events:auto}body.nav-open{overflow:hidden}
.nav-group-btn:focus-visible,.menu-btn:focus-visible,.icon-btn:focus-visible,.lang-btn:focus-visible,.ai-search-open:focus-visible,.mobile-nav a:focus-visible{outline:2px solid #e3bd62;outline-offset:2px}
@media (max-width:1480px){.topbar>.nav{display:none!important}.topbar>.menu-btn{display:inline-grid!important}}
@media (max-width:700px){
html,body{max-width:100%;overflow-x:hidden}body.nav-open{position:fixed;width:100%;inset-inline:0}
.topbar{position:sticky!important;top:0;z-index:1100!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;height:64px!important;min-height:64px!important;max-height:64px!important;padding:6px 8px!important;gap:6px!important;overflow:visible!important;background:rgba(5,5,4,.98)!important;border-bottom:1px solid rgba(213,168,77,.22)!important}
.topbar>.brand{grid-column:1;display:flex!important;width:auto!important;max-width:100%!important;height:52px!important;overflow:hidden!important}.topbar>.brand .brand-logo-img{width:min(172px,52vw)!important;height:52px!important;max-width:100%!important}
.topbar>.menu-btn{grid-column:2;order:initial!important;margin:0!important;width:44px!important;height:44px!important;min-width:44px!important}.topbar>.icon-btn{grid-column:3;order:initial!important;margin:0!important;width:44px!important;height:44px!important;min-width:44px!important}.topbar>.nav,.topbar>.lang-btn,.topbar>.ai-search-open{display:none!important}
#mobileNav.mobile-nav,#mobileNav.v241-mobile{display:none!important;visibility:hidden!important;pointer-events:none!important;position:fixed!important;inset:64px 0 0!important;width:100%!important;height:calc(100dvh - 64px)!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:12px 12px calc(24px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;grid-template-columns:1fr!important;align-content:start!important;gap:8px!important;border:0!important;border-radius:0!important;background:#070706!important;box-shadow:none!important;z-index:1090!important}
#mobileNav.show,#mobileNav.open{display:grid!important;visibility:visible!important;pointer-events:auto!important}#mobileNav>a,#mobileNav .m-group{width:100%!important;min-width:0!important}#mobileNav>a{min-height:46px!important;padding:12px 14px!important;white-space:normal!important}
#mobileNav .m-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:10px!important}#mobileNav .m-group b{grid-column:1/-1!important;font:700 12px/1.35 var(--font-ui)!important}#mobileNav .m-group a{min-width:0!important;min-height:42px!important;padding:10px!important;font:600 12px/1.35 var(--font-ui)!important;overflow-wrap:anywhere!important}
main,.section,.app-section,.family-intake-main,.v25-royal-home main{width:100%!important;max-width:100%!important;box-sizing:border-box!important}.section,.app-section{padding-inline:14px!important}.family-home,.royal-hero,.tool-layout,.ai-layout,.triple-grid,.family-intake-grid{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}.family-home{padding:26px 14px 34px!important;gap:20px!important}
.family-home h1,.family-intake-head h1,.page-hero h1{font-size:clamp(34px,10vw,46px)!important;line-height:1.06!important;letter-spacing:-.035em!important;overflow-wrap:normal!important;word-break:normal!important}.family-home p,.page-hero p,.hero-message>p{font-size:14px!important;line-height:1.65!important}
.family-home-panel,.panel,.card,.quick-profile{min-width:0!important;width:100%!important;box-sizing:border-box!important;padding:18px!important}.hero-actions,.royal-actions,.family-save-row,.family-head-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important}.hero-actions .btn,.royal-actions .royal-btn,.family-save-row .btn,.family-head-actions .btn{width:100%!important;min-height:48px!important;justify-content:center!important;white-space:normal!important;text-align:center!important}
.lookup-grid,.home-lookups,.service-strip,.v25-module-grid,.v25-focus-grid{grid-template-columns:1fr!important}.lookup-grid>a,.home-lookups>a,.service-strip>a{min-width:0!important;width:100%!important;min-height:112px!important}.lookup-grid>a b,.service-strip h3{overflow-wrap:normal!important;word-break:normal!important}.quick-grid,.family-form-grid,.input-checklist{grid-template-columns:1fr!important}input,select,textarea{max-width:100%!important;min-width:0!important;font-size:16px!important}footer{padding-bottom:calc(22px + env(safe-area-inset-bottom))!important}}
@media (max-width:390px){.topbar{grid-template-columns:minmax(0,1fr) 42px 42px!important;padding-inline:6px!important}.topbar>.brand .brand-logo-img{width:min(148px,48vw)!important}#mobileNav .m-group{grid-template-columns:1fr!important}.family-home h1,.family-intake-head h1,.page-hero h1{font-size:34px!important}}
@media (min-width:701px) and (max-width:1100px){.family-home,.royal-hero,.family-intake-grid,.tool-layout,.ai-layout{grid-template-columns:1fr!important}.lookup-grid,.home-lookups,.service-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V25.20 DELIVERY PERFORMANCE — mobile-first rendering and lighter paint */
@media (max-width:1100px),(hover:none) and (pointer:coarse){body{background-attachment:scroll!important}}
@supports (content-visibility:auto){.service-strip,.deep-strip,.soul-insights,.esoteric-depth,.v25-home-symbols,.v25-symbol-group,footer{content-visibility:auto;contain-intrinsic-size:auto 560px}}
@media (max-width:700px){
.v25-royal-home .royal-hero{min-height:0!important;display:grid!important;grid-template-columns:1fr!important;gap:18px!important}
.v25-royal-home .astro-visual{display:none!important}
.v25-royal-home .quick-profile{padding:16px!important;border-radius:13px!important}
.v25-royal-home .quick-profile h2{font-size:16px!important}
.service-strip>a{grid-template-columns:62px minmax(0,1fr)!important;min-height:104px!important;padding:14px!important;gap:12px!important}
.service-strip i{width:56px!important;height:56px!important;font-size:22px!important}
.deep-strip{margin-top:16px!important;gap:0!important}.deep-strip a{height:auto!important;min-height:50px!important;padding:14px 8px!important;border-left:0!important;border-top:1px solid rgba(213,168,77,.2)!important}
}

/* Homepage first-choice flow: primary divination paths before secondary tools */
.home-first-choice{max-width:1440px;margin:22px auto 18px;padding:clamp(20px,3vw,38px);border:1px solid #8a641f;border-radius:24px;background:radial-gradient(circle at 12% 0,#6e3d192b,transparent 38%),linear-gradient(145deg,#110d08f5,#05070af8);box-shadow:0 22px 60px #0008,inset 0 0 42px #8c5a1514}.home-choice-head{text-align:center;margin-bottom:24px}.home-choice-head>span{color:#e7b94f;font-size:12px;font-weight:800;letter-spacing:.2em}.home-choice-head h1{margin:8px 0 6px;color:#fff2cf;font-family:"Playfair Display",serif;font-size:clamp(30px,4vw,52px);line-height:1.05}.home-choice-head p{margin:0;color:#cbbda4}.home-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.home-choice{min-height:172px;padding:20px;border:1px solid #675025;border-radius:18px;color:#fff5d9;text-decoration:none;background:linear-gradient(145deg,#17120d,#090b0f);display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:14px;transition:.2s ease}.home-choice:hover{transform:translateY(-3px);border-color:#e3b345;box-shadow:0 14px 28px #0009}.home-choice.oracle{border-color:#e2af38;background:radial-gradient(circle at 20% 15%,#872c542f,transparent 42%),linear-gradient(145deg,#421020,#170911);box-shadow:inset 0 0 30px #b44f2729,0 0 26px #c68a2220}.home-choice-icon{width:58px;height:58px;border:1px solid #a97c28;border-radius:50%;display:grid;place-items:center;color:#f7cf68;font:700 27px/1 serif}.home-choice b{display:block;margin:4px 0 8px;font-size:18px;color:#ffe6a2}.home-choice small{display:block;color:#cfc1a8;line-height:1.5}.home-choice em{grid-column:1/-1;color:#e8b847;font-size:12px;font-style:normal;font-weight:800;letter-spacing:.08em}.home-choice.oracle em{color:#ffe18a}.home-depth-last{max-width:1440px;margin:18px auto 28px}.home-lookups a[href="thien-co-hom-nay.html"]{border-color:#e3b345}@media(max-width:1050px){.home-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.home-first-choice{margin:10px 12px 14px;padding:20px 14px;border-radius:18px}.home-choice-head{text-align:left}.home-choice-grid{grid-template-columns:1fr}.home-choice{min-height:128px;padding:16px;grid-template-columns:52px 1fr}.home-choice-icon{width:48px;height:48px;font-size:23px}.home-choice b{font-size:17px}.home-choice.oracle{order:-1}}
/* Homepage oracle gateway v25.22 */
.home-oracle-gateway{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(420px,1.22fr);align-items:center;gap:clamp(18px,4vw,58px);overflow:hidden;background:radial-gradient(circle at 72% 46%,#7c28ad45,transparent 34%),linear-gradient(135deg,#080811 18%,#11071b 72%,#08070c)}
.home-oracle-copy{padding-left:clamp(2px,2vw,24px);position:relative;z-index:2}
.home-oracle-copy>span{display:block;color:#f1c65d;font-size:12px;font-weight:900;letter-spacing:.2em}
.home-oracle-copy h1{margin:12px 0 12px;color:#fff0c5;font-family:"Playfair Display",serif;font-size:clamp(38px,5.2vw,76px);line-height:.96;letter-spacing:-.025em;text-shadow:0 4px 22px #b9602755}
.home-oracle-copy h1 em{color:#e0aa3b;font-style:normal}
.home-oracle-copy p{max-width:520px;margin:0 0 22px;color:#e1d6c4;font-size:15px;line-height:1.65}
.home-oracle-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border:1px solid #edbd50;border-radius:12px;color:#fff0bc;text-decoration:none;font-weight:900;letter-spacing:.08em;background:linear-gradient(180deg,#9b1747,#620a2b);box-shadow:inset 0 0 0 3px #3f071c,0 0 24px #d5983840}
.home-oracle-wheel{position:relative;width:min(46vw,620px);aspect-ratio:1;justify-self:center;display:grid;place-items:center;text-decoration:none;filter:drop-shadow(0 0 26px #8928b877)}
.home-oracle-wheel:before{content:"";position:absolute;inset:10%;border:1px solid #efbd5988;border-radius:50%;box-shadow:0 0 38px #8329b8,0 0 80px #d98f3055;animation:homeOraclePulse 3.5s ease-in-out infinite}
.home-oracle-wheel img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .35s ease;animation:homeOracleFloat 5s ease-in-out infinite}
.home-oracle-wheel:hover img{transform:scale(1.035) rotate(2deg)}
.home-oracle-wheel span{position:absolute;bottom:5%;z-index:2;padding:9px 16px;border:1px solid #ba8733;border-radius:999px;color:#ffe6a0;background:#08070dd9;font-size:11px;font-weight:900;letter-spacing:.1em;box-shadow:0 8px 28px #000b}
.home-secondary-choices{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:-4px}
.home-secondary-choices .home-choice{min-height:116px;grid-template-columns:48px 1fr;padding:15px 18px}
.home-secondary-choices .home-choice-icon{width:46px;height:46px;font-size:21px}
@keyframes homeOracleFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes homeOraclePulse{50%{transform:scale(1.025);opacity:.7}}
@media(max-width:900px){.home-oracle-gateway{grid-template-columns:1fr;text-align:center}.home-oracle-copy{padding:8px 6px 0}.home-oracle-copy p{margin-inline:auto}.home-oracle-wheel{grid-row:1;width:min(78vw,540px)}.home-oracle-copy{grid-row:2}.home-secondary-choices{grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));text-align:left}}
@media(max-width:620px){.home-oracle-gateway{padding-top:12px}.home-oracle-wheel{width:min(92vw,390px)}.home-oracle-wheel span{bottom:1%;font-size:9px}.home-oracle-copy h1{font-size:clamp(38px,12vw,56px)}.home-oracle-copy p{font-size:13px}.home-oracle-button{width:100%}.home-secondary-choices{grid-template-columns:1fr}.home-secondary-choices .home-choice{min-height:96px}}
@media(prefers-reduced-motion:reduce){.home-oracle-wheel img,.home-oracle-wheel:before{animation:none}}
/* Homepage oracle placed in the primary hero — v25.23 */
.home-oracle-inline{position:relative;z-index:2;min-height:auto;padding-block:clamp(28px,4vh,52px);align-items:center;overflow:visible}
.oracle-home-copy{display:grid;grid-template-columns:minmax(230px,.72fr) minmax(280px,1fr);grid-template-areas:"eyebrow wheel" "title wheel" "desc wheel" "button wheel";column-gap:clamp(14px,2.5vw,38px);align-items:center;min-width:0}
.oracle-home-copy>.eyebrow{grid-area:eyebrow;align-self:end}
.oracle-home-copy>h1{grid-area:title;font-size:clamp(40px,4.6vw,70px);margin:10px 0 14px}
.oracle-home-copy>p{grid-area:desc;margin:0 0 18px}
.oracle-home-copy>.home-oracle-button{grid-area:button;justify-self:start}
.inline-oracle-wheel{grid-area:wheel;position:relative;width:min(37vw,520px);aspect-ratio:1;display:grid;place-items:center;justify-self:center;text-decoration:none;filter:drop-shadow(0 0 24px #842da377);isolation:isolate}
.inline-oracle-wheel::before{content:"";position:absolute;inset:12%;z-index:-1;border-radius:50%;box-shadow:0 0 42px #8f36b7,0 0 88px #b9783555}
.inline-oracle-wheel img{display:block;width:100%;height:100%;object-fit:contain;animation:homeOracleFloat 5s ease-in-out infinite}
.inline-oracle-wheel span{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);width:max-content;max-width:90%;padding:8px 14px;border:1px solid #ba8733;border-radius:999px;background:#08070de8;color:#ffe39a;font-size:10px;font-weight:900;letter-spacing:.08em;text-align:center}
.home-oracle-inline>.family-home-panel{position:relative;z-index:3}
@media(max-width:1100px){.oracle-home-copy{grid-template-columns:1fr;grid-template-areas:"eyebrow" "title" "desc" "wheel" "button"}.inline-oracle-wheel{width:min(72vw,480px);margin:-8px auto 0}.oracle-home-copy>.home-oracle-button{justify-self:stretch}.home-oracle-inline{grid-template-columns:1fr!important}}
@media(max-width:620px){.home-oracle-inline{padding-top:18px!important}.oracle-home-copy{text-align:center}.oracle-home-copy>h1{font-size:clamp(38px,11vw,48px)!important}.oracle-home-copy>p{margin-inline:auto!important}.inline-oracle-wheel{width:min(88vw,360px)}.inline-oracle-wheel span{font-size:9px;bottom:1%}}
/* Live oracle in homepage primary hero — v25.24 */
.v25-royal-home .royal-hero .homepage-oracle-live{display:grid;justify-items:center;align-content:center;text-align:center;min-width:0;padding:14px 12px 18px;position:relative;z-index:2}
.v25-royal-home .homepage-oracle-live small{color:#e9bd55;letter-spacing:.18em;font-weight:800}
.v25-royal-home .homepage-oracle-live h1{margin:8px 0 6px;font-size:clamp(32px,3.5vw,54px);line-height:1.02;max-width:620px}
.v25-royal-home .homepage-oracle-live h1 span,.v25-royal-home .homepage-oracle-live h1 em{display:block}
.v25-royal-home .homepage-oracle-live h1 em{color:#d8a83f;font-style:normal}
.v25-royal-home .homepage-oracle-live p{margin:0 0 8px;max-width:560px}
.v25-royal-home .live-oracle-wheel{position:relative;display:block;width:min(29vw,390px);aspect-ratio:1;margin:0 auto;text-decoration:none;filter:drop-shadow(0 0 24px rgba(159,63,255,.35));transition:transform .28s ease,filter .28s ease}
.v25-royal-home .live-oracle-wheel:hover{transform:scale(1.025);filter:drop-shadow(0 0 34px rgba(207,110,255,.55))}
.v25-royal-home .live-oracle-wheel img{display:block;width:100%;height:100%;object-fit:contain;animation:homeOracleBreath 4.5s ease-in-out infinite}
.v25-royal-home .live-oracle-wheel strong{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);white-space:nowrap;padding:9px 16px;border:1px solid rgba(242,194,86,.78);border-radius:999px;color:#fff2c4;background:rgba(15,7,25,.88);box-shadow:0 8px 22px rgba(0,0,0,.4);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
@keyframes homeOracleBreath{0%,100%{transform:scale(.985)}50%{transform:scale(1.015)}}
@media(max-width:900px){.v25-royal-home .live-oracle-wheel{width:min(72vw,380px)}.v25-royal-home .homepage-oracle-live h1{font-size:clamp(34px,7vw,50px)}}
@media(max-width:620px){.v25-royal-home .royal-hero .homepage-oracle-live{padding:18px 8px}.v25-royal-home .live-oracle-wheel{width:min(82vw,330px)}.v25-royal-home .homepage-oracle-live h1{font-size:clamp(31px,10vw,43px)}.v25-royal-home .live-oracle-wheel strong{font-size:10px;padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.v25-royal-home .live-oracle-wheel img{animation:none}}
/* Align homepage oracle centre with the marked focal point — v25.25 */
@media (min-width:981px){
  .v25-royal-home .homepage-oracle-live .live-oracle-wheel{
    left:-30px;
    top:-140px;
    margin-bottom:-140px;
  }
}
/* Restore full oracle atmosphere — v25.26 */
.v25-royal-home .home-wheel-stage{position:relative;width:min(29vw,390px);aspect-ratio:1;display:grid;place-items:center;margin-inline:auto;isolation:isolate}
.v25-royal-home .home-wheel-stage::before,.v25-royal-home .home-wheel-stage::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.v25-royal-home .home-wheel-stage::before{z-index:0;inset:11.75%;border:1px solid rgba(244,189,85,.72);box-shadow:0 0 34px #8a2bca,0 0 90px rgba(225,144,44,.42);animation:homeOracleHalo 3.8s ease-in-out infinite}
.v25-royal-home .home-wheel-stage::after{z-index:0;inset:3.25%;background:conic-gradient(transparent,rgba(248,203,95,.18),transparent 18%,rgba(166,60,255,.2),transparent 36%,rgba(248,203,95,.18),transparent 54%);filter:blur(10px);animation:homeOracleSpin 18s linear infinite reverse}
.v25-royal-home .home-wheel-stage .live-oracle-wheel{position:relative;z-index:2;left:0;top:0;width:100%;height:100%;margin:0;filter:none;display:grid;place-items:center}
.v25-royal-home .home-wheel-stage .live-oracle-wheel img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 10px #ffd877) drop-shadow(0 0 28px rgba(154,50,220,.55));animation:homeOracleFloatFull 5s ease-in-out infinite}
.v25-royal-home .home-wheel-sheen{position:absolute;z-index:3;inset:12%;border-radius:50%;background:conic-gradient(from 10deg,transparent 0 12%,rgba(255,226,151,.2) 15%,transparent 19% 43%,rgba(191,85,255,.2) 47%,transparent 52% 78%,rgba(255,210,97,.16) 82%,transparent 87%);mix-blend-mode:screen;pointer-events:none;animation:homeOracleSpin 9s linear infinite reverse}
.v25-royal-home .home-oracle-actions{display:grid;justify-items:center;gap:10px;margin-top:8px;position:relative;z-index:4}
.v25-royal-home .home-oracle-cta{min-width:220px;min-height:58px;padding:12px 34px;display:flex;align-items:center;justify-content:center;border:2px solid #d89531;border-radius:12px;background:linear-gradient(180deg,#a9164a,#760b31);box-shadow:inset 0 0 0 3px rgba(255,213,106,.15),0 0 22px rgba(223,139,42,.3);color:#ffe6a4;font-family:Georgia,"Times New Roman",serif;font-size:clamp(22px,2vw,29px);font-weight:800;line-height:1;text-transform:uppercase;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,filter .25s ease}
.v25-royal-home .home-oracle-cta:hover{transform:translateY(-2px);filter:brightness(1.1);box-shadow:inset 0 0 0 3px rgba(255,213,106,.22),0 0 30px rgba(223,139,42,.5)}
.v25-royal-home .home-oracle-gate{width:min(100%,320px);min-height:62px;padding:10px 15px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:15px;align-items:center;border:1px solid rgba(213,157,43,.72);border-radius:14px;background:rgba(3,8,18,.86);box-shadow:inset 0 0 18px rgba(133,72,175,.09);color:#fff1c8}
.v25-royal-home .home-oracle-gate span{grid-row:1/3;color:#b7a584;font-size:12px;white-space:nowrap}
.v25-royal-home .home-oracle-gate b{font-size:14px;line-height:1.2;white-space:nowrap}
.v25-royal-home .home-oracle-gate small{color:#f0bd38;font-size:12px;font-weight:800;letter-spacing:.05em}
@keyframes homeOracleSpin{to{transform:rotate(360deg)}}
@keyframes homeOracleHalo{0%,100%{transform:scale(.98);opacity:.52}50%{transform:scale(1.035);opacity:.9}}
@keyframes homeOracleFloatFull{0%,100%{transform:translateY(0) scale(.985)}50%{transform:translateY(-7px) scale(1.015)}}
@media (min-width:981px){.v25-royal-home .homepage-oracle-live .home-wheel-stage{left:-30px;top:-140px;margin-bottom:-140px}.v25-royal-home .homepage-oracle-live .live-oracle-wheel{left:0;top:0;margin-bottom:0}.v25-royal-home .homepage-oracle-live .home-oracle-actions{margin-top:14px}}
@media (max-width:900px){.v25-royal-home .home-wheel-stage{width:min(72vw,380px)}}
@media (max-width:620px){.v25-royal-home .home-wheel-stage{width:min(82vw,330px)}.v25-royal-home .home-oracle-actions{width:100%}.v25-royal-home .home-oracle-cta,.v25-royal-home .home-oracle-gate{width:100%;max-width:330px}.v25-royal-home .home-oracle-gate b{white-space:normal}}
@media (prefers-reduced-motion:reduce){.v25-royal-home .home-wheel-stage::before,.v25-royal-home .home-wheel-stage::after,.v25-royal-home .home-wheel-stage .live-oracle-wheel img,.v25-royal-home .home-wheel-sheen{animation:none}}
/* V25.30 - HUYEN CO SIGNATURE SYSTEM / Sites refresh */
:root{--sig-bg:#05070a;--sig-panel:rgba(12,12,14,.92);--sig-panel-2:rgba(20,16,13,.89);--sig-ivory:#fff7e7;--sig-text:#f2eadb;--sig-muted:#bcb09d;--sig-gold:#d9a83e;--sig-gold-bright:#f4d37c;--sig-ruby:#85123a;--sig-line:rgba(218,168,62,.38);--sig-radius:18px;--sig-shadow:0 22px 65px rgba(0,0,0,.42),inset 0 1px rgba(255,237,190,.04)}
html{scroll-behavior:smooth;background:var(--sig-bg)}
body{color:var(--sig-text)!important;background-color:var(--sig-bg)!important;background-image:linear-gradient(rgba(4,6,9,.91),rgba(4,5,7,.95)),url("assets/brand/background-v25-2.webp")!important;background-size:cover!important;background-position:center top!important;background-attachment:fixed!important;font-family:"Segoe UI",Inter,Arial,sans-serif!important;font-size:15px;line-height:1.65;letter-spacing:.005em;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 18% 10%,rgba(198,134,43,.09),transparent 30%),radial-gradient(circle at 86% 24%,rgba(103,44,124,.09),transparent 28%)}
h1,h2,h3,.display-title,.page-title,.section-title,.panel-title{font-family:Cambria,Georgia,"Times New Roman",serif!important;color:var(--sig-ivory);text-wrap:balance}
p{max-width:72ch}.muted,.subtitle,.lead,.page-subtitle{color:var(--sig-muted)!important}.gold,.accent,.eyebrow{color:var(--sig-gold-bright)!important}
.topbar{min-height:72px!important;height:auto!important;padding:8px clamp(16px,3vw,52px)!important;border-bottom:1px solid var(--sig-line)!important;background:rgba(3,5,8,.9)!important;box-shadow:0 12px 40px rgba(0,0,0,.34)!important;backdrop-filter:blur(18px) saturate(120%)!important}
.brand img,.brand-logo,.topbar .logo img{object-fit:contain!important;filter:drop-shadow(0 5px 14px rgba(215,158,47,.2))}
.desktop-nav a,.desktop-nav button,.nav-link,.menu-trigger{min-height:42px!important;border:1px solid transparent!important;border-radius:11px!important;color:#e9e0d0!important;font-weight:650!important;transition:.22s ease!important}
.desktop-nav a:hover,.desktop-nav button:hover,.nav-link:hover,.desktop-nav .active,.nav-link.active{color:#fff5d6!important;border-color:rgba(226,176,70,.34)!important;background:linear-gradient(180deg,rgba(226,176,70,.12),rgba(226,176,70,.04))!important}
.mobile-nav-toggle,.search-toggle,.theme-toggle,.lang-toggle{border:1px solid rgba(218,168,62,.28)!important;background:#0b0d11!important;color:var(--sig-gold-bright)!important;border-radius:12px!important}
.page-shell,main,.container{max-width:1600px;margin-inline:auto}.page-hero,.royal-hero,.hero-section{border-radius:0 0 28px 28px;overflow:hidden}
.panel,.card,.feature-card,.tool-card,.result-card,.form-card,.data-card,.family-home-panel,.home-choice,.content-card,fieldset{border:1px solid var(--sig-line)!important;border-radius:var(--sig-radius)!important;background:linear-gradient(145deg,var(--sig-panel-2),var(--sig-panel))!important;box-shadow:var(--sig-shadow)!important;color:var(--sig-text)!important}
.panel::before,.card::before{opacity:.5}.panel:hover,.card:hover,.feature-card:hover,.tool-card:hover,.home-choice:hover{border-color:rgba(244,211,124,.6)!important;transform:translateY(-2px);transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease}
label,.field-label,legend{color:#ead29a!important;font-weight:750!important;letter-spacing:.025em}
input,select,textarea{min-height:48px!important;padding:11px 14px!important;border:1px solid rgba(218,168,62,.3)!important;border-radius:10px!important;background:#07090b!important;color:#fff8e8!important;box-shadow:inset 0 2px 8px rgba(0,0,0,.28)!important;color-scheme:dark}
textarea{min-height:110px!important}input::placeholder,textarea::placeholder{color:#817b72!important}input:focus,select:focus,textarea:focus{outline:0!important;border-color:var(--sig-gold-bright)!important;box-shadow:0 0 0 3px rgba(232,183,73,.14),inset 0 2px 8px rgba(0,0,0,.28)!important}
button,.btn,.button,.primary-button,.cta-button,[class*="btn-"]{min-height:44px;border-radius:11px;font-weight:750;letter-spacing:.015em}
.btn-primary,.primary-button,.cta-primary,.home-oracle-cta{border:1px solid #e5b855!important;background:linear-gradient(135deg,#f1d486 0%,#c9922d 48%,#8f5d16 100%)!important;color:#241302!important;box-shadow:0 10px 28px rgba(182,119,21,.24),inset 0 1px rgba(255,255,255,.55)!important}
.btn-primary:hover,.primary-button:hover,.cta-primary:hover,.home-oracle-cta:hover{filter:brightness(1.08);transform:translateY(-2px)}.btn-secondary,.secondary-button,.btn-outline{border:1px solid rgba(218,168,62,.5)!important;background:rgba(8,9,11,.78)!important;color:#f4d37c!important}
table{border-collapse:separate;border-spacing:0;background:rgba(5,7,9,.48);border:1px solid rgba(218,168,62,.22);border-radius:14px;overflow:hidden}th{background:rgba(218,168,62,.09);color:#f1d487!important}td,th{border-color:rgba(218,168,62,.14)!important}
.badge,.pill,.tag,.chip{border:1px solid rgba(218,168,62,.32)!important;background:rgba(218,168,62,.08)!important;color:#f0d68f!important;border-radius:999px!important}.site-footer,footer{border-top:1px solid var(--sig-line)!important;background:linear-gradient(180deg,rgba(7,8,10,.94),#030405)!important;color:var(--sig-muted)!important}
body[data-current="index.html"] .royal-hero{position:relative;min-height:clamp(610px,76vh,820px);background:linear-gradient(90deg,rgba(3,5,8,.22),rgba(3,5,8,.72)),url("assets/brand/hero-v25-2.webp") center/cover no-repeat!important}
body[data-current="index.html"] .royal-hero-grid{gap:clamp(28px,4vw,64px)!important;align-items:center!important}body[data-current="index.html"] .homepage-oracle-live h1{font-family:Cambria,Georgia,serif!important;color:#fff5d9!important;text-shadow:0 4px 28px rgba(0,0,0,.7)}body[data-current="index.html"] .homepage-oracle-live p{color:#d9cfbf!important}body[data-current="index.html"] .home-wheel-stage{filter:drop-shadow(0 20px 55px rgba(98,29,124,.42))}body[data-current="index.html"] .family-home-panel{padding:clamp(22px,2.4vw,34px)!important;backdrop-filter:blur(14px)}body[data-current="index.html"] .home-choice{min-height:142px!important;padding:20px!important}
@media(max-width:1100px){.page-shell,main{width:100%}.page-hero,.royal-hero{border-radius:0 0 20px 20px}body[data-current="index.html"] .royal-hero{min-height:auto}.royal-hero-grid{grid-template-columns:1fr!important}body[data-current="index.html"] .homepage-oracle-live{order:1}body[data-current="index.html"] .family-home-panel{order:2}}
@media(max-width:760px){body{font-size:14px;background-attachment:scroll!important}.topbar{min-height:64px!important;padding:6px 12px!important}main{padding-inline:12px}.panel,.card,.feature-card,.tool-card,.result-card,.form-card,.data-card,.family-home-panel,.home-choice,.content-card{border-radius:14px!important}h1,.page-title{font-size:clamp(32px,10vw,46px)!important;line-height:1.06!important}h2,.section-title{font-size:clamp(26px,7vw,36px)!important}.grid,.cards-grid,.feature-grid,.tools-grid{grid-template-columns:1fr!important}button,.btn,.button,.primary-button,.cta-button,[class*="btn-"]{width:100%;min-height:48px}body[data-current="index.html"] .royal-hero{min-height:auto!important;padding-block:18px 26px!important}body[data-current="index.html"] .homepage-oracle-live{padding:10px 4px 18px!important}body[data-current="index.html"] .home-wheel-stage{width:min(80vw,330px)!important}body[data-current="index.html"] .home-oracle-gate{max-width:330px!important}body[data-current="index.html"] .home-choice{min-height:104px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}


/* V25.31 - UI/UX STRUCTURE AUDIT AND LAYOUT NORMALIZATION */
:root{--layout-max:1540px;--layout-gutter:clamp(16px,2.35vw,36px);--section-gap:clamp(22px,3vw,44px);--card-gap:clamp(14px,1.6vw,24px)}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
main>*{min-width:0}
.page-shell,main,.container{width:min(100%,var(--layout-max));padding-inline:var(--layout-gutter)}
.section{margin-block:var(--section-gap);min-width:0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:clamp(16px,2vw,26px)}
.section-head>*,.two-panel>*,.form-grid>*,.family-intake-grid>*,.royal-hero-grid>*{min-width:0}
.two-panel{gap:var(--card-gap)!important;align-items:stretch}
.panel,.card,.feature-card,.tool-card,.result-card,.form-card,.data-card,.content-card{padding:clamp(18px,2vw,28px)}
.panel>h2:first-child,.card>h2:first-child,.panel>h3:first-child,.card>h3:first-child{margin-top:0}
.page-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(20px,4vw,64px);padding:clamp(30px,5vw,72px) var(--layout-gutter)!important;margin-bottom:var(--section-gap)}
.page-hero h1{max-width:18ch;margin:.15em 0 .3em;line-height:1.04}
.page-hero p{max-width:68ch;margin-bottom:0}
.hero-symbol{flex:0 0 auto}
.topbar>*{min-width:0}.topbar>.brand{flex:0 0 auto}.topbar>.nav{min-width:0}
.topbar>.menu-btn,.topbar .icon-btn,.topbar .search-toggle,.topbar .theme-toggle,.topbar .lang-toggle{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;place-items:center}
.mobile-nav{max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain}
.mobile-nav a{min-height:42px;display:flex;align-items:center}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--sig-gold-bright)!important;outline-offset:3px}
.lookup-grid,.cards-grid,.feature-grid,.tools-grid{gap:var(--card-gap)!important}
.lookup-grid>a,.home-choice{min-width:0;overflow:hidden}
.lookup-grid b,.home-choice b{overflow-wrap:anywhere}
.table-wrap,.data-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.v25-royal-home .homepage-oracle-live .home-wheel-stage{left:auto!important;top:auto!important;margin:18px auto 0!important}
.v25-royal-home .homepage-oracle-live .live-oracle-wheel{left:auto!important;top:auto!important;margin-inline:auto!important}
.v25-royal-home .homepage-oracle-live{overflow:visible!important;isolation:isolate}
.v25-royal-home .royal-hero-grid{grid-template-columns:minmax(420px,.95fr) minmax(520px,1.05fr)!important}
.v25-royal-home .family-home-panel{position:relative;z-index:2}
@media (min-width:1481px){.topbar>.nav{display:flex!important}.topbar>.menu-btn{display:none!important}}
@media (min-width:1101px) and (max-width:1480px){.topbar{display:grid!important;grid-template-columns:auto 1fr auto auto;gap:10px!important}.topbar>.brand{grid-column:1}.topbar>.menu-btn{grid-column:3;display:grid!important}.topbar>.nav{display:none!important}.mobile-nav{width:min(420px,92vw)!important;left:auto!important;right:var(--layout-gutter)!important}}
@media (max-width:1100px){.page-shell,main,.container{padding-inline:clamp(14px,2.5vw,24px)}.page-hero{grid-template-columns:1fr;padding-block:30px!important}.hero-symbol{justify-self:start}.v25-royal-home .royal-hero-grid{grid-template-columns:1fr!important}.v25-royal-home .homepage-oracle-live,.v25-royal-home .family-home-panel{width:min(100%,820px);margin-inline:auto}.v25-royal-home .homepage-oracle-live .home-wheel-stage{margin-top:14px!important}}
@media (max-width:760px){.page-shell,main,.container{padding-inline:12px}.section{margin-block:20px}.section-head{align-items:start;flex-direction:column;gap:10px}.page-hero{padding:24px 16px!important;border-radius:0 0 16px 16px!important}.page-hero h1{max-width:100%;overflow-wrap:normal;word-break:normal}.panel,.card,.feature-card,.tool-card,.result-card,.form-card,.data-card,.content-card{padding:16px}.topbar{display:grid!important;grid-template-columns:1fr auto auto auto!important;gap:8px!important}.topbar>.brand{grid-column:1!important}.topbar>.menu-btn{grid-column:2!important;display:grid!important}.topbar>.nav{display:none!important}.topbar .brand small{display:none}.mobile-nav{inset:64px 8px auto 8px!important;width:auto!important;border-radius:0 0 16px 16px!important}.topbar button,.topbar .btn,.topbar [class*="btn-"]{width:44px!important;min-width:44px!important}.actions,.hero-actions,.family-head-actions,.form-actions,.result-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.actions>*,.hero-actions>*,.family-head-actions>*,.form-actions>*,.result-actions>*{width:100%!important;min-width:0!important}.lookup-grid>a,.home-choice{min-height:0!important;padding:16px!important}.two-panel,.form-grid,.family-intake-grid{grid-template-columns:1fr!important}table{display:block;max-width:100%;overflow-x:auto;white-space:nowrap}.v25-royal-home .homepage-oracle-live .home-wheel-stage{width:min(76vw,310px)!important;margin:10px auto 0!important}.v25-royal-home .home-oracle-actions{margin-top:10px!important}}

/* V25.32 - shared customer profile */
.home-profile-form{display:flex;flex-direction:column;gap:14px}.home-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.home-profile-grid label{display:grid;gap:7px;color:var(--text,#f5ead4);font-size:12px;font-weight:700}.home-profile-grid input,.home-profile-grid select{width:100%;min-width:0;height:44px;padding:0 13px;border:1px solid rgba(222,174,62,.38);border-radius:8px;background:rgba(2,4,7,.72);color:var(--text,#fff8e9);font:inherit}.home-profile-save{min-height:46px;border:1px solid #dba73b;border-radius:9px;background:linear-gradient(135deg,#f7dc91,#c89025);color:#1b1005;font-weight:900;letter-spacing:.04em;cursor:pointer}.home-profile-status{margin:0;color:var(--muted,#cbbda8);font-size:12px;line-height:1.5}.v25-active-profile{display:flex;align-items:center;gap:10px;width:min(1180px,calc(100% - 32px));margin:14px auto;padding:10px 14px;border:1px solid rgba(218,165,48,.35);border-radius:10px;background:rgba(13,10,8,.88);color:var(--text,#fff8e9)}.v25-active-profile span{color:#e6b94e;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.v25-active-profile small{color:var(--muted,#cbbda8)}.v25-active-profile a{margin-left:auto;color:#edc969;font-weight:700}.v25-profile-prefilled{box-shadow:inset 3px 0 #d9a52f!important}@media(max-width:760px){.home-profile-grid{grid-template-columns:1fr}.v25-active-profile{align-items:flex-start;flex-wrap:wrap;width:calc(100% - 24px)}.v25-active-profile a{margin-left:0;width:100%}}
/* V25.33 - restore the animated oracle wheel on the homepage */
body[data-current="index.html"] .inline-oracle-wheel::after{content:"";position:absolute;inset:7%;z-index:1;border-radius:50%;pointer-events:none;background:conic-gradient(from 0deg,transparent 0 13%,rgba(255,220,126,.28) 16%,transparent 20% 44%,rgba(184,79,255,.25) 48%,transparent 53% 78%,rgba(255,197,75,.22) 82%,transparent 87%);filter:blur(5px);mix-blend-mode:screen;animation:homeOracleAuraSpin 10s linear infinite reverse}
body[data-current="index.html"] .inline-oracle-wheel img{position:relative;z-index:2;animation:homeOracleWheelSpin 24s linear infinite;will-change:transform}
body[data-current="index.html"] .inline-oracle-wheel:hover img{animation-duration:8s}
@keyframes homeOracleWheelSpin{to{transform:rotate(360deg)}}
@keyframes homeOracleAuraSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body[data-current="index.html"] .inline-oracle-wheel img,body[data-current="index.html"] .inline-oracle-wheel::after{animation:none!important}}

/* ===== V28.1.1 — Huyền Cơ conversational UI ===== */
.ai-layout{grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:20px}
.chat-shell{min-height:640px}
.chat-head{padding:18px 20px}
.chat-head b{font-size:18px}
.chat-head small{font-size:11px}
.chat-messages{padding:22px 24px;gap:14px;scroll-behavior:smooth}
.msg{max-width:84%;font-size:15px;line-height:1.65;padding:13px 15px}
.msg.bot{background:rgba(255,255,255,.06)}
.msg.user{background:rgba(223,189,115,.17)}
.msg.typing{opacity:.78;font-style:italic}
.agent-sources{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;line-height:1.55}
.agent-sources a{color:var(--gold2);text-decoration:none}
.chat-compose{padding:16px 18px}
.chat-compose input{font-size:16px;min-height:50px;padding:13px 16px}
.chat-compose button{min-width:72px;font-size:15px}
.ai-profile label{font-size:13px}
.privacy-note{font-size:12px;line-height:1.55}
@media(max-width:850px){.chat-shell{min-height:620px}.msg{max-width:92%}}
@media(max-width:600px){.chat-shell{min-height:68dvh}.chat-messages{padding:16px}.msg{font-size:14px}.chat-compose{grid-template-columns:1fr auto}.chat-compose button{height:50px}}


/* ===== V28.2 — Huyền Cơ engagement chips ===== */
.agent-quick{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 8px 0;align-self:flex-start}
.agent-quick button{
  border:1px solid rgba(211,169,75,.42);background:rgba(211,169,75,.08);color:#efd18b;
  border-radius:999px;padding:8px 12px;min-height:36px;font-size:12px;font-weight:700;cursor:pointer
}
.agent-quick button:hover{background:rgba(211,169,75,.16);transform:translateY(-1px)}


/* ===== V28.4.1 — Lá Số Presentation Layer ===== */
body[data-current="la-so.html"] .laso-user-hero{padding-bottom:36px}
body[data-current="la-so.html"] .app-section{padding-top:32px}
body[data-current="la-so.html"] .v10-chart{
  gap:10px;
  grid-template-rows:repeat(4,minmax(185px,auto));
}
body[data-current="la-so.html"] .v10-chart .palace{
  min-height:185px!important;
  padding:15px!important;
  border-color:rgba(223,189,115,.18);
  background:linear-gradient(155deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
}
body[data-current="la-so.html"] .v10-chart .palace-head b{
  font-size:16px!important;
  line-height:1.2;
}
body[data-current="la-so.html"] .v10-chart .palace-head small{
  display:block;
  margin-top:4px;
  font-size:12px!important;
}
body[data-current="la-so.html"] .v10-chart .palace-tag{
  font-size:10px!important;
  padding:5px 7px!important;
}
body[data-current="la-so.html"] .v10-chart .major-star-list{gap:6px;margin-top:10px}
body[data-current="la-so.html"] .v10-chart .major-star-chip{
  font-size:12px!important;
  line-height:1.25;
  padding:6px 7px!important;
}
body[data-current="la-so.html"] .v10-chart .brightness-tag{
  font-size:9px!important;
  margin-left:5px;
  padding:2px 5px;
}
body[data-current="la-so.html"] .v10-chart .adjective-list{gap:5px;margin-top:10px}
body[data-current="la-so.html"] .v10-chart .adjective-chip{
  font-size:10px!important;
  line-height:1.2;
  padding:5px 6px!important;
}
body[data-current="la-so.html"] .v10-chart .adjective-chip.more{
  color:var(--gold2);
  border-color:rgba(223,189,115,.28)
}
body[data-current="la-so.html"] .v10-chart .major-star-empty{
  font-size:11px!important;
  line-height:1.45;
}
body[data-current="la-so.html"] .laso-center{
  min-height:380px!important;
  padding:28px!important;
  background:
    radial-gradient(circle at 50% 46%,rgba(223,189,115,.12),transparent 55%),
    radial-gradient(circle at 50% 50%,rgba(146,112,255,.09),transparent 72%)!important;
}
body[data-current="la-so.html"] .laso-center-kicker{
  color:var(--gold);font-size:10px;font-weight:900;letter-spacing:.18em;margin-bottom:10px
}
body[data-current="la-so.html"] .laso-center h3{
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(21px,2.2vw,31px);
  color:var(--text);
  line-height:1.12;
  text-transform:none;
}
body[data-current="la-so.html"] .laso-center-meta{
  display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px
}
body[data-current="la-so.html"] .laso-center-meta span{
  font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px
}
body[data-current="la-so.html"] .laso-center-core{
  display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-bottom:16px
}
body[data-current="la-so.html"] .laso-center-core b{
  font-family:inherit!important;font-size:13px!important;color:var(--gold2)!important;
  border:1px solid rgba(223,189,115,.22);border-radius:9px;padding:7px 9px
}
body[data-current="la-so.html"] .facts-summary .fact-chip small{font-size:11px!important}
body[data-current="la-so.html"] .facts-summary .fact-chip b{font-size:16px}
body[data-current="la-so.html"] .boundary-note{
  font-size:13px!important;
  line-height:1.55;
  padding:13px 15px;
}
body[data-current="la-so.html"] .laso-two-panel{grid-template-columns:1.35fr .65fr}
body[data-current="la-so.html"] .laso-readable-facts{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px
}
body[data-current="la-so.html"] .laso-fact-card{
  min-height:82px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;
  background:rgba(255,255,255,.025)
}
body[data-current="la-so.html"] .laso-fact-card span{
  display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em
}
body[data-current="la-so.html"] .laso-fact-card b{
  display:block;color:var(--text);font-size:16px;line-height:1.35;margin-top:7px
}
body[data-current="la-so.html"] .laso-fact-card small{
  display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:5px
}
body[data-current="la-so.html"] .laso-empty-summary{
  grid-column:1/-1;color:var(--muted);font-size:14px;padding:22px;border:1px dashed var(--line);border-radius:12px
}
body[data-current="la-so.html"] .laso-tech-details{margin-top:16px}
body[data-current="la-so.html"] .laso-tech-details summary{
  cursor:pointer;color:var(--muted);font-size:12px;font-weight:800;padding:10px 0
}
body[data-current="la-so.html"] .laso-tech-details .facts-code{
  font-size:12px!important;line-height:1.55;max-height:340px;margin-top:8px
}
body[data-current="la-so.html"] .laso-config{margin-top:12px}
body[data-current="la-so.html"] .laso-config>div{
  padding:12px 0!important;font-size:13px!important;align-items:flex-start
}
body[data-current="la-so.html"] .laso-config>div span{font-size:12px;color:var(--muted)}
body[data-current="la-so.html"] .laso-config>div b{font-size:13px;text-align:right;max-width:62%;line-height:1.4}
body[data-current="la-so.html"] .laso-config-note{
  color:var(--muted);font-size:12px;line-height:1.55;margin:16px 0 0
}
@media(max-width:1000px){
  body[data-current="la-so.html"] .laso-two-panel{grid-template-columns:1fr}
  body[data-current="la-so.html"] .v10-chart{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto}
  body[data-current="la-so.html"] .laso-center{grid-column:1/-1!important;grid-row:auto!important;min-height:210px!important}
}
@media(max-width:650px){
  body[data-current="la-so.html"] .v10-chart{grid-template-columns:1fr!important}
  body[data-current="la-so.html"] .v10-chart .palace{min-height:150px!important}
  body[data-current="la-so.html"] .laso-readable-facts{grid-template-columns:1fr}
  body[data-current="la-so.html"] .laso-center{min-height:190px!important}
}


/* ===== V28.5 production readability floor ===== */
body[data-current] .panel>label,
body[data-current] .form-grid label,
body[data-current] .ai-profile label,
body[data-current] .v25-control label{font-size:13px!important;line-height:1.45}
body[data-current] input,body[data-current] select,body[data-current] textarea{font-size:15px!important}
body[data-current] .btn,body[data-current] button:not(.theme-btn):not(.icon-btn){font-size:13px}
body[data-current] .warning-box,body[data-current] .privacy-note,body[data-current] .boundary-note{font-size:12px!important;line-height:1.55}
