/* Vishnu Sahasranama · old green-and-gold heritage book design */
*{box-sizing:border-box}html{background:#0e261c}body{margin:0;background:radial-gradient(ellipse at center top,#2b4c39,#0e291e 70%);color:#e9d6af;font-family:Georgia,'Noto Serif Devanagari',serif;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}:where(button,a,input,select):focus-visible{outline:3px solid #ecd29b;outline-offset:2px}
.sahHeader{min-height:75px;display:flex;align-items:center;gap:15px;background:#102b20;border-bottom:1px solid #b79b6a70;padding:11px max(14px,4vw)}.sahHeader>div{flex:1}.sahHeader strong{display:block;font:400 clamp(21px,3vw,30px) Georgia,serif;color:#f1d19d}.sahHeader small{font:10px Arial,sans-serif;letter-spacing:2px;color:#c5c9b7}.sahHeader a{color:#e5cb99;text-decoration:none}.sahBack{height:46px;width:46px;display:grid;place-items:center;border:1px solid #bea476;border-radius:13px;background:#1b4331;font:24px Georgia,serif}.sahHome{display:inline-block;padding:14px 6px;font:13px Arial,sans-serif}
main{max-width:1110px;margin:auto;padding:10px 16px 48px}.sahHero{text-align:center;margin:14px 0 22px}.sahHero small{font:11px Arial,sans-serif;letter-spacing:2px;color:#dfba7c}.sahHero h1{font:400 clamp(27px,5vw,46px) 'Noto Serif Devanagari',serif;color:#f6d9a6;margin:13px auto}.sahHero p{font:13px/1.6 Arial,sans-serif;color:#c3c8b6}
.sahPick{max-width:1040px;margin:0 auto 10px;display:flex;gap:9px;align-items:end;flex-wrap:wrap}.sahPick label{display:grid;gap:6px;font:11px Arial,sans-serif;color:#ead5b0;flex:1;min-width:145px}.sahPick label:first-child{flex:2}.sahPick select,.sahPick input,.sahVoices select{width:100%;min-width:0;background:#f3e3c7;color:#254936;border:1px solid #b89b68;border-radius:10px;min-height:42px;padding:10px}.sahPick button,.sahTools button{background:#24543d;border:1px solid #b89c6977;border-radius:10px;color:#ebd8b4;padding:11px 12px;font:12px Arial,sans-serif;min-height:42px}.sahPick #sahJump{width:100%;max-width:130px}
#sahStatus{font:12px/1.6 Arial,sans-serif;text-align:center;color:#d1c4a8;margin:8px auto 12px;min-height:20px}
.sahBook.book,.sahBook.book.dg-physical-book{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;position:relative;height:470px!important;min-height:470px!important;max-width:1040px;margin:auto;border:9px solid #7c5534!important;border-radius:20px!important;overflow:hidden!important;background:#47301e!important;box-shadow:inset 0 0 0 3px #cb9f69,0 20px 50px #0009!important}.sahBook.book.dg-physical-book:before{display:block!important;width:17px!important;left:calc(50% - 8px)!important;background:linear-gradient(90deg,#57372699,#f5e4c75f,#0004,#f4dcad70)!important}
.sahBook.book>.page{height:452px!important;min-height:452px!important;min-width:0;display:flex;flex-direction:column;padding:0!important;background:radial-gradient(ellipse at 40% 20%,#fff1d5,#ecd1a4 95%)!important;color:#3d2d21;border:1px solid #b69a6f;overflow:hidden}
.sahScroll{flex:1;min-height:0;overflow:auto;padding:29px 25px 12px;scrollbar-width:thin;scrollbar-color:#c1a074 transparent}.sahScroll small{color:#aa875a;font:10px Georgia,serif;letter-spacing:1.3px}.sahScroll h2{font:400 24px/1.5 'Noto Serif Devanagari',serif;color:#744f31;margin:18px 0}.sahVerse{font:500 clamp(18px,2.3vw,24px)/1.85 'Noto Serif Devanagari',serif;white-space:pre-line;color:#35281d;overflow-wrap:anywhere}.sahVerse p{border-bottom:1px solid #bb9c704a;padding:0 0 14px;margin:0 0 14px}
.sahFoot{display:flex;justify-content:space-between;align-items:center;height:54px;flex:0 0 54px;padding:6px 13px;border-top:1px solid #b9a179;background:#e7d0a5;color:#7b613c;font:12px Georgia,serif}.sahFoot button{border:0;border-radius:50%;width:38px;height:38px;background:#265b41;color:#f8e7c5;font:18px Arial,sans-serif}
.sahNav{max-width:1040px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px auto}.sahNav button{background:#20503a;border:1px solid #b6a06a;color:#efdab2;border-radius:25px;min-height:43px;padding:10px 17px;font:13px Arial,sans-serif}.sahNav #progress{font:12px Arial,sans-serif;color:#d8c8ae;text-align:center}
.sahTools{max-width:1040px;display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:8px auto 18px}
.sahAudio{position:static!important;transform:none!important;inset:auto!important;max-width:1040px!important;width:100%!important;margin:13px auto 18px!important;background:#163a2b!important;border:1px solid #b3a07170!important;border-radius:16px!important;box-shadow:0 9px 23px #0003!important;padding:17px!important;overflow:visible!important;max-height:none!important}
.sahAudioHead{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:14px}.sahAudioHead h2{margin:0;color:#f0d5a0;font:400 22px Georgia,serif}.sahAudioHead span{color:#c4c5b4;font:11px Arial,sans-serif}
.sahActions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.sahActions button{background:#2b5942;border:1px solid #a99468a1;border-radius:11px;min-height:44px;color:#efddb8;font:12px Arial,sans-serif;padding:9px}.sahActions button:nth-child(2){background:#dec28f;color:#1c3e2d;font-weight:bold}
.sahVoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.sahVoices label{display:grid;gap:6px;min-width:0;font:11px Arial,sans-serif;color:#dbcbb0}.sahVoices input{accent-color:#dfbd82;width:100%}#sahVoiceNote{margin:12px 0 0;color:#c9c6b5;font:11px/1.6 Arial,sans-serif}
.sahAmbience{max-width:1040px;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 15px;border:1px solid #af966c69;border-radius:13px;background:#18382a;margin:0 auto 18px}.sahAmbience strong{font:18px Georgia,serif;color:#f1d9a5}.sahAmbience>span{font:11px Arial,sans-serif;color:#c4c9b7}.sahAmbience label{display:flex;gap:7px;align-items:center;font:11px Arial,sans-serif}.sahAmbience input{width:115px;accent-color:#e2bf83}.sahAmbience button{padding:10px 13px;background:#28543d;color:#efdaad;border:1px solid #b49d70;border-radius:11px;font:12px Arial,sans-serif}
.sahSource{max-width:1040px;background:#132e24;border:1px solid #af94624d;border-radius:15px;padding:17px 18px;margin:auto;color:#c8c5b2;font:12px/1.8 Arial,sans-serif}.sahSource strong{font:18px Georgia,serif;color:#f2d8a2}.sahSource a{color:#f0d096}
body.sahDark .sahBook.book>.page{background:radial-gradient(ellipse at 40% 20%,#42403b,#252d28 96%)!important;color:#f0dfbb}body.sahDark .sahVerse{color:#f0dfbb}body.sahDark .sahScroll h2{color:#e7bd82}body.sahDark .sahScroll small{color:#c7a87b}body.sahDark .sahFoot{background:#253129;color:#dfc398;border-color:#6d6047}
@media(max-width:760px){.sahHeader{min-height:72px;padding:10px 12px}.sahHeader strong{font-size:23px}.sahHeader small{font-size:9px}.sahHome{display:none}.sahBack{width:43px;height:43px}main{padding:10px 9px 36px}.sahHero{margin:7px auto 16px}.sahHero h1{font-size:28px}.sahHero p{font-size:11px}
.sahPick{gap:7px}.sahPick label{min-width:110px;flex-basis:35%}.sahPick label:first-child{min-width:160px;flex-basis:58%}.sahPick button{min-height:37px;padding:8px 10px;font-size:11px}
.sahBook.book,.sahBook.book.dg-physical-book{height:420px!important;min-height:420px!important;border-width:7px!important;border-radius:17px!important}.sahBook.book>.page{height:406px!important;min-height:406px!important}
.sahScroll{padding:17px 9px 9px}.sahScroll small{font-size:8px;letter-spacing:.4px}.sahScroll h2{font-size:15px;margin:11px 0}.sahVerse{font-size:13px;line-height:1.65}.sahFoot{height:46px;flex-basis:46px;padding:5px 7px;font-size:9px}.sahFoot button{width:33px;height:33px}
.sahNav button{min-height:40px;padding:10px;font-size:12px}.sahNav #progress{font-size:10px}
.sahAudio{padding:13px!important}.sahAudioHead h2{font-size:19px}.sahAudioHead span{font-size:10px}.sahActions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sahVoices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sahAmbience{gap:8px;padding:11px}.sahAmbience strong{font-size:15px}}
@media(max-width:375px){.sahScroll{padding:13px 7px}.sahVerse{font-size:12px;line-height:1.58}}
