
:root{
  --al-ink:#15211b;--al-muted:#66736c;--al-line:#e5ebe7;--al-bg:#f7faf8;--al-card:#fff;
  --al-green:#dff6e8;--al-violet:#eee6ff;--al-amber:#fff0d8;--al-blue:#e2f3ff;
  --al-coral:#ffe5df;--al-indigo:#e6eaff;--al-saffron:#fff0ce;--al-rose:#ffe4e8;
}
.ayulens-app{max-width:1180px;margin:0 auto;padding:18px;color:var(--al-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ayulens-app *{box-sizing:border-box}.ayulens-app button,.ayulens-app input{font:inherit}
.ayulens-hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;padding:28px;border-radius:26px;background:linear-gradient(135deg,#f7fff9,#f4f0ff 42%,#fff7e9)}
.ayulens-kicker{display:inline-block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--al-muted);font-weight:800}
.ayulens-hero h1,.ayulens-formula-head h1{margin:6px 0 4px;font-size:clamp(32px,5vw,58px);line-height:1}.ayulens-hero h1 span{font-weight:650}
.ayulens-hero p{margin:12px 0 0;max-width:720px;font-size:17px;color:var(--al-muted)}
.ayulens-lang{display:flex;gap:8px;flex-wrap:wrap}
.ayulens-lang button{
  border:1px solid #bccdc4;
  background:rgba(255,255,255,.96);
  color:#1c4336;
  border-radius:999px;
  padding:9px 14px;
  min-height:44px;
  cursor:pointer;
  font-weight:800;
  line-height:1;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.ayulens-lang button:hover{background:#f5fbf7;border-color:#8daf9e}
.ayulens-lang button:focus-visible{outline:2px solid #1e4f3d;outline-offset:2px}
.ayulens-lang button.is-active{
  background:#1e4f3d;
  color:#fff;
  border-color:#1e4f3d;
  box-shadow:0 8px 20px rgba(30,79,61,.18);
}
.ayulens-searchbar{display:flex;gap:10px;margin:18px 0}.ayulens-searchbar input{width:100%;min-height:52px;border:1px solid var(--al-line);border-radius:16px;padding:0 16px;background:#fff}.ayulens-searchbar button{min-height:52px;border:0;border-radius:16px;padding:0 22px;background:#1e4f3d;color:#fff;font-weight:800;cursor:pointer}
.ayulens-status{padding:12px 2px;color:var(--al-muted)}
.ayulens-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ayulens-card{display:flex;flex-direction:column;min-height:220px;text-decoration:none;color:inherit;border:1px solid var(--al-line);border-radius:22px;overflow:hidden;background:#fff;transition:.2s ease}.ayulens-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(21,33,27,.08)}
.ayulens-card img{width:100%;aspect-ratio:16/8;object-fit:cover}.ayulens-card-body{padding:16px}.ayulens-card h3{margin:4px 0 8px;font-size:21px}.ayulens-card p{margin:0;color:var(--al-muted);line-height:1.55}.ayulens-chip{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--al-green);font-size:12px;font-weight:700;margin:0 4px 4px 0}
.ayulens-disclaimer{margin:18px 0 0;border:1px solid #f0d8a5;background:#fff9ec;border-radius:16px;padding:13px 15px;color:#5f5030;font-size:13px;line-height:1.55}
.ayulens-detail-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.ayulens-detail-toolbar>a{text-decoration:none;font-weight:800;color:#1e4f3d}
.ayulens-formula-head{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:22px;align-items:center;padding:26px;border-radius:26px;background:linear-gradient(135deg,#f6fff8,#f4f0ff 48%,#fff8e8)}
.ayulens-title-wrap p{color:var(--al-muted);line-height:1.6}.ayulens-sanskrit{font-size:24px;font-weight:750;margin-top:8px}.ayulens-botanical{margin-top:8px;font-style:italic;font-size:18px}.ayulens-family{color:var(--al-muted);margin-top:4px}.ayulens-cover img{width:100%;max-height:320px;object-fit:cover;border-radius:20px}
.ayulens-composition{margin-top:18px;padding:20px;border:1px solid var(--al-line);border-radius:24px;background:#fff}.ayulens-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.ayulens-section-head h2{margin:0}.ayulens-section-head>span{font-size:13px;color:var(--al-muted)}
.ayulens-ingredient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.ayulens-ingredient{text-align:left;border:1px solid var(--al-line);border-radius:17px;background:var(--al-green);padding:13px;min-height:112px;color:inherit}.ayulens-ingredient:nth-child(5n+2){background:var(--al-violet)}.ayulens-ingredient:nth-child(5n+3){background:var(--al-amber)}.ayulens-ingredient:nth-child(5n+4){background:var(--al-blue)}.ayulens-ingredient:nth-child(5n){background:var(--al-coral)}
.ayulens-ingredient.is-clickable{cursor:pointer}.ayulens-ingredient:disabled{opacity:1}.ayulens-ing-name{display:block;font-weight:850;font-size:15px}.ayulens-ratio{display:block;margin-top:6px;color:var(--al-muted);font-size:13px}.ayulens-ingredient small{display:block;margin-top:6px}.ayulens-ingredient em{display:block;margin-top:8px;font-style:normal;font-size:12px;font-weight:800;color:#1e4f3d}
.ayulens-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.ayulens-info-card{border:1px solid var(--al-line);border-radius:22px;padding:18px;background:#fff}.ayulens-info-card h2{margin:0 0 10px;font-size:19px}.ayulens-rich{line-height:1.65;color:#3f4d46}.tone-source{background:var(--al-saffron)}.tone-process{background:var(--al-amber)}.tone-action{background:var(--al-blue)}.tone-use{background:var(--al-coral)}.tone-dose{background:var(--al-indigo)}.tone-safety{background:var(--al-rose)}
.ayulens-property-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:18px}.ayulens-property-strip>div{padding:14px;border-radius:18px;background:var(--al-green);border:1px solid var(--al-line)}.ayulens-property-strip span{display:block;font-size:12px;color:var(--al-muted);font-weight:700}.ayulens-property-strip strong{display:block;margin-top:4px}
.ayulens-modal{width:min(760px,calc(100% - 24px));border:0;border-radius:24px;padding:0;box-shadow:0 20px 80px rgba(0,0,0,.28)}.ayulens-modal::backdrop{background:rgba(12,22,17,.55)}.ayulens-modal-close{position:absolute;right:12px;top:12px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;font-size:25px;cursor:pointer}.ayulens-modal-body{padding:24px}.ayulens-modal-hero{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center}.ayulens-modal-hero img{width:120px;height:120px;object-fit:cover;border-radius:18px}.ayulens-modal-hero h2{margin:0 0 5px}.ayulens-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.ayulens-mini-grid div{padding:10px;border-radius:14px;background:var(--al-bg)}.ayulens-modal-link{display:inline-flex;margin-top:12px;padding:11px 15px;border-radius:12px;background:#1e4f3d;color:#fff!important;text-decoration:none;font-weight:800}
.al-hi{display:none}.ayulens-app[data-language="hi"] .al-en{display:none!important}.ayulens-app[data-language="hi"] .al-hi{display:block}.ayulens-app[data-language="bi"] .al-hi{display:block}.ayulens-app[data-language="bi"] .al-en{display:block}
@media(max-width:900px){.ayulens-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ayulens-ingredient-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ayulens-property-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.ayulens-app{padding:10px}.ayulens-hero{grid-template-columns:1fr;padding:20px}.ayulens-grid{grid-template-columns:1fr}.ayulens-formula-head{grid-template-columns:1fr;padding:18px}.ayulens-cover{order:-1}.ayulens-cover img{max-height:220px}.ayulens-ingredient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ayulens-info-grid{grid-template-columns:1fr}.ayulens-property-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.ayulens-detail-toolbar{align-items:flex-start;flex-direction:column}.ayulens-searchbar{flex-direction:column}.ayulens-searchbar button{width:100%}.ayulens-modal-hero{grid-template-columns:84px 1fr}.ayulens-modal-hero img{width:84px;height:84px}.ayulens-mini-grid{grid-template-columns:1fr 1fr}}


/* v0.2 production formulation view */
.ayulens-jumpnav{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.ayulens-jumpnav a{display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid rgba(30,79,61,.15);border-radius:999px;background:rgba(255,255,255,.72);color:#1e4f3d;text-decoration:none;font-weight:800;font-size:12px}
.ayulens-formula-mark{min-height:230px;border-radius:24px;background:linear-gradient(145deg,#dff6e8,#eee6ff 50%,#fff0d8);display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(30,79,61,.10);position:relative;overflow:hidden}
.ayulens-formula-mark:before,.ayulens-formula-mark:after{content:"";position:absolute;border-radius:999px;border:20px solid rgba(255,255,255,.55);width:160px;height:160px}
.ayulens-formula-mark:before{right:-55px;top:-70px}.ayulens-formula-mark:after{left:-75px;bottom:-85px}
.ayulens-formula-mark span{font-size:54px;font-weight:900;line-height:1;color:#214d3d}.ayulens-formula-mark strong{font-size:24px;letter-spacing:.02em}.ayulens-formula-mark small{margin-top:7px;letter-spacing:.18em;font-weight:900;color:var(--al-muted)}
.ayulens-snapshot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.ayulens-snapshot>div{border:1px solid var(--al-line);border-radius:18px;padding:14px 15px;background:#fff}
.ayulens-snapshot>div:nth-child(1){background:var(--al-green)}.ayulens-snapshot>div:nth-child(2){background:var(--al-violet)}.ayulens-snapshot>div:nth-child(3){background:var(--al-amber)}.ayulens-snapshot>div:nth-child(4){background:var(--al-blue)}
.ayulens-snapshot span{display:block;color:var(--al-muted);font-size:12px;font-weight:800}.ayulens-snapshot strong{display:block;margin-top:3px;font-size:20px}
.ayulens-ratio-map{display:flex;align-items:center;gap:8px;margin-top:18px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}
.ayulens-ratio-map i{font-style:normal;color:#8b9791;font-weight:900}
.ayulens-ratio-step{flex:0 0 auto;min-width:118px;border:1px solid var(--al-line);border-radius:18px;background:#fff;padding:12px 14px;text-align:left;cursor:pointer;color:var(--al-ink)}
.ayulens-ratio-step:nth-of-type(1){background:var(--al-green)}.ayulens-ratio-step:nth-of-type(2){background:var(--al-violet)}.ayulens-ratio-step:nth-of-type(3){background:var(--al-amber)}.ayulens-ratio-step:nth-of-type(4){background:var(--al-blue)}.ayulens-ratio-step:nth-of-type(5){background:var(--al-coral)}
.ayulens-ratio-step strong{display:block;font-size:27px;line-height:1}.ayulens-ratio-step span{display:block;margin-top:5px;color:var(--al-muted);font-size:11px;font-weight:750}
.ayulens-filterbar{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0 14px}
.ayulens-filterbar button{border:1px solid #c9d8d0;background:#fff;color:#294c3f;border-radius:999px;padding:7px 11px;min-height:36px;font-size:12px;font-weight:850;cursor:pointer}
.ayulens-filterbar button.is-active,.ayulens-ratio-step.is-active{background:#1e4f3d;color:#fff;border-color:#1e4f3d}
.ayulens-ingredient{position:relative;overflow:hidden}.ayulens-ratio-badge{position:absolute;right:10px;top:10px;display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.78);font-size:11px;font-weight:900}
.ayulens-source-note{margin-top:14px;padding:12px 14px;border-radius:14px;background:#f7faf8;color:var(--al-muted);font-size:12px;line-height:1.55}
.ayulens-info-grid>div{min-width:0}.ayulens-info-grid>div>.ayulens-info-card{height:100%}
.ayulens-ingredient[hidden]{display:none!important}
@media(max-width:680px){
  .ayulens-snapshot{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ayulens-ratio-map{margin-left:-2px;margin-right:-2px}
  .ayulens-ratio-step{min-width:105px}
  .ayulens-jumpnav{gap:6px}
}
