@import url("./shared/theme.css");
:root { color-scheme: light; --wine:var(--sm-wine); --wine-dark:var(--sm-wine-dark); --gold:var(--sm-gold); --cream:var(--sm-cream); --paper:var(--sm-paper); --ink:var(--sm-ink); --muted:var(--sm-muted); --line:rgba(91,55,37,.14); --shadow:0 24px 60px rgba(67,38,25,.12); font-family:var(--sm-font-sans); }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { height:100%; background:#efe4d0; }
body { height:var(--sm-app-height,100dvh); min-height:100%; margin:0; overflow:hidden; color:var(--ink); background:radial-gradient(circle at 8% 4%,rgba(189,132,56,.18),transparent 26rem),radial-gradient(circle at 94% 18%,rgba(116,43,36,.11),transparent 30rem),var(--cream); }
body::before { position:fixed; inset:0; pointer-events:none; content:""; opacity:.28; background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23742b24' stroke-opacity='.09'%3E%3Cpath d='M40 1l7 12 14-1-1 14 12 7-12 7 1 14-14-1-7 12-7-12-14 1 1-14-12-7 12-7-1-14 14 1z'/%3E%3C/g%3E%3C/svg%3E"); }
button,a { -webkit-tap-highlight-color:transparent; }
button,input { font:inherit; }
a { color:inherit; }
.page-shell { position:relative; width:min(1180px,calc(100% - 36px)); height:var(--sm-app-height,100dvh); margin:auto; display:grid; grid-template-rows:auto minmax(0,1fr); overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; }
#radioView { position:relative; width:100%; max-width:100%; height:var(--sm-app-height,100dvh); overflow-x:hidden; overflow-y:auto; overscroll-behavior-x:none; background:var(--cream); }
#levhalarView { width:100%; height:var(--sm-app-height,100dvh); overflow:hidden; }
#libraryView { width:100%; height:var(--sm-app-height,100dvh); overflow:hidden; background:#f4ecdc; }
#tvView { width:100%; height:var(--sm-app-height,100dvh); overflow:hidden; background:#f4ecdc; }
#adminView { width:100%; height:var(--sm-app-height,100dvh); overflow:hidden; background:#f4ecdc; }
.worlds-view{width:100%;height:var(--sm-app-height,100dvh);overflow:auto;background:radial-gradient(circle at 8% 4%,rgba(189,132,56,.18),transparent 26rem),var(--cream)}
.worlds-main{width:min(980px,calc(100% - 36px));margin:auto;padding:clamp(28px,6vw,70px) 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.world-card{min-height:230px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:28px;border:1px solid rgba(116,43,36,.18);border-radius:26px;text-decoration:none;background:var(--paper);box-shadow:var(--shadow)}
.world-card h2{margin:0 0 9px;font:700 1.8rem var(--sm-font-serif)}.world-card p{margin:0;color:var(--muted);line-height:1.55}.world-card>b{color:var(--wine);font-size:1.5rem}
.subapp-header { width:min(1080px,calc(100% - 36px)); min-height:104px; margin:auto; display:flex; align-items:center; gap:24px; border-bottom:1px solid var(--line); }
.subapp-header div { margin-left:auto; text-align:right; }
.subapp-header p { margin:0 0 4px; }
.subapp-header h1 { margin:0; font:700 clamp(2rem,5vw,3.4rem)/1 var(--sm-font-serif); }
.levhalar-main { width:min(1080px,calc(100% - 36px)); margin:auto; padding:clamp(24px,5vw,56px) 0; }
.levha-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.levha-card { min-height:230px; display:flex; flex-direction:column; justify-content:space-between; padding:25px; border:1px solid rgba(116,43,36,.16); border-radius:26px; background:rgba(255,250,240,.9); box-shadow:0 18px 45px rgba(67,38,25,.11); }
.levha-card span { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--wine); font-size:.72rem; font-weight:800; }
.levha-card h2 { margin:0; font:700 1.8rem/1.1 var(--sm-font-serif); }
#radioView:not([hidden]) { animation:view-in .2s ease-out; }
.site-header { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:13px; text-decoration:none; }
.brand img { width:58px; height:58px; border-radius:18px; object-fit:cover; box-shadow:0 7px 24px rgba(79,37,23,.19); }
.brand span { display:grid; }
.brand small,.eyebrow { color:var(--gold); font-weight:700; font-size:.7rem; letter-spacing:.19em; }
.brand strong { margin-top:2px; font:700 1.65rem/1 var(--sm-font-serif); }
.button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:0 18px; border:1px solid transparent; border-radius:14px; font-weight:700; font-size:.88rem; cursor:pointer; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
.button:hover { transform:translateY(-2px); }
.button:focus-visible,a:focus-visible { outline:3px solid rgba(189,132,56,.55); outline-offset:3px; }
.button:disabled { opacity:.48; cursor:not-allowed; transform:none; }
.button-primary { background:var(--wine); color:white; box-shadow:0 10px 22px rgba(116,43,36,.2); }
.button-secondary { border-color:var(--line); background:rgba(255,250,240,.72); color:var(--wine); }
.button-quiet { border-color:rgba(116,43,36,.18); background:transparent; color:var(--wine); }
.hidden { display:none!important; }
main { min-height:0; }
.applications { min-height:0; display:grid; grid-template-rows:auto auto; align-content:start; padding:clamp(18px,4vh,38px) 0 max(28px,env(safe-area-inset-bottom)); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:24px; }
.section-heading p { margin:0 0 7px; }
.section-heading h2 { margin:0; font:700 clamp(2rem,4vw,3rem)/1 var(--sm-font-serif); }
.app-grid { min-height:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(250px,auto); gap:20px; }
.app-card { position:relative; isolation:isolate; min-height:0; height:100%; display:flex; flex-direction:column; padding:20px 22px; overflow:hidden; border:2px solid rgba(91,55,37,.12); border-radius:28px; background:rgba(255,250,240,.92); box-shadow:var(--shadow); animation:rise .55s both; animation-delay:var(--delay); backdrop-filter:blur(12px); }
.available-card { cursor:pointer; border-color:color-mix(in srgb,var(--accent) 42%,transparent); background:linear-gradient(145deg,rgba(255,253,247,.98),rgba(249,236,216,.96)); box-shadow:0 22px 55px rgba(78,42,25,.2),inset 0 4px 0 var(--accent); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.available-card:hover { transform:translateY(-5px); border-color:var(--accent); box-shadow:0 30px 70px rgba(67,38,25,.25),inset 0 4px 0 var(--accent); }
.available-card:focus-visible { outline:3px solid rgba(189,132,56,.55); outline-offset:3px; }
.app-card::before { position:absolute; z-index:-1; width:250px; height:250px; top:-125px; right:-75px; content:""; border-radius:50%; background:var(--accent); opacity:.14; }
.app-card.coming-soon { border-style:dashed; background:rgba(244,236,220,.7); box-shadow:0 12px 30px rgba(67,38,25,.07); }
.card-content { display:grid; grid-template-columns:1fr auto; align-items:start; }
.app-icon { width:82px; height:82px; padding:5px; border:2px solid rgba(255,255,255,.9); border-radius:24px; background:white; box-shadow:0 12px 28px rgba(60,36,24,.2); }
.app-icon img { width:100%; height:100%; border-radius:18px; object-fit:cover; }
.status-badge { grid-column:2; grid-row:1; padding:7px 11px; border-radius:999px; background:rgba(116,43,36,.08); color:var(--wine); font-size:.67rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.card-copy { grid-column:1 / -1; margin:18px 0 14px; }
.card-copy h3 { margin:0 0 9px; font:700 1.85rem/1.1 var(--sm-font-serif); }
.card-copy p { margin:0; color:var(--muted); font-size:.91rem; line-height:1.65; }
.card-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:14px; }
.card-actions .button { min-width:92px; }
.open-hint { display:inline-flex; align-items:center; gap:8px; color:var(--wine); font-size:.86rem; font-weight:800; }
.open-hint .open-label { display:inline; }
.open-hint .open-arrow { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--wine); transition:transform .18s ease; }
.available-card:hover .open-arrow { transform:translateX(3px); }
.open-hint.muted { color:var(--muted); font-weight:700; }
.loading,.catalog-error { grid-column:1/-1; padding:40px; border:1px solid var(--line); border-radius:24px; color:var(--muted); background:var(--paper); }
.catalog-error p { margin-bottom:0; }
.toast { position:fixed; left:50%; bottom:max(24px,env(safe-area-inset-bottom)); z-index:10; max-width:calc(100% - 32px); padding:12px 18px; border-radius:14px; color:white; background:var(--wine-dark); box-shadow:0 12px 30px rgba(40,20,15,.25); opacity:0; transform:translate(-50%,20px); pointer-events:none; transition:.2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.global-radio-player{position:fixed;z-index:60;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(680px,calc(100% - 24px));min-height:68px;padding:8px 12px;display:grid;grid-template-columns:52px minmax(0,1fr) 38px 44px 38px;align-items:center;gap:8px;border:1px solid rgba(116,43,36,.2);border-radius:20px;color:var(--ink);background:rgba(255,250,240,.96);box-shadow:0 18px 55px rgba(55,30,20,.24);backdrop-filter:blur(18px)}.global-radio-player>img{width:52px;height:52px;border-radius:12px;object-fit:cover}.global-radio-player button{border:0;color:inherit;background:transparent;cursor:pointer}.global-radio-copy{min-width:0;text-align:left}.global-radio-copy strong,.global-radio-copy span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.global-radio-copy span{margin-top:3px;color:var(--muted);font-size:.72rem}.global-radio-toggle{width:42px;height:42px;border-radius:50%!important;color:#fff!important;background:var(--wine)!important}
.header-actions{display:flex;align-items:center;gap:8px}.floating-search{position:fixed;z-index:55;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));width:48px;height:48px;border:1px solid rgba(116,43,36,.2);border-radius:50%;color:#fff;background:var(--wine);box-shadow:0 12px 34px rgba(55,30,20,.28);font-size:1.45rem;cursor:pointer}.global-search-view{position:relative;z-index:50;width:100%;height:var(--sm-app-height,100dvh);overflow:auto;background:radial-gradient(circle at 8% 4%,rgba(189,132,56,.18),transparent 26rem),var(--cream)}.search-header{position:sticky;z-index:2;top:0;display:grid;grid-template-columns:46px minmax(0,760px);justify-content:center;gap:12px;padding:max(16px,env(safe-area-inset-top)) 18px 14px;border-bottom:1px solid var(--line);background:rgba(244,236,220,.94);backdrop-filter:blur(18px)}.search-back{width:46px;height:46px;border:1px solid var(--line);border-radius:15px;color:var(--wine);background:var(--paper);font-size:1.25rem;cursor:pointer}.global-search-box{min-width:0;display:flex;align-items:center;gap:10px;padding:0 16px;border:2px solid rgba(116,43,36,.2);border-radius:17px;background:var(--paper);box-shadow:0 10px 26px rgba(67,38,25,.09)}.global-search-box:focus-within{border-color:var(--gold);box-shadow:0 0 0 4px rgba(189,132,56,.13)}.global-search-box span{color:var(--wine);font-size:1.3rem}.global-search-box input{width:100%;height:46px;border:0;outline:0;color:var(--ink);background:transparent;font-size:1rem}.search-body{width:min(900px,calc(100% - 32px));margin:auto;padding:28px 0 120px}.search-body h1{margin:6px 0 8px;font:700 clamp(2rem,5vw,3.2rem)/1.05 var(--sm-font-serif)}.search-status{margin:0;color:var(--muted)}.global-search-results{display:grid;gap:18px;margin-top:28px}.search-result-group{overflow:hidden;border:1px solid var(--line);border-radius:24px;background:rgba(255,250,240,.9);box-shadow:0 15px 42px rgba(67,38,25,.09)}.search-group-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line)}.search-group-heading h2{margin:0;font:700 1.35rem var(--sm-font-serif)}.search-group-heading span{color:var(--muted);font-size:.75rem}.global-search-result{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:13px;padding:15px 18px;border:0;border-bottom:1px solid rgba(91,55,37,.09);color:var(--ink);background:transparent;text-align:left;cursor:pointer}.global-search-result:last-child{border-bottom:0}.global-search-result:hover,.global-search-result:focus-visible{background:rgba(189,132,56,.1);outline:0}.search-result-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;color:#fff;background:var(--wine);font-size:1.1rem}.search-result-copy{min-width:0;display:grid;gap:4px}.search-result-copy strong,.search-result-copy small,.search-result-excerpt{overflow:hidden;text-overflow:ellipsis}.search-result-copy small{color:var(--muted)}.search-result-excerpt{display:-webkit-box;color:#5d4a3d;font-size:.82rem;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.search-result-copy mark{padding:0 2px;border-radius:3px;color:#351a14;background:#f2ca68}.search-result-arrow{color:var(--wine);font-weight:800}.search-empty{padding:40px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:22px;background:rgba(255,250,240,.7)}
.install-dialog { width:min(390px,calc(100% - 30px)); padding:34px; border:0; border-radius:26px; text-align:center; color:var(--ink); background:var(--paper); box-shadow:0 30px 90px rgba(42,22,16,.35); }
.install-dialog::backdrop { background:rgba(38,24,19,.62); backdrop-filter:blur(4px); }
.install-dialog img { width:76px; height:76px; border-radius:21px; }
.install-dialog h2 { margin:16px 0 8px; font:700 2rem var(--sm-font-serif); }
.install-dialog p { color:var(--muted); line-height:1.6; }
.install-dialog .button { width:100%; margin-top:8px; }
.dialog-close { position:absolute; top:14px; right:14px; width:36px; height:36px; border:0; border-radius:50%; color:var(--muted); background:rgba(91,55,37,.08); cursor:pointer; font-size:1.4rem; }
@keyframes rise { from { opacity:0; transform:translateY(18px); } }
@keyframes view-in { from { opacity:.35; } }
@media (max-width:700px) {
  .worlds-main{grid-template-columns:1fr;width:calc(100% - 28px);padding:20px 0}.world-card{min-height:150px;padding:20px;gap:14px}.world-card h2{font-size:1.5rem}.world-card p{font-size:.82rem}
  .page-shell { width:min(100% - 28px,560px); }
  .site-header { min-height:72px; }
  .brand img { width:48px; height:48px; border-radius:15px; }
  .brand strong { font-size:1.35rem; }
  .brand small { font-size:.58rem; }
  .site-header .button { min-height:40px; padding:0 12px; font-size:.75rem; }
  .applications { padding:14px 0 max(14px,env(safe-area-inset-bottom)); }
  .section-heading { margin-bottom:12px; }
  .section-heading p { margin-bottom:3px; }
  .section-heading h2 { font-size:1.8rem; }
  .app-grid { max-height:none; grid-template-columns:1fr; grid-template-rows:none; grid-auto-rows:138px; align-content:start; gap:12px; }
  .app-card { min-height:138px; height:138px; display:flex; padding:12px 16px; border-width:1px; border-radius:22px; }
  .available-card { border-color:rgba(169,103,43,.32); box-shadow:0 12px 30px rgba(78,42,25,.14),inset 4px 0 0 var(--accent); }
  .available-card:hover { transform:none; box-shadow:0 12px 30px rgba(78,42,25,.14),inset 4px 0 0 var(--accent); }
  .app-card::before { width:130px; height:130px; top:-78px; right:-52px; opacity:.1; }
  .card-content { display:grid; grid-template-columns:68px minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:14px; align-items:start; }
  .app-icon { grid-column:1; grid-row:1 / span 2; width:68px; height:68px; border-radius:20px; }
  .app-icon img { border-radius:14px; }
  .status-badge { grid-column:2; grid-row:1; width:max-content; margin-bottom:6px; padding:5px 9px; font-size:.56rem; }
  .card-copy { grid-column:2; grid-row:2; min-width:0; margin:0; align-self:start; text-align:center; }
  .available-card .card-copy { grid-row:1 / span 2; align-self:center; }
  .card-copy h3 { margin-bottom:6px; font-size:1.48rem; line-height:1.05; white-space:normal; overflow:visible; text-overflow:clip; }
  .card-copy p { display:-webkit-box; overflow:hidden; font-size:.78rem; line-height:1.4; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .card-actions { margin:auto -16px -12px; padding:7px 16px; border-top:1px solid rgba(91,55,37,.1); background:rgba(255,255,255,.4); }
  .card-actions .button { min-height:36px; min-width:78px; padding:0 13px; font-size:.76rem; }
  .open-hint { font-size:.74rem; }
  .open-hint .open-arrow { width:24px; height:24px; }
  .section-heading { align-items:start; }
  .subapp-header { width:calc(100% - 28px); min-height:82px; gap:12px; }
  .subapp-header .button { min-height:38px; padding:0 12px; font-size:.74rem; }
  .subapp-header h1 { font-size:2rem; }
  .levhalar-main { width:calc(100% - 28px); padding:18px 0; }
  .levha-grid { grid-template-columns:1fr; gap:12px; }
  .levha-card { min-height:126px; padding:18px; border-radius:21px; }
  .levha-card h2 { font-size:1.55rem; }
}
@media(max-width:520px){.global-radio-player{grid-template-columns:46px minmax(0,1fr) 36px 42px 36px;gap:4px;padding:7px 8px}.global-radio-player>img{width:46px;height:46px}.global-radio-copy strong{font-size:.78rem}.global-radio-player>button:not(.global-radio-copy){padding:0}}
@media(max-width:520px){.site-header .header-actions{gap:4px}.site-header .header-actions .button{padding:0 9px}.search-header{grid-template-columns:42px minmax(0,1fr);gap:8px;padding-left:12px;padding-right:12px}.search-back{width:42px;height:44px}.search-body{width:calc(100% - 24px);padding-top:20px}.global-search-result{grid-template-columns:38px minmax(0,1fr) 20px;padding:13px 12px;gap:10px}.search-result-icon{width:38px;height:38px}.floating-search{top:auto;bottom:94px;right:14px}}
@media (max-height:620px) {
  .brand small { display:none; }
  .site-header { min-height:62px; }
  .brand img { width:42px; height:42px; }
  .applications { padding:10px 0 max(10px,env(safe-area-inset-bottom)); }
  .section-heading { margin-bottom:8px; }
  .section-heading .eyebrow { display:none; }
  .section-heading h2 { font-size:1.55rem; }
  .app-grid { gap:8px; }
  .app-card { min-height:130px; padding:9px 14px; }
  .card-content { grid-template-columns:58px minmax(0,1fr); column-gap:12px; }
  .app-icon { width:58px; height:58px; }
  .status-badge { margin-bottom:4px; }
  .card-copy { margin:0; }
  .card-copy h3 { font-size:1.28rem; }
  .card-copy p { -webkit-line-clamp:1; }
  .card-actions { margin:auto -14px -9px; padding:6px 14px; }
}
@media (max-width:360px) {
  .open-label span { display:none; }
  .card-content { grid-template-columns:66px minmax(0,1fr); column-gap:12px; }
  .app-icon { width:66px; height:66px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
.search-categories{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 0;padding:0;border:0}.search-categories legend{width:100%;margin-bottom:2px;color:var(--muted);font-size:.78rem;font-weight:800}.search-categories label{min-height:42px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:var(--paper);font-weight:750;cursor:pointer}.search-categories input{width:18px;height:18px;accent-color:var(--wine)}.search-book-note{margin:12px 0 0;padding:11px 14px;border-left:3px solid var(--gold);border-radius:0 10px 10px 0;color:var(--muted);background:rgba(255,250,240,.7);font-size:.82rem;line-height:1.45}
.feedback-view{position:relative;z-index:50;width:100%;min-height:var(--sm-app-height,100dvh);overflow:auto;background:radial-gradient(circle at 8% 4%,rgba(189,132,56,.18),transparent 26rem),var(--cream)}.feedback-header{grid-template-columns:46px minmax(0,760px);align-items:center}.feedback-header strong{font:700 1.25rem var(--sm-font-serif)}.feedback-body{width:min(800px,calc(100% - 32px));margin:auto;padding:32px 0 max(80px,env(safe-area-inset-bottom))}.feedback-body h1{margin:6px 0 8px;font:700 clamp(2rem,5vw,3rem)/1.05 var(--sm-font-serif)}.feedback-body>div>p:last-child{color:var(--muted)}.feedback-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px;padding:clamp(18px,4vw,32px);border:1px solid var(--line);border-radius:26px;background:rgba(255,250,240,.92);box-shadow:0 16px 44px rgba(67,38,25,.1)}.feedback-form label{display:grid;gap:7px;color:var(--ink);font-size:.84rem;font-weight:800}.feedback-form label>span{color:var(--wine)}.feedback-form input,.feedback-form select,.feedback-form textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid rgba(116,43,36,.22);border-radius:13px;outline:0;color:var(--ink);background:#fffdf8}.feedback-form textarea{resize:vertical;line-height:1.5}.feedback-form input:focus,.feedback-form select:focus,.feedback-form textarea:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(189,132,56,.13)}.feedback-wide{grid-column:1/-1}.feedback-file small{color:var(--muted);font-weight:500}.feedback-file input{padding:8px}.feedback-privacy,.feedback-status{margin:0;color:var(--muted);font-size:.78rem;line-height:1.45}.feedback-form .button{justify-self:start;min-width:150px}.feedback-form .button:disabled{opacity:.55;cursor:wait}.feedback-status{min-height:1.2em;color:var(--wine);font-weight:750}@media(max-width:620px){.site-header .header-actions #openFeedback{font-size:.72rem}.feedback-body{width:calc(100% - 24px);padding-top:22px}.feedback-form{grid-template-columns:1fr;gap:14px;padding:17px;border-radius:20px}.feedback-wide{grid-column:auto}.feedback-header{grid-template-columns:42px minmax(0,1fr);padding-left:12px;padding-right:12px}.feedback-header strong{font-size:1.05rem}}
.feedback-view{height:var(--sm-app-height,100dvh);min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}

.tesbihat-section{padding:24px 0 max(100px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}.tesbihat-section .section-heading{margin-bottom:18px}.tesbihat-description{margin:9px 0 0;color:var(--muted)}.tesbihat-prayers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tesbihat-prayers>button{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border:1px solid var(--line);border-radius:18px;color:var(--wine);background:var(--paper);font:700 1.15rem var(--sm-font-serif);cursor:pointer;box-shadow:var(--shadow)}.tesbihat-prayers>button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.tesbihat-dialog{width:min(860px,calc(100% - 24px));height:calc(var(--sm-app-height,100dvh) - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:20px;color:var(--ink);background:var(--paper);overflow:auto;overscroll-behavior:contain}.tesbihat-dialog::backdrop{background:#24150d99}.tesbihat-reader-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--paper)}.tesbihat-reader-head h2{flex:1;min-width:0;margin:0;font:700 clamp(1.1rem,3vw,1.7rem) var(--sm-font-serif)}.tesbihat-reader-head button{min-width:40px;min-height:40px;padding:6px;border:1px solid var(--line);border-radius:10px;color:var(--wine);background:#fff;cursor:pointer}.tesbihat-font-controls{display:flex;gap:5px}.tesbihat-source{padding:12px 24px;font-size:.76rem;color:var(--muted);border-bottom:1px solid var(--line)}.tesbihat-source p{margin:0 0 6px}.tesbihat-source a{color:var(--wine)}.tesbihat-content{padding:12px clamp(18px,5vw,48px) 55px;overflow-wrap:anywhere}.tesbihat-text{font:var(--tesbihat-font-size,30px)/2.15 SeyyarTesbihatNaskh,serif;white-space:pre-wrap;letter-spacing:normal}.tesbihat-heading{margin:32px 0 18px;color:var(--wine);font:700 1.3rem var(--sm-font-serif)}.tesbihat-note{padding:12px 15px;border-left:3px solid #477858;border-radius:0 10px 10px 0;color:#315c42;background:#edf4eb;line-height:1.7}.tesbihat-repeat{padding:10px 15px;border-radius:10px;color:#785316;background:#fbefd3;font-weight:800;line-height:1.6}@media(max-width:620px){.tesbihat-prayers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tesbihat-prayers>button{min-height:66px;padding:14px}.tesbihat-prayers>button:last-child{grid-column:1/-1}.tesbihat-reader-head{gap:8px;padding:10px}.tesbihat-source{padding:12px 18px}}@media print{.tesbihat-section{display:none}}

.tesbihat-view{height:var(--sm-app-height,100dvh);overflow:auto;padding:0 18px;background:var(--cream)}.tesbihat-category-head{width:min(1100px,100%);min-height:110px;margin:auto;padding:20px 0;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.tesbihat-category-head h1{margin:5px 0 0;font:700 clamp(2rem,5vw,3rem) var(--sm-font-serif)}.tesbihat-category-body{width:min(1100px,100%);margin:auto;padding:32px 0 110px}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:repeat(3,minmax(0,1fr))}.tesbihat-category-body .tesbihat-prayers>button{min-height:150px;padding:24px;font-size:1.5rem}@media(max-width:620px){.tesbihat-category-head{gap:14px;align-items:start;flex-direction:column}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:1fr 1fr}.tesbihat-category-body .tesbihat-prayers>button{min-height:110px;padding:18px;font-size:1.25rem}}

.tesbihat-edit-status{margin:12px 24px 0;color:var(--muted);font-size:.76rem}

@font-face{font-family:SeyyarTesbihatNaskh;src:url("/shared/tesbihat-arabic.ttf?v=109-hazir-v109-hazir-v109") format("truetype");font-display:swap;font-weight:500}.tesbihat-text[lang=ar]{font-family:SeyyarTesbihatNaskh,serif}

.tesbihat-divine-name{color:#a32931}
.tesbihat-prayers>button[data-tesbihat=sabah]{--vakit-color:#805015;--vakit-bg:#fff2dc;--vakit-line:#e1bb7a}
.tesbihat-prayers>button[data-tesbihat=ogle]{--vakit-color:#84600b;--vakit-bg:#fff7d8;--vakit-line:#ddc76b}
.tesbihat-prayers>button[data-tesbihat=ikindi]{--vakit-color:#6e4d32;--vakit-bg:#f5e9dc;--vakit-line:#d3b18f}
.tesbihat-prayers>button[data-tesbihat=aksam]{--vakit-color:#963c30;--vakit-bg:#fce8de;--vakit-line:#d5a08d}
.tesbihat-prayers>button[data-tesbihat=yatsi]{--vakit-color:#494579;--vakit-bg:#eeedf8;--vakit-line:#b2acd5}
.tesbihat-prayers>button[data-tesbihat]{color:var(--vakit-color);background:var(--vakit-bg);border-color:var(--vakit-line);position:relative;flex-wrap:wrap;justify-content:flex-start;gap:14px;transition:box-shadow .15s,border-color .15s}
.tesbihat-card-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:15px;background:#ffffffa6}.tesbihat-card-icon svg{width:32px;height:32px}
.tesbihat-card-copy{flex:1;min-width:90px;display:grid;gap:7px;text-align:left}.tesbihat-card-copy strong{font:inherit}.tesbihat-card-detail{font:400 .8rem/1.4 var(--sm-font-sans,Arial,sans-serif)}.tesbihat-card-arrow{font-size:1.2rem}
.tesbihat-current{justify-self:start;border-radius:6px;padding:5px 8px;background:var(--vakit-color);color:white;font:700 .7rem/1.4 Arial,sans-serif}
.tesbihat-prayers>button.is-current{border:2px solid var(--vakit-color);box-shadow:0 0 0 3px var(--vakit-bg),0 0 0 5px var(--vakit-line)}
@media(max-width:620px){.tesbihat-category-body .tesbihat-prayers>button{padding:15px;gap:10px}.tesbihat-card-icon{width:40px;height:40px}.tesbihat-card-icon svg{width:28px;height:28px}.tesbihat-card-copy{min-width:64px}.tesbihat-card-arrow{margin-left:auto}}
@media(max-width:620px){.tesbihat-card-copy{flex-basis:100%;min-width:0}.tesbihat-card-arrow{position:absolute;top:20px;right:16px}}

/* Tesbihat: colourful prayer covers and a quiet reading surface. */
.tesbihat-view{padding:22px clamp(16px,4vw,42px) 0;background:radial-gradient(ellipse at 0 0,#d9efe5 0,transparent 45%),radial-gradient(ellipse at 100% 45%,#f7dfbf 0,transparent 55%),#faf6ee}
.tesbihat-category-body{padding-top:27px}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.tesbihat-prayers>button[data-tesbihat=sabah],.tesbihat-dialog[data-vakit=sabah]{--vakit-color:#965315;--vakit-bg:#fff1d7;--vakit-line:#edb966;--vakit-glow:#ffd282}
.tesbihat-prayers>button[data-tesbihat=ogle],.tesbihat-dialog[data-vakit=ogle]{--vakit-color:#866007;--vakit-bg:#fff7d5;--vakit-line:#e6c751;--vakit-glow:#f8db64}
.tesbihat-prayers>button[data-tesbihat=ikindi],.tesbihat-dialog[data-vakit=ikindi]{--vakit-color:#4b6a49;--vakit-bg:#edf4df;--vakit-line:#b4ce8e;--vakit-glow:#bfdca0}
.tesbihat-prayers>button[data-tesbihat=aksam],.tesbihat-dialog[data-vakit=aksam]{--vakit-color:#a04437;--vakit-bg:#ffede4;--vakit-line:#efb39a;--vakit-glow:#ffa67e}
.tesbihat-prayers>button[data-tesbihat=yatsi],.tesbihat-dialog[data-vakit=yatsi]{--vakit-color:#554b89;--vakit-bg:#eeecfb;--vakit-line:#b8afe7;--vakit-glow:#c7baff}
.tesbihat-category-body .tesbihat-prayers>button{grid-column:span 2;min-height:200px;padding:23px;display:grid;grid-template-columns:1fr auto;gap:22px 12px;align-content:space-between;overflow:hidden;border:1px solid var(--vakit-line);border-radius:24px;background:radial-gradient(ellipse at 100% 0,var(--vakit-glow),transparent 72%),var(--vakit-bg);box-shadow:0 7px 20px #46331e0a;text-align:left}
.tesbihat-category-body .tesbihat-prayers>button:nth-last-child(-n+2){grid-column:span 3}
.tesbihat-card-icon{width:58px;height:58px;border-radius:19px;background:var(--vakit-color);color:white;box-shadow:0 7px 14px #46331e12}.tesbihat-card-icon svg{width:33px;height:33px}
.tesbihat-card-arrow{position:static;align-self:start;justify-self:end;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#ffffff70;font-size:1rem}
.tesbihat-card-copy{grid-column:1/-1;display:grid;gap:8px;min-width:0}.tesbihat-card-copy strong{font-size:1.55rem;line-height:1.15}.tesbihat-card-detail{font-size:.8rem;opacity:.92}.tesbihat-current{margin-top:4px;border-radius:20px;padding:6px 10px;background:var(--vakit-color);font-size:.7rem}
.tesbihat-category-body .tesbihat-prayers>button.is-current{border:2px solid var(--vakit-color);box-shadow:0 0 0 3px #fffaf0,0 0 0 5px var(--vakit-line),0 12px 28px #46331e15}
.tesbihat-prayers>button:hover{filter:brightness(1.025);transform:translateY(-2px)}
.tesbihat-dialog{width:min(900px,calc(100% - 24px));background:#f5f1e9;border-color:var(--vakit-line);border-radius:24px;box-shadow:0 25px 90px #14392c55}
.tesbihat-reader-head{min-height:76px;padding:14px 18px;background:var(--vakit-bg,#fffaf0);border-bottom:1px solid var(--vakit-line,#e5d3bc)}.tesbihat-reader-head h2{color:var(--vakit-color,#742b24);font-size:clamp(1.1rem,3vw,1.5rem)}.tesbihat-reader-head button{background:#ffffffb8;border-color:var(--vakit-line,#e5d3bc);color:var(--vakit-color,#742b24)}
.tesbihat-reader-tools{position:sticky;top:76px;z-index:2;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:9px 18px;background:#fffdf7f5;border-bottom:1px solid #e6decd;backdrop-filter:blur(10px)}.tesbihat-reader-tools label{display:flex;align-items:center;gap:10px;color:#6b5c4a;font-size:.7rem;min-width:0}.tesbihat-reader-tools select{max-width:330px;min-width:0;min-height:38px;padding:7px 30px 7px 10px;border:1px solid #e5d6bf;border-radius:9px;background:#fffdf8;color:#453326;font:600 .75rem var(--sm-font-sans)}.tesbihat-reader-kind{font-size:.68rem;color:#7b6c57;white-space:nowrap}
.tesbihat-content{margin:22px auto 35px;width:calc(100% - 44px);padding:10px clamp(18px,4vw,38px) 38px;max-width:790px;border:1px solid #e4dac7;border-radius:19px;background:#fffdf7;box-shadow:0 5px 18px #5b402309;counter-reset:tesbihat-section}
.tesbihat-content .tesbihat-text{font-size:var(--tesbihat-font-size,30px);line-height:2.15;color:#2d2923;text-align:right;margin:20px 0;padding:10px 0 20px;border-bottom:1px solid #eee5d7;word-break:normal;overflow-wrap:break-word}
.tesbihat-content .tesbihat-heading{position:relative;scroll-margin-top:155px;margin:30px -10px 20px;padding:17px 16px 17px 55px;border:1px solid var(--vakit-line,#dfc9a5);border-radius:13px;background:var(--vakit-bg,#faf0dd);color:var(--vakit-color,#742b24);font:700 1.12rem/1.5 var(--sm-font-serif);counter-increment:tesbihat-section}
.tesbihat-content .tesbihat-heading::before{content:counter(tesbihat-section,decimal-leading-zero);position:absolute;left:15px;top:18px;font:600 .72rem/1.9 var(--sm-font-sans);opacity:.75}
.tesbihat-content .tesbihat-note{border:1px solid #cee0d3;border-left:4px solid #438462;border-radius:11px;background:#edf6ef;color:#315c42;font-size:.8rem;padding:11px 14px;margin:18px 0;line-height:1.7}
.tesbihat-content .tesbihat-repeat{display:table;border:1px solid #e6cc88;background:#fff3ce;color:#78520b;padding:8px 14px;border-radius:24px;font-size:.8rem;line-height:1.5;margin:20px 0}
.tesbihat-content .tesbihat-litany{white-space:normal;border:0;padding:0}.tesbihat-verse-line{display:block;white-space:pre-wrap}.tesbihat-content .tesbihat-verse-line{padding:16px 12px;border-bottom:1px solid #e8dfcf}.tesbihat-content .tesbihat-verse-line:nth-of-type(2n){background:#f7f3e9;border-radius:12px}.tesbihat-divine-name{color:#a32931}
@media(max-width:620px){.tesbihat-view{padding:14px 16px 0}.tesbihat-category-head{padding:18px 20px 24px;grid-template-columns:1fr 90px;border-radius:23px;gap:7px}.tesbihat-category-head #closeTesbihat{font-size:.72rem;padding:9px 12px;margin-bottom:14px}.tesbihat-category-head h1{font-size:2.65rem}.tesbihat-category-head .eyebrow{font-size:.62rem}.tesbihat-category-head .tesbihat-description{font-size:.82rem}.tesbihat-hero-meta{gap:6px;margin-top:18px;grid-column:1/-1}.tesbihat-hero-meta span{font-size:.58rem;padding:5px 7px}.tesbihat-hero-art{margin-right:-12px}.tesbihat-category-body{padding-top:22px}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tesbihat-category-body .tesbihat-prayers>button,.tesbihat-category-body .tesbihat-prayers>button:nth-last-child(-n+2){grid-column:span 1;min-height:165px;padding:17px;gap:20px 8px;border-radius:20px}.tesbihat-category-body .tesbihat-prayers>button:last-child,.tesbihat-category-body .tesbihat-prayers>button.is-current{grid-column:1/-1}.tesbihat-category-body .tesbihat-prayers>button.is-current{order:-1;grid-template-columns:64px 1fr 25px;align-items:center;min-height:135px;gap:16px}.tesbihat-prayers>button.is-current .tesbihat-card-copy{grid-column:2;grid-row:1;gap:6px}.tesbihat-prayers>button.is-current .tesbihat-card-arrow{grid-column:3;grid-row:1}.tesbihat-card-icon{width:50px;height:50px;border-radius:16px}.tesbihat-card-icon svg{width:29px;height:29px}.tesbihat-card-copy strong{font-size:1.35rem}.tesbihat-card-detail{font-size:.72rem}.tesbihat-card-arrow{width:25px;height:25px;font-size:.9rem}.tesbihat-current{font-size:.62rem}.tesbihat-dialog{width:calc(100% - 12px);height:calc(var(--sm-app-height,100dvh) - 12px);border-radius:19px}.tesbihat-reader-head{padding:10px;gap:8px;min-height:68px}.tesbihat-reader-head h2{font-size:1.02rem;line-height:1.5}.tesbihat-reader-head button{min-width:36px;min-height:40px}.tesbihat-reader-tools{top:68px;padding:8px 11px;gap:6px}.tesbihat-reader-tools label{font-size:.62rem;gap:7px;flex:1}.tesbihat-reader-tools select{max-width:235px;width:100%;font-size:.68rem;padding-right:17px}.tesbihat-reader-kind{display:none}.tesbihat-content{width:calc(100% - 20px);margin:13px auto 20px;padding:8px 15px 30px;border-radius:15px}.tesbihat-content .tesbihat-heading{font-size:1.03rem;margin-left:-5px;margin-right:-5px;padding:14px 10px 14px 43px}.tesbihat-content .tesbihat-heading::before{left:12px;top:15px}.tesbihat-content .tesbihat-text{line-height:2.1}.tesbihat-content .tesbihat-verse-line{padding:15px 9px}.tesbihat-content .tesbihat-note{font-size:.74rem}.tesbihat-content .tesbihat-repeat{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){.tesbihat-prayers>button{transition:none;transform:none!important}}

.tesbihat-category-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:0;padding:3px 0 20px;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);overflow:visible}
.tesbihat-category-head #closeTesbihat{margin:0;color:var(--wine);border-color:var(--line);background:#fffaf0;font-size:.73rem;padding:10px 12px}
.tesbihat-category-head h1{margin:0;font-size:clamp(1.7rem,4vw,2.4rem);line-height:1.2;letter-spacing:-.02em}
.tesbihat-category-body{padding-top:0}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:220px}
.tesbihat-category-body .tesbihat-prayers>button[data-tesbihat]{grid-column:auto!important;order:0!important;grid-template-columns:1fr auto;grid-template-rows:58px 1fr;grid-auto-flow:row;align-items:start;align-content:normal;gap:18px 10px;min-height:0;height:100%;border-width:2px;padding:22px}
.tesbihat-prayers>button .tesbihat-card-icon{grid-column:1;grid-row:1}.tesbihat-prayers>button .tesbihat-card-arrow{grid-column:2!important;grid-row:1!important;position:static;align-self:start}
.tesbihat-prayers>button .tesbihat-card-copy{grid-column:1/-1!important;grid-row:2!important;align-self:stretch;align-content:start;position:relative;padding-bottom:30px;gap:7px}
.tesbihat-prayers>button .tesbihat-current{position:absolute;left:0;bottom:0;margin:0}
@media(max-width:620px){.tesbihat-category-head{flex-direction:row;align-items:center;padding:2px 0 18px}.tesbihat-category-head h1{font-size:1.9rem}.tesbihat-category-body .tesbihat-prayers{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:195px}.tesbihat-category-body .tesbihat-prayers>button[data-tesbihat]{grid-template-rows:50px 1fr;padding:17px;gap:15px 8px}.tesbihat-prayers>button .tesbihat-card-copy{padding-bottom:26px}.tesbihat-prayers>button .tesbihat-current{font-size:.6rem;padding:5px 8px}}

.tesbihat-text[lang=ar]{font-weight:500;font-feature-settings:"cv62" 1;font-variant-ligatures:common-ligatures contextual;font-synthesis:none}

#navigationGrid{display:grid;gap:16px;width:100%}button.world-card{font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer}#navigationView .worlds-main{display:block}#navigationDescription:empty{display:none}.tesbihat-grid>[hidden]{display:none}
.world-card>div{min-width:0}.world-card h2,.world-card p{overflow-wrap:anywhere}
