/* Ayurveda's shared presentation layer. Access, records and tool state remain platform-owned. */
:root {
  --font-head: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Devanagari", sans-serif;
  --ay95-canvas: #f8f9f6; --ay95-paper: #fff; --ay95-canvas-deep: #eef2eb;
  --ay95-ink: #24332b; --ay95-ink-soft: #5c6a61;
  --ay95-forest-950: #173d2e; --ay95-forest-900: #20513d;
  --ay95-forest-800: #286147; --ay95-forest-700: #327354;
  --ay95-forest-050: #f1f6ef; --ay95-forest-100: #e8f0e5;
  --ay95-saffron: #aa8037; --ay95-saffron-soft: #f5eddc;
  --ay95-line: #dfe5dc; --ay95-line-warm: #e7e4da;
  --ay95-r-md: 20px; --ay95-r-lg: 28px; --ay95-max: 1240px;
  --ay95-shadow-sm: 0 4px 16px #1e352a05;
  --ay95-shadow-md: 0 14px 36px #1e352a0c;
  --ay95-shadow-float: 0 22px 60px #1e352a18;
}
body:is(.v2-shell,.remedies-shell){margin:0;background:var(--ay95-canvas);font-family:var(--font-body,Inter,system-ui,sans-serif);color:var(--ay95-ink);-webkit-font-smoothing:antialiased}
:is(.v2-shell,.remedies-shell) :is(h1,h2,h3,h4){font-family:var(--font-head);font-weight:650;letter-spacing:-.035em}
html[lang="hi"] :is(h1,h2,h3,h4){letter-spacing:0;line-height:1.4}
:is(.v2-shell,.remedies-shell) .container{max-width:var(--ay95-max)}
/* Platform chrome retains its own menus, sign-in, credits and language controls. */
:is(.v2-shell,.remedies-shell) #lvh[data-theme]{--lvh-bg:#ffffffed;--lvh-fg:#243b2f;--lvh-mut:#58695e;--lvh-line:#dfe5dc;--lvh-menu:#fff;--lvh-drawer:#f8faf7;--lvh-hover:#eef4eb;background:var(--lvh-bg);box-shadow:none}
:is(.v2-shell,.remedies-shell) #lvh .lvh-cta{box-shadow:none;border-radius:12px;color:#fff}
.ayur-worldnav{background:#ffffffd9;border-bottom:1px solid var(--ay95-line);box-shadow:none}
.ayur-worldnav__inner{min-height:58px}.ayur-worldnav .v2-desktop-nav>a{font-size:13px;font-weight:600;border-radius:9px}
.ayur-worldnav__today{border-radius:10px}.v2-more-menu{border-radius:16px;border:1px solid var(--ay95-line);box-shadow:var(--ay95-shadow-float)}
.v2-mobile-bottom{background:#fffffff5;border-top:1px solid var(--ay95-line);backdrop-filter:blur(18px)}
.v2-mobile-more{background:var(--ay95-paper)}
/* Home: editorial headline, useful search, then the complete goal collection. */
.v2-home-hero{padding:clamp(36px,5vw,70px) 0 44px;border-bottom:0;background:linear-gradient(125deg,#f8faf6,#f0f4ec)}
.v2-home-hero::before{display:none}.v2-home-hero__grid{grid-template-columns:minmax(0,1.15fr) minmax(350px,.9fr);gap:clamp(32px,5vw,64px);align-items:center}
.v2-home-hero h1{max-width:12ch;font-size:clamp(40px,5.3vw,68px);font-weight:650;line-height:1.04;letter-spacing:-.055em;margin:20px 0 24px}
.v2-kicker,.v2-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--ay95-forest-700);font-weight:700}
.v2-home-hero__lead{font-size:17px;line-height:1.75;max-width:52ch}
.ayur-home-search{display:flex;align-items:center;gap:12px;max-width:550px;padding:8px 10px 8px 18px;margin:26px 0 20px;border:1px solid #d4dfd2;background:#fff;border-radius:16px;box-shadow:0 6px 22px #27433406;color:#69786c}
.ayur-home-search input[type="search"]{flex:1;width:100%;min-width:0;min-height:42px;padding:6px 0;border:0;background:transparent;box-shadow:none;border-radius:0;font:inherit;font-size:14px;color:#26382b}
.ayur-home-search button{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border:0;border-radius:11px;background:#286147;color:#fff;cursor:pointer}
.ayur-home-search:focus-within{border-color:#327354;box-shadow:0 0 0 3px #32735418}
.v2-home-hero__actions{gap:10px!important;margin-top:18px}.v2-home-hero__actions .btn{font-size:13px;padding:12px 17px;min-height:46px}
.v2-home-hero__visual{max-width:440px;margin-top:26px}.v2-home-editorial{max-height:165px;overflow:hidden;border-radius:18px;background:transparent}
.v2-home-editorial img{width:100%;height:165px;object-fit:cover}
.v2-home-hero__panel{padding:24px;background:#ffffffc9;border:1px solid #dce6d7;border-radius:28px;box-shadow:0 20px 55px #2b472d08}
.v2-home-hero__panel h2{font-size:22px;letter-spacing:-.025em;margin:0 0 20px}
.v2-goal-grid{gap:10px}.v2-goal-card{min-height:92px;padding:14px 23px 14px 12px;gap:10px;background:#fff;border:1px solid #e0e7db;border-radius:16px;box-shadow:none}
.v2-goal-card__icon{border-radius:12px;width:38px;height:42px;background:#edf3e8}.v2-goal-card__body strong{font-size:14px;line-height:1.4}.v2-goal-card__body span{font-size:12px;line-height:1.5}
.v2-trust-strip{padding:18px 0;border-color:#e2e7df}.v2-trust-strip strong{font-size:13px}.v2-trust-strip span{font-size:12px;line-height:1.55}
/* The full catalogue is discoverable without horizontal card carousels on phones. */
.ayur-home-remedies-section{background:#fff;border-color:#e2e7df;padding-block:56px}
.ayur-home-section-head{max-width:780px;text-align:left;margin-inline:0}.ayur-home-section-head__title{font-size:clamp(28px,3vw,42px);line-height:1.15;letter-spacing:-.04em}
.ayur-home-section-head__subtitle{font-size:15px;line-height:1.75;margin-inline:0}.ayur-home-section-head__badge{box-shadow:none;background:#f1f5ec;color:#426a46;border-color:#dde7d6}
.ayur-home-metrics-strip{max-width:none;margin:28px 0 32px;gap:0;background:#f7f9f3;border:1px solid #e1e7d9;border-radius:20px;overflow:hidden}
.ayur-home-metric-card{background:transparent;border:0;border-right:1px solid #e1e7d9;border-radius:0;padding:20px;box-shadow:none}.ayur-home-metric-card:last-child{border-right:0}
.ayur-home-metric-card__num{font-size:30px;font-weight:650;letter-spacing:-.045em}.ayur-home-metric-card__label{font-size:12px}
.ayur-home-tools-grid,.v2-studio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ayur-home-tool-card,.v2-studio-card,.v2-module-card{padding:24px;border:1px solid #e1e7dc;border-radius:22px;box-shadow:none;background:#fff}
.ayur-home-tool-card__icon{width:50px;height:50px;font-size:25px;border-radius:15px;background:#eff4e9;box-shadow:none}
.ayur-home-tool-card__title,.v2-studio-card h3,.v2-module-card h3{font-size:20px;line-height:1.3}.ayur-home-tool-card__desc,.v2-studio-card p{font-size:14px;line-height:1.7;color:#5c6a61}
.ayur-home-tool-card__badge{font-size:10px;font-weight:650;letter-spacing:.08em;border-radius:7px;background:#f2f5ef;color:#496a50;border-color:#dfe7d9}
.ayur-home-tool-card__action{font-size:13px;font-weight:650;padding-top:18px;border-top:1px solid #eef1e9}
:is(.v2-goal-card,.v2-studio-card,.v2-module-card,.ayur-home-tool-card,.remedy-ailment-card):hover{transform:translateY(-2px);border-color:#a9c2a7;box-shadow:0 12px 26px #1e352a0a}
/* Pass: inherits canonical ultra-premium Royal World Pass styling from core/worldpass-gate.php */
/* Studio, module, reading, record, settings and guided-tool surfaces. */
.v2-section{padding-block:40px}.v2-section-head .h2{font-size:30px}.v2-studio-hero,.v2-module-hero,.v2-today-hero{background:linear-gradient(130deg,#f0f5eb,#f9faf7);border-bottom:1px solid #e2e8dc;padding-block:40px}
:is(.v2-studio-hero,.v2-module-hero,.v2-today-hero) h1{font-size:clamp(34px,4.4vw,56px);line-height:1.1;letter-spacing:-.045em}
.v2-module-start{background:white;border:1px solid #dbe5d5;border-radius:24px;box-shadow:var(--ay95-shadow-md);padding:26px}
:is(.v2-state-card,.ayc-card,.lib-card,.mealcard,.rev-item,.rev-prop,.card,.quiz-card,.tracker-card){border-radius:20px;border-color:#dfe6da;box-shadow:var(--ay95-shadow-sm)}
.v2-input-contract>div{background:#fff;border:1px solid #e1e7dc;border-radius:16px;padding:20px}
.v2-action-plan li{line-height:1.7}.ayc-body{line-height:1.85}.v2-search-result{border-radius:18px;background:#fff;padding:20px;gap:16px}.v2-search-result strong{font-size:17px}.v2-search-result small{line-height:1.65}
:is(.v2-shell,.remedies-shell) .btn{border-radius:12px;font-weight:600;box-shadow:none;min-height:44px}
:is(.v2-shell,.remedies-shell) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){font-family:inherit;font-size:1rem;border-color:#cedbcc;border-radius:12px;max-width:100%}
:is(.v2-shell,.remedies-shell) :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:#286147}
:is(.v2-shell,.remedies-shell) :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #2769ad;outline-offset:3px}
:is(.v2-shell,.remedies-shell) :is(button,input,select):disabled{cursor:not-allowed}
/* Remedy suite: readable workspaces, consistent filters and preserved warning semantics. */
.remedy-hero{background:linear-gradient(120deg,#eaf1e4,#f8f7ef);padding:48px 24px 36px;border-bottom:1px solid #dce5d4;color:#284331;box-shadow:none}.remedy-hero::after{display:none}
.remedy-hero__title{font-size:clamp(34px,4.1vw,54px);color:#1e412e;max-width:25ch;line-height:1.12;letter-spacing:-.045em}
.remedy-hero__subtitle{color:#526c57;font-size:16px;line-height:1.8}.remedy-hero__badge{background:#f8fbf4;border:1px solid #d3dfc8;color:#4a6b3c;border-radius:8px;font-size:11px;box-shadow:none;backdrop-filter:none}
.remedy-hero__stats{border-color:#d1dfc8}.remedy-stat-item strong{color:#315f3e}.remedy-stat-item span{color:#607258}
/* Legacy remedy templates have inline dark-hero colours; harmonise both sides together. */
.remedies-shell .remedy-hero[style]{background:linear-gradient(120deg,#eaf1e4,#f8f7ef)!important}
.remedies-shell .remedy-hero__title[style]{color:#1e412e!important}
.remedies-shell .remedy-hero__subtitle[style]{color:#526c57!important}
.remedies-shell .remedy-hero__badge[style]{background:#f8fbf4!important;border-color:#d3dfc8!important;color:#4a6b3c!important}
.remedies-shell .remedy-hero .remedy-stat-item strong[style]{color:#315f3e!important}
.page-first-aid .remedy-hero[style]{background:linear-gradient(120deg,#f9eeeb,#fff8f3)!important}
.page-first-aid .remedy-hero__title[style]{color:#7c3027!important}
.page-first-aid .remedy-hero__badge[style]{background:#fff7f5!important;color:#7c3027!important;border-color:#e8c8c1!important}
.ayur-tool-nav-container{background:#fcfdf9ed;box-shadow:none;border-color:#dfe7d8}.ayur-tool-nav__item{border-radius:10px;min-height:44px;font-size:12px}.ayur-tool-nav__item.active{box-shadow:none;background:#286147}
:is(.remedy-search-card,.condition-overview-card,.remedy-card,.protocol-card,.formulation-card,.ingredient-card,.body-map-card,.organ-detail-card){background:#fff;border-color:#dee6d7;border-radius:22px;box-shadow:var(--ay95-shadow-sm)}
.remedy-search-card{padding:24px}.remedy-search-box input{background:#f9fbf6;border:1px solid #d5e0ce;min-height:52px}.remedy-pill-btn{min-height:42px;border-radius:10px;font-size:13px}
.remedy-ailments-grid{gap:16px}.remedy-ailment-card{padding:22px;border-radius:18px;content-visibility:visible}.remedy-ailment-card__desc{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:14px;line-height:1.65}
.remedy-breadcrumb{padding-block:18px;font-size:13px}.ayur-legal-disclaimer-card{border-radius:18px;box-shadow:none}
.pantry-item-card{border-radius:16px;border-color:#dfe6d8;box-shadow:none;min-height:80px}.pantry-item-card.selected{background:#eaf3e4;border-color:#387249;box-shadow:0 0 0 1px #387249}.pantry-cat-tab{min-height:44px;border-radius:10px}.pantry-cat-tab.active{background:#286147;color:#fff}
.utility__card{border:1px solid #dfe6da;border-radius:22px;background:#fff;box-shadow:var(--ay95-shadow-sm)}
/* Retain the user's display preferences over the default palette and compact card text. */
body.large-text :is(.v2-home-hero__lead,.v2-goal-card__body strong,.v2-goal-card__body span,.v2-studio-card p,.v2-module-card p,.ayur-home-tool-card__desc,.remedy-ailment-card__desc,.v2-search-result small){font-size:1em;line-height:1.7}
body.color-friendly{--ay95-ink:#132019;--ay95-ink-soft:#334639;--ay95-line:#829681;background:#fff;color:#132019}
body.color-friendly :is(.v2-home-hero__lead,.v2-goal-card__body span,.v2-studio-card p,.ayur-home-tool-card__desc,.remedy-hero__subtitle,.remedy-stat-item span){color:#334639}
body.color-friendly :is(.v2-goal-card,.v2-studio-card,.v2-module-card,.ayur-home-tool-card,.remedy-ailment-card,.pantry-item-card,.v2-search-result,.utility__card){border:2px solid #829681}
@media(min-width:901px){.v2-home-hero__panel{align-self:center}.v2-goal-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1000px){.ayur-home-tools-grid,.v2-studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-home-hero__grid{grid-template-columns:1fr;gap:30px}.v2-home-hero h1{max-width:18ch}.v2-home-hero__visual{max-width:100%}.v2-home-editorial{max-height:160px}.v2-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .v2-home-hero{padding:30px 0}.v2-home-hero h1{font-size:42px;max-width:14ch;margin:18px 0}.v2-home-hero__lead{font-size:15px}.v2-home-hero__panel{padding:18px;border-radius:22px}.v2-home-hero__panel h2{font-size:21px}
  .v2-home-hero__actions{display:flex!important}.v2-home-hero__actions .btn{width:auto;flex:1 1 auto;font-size:12px}.v2-home-hero__visual{margin-top:20px}
  .v2-goal-grid{grid-template-columns:1fr}.v2-goal-card{min-height:76px}.v2-goal-card__body strong{font-size:15px}
  .ayur-home-tools-grid,.v2-studio-grid{display:grid;grid-template-columns:1fr;grid-auto-flow:row;grid-auto-columns:auto;margin:0;padding:0;overflow:visible;gap:14px;scroll-snap-type:none}
  .ayur-home-remedies-section{padding-block:36px}.ayur-home-tool-card,.v2-studio-card{padding:22px}.ayur-home-section-head__title{font-size:30px}.ayur-home-metrics-strip{grid-template-columns:1fr 1fr}.ayur-home-metric-card{border-bottom:1px solid #e1e7d9;padding:16px}
  .v2-section{padding-block:28px}.v2-section-head .h2{font-size:26px}.remedy-hero{padding:30px 18px}.remedy-hero__title{font-size:34px}.remedy-hero__subtitle{font-size:15px}.remedy-search-card{padding:18px}.remedy-ailments-grid{grid-template-columns:1fr}
  .v2-module-start{padding:22px}.v2-search-result{padding:16px;gap:12px}.ayur-home-search input[type="search"]{font-size:16px}
}
@media(prefers-reduced-motion:reduce){:is(.v2-shell,.remedies-shell) *, :is(.v2-shell,.remedies-shell) *::before,:is(.v2-shell,.remedies-shell) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.ayur-home-search,.v2-goal-card,.remedy-pill-btn,.ayur-home-tool-card{border:1px solid CanvasText}}
@media print{body:is(.v2-shell,.remedies-shell){background:#fff}.ayur-home-search{display:none}.v2-module-start,.remedy-card{box-shadow:none;break-inside:avoid}}

/* 2026 responsive remedy foundation: this file loads last in both Ayurveda shells. */
:is(.v2-shell,.remedies-shell),
:is(.v2-shell,.remedies-shell) *,
:is(.v2-shell,.remedies-shell) *::before,
:is(.v2-shell,.remedies-shell) *::after { box-sizing: border-box; }

:is(.v2-shell,.remedies-shell) :is(main,section,article,aside,nav,header,footer,form,fieldset,div) { min-width: 0; }
:is(.v2-shell,.remedies-shell) :is(img,svg,video,canvas,iframe) { max-width: 100%; }

/* The tool catalogue is a quiet rail on wide screens and a native disclosure on small screens. */
.ayur-tool-nav-container {
  position: relative;
  top: auto;
  z-index: 4;
  margin: 0;
  padding: 10px max(16px,calc((100vw - var(--ay95-max))/2));
  background: #fbfcf8;
  border-block: 1px solid var(--ay95-line);
  box-shadow: none;
  backdrop-filter: none;
}
.ayur-tool-switcher { width: 100%; max-width: var(--ay95-max); margin: 0 auto; }
.ayur-tool-switcher > summary {
  display: none;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ay95-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ay95-ink);
  cursor: pointer;
  list-style: none;
}
.ayur-tool-switcher > summary::-webkit-details-marker { display: none; }
.ayur-tool-switcher__label { color: var(--ay95-ink-soft); font-size: 13px; font-weight: 600; }
.ayur-tool-switcher > summary strong { margin-left: auto; color: var(--ay95-forest-800); font-size: 13px; }
.ayur-tool-switcher__arrow { margin-left: 2px; transition: transform .18s ease; }
.ayur-tool-switcher[open] .ayur-tool-switcher__arrow { transform: rotate(180deg); }
.ayur-tool-switcher > .ayur-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ayur-tool-nav__item {
  flex: 1 1 145px;
  min-height: 44px;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  white-space: normal;
  line-height: 1.25;
}
.ayur-tool-nav__icon { flex: 0 0 auto; }
.ayur-tool-nav__label { overflow-wrap: anywhere; }
.ayur-tool-nav__item.active { background: var(--ay95-forest-800); color: #fff; }

/* Shared workspaces replace fixed inline sidebars. */
.ayur-workspace {
  display: grid;
  grid-template-columns: minmax(260px,320px) minmax(0,1fr);
  gap: clamp(18px,2.4vw,28px);
  align-items: start;
  width: 100%;
}
.ayur-workspace > * { min-width: 0; max-width: 100%; }
.ayur-remedy-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--ay95-line-warm);
  border-radius: 12px;
  background: #fdfbf7;
}
.remedies-shell .remedy-page__main { width: 100%; }
.remedies-shell .remedies-list,
.remedies-shell .remedies-list > *,
.remedies-shell .remedy-card,
.remedies-shell .remedy-card__header { min-width: 0; max-width: 100%; }
.remedies-shell .remedy-card__header { flex-wrap: wrap; }
.remedy-card__title-link { color: inherit; text-decoration-color: #9bb5a5; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.remedy-card__title-link:hover { color: var(--ay95-forest-800); text-decoration-color: currentColor; }
.remedy-card__detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin: 4px 0 14px;
  padding: 10px 14px;
  border: 1px solid #cddccd;
  border-radius: 11px;
  background: #f3f7f0;
  color: var(--ay95-forest-800);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.remedy-card__detail-action:hover { border-color: var(--ay95-forest-700); background: #eaf2e7; }
.remedy-card__locked-teaser .btn { min-height: 44px; }
.symptom-chip-btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }

@media (max-width: 900px) {
  .ayur-workspace { grid-template-columns: 1fr; }
  .ayur-workspace > aside { position: static !important; }
}

@media (max-width: 700px) {
  .ayur-tool-nav-container { padding: 8px 12px; }
  .ayur-tool-switcher > summary { display: flex; }
  .ayur-tool-switcher:not([open]) > .ayur-tool-nav { display: none; }
  .ayur-tool-switcher[open] > .ayur-tool-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    max-height: min(55vh,440px);
    margin-top: 8px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--ay95-line);
    border-radius: 14px;
    background: #fff;
  }
  .ayur-tool-nav__item { width: 100%; min-height: 48px; padding: 9px; border-color: #e8ece5; }
  .remedies-shell .remedy-page__main { margin-top: 16px !important; padding-inline: 14px !important; }
  .remedies-shell .remedy-card { padding: 18px !important; border-radius: 16px !important; }
  .remedies-shell .remedy-card__header { gap: 8px !important; }
  .remedies-shell .remedy-card__title { font-size: 18px !important; }
  .remedy-card__locked-teaser { padding: 18px 14px !important; }
  .remedy-card__locked-teaser > div:last-child { flex-direction: column; align-items: stretch; }
  .remedy-card__locked-teaser .btn { width: 100%; justify-content: center; }
}

@media (max-width: 430px) {
  .ayur-tool-switcher > summary { display: grid; grid-template-columns: 1fr auto; }
  .ayur-tool-switcher__label { grid-column: 1 / -1; }
  .ayur-tool-switcher > summary strong { margin: 0; }
  .ayur-tool-switcher[open] > .ayur-tool-nav { grid-template-columns: 1fr; max-height: 52vh; }
  .ayur-remedy-facts { grid-template-columns: 1fr; padding: 12px; }
  .remedies-shell .remedy-hero__stats { grid-template-columns: 1fr 1fr; }
  .remedies-shell .remedy-stat-item strong { font-size: 19px; }
  .remedies-shell .remedy-stat-item span { font-size: 12px; }
  .remedies-shell .remedy-card__footer { align-items: stretch !important; gap: 10px !important; flex-direction: column; }
  .remedies-shell .remedy-btn-bookmark { width: 100%; min-height: 44px; justify-content: center; }
}

/* Browser verification: expose the desktop rail even while the mobile disclosure is closed. */
@media (min-width: 701px) {
  .ayur-tool-switcher:not([open]) > .ayur-tool-nav { display: flex; }
}
@media (min-width: 390px) and (max-width: 700px) {
  .ayur-tool-switcher[open] > .ayur-tool-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Shared tool workspaces and result cards: override legacy inline desktop tracks safely. */
:is(.track-switcher-grid,.dose-anupana-grid,.curated-protocols-grid,.remedy-dosage-grid,.ama-checklist-grid,.stages-grid,.samsarjana-grid,.kadha-formulator-grid,.master-cards-grid,.domains-tabs-grid,.dhatu-chain-grid,.ritu-pills-grid,.ahara-vihara-grid) > * { min-width: 0; }
.remedies-shell .remedy-card { overflow: clip; }
.remedies-shell .remedy-card__header > div:first-child { flex: 1 1 260px; }
.remedies-shell :is(.remedy-bookmark-btn,.remedy-btn-bookmark) { min-height: 44px; text-decoration: none; }
.remedies-shell .remedy-card__lock-overlay,
.remedies-shell .remedy-card__locked-teaser,
.remedies-shell .remedy-lock-teaser {
  margin-top: 16px !important;
  padding: 20px !important;
  border: 1px solid #decba5 !important;
  border-radius: 14px !important;
  background: #fcf8ef !important;
  color: var(--ay95-ink) !important;
  box-shadow: none !important;
}
.remedies-shell :is(.remedy-card__lock-overlay,.remedy-card__locked-teaser,.remedy-lock-teaser) a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px !important;
  border: 1px solid var(--ay95-forest-800) !important;
  border-radius: 11px !important;
  background: var(--ay95-forest-800) !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1.3;
  text-decoration: none !important;
}
.remedies-shell :is(.remedy-card__lock-overlay,.remedy-card__locked-teaser,.remedy-lock-teaser) a:hover { background: var(--ay95-forest-950) !important; }
.remedies-shell .remedy-safety-alert { line-height: 1.6; }

@media (max-width: 980px) {
  .track-switcher-grid,
  .curated-protocols-grid,
  .ama-checklist-grid,
  .samsarjana-grid,
  .master-cards-grid,
  .domains-tabs-grid,
  .dhatu-chain-grid,
  .ritu-pills-grid,
  .remedy-dosage-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .ayur-remedies-first-aid .remedy-page__main > div[style*="grid-template-columns: 320px"],
  .ayur-remedies-saundarya-nikhar .remedy-page__main > div[style*="grid-template-columns: 320px"] { grid-template-columns: minmax(240px,300px) minmax(0,1fr) !important; }
}

@media (max-width: 760px) {
  .kadha-formulator-grid,
  .stages-grid,
  .ahara-vihara-grid,
  .dose-anupana-grid,
  .ayur-remedies-first-aid .remedy-page__main > div[style*="grid-template-columns: 320px"],
  .ayur-remedies-saundarya-nikhar .remedy-page__main > div[style*="grid-template-columns: 320px"] { grid-template-columns: 1fr !important; }
  .body-explorer-layout { grid-template-columns: 1fr; }
  .body-map-card { position: static; top: auto; }
  .first-aid-protocol-item { min-height: 48px; }
}

@media (max-width: 520px) {
  .track-switcher-grid,
  .curated-protocols-grid,
  .ama-checklist-grid,
  .samsarjana-grid,
  .master-cards-grid,
  .domains-tabs-grid,
  .dhatu-chain-grid,
  .ritu-pills-grid,
  .remedy-dosage-grid { grid-template-columns: 1fr !important; }
  .remedies-shell .remedy-card__header { flex-direction: column; align-items: stretch !important; }
  .remedies-shell :is(.remedy-bookmark-btn,.remedy-btn-bookmark) { width: 100%; justify-content: center; }
  .pantry-ingredients-grid { grid-template-columns: 1fr; }
  .monograph-properties-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .remedy-dosage-bar { grid-template-columns: 1fr; }
}

/* Dadi Ke Nuskhe recovered as a real reviewed-corpus browser. */
.dadi-search-card { margin: 24px 0 28px; }
.dadi-search-card .ayur-home-section-head { margin: 0 0 20px; text-align: left; }
.dadi-search-form > label { display: block; margin-bottom: 7px; color: var(--ay95-ink); font-size: 14px; font-weight: 700; }
.dadi-search-form .remedy-search-box { padding-right: 7px; }
.dadi-search-form .remedy-search-box input { min-width: 0; }
.dadi-active-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 1px solid #d7e3d3; border-radius: 11px; background: #f3f7f0; font-size: 14px; }
.dadi-active-filter a { margin-left: auto; color: var(--ay95-forest-800); font-weight: 700; text-decoration: none; }
.dadi-topics-grid .remedy-ailment-card { display: flex; color: inherit; }
.dadi-topics-grid .remedy-ailment-card__footer { align-items: stretch; flex-direction: column; gap: 10px; }
.dadi-topics-grid .remedy-card__detail-action { margin: 0; }
.dadi-empty-state { padding: clamp(24px,5vw,48px); text-align: center; }
@media (max-width: 520px) {
  .dadi-search-card { padding: 16px; }
  .dadi-search-form .remedy-search-box { display: grid; grid-template-columns: auto minmax(0,1fr); padding: 8px 10px; }
  .dadi-search-form .remedy-search-box .btn { grid-column: 1 / -1; width: 100%; }
  .dadi-active-filter a { width: 100%; margin-left: 0; }
}

/* Verified touch targets for horizontally scrollable filters and calculator controls. */
.remedies-shell :is(.pantry-cat-tab,.organ-nav-pill,.batch-btn,.ritu-pill,.domain-tab,.track-switch-card) { min-height: 44px; }
.remedies-shell input[type="range"] { min-height: 44px; touch-action: pan-y; }
.remedies-shell :is(.ama-checklist-grid,.pantry-item-card) label,
.remedies-shell label:has(> .ama-checkbox) { min-height: 44px; }
.remedies-shell .remedy-card__detail-action,
.remedies-shell .remedy-unlock-action { text-decoration: none !important; }

.kitchen-empty-state { margin: 22px 0; padding: clamp(22px,4vw,36px); text-align: center; }
.kitchen-empty-state h2 { margin: 0 0 8px; font-size: clamp(22px,4vw,30px); }
.kitchen-empty-state p { max-width: 54ch; margin: 0 auto 18px; color: var(--ay95-ink-soft); }

/* Homepage final hierarchy: remove repetitive status labels and surface useful choices sooner. */
.ayur-home-tool-card__badge { display: none; }
.ayur-home-search input[type="search"] { min-height: 44px; }
@media (max-width: 600px) {
  .v2-home-hero__visual { display: block; width: 100%; max-width: 100%; margin: 16px auto 0; }
  .v2-home-editorial { max-height: 190px; width: 100%; object-fit: cover; border-radius: 16px; }
  .v2-home-hero__panel { margin-top: 18px; }
  .ayur-home-metrics-strip { display: none; }
}

.remedy-ingredients-list { margin: 18px 0; padding: 16px; border: 1px solid var(--ay95-line); border-radius: 13px; background: #f8faf6; }
.remedy-ingredients-list h4 { margin: 0 0 10px; font-size: 16px; }
.remedy-ingredients-list ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.remedy-ingredients-list li { padding: 7px 10px; border: 1px solid #dce4d8; border-radius: 9px; background: #fff; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.remedy-ingredients-list p { margin: 10px 0 0; color: var(--ay95-ink-soft); font-size: 12px; line-height: 1.55; }

/* Shared studio, module, and guided journey usability. */
.play-wrap,.journey { width: 100%; min-width: 0; }
.journey { max-width: 840px; margin-inline: auto; }
.journey-step__inner { padding: clamp(20px,4vw,38px); border: 1px solid var(--ay95-line); border-radius: 20px; background: #fff; box-shadow: var(--ay95-shadow-sm); }
.journey-step__title { font-size: clamp(25px,4vw,38px); line-height: 1.15; overflow-wrap: anywhere; }
.choice-grid,.field-grid,.step-ack__options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice,.check-confirm,.checklist__item,.step-ack__opt { min-height: 48px; padding: 11px 13px; border: 1px solid var(--ay95-line); border-radius: 12px; background: #fff; cursor: pointer; }
.choice:has(input:checked),.step-ack__opt:has(input:checked) { border-color: var(--ay95-forest-700); background: var(--ay95-forest-050); box-shadow: 0 0 0 1px var(--ay95-forest-700); }
.journey :is(input,select,textarea) { max-width: 100%; }
.journey textarea { width: 100%; resize: vertical; }
.journey__nav { position: sticky !important; bottom: 0 !important; z-index: 20; display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); border: 1px solid var(--ay95-line); border-radius: 15px 15px 0 0; background: rgba(255,254,250,.96); backdrop-filter: blur(14px); box-shadow: 0 -8px 25px rgba(20,55,40,.08); }
.journey__nav .btn { min-width: 120px; }
.journey .alert--error { margin-top: 16px; padding: 12px 14px; border: 1px solid #d88f93; border-radius: 10px; background: #fff1f1; color: #7f1d1d; }
.journey [aria-invalid="true"] { outline: 3px solid rgba(168,41,47,.24); outline-offset: 3px; }
.v2-module-start .btn-lg { width: 100%; justify-content: center; }
.v2-module-card,.v2-studio-card { min-width: 0; overflow: hidden; }
.v2-module-card :is(h3,p),.v2-studio-card :is(h3,p) { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .play-topbar { padding-block: 10px; }
  .play-wrap { padding-inline: 12px; }
  .journey-step__inner { padding: 18px 15px; border-radius: 16px; }
  .choice-grid,.field-grid,.step-ack__options { grid-template-columns: 1fr; }
  .journey__nav .btn { flex: 1 1 0; min-width: 0; }
  .breath-timer__controls,.journey-report-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .breath-timer__controls .btn,.journey-report-actions .btn { width: 100%; }
}

.v2-search-box { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.v2-search-box .btn { min-width: 92px; }
.v2-search-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 20px 0 12px; color: var(--ay95-ink-soft); }
.v2-search-summary strong { color: var(--ay95-forest-800); font-size: 22px; }
.v2-search-summary a { margin-left: auto; color: var(--ay95-forest-800); font-weight: 700; text-decoration: none; }
.v2-search-empty { margin-top: 18px; }
@media(max-width:520px){.v2-search-box{grid-template-columns:auto minmax(0,1fr)}.v2-search-box .btn{grid-column:1/-1;width:100%}.v2-search-summary a{width:100%;margin-left:0}}

/* Author display rules must never override semantic hidden states. */
.v2-search-result[hidden],.v2-search-empty[hidden],[data-v2-search-row][hidden] { display: none !important; }
.settings-card label,.mealcard label { min-height: 44px; }
