/* xt18g188 STEP 3 Zeh Maase Sheli (bi-zms.js). Colour rules carry .bl-light in the selector so the Light view keeps them as drawn
   (approved pictures bl_zms_3b_shelf light + dark); the sefer names keep the Seforim Shank's own colour (no override). */
/* home: the daily-learning button's second face */
.bi-home-daily{touch-action:pan-y}
.bi-home-daily[data-zms="1"]>:not(.zms-face):not(.zms-dw){visibility:hidden}
.bi-home-daily>.absolute.bottom-1{display:none}
.zms-face{position:absolute;inset:0;z-index:11;pointer-events:none}
.zms-fc{display:flex;align-items:center;justify-content:space-between;height:100%;padding:12px 20px 14px;direction:rtl}
.zms-ft{display:flex;flex-direction:column;align-items:flex-start;text-align:right;min-width:0}
.zms-fs{font:700 12.5px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;white-space:nowrap}
html:not(.bl-light) .zms-fs{color:rgba(255,255,255,.72)}
html.bl-light .zms-fs{color:rgba(31,31,31,.62)}
.zms-dw{position:absolute;left:0;right:0;bottom:6px;z-index:12;display:flex;justify-content:center;pointer-events:none}
.zms-dots{display:flex;gap:5px}
.zms-dots i{width:6px;height:6px;border-radius:50%}
html:not(.bl-light) .zms-dots i{background:rgba(255,255,255,.28)}
html:not(.bl-light) .zms-dots i.on{background:#22d3ee}
html.bl-light .zms-dots i{background:rgba(15,23,42,.18)}
html.bl-light .zms-dots i.on{background:#0e7490}
@keyframes zmsInR{from{transform:translateX(-36px);opacity:.2}to{transform:none;opacity:1}}
@keyframes zmsInL{from{transform:translateX(36px);opacity:.2}to{transform:none;opacity:1}}
.zms-in-r>:not(.zms-dw){animation:zmsInR .28s ease-out}
.zms-in-l>:not(.zms-dw){animation:zmsInL .28s ease-out}
/* page */
#bl-zms{position:fixed;left:0;right:0;top:0;bottom:0;z-index:50;display:flex;flex-direction:column;direction:rtl;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html.bl-light #bl-zms{background:radial-gradient(130% 80% at 50% 0%,#f8eed6 0%,#efdfbd 55%,#e2cc9f 100%);color:#3b2412}
html:not(.bl-light) #bl-zms{background:radial-gradient(120% 70% at 50% 0%,#2a1d12 0%,#17100a 55%,#0c0805 100%);color:#efe2c4}
.zms-h,.zms-shh{display:flex;align-items:center;justify-content:space-between;direction:ltr;padding:calc(env(safe-area-inset-top,0px) + 10px) 16px 10px;flex-shrink:0}
html.bl-light .zms-h,html.bl-light .zms-shh{background:rgba(246,234,206,.96);border-bottom:1px solid rgba(120,80,30,.25);box-shadow:rgba(90,60,20,.15) 0 2px 10px}
html:not(.bl-light) .zms-h,html:not(.bl-light) .zms-shh{background:rgba(30,21,13,.92);border-bottom:1px solid rgba(212,175,95,.25);box-shadow:0 2px 10px rgba(0,0,0,.5)}
.zms-b,.zms-b0{width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;flex-shrink:0}
.zms-b0{visibility:hidden}
html.bl-light .zms-b{border:1px solid rgba(90,40,20,.3);background:rgba(90,40,20,.08);color:#5a1d12}
html:not(.bl-light) .zms-b{border:1px solid rgba(232,199,125,.35);background:rgba(232,199,125,.08);color:#e8c77d}
.zms-ti{font:800 24px/1.1 "FrankRuehlCLM","Frank Ruehl CLM",serif;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.zms-en .zms-ti{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:21px}
html.bl-light .zms-ti{color:#5a1d12}
html:not(.bl-light) .zms-ti{color:#f0d38c}
.zms-sc{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:22px}
.zms-sum{max-width:600px;margin:14px 16px 4px;padding:12px 14px;border-radius:16px}
@media (min-width:640px){.zms-sum{margin:14px auto 4px}}
html.bl-light .zms-sum{background:rgba(255,250,238,.7);border:1px solid rgba(120,80,30,.22);box-shadow:0 4px 14px rgba(90,60,20,.10)}
html:not(.bl-light) .zms-sum{background:rgba(255,255,255,.05);border:1px solid rgba(212,175,95,.22)}
.zms-st{display:flex;align-items:baseline;justify-content:space-between;font:700 15px/1.2 "FrankRuehlCLM","Frank Ruehl CLM",serif}
.zms-en .zms-st{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.zms-st b{font:800 24px/1 system-ui,-apple-system,sans-serif}
html.bl-light .zms-st{color:#5a1d12}
html.bl-light .zms-st b{color:#0f5a5a}
html:not(.bl-light) .zms-st{color:#efe2c4}
html:not(.bl-light) .zms-st b{color:#e8c77d}
.zms-bar{height:7px;border-radius:99px;margin-top:9px;overflow:hidden;direction:ltr}
.zms-bar i{display:block;height:100%;margin:0;margin-right:auto;border-radius:99px}
html.bl-light .zms-bar{background:rgba(90,50,20,.12)}
html:not(.bl-light) .zms-bar{background:rgba(255,255,255,.10)}
html:is(.bl-light,:not(.bl-light)) .zms-bar i{background:linear-gradient(90deg,#b8860b,#e8c77d)}
.zms-ss{margin-top:7px;font-size:12.5px;font-weight:600;display:flex;align-items:center;gap:4px}
html.bl-light .zms-ss{color:#7a5a35}
html:not(.bl-light) .zms-ss{color:#b9a27a}
.zms-sec{margin:16px 12px 10px}
html:not(.bl-light) #bl-zms .bl5-sec-h{color:#e8c77d}
.zms-pile{max-width:640px;margin:0 auto;padding:0 18px}
.zms-pile .bl5-book{width:100%}
.zms-o{position:absolute;inset:0;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 36px;direction:rtl;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.zms-o:active{filter:brightness(1.15)}
.zms-o .bl5-t{font-size:20px;padding:2px 8px;min-width:0}
.zms-o .bl5-t.sm{font-size:17.5px}
.zms-o .bl5-t.xs{font-size:15px}
.zms-m{display:flex;flex-direction:column;align-items:flex-start;gap:3px;direction:ltr;min-width:44px;flex-shrink:0}
.zms-m b{font:800 14px/1 system-ui,-apple-system,sans-serif;letter-spacing:-.2px}
.zms-m span{display:flex;align-items:center;gap:3px;font:700 11.5px/1 system-ui,-apple-system,sans-serif}
html:is(.bl-light,:not(.bl-light)) #bl-zms .zms-m b{color:var(--zms-nm,#e8c77d)}
html:is(.bl-light,:not(.bl-light)) #bl-zms .zms-m span{color:rgba(255,255,255,.82)}
.zms-pg{position:absolute;left:36px;right:36px;bottom:6px;height:2.5px;border-radius:3px;overflow:hidden;direction:ltr}
.zms-pg i{display:block;height:100%;margin:0;margin-right:auto;border-radius:3px}
html:is(.bl-light,:not(.bl-light)) #bl-zms .zms-pg{background:rgba(255,255,255,.13)}
html:is(.bl-light,:not(.bl-light)) #bl-zms .zms-pg i{background:var(--zms-nm,#e8c77d)}
.zms-board{max-width:640px;margin:2px auto 0}
.zms-sc>.zms-board{margin-left:10px;margin-right:10px}
@media (min-width:660px){.zms-sc>.zms-board{margin-left:auto;margin-right:auto}}
.zms-go{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 0;max-width:calc(100% - 32px);padding:11px 20px;border-radius:999px;border:0;cursor:pointer;font:800 16px/1.15 "FrankRuehlCLM","Frank Ruehl CLM",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}
.zms-en .zms-go{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px}
.zms-go span{flex-shrink:0}
.zms-go small{font:700 12px/1.2 system-ui,sans-serif;opacity:.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
html:is(.bl-light,:not(.bl-light)) .zms-go{color:#2a1f16;background:linear-gradient(180deg,#f7dd8a,#c9952f);box-shadow:0 5px 14px rgba(201,149,47,.35)}
.zms-hint{text-align:center;margin-top:14px;font:600 13px/1.3 system-ui,sans-serif}
html.bl-light .zms-hint{color:#7a5a35}
html:not(.bl-light) .zms-hint{color:#a8916a}
.zms-empty{display:flex;flex-direction:column;align-items:center;gap:8px;margin:48px 24px;text-align:center}
.zms-empty b{font:800 20px/1.3 "FrankRuehlCLM","Frank Ruehl CLM",serif}
.zms-empty span{font-size:14px;line-height:1.4}
html.bl-light .zms-empty{color:#5a1d12}
html:not(.bl-light) .zms-empty{color:#e2cfa5}
/* choose sefarim */
.zms-sh{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;direction:rtl;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html.bl-light .zms-sh{background:radial-gradient(130% 80% at 50% 0%,#f8eed6 0%,#efdfbd 55%,#e2cc9f 100%);color:#3b2412}
html:not(.bl-light) .zms-sh{background:radial-gradient(120% 70% at 50% 0%,#2a1d12 0%,#17100a 55%,#0c0805 100%);color:#efe2c4}
.zms-shs{margin:10px 16px 0;font:600 13px/1.35 system-ui,sans-serif;text-align:center}
html.bl-light .zms-shs{color:#7a5a35}
html:not(.bl-light) .zms-shs{color:#b9a27a}
.zms-shl{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:6px 12px 16px;max-width:640px;width:100%;margin:0 auto;box-sizing:border-box}
.zms-shl .bl5-sec{margin:14px 0 16px}
html:not(.bl-light) .zms-sh .bl5-sec-h{color:#e8c77d}
.zms-shf{flex-shrink:0;padding:8px 16px calc(12px + env(safe-area-inset-bottom,0px))}
.zms-shf .zms-go{margin-top:0}

/* xt18g201 item 10: Zeh Maase Sheli's own % ring over the daily ring while the card shows "Zeh Maase Sheli" */
.bl-prog-card[data-zms="1"]>:not(.zms-ring){visibility:hidden}
.bl-prog-card>.zms-ring{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:none}
/* xt18g201 item 8: the one home button "\u05e1\u05e4\u05e8\u05d9\u05dd \u05e9\u05d0\u05e0\u05e7 \u05d0\u05d5\u05df \u05d5\u05d5\u05e2\u05dc\u05d8\u05dc\u05d9\u05db\u05e2 \u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd" stays on one line on small phones */
.bl-home-shank .text-sm{white-space:nowrap;font-size:min(14px,3.55vw)}
