body[data-vedanga-layout] {
 --theme-ink: #261a3d;
 --theme-light: #fff2d9;
 --theme-muted: #e2d5e6;
 --theme-gold: #f0c489;
 --theme-edge: #caa36e;
 --theme-base: #21172f;
 --theme-end: #181225;
 --theme-surface: #fffaf0;
 --theme-shadow: 0 16px 36px -13px #35204445, 0 2px 6px #36233e15;
 --theme-motion: 160ms ease;
 background: #faf6ec;
}
[data-vedanga-art="kundli"] { --theme-image: url("theme/kundli.jpg"); }
[data-vedanga-art="matching"] { --theme-image: url("theme/matching.jpg"); }
[data-vedanga-art="rashifal"] { --theme-image: url("theme/rashifal.jpg"); }
[data-vedanga-art="tarot"] { --theme-image: url("theme/tarot.jpg"); }
[data-vedanga-art="dasha"] { --theme-image: url("theme/dasha.jpg"); }
[data-vedanga-art="moon-sign"] { --theme-image: url("theme/moon-sign-lunar-dial.jpg"); }
[data-vedanga-art="compatibility"] { --theme-image: url("theme/compatibility.jpg"); }
[data-vedanga-art="panchang"] { --theme-image: url("theme/panchang.jpg"); }
[data-vedanga-art="festivals"] { --theme-image: url("theme/festival-lamps.jpg"); }
[data-vedanga-art="mercury"] { --theme-image: url("theme/mercury.jpg"); }
[data-vedanga-art="numerology"] { --theme-image: url("theme/numerology.jpg"); }
[data-vedanga-art="namkaran"] { --theme-image: url("theme/namkaran.jpg"); }
[data-vedanga-art="yantra"] { --theme-image: url("theme/yantra.jpg"); }
[data-vedanga-art="journal"] { --theme-image: url("theme/editorial-journal.jpg"); }
[data-vedanga-art="glossary"] { --theme-image: url("theme/editorial-glossary.jpg"); }
[data-vedanga-art="methodology"] { --theme-image: url("theme/editorial-methodology.jpg"); }
[data-vedanga-art="about"] { --theme-image: url("theme/editorial-about.jpg"); }

html:has(body[data-vedanga-layout]) {
 --glass-header-inset: max(13px, env(safe-area-inset-top, 0px));
 --glass-header-height: 62px;
 --glass-header-offset: calc(var(--glass-header-inset) + var(--glass-header-height) + 2px);
 scroll-padding-block-start: calc(var(--glass-header-offset) + 11px);
}
body[data-vedanga-layout] { padding-block-start: var(--glass-header-inset); }
[data-vedanga-layout] .container { max-width: 1160px; }
[data-vedanga-layout] .site-header {
 top: var(--glass-header-inset);
 width: min(1120px,calc(100% - 56px));
 margin-inline: auto;
 color: var(--theme-ink);
 background: #f8f0e2;
 border: 1px solid #e7cca285;
 border-radius: 16px;
 box-shadow: 0 7px 23px #27133733, inset 0 1px 0 #fff9;
}
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
 [data-vedanga-layout] .site-header {
  background: rgba(252,246,231,.90);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
 }
 [data-vedanga-layout] .site-header.is-scrolled { background: rgba(252,246,231,.86); }
}
[data-vedanga-layout] .site-header .header-inner {
 min-height: var(--glass-header-height);
 gap: clamp(12px,2.2vw,29px);
 padding-inline: 18px;
}
[data-vedanga-layout] .site-header .brand { gap: 8px; }
[data-vedanga-layout] .site-header .brand img { width: 27px; height: 29px; }
[data-vedanga-layout] .site-header .wordmark { font-size: 1.29rem; letter-spacing: .01em; }
[data-vedanga-layout] .site-header .desktop-nav {
 position: relative;
 gap: clamp(13px,1.7vw,25px);
 font-size: .82rem;
}
[data-vedanga-layout] .site-header .desktop-nav > a { padding-block: 10px; }
[data-vedanga-layout] .site-header .desktop-nav .nav-tools { position: static; }
[data-vedanga-layout] .site-header .nav-tools > summary { padding: 10px 6px; }
[data-vedanga-layout] .site-header .tools-popover {
 inset: calc(100% + 6px) 0 auto auto;
 width: min(570px,calc(100vw - 44px));
 max-height: calc(100vh - var(--glass-header-offset) - 28px);
 overflow-y: auto;
 overscroll-behavior: contain;
}
[data-vedanga-layout] .site-header .regional-city-popover { width: min(280px,calc(100vw - 44px)); }
[data-vedanga-layout] .site-header .header-actions { gap: 9px; }
[data-vedanga-layout] .site-header .header-actions > .button {
 min-height: 39px;
 padding: 6px 14px;
 background: #271b3c;
 border-color: #271b3c;
 border-radius: 9px;
 color: #fff5df;
}
[data-vedanga-layout] .site-header .header-actions > .button:hover { background: #412d50; }
[data-vedanga-layout] .site-header .locale-picker > summary {
 min-height: 39px;
 padding: 5px 9px;
 border-color: #b995615e;
 border-radius: 9px;
 font-size: .82rem;
}
[data-vedanga-layout] .site-header .locale-picker > summary svg { width: 17px; height: 17px; }
[data-vedanga-layout] .site-header .locale-picker > ul { max-height: min(60vh,26rem); overscroll-behavior: contain; }
.site-header .locale-menu-notice {
 grid-column: 1/-1;
 padding: 7px 4px 0;
 border-top: 1px solid #e5d4bc;
}
.site-header .locale-picker .locale-menu-notice > span {
 min-height: 0;
 padding: 0 6px;
 font-size: .78rem;
}
.site-header .locale-picker .locale-menu-notice > a {
 color: #754e20;
 font-size: .8rem;
 white-space: normal;
 text-decoration: underline;
}
[data-vedanga-layout] .site-header .menu-toggle {
 color: inherit;
 width: 44px;
 height: 44px;
 border: 1px solid transparent;
 border-radius: 9px;
}
[data-vedanga-layout] .site-header .menu-toggle:hover { border-color: #b995615e; }
[data-vedanga-layout] .site-header .menu-toggle svg { width: 22px; }
[data-vedanga-layout] .mobile-nav {
 inset: var(--menu-start,calc(var(--glass-header-offset) + 8px)) 10px max(10px, env(safe-area-inset-bottom,0px));
 border: 1px solid #ddc8a9;
 border-radius: 14px;
 box-shadow: 0 12px 38px #21132e59;
}
[data-vedanga-layout] .mobile-nav nav :is(a,summary) { min-height: 44px; }
[data-vedanga-layout] :is(.site-header,.mobile-nav) :focus-visible {
 outline: 2px solid #80561d;
 outline-offset: 2px;
}
@media (max-width:980px) {
 [data-vedanga-layout] .site-header .desktop-nav,
 [data-vedanga-layout] .site-header .header-actions > .button { display: none; }
 [data-vedanga-layout] .site-header .header-actions { margin-inline-start: auto; }
 [data-vedanga-layout] .site-header .menu-toggle { display: inline-flex; }
}
@media (max-width:760px) {
 html:has(body[data-vedanga-layout]) {
  --glass-header-inset: max(9px, env(safe-area-inset-top,0px));
  --glass-header-height: 54px;
 }
 [data-vedanga-layout] .site-header { width: calc(100% - 20px); border-radius: 13px; }
 [data-vedanga-layout] .site-header .header-inner { padding-inline: 10px; gap: 7px; }
 [data-vedanga-layout] .site-header .brand { gap: 6px; }
 [data-vedanga-layout] .site-header .brand img { width: 24px; height: 26px; }
 [data-vedanga-layout] .site-header .wordmark { font-size: 1.15rem; }
 [data-vedanga-layout] .site-header .header-actions { gap: 3px; }
 [data-vedanga-layout] .site-header .locale-picker > summary {
  min-height: 42px;
  max-width: clamp(78px,27vw,126px);
  gap: 5px;
  padding-inline: 7px;
 }
 [data-vedanga-layout] .site-header .locale-picker [data-locale-value] { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width:620px) {
 [data-vedanga-layout] .site-header .locale-picker { position: static; }
 [data-vedanga-layout] .site-header .locale-picker > ul {
  inset: calc(100% + 8px) 0 auto auto;
  width: min(288px,100%);
 }
}
@media (max-width:360px) {
 [data-vedanga-layout] .site-header .header-inner { gap: 5px; padding-inline: 8px; }
 [data-vedanga-layout] .site-header .brand { gap: 5px; flex-shrink: 0; }
 [data-vedanga-layout] .site-header .brand img { width: 20px; height: 22px; }
 [data-vedanga-layout] .site-header .wordmark { font-size: .98rem; }
 [data-vedanga-layout] .site-header .locale-picker > summary svg { display: none; }
}
[data-vedanga-layout] .analytics-choice:not([hidden]) {
 position: static;
 display: flex;
 justify-content: space-between;
 align-items: center;
 column-gap: 15px;
 width: calc(100% - 24px);
 max-width: 1090px;
 margin: 8px auto;
 padding: 7px 10px;
 border: 1px solid #e6dbc7;
 background: #fbf4e7;
 border-radius: 9px;
 box-shadow: none;
 font: inherit;
 font-size: .78rem;
 line-height: 1.45;
}
[data-vedanga-layout] .analytics-choice:not([hidden]) p { margin: 0; }
[data-vedanga-layout] .analytics-choice > div { gap: 7px 10px; flex: 0 0 auto; }
[data-vedanga-layout] .analytics-choice button { min-height: 40px; padding: 5px 10px; border-radius: 8px; }
[data-vedanga-layout] .desktop-nav details > summary,
[data-vedanga-layout] .locale-picker > summary { transition: background-color var(--theme-motion), color var(--theme-motion); }
[data-vedanga-layout] :is(.nav-tools,.locale-picker)[open] > summary { background: #f4e8d0; color: #67471e; border-radius: 9px; }
[data-vedanga-layout] :is(.tools-popover,.locale-picker > ul) { background: #fffaf1; border-radius: 15px; box-shadow: var(--theme-shadow); }
[data-vedanga-layout] :is(.nav-tools,.locale-picker)[open] > :is(.tools-popover,ul) { animation: theme-reveal var(--theme-motion) both; }
@keyframes theme-reveal {
 from { opacity: .68; transform: translateY(5px); }
 to { opacity: 1; transform: translateY(0); }
}

[data-vedanga-layout] :is(.hero,.theme-scene,.theme-lead) {
 position: relative;
 isolation: isolate;
 color: var(--theme-light);
}
[data-vedanga-layout] :is(.hero,.theme-scene,.theme-lead)::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: -2;
 background: radial-gradient(ellipse at 76% 42%,#4b3456 0,transparent 58%),
             linear-gradient(114deg,var(--theme-base) 19%,#30213e 58%,var(--theme-end));
}
[data-vedanga-layout] main { overflow-x: clip; }
[data-vedanga-layout] .theme-lead::before {
 width: 100vw;
 left: 50%;
 right: auto;
 transform: translateX(-50%);
}
.theme-art {
 display: block;
 position: absolute;
 z-index: -1;
 inset-block: 0;
 right: 0;
 width: min(64vw,900px);
 pointer-events: none;
 background: var(--theme-image,none) center right / contain no-repeat;
 mask-image: linear-gradient(90deg,transparent,#000 21%,#000 87%,transparent),
             linear-gradient(0deg,transparent,#000 15%,#000 89%,transparent);
 mask-composite: intersect;
 opacity: .6;
}
.theme-scene .theme-art {
 height: min(100%,680px);
 inset-inline-end: max(10px,calc((100vw - 1380px)/2));
 mask-image: radial-gradient(ellipse at 54% 49%,#000 35%,#000d 54%,transparent 76%);
}
.theme-lead .theme-art { inset-inline-end: -9%; }
[data-vedanga-layout="city"] .theme-lead .theme-art {
 mask-image: linear-gradient(90deg,transparent 12%,#000 49%,#000 79%,transparent),
             linear-gradient(0deg,transparent,#000 26%,#000 87%,transparent);
 mask-composite: intersect;
}
[data-vedanga-art="matching"] .theme-art { opacity: .62; }
[data-vedanga-art="numerology"] .theme-art { opacity: .54; }
[data-vedanga-art="orbits"] .theme-art {
 width: min(74%,850px);
 transform: none;
 background: radial-gradient(circle at 70% 48%,#e9be81 0 2px,transparent 3px),
             radial-gradient(circle at 55% 21%,#f2c78c 0 1px, transparent 2px),
             repeating-radial-gradient(circle at 78% 51%,transparent 0 45px,#eac18840 46px 47px,transparent 48px 59px);
 opacity: .62;
}
[data-vedanga-layout] :is(.hero,.theme-scene,.theme-lead) .eyebrow { color: var(--theme-gold); }
[data-vedanga-layout] :is(.theme-scene,.theme-lead) :is(.page-heading h1,.page-heading > p) { color: var(--theme-light); }
[data-vedanga-layout] :is(.theme-scene,.theme-lead) .page-heading > p { color: var(--theme-muted); }
[data-vedanga-layout] :is(.theme-scene,.theme-lead) .breadcrumbs :is(a,span) { color: var(--theme-muted); }
[data-vedanga-layout] :is(.hero,.theme-scene,.theme-lead) :is(a,button,summary,input,select):focus-visible {
 outline: 2px solid #edbd6f;
 outline-offset: 3px;
}
[data-vedanga-layout] :is(.theme-scene,.hero,.theme-lead,.city-workbench) .button {
 border-radius: 10px;
 font-weight: 660;
 transition: background-color var(--theme-motion), box-shadow var(--theme-motion);
}
[data-vedanga-layout] :is(.theme-scene,.hero,.theme-lead,.city-workbench) .button:not(.secondary) {
 background: linear-gradient(126deg,#f2ce91,#dfab5c);
 color: #241831;
 border: 1px solid #cb9952;
 box-shadow: 0 5px 12px #140b2345;
}
[data-vedanga-layout] :is(.theme-scene,.hero,.theme-lead,.city-workbench) .button:not(.secondary):hover {
 background: #f5d59b;
}
[data-vedanga-layout] :is(.hero,.theme-lead) .button.secondary {
 color: var(--theme-light);
 background: #2c2142bb;
 border-color: #deb9798c;
}

[data-vedanga-layout="home"] .hero {
 overflow: hidden;
 padding-block: clamp(23px,4vh,40px) clamp(28px,4vh,45px);
 border-bottom: 1px solid #967147;
 background: #21152b;
}
[data-vedanga-layout="home"] > main {
 margin-block-start: calc(-1 * var(--glass-header-offset));
}
[data-vedanga-layout="home"] .hero {
 padding-block-start: calc(var(--glass-header-offset) + clamp(12px,2.5vh,29px));
}
[data-vedanga-layout="home"] .hero::before {
 background:
  linear-gradient(90deg,#20152bb0 0%,#28193348 45%,transparent 72%),
  linear-gradient(0deg,#21162caa,transparent 23%),
  radial-gradient(ellipse at 70% 45%,#d799ba24,transparent 53%),
  url('./theme/home-velvet.jpg') center right / cover no-repeat;
}
@media (min-width:851px) and (any-hover:hover) and (prefers-reduced-motion:no-preference) {
 [data-vedanga-layout="home"] .hero::before {
  inset: -12px;
  transform: translate3d(var(--velvet-pan-x,0px),var(--velvet-pan-y,0px),0);
  transition: transform .8s cubic-bezier(.2,.65,.25,1);
 }
 [data-vedanga-layout="home"] .hero::after {
  content: "";
  position: absolute;
  inset: -16% -6% -12% 52%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(125deg,transparent 26%,#deb68a21 45%,#f9c88e4a 53%,transparent 70%);
  mask-image: radial-gradient(ellipse at 65% 46%,#000 20%,transparent 70%);
  animation: velvet-arrival 4.4s ease-out both;
 }
}
@keyframes velvet-arrival {
 0% { opacity: 0; transform: translateX(14%); }
 33% { opacity: 1; }
 100% { opacity: 0; transform: translateX(-12%); }
}
.home-velvet-light {
 position: absolute;
 z-index: -1;
 left: 0;
 top: 0;
 width: clamp(440px,55vw,960px);
 aspect-ratio: 1;
 background: radial-gradient(closest-side, #f0b87046, #bf77ce1f 51%, transparent);
 opacity: 0;
 transform: translate3d(var(--reflection-x,70vw),var(--reflection-y,45vh),0) translate(-50%,-50%);
 transition: opacity .45s ease, transform .36s cubic-bezier(.2,.7,.25,1);
 pointer-events: none;
}
.home-velvet-light.is-lit { opacity: 1; }
@media (max-width:850px) {
 [data-vedanga-layout="home"] .hero::before {
  background:
   linear-gradient(180deg,#21152cf0 1%,#21152ccd 34%,#271a3b15 70%,#21162cc4 100%),
   url('./theme/home-velvet-mobile.jpg') center right / cover no-repeat;
 }
}
@media (prefers-reduced-motion:reduce), (any-hover:none) {
 .home-velvet-light { display: none; }
}
[data-vedanga-layout="home"] .hero-grid {
 max-width: 1330px;
 grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
 gap: clamp(18px,3vw,43px);
 align-items: center;
}
@media (max-width:850px) {
 [data-vedanga-layout="home"] .hero-grid { grid-template-columns: minmax(0,1fr); }
}
[data-vedanga-layout="home"] .hero-copy { padding-top: 0; }
@media (min-width:851px) {
 [data-vedanga-layout="home"] .hero-grid {
  max-width: 1200px;
  padding-inline: clamp(29px,5vw,68px);
  grid-template-columns: repeat(2,minmax(0,1fr));
 }
 [data-vedanga-layout="home"] .hero-copy {
  width: 100%;
  max-width: 505px;
  justify-self: center;
  padding-block-start: clamp(8px,2vh,20px);
 }
}
[data-vedanga-layout="home"] .hero h1 { color: var(--theme-light); font-size: clamp(2.55rem,4.4vw,4.2rem); line-height: 1.06; }
[data-vedanga-layout="home"] .hero h1 em { font-style: normal; color: var(--theme-gold); }
[data-vedanga-layout="home"] :is(.hero-lede,.hero-assurance) { color: var(--theme-muted); }
[data-vedanga-layout="home"] .hero-actions { margin-top: 19px; gap: 8px; }
.astrolabe { min-width: 0; text-align: center; color: var(--theme-light); }
.astrolabe-stage {
 --turn-duration: 1.18s;
 width: 465px;
 width: clamp(158px,calc(100svh - 198px),465px);
 max-width: 100%;
 aspect-ratio: 1;
 margin-inline: auto;
 padding: 3px 4px 9px;
 perspective: 900px;
 container-type: inline-size;
 touch-action: pan-y;
 user-select: none;
}
.astrolabe-instrument {
 position: relative;
 height: 100%;
 transform: rotateX(calc(6deg + var(--rx,0deg))) rotateY(var(--ry,0deg));
 transform-style: preserve-3d;
 transition: transform .34s ease-out;
 isolation: isolate;
}
.astrolabe :is(.astrolabe-bevel,.astrolabe-glass,.astrolabe-rotary,.astrolabe-dial,.astrolabe-signs,.astrolabe-arc) {
 position: absolute;
 inset: 0;
 border-radius: 50%;
}
.astrolabe-bevel {
 transform: translateZ(-12px);
 background: conic-gradient(from 25deg,#a2643f,#401f32,#ecc08a,#80533a,#221528,#b78452,#a2643f);
 box-shadow: 0 10px 0 #59372d,0 13px 0 #39202a,0 20px 30px #10091eba;
}
.astrolabe-glass {
 z-index: 2;
 pointer-events: none;
 background: radial-gradient(ellipse at var(--mx,40%) var(--my,19%),#f4d3b626,transparent 45%);
 box-shadow: inset 0 0 0 1px #ffefc479;
 transform: translateZ(5px);
}
.astrolabe-rotary { transform: rotate(var(--rotation,0deg)); transition: transform var(--turn-duration) cubic-bezier(.22,.68,.26,1); }
.astrolabe-rotary.is-dragging,.astrolabe-rotary.is-dragging .astrolabe-sign { transition: none; }
.astrolabe-dial,.astrolabe-arc { width: 100%; height: 100%; }
.astrolabe-rim { fill: none; stroke: #d1ad7b96; stroke-width: 1; }
.astrolabe-inner-rim { stroke-dasharray: 1 4; }
.astrolabe-ticks { stroke: #e8ba82; opacity: .78; }
.astrolabe-sector { fill: #3d2b4caa; stroke: #d1a77678; stroke-width: 1; transition: fill .22s,stroke .22s; }
.astrolabe-sector.is-selected { fill: url(#astrolabe-selected); stroke: #ffd8a0; stroke-width: 1.6; }
.astrolabe-arc { transform: translateZ(8px); z-index: 3; pointer-events: none; }
.astrolabe-arc path {
 fill: none; stroke: url(#astrolabe-arc-color); stroke-width: 2.1;
 stroke-linecap: round; stroke-dasharray: 1; opacity: 0;
 filter: drop-shadow(0 0 3px #f2be83) drop-shadow(0 0 6px #ecd6f0a0);
}
.astrolabe-sign {
 position: absolute;
 left: var(--sign-x);
 top: var(--sign-y);
 display: grid;
 justify-items: center;
 align-content: center;
 gap: 1px;
 min-width: clamp(26px,10cqi,48px);
 min-height: clamp(27px,10cqi,48px);
 max-width: 19cqi;
 padding: 2px;
 border: 1px solid transparent;
 border-radius: 9px;
 color: #fff0dc;
 background: transparent;
 font-size: clamp(.47rem,2.77cqi,.9rem);
 font-weight: 700;
 line-height: 1.05;
 letter-spacing: -.025em;
 transform: translate(-50%,-50%) rotate(calc(-1 * var(--rotation,0deg)));
 transition: transform var(--turn-duration) cubic-bezier(.22,.68,.26,1),box-shadow .2s;
}
.astrolabe-sign-long { font-size: clamp(.42rem,2.42cqi,.79rem); }
.astrolabe-sign:hover,.astrolabe-sign[aria-pressed=true] { box-shadow: inset 0 0 0 1px #f9d49a54; }
.astrolabe-glyph { color: #f5cc8f; font: clamp(.82rem,5.7cqi,1.77rem)/1.1 'Segoe UI Symbol',sans-serif; font-variant-emoji: text; }
.astrolabe-center {
 position: absolute;
 inset: 30% 25%;
 z-index: 4;
 display: grid;
 align-content: center;
 justify-items: center;
 gap: 3px;
 transform: translateZ(13px);
 pointer-events: none;
 text-shadow: 0 2px 5px #170e2d;
}
.astrolabe-center img { width: clamp(17px,8cqi,37px); height: auto; }
.astrolabe .astrolabe-center p { margin: 0; }
.astrolabe-name { font: 600 clamp(.86rem,8.4cqi,2.5rem)/1.08 var(--serif); }
.astrolabe-alternate,.astrolabe-meta { font-size: clamp(.58rem,2.8cqi,.84rem); }
.astrolabe-alternate { color: #f5d5a7; }
.astrolabe-meta,.astrolabe-note { color: var(--theme-muted); }
.astrolabe-controls { display: flex; justify-content: center; gap: 7px; margin-top: 7px; }
.astrolabe-controls .zodiac-link,.astrolabe-arrow {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 min-height: 44px;
 padding: 6px 11px;
 border-radius: 8px;
 font-size: .82rem;
}
.astrolabe-arrow { min-width: 44px; border: 1px solid #d0aa76a0; color: var(--theme-light); background: #32223e; }
.astrolabe-arrow:hover { background: #493459; }
.astrolabe :focus-visible { outline: 2px solid #ffe1aa; outline-offset: 2px; }
.astrolabe-note { font-size: .74rem; margin-top: 6px; }
html[lang=hi] .astrolabe { font-family: Mukta,var(--sans); }
html[lang=hi] .astrolabe-name { font-family: Mukta,var(--serif); }
html[lang=hi] .astrolabe-sign { font-size: clamp(.58rem,3.5cqi,1.02rem); }
@media (min-width:851px) and (max-height:580px) {
 [data-vedanga-layout="home"] .hero-copy { padding-block-start: 0; }
 [data-vedanga-layout="home"] .hero h1 { font-size: clamp(1.9rem,8.7vh,3rem); margin-top: 8px; }
 [data-vedanga-layout="home"] .hero :is(.hero-lede,.hero-assurance) { margin-top: 9px; line-height: 1.45; }
 [data-vedanga-layout="home"] .hero-actions { margin-top: 10px; }
 [data-vedanga-layout="home"] .hero-actions .button { min-height: 42px; padding-block: 8px; }
}
@media (max-width:850px) {
 [data-vedanga-layout="home"] .hero-grid { gap: 16px; }
 [data-vedanga-layout="home"] .hero h1 { font-size: clamp(1.85rem,6.7vw,3.1rem); margin-top: 9px; }
 [data-vedanga-layout="home"] .hero-lede { margin-top: 10px; line-height: 1.57; }
 [data-vedanga-layout="home"] .hero-actions { margin-top: 12px; }
 [data-vedanga-layout="home"] .hero-actions .button { min-height: 44px; padding-block: 8px; }
 [data-vedanga-layout="home"] .hero-assurance { margin-top: 10px; }
 .astrolabe-stage { width: 325px; width: clamp(148px,calc(100svh - 365px),325px); }
}
@media (max-width:480px) and (max-height:670px) {
 [data-vedanga-layout="home"] .hero h1 { font-size: clamp(1.54rem,6.5vw,1.88rem); }
 [data-vedanga-layout="home"] .hero .eyebrow { display: none; }
 [data-vedanga-layout="home"] .hero .hero-lede { font-size: .8rem; }
 [data-vedanga-layout="home"] .hero-assurance { margin-top: 6px; }
 [data-vedanga-layout="home"] .hero-grid { gap: 12px; }
 .astrolabe-stage { width: clamp(144px,calc(100svh - 425px),250px); }
}
@media (min-width:650px) and (max-width:850px) and (max-height:720px) {
 [data-vedanga-layout="home"] .hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
 [data-vedanga-layout="home"] .hero h1 { font-size: clamp(1.65rem,6.7vh,2.75rem); }
 .astrolabe-stage { width: clamp(145px,calc(100svh - 185px),310px); }
}
@media (prefers-reduced-motion:reduce) {
 .astrolabe :is(.astrolabe-instrument,.astrolabe-rotary,.astrolabe-sign,.astrolabe-sector) { transition: none; }
 .astrolabe-instrument { transform: none; }
 .astrolabe-arc { display: none; }
}
.theme-destinations {
 position: relative;
 display: grid;
 grid-template-columns: repeat(3,minmax(0,1fr));
 gap: 3px;
 margin: -19px 0 18px;
 padding: 7px;
 border: 1px solid #e7d6b8;
 border-radius: 15px;
 background: var(--theme-surface);
 box-shadow: var(--theme-shadow);
}
.theme-destinations a {
 display: grid;
 grid-template-columns: 65px minmax(0,1fr) 14px;
 gap: 11px;
 align-items: center;
 padding: 6px 10px;
 min-height: 62px;
 border-radius: 9px;
 color: var(--theme-ink);
 text-decoration: none;
}
.theme-destinations a:hover { background: #f4e6d0; }
.theme-destinations img { width: 65px; height: 45px; object-fit: cover; border-radius: 6px; }
.theme-destinations :is(strong,small) { display: block; line-height: 1.38; }
.theme-destinations strong { font-size: .9rem; }
.theme-destinations small { margin-top: 3px; font-size: .76rem; color: #65566f; }
.theme-destination-arrow { color: #79521f; }

/* Tool pages share the stage. Controls and results remain independent of the illustration. */
.theme-scene {
 padding: clamp(22px,3.1vw,43px) 0 clamp(32px,4vw,57px);
 border-bottom: 1px solid #977044;
}
.theme-scene .breadcrumbs { margin-bottom: 7px; }
.theme-scene .page-heading { padding: 3px 0 20px; max-width: 680px; }
.theme-scene .page-heading h1 {
 margin-top: 11px;
 font-size: clamp(2.3rem,4.1vw,3.8rem);
 line-height: 1.12;
 letter-spacing: -.036em;
 text-wrap: balance;
}
.theme-scene .page-heading p {
 max-width: 59ch;
 margin-top: 10px;
 font-size: .96rem;
 line-height: 1.65;
}
.theme-scene .calculator-layout {
 grid-template-columns: minmax(0,535px) minmax(0,1fr);
 gap: clamp(18px,3vw,48px);
 margin-bottom: 0;
}
.theme-scene [data-tool] :is(.calculator-form,.calculator-result:has(.result-head)) {
 background: linear-gradient(140deg,#fffaf0,#f7eee0);
 color: var(--theme-ink);
 border: 1px solid #dfc59c;
 border-radius: 17px;
 padding: clamp(16px,2vw,24px);
 box-shadow: 0 17px 42px #140c265e;
}
.theme-scene .calculator-form > h2 { margin: 0 0 10px; font-size: 1.52rem; }
.theme-scene .calculator-form > .eyebrow { display: none; }
.theme-scene .calculator-form :is(.field input,.field select) { min-height: 42px; border-color: #c9b790; background: #fffbf4; }
.theme-scene .calculator-form .field input[type=date] { width: min(100%,155px); }
.theme-scene .calculator-form .field input[type=time] { width: min(100%,120px); }
.theme-scene .calculator-form .button.secondary { color: #604021; background: #fff6e8; border-color: #d8ba8d; }
.theme-scene .calculator-result:has(.experience-intro) {
 align-self: end;
 border: 0;
 background: transparent;
 box-shadow: none;
 padding: 0;
}
.theme-scene .experience-intro {
 max-width: 370px;
 margin-left: auto;
 padding: 3px 0 10px;
 text-align: left;
 background: none;
 border-radius: 0;
}
.theme-scene .experience-intro :is(svg,.eyebrow) { display: none; }
.theme-scene .experience-intro h2 { color: var(--theme-light); font-size: 1.57rem; margin: 0 0 6px; text-shadow: 0 0 10px #1b132e; }
.theme-scene .experience-intro p { color: var(--theme-muted); margin: 0; line-height: 1.55; text-shadow: 0 1px 8px #171025; }
.theme-scene .workbench-toolbar button { background: #fff7e9; color: var(--theme-ink); border-color: #daba86; }
.theme-scene .workbench-toolbar button[aria-pressed="true"] { background: #f1cb85; }
.tool-workbench[data-inline-focus]:not([data-has-result]) > .workbench-toolbar { display: none; }
.workspace-form-actions,.workspace-result-actions {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 9px;
 grid-column: 1/-1;
}
.workspace-form-actions #calculate-button { margin: 0; min-height: 42px; }
.workspace-result-actions:has(> :not([hidden])) { margin-bottom: 13px; }
.result-pdf[hidden] { display: none !important; }
.result-pdf { position: relative; }
.result-pdf > summary {
 display: inline-flex;
 min-height: 39px;
 align-items: center;
 gap: 6px;
 padding: 6px 11px;
 border: 1px solid #a97945;
 border-radius: 9px;
 background: #f5d9a6;
 color: #2c1b35;
 font-size: .83rem;
 font-weight: 700;
 cursor: pointer;
 list-style: none;
}
.result-pdf > summary::-webkit-details-marker { display: none; }
.result-pdf > summary:hover,.result-pdf[open] > summary { background: #efca89; }
.result-pdf-menu {
 position: absolute;
 z-index: 4;
 inset-block-start: calc(100% + 6px);
 inset-inline-start: 0;
 width: min(245px,calc(100vw - 90px));
 padding: 6px;
 border: 1px solid #c3a47b;
 border-radius: 10px;
 background: #fffaf0;
 color: #261a3d;
 box-shadow: 0 10px 24px #29183833;
 text-align: start;
}
.result-pdf-menu button {
 display: block;
 width: 100%;
 min-height: 36px;
 padding: 5px 9px;
 border: 0;
 border-radius: 6px;
 background: transparent;
 color: inherit;
 font: inherit;
 font-size: .83rem;
 line-height: 1.4;
 text-align: start;
 cursor: pointer;
}
.result-pdf-menu label { display: block; margin: 3px 8px 5px; font-size: .74rem; font-weight: 650; }
.result-pdf-menu select {
 display: block;
 width: calc(100% - 12px);
 min-height: 37px;
 margin: 0 6px 5px;
 padding: 4px 8px;
 border: 1px solid #cbb896;
 border-radius: 6px;
 background: #fffdf8;
 color: #261a3d;
 font: inherit;
 font-size: .83rem;
}
.result-pdf-menu button:not(:disabled):hover { background: #f4e8d0; }
.result-pdf-menu button:disabled { opacity: .52; cursor: wait; }
.result-pdf-menu p { margin: 2px 8px 5px; color: #4b3e54; font-size: .76rem; }
.result-pdf-menu p:empty,.tarot-report-actions:not(:has(> :not([hidden]))) { display: none; }
.tarot-report-actions { text-align: left; max-width: 690px; width: 100%; margin: 2px auto; }
[data-vedanga-layout] :is(.focus-workspace,#tarot-focus) {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 min-height: 40px;
 padding: 7px 10px;
 border: 1px solid #b89561;
 border-radius: 10px;
 background: #fff5e5;
 color: #483154;
 font-size: .86rem;
 font-weight: 660;
 line-height: 1.35;
 cursor: pointer;
}
[data-vedanga-layout] :is(.focus-workspace,#tarot-focus):hover { background: #f4e2c3; border-color: #926a37; }
[data-vedanga-layout] .focus-workspace svg { flex: none; }
.theme-scene [data-tool="matching"] .focus-workspace { background: #2d2140; color: var(--theme-light); border-color: #c5a272; }
.theme-scene [data-tool="matching"] .focus-workspace:hover { background: #473351; }
.theme-scene [data-tool="matching"] .workspace-result-actions .focus-workspace { background: #fff5e5; color: #483154; }
[data-vedanga-layout] .workspace-dialog :is(.focus-workspace,#tarot-focus) { display: none; }
[data-vedanga-layout] .workspace-dialog-header button {
 min-height: 44px;
 padding-inline: 13px;
 border-color: #bb9b6a;
 background: #fcf0dc;
 color: #352145;
 font-size: .83rem;
 font-weight: 650;
}
.theme-scene .sign-chip-grid button {
 gap: 5px;
 min-height: 62px;
 border-color: #e6d4b7;
 transition: background-color var(--theme-motion),border-color var(--theme-motion);
}
.theme-scene .sign-chip-grid button:not([aria-pressed="true"]):hover { border-color: #ab824d; background: #f4e7d0; }
.theme-scene .sign-chip-grid strong { font-size: .72rem; font-weight: 600; }
.theme-scene .sign-chip-grid button > span { display: flex; color: #8a5926; }
.theme-scene .sign-chip-grid [aria-pressed="true"] > span { color: #efc480; }
.theme-scene .sign-chip-grid [aria-pressed="true"] { border-color: #30204a; }
.theme-scene [data-tool="rashifal"] #tool-form:has(.sign-chip-grid) .field:has(#daily-sign),
.workspace-dialog [data-tool="rashifal"] #tool-form:has(.sign-chip-grid) .field:has(#daily-sign) { display: none; }
.theme-scene [data-tool="rashifal"] .sign-input-stage { margin-bottom: 12px; }
.theme-scene [data-tool="rashifal"] .sign-chip-grid button { min-height: 54px; padding-block: 7px; }
.theme-scene [data-tool="rashifal"] #tool-form > .field { margin-bottom: 13px; }
.theme-scene .tarot-section { margin: 0 auto; border-radius: 16px; box-shadow: 0 15px 36px #140c2680; }
.theme-scene .tarot-section :is(.tarot-intro,.tarot-form) { color: inherit; }
.theme-scene .tarot-section .eyebrow { color: var(--gold-ink); }
.theme-tool-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.theme-tool-actions button { margin: 0; min-height: 44px; }
.theme-tool-actions [hidden] { display: none !important; }
.theme-scene .calculator-form .form-privacy { margin: 4px 0 0; padding-top: 9px; border-top: 1px solid #d8c3a466; }
.theme-scene .calculator-form .form-error:empty { display: none; }
.theme-scene [data-tool="numerology"] #tool-form { grid-template-columns: minmax(0,1fr); gap: 9px; }
.theme-number-inputs { display: grid; grid-template-columns: minmax(0,155px) minmax(0,1fr); gap: 6px 10px; align-items: start; }
.theme-number-inputs .field { margin: 0; min-width: 0; }
.theme-number-inputs .field-note { grid-column: 1/-1; margin: 0; }
.theme-number-inputs:has(.field[hidden]) .field:not([hidden]) { grid-column: 1/-1; }
.theme-scene .number-mode-options label { padding: 7px 9px; border-radius: 8px; }
.theme-scene .number-mode-options label > span > span { font-size: .77rem; }
.theme-scene .number-mode-options label:has(:checked) { background: #f5e5c4; border-color: #b78c4e; }

/* The approved compact, two-step form uses a dark surface on larger screens. */
.theme-scene [data-tool="matching"] .calculator-form { color: var(--theme-light); background: linear-gradient(132deg,#3d2c4f,#281d38); border-color: #bd996a80; }
.theme-scene [data-tool="matching"] #tool-form { display: block; }
[data-tool="matching"] #tool-form[data-theme-matching] .matching-input-steps { display: none; }
.theme-scene [data-tool="matching"] .calculator-form:has([data-theme-matching]) > h2,
.theme-scene [data-tool="matching"] [data-theme-matching] .birth-fields legend {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
.theme-match-progress { margin-bottom: 13px; }
.theme-match-step { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.theme-match-step strong { font-weight: 700; font-size: 1.16rem; }
.theme-match-step span { color: var(--theme-gold); font-size: .86rem; }
.theme-match-track { display: flex; gap: 5px; }
.theme-match-track i { height: 3px; flex: 1; border-radius: 8px; background: #e6d2b34d; }
.theme-match-track i:first-child,[data-match-step="1"] .theme-match-track i { background: linear-gradient(90deg,#cb934d,#f3d6a4); }
.theme-scene [data-tool="matching"] .birth-fields { margin: 0 0 11px; }
.theme-scene [data-tool="matching"] .birth-fields .form-grid { gap: 6px 10px; }
.theme-scene [data-tool="matching"] .birth-fields > .form-grid { grid-template-columns: minmax(0,155px) minmax(0,120px) minmax(0,1fr); align-items: start; }
.theme-scene [data-tool="matching"] .birth-fields > .form-grid > .field:has(select) { grid-area: 1/3; }
.theme-scene [data-tool="matching"] .field { min-width: 0; margin: 0; }
.theme-scene [data-tool="matching"] :is(label,.form-privacy,.check-field,.coordinate-details .field-note) { color: var(--theme-muted); }
.theme-scene [data-tool="matching"] .form-error { color: #ffd4be; }
.theme-scene [data-tool="matching"] .field :is(input,select) { color: var(--theme-light); color-scheme: dark; background: #271c36; border-color: #a48aa7; }
.theme-scene [data-tool="matching"] .coordinate-details { padding: 3px 9px; margin-top: 8px; border: 1px solid #ddbe8e65; border-radius: 9px; background: #261c36; }
.theme-scene [data-tool="matching"] .coordinate-details summary { display: flex; justify-content: space-between; align-items: center; min-height: 38px; color: #f1d4a6; list-style: none; }
.theme-scene [data-tool="matching"] .coordinate-details summary::-webkit-details-marker { display: none; }
.theme-scene [data-tool="matching"] .coordinate-details summary::after { content: "⌃"; transform: rotate(180deg); transition: transform var(--theme-motion); }
.theme-scene [data-tool="matching"] .coordinate-details[open] summary::after { transform: rotate(0); }
.theme-scene [data-tool="matching"] .form-privacy { margin-top: 10px; }

/* City pages use the same horizon. Abstract line work frames the editorial pages. */
.theme-lead { padding: clamp(17px,2.5vw,34px) 0 clamp(23px,3.4vw,47px); margin-bottom: 21px; }
.theme-lead > .page-heading { padding: 0; margin: 0; }
.theme-lead .city-hero { margin: 0; align-items: end; }
.theme-lead .breadcrumbs { margin: 0 0 10px; }
[data-vedanga-layout="city"] .theme-lead .page-heading { max-width: 700px; padding-block: 6px 0; }
[data-vedanga-layout="city"] .theme-lead h1 { max-width: 22ch; font-size: clamp(2.25rem,3.65vw,3.6rem); line-height: 1.08; letter-spacing: -.04em; }
[data-vedanga-layout="city"] .theme-lead .page-heading p { max-width: 58ch; margin-top: 10px; line-height: 1.6; }
[data-vedanga-layout="city"] .theme-lead .city-feature-labels span { color: var(--theme-gold); }
[data-vedanga-layout="city"] .theme-lead .city-sky-panel {
 background: #2c203ec2;
 color: var(--theme-light);
 border: 1px solid #b99b6d91;
 justify-self: end;
 padding: 12px 15px;
 border-radius: 12px;
 box-shadow: 0 8px 22px #170e2a77;
}
[data-vedanga-layout="city"] .theme-lead .city-sky-panel .city-sun-emblem { display: none; }
[data-vedanga-layout="city"] .theme-lead .city-sky-panel > span:not(.eyebrow) { color: var(--theme-muted); }
[data-vedanga-layout="city"] .theme-lead:has(.city-hero) + .city-workbench { position: relative; margin-top: -41px; }
[data-vedanga-layout="city"] :is(.city-controls,.city-results) {
 border-color: #e4d1b3;
 border-radius: 16px;
 background: var(--theme-surface);
 box-shadow: var(--theme-shadow);
 padding: clamp(15px,1.6vw,22px);
}
[data-vedanga-layout="city"] .city-controls > .eyebrow { margin-bottom: 9px; }
[data-vedanga-layout="city"] .city-controls .city-controls-title { margin-top: 12px; }
[data-vedanga-layout="city"] .city-controls .city-date-form { margin-top: 9px; gap: 6px; }
[data-vedanga-layout="city"] .city-date-form input[type=date] { width: min(100%,145px); }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form { grid-template-columns: repeat(6,minmax(0,1fr)); }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form input { grid-area: 2/1/3/4; }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form [type="submit"] { grid-area: 2/4/3/7; padding-inline: 7px; }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form [data-date-step="-1"] { grid-area: 3/1/4/3; }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form [data-city-today] { grid-area: 3/3/4/5; }
[data-vedanga-layout="city"] .city-workbench[data-city-panchang] .city-date-form [data-date-step="1"] { grid-area: 3/5/4/7; }
[data-vedanga-layout="city"] .city-summary-grid { flex: 0 1 auto; gap: 9px; margin: 13px 0; }
[data-vedanga-layout="city"] .city-stat { padding: 11px; background: #f6edde; }
[data-vedanga-layout="city"] .city-workbench > .solar-shortcuts {
 grid-column: 1/-1;
 display: flex;
 flex-wrap: wrap;
 gap: 5px 7px;
}
[data-vedanga-layout="editorial"] .theme-lead { margin-bottom: 24px; }
[data-vedanga-layout="editorial"] .theme-lead .page-heading { max-width: min(720px,88%); }
[data-vedanga-layout="editorial"] .theme-lead h1 { font-size: clamp(2.1rem,3.8vw,3.45rem); line-height: 1.13; letter-spacing: -.036em; }
[data-vedanga-layout="editorial"] .theme-lead .page-heading > p { max-width: 65ch; line-height: 1.65; }
[data-vedanga-layout="editorial"] .theme-lead .category { color: #2b1d39; background: #f0cca0; }
[data-vedanga-layout="editorial"] .theme-lead .article-byline { color: var(--theme-muted); }
[data-vedanga-layout="editorial"] .theme-lead :is(.article-tool-shortcut,.text-link) { color: var(--theme-gold); }

.theme-article-lead {
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(0,1fr);
 align-items: center;
 column-gap: clamp(26px,4.25vw,64px);
 row-gap: 14px;
}
[data-vedanga-layout="editorial"] .theme-article-lead .page-heading { max-width: none; }
.theme-article-lead .breadcrumbs { grid-column: 1 / -1; margin: 0; }
.feature-article-context {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 6px 10px;
 color: var(--theme-muted);
 font-size: .82rem;
 margin-top: 17px;
}
.feature-article-context strong { color: var(--theme-light); }
.feature-article-clock { display: inline-flex; color: var(--theme-gold); }
.feature-article-context .city-icon { width: 18px; height: 18px; }
.theme-article-cover {
 margin: 0;
 border-radius: 18px;
 overflow: hidden;
 outline: 1px solid #edc79742;
 background: var(--theme-base);
 box-shadow: 0 18px 48px #10091e66;
}
.theme-article-cover img { display: block; width: 100%; height: auto; }
.journal-card .journal-cover { aspect-ratio: 2 / 1; background: var(--theme-base); }
.journal-cover img { object-fit: cover; transition: transform .35s ease; }
.journal-card:focus-within { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .journal-card:hover .journal-cover img { transform: scale(1.035); }
}
@media (max-width:800px) {
 .theme-article-lead { grid-template-columns: minmax(0,1fr); row-gap: 19px; }
 .theme-article-cover { border-radius: 14px; }
}
[data-vedanga-layout="editorial"] .article-toc { padding: 13px 14px; background: #fffaf1; border: 1px solid #e7d6ba; border-radius: 12px; box-shadow: var(--theme-shadow); }

:is([data-vedanga-art="journal"],[data-vedanga-art="glossary"],[data-vedanga-art="methodology"],[data-vedanga-art="about"]) .theme-lead {
 display: flex;
 flex-direction: column;
 justify-content: center;
 min-height: clamp(280px,25vw,410px);
}
:is([data-vedanga-art="journal"],[data-vedanga-art="glossary"],[data-vedanga-art="methodology"],[data-vedanga-art="about"]) .theme-lead .theme-art {
 width: auto;
 height: 100%;
 aspect-ratio: 930/898;
 inset-block: 0 auto;
 inset-inline-end: -1%;
 background-size: 100% 100%;
 background-position: center;
 opacity: .84;
 mask-image: linear-gradient(90deg,transparent,#000 22%,#000 87%,transparent),
             linear-gradient(0deg,transparent,#000 10%,#000 89%,transparent);
 mask-composite: intersect;
 animation: editorial-illustration 360ms ease-out;
}
[data-vedanga-art="journal"] .theme-lead .theme-art { height: 107%; inset-block-start: -7%; }
@keyframes editorial-illustration {
 from { opacity: .65; }
 to { opacity: .84; }
}

@media(min-width:701px) {
 .tool-workbench[data-inline-focus] > .workbench-toolbar { display: none; }
}
@media(max-width:760px) {
 [data-vedanga-layout] .analytics-choice:not([hidden]) { flex-wrap: wrap; gap: 7px; }
 .theme-destinations { grid-template-columns: 1fr; }
 .theme-destinations a { min-height: 53px; }
 .theme-scene { padding: 20px 0 31px; }
 .theme-scene .page-heading { padding-bottom: 15px; }
 .theme-scene .page-heading h1,.theme-lead h1 { font-size: clamp(1.8rem,7vw,2.65rem); }
 .theme-scene .page-heading p,.theme-lead .page-heading p { font-size: .87rem; line-height: 1.54; }
 .theme-scene .theme-art,.theme-lead .theme-art {
  width: 580px;
  height: min(100%,450px);
  right: -225px;
  opacity: .38;
 }
 .theme-scene .calculator-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .theme-scene .calculator-result:has(.experience-intro) { display: none; }
 .theme-scene .calculator-form .field :is(input,select) { min-height: 44px; }
 .theme-scene [data-tool="matching"] .calculator-form { color: var(--theme-ink); background: linear-gradient(140deg,#fffaf0,#f7eee0); }
 .theme-scene [data-tool="matching"] .birth-fields > .form-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
 .theme-scene [data-tool="matching"] .birth-fields > .form-grid > .field:has(select) { grid-area: auto/1/auto/-1; }
 .theme-scene [data-tool="matching"] :is(label,.check-field,.form-privacy,.coordinate-details .field-note) { color: #54455b; }
 .theme-scene [data-tool="matching"] .field :is(input,select) { color: var(--theme-ink); background: #fffbf4; border-color: #c9b790; color-scheme: light; }
 .theme-scene [data-tool="matching"] .coordinate-details { background: #f2e5d2; border-color: #d0bc98; }
 .theme-scene [data-tool="matching"] .coordinate-details summary { color: #624321; min-height: 42px; }
 .theme-scene [data-tool="matching"] .form-error { color: #a53a2a; }
 .theme-match-step span { color: #744c20; }
 .theme-match-track i { background: #cab8996d; }
 .theme-number-inputs { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
 [data-vedanga-layout="editorial"] .theme-lead .page-heading { max-width: none; }
 :is([data-vedanga-art="journal"],[data-vedanga-art="glossary"],[data-vedanga-art="methodology"],[data-vedanga-art="about"]) .theme-lead .theme-art {
  width: auto;
  height: min(100%,335px);
  inset-block-start: 0;
  inset-inline-end: -97px;
  opacity: .35;
  animation: none;
 }
 .theme-scene [data-tool="matching"] .focus-workspace { background: #fff5e5; color: #483154; border-color: #b89561; }
 .theme-scene [data-tool="matching"] .focus-workspace:hover { background: #f4e2c3; }
 .workspace-form-actions > .focus-workspace { flex: 0 1 auto; }
}
@media(max-width:480px) {
 [data-vedanga-layout] .container { padding-inline: 17px; }
 .theme-scene .calculator-form > h2 { font-size: 1.3rem; }
 .theme-scene [data-tool="numerology"] .calculator-form > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 [data-vedanga-layout="city"] .theme-lead h1,[data-vedanga-layout="editorial"] .theme-lead h1 { font-size: clamp(1.96rem,7.1vw,2.55rem); }
}

/* Put the required inputs and the action at the top of each tool. */
.theme-scene { padding-block: clamp(13px,2vw,23px) clamp(22px,3vw,37px); }
.theme-scene .breadcrumbs { padding: 0; margin-bottom: 5px; }
.theme-scene .page-heading { padding: 0 0 12px; }
.theme-scene .page-heading > .eyebrow { display: none; }
.theme-scene .page-heading h1 {
 margin-top: 5px;
 font-size: clamp(1.85rem,3.25vw,3.1rem);
 line-height: 1.08;
}
.theme-scene .page-heading p { margin-top: 7px; line-height: 1.5; }
.theme-scene .page-heading .lesson-actions { margin-block: 5px 0; }
.theme-scene .page-heading .lesson-actions .button { min-height: 34px; padding: 0 10px; }
.theme-scene [data-tool] :is(.calculator-form,.calculator-result:has(.result-head)) { padding: clamp(12px,1.65vw,19px); }
.theme-scene .calculator-form > h2 { margin-bottom: 8px; }
.theme-scene .calculator-form .field { margin-bottom: 8px; gap: 3px; min-width: 0; }
.theme-scene .calculator-form .field label { margin-bottom: 3px; }
.theme-scene .calculator-form .field :is(input,select) { padding-block: 7px; }
.theme-scene .calculator-form .birth-fields legend:empty { display: none; }
.theme-scene .calculator-form .coordinate-details { margin-bottom: 0; }
.theme-scene .calculator-form .birth-fields { margin-bottom: 6px; }
.theme-scene .calculator-form .birth-fields .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
.theme-scene .calculator-form .birth-fields .check-field { margin: 0 0 6px; min-height: 28px; }
.theme-scene .calculator-form .form-privacy { margin-top: 6px; padding-top: 5px; line-height: 1.45; }
.theme-scene .calculator-form .workspace-form-actions { margin-top: 5px; gap: 6px; }
.birth-time-occurrence[hidden] { display: none !important; }
.birth-time-occurrence:not([hidden]) { border-inline-start: 2px solid #b89561; padding-inline-start: 9px; }
.theme-article-lead .article-language-note a { color: var(--theme-gold); }
.tool-overview { padding-block: 18px 6px; color: var(--muted); }
.tool-overview p { max-width: 68ch; }
.compact-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-items: end; }
.compact-fields .field { min-width: 0; }
.compact-fields .field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.compact-tool-options { display: flex; gap: 4px 10px; flex-wrap: wrap; margin-top: 4px; }
[data-vedanga-layout] .compact-tool-options :is(.button,.swap-signs) {
 min-height: 38px;
 margin: 0;
 border: none;
 background: transparent;
 color: #674621;
 padding: 3px 2px;
 text-align: left;
 font-size: .78rem;
 text-decoration: underline;
 text-underline-offset: .22em;
}
[data-vedanga-layout] .compact-tool-options :is(.button,.swap-signs):hover { color: var(--theme-ink); background: transparent; }
.calculator-form:has(.compact-festival-calendar) .compact-fields .field:has(#day-date) { display: block; }
.compact-festival-pick select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.compact-festival-calendar { margin-top: 8px; }
.compact-festival-calendar summary { min-height: 42px; padding: 10px 2px; color: #674621; cursor: pointer; }
.festival-almanac {
 --almanac-line: #d6af7b37;
 border: 1px solid #d6af7b70;
 border-radius: 14px;
 padding: 10px 13px 8px;
 background: linear-gradient(145deg,#332039,#211529 76%);
 color: #f9ecd6;
 box-shadow: 0 14px 30px #0e08183d,inset 0 1px #f4d19718;
}
.festival-month-bar {
 display: flex;
 justify-content: space-between;
 align-items: end;
 gap: 7px;
 margin-bottom: 7px;
}
.festival-month-title { display: grid; min-width: 0; }
.festival-year {
 font: 600 .62rem/1.1 var(--sans);
 color: #e3b981;
 letter-spacing: .18em;
}
.festival-almanac #festival-month {
 min-width: 0;
 max-width: 100%;
 min-height: 32px;
 margin-inline-start: -2px;
 padding: 0 2px;
 border: 0;
 background: transparent;
 color: inherit;
 font: clamp(1.26rem,2.2vw,1.85rem)/1.13 var(--serif);
}
.festival-almanac #festival-month option { background: #2e1e35; color: #fff1dc; font: .92rem var(--sans); }
.festival-month-arrows { display: flex; gap: 5px; }
.festival-month-arrows button {
 width: 35px;
 min-height: 36px;
 display: grid;
 place-items: center;
 padding: 0 0 3px;
 border: 1px solid #d9ac7460;
 border-radius: 50%;
 background: #e8bc8810;
 color: #f4ca93;
 font: 1.48rem/1 var(--serif);
}
.festival-month-arrows button:hover:not(:disabled) { background: #e8bc8838; }
.festival-month-arrows button:disabled { opacity: .38; cursor: default; }
.festival-almanac .calendar-week {
 margin-bottom: 0;
 padding: 4px 0 6px;
 gap: 0;
 background: #170e202a;
 border-top: 1px solid var(--almanac-line);
}
.festival-almanac .calendar-week span {
 color: #deccb9;
 font: 600 .64rem/1.3 var(--sans);
 letter-spacing: .04em;
}
.festival-almanac .calendar-week span:nth-last-child(-n+2) { color: #efc78c; }
.festival-almanac .calendar-days {
 gap: 0;
 border: solid var(--almanac-line);
 border-width: 0 0 1px 1px;
}
.festival-almanac .calendar-days :is(button,.calendar-blank) {
 min-height: clamp(35px,7.1dvh,47px);
 border: solid var(--almanac-line);
 border-width: 1px 1px 0 0;
 border-radius: 0;
}
.festival-almanac .calendar-days button {
 position: relative;
 display: grid;
 place-items: center;
 padding: 0;
 background: transparent;
 color: #f6ead9;
 transform: none;
}
.festival-almanac .calendar-days button:hover { background: #e5b27828; }
.festival-almanac .calendar-days button:focus-visible { outline: 2px solid #ffd193; outline-offset: -2px; z-index: 1; }
.festival-almanac .calendar-blank { background: #170e2042; }
.festival-almanac .calendar-days button strong {
 display: grid;
 place-items: center;
 width: clamp(25px,5.9dvh,32px);
 aspect-ratio: 1;
 font: 500 clamp(1.03rem,2dvh,1.27rem)/1 var(--serif);
 font-variant-numeric: lining-nums tabular-nums;
}
.festival-almanac .calendar-days button:has(.festival-diamond) { color: #ffd295; background: #e5b27813; }
.festival-almanac .calendar-days button[aria-pressed="true"] strong {
 border-radius: 50%;
 color: #2a1525;
 background: linear-gradient(145deg,#f9db9f,#e1a664);
 box-shadow: 0 2px 7px #0c08185c;
 font-weight: 700;
}
.festival-diamond {
 display: inline-block;
 width: 6px;
 height: 6px;
 background: #f7c37b;
 transform: rotate(45deg);
}
.festival-almanac .calendar-days .festival-diamond { position: absolute; inset: 6px 6px auto auto; }
.festival-almanac .calendar-key {
 display: flex;
 gap: 5px 16px;
 flex-wrap: wrap;
 margin: 7px 0 0;
 color: #e7d5c1;
 font: .67rem/1.4 var(--sans);
}
.festival-almanac .calendar-key > span {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 margin: 0;
 color: inherit;
}
.festival-selected { width: 9px; height: 9px; border: 1px solid #f4c991; border-radius: 50%; background: #efbe81; }
.tool-portrait {
 flex: 0 0 auto;
 border: 1px solid #caa57380;
 border-radius: 10px;
 object-fit: cover;
 background: #321e37;
 box-shadow: 0 4px 10px #28153425;
}
.tool-card .tool-portrait { margin-bottom: 15px; }
.compact-tool > span { flex: 1; min-width: 0; }
@media (max-width:460px) {
 .tool-card .tool-portrait { width: 54px; height: 54px; }
}
.theme-scene [data-tool="rashifal"] .sign-chip-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
.theme-scene [data-tool="rashifal"] .sign-chip-grid button { min-height: 48px; padding: 4px 2px; }
.theme-scene [data-tool="rashifal"] .sign-chip-grid strong { font-size: .65rem; }
.theme-scene [data-tool="rashifal"] .sign-chip-grid svg { width: 20px; height: 20px; }
.theme-scene .tarot-section { padding: 15px 0 16px; }
.theme-scene .tarot-section .tarot-card { height: clamp(155px,calc(100dvh - 425px),265px); }
.theme-scene [data-tool="numerology"] .number-modes { margin-bottom: 5px; }
.theme-scene [data-tool="numerology"] .number-modes legend { margin-bottom: 5px; }
.theme-scene [data-tool="numerology"] .number-mode-options { gap: 5px; }
.theme-scene [data-tool="numerology"] .number-mode-options label { min-height: 44px; }
.theme-scene [data-tool="numerology"] .number-mode-options label > span > span { font-size: .68rem; line-height: 1.3; }
.theme-scene [data-tool="numerology"] :is(.field-note,.check-field) { margin-bottom: 3px; }
.theme-scene [data-tool="numerology"] .check-field { min-height: 28px; }
.theme-scene [data-tool="numerology"] .calculator-form > h2 { display: none; }
.theme-scene [data-tool="namkaran"] #tool-form { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 0 8px; }
.theme-scene [data-tool="namkaran"] #tool-form > :not(.field) { grid-column: 1 / -1; }

@media (min-width:761px) and (max-height:680px) {
 [data-vedanga-art="tarot"] .theme-scene .tarot-section .tarot-card { height: clamp(135px,calc(100dvh - 455px),225px); }
}
@media (max-width:760px) {
 [data-vedanga-layout] :is(.workspace-form-actions #calculate-button,.workspace-form-actions [data-theme-next],.workspace-form-actions [data-theme-back],.tarot-input-row #tarot-draw) {
  flex: 0 1 auto;
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  font-size: .82rem;
  line-height: 1.35;
 }
 [data-vedanga-layout] :is(.focus-workspace,#tarot-focus) { min-height: 38px; font-size: .8rem; }
 [data-vedanga-layout] .focus-workspace svg { width: 15px; height: 15px; }
 .theme-scene .tarot-input-row { align-items: center; }
 .theme-scene .tarot-input-row input { min-height: 40px; padding-block: 7px; }
 .theme-scene .page-heading h1 { font-size: clamp(1.75rem,6.8vw,2.3rem); }
 .theme-scene .page-heading p { font-size: .84rem; }
 .theme-scene .tarot-section .tarot-card { height: auto; }
 .theme-scene [data-tool="matching"] .birth-fields > .form-grid > .field:has(select) { grid-area: auto; }
 .theme-scene .calculator-form .birth-fields .check-field { min-height: 32px; }
}
@media (max-width:760px), (max-height:660px) {
 .theme-scene [data-tool="rashifal"] .sign-input-stage { display: none; }
 .theme-scene [data-tool="rashifal"] #tool-form:has(.sign-chip-grid) .field:has(#daily-sign) { display: block; }
 .theme-scene [data-tool="rashifal"] #tool-form { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 6px 8px; }
 .theme-scene [data-tool="rashifal"] #tool-form > :not(.field) { grid-column: 1 / -1; }
 .theme-scene [data-tool="rashifal"] #tool-form > .field { margin: 0; min-width: 0; }
}
@media (max-width:460px) {
 .theme-scene .breadcrumbs { display: none; }
 .theme-scene .page-heading h1 { font-size: clamp(1.5rem,6.2vw,2rem); }
 .theme-scene .calculator-form > h2 { font-size: 1.22rem; }
 .theme-scene [data-tool="numerology"] .number-mode-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .theme-scene [data-tool="numerology"] .number-mode-options label { padding: 5px 6px; }
 .theme-scene [data-tool="numerology"] .number-modes legend { font-size: .79rem; line-height: 1.35; }
 .theme-scene [data-tool="numerology"] .number-mode-options label strong { font-size: .79rem; line-height: 1.35; }
 .theme-scene [data-tool="numerology"] .number-mode-options label > span > span { display: none; }
 .theme-scene .theme-number-inputs:not(:has(#number-name:focus)) #number-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
 }
 .theme-scene .tarot-section .tarot-intro h2 { font-size: 1.45rem; }
 .theme-scene .tarot-section .tarot-intro > p { margin-top: 4px; }
 .theme-scene .tarot-section > .container { row-gap: 5px; }
 .theme-scene .tarot-section .tarot-card { max-width: min(82px,23vw); }
}

[data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead { padding-block: 15px 20px; }
[data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead .breadcrumbs { padding: 0; margin-bottom: 4px; }
[data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead .page-heading { padding: 0; }
[data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead h1 {
 font-size: clamp(1.8rem,3.45vw,3.1rem);
 margin-top: 3px;
 max-width: 31ch;
}
[data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead :is(.page-heading p,.city-feature-labels) { margin-top: 6px; }
[data-vedanga-layout="city"] .theme-lead:has(.city-hero) + .city-workbench { margin-top: -15px; }
@media (max-width:760px), (max-height:680px) {
 [data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead { padding-block: 12px 14px; margin-bottom: 12px; }
 [data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead h1 { font-size: clamp(1.52rem,6.5vw,2.15rem); }
 [data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead .page-heading p { font-size: .84rem; line-height: 1.42; }
 [data-vedanga-layout="city"] main:has(.city-workbench,.today-panchang-panel) .theme-lead :is(.page-heading > .eyebrow,.city-sky-panel,.city-feature-labels) { display: none; }
 [data-vedanga-layout="city"] .theme-lead:has(.city-hero) + .city-workbench { margin-top: 0; }
 [data-vedanga-layout="city"] .city-controls { padding: 12px; }
 [data-vedanga-layout="city"] .city-controls > .eyebrow { display: none; }
 [data-vedanga-layout="city"] .city-controls .city-controls-title { margin-top: 6px; }
 [data-vedanga-layout="city"] .city-controls > p { margin-top: 5px; }
 [data-vedanga-layout="city"] .city-controls .regional-form { gap: 5px; }
 [data-vedanga-layout="city"] .city-controls .panchang-controls {
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px 7px;
 }
 [data-vedanga-layout="city"] .city-controls .panchang-controls label { grid-column: 1 / -1; margin-top: 0; }
 [data-vedanga-layout="city"] .city-controls .panchang-controls .button { margin: 0; padding-inline: 9px; }
 [data-vedanga-layout="city"] .city-controls .panchang-controls:has(select + label) { grid-template-columns: repeat(2,minmax(0,1fr)); }
 [data-vedanga-layout="city"] .city-controls .panchang-controls:has(select + label) label { grid-column: auto; grid-row: 1; align-self: end; }
 [data-vedanga-layout="city"] .city-controls .panchang-controls:has(select + label) select { grid-row: 2; }
 [data-vedanga-layout="city"] .city-controls .panchang-controls:has(select + label) .button { grid-column: 1 / -1; }
}
@media(prefers-reduced-motion:reduce) {
 [data-vedanga-layout] :is(.tools-popover,.locale-picker > ul) { animation: none !important; }
 [data-vedanga-layout] .theme-scene * { transition: none !important; }
 [data-vedanga-layout] .theme-lead .theme-art { animation: none !important; }
}
 
.workspace-dialog:not(.tarot-focus-dialog) .calculator-layout { align-items: stretch; }
.workspace-dialog:not(.tarot-focus-dialog) .calculator-form { padding: clamp(11px,2vh,18px) clamp(12px,2vw,21px); background: #fbf6eb; }
.workspace-dialog .calculator-form > .eyebrow { display: none; }
.workspace-dialog .calculator-form > h2 { margin: 0 0 8px; font-size: clamp(1.18rem,2.1vw,1.55rem); }
.workspace-dialog .calculator-form .field { min-width: 0; gap: 3px; margin-bottom: 7px; }
.workspace-dialog .calculator-form .field label { margin: 0; line-height: 1.4; }
.workspace-dialog .calculator-form .field :is(input,select) { min-height: 40px; padding-block: 5px; }
.workspace-dialog .calculator-form .birth-fields { margin-bottom: 5px; }
.workspace-dialog .calculator-form .birth-fields legend:empty { display: none; }
.workspace-dialog .calculator-form .birth-fields .form-grid { gap: 0 8px; }
.workspace-dialog .calculator-form .birth-fields .check-field { margin: 0; min-height: 31px; }
.workspace-dialog .calculator-form .coordinate-details { margin: 1px 0 4px; padding: 0; }
.workspace-dialog .calculator-form .coordinate-details summary { min-height: 33px; padding-block: 5px; }
.workspace-dialog .calculator-form .form-privacy { margin: 4px 0 0; padding: 4px 0 0; line-height: 1.45; }
.workspace-dialog .calculator-form .workspace-form-actions { position: sticky; bottom: 0; z-index: 2; margin: 4px 0 0; padding: 3px 0; background: #fbf6eb; }
.workspace-dialog [data-tool="festivals"] #calculate-button { display: inline-flex; align-items: center; }

.workspace-dialog .calculator-result:has(.experience-intro) {
 align-self: stretch;
 position: relative;
 isolation: isolate;
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 gap: 8px;
 min-height: 0;
 padding: clamp(10px,2.4vh,21px);
 border: 1px solid #af916a;
 border-radius: 15px;
 color: var(--theme-light);
 background: #21172f;
 overflow: hidden;
}
.workspace-dialog .calculator-result:has(.experience-intro)::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: -1;
 background: linear-gradient(0deg,#21172f,#21172f45),var(--theme-image) center / cover no-repeat;
 filter: blur(25px);
 opacity: .57;
 pointer-events: none;
}
.workspace-dialog .calculator-result:has(.experience-intro)::after {
 content: "";
 order: -1;
 flex: 1 1 0;
 min-height: 0;
 width: 100%;
 background: var(--theme-image) center / contain no-repeat;
 mask-image: linear-gradient(180deg,#000 78%,transparent);
 pointer-events: none;
}
.workspace-dialog .calculator-result:has(.experience-intro) .experience-intro {
 max-width: 63ch;
 margin: 0;
 padding: 0;
 text-align: left;
 background: transparent;
 color: inherit;
}
.workspace-dialog .experience-intro :is(svg,.eyebrow) { display: none; }
.workspace-dialog .experience-intro h2 { max-width: none; margin: 0 0 5px; font-size: clamp(1.23rem,3vh,1.92rem); color: var(--theme-light); }
.workspace-dialog .experience-intro p { max-width: 60ch; margin: 0; color: var(--theme-muted); line-height: 1.5; }
.workspace-dialog .calculator-result .lunar-map {
 width: min(100%,clamp(190px,33dvh,260px));
}
.workspace-dialog .calculator-result .tool-experience .lunar-map svg { max-height: none; }
.workspace-dialog [data-tool="matching"] .calculator-result {
 width: auto;
 min-width: 0;
 max-width: none;
 min-height: 0;
 margin: 0;
}
.workspace-dialog [data-tool="festivals"] .calculator-result {
 position: relative;
 inset: auto;
 max-height: 100%;
 min-height: 0;
}
.workspace-dialog .calculator-result:has(>.workspace-calendar) {
 justify-content: center;
 gap: 0;
 overflow: auto;
}
.workspace-dialog .calculator-result:has(>.workspace-calendar)::after {
 position: absolute;
 inset: 0;
 z-index: -1;
 background-position: right center;
 mask-image: linear-gradient(90deg,transparent 36%,#000 78%);
}
.workspace-dialog .calculator-result:has(>.workspace-calendar) #tool-result { display: none; }
.workspace-dialog .compact-festival-calendar.workspace-calendar {
 width: min(100%,440px);
 align-self: flex-start;
 margin: 0;
}
.workspace-dialog .workspace-calendar summary { display: none; }
.workspace-dialog [data-tool="rashifal"] .sign-input-stage { margin-block: 0 8px; }
.workspace-dialog [data-tool="rashifal"] .sign-chip-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; }
.workspace-dialog [data-tool="rashifal"] .sign-chip-grid button { min-height: 45px; padding: 4px 2px; }
.workspace-dialog [data-tool="rashifal"] .sign-chip-grid svg { width: 20px; height: 20px; }
.workspace-dialog [data-tool="numerology"] #tool-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.workspace-dialog [data-tool="numerology"] .number-modes { margin: 0; }
.workspace-dialog [data-tool="numerology"] .number-modes legend { margin-bottom: 5px; }
.workspace-dialog [data-tool="numerology"] .number-mode-options { gap: 5px; }
.workspace-dialog [data-tool="numerology"] .number-mode-options label { min-height: 44px; padding: 6px 7px; }
.workspace-dialog [data-tool="numerology"] .number-mode-options label > span > span { font-size: .68rem; line-height: 1.3; }
.workspace-dialog [data-tool="numerology"] .theme-number-inputs { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.workspace-dialog [data-tool="numerology"] .theme-number-inputs .field { margin: 0; }
.workspace-dialog [data-tool="numerology"] .check-field { margin: 0; }
.workspace-dialog [data-tool="numerology"] .workspace-form-actions > button { gap: 8px; padding-inline: 12px; }
[data-vedanga-art="moon-sign"] .theme-scene .experience-intro { max-width: 430px; }
@media (max-width:760px) {
 .workspace-dialog .calculator-form .birth-fields .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .workspace-dialog .calculator-form .birth-fields .field:has(select) { min-width: 0; }
}
@media (min-width:701px) and (max-width:760px) {
 .workspace-dialog .calculator-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:700px) {
 .workspace-dialog .tool-workbench[data-workspace-view="input"] .calculator-result:has(.experience-intro) { display: none; }
 .workspace-dialog .tool-workbench[data-workspace-calendar] > .workbench-toolbar { display: flex; }
 .workspace-dialog .calculator-result:has(>.workspace-calendar) { padding: 7px 9px; }
 :is(.workspace-dialog,.theme-scene) .calculator-form .field :is(input:not([type="checkbox"]),select) {
  min-height: 44px;
  font-size: 16px;
 }
 :is(.workspace-dialog,.theme-scene) .calculator-form .field label { font-size: .8rem; line-height: 1.35; }
 :is(.workspace-dialog,.theme-scene) .workspace-form-actions > :is(#calculate-button,[data-theme-next],[data-theme-back],.focus-workspace) {
  min-height: 44px;
 }
 :is(.workspace-dialog,.theme-scene) .tarot-input-row :is(#tarot-name,#tarot-draw) { min-height: 44px; }
 :is(.workspace-dialog,.theme-scene) .tarot-input-row #tarot-name { font-size: 16px; }
 .workspace-dialog .workspace-views button,.theme-scene .workspace-views button {
  min-height: 44px;
  padding: 6px 12px;
  font-size: .8rem;
 }
 .workspace-dialog .calculator-result .result-head > p,
 .workspace-dialog .calculator-result .scene-detail p {
  font-size: .82rem;
  line-height: 1.55;
 }
 .festival-almanac { padding-inline: 8px; }
 .festival-almanac .calendar-week span { font-size: .59rem; }
 .festival-almanac .calendar-days .festival-diamond { width: 5px; height: 5px; inset: 5px 4px auto auto; }
}
@media (max-width:460px) {
 .workspace-dialog [data-tool="rashifal"] .sign-input-stage { display: none; }
 .workspace-dialog [data-tool="rashifal"] #tool-form:has(.sign-chip-grid) .field:has(#daily-sign) { display: grid; }
 .workspace-dialog [data-tool="numerology"] .number-mode-options label > span > span { display: none; }
}
