/* Adaptive prototype canvas inside the review shell. */
html,body{background:#080d0c!important;margin:0!important;padding:0!important;display:block!important;min-height:100%!important}
.desktop-note{display:none!important}
#app{width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
@media(min-width:600px){
 .brand{padding:12px 18px}.brand strong{font-size:24px}.brand .trust{font-size:12px}
 .tabs{width:min(100%,1000px);margin:0 auto;gap:12px;padding:16px 20px 0}
 .treepanel{width:min(calc(100% - 40px),1000px);margin:16px auto 0;padding:12px 14px}
 .treegrid,.treepanel.dense .treegrid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none!important;grid-auto-rows:minmax(52px,auto);height:auto!important;gap:7px}
 .treeitem.long,.treepanel.dense .treeitem.long{grid-column:auto!important}
 .treeitem .telugu,.treepanel.dense .treeitem .telugu{font-size:14px}.treeitem .english,.treepanel.dense .treeitem .english{font-size:10px}
 .deity{object-fit:contain;object-position:center bottom}.scene{background:#d8edf1}
 .dock,.bottomnav{padding-left:max(12px,calc((100% - 900px)/2));padding-right:max(12px,calc((100% - 900px)/2))}
 .content,.tools-content{max-width:980px;margin:0 auto;padding-left:24px;padding-right:24px}.main{background:#fbfdfa}
}
@media(min-width:1050px){.treegrid,.treepanel.dense .treegrid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(52px,auto)}.brand{padding:8px}.tabs{padding-top:12px}.treepanel{margin-top:10px}.suggestion-grid{grid-template-columns:repeat(3,1fr)}}

/* A landscape treatment keeps the selected deity intact and extends only the outer background. */
.deity-picture{display:block;width:100%;height:100%}
@media (min-width:600px) and (orientation:landscape){
 .scene{background:linear-gradient(180deg,#dceff7 0%,#e7dfd9 55%,#e3d8df 100%)}
 .deity{object-fit:contain;object-position:center bottom}
}

/* Priest-reference navigation and content. */
.utility-status{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;min-height:37px}.utility-btn{display:grid;place-items:center;width:36px;height:32px;border:0;border-radius:10px;background:#ffffff12;color:#f2fff8}.utility-btn svg{height:19px;width:19px}.utility-top{width:39px;height:44px}.five-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:4px 5px max(5px,env(safe-area-inset-bottom));min-height:66px}.five-nav button{display:grid;grid-template-rows:27px 25px;align-content:center;justify-items:center;gap:0;min-width:0;min-height:56px;padding:2px 0;font-size:11px;line-height:1.08}.five-nav button span{white-space:nowrap}.five-nav button small{font-size:9px;margin-top:2px}.five-nav button svg{width:21px;height:21px}.five-nav button[aria-current=page]{color:#075e54;background:#dcefe3}.reference-text{white-space:pre-wrap;line-height:1.75;font-size:15px;overflow-wrap:anywhere}.source-card{margin-top:18px;padding:14px;border:1px solid #dbeadf;border-radius:16px;background:#fff}.source-card h2{margin:0 0 8px}.source-card h3{font-size:15px;color:#075e54;margin:15px 0 6px}.script-switch{display:flex;gap:8px}.script-switch [aria-pressed=true]{background:#075e54;color:#fff}.mudra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mudra-tile{min-height:155px;border:1px solid #c8dfd1;border-radius:16px;background:#fff;color:#16483a;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px}.mudra-tile strong,.mudra-tile small{display:block}.mudra-tile small{font-size:11px}.mudra-illustration{display:flex;align-items:center;justify-content:center}.mudra-illustration svg{display:block;width:112px;height:94px;max-width:100%}.content>.mudra-illustration{border:1px solid #dbeadf;border-radius:16px;background:#fff;padding:10px;margin:12px 0}.content>.mudra-illustration svg{width:175px;height:145px}html[data-night=true] .source-card,html[data-night=true] .mudra-tile,html[data-night=true] .content>.mudra-illustration{background:#243b33;color:#ebfff0;border-color:#51735f}html[data-night=true] .source-card h3{color:#bdebd2}
@media(max-width:350px){.five-nav button{font-size:10px}.five-nav button small{font-size:8px}.utility-top{width:35px}}
.scene>.five-nav{position:relative;z-index:3;flex:none}
@media(min-width:600px){.photo-wrap{background:linear-gradient(180deg,#b6dafa 0%,#f4e8df 73%,#efe5df 100%)}}

/* Portrait tablets: fill the available background with the chosen landscape artwork. */
@media (min-width:600px) and (orientation:portrait){.deity{object-fit:cover;object-position:center center}}
