/* Rishivan Atelier: one clear question, every deeper path one choice away. */
:root { --atelier-ink:#060912; --atelier-panel:#0c1423; --atelier-gold:#dfc391; --atelier-line:rgba(222,195,145,.18); }
html { scroll-behavior:smooth; }
body { background:#060a14; }
#app-shell .app-view[hidden] { display:none!important; }
button, a { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline:2px solid #f4d99f; outline-offset:3px; }

@media (min-width:901px) {
  .shell { max-width:none; min-height:100svh; margin-left:232px; padding:0 clamp(30px,5vw,92px); }
  .topbar { position:fixed; z-index:30; top:0; bottom:0; left:0; width:232px; height:100svh; margin:0; padding:16px 13px 10px; display:flex; flex-direction:column; align-items:stretch; border-right:1px solid rgba(229,195,133,.23); border-bottom:0; background:linear-gradient(180deg,rgba(10,13,26,.99),rgba(6,11,21,.99))!important; box-shadow:15px 0 45px rgba(0,0,0,.17); }
  .topbar:after { display:none; }
  .topbar .brand { display:flex; align-items:center; gap:11px; width:100%; padding:4px 11px 14px; margin:0 0 8px; border-bottom:1px solid var(--atelier-line); font-size:19px; letter-spacing:.17em; }
  .topbar .brand-mark { width:43px; height:43px; flex:0 0 43px; }
  .nav-links { display:flex; flex-direction:column; align-items:stretch; gap:4px; width:100%; margin:0!important; padding:0; border:0; background:none!important; box-shadow:none!important; }
  .nav-links a, .nav-links button { width:100%; min-height:42px; margin:0; padding:8px 13px; display:flex; align-items:center; gap:13px; border:1px solid transparent; border-radius:11px; text-align:left; text-decoration:none; color:#bdc3cf; background:transparent; font:500 12px 'DM Sans',sans-serif; letter-spacing:.01em; text-transform:none; cursor:pointer; transition:color .2s,background .2s,border-color .2s; }
  .nav-links a:hover,.nav-links button:hover,.nav-links a.active,.nav-links button.active { color:#f5e1bc; border-color:rgba(225,188,121,.17); background:linear-gradient(90deg,rgba(221,181,113,.12),rgba(125,90,153,.04))!important; }
  .nav-links a:after { display:none; }
  .nav-links i { width:19px; color:#dcc28e; font:normal 19px 'Playfair Display',serif; text-align:center; }
  .rail-bottom { width:100%; margin-top:auto; padding:10px 9px 2px; border-top:1px solid var(--atelier-line); display:grid; grid-template-columns:1fr 42px 42px; align-items:center; gap:5px; }
  .rail-bottom>span { grid-column:1/-1; margin-bottom:8px; color:#9d9a9a; font:8px 'DM Mono',monospace; letter-spacing:.11em; }
  .rail-bottom .privacy-settings { grid-column:1; width:100%; margin:0!important; padding:8px 6px; font-size:10px; white-space:normal; text-align:left; }
  .rail-bottom .discover-shortcut { grid-column:2; margin:0; width:38px; height:38px; }
  .rail-bottom .profile { grid-column:3; margin:0; width:38px; height:38px; }
  .profile-sheet { position:fixed; top:auto!important; bottom:16px; left:246px; right:auto!important; z-index:31; }
}

.cosmos-image { display:block!important; opacity:.27; background:linear-gradient(110deg,#060a14 11%,rgba(7,11,23,.84) 52%,rgba(8,10,20,.65)),url('assets/rishivan-astrolabe-command-bg.png') center/cover fixed; }
.shell:before { opacity:.45; }
.hero[data-view='home'] { position:relative; min-height:calc(100svh - 5px)!important; padding:34px 0 32px!important; display:flex!important; flex-direction:column; justify-content:center; border:0!important; background:none!important; }
.hero[data-view='home']:before { content:''; position:absolute; inset:0 -5vw; z-index:-1; background:radial-gradient(ellipse at 79% 34%,rgba(138,101,167,.19),transparent 38%),radial-gradient(circle at 72% 49%,rgba(218,165,90,.1),transparent 26%),linear-gradient(90deg,rgba(6,10,20,.92),rgba(6,10,20,.5)); mask-image:none; }
.hero[data-view='home']:after { content:''; position:absolute; z-index:-1; right:3%; top:15%; width:min(42vw,490px); aspect-ratio:1; border:1px solid rgba(218,184,120,.15); border-radius:50%; box-shadow:0 0 0 39px rgba(226,190,129,.025),0 0 0 92px rgba(226,190,129,.015),inset 0 0 70px rgba(118,91,142,.06); animation:atelier-orbit 32s linear infinite; pointer-events:none; }
@keyframes atelier-orbit { 50% { transform:rotate(180deg) scale(1.045); opacity:.64; } to { transform:rotate(360deg); } }
.home-mode-switch { align-self:flex-start; display:inline-flex; gap:4px; margin:0 0 20px; padding:5px; border:1px solid var(--atelier-line); border-radius:100px; background:rgba(7,12,24,.84); }
.home-mode-switch button { min-height:42px; padding:8px 20px; display:flex; gap:9px; align-items:center; border:0; border-radius:100px; color:#b7b9c2; background:none; font:500 12px 'DM Sans',sans-serif; cursor:pointer; }
.home-mode-switch button.active { color:#13131c; background:linear-gradient(115deg,#f0d8aa,#d7af75); box-shadow:0 4px 21px rgba(224,177,108,.25); }
.home-mode-switch button span { font-size:17px; }
#home .hero-copy { width:min(100%,820px); max-width:none; margin:0; }
#home .hero-copy .greeting { color:#d4b883; font:10px 'DM Mono',monospace; letter-spacing:.16em; }
#home .hero-copy h1 { max-width:760px; margin:11px 0 8px; color:#f7ebd8; font:400 clamp(44px,5vw,76px)/1.05 'Playfair Display',Georgia,serif; letter-spacing:-.045em; }
#home .hero-copy .hero-text { margin:0 0 18px; color:#c5c3ca; font-size:15px; }
#home .conversation-frame { border:1px solid rgba(225,194,143,.24); border-radius:22px; background:linear-gradient(155deg,rgba(15,22,36,.94),rgba(8,13,25,.94)); box-shadow:0 25px 70px rgba(0,0,0,.28); }
#home .conversation-head { border-bottom:1px solid rgba(229,192,130,.11); }
#home .conversation-feed { min-height:72px; height:auto; max-height:44svh; overflow-y:auto; }
#home .conversation-welcome p { font:400 clamp(18px,1.8vw,24px)/1.35 'Playfair Display',Georgia,serif; }
#home .home-guide-answer { margin:8px 15px 14px; padding:20px 24px; max-height:52svh; overflow:auto; border:0; border-left:2px solid #d8b67a; border-radius:0 8px 8px 0; background:rgba(220,181,112,.055); line-height:1.7; }
#home .home-chatbox { min-height:69px; margin:7px 12px 12px; padding:6px 7px 6px 14px; display:flex; align-items:flex-end; border:1px solid rgba(225,196,148,.35); border-radius:14px; background:#080d19; }
#home .home-chatbox textarea { min-height:52px; font-size:15px; line-height:1.5; }
#home .home-chatbox .primary { border-radius:10px; }
#home .dashboard-jump { margin:20px 0 0; color:#e7c995; }
#home .question-suggestions { margin-top:21px; }
#home .question-suggestions button { border-color:rgba(220,191,143,.25); border-radius:100px; background:rgba(8,13,25,.7); }
#home .home-status { margin-top:18px; }

/* The daily dashboard is a second layer, never a barrier to speaking. */
#life-today { max-width:1160px; margin:auto; padding:52px 0 74px; border-top:1px solid var(--atelier-line); }
#life-today:before { opacity:.21; height:470px; }
#life-today .today-heading { min-height:140px; }
#life-today .today-heading h1 { font-size:clamp(36px,3.6vw,53px); }
#life-today .today-orbit { width:105px; margin-right:4%; }
#life-today .today-orbit span { font-size:40px; }
#life-today .today-cards { gap:12px; }
#life-today .today-card { min-height:195px; border-color:var(--atelier-line); background:linear-gradient(140deg,rgba(19,27,43,.95),rgba(8,15,28,.95)); }
#life-today .today-card h2 { font-size:clamp(23px,2.2vw,31px); }
#life-today .today-ask { display:none; }
#life-today .life-paths { margin-top:30px; }
#life-today .life-path-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
#life-today .life-path-grid button { border-color:var(--atelier-line); background:rgba(9,17,30,.85); }

/* A Council reading flows from the answer into the next question. */
#council { padding-top:30px; }
#council .council-mode-switch { margin-bottom:15px; }
#council .council-mode-switch button.active { color:#f4eafd; background:linear-gradient(115deg,#553f78,#84659f); box-shadow:0 5px 22px rgba(126,94,162,.3); }
#council .council-session-head { margin:0 0 21px; }
#council .council-layout { display:grid; grid-template-columns:220px minmax(0,1fr); grid-template-rows:minmax(310px,auto) auto; align-items:start; gap:16px 20px; }
#council .council-layout>.rishi-presence { grid-column:1; grid-row:1/3; position:sticky; top:20px; margin:0; border:1px solid var(--atelier-line); border-radius:16px; background:rgba(10,17,30,.92); }
#council .council-layout>.rishi-presence .rishi-grid { grid-template-columns:1fr; }
#council .council-layout>.answer-card { grid-column:2; grid-row:1; position:relative; top:auto; min-height:310px; max-height:none; margin:0; border:1px solid rgba(229,195,140,.37); border-radius:17px; background:linear-gradient(140deg,#efe4d1,#e4d5b9)!important; box-shadow:0 20px 60px rgba(0,0,0,.2); }
#council .council-layout>.council-panel { grid-column:2; grid-row:2; min-height:0; padding:16px 20px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px 12px; border:1px solid rgba(230,194,137,.31); border-radius:16px; background:rgba(10,18,32,.94)!important; }
#council .council-panel>label { grid-column:1/-1; }
#council .council-panel textarea { grid-column:1; min-height:61px; margin:0; }
#council .council-panel .ask-button { grid-column:2; grid-row:2; min-height:61px; margin:0; white-space:nowrap; }
#council .council-panel .council-camera { grid-column:1; grid-row:3; justify-self:start; margin:0; }
#council .answer-card #answer-placeholder .answer-symbol { margin:15px 0; }
#council .answer-card #answer-placeholder p { max-width:490px; }
#council .council-panel .chips { display:none; }
#council .council-panel .chips button { border-radius:100px; }
#council .answer-card.is-thinking { border-color:rgba(157,127,187,.75); box-shadow:0 0 0 1px rgba(157,127,187,.2),0 20px 60px rgba(0,0,0,.2),0 0 36px rgba(145,105,180,.15); animation:council-breathe 2.6s ease-in-out infinite; }
@keyframes council-breathe { 50% { box-shadow:0 0 0 2px rgba(157,127,187,.37),0 20px 60px rgba(0,0,0,.2),0 0 58px rgba(145,105,180,.3); } }
#council .reading-mark { padding:0 .12em; border-radius:3px; color:#44301b; background:linear-gradient(transparent 46%,rgba(221,180,104,.36) 46%); }
#council .council-followups { margin-top:29px; padding-top:19px; border-top:1px solid rgba(85,63,40,.22); }
#council .council-followups>span { display:block; margin-bottom:11px; color:#745d45; font:700 10px 'DM Sans',sans-serif; letter-spacing:.15em; }
#council .council-followups>div { display:flex; flex-wrap:wrap; gap:8px; }
#council .council-followups button { min-height:38px; padding:8px 12px; border:1px solid rgba(111,83,58,.25); border-radius:100px; color:#4c3a2c; text-align:left; background:rgba(255,251,242,.5); font:500 11px/1.3 'DM Sans',sans-serif; cursor:pointer; transition:background .2s,transform .2s; }
#council .council-followups button:hover { transform:translateY(-2px); background:#fff8e9; }
#council .council-followups i { margin-left:4px; font-style:normal; }
#council .pramana-feedback { display:flex; align-items:center; gap:13px; flex-wrap:wrap; padding:17px 0 0; margin-top:17px; border-top:1px solid rgba(85,63,40,.18); }
#council .pramana-feedback>p { margin:0; color:#66533f; font:600 12px 'DM Sans',sans-serif; }
#council .pramana-choices { display:flex; gap:8px; }
#council .pramana-choices button { width:39px; height:37px; min-height:0; padding:0; border:1px solid rgba(111,83,58,.28); border-radius:10px; color:#382a20; background:rgba(255,250,238,.7); font-size:17px; cursor:pointer; }
#council .pramana-form { flex-basis:100%; }

/* The chart itself is the Kundli dashboard; duplicate menus recede. */
#explore { padding-top:35px; }
#explore .section-heading { margin-bottom:22px; }
#explore .chart-layout,#explore .kundli-workspace { display:none!important; }
#explore .kundli-profile-strip { border:1px solid var(--atelier-line); border-radius:14px; background:rgba(10,17,30,.87); }
#explore .chart-doorway { margin-top:22px; border-color:rgba(229,194,137,.28); background:linear-gradient(145deg,rgba(13,23,39,.97),rgba(7,14,27,.97)); }
#explore .chart-doorway::before { opacity:.15; }
#explore .chart-doorway-detail { border-color:var(--atelier-line); }
#explore .chart-experience-grid { gap:10px; }
.reading-collection { display:grid; grid-template-columns:minmax(190px,.8fr) minmax(0,2fr); gap:28px; margin:42px 0 30px; padding:30px 0; border-top:1px solid var(--atelier-line); }
.reading-collection h3 { margin:8px 0 10px; color:#f2e2c7; font:400 clamp(29px,3vw,40px)/1.13 'Playfair Display',Georgia,serif; }
.reading-collection p:not(.eyebrow) { max-width:290px; color:#bfc4cd; font-size:12px; line-height:1.6; }
.reading-collection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.reading-collection-grid button { position:relative; min-height:188px; padding:22px 17px; display:flex; flex-direction:column; align-items:flex-start; gap:9px; border:1px solid rgba(226,190,132,.25); border-radius:15px; color:#f3e6d0; text-align:left; background:linear-gradient(145deg,rgba(28,27,48,.92),rgba(8,18,31,.96)); cursor:pointer; transition:transform .2s,border-color .2s; }
.reading-collection-grid button:hover { transform:translateY(-3px); border-color:rgba(237,202,145,.62); }
.reading-collection-grid span { color:#c4a574; font:9px 'DM Mono',monospace; letter-spacing:.12em; }
.reading-collection-grid b { font:400 23px 'Playfair Display',Georgia,serif; }
.reading-collection-grid small { color:#bfc2cb; font-size:11px; line-height:1.5; }
.reading-collection-grid i { position:absolute; right:16px; bottom:13px; color:#dfc18a; font:normal 17px 'DM Sans',sans-serif; }
.atelier-footer { margin-top:50px; padding:40px 0 24px; display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px; border-top:1px solid var(--atelier-line); }
.atelier-footer>div { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.atelier-footer>div:first-child p { max-width:250px; margin:4px 0; color:#b3b5bf; font-size:12px; }
.atelier-footer>div>span { margin-bottom:7px; color:#d8bc8c; font:10px 'DM Mono',monospace; letter-spacing:.13em; }
.atelier-footer button { margin:0!important; padding:2px 0; border:0; color:#c4c5cd; background:none; font:12px 'DM Sans',sans-serif; text-align:left; cursor:pointer; }
.atelier-footer button:hover { color:#f0d4a2; }
.atelier-footer>small { grid-column:1/-1; padding-top:18px; border-top:1px solid var(--atelier-line); color:#898c99; font:9px 'DM Mono',monospace; letter-spacing:.13em; }

@media(max-width:1100px) and (min-width:901px) { .shell { margin-left:210px; padding-inline:34px; }.topbar { width:210px; } #life-today .life-path-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1100px) { .reading-collection { display:block; }.reading-collection-grid { margin-top:18px; } }
@media(max-width:900px) {
  .shell { max-width:none; margin:0; padding:0 20px; }
  .topbar { position:sticky; top:0; height:68px; padding:0 5px; display:flex; align-items:center; gap:10px; }
  .topbar .brand { margin-right:auto; }
  .topbar .nav-links { display:none!important; }
  .rail-bottom { display:flex; align-items:center; gap:9px; }
  .rail-bottom>span,.rail-bottom .privacy-settings,.rail-bottom .discover-shortcut { display:none!important; }
  .rail-bottom .profile { margin:0; }
  .profile-sheet { top:73px!important; right:12px; }
  .hero[data-view='home'] { min-height:calc(100svh - 144px)!important; padding:46px 0 42px!important; }
  .hero[data-view='home']:after { right:4%; width:48vw; opacity:.55; }
  #life-today .life-path-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #council .council-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto; }
  #council .council-layout>.answer-card,#council .council-layout>.council-panel,#council .council-layout>.rishi-presence { min-width:0; max-width:100%; overflow:hidden; }
  #council .council-panel textarea { min-width:0; width:100%; }
  #council .council-layout>.rishi-presence { grid-column:1; grid-row:1; position:relative; top:auto; padding:12px; }
  #council .council-layout>.rishi-presence .rishi-grid { grid-template-columns:repeat(4,minmax(105px,1fr)); }
  #council .council-layout>.answer-card { grid-column:1; grid-row:2; }
  #council .council-layout>.council-panel { grid-column:1; grid-row:3; }
}
@media(max-width:600px) {
  .shell { padding:0 15px; }
  .topbar { height:61px; }
  .topbar .brand { font-size:16px; }
  .topbar .brand-mark { width:33px; height:33px; }
  .hero[data-view='home'] { min-height:calc(100svh - 126px)!important; padding:32px 0 25px!important; }
  .hero[data-view='home']:after { width:62vw; top:8%; right:2%; opacity:.3; }
  .home-mode-switch { width:100%; margin:0 0 28px; }
  .home-mode-switch button { flex:1; justify-content:center; padding:8px 7px; font-size:11px; }
  #home .hero-copy h1 { font-size:clamp(39px,11vw,57px); line-height:1.04; }
  #home .hero-copy .hero-text { max-width:310px; margin:8px 0 22px; font-size:13px; }
  #home .conversation-frame { border-radius:17px; }
  #home .conversation-head { padding:12px; }
  #home .conversation-feed { min-height:84px; max-height:34svh; padding:14px; }
  #home .conversation-welcome p { font-size:19px; }
  #home .home-chatbox { min-height:73px; margin:7px; padding:7px; }
  #home .home-chatbox textarea { min-height:47px; padding:8px; font-size:13px; }
  #home .home-chatbox .primary { min-width:50px; padding:9px; font-size:0; }
  #home .home-chatbox .primary span { font-size:19px; }
  #home .question-suggestions { display:flex; overflow-x:auto; margin-top:14px; padding-bottom:4px; gap:7px; }
  #home .question-suggestions { scrollbar-width:none; }
  #home .question-suggestions::-webkit-scrollbar { display:none; }
  #home .question-suggestions button { flex:0 0 auto; font-size:11px; }
  #home .home-status { display:none; }
  #life-today { padding:32px 0 55px; }
  #life-today .today-heading { min-height:100px; }
  #life-today .today-heading h1 { font-size:37px; }
  #life-today .today-orbit { width:69px; }
  #life-today .today-cards { grid-template-columns:1fr; }
  #life-today .today-card { min-height:143px; grid-column:auto; }
  #life-today .life-path-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #life-today .life-path-grid button { min-height:109px; }
  #council { padding-top:18px; }
  #council .council-layout>.rishi-presence .rishi-grid { display:flex; flex-wrap:nowrap; gap:7px; overflow-x:auto; padding-bottom:4px; }
  #council .council-layout>.rishi-presence .rishi-grid { scrollbar-width:none; }
  #council .council-layout>.rishi-presence .rishi-grid::-webkit-scrollbar { display:none; }
  #council .council-layout>.rishi-presence .rishi-grid>span { flex:0 0 116px; min-height:54px; }
  #council .council-layout>.answer-card { min-height:242px; padding:22px 18px 22px 60px!important; }
  #council .answer-card .response-headline,#council #answer-placeholder h3 { font-size:clamp(26px,8vw,37px); }
  #council .council-layout>.council-panel { padding:16px; }
  #council .council-panel { grid-template-columns:minmax(0,1fr) auto; }
  #council .council-panel textarea { grid-column:1/-1; grid-row:2; min-height:72px; resize:vertical; }
  #council .council-panel .council-camera { grid-column:1; grid-row:3; }
  #council .council-panel .ask-button { grid-column:2; grid-row:3; min-height:42px; padding:8px 11px; font-size:11px; }
  #council .council-panel .ask-button span { display:none; }
  #council .council-panel .chips { display:none; }
  .atelier-footer { grid-template-columns:1fr 1fr; gap:25px 18px; margin-bottom:70px; }
  .atelier-footer>div:first-child { grid-column:1/-1; }
  .reading-collection-grid { grid-template-columns:1fr; }
  .reading-collection-grid button { min-height:117px; }
  .shell .rishivan-orb { display:none!important; }
}
@media(prefers-reduced-motion:reduce) { .hero[data-view='home']:after { animation:none; } }
