/* ===== legacy-1 ===== */
:root{--ink:#171817;--muted:#6d716d;--line:#e5e3dc;--paper:#fbfaf6;--card:#fff;--accent:#173f73;--accent2:#eef3f9;--warm:#f5efe3;--gold:#a96f18;--max:980px;--shadow:0 12px 36px rgba(34,34,30,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}.wrap{width:min(calc(100% - 28px),var(--max));margin:auto}
.top{padding:15px 0;border-bottom:1px solid var(--line);background:rgba(251,250,246,.94);position:sticky;top:0;z-index:30;backdrop-filter:blur(12px)}.brandrow{display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:600;white-space:nowrap}.brand span{font-family:Arial,sans-serif;font-weight:500;direction:rtl}.topnav{display:flex;gap:3px;align-items:center}.topnav button{border:0;background:transparent;padding:8px 10px;border-radius:999px;color:#353735;font:inherit;font-size:13px;cursor:pointer}.topnav button:hover,.topnav button.active{background:#f0eee7;color:var(--accent)}
.hero{padding:40px 0 26px}.greeting{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,6vw,58px);font-weight:500;line-height:1.04;margin:0 0 5px}.reminder{font-family:Georgia,"Times New Roman",serif;font-size:clamp(18px,3vw,24px);font-style:italic;color:#595b57;margin:0 0 26px}.today-line{font-size:clamp(15px,2.2vw,18px);margin:7px 0;color:#353735}.mishnah-line{margin-top:17px;padding-top:17px;border-top:1px solid var(--line)}.mishnah-label{font-size:13px;color:var(--muted)}.mishnah-ref{font-family:Georgia,"Times New Roman",serif;font-size:clamp(27px,4vw,37px);line-height:1.25;margin-top:2px}.he-inline{font-family:"Times New Roman",serif;direction:rtl;unicode-bidi:isolate;font-size:.88em}.contextline{margin-top:15px;font-size:12px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}.contextline span{padding:4px 9px;background:#f3f1ea;border-radius:999px}.progress{height:3px;background:#e8e6df;border-radius:999px;margin-top:14px;overflow:hidden}.progress>i{display:block;height:100%;background:var(--accent);width:0;transition:width .35s ease}.week-note{margin:16px 0 0;padding:12px 14px;background:var(--warm);border-radius:12px;font-family:Georgia,serif;font-size:15px;color:#534a3d}
.navrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:7px 0 22px}.navbtn,.pillbtn{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:10px 14px;font:inherit;color:var(--ink);cursor:pointer}.navbtn:hover,.pillbtn:hover{border-color:#c9c5ba}.centercontrols{font-size:12px;color:var(--muted);text-align:center}.centercontrols .pillbtn{margin-top:5px;padding:7px 12px;font-size:12px}
.reader{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.reader-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.reader-head strong{font-size:14px}.reader-head span{font-size:12px;color:var(--muted)}.phrase{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:21px 22px;border-bottom:1px solid var(--line);align-items:center}.phrase:last-child{border-bottom:0}.en{font-family:Georgia,"Times New Roman",serif;font-size:18px}.en small{display:block;font-family:ui-sans-serif,-apple-system,sans-serif;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px}.he{direction:rtl;text-align:right;font-family:"Times New Roman",serif;font-size:24px;line-height:1.55}.reader-status{padding:10px 22px;background:#faf9f5;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.study{margin:27px 0 58px}.study h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:24px;margin:0 0 10px}.accordion{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line)}summary{list-style:none;cursor:pointer;padding:18px 4px;display:flex;justify-content:space-between;align-items:center;font-weight:600}summary::-webkit-details-marker{display:none}summary:after{content:"+";font-weight:400;font-size:21px;color:var(--muted)}details[open] summary:after{content:"−"}.detail-body{padding:0 4px 20px;color:#404340}.tag{display:inline-block;background:var(--accent2);color:var(--accent);border-radius:999px;padding:4px 9px;font-size:11px;font-weight:600;margin-right:5px}.ai-tools{display:flex;justify-content:flex-end;margin:0 0 10px}.ai-toggle{display:inline-flex;border:1px solid #d7dee8;background:#fff;border-radius:999px;padding:3px;gap:2px}.ai-toggle button{border:0;background:transparent;color:var(--muted);border-radius:999px;padding:6px 11px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.ai-toggle button.active{background:var(--accent);color:#fff}.ai-note{background:var(--accent2);border-radius:14px;padding:15px 16px}.source{font-size:12px;color:var(--muted)}
.loading{padding:44px;text-align:center;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:18px}.error{padding:16px;background:#fff4ef;border:1px solid #edd6ca;border-radius:14px;color:#6d4431}.hidden{display:none!important}
.review-hero{padding:34px 0 20px}.review-title{font-family:Georgia,serif;font-size:clamp(34px,5.5vw,52px);font-weight:500;margin:0}.review-sub{font-family:"Times New Roman",serif;font-size:23px;direction:rtl;margin:2px 0 8px}.review-intro{color:var(--muted);max-width:700px}.weekly-synthesis{background:var(--warm);border:1px solid #e7dcc4;border-radius:18px;padding:19px 20px;margin:17px 0 24px}.weekly-synthesis h3{font-family:Georgia,serif;font-weight:500;margin:0 0 8px}.review-card{margin:0 0 18px}.review-card .review-day{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--gold);font-weight:700;margin:0 0 7px 5px}.review-card h3{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:0 0 9px}.review-card details{border:0}.review-card summary{padding:13px 5px}.review-card .reader{box-shadow:none}
.panel{display:none;padding:34px 0 60px}.panel.show{display:block}.panelhead{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.panelhead h2{font-family:Georgia,serif;font-size:clamp(31px,5vw,44px);font-weight:500;margin:0}.panelhead p{margin:0;color:var(--muted);font-size:13px}.monthnav{display:flex;gap:7px}.monthnav button{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:8px 11px;cursor:pointer}.calendar{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.calweek,.calgrid{display:grid;grid-template-columns:repeat(7,1fr)}.calweek div{padding:10px;text-align:center;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}.calcell{min-height:112px;padding:10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;position:relative}.calcell:nth-child(7n){border-right:0}.calcell.out{opacity:.35}.calcell.weekend{background:#faf6ee}.calcell.today{outline:2px solid var(--accent);outline-offset:-2px}.calcell .num{font-size:12px;font-weight:700}.calcell .entry{font-family:Georgia,serif;font-size:12px;line-height:1.3;margin-top:12px}.calcell .entry .hecal{display:block;direction:rtl;font-family:"Times New Roman",serif;font-size:13px;margin-top:3px}.calcell .reviewmark{font-size:11px;color:var(--gold);font-weight:700;margin-top:14px}.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:11px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:5px}.dot.review{background:#d9b271}
.orders{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.ordercard{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}.ordercard h3{font-family:Georgia,serif;font-size:22px;font-weight:500;margin:0 0 3px}.ordercard .orderhe{direction:rtl;font-family:"Times New Roman",serif;font-size:17px;color:var(--muted);margin-bottom:10px}.tractates{display:flex;flex-wrap:wrap;gap:7px}.tractates button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer}.tractates button.current{border-color:var(--accent);color:var(--accent);background:var(--accent2)}.tractate-browser{margin-top:20px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}.chapter{margin-bottom:16px}.chapter h4{margin:0 0 7px;font-family:Georgia,serif}.mishna-buttons{display:flex;flex-wrap:wrap;gap:6px}.mishna-buttons button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 9px;font-size:12px;cursor:pointer}
.modal{display:none;position:fixed;inset:0;background:rgba(20,20,18,.38);z-index:60;padding:18px}.modal.show{display:flex}.sheet{margin:auto;width:min(100%,720px);max-height:86vh;overflow:auto;background:var(--paper);border-radius:22px;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.18)}.sheethead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-22px;background:var(--paper);padding:15px 0 12px;z-index:2}.sheethead h3{margin:0;font-family:Georgia,serif;font-weight:500}.close{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 11px;cursor:pointer}
footer{border-top:1px solid var(--line);padding:24px 0 40px;color:var(--muted);font-size:11px}
@media(max-width:720px){.topnav button span{display:none}.brand{font-size:18px}.hero{padding-top:31px}.phrase{grid-template-columns:1fr;gap:7px;padding:18px}.en{order:1}.he{order:2;font-size:25px}.reader-head{padding:16px 18px}.orders{grid-template-columns:1fr}.calcell{min-height:88px;padding:7px}.calcell .entry{font-size:10px}.calcell .entry .hecal{font-size:11px}.panelhead{align-items:flex-start;flex-direction:column}.navbtn{font-size:12px;padding:8px 10px}.today-line{line-height:1.7}}

.editorial-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-size:10px;color:var(--muted);margin-left:7px;vertical-align:middle}.editorial-badge.reviewed{background:#edf5ee;color:#315b37;border-color:#d7e7d9}.editorial-badge.ai{background:#f3effa;color:#5a3f79;border-color:#e1d7ef}.ai-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.ai-generate{border:1px solid #cad5e3;background:white;color:var(--accent);border-radius:999px;padding:8px 12px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.ai-generate:disabled{opacity:.55;cursor:wait}.ai-state{font-size:11px;color:var(--muted)}.source-links{display:grid;gap:9px}.source-link{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:11px 12px;background:#faf9f5;border:1px solid var(--line);border-radius:12px}.source-link a{color:var(--accent);text-decoration:none;font-weight:600}.source-link small{color:var(--muted)}

/* v0.4.6 M31 — Refuah banner + previous weekday Mishnah */
.refuah-banner{
  background:#173f73;color:#fff;border-bottom:1px solid rgba(255,255,255,.18);
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;
  min-height:42px;padding:6px max(14px,env(safe-area-inset-left));
}
.refuah-title{font-family:Georgia,"Times New Roman",serif;font-weight:600;font-size:14px;white-space:nowrap}
.refuah-window{overflow:hidden;white-space:nowrap;min-width:0;mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent)}
.refuah-track{display:inline-flex;min-width:max-content;gap:72px;align-items:center;animation:refuah-scroll 24s linear infinite;font-family:Georgia,"Times New Roman",serif;font-size:14px}
.refuah-track span{display:inline-block}
.refuah-edit{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;border-radius:999px;padding:5px 10px;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
.refuah-edit:hover{background:rgba(255,255,255,.1)}
@keyframes refuah-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 36px))}}
@media(prefers-reduced-motion:reduce){.refuah-track{animation:none}.refuah-window{overflow-x:auto;mask-image:none}}
.refuah-editor textarea{width:100%;min-height:120px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:12px;font:inherit;background:#fff;color:var(--ink)}
.refuah-status-error{color:#9b1c1c}.refuah-status-ok{color:#216e39}
.refuah-edit:disabled{opacity:.55;cursor:not-allowed}

.refuah-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.refuah-help{font-size:12px;color:var(--muted)}
.yesterday-wrap{margin:0 0 22px}
.yesterday-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 4px 9px}
.yesterday-heading h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:21px;line-height:1.2;margin:0}
.yesterday-heading .yesterday-ref{font-size:12px;color:var(--muted);text-align:right}
.yesterday-card{background:var(--warm);border:1px solid #e7dcc4;border-radius:18px;overflow:hidden}
.yesterday-card-head{padding:11px 16px;border-bottom:1px solid #e7dcc4;font-size:11px;color:#74664f;display:flex;justify-content:space-between;gap:12px}
.yesterday-whole{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;padding:17px 18px;align-items:start}
.yesterday-en{font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.55}
.yesterday-he{direction:rtl;text-align:right;font-family:"Times New Roman",serif;font-size:21px;line-height:1.7}
.yesterday-note{padding:9px 16px;border-top:1px solid #e7dcc4;font-size:11px;color:#74664f}
@media(max-width:720px){
  .refuah-banner{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding-left:10px;padding-right:10px}
  .refuah-title{font-size:12px}.refuah-track{font-size:13px;gap:54px}
  .yesterday-whole{grid-template-columns:1fr;gap:9px;padding:15px}
  .yesterday-en{order:1}.yesterday-he{order:2;font-size:22px}
  .yesterday-heading{align-items:flex-end}.yesterday-heading h2{font-size:19px}
}


/* v0.6.0 M37 — Learn Together, retention, audio, quiz, dedication */
.takeaway-card,.connection-card,.together-card,.weekly-quiz,.dedication-strip{border:1px solid var(--line);border-radius:16px;background:#fff}
.takeaway-card,.connection-card{padding:14px 16px;margin:14px 0}
.takeaway-card strong,.connection-card strong{display:block;font-size:12px;letter-spacing:.03em;text-transform:uppercase;margin-bottom:5px}
.takeaway-card p,.connection-card p{margin:0;line-height:1.5}
.connection-card{background:var(--warm)}.between-days{margin:12px 0 18px}
.dedication-strip{padding:9px 13px;margin:10px 0 14px;font-size:12px;text-align:center;background:#fbfaf6}
.dedication-strip:empty{display:none}
.together-card{margin:18px 0;overflow:hidden}
.together-card>summary{cursor:pointer;padding:14px 16px;font-weight:700;list-style:none}
.together-card>summary::-webkit-details-marker{display:none}
.together-card>summary:after{content:'+';float:right;font-size:18px;font-weight:400}
.together-card[open]>summary:after{content:'−'}
.together-body{padding:0 16px 16px;border-top:1px solid var(--line)}
.together-section{padding:14px 0;border-bottom:1px solid var(--line)}
.together-section:last-child{border-bottom:0}
.together-section h4{margin:0 0 7px;font-size:13px}
.together-section p{margin:5px 0}
.shared-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.shared-input,.shared-textarea,.ask-input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:10px 11px;font:inherit}
.shared-textarea{min-height:82px;resize:vertical}
.small-status{font-size:11px;color:var(--muted);min-height:16px}
.complete-btn.done{background:#1e5f47;color:#fff;border-color:#1e5f47}
.streak{font-size:12px;color:var(--muted)}
.audio-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.audio-controls audio{width:100%;margin-top:8px}
.recording{font-variant-numeric:tabular-nums;color:#9b1c1c}
.ask-answer{margin-top:9px;padding:11px 12px;border-radius:12px;background:#f3f6fa;line-height:1.5}
.ask-answer:empty{display:none}
.weekly-quiz{padding:15px 16px;margin:18px 0}
.weekly-quiz h3{margin:0 0 10px;font-family:Georgia,"Times New Roman",serif;font-size:20px}
.quiz-item{border-top:1px solid var(--line);padding:10px 0}
.quiz-item:first-of-type{border-top:0}
.quiz-q{font-weight:600;margin-bottom:7px}
.quiz-answer{display:none;margin-top:7px;padding:9px 10px;background:var(--warm);border-radius:10px}
.quiz-item.revealed .quiz-answer{display:block}
.quiz-reveal{font-size:11px;padding:5px 9px}
@media(max-width:720px){.takeaway-card,.connection-card{margin:11px 0;padding:12px}.together-card{margin:14px 0}.shared-row .navbtn,.shared-row .pillbtn{flex:1}}


/* v0.6.2 M39 — persistent two-user login */
.auth-gate{position:fixed;inset:0;z-index:99999;background:#f8f6f0;display:flex;align-items:center;justify-content:center;padding:20px}
.auth-gate.hidden{display:none}
.auth-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.08)}
.auth-card h1{margin:0 0 6px;font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:500}
.auth-card p{margin:0 0 18px;color:var(--muted);font-size:13px}
.auth-field{display:block;margin:12px 0}.auth-field span{display:block;font-size:12px;font-weight:600;margin-bottom:6px}
.auth-field input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font:inherit;background:#fff;color:var(--ink)}
.auth-error{min-height:18px;color:#9b1c1c;font-size:12px;margin-top:10px}
.user-chip{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-left:auto}
.logout-btn{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
body.auth-pending > *:not(#authGate){visibility:hidden}
body.auth-pending #authGate{visibility:visible}


/* v0.7.0 M40 — two-person learning state, call/recording history, time/location */
.people-panel,.progress-panel,.weekly-completion{border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 16px;margin:14px 0}
.people-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.person-card{border:1px solid var(--line);border-radius:13px;padding:11px;background:#fbfaf6}
.person-name{font-weight:700;font-size:13px}.person-meta{font-size:11px;color:var(--muted);margin-top:3px;line-height:1.4}
.person-time{font-family:Georgia,"Times New Roman",serif;font-size:20px;margin-top:5px}.person-status{margin-top:7px;font-size:12px}
.method-badge{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:3px 8px;font-size:10px;margin-left:4px}
.method-together{background:#edf7f1;border-color:#cde7d6}.method-recording{background:#f6f0ff;border-color:#ded0f2}
.completion-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.completion-actions .pillbtn{flex:1;min-width:150px}
.user-completion-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.user-completion{border:1px solid var(--line);border-radius:12px;padding:9px 10px;font-size:12px}.user-completion.done{background:#f1f8f4}
.catchup-list{display:grid;gap:8px}.catchup-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:8px}
.catchup-item:first-child{border-top:0;padding-top:0}
.progress-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.progress-stat{border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center}
.progress-stat strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:22px}.progress-stat span{font-size:10px;color:var(--muted)}
.week-grid{display:grid;grid-template-columns:auto repeat(5,1fr);gap:5px;align-items:center;font-size:11px}.week-grid .cell{padding:7px 4px;border:1px solid var(--line);border-radius:8px;text-align:center}.week-grid .name{font-weight:700;text-align:left;border:0;padding-left:0}
.location-edit{display:flex;gap:6px;margin-top:8px}.location-edit input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;padding:7px 8px;font:inherit;font-size:11px}
.learning-method-history{font-size:11px;color:var(--muted);margin-top:8px}
@media(max-width:720px){.people-grid,.user-completion-grid{grid-template-columns:1fr}.progress-numbers{grid-template-columns:1fr 1fr}.week-grid{font-size:10px;grid-template-columns:auto repeat(5,minmax(38px,1fr));overflow-x:auto}}


/* v0.7.1 M41 — compact daily-reading cleanup */
main{padding-top:22px}.people-panel{padding:9px 11px;margin:8px 0 12px}.people-grid{gap:7px}
.person-card{padding:8px 9px;border-radius:11px}.person-name{font-size:11px}.person-time{font-size:17px;margin-top:2px}
.person-meta,.person-status{font-size:10px;margin-top:2px}.location-edit{margin-top:6px}.location-edit input{padding:6px 7px}
.yesterday-wrap{margin-bottom:12px}.yesterday-heading{margin-bottom:6px}.yesterday-heading h2{font-size:18px}
.yesterday-card{border-radius:14px}.yesterday-card-head{padding:8px 12px}.yesterday-whole{padding:12px 13px;gap:16px}
.yesterday-en{font-size:14px;line-height:1.45}.yesterday-he{font-size:18px;line-height:1.55}.yesterday-note{padding:7px 12px}
.between-days{margin:8px 0 12px;padding:10px 12px}.takeaway-card{margin:10px 0;padding:11px 12px}.takeaway-card strong{font-size:10px}
.study-clean{margin-top:12px}.study-clean-block{padding:12px 0;border-top:1px solid var(--line)}.study-clean-block:first-child{border-top:0}
.study-clean-block h3{font-size:15px;margin:0 0 7px}.study-clean-block p{margin:0;line-height:1.5}
.ai-depth{background:#f3f6fa;border-radius:13px;padding:12px 13px}
.learn-together-clean{border:1px solid var(--line);border-radius:14px;margin:12px 0;padding:12px;background:#fff}
.learn-together-clean h3{margin:0 0 9px;font-size:15px}.learn-status-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}
.learn-user{border:1px solid var(--line);border-radius:10px;padding:7px 8px;font-size:11px}.learn-user.done{background:#f1f8f4}
.learn-primary{width:100%;margin:4px 0 10px}.learn-subsection{padding-top:10px;margin-top:10px;border-top:1px solid var(--line)}
.learn-subsection h4{font-size:12px;margin:0 0 6px}.voice-compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.voice-compact{border:1px solid var(--line);border-radius:10px;padding:7px}.voice-compact audio{width:100%;margin-top:5px;height:32px}
.go-deeper-clean{margin-top:14px;border-top:1px solid var(--line)}.go-deeper-clean>h3{font-family:Georgia,"Times New Roman",serif;font-size:18px;margin:14px 0 5px}
.go-deeper-clean details{border-top:1px solid var(--line);padding:0}.go-deeper-clean summary{padding:11px 2px;font-weight:600;cursor:pointer}
.go-deeper-clean .detail-body{padding:0 2px 11px}.coming-soon{font-style:italic;color:var(--muted)}
.footer-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:18px 0 8px}
.footer-link{border:0;background:transparent;text-decoration:underline;color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
.progress-modal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.progress-modal-stat{border:1px solid var(--line);border-radius:11px;padding:9px;text-align:center}
.progress-modal-stat strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:20px}.compact-catchup{margin-top:12px}
#progressPanel,#catchupPanel{display:none!important}.together-card{display:none!important}.old-deeper-study{display:none!important}
@media(max-width:720px){main{padding-top:14px}.people-grid{grid-template-columns:1fr 1fr}.person-card{padding:7px}.person-time{font-size:15px}
.person-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location-edit{display:grid;grid-template-columns:1fr auto}
.voice-compact-grid{grid-template-columns:1fr}.progress-modal-grid{grid-template-columns:1fr 1fr}}


/* v0.7.2 M42 — ultra-clean mobile-first top */
.hero{padding:12px 0 9px!important}
.hero h1{font-size:clamp(32px,7vw,46px)!important;line-height:1!important;margin:0 0 4px!important;letter-spacing:-.02em}
.hero .subhead{margin:2px 0 0!important;font-size:16px!important}
.date-line{margin-top:8px!important;font-size:12px!important;line-height:1.35!important}
.people-panel{border:0!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;padding:6px 0!important;margin:6px 0 10px!important}
.people-grid{display:flex!important;gap:0!important;align-items:center!important}
.person-card{flex:1!important;min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0 8px!important}
.person-card:first-child{padding-left:0!important;border-right:1px solid var(--line)!important}.person-card:last-child{padding-right:0!important}
.person-name,.person-time{display:inline!important;font-size:10px!important}.person-time{font-family:inherit!important;font-weight:600!important;margin:0 0 0 4px!important}
.person-meta{font-size:8px!important;line-height:1.2!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.person-status{display:none!important}.location-edit{display:none!important}#locationStatus{display:none!important}
.people-edit-row{display:flex;justify-content:flex-end;margin-top:3px}.people-edit-btn{border:0;background:transparent;padding:0;font:inherit;font-size:8px;color:var(--muted);text-decoration:underline;cursor:pointer}
.site-header{padding-top:7px!important;padding-bottom:7px!important}.brand{font-size:13px!important;white-space:nowrap}.user-chip{font-size:9px!important;gap:4px!important}
.refuah-bar{min-height:32px!important}.refuah-title{font-size:10px!important}.refuah-track{font-size:12px!important}.refuah-edit{font-size:9px!important;padding:3px 7px!important}
#locationModal .sheet{max-width:420px}.compact-location-summary{font-size:10px;color:var(--muted);margin-top:5px}
@media(max-width:720px){.hero h1{font-size:36px!important}.hero .subhead{font-size:15px!important}}


/* v0.7.3 M43 — mobile finish / overflow lock */
html,body{max-width:100%;overflow-x:hidden!important}
*,*::before,*::after{box-sizing:border-box}
img,video,audio,canvas,svg{max-width:100%}
main,.wrap,.container,.shell,.content,.hero,.study-clean,.yesterday-wrap,.reader-card,.review-card{max-width:100%!important;min-width:0!important}
body{width:100%;margin:0}
header,.site-header,.topbar,.refuah-bar{max-width:100vw!important;overflow:hidden}
.site-header{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}
.brand{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
nav{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;overflow:hidden!important}
nav a,nav button{white-space:nowrap!important}
.user-chip{flex:0 0 auto!important;min-width:0!important}
.hero h1{white-space:normal!important;overflow-wrap:anywhere!important}
.reader-card,.yesterday-card{width:100%!important;max-width:100%!important;overflow:hidden!important}
.reader-row,.yesterday-whole{min-width:0!important}
.reader-en,.reader-he,.yesterday-en,.yesterday-he{min-width:0!important;overflow-wrap:anywhere!important;word-break:normal}
.refuah-inner,.refuah-track{min-width:0!important;max-width:100%!important;overflow:hidden!important}
.footer-actions{margin-bottom:4px!important}
footer{overflow:hidden!important;max-width:100%!important}
footer .brand,footer .site-title,footer .footer-brand{display:none!important}

/* flatter Learn Together */
.learn-together-clean{padding:10px 0!important;border-left:0!important;border-right:0!important;border-radius:0!important;background:transparent!important}
.learn-status-row{display:flex!important;gap:12px!important;margin:6px 0!important}
.learn-user{flex:1!important;border:0!important;border-radius:0!important;padding:2px 0!important;background:transparent!important}
.learn-user.done{background:transparent!important}
.learn-subsection{padding-top:8px!important;margin-top:8px!important}
.shared-textarea{min-height:48px!important;max-height:110px!important;padding:8px 9px!important}
.shared-textarea:focus{min-height:88px!important}
.voice-compact-grid{gap:4px!important}
.voice-compact{border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;padding:7px 0!important}
.voice-compact:first-child{border-top:0!important}
.learn-primary{margin-bottom:6px!important}
.learning-method-history{margin-top:3px!important}

/* quieter deeper section */
.go-deeper-clean{margin-top:10px!important}
.go-deeper-clean>h3{font-size:16px!important;margin:10px 0 2px!important}
.go-deeper-clean summary{padding:9px 0!important;font-size:12px!important}
.go-deeper-clean .detail-body{padding:0 0 8px!important;font-size:12px!important}

/* tighter yesterday */
.yesterday-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:8px!important}
.yesterday-heading h2{font-size:17px!important;white-space:nowrap!important}
.yesterday-heading .yesterday-ref{min-width:0!important;text-align:right!important;font-size:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.yesterday-card-head{font-size:10px!important}
.yesterday-whole{padding:10px 11px!important}
.between-days{font-size:11px!important}

/* remove location edit from reading flow entirely */
.people-edit-row{display:none!important}

/* iPhone/mobile */
@media(max-width:720px){
  body{font-size:14px}
  .site-header{padding:6px 10px!important}
  .brand{font-size:12px!important;max-width:48vw!important}
  nav{margin-left:auto!important;gap:6px!important}
  nav a{display:none!important}
  nav a.active{display:inline-flex!important}
  .user-chip{font-size:9px!important}
  .hero{padding:10px 0 7px!important}
  .hero h1{font-size:29px!important;line-height:1.02!important;margin-bottom:3px!important}
  .hero .subhead{font-size:14px!important;line-height:1.25!important}
  .date-line{font-size:11px!important;margin-top:7px!important}
  .people-panel{margin:5px 0 8px!important;padding:5px 0!important}
  .person-card{padding:0 6px!important}
  .person-name,.person-time{font-size:9px!important}
  .person-meta{font-size:7.5px!important}
  .yesterday-wrap{margin-bottom:9px!important}
  .yesterday-heading{margin-bottom:4px!important}
  .yesterday-heading h2{font-size:16px!important}
  .yesterday-card-head{padding:7px 10px!important}
  .yesterday-whole{display:block!important;padding:10px!important}
  .yesterday-en{font-size:13px!important;line-height:1.42!important;margin-bottom:10px!important}
  .yesterday-he{font-size:17px!important;line-height:1.48!important}
  .reader-row{grid-template-columns:1fr!important;gap:4px!important;padding:10px 11px!important}
  .reader-en{font-size:13px!important}
  .reader-he{font-size:17px!important;text-align:right!important}
  .takeaway-card{padding:9px 10px!important;margin:8px 0!important}
  .study-clean-block{padding:9px 0!important}
  .study-clean-block h3{font-size:14px!important}
  .ai-depth{padding:10px 11px!important}
  .learn-together-clean h3{font-size:14px!important}
  .learn-status-row{gap:8px!important}
  .learn-user{font-size:10px!important}
  .voice-compact-grid{display:block!important}
  .footer-actions{margin:13px 0 3px!important}
  .refuah-bar{min-height:30px!important}
  .refuah-title{font-size:9px!important}
  .refuah-track{font-size:11px!important}
  .refuah-edit{font-size:8px!important;padding:3px 6px!important}
}


/* v0.7.4 M44 — final top/menu/resources polish */
.people-panel{order:-1!important;margin:0!important;padding:3px 10px!important;border-top:0!important;background:#fbfaf6!important}
.people-grid{max-width:760px;margin:0 auto}
.person-card{padding:0 6px!important}
.person-name,.person-time{font-size:8.5px!important}
.person-meta{font-size:7px!important}
.hero{padding-top:7px!important}
.mobile-menu-btn{display:none;border:1px solid var(--line);border-radius:999px;background:transparent;padding:5px 8px;font:inherit;font-size:10px;cursor:pointer}
.mobile-menu{display:none;position:absolute;right:10px;top:46px;z-index:5000;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 30px rgba(0,0,0,.12);min-width:150px}
.mobile-menu.show{display:block}
.mobile-menu a,.mobile-menu button{display:block!important;width:100%;text-align:left;padding:8px 9px;border:0;background:transparent;font:inherit;font-size:11px;color:var(--ink);text-decoration:none;cursor:pointer}
.site-header{position:relative}
.resource-list{display:grid;gap:7px;margin-top:8px}
.resource-item{padding:9px 10px;border:1px solid var(--line);border-radius:10px}
.resource-item strong{display:block;font-size:12px;margin-bottom:2px}
.resource-item span{font-size:10px;color:var(--muted)}
@media(max-width:720px){
  .mobile-menu-btn{display:inline-flex}
  nav>a,nav>button:not(.mobile-menu-btn){display:none!important}
  .people-panel{padding:3px 8px!important}
  .person-name,.person-time{font-size:8px!important}
  .person-meta{font-size:6.8px!important}
}


/* M45 cleaner + multi-recording */
.person-meta{display:none!important}.hero{padding:5px 0!important}.hero h1{font-size:26px!important}.date-line{margin-top:4px!important}
.takeaway-card{border:0!important;border-left:2px solid var(--line)!important;border-radius:0!important;background:transparent!important;padding:6px 8px!important}
.ai-depth{background:transparent!important;padding:0!important;border-radius:0!important}
.learn-together-clean{border-left:0!important;border-right:0!important;border-radius:0!important;padding:8px 0!important;margin:7px 0!important}
.shared-textarea{min-height:36px!important}.voice-recording-row{border-top:1px solid var(--line);padding:5px 0}.voice-recording-row:first-child{border-top:0}
.voice-recording-meta{font-size:9px;color:var(--muted);margin-bottom:2px}.voice-recording-row audio{width:100%;height:28px}
.go-deeper-clean summary{padding:7px 0!important;font-size:11px!important}.resource-item{border-left:0!important;border-right:0!important;border-radius:0!important}

/* M46 editorial hierarchy */
.hero{padding:6px 0 3px!important}.hero h1{font-family:inherit!important;font-size:13px!important;line-height:1.2!important;font-weight:600!important;margin:0 0 1px!important}.hero .reminder{font-size:10px!important;margin:0!important;color:var(--muted)!important}.today-line{font-size:9px!important;margin:3px 0!important;color:var(--muted)!important}
.people-panel{border:0!important;background:transparent!important;padding:1px 0 4px!important;margin:0!important}.people-grid{justify-content:flex-start!important;gap:14px!important}.person-card{flex:0 1 auto!important;border:0!important;padding:0!important;background:transparent!important}.person-card:first-child{border:0!important}.person-name,.person-time{font-size:8px!important;font-weight:500!important;color:var(--muted)!important}.person-meta,.person-status,.people-edit-row{display:none!important}
.mishnah-line{margin:7px 0 4px!important}.mishnah-label{font-size:12px!important;font-weight:600!important;color:var(--ink)!important}.mishnah-ref{font-family:Georgia,"Times New Roman",serif!important;font-size:30px!important;line-height:1.05!important;margin-top:1px!important}.contextline{font-size:8px!important;margin-top:4px!important}
.yesterday-wrap{margin:4px 0 7px!important}.yesterday-heading{margin:0 0 3px!important}.yesterday-heading h2{font-family:inherit!important;font-size:10px!important;font-weight:500!important;color:var(--muted)!important}.yesterday-heading .yesterday-ref{font-size:9px!important;color:var(--muted)!important}.yesterday-card{border-radius:8px!important;opacity:.92}.yesterday-card-head{padding:5px 8px!important;font-size:8px!important}.yesterday-whole{padding:8px 9px!important}.yesterday-en{font-size:11px!important;line-height:1.35!important}.yesterday-he{font-size:14px!important;line-height:1.4!important}.yesterday-note{font-size:8px!important;padding:5px 8px!important}.between-days{padding:6px 8px!important;margin:5px 0 7px!important;font-size:9px!important}
.week-note{border:0!important;background:transparent!important;padding:3px 0!important;margin:3px 0!important;font-size:8px!important;color:var(--muted)!important}
.ai-section-paragraph{margin:0 0 8px!important}.learn-status-row{gap:14px!important;margin:3px 0!important}.learn-user{display:flex!important;gap:4px!important;align-items:center!important;font-size:9px!important}.learning-method-history{display:none!important}.learn-subsection{padding-top:6px!important;margin-top:6px!important}.shared-row{display:flex!important;align-items:center!important;gap:6px!important}#sharedNoteClean{flex:1!important;min-height:32px!important}#saveSharedNoteClean{flex:0 0 auto!important;margin:0!important}
.site-footer .wrap{font-size:0!important}.site-footer .wrap span{font-size:8px!important;float:none!important}


/* ===== v033-mobile-public-refinement ===== */
/* v0.3.3 — mobile-first public refinement */
@media (max-width: 700px){
  :root{--mobile-pad:16px}
  body{overflow-x:hidden}
  .shell,.topbar-inner,.page,.wrap,.container,main{max-width:none!important;width:100%!important}
  .topbar-inner,.page,.wrap,.container,main{padding-left:var(--mobile-pad)!important;padding-right:var(--mobile-pad)!important}
  .hero{padding-top:22px!important;padding-bottom:18px!important}
  .hero h1,.greeting{font-size:clamp(2.15rem,11vw,3.15rem)!important;line-height:.96!important;letter-spacing:-.035em!important;margin-bottom:8px!important}
  .hero .motto,.motto{font-size:1.08rem!important;line-height:1.35!important;margin-bottom:26px!important}
  .date-line,.today-date{display:flex!important;flex-wrap:wrap!important;gap:4px 7px!important;align-items:baseline!important;font-size:.98rem!important;line-height:1.45!important}
  .daily-title,.mishnah-title{font-size:1.72rem!important;line-height:1.08!important;margin-top:6px!important}
  .meta-row,.chips{gap:6px!important}
  .nav-row,.study-nav{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:8px!important;align-items:center!important}
  .nav-row button,.study-nav button,.nav-row a,.study-nav a{min-width:0!important;padding:10px 9px!important;font-size:.86rem!important}
  .translation-card,.card{border-radius:16px!important}
  .translation-card .card-head{padding:14px 12px!important}
  .phrase-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;align-items:center!important;padding:14px 12px!important;min-height:0!important}
  .phrase-row .en,.phrase-row .english,.phrase-row [data-lang="en"]{grid-column:1!important;text-align:left!important;font-size:1rem!important;line-height:1.35!important}
  .phrase-row .he,.phrase-row .hebrew,.phrase-row [data-lang="he"]{grid-column:2!important;text-align:right!important;direction:rtl!important;font-size:1.22rem!important;line-height:1.55!important}
  .phrase-row .eyebrow,.phrase-row .label,.phrase-row .simple-label{display:none!important}
  .deeper-title{margin-top:26px!important}
  details summary{padding:16px 4px!important}
  details .detail-body,details .content{padding:0 4px 18px!important}
  .ai-mode,.segmented,.summary-toggle{margin-left:auto!important}
  footer{font-size:.72rem!important;padding-top:24px!important}
}
.public-only-hide,.admin-only,.editorial-only,.reviewed-badge{display:none!important}


/* ===== v033-public-hide-controls ===== */
button:has(+ .reviewed-prototype), .reviewed-prototype {display:none!important}
button[data-action="generate-ai"],button[id*="generate"],button[id*="refresh-ai"]{display:none!important}
.ai-generate,.generate-ai,.refresh-ai,.draft-badge,.prototype-badge{display:none!important}


/* ===== legacy-4 ===== */
.phrase-row .english-label{display:none!important}
@media(max-width:700px){.translation-card{width:100%!important;max-width:none!important}}

.review-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:0 0 22px}
.review-nav .navbtn:last-child{text-align:center}
@media(max-width:700px){.review-nav{gap:8px}.review-nav .navbtn{padding:10px 8px;font-size:.84rem}}


/* ===== m47-final-cascade-repair ===== */
/* M47 — authoritative final cascade; MUST remain last stylesheet */

/* Prevent old mobile rules from re-expanding the page */
html,body{max-width:100%;overflow-x:hidden!important}
*,*::before,*::after{box-sizing:border-box}

/* Header: minimal chrome */
header.top{
  min-height:32px!important;
  padding:0!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--paper)!important;
  overflow:visible!important;
}
header.top .brandrow{
  min-height:32px!important;
  padding:4px 14px!important;
  display:flex!important;
  align-items:center!important;
}
header.top .brand{
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
header.top .topnav{margin-left:auto!important}
.mobile-menu-btn{
  position:absolute!important;
  right:12px!important;
  top:4px!important;
  display:none!important;
  font-size:9px!important;
  padding:4px 8px!important;
  line-height:1.2!important;
}
.mobile-menu{
  top:34px!important;
  right:10px!important;
  display:none!important;
  min-width:150px!important;
}
.mobile-menu.show{display:block!important}

/* Requested top hierarchy */
#dailyHero.hero{
  padding:8px 0 6px!important;
  margin:0!important;
}
#dailyHero .greeting,
#dailyHero h1.greeting{
  font-family:var(--sans,Arial,sans-serif)!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:600!important;
  letter-spacing:0!important;
  margin:0 0 1px!important;
  white-space:normal!important;
}
#dailyHero .reminder{
  font-size:10px!important;
  line-height:1.2!important;
  margin:0 0 3px!important;
  color:var(--muted)!important;
}
#dailyHero .today-line{
  display:block!important;
  font-size:9px!important;
  line-height:1.25!important;
  margin:0 0 3px!important;
  color:var(--muted)!important;
}

/* Per-user time: one tiny line */
#peoplePanel.people-panel{
  display:block!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0 0 7px!important;
}
#peoplePanel .people-grid{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:14px!important;
  max-width:none!important;
  margin:0!important;
}
#peoplePanel .person-card,
#peoplePanel .person-card:first-child,
#peoplePanel .person-card:last-child{
  flex:0 0 auto!important;
  display:block!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
}
#peoplePanel .person-name,
#peoplePanel .person-time{
  display:inline!important;
  font-family:var(--sans,Arial,sans-serif)!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:500!important;
  color:var(--muted)!important;
  margin:0 0 0 2px!important;
}
#peoplePanel .person-name{margin-left:0!important}
#peoplePanel .person-meta,
#peoplePanel .person-status,
#peoplePanel .people-edit-row,
#peoplePanel #locationStatus{
  display:none!important;
}

/* Today's Mishnah is THE headline */
#dailyHero .mishnah-line{
  margin:8px 0 0!important;
  padding:0!important;
}
#dailyHero #dailyLabel{
  font-family:var(--sans,Arial,sans-serif)!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:600!important;
  color:var(--ink)!important;
  margin:0 0 2px!important;
}
#dailyHero .mishnah-ref{
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:30px!important;
  line-height:1.05!important;
  font-weight:400!important;
  margin:0!important;
  overflow-wrap:anywhere!important;
}
#dailyHero .contextline,
#dailyHero .progress{
  display:none!important;
}
#dailyHero .week-note{
  border:0!important;
  background:transparent!important;
  padding:2px 0!important;
  margin:4px 0 0!important;
  font-size:8px!important;
  line-height:1.2!important;
  color:var(--muted)!important;
}

/* Yesterday: small reference immediately below Today's headline */
#yesterdayContent.yesterday-wrap{
  margin:7px 0 8px!important;
  padding:0!important;
}
#yesterdayContent .yesterday-heading{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin:0 0 4px!important;
}
#yesterdayContent .yesterday-heading h2{
  font-family:var(--sans,Arial,sans-serif)!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:500!important;
  color:var(--muted)!important;
  margin:0!important;
}
#yesterdayContent .yesterday-ref{
  font-size:9px!important;
  line-height:1.2!important;
  color:var(--muted)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#yesterdayContent .yesterday-card{
  border-radius:8px!important;
  box-shadow:none!important;
}
#yesterdayContent .yesterday-card-head{
  padding:5px 8px!important;
  font-size:8px!important;
}
#yesterdayContent .yesterday-whole{
  padding:8px 9px!important;
  gap:12px!important;
}
#yesterdayContent .yesterday-en{
  font-size:11px!important;
  line-height:1.35!important;
}
#yesterdayContent .yesterday-he{
  font-size:14px!important;
  line-height:1.4!important;
}
#yesterdayContent .yesterday-note{
  padding:5px 8px!important;
  font-size:8px!important;
}
#yesterdayContent .between-days{
  padding:5px 7px!important;
  margin:4px 0 0!important;
  font-size:9px!important;
}

/* Navigation after yesterday: compact */
#dailyNav.navrow{
  margin:6px 0 8px!important;
  gap:6px!important;
}
#dailyNav .navbtn,
#dailyNav .pillbtn{
  min-height:0!important;
  padding:6px 8px!important;
  font-size:9px!important;
}
#dailyNav .centercontrols,
#dailyNav #cycleLabel{
  font-size:8px!important;
  line-height:1.2!important;
}

/* Keep the rest clean */
.takeaway-card{
  border:0!important;
  border-left:2px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  padding:6px 8px!important;
}
.ai-depth{
  background:transparent!important;
  border-radius:0!important;
  padding:0!important;
}
.ai-section-paragraph{margin:0 0 8px!important}
.learn-together-clean{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.resource-item{
  border-left:0!important;
  border-right:0!important;
  border-radius:0!important;
}

/* Mobile: hide all header clutter except a single Menu button */
@media(max-width:700px){
  header.top .brandrow{
    min-height:30px!important;
    padding:3px 10px!important;
  }
  header.top .brand,
  header.top .user-chip,
  header.top .topnav{
    display:none!important;
  }
  .mobile-menu-btn{
    display:inline-flex!important;
  }

  main.wrap{
    width:100%!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  #dailyHero.hero{
    padding:7px 0 5px!important;
  }
  #dailyHero .greeting,
  #dailyHero h1.greeting{
    font-size:13px!important;
    line-height:1.2!important;
    margin:0 0 1px!important;
  }
  #dailyHero .reminder{
    font-size:9px!important;
    margin-bottom:3px!important;
  }
  #dailyHero .today-line{
    font-size:8.5px!important;
    margin-bottom:3px!important;
  }

  #peoplePanel .people-grid{gap:12px!important}
  #peoplePanel .person-name,
  #peoplePanel .person-time{font-size:7.5px!important}

  #dailyHero #dailyLabel{font-size:10px!important}
  #dailyHero .mishnah-ref{
    font-size:28px!important;
    line-height:1.02!important;
  }

  #yesterdayContent .yesterday-heading h2{font-size:9px!important}
  #yesterdayContent .yesterday-ref{font-size:8px!important}
  #yesterdayContent .yesterday-whole{
    display:block!important;
    padding:8px!important;
  }
  #yesterdayContent .yesterday-en{
    font-size:10.5px!important;
    margin-bottom:8px!important;
  }
  #yesterdayContent .yesterday-he{font-size:13.5px!important}

  /* prevent legacy phrase-row expansion */
  .phrase-row,
  .reader-row{
    min-width:0!important;
    max-width:100%!important;
  }
}


/* ===== m48-audio-clean ===== */
.voice-recordings{margin-top:5px!important}
.voice-recordings>strong{font-size:10px!important}
.voice-recording-row{padding:4px 0!important}
.voice-recording-meta{font-size:8px!important;margin-bottom:2px!important}
.voice-recording-row audio{height:26px!important;width:100%!important}
#voiceStatusClean{font-size:8px!important;margin-top:3px!important}
#recordVoiceClean,#stopVoiceClean{font-size:10px!important;padding:6px 9px!important}
#recordTimerClean{font-size:9px!important}


/* ===== m50-editorial-visuals ===== */
/* M50: minimal editorial Torah-journal visual system */
:root{--m50-gap:10px}
body{letter-spacing:0}
main.wrap{max-width:760px!important}
.reader-card,.yesterday-card,.learn-together-clean,.ai-depth,.takeaway-card{box-shadow:none!important}
.reader-card{border-left:0!important;border-right:0!important;border-radius:0!important}
.reader-row{border-top:1px solid var(--line)!important}
.reader-row:first-child{border-top:0!important}
.study-clean-block{border-top:1px solid var(--line)!important}
.study-clean-block h3,.learn-together-clean h3,.go-deeper-clean>h3{letter-spacing:-.01em}
.ai-depth{background:transparent!important;padding:0!important}
.learn-together-clean{background:transparent!important;border-left:0!important;border-right:0!important;border-radius:0!important}
.go-deeper-clean details{border-color:var(--line)!important}
.refuah-bar{min-height:28px!important}.refuah-title{font-size:9px!important}.refuah-track{font-size:11px!important}
#dailyNav.navrow{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:7px!important}
#dailyNav .prev{justify-self:start!important}
#dailyNav .next{justify-self:end!important}
#todayNavBlock{justify-self:center!important;text-align:center!important;min-width:0}
#todayNavBlock .today-nav-label{display:block;font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
#todayNavBlock .today-nav-ref{display:block;font-family:Georgia,"Times New Roman",serif;font-size:13px;line-height:1.1;white-space:nowrap}
#dailyNav .centercontrols{display:none!important}
.push-light-wrap{display:inline-flex;align-items:center;gap:4px;margin-left:6px;font-size:8px;color:var(--muted);vertical-align:middle}
.push-light{width:7px;height:7px;border-radius:50%;display:inline-block;background:#a62b2b;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.push-light.on{background:#2f7d4a}
.voice-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
@media(max-width:700px){
 main.wrap{padding-left:14px!important;padding-right:14px!important}
 .reader-row{padding:8px 2px!important}
 #dailyNav.navrow{gap:5px!important}
 #todayNavBlock .today-nav-ref{font-size:12px}
 .refuah-bar{min-height:26px!important}
}


/* ===== m51-apple-editorial-final ===== */
:root{
  --apple-bg:#fbfaf7;
  --apple-text:#171717;
  --apple-secondary:#77736d;
  --apple-line:rgba(23,23,23,.10);
  --apple-blue:#173f73;
}
html,body{max-width:100%;overflow-x:hidden}
body{background:var(--apple-bg);color:var(--apple-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
.wrap{max-width:780px!important}
button,input,textarea{font-family:inherit}
.hidden{display:none!important}

/* Refuah: thin system banner */
.refuah-banner{
  min-height:30px!important;padding:3px 12px!important;gap:9px!important;
  background:var(--apple-blue)!important;border:0!important;
  grid-template-columns:auto minmax(0,1fr) auto!important
}
.refuah-title{font-family:inherit!important;font-size:10px!important;font-weight:600!important;letter-spacing:.01em}
.refuah-window{mask-image:none!important}
.refuah-track{
  font-family:inherit!important;font-size:10px!important;gap:54px!important;
  animation:m51-refuah-scroll var(--refuah-duration,24s) linear infinite!important
}
.refuah-view{
  border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:999px;
  padding:4px 8px;font-size:9px;cursor:pointer
}
.refuah-read-list{white-space:pre-wrap;font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.8;padding:8px 0}

/* Site identity */
header.top.apple-top{border:0!important;background:transparent!important;overflow:visible!important}
.apple-top .brandrow{min-height:0!important;padding:15px 14px 10px!important;position:relative}
.apple-brand{
  display:block!important;font-family:Georgia,"Times New Roman",serif!important;
  font-size:27px!important;line-height:1.05!important;font-weight:500!important;letter-spacing:-.02em!important;
  color:var(--apple-text)!important
}
.apple-brand span{font-family:"Times New Roman",serif;font-size:.62em;font-weight:400;color:var(--apple-secondary)}
.apple-top .topnav,.apple-top .user-chip{display:none!important}
.mobile-menu-btn{
  display:inline-flex!important;position:absolute!important;right:14px!important;top:14px!important;
  border:0!important;background:transparent!important;color:var(--apple-secondary)!important;
  font-size:18px!important;line-height:1!important;padding:3px 5px!important
}
.mobile-menu{top:44px!important;right:12px!important;border:1px solid var(--apple-line)!important;border-radius:14px!important;box-shadow:0 12px 35px rgba(0,0,0,.12)!important}

/* Personal context — nearly invisible */
.apple-hero{padding:1px 0 7px!important;margin:0!important}
.apple-hero .greeting{
  font-family:inherit!important;font-size:11px!important;line-height:1.2!important;font-weight:600!important;
  margin:0 0 1px!important;letter-spacing:0!important
}
.apple-hero .reminder{font-size:9px!important;line-height:1.25!important;margin:0 0 3px!important;color:var(--apple-secondary)!important}
.apple-hero .today-line{font-size:8.5px!important;line-height:1.25!important;margin:0 0 3px!important;color:var(--apple-secondary)!important}
#peoplePanel{border:0!important;background:transparent!important;padding:0!important;margin:0 0 8px!important}
#peoplePanel .people-grid{display:flex!important;justify-content:flex-start!important;gap:13px!important;margin:0!important}
#peoplePanel .person-card,#peoplePanel .person-card:first-child,#peoplePanel .person-card:last-child{
  flex:0 0 auto!important;border:0!important;background:transparent!important;padding:0!important
}
#peoplePanel .person-name,#peoplePanel .person-time{font-size:8px!important;line-height:1!important;color:var(--apple-secondary)!important;font-weight:500!important}
#peoplePanel .person-time{margin-left:3px!important}
#peoplePanel .person-meta,#peoplePanel .person-status,#peoplePanel #locationStatus{display:none!important}

/* Learn Together is a tiny utility strip */
.learn-strip{
  display:flex;align-items:center;gap:6px;min-height:31px;margin:8px 0 5px;
  padding:5px 0;border-top:1px solid var(--apple-line);border-bottom:1px solid var(--apple-line);
  white-space:nowrap
}
.learn-strip-title{font-size:9px;font-weight:600;margin-right:auto}
.learn-chip{
  appearance:none;border:0;background:transparent;color:var(--apple-text);font-size:9px;
  padding:4px 5px;border-radius:7px;cursor:pointer
}
.learn-chip:hover{background:rgba(0,0,0,.035)}
.learn-people{font-size:8px;color:var(--apple-secondary)}
.count-badge{
  display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 4px;margin-left:2px;
  border-radius:999px;background:var(--apple-blue);color:#fff;font-size:8px;font-weight:700
}
.mini-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--apple-blue);vertical-align:middle}

/* Yesterday: review, typography rather than card */
.yesterday-wrap{margin:11px 0 7px!important}
.yesterday-heading{display:flex!important;align-items:flex-end!important;gap:12px!important;margin:0 0 8px!important}
.yesterday-heading>div:first-child{min-width:0}
.eyebrow{font-size:9px;text-transform:none;letter-spacing:0;color:var(--apple-secondary);margin-bottom:2px}
.yesterday-ref{font-family:Georgia,"Times New Roman",serif!important;font-size:17px!important;color:var(--apple-text)!important;text-align:left!important}
.font-stepper{display:flex;align-items:center;gap:2px;margin-left:auto;border:1px solid var(--apple-line);border-radius:999px;padding:1px}
.font-stepper button{width:26px;height:24px;border:0;background:transparent;font-size:16px;color:var(--apple-secondary);cursor:pointer}
.font-stepper span{font-size:10px;color:var(--apple-secondary)}
.yesterday-review{
  --y-scale:1;
  padding:10px 0 5px;border:0;background:transparent
}
.yesterday-review .yesterday-he{
  direction:rtl;text-align:right;font-family:"Times New Roman",serif!important;
  font-size:19px!important;line-height:1.62!important;margin-bottom:13px
}
.yesterday-review .yesterday-en{
  font-family:Georgia,"Times New Roman",serif!important;font-size:14px!important;
  line-height:1.55!important;color:#45423e
}
.between-days{
  display:flex!important;gap:9px!important;align-items:baseline!important;background:transparent!important;
  border:0!important;padding:8px 0!important;margin:8px 0 0!important;border-top:1px solid var(--apple-line)!important
}
.between-days span{font-size:9px;font-weight:600;color:var(--apple-secondary);white-space:nowrap}
.between-days p{font-size:9px!important;color:var(--apple-secondary)!important;margin:0!important}

/* Explicit day break */
.day-divider{display:flex;align-items:center;gap:9px;margin:17px 0 11px;color:var(--apple-secondary);font-size:8px;text-transform:uppercase;letter-spacing:.12em}
.day-divider::before,.day-divider::after{content:"";height:1px;background:var(--apple-line);flex:1}
.today-heading-block{padding:0 0 9px}
.today-heading-label{font-size:12px;font-weight:600;margin-bottom:3px}
.today-heading-ref{
  font-family:Georgia,"Times New Roman",serif;font-size:32px;line-height:1.05;letter-spacing:-.025em
}
.today-heading-ref #refHe{font-family:"Times New Roman",serif}
.today-dot{color:#aaa59d}
.today-heading-block .contextline,.today-heading-block .progress,.today-heading-block .week-note{display:none!important}
.apple-day-nav{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:4px!important;margin:0 0 8px!important}
.ghost-nav{border:0;background:transparent;color:var(--apple-secondary);font-size:9px;padding:4px 6px;cursor:pointer}
#prevBtn,#nextBtn{font-size:16px}

/* Today's phrase reader: book-like */
.apple-reader{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.apple-reader .reader-head{display:none!important}
.apple-reader .phrase{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important;
  padding:15px 0!important;border:0!important;border-top:1px solid var(--apple-line)!important;background:transparent!important
}
.apple-reader .phrase:first-of-type{border-top:0!important}
.apple-reader .he{
  grid-column:2;direction:rtl;text-align:right;font-family:"Times New Roman",serif!important;
  font-size:22px!important;line-height:1.58!important
}
.apple-reader .en{
  grid-column:1;font-family:Georgia,"Times New Roman",serif!important;
  font-size:15px!important;line-height:1.5!important;color:#44413d
}
.apple-reader .en small{display:none!important}
.reader-status{font-size:8px!important;color:var(--apple-secondary)!important;border:0!important;padding:4px 0!important}

/* Learning guide */
.apple-study{margin-top:17px!important}
.the-point{padding:13px 0!important;border-top:1px solid var(--apple-line);border-bottom:1px solid var(--apple-line)}
.the-point p{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.5;margin:2px 0 0}
.study-section{padding:18px 0!important;border:0!important;border-bottom:1px solid var(--apple-line)!important}
.study-section h3,.go-deeper-apple h3{font-family:Georgia,"Times New Roman",serif;font-size:22px!important;font-weight:500!important;margin:0 0 9px!important}
.study-section p{font-size:14px;line-height:1.65;margin:0 0 10px}
.understanding p{max-width:680px}
.source{font-size:9px!important;color:var(--apple-secondary)!important}

/* Go Deeper = Apple Settings-like rows */
.go-deeper-apple{padding:20px 0 8px}
.deeper-row{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;
  border:0;border-top:1px solid var(--apple-line);background:transparent;padding:12px 2px;cursor:pointer;color:inherit
}
.deeper-row:last-of-type{border-bottom:1px solid var(--apple-line)}
.deeper-row span{display:grid;gap:2px}
.deeper-row strong{font-size:13px;font-weight:600}
.deeper-row small{font-size:9px;color:var(--apple-secondary)}
.deeper-row b{font-size:22px;font-weight:300;color:#aaa59d}
.deep-block{padding:2px 0 14px}
.deep-block h4,.study-sheet-content h4{font-size:13px;margin:15px 0 5px}
.deep-block p,.study-sheet-content p,.discussion-questions{font-size:13px;line-height:1.6}
.discussion-questions{padding-left:21px}
.coming-soon{color:var(--apple-secondary);font-size:12px}

/* Sheets / popups */
.modal{backdrop-filter:blur(8px);background:rgba(20,20,20,.22)!important}
.modal .sheet{
  border:0!important;border-radius:18px!important;box-shadow:0 20px 60px rgba(0,0,0,.18)!important;
  background:#fff!important;max-width:620px!important
}
.sheethead{border-bottom:1px solid var(--apple-line)!important}
.sheethead h3{font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:500}
.sheethead .close{border:0!important;background:transparent!important;color:var(--apple-blue)!important}
.shared-textarea{border:1px solid var(--apple-line)!important;border-radius:12px!important;min-height:130px!important}
.primary-record{background:var(--apple-blue)!important;color:#fff!important;border-color:var(--apple-blue)!important}
.voice-person{padding:12px 0;border-top:1px solid var(--apple-line)}
.voice-person>strong{font-size:11px}
.voice-recording-row{padding:6px 0!important;border:0!important}
.voice-recording-meta{font-size:8px!important;color:var(--apple-secondary)!important}
.voice-recording-row audio{width:100%;height:29px}
.setup-guide{margin-top:18px;padding-top:14px;border-top:1px solid var(--apple-line)}
.setup-guide h4{font-size:13px;margin:0 0 7px}
.setup-guide ol{padding-left:20px;font-size:12px;line-height:1.55}

/* Footer and old visual debris */
.site-footer{display:none!important}
.footer-actions{justify-content:center!important;margin:13px 0 0!important}
.footer-link{font-size:9px!important;color:var(--apple-secondary)!important}
.old-deeper-study,.together-card,#progressPanel,#catchupPanel{display:none!important}

/* Mobile + landscape mobile: Hebrew above English */
@media(max-width:1024px){
  .apple-reader .phrase{display:flex!important;flex-direction:column!important;gap:5px!important}
  .apple-reader .he{order:1!important;font-size:21px!important}
  .apple-reader .en{order:2!important;font-size:14px!important}
  .yesterday-review .yesterday-he{order:1!important}
  .yesterday-review .yesterday-en{order:2!important}
}
@media(max-width:700px){
  .wrap{padding-left:15px!important;padding-right:15px!important}
  .apple-top .brandrow{padding:12px 15px 8px!important}
  .apple-brand{font-size:24px!important;padding-right:42px}
  .mobile-menu-btn{right:14px!important;top:11px!important}
  .apple-hero .greeting{font-size:10px!important}
  .learn-strip{gap:3px}
  .learn-strip-title{font-size:8.5px}
  .learn-chip{font-size:8.5px;padding:4px}
  .learn-people{display:none}
  .today-heading-ref{font-size:28px}
  .yesterday-ref{font-size:16px!important}
  .yesterday-review .yesterday-he{font-size:calc(18px * var(--y-scale))!important}
  .yesterday-review .yesterday-en{font-size:13px!important}
  .between-days{display:block!important}
  .between-days span{display:block;margin-bottom:3px}
  .apple-reader .phrase{padding:12px 0!important}
  .apple-reader .he{font-size:20px!important}
  .apple-reader .en{font-size:13.5px!important}
  .study-section h3,.go-deeper-apple h3{font-size:20px!important}
  .the-point p{font-size:16px}
  .deeper-row{padding:11px 1px}
}
@keyframes m51-refuah-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 27px))}}


/* ===== m51a-auth-repair ===== */
#authGate{pointer-events:auto!important;visibility:visible}
#authGate.hidden{display:none!important}
#authGate .auth-card,#authGate input,#authGate button,#authGate label{pointer-events:auto!important}
#authGate input{-webkit-user-select:text!important;user-select:text!important;touch-action:manipulation}
body.auth-pending #authGate{visibility:visible!important}


/* ===== m52-apple-refinement ===== */
.apple-top{display:block!important;visibility:visible!important}
.apple-brand{display:block!important;opacity:1!important}
.apple-hero{padding-top:9px!important}
.learn-strip{margin-top:12px!important;margin-bottom:18px!important}
.yesterday-wrap{padding-top:4px!important;margin-bottom:20px!important}
.yesterday-heading .eyebrow{font-size:10px!important;color:#625f59!important;font-weight:600!important}
.yesterday-ref{font-size:18px!important}
.yesterday-review{padding-top:14px!important}
.between-days{margin-top:14px!important;padding-top:11px!important}
.between-days p{display:none!important}
.day-divider{margin:24px 0 15px!important}
.today-heading-block{padding-bottom:15px!important}
.apple-day-nav{display:none!important}
.apple-reader .phrase{padding-top:19px!important;padding-bottom:19px!important}
.reader-status{display:none!important}
.the-point{padding:18px 0!important}
.the-point .eyebrow{font-size:10px!important;font-weight:600!important;color:#625f59!important}
.the-point p{font-size:19px!important;line-height:1.48!important}
.study-section{padding:24px 0!important}
.understanding-lens{margin:0 0 18px}
.understanding-lens>strong{display:block;font-size:11px;margin-bottom:5px}
.understanding-lens p{margin-top:0}
.footer-actions{display:none!important}
.go-deeper-apple{padding-bottom:28px!important}
@media(max-width:700px){
  .apple-top .brandrow{padding-top:15px!important;padding-bottom:13px!important}
  .apple-brand{font-size:27px!important}
  .apple-hero{padding-top:10px!important}
  .learn-strip{margin-bottom:20px!important}
  .yesterday-wrap{margin-bottom:23px!important}
  .today-heading-ref{font-size:30px!important}
  .apple-reader .phrase{padding-top:17px!important;padding-bottom:17px!important}
}


/* ===== m53-premium-mobile-system ===== */
:root{
  --m53-bg:#f7f6f2;
  --m53-paper:#fffefb;
  --m53-ink:#11110f;
  --m53-sub:#6f6d67;
  --m53-faint:#9b9890;
  --m53-line:rgba(17,17,15,.105);
  --m53-blue:#173f73;
  --m53-blue-soft:#edf2f8;
  --m53-warm:#f0ece2;
  --m53-radius:20px;
  --m53-shadow:0 18px 55px rgba(30,27,20,.08);
}
html{background:var(--m53-bg);scroll-behavior:smooth}
body{
  margin:0!important;background:var(--m53-bg)!important;color:var(--m53-ink)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
button,input,textarea{font:inherit}
button{touch-action:manipulation}
a,button{-webkit-tap-highlight-color:transparent}
.m53-shell{width:min(100% - 32px,760px);margin-inline:auto}
.hidden{display:none!important}

/* ---------- Refuah ---------- */
.m53-refuah{
  position:relative!important;z-index:80!important;
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;
  min-height:34px!important;padding:4px 12px!important;gap:10px!important;
  background:var(--m53-blue)!important;color:#fff!important;border:0!important
}
.m53-refuah-label{font-size:10px;font-weight:700;white-space:nowrap;letter-spacing:.01em}
.m53-refuah .refuah-window{overflow:hidden;min-width:0;white-space:nowrap;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.m53-refuah .refuah-track{
  display:inline-flex!important;min-width:max-content!important;gap:56px!important;align-items:center!important;
  font-family:inherit!important;font-size:11px!important;line-height:1!important;
  animation:m53-refuah-scroll var(--refuah-duration,24s) linear infinite!important
}
@keyframes m53-refuah-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 28px))}}
.m53-refuah .refuah-view{
  min-height:25px!important;padding:3px 9px!important;border:1px solid rgba(255,255,255,.28)!important;
  background:rgba(255,255,255,.08)!important;color:#fff!important;border-radius:999px!important;
  font-size:9px!important;font-weight:600!important
}

/* ---------- Masthead ---------- */
.m53-masthead{
  display:block!important;position:relative!important;z-index:50!important;background:var(--m53-bg)!important;
  border:0!important;overflow:visible!important
}
.m53-masthead-inner{position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:22px 0 18px}
.m53-brand{display:block!important;visibility:visible!important;opacity:1!important;max-width:calc(100% - 58px)}
.m53-brand-en{
  display:block;font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:.98;
  font-weight:500;letter-spacing:-.035em;color:var(--m53-ink)
}
.m53-brand-he{
  margin-top:5px;font-family:"Times New Roman",serif;font-size:15px;line-height:1.15;color:var(--m53-sub)
}
.m53-menu-button{
  width:42px;height:42px;display:grid!important;place-content:center;gap:5px;flex:0 0 auto;
  border:1px solid var(--m53-line)!important;background:rgba(255,255,255,.68)!important;
  border-radius:50%!important;box-shadow:0 4px 16px rgba(30,27,20,.035);padding:0!important
}
.m53-menu-button span{display:block;width:15px;height:1.5px;background:var(--m53-ink);border-radius:2px}
.m53-menu-button span:last-child{width:10px;justify-self:end}
.m53-masthead .topnav,.m53-masthead .user-chip{display:none!important}

/* ---------- Premium menu sheet ---------- */
.m53-menu-backdrop{
  position:fixed;inset:0;z-index:998;background:rgba(15,15,13,.26);backdrop-filter:blur(5px);
}
.m53-menu-sheet{
  display:block!important;position:fixed!important;z-index:999!important;
  left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;
  max-height:min(82vh,680px);overflow:auto;padding:12px!important;
  background:rgba(252,251,248,.98)!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:26px!important;
  box-shadow:0 24px 80px rgba(15,15,13,.22)!important;
  transform:translateY(calc(100% + 28px));opacity:0;pointer-events:none;
  transition:transform .28s cubic-bezier(.2,.75,.25,1),opacity .2s ease
}
.m53-menu-sheet.show{transform:translateY(0);opacity:1;pointer-events:auto}
.m53-menu-head{display:flex;justify-content:space-between;align-items:center;padding:5px 6px 13px}
.m53-menu-head strong{display:block;font-size:15px}
.m53-menu-head small{display:block;color:var(--m53-sub);font-size:10px;margin-top:2px}
.m53-menu-close{border:0;background:transparent;color:var(--m53-blue);font-size:13px;font-weight:600;padding:8px}
.m53-menu-group{overflow:hidden;border:1px solid var(--m53-line);border-radius:17px;background:#fff;margin-bottom:9px}
.m53-menu-group button{
  width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;
  border:0;border-top:1px solid var(--m53-line);background:#fff;color:var(--m53-ink);
  padding:0 14px;text-align:left;font-size:14px
}
.m53-menu-group button:first-child{border-top:0}
.m53-menu-group b{font-size:20px;font-weight:300;color:var(--m53-faint)}
.m53-logout{width:100%;min-height:46px;border:0;background:transparent;color:#a32929;font-size:13px}

/* ---------- Personal context ---------- */
.m53-context{padding:2px 0 0!important}
.m53-greeting-row{display:grid;gap:12px;padding:0 0 15px;border-bottom:1px solid var(--m53-line)}
.m53-greeting-row .greeting{
  margin:0!important;font-family:inherit!important;font-size:18px!important;line-height:1.1!important;
  font-weight:650!important;letter-spacing:-.02em!important
}
.m53-greeting-row .reminder{
  margin:4px 0 0!important;font-family:Georgia,"Times New Roman",serif!important;font-style:italic;
  color:var(--m53-sub)!important;font-size:13px!important;line-height:1.35!important
}
.m53-date-block{font-size:11px;line-height:1.5;color:var(--m53-sub)}
.m53-date-block strong{font-weight:600;color:#55534f}
.m53-time-strip{
  margin:0!important;padding:10px 0 9px!important;border:0!important;border-bottom:1px solid var(--m53-line)!important;
  border-radius:0!important;background:transparent!important
}
.m53-time-strip .people-grid{display:flex!important;align-items:center!important;gap:10px!important}
.m53-time-strip .person-card{
  display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important;flex:0 1 auto!important;
  padding:0!important;border:0!important;background:transparent!important;border-radius:0!important
}
.m53-time-strip .person-name{font-size:10px!important;font-weight:650!important;color:var(--m53-ink)!important}
.m53-time-strip .person-time{font-family:inherit!important;font-size:10px!important;margin:0!important;color:var(--m53-sub)!important}
.m53-time-strip .person-meta{display:none!important}
.m53-time-strip .person-status{display:none!important}
.m53-time-divider{width:1px;height:10px;background:var(--m53-line);flex:0 0 auto}

/* ---------- Learn Together ---------- */
.m53-together{display:grid;gap:10px;padding:14px 0 18px}
.m53-together-label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.m53-together-label strong{font-size:11px;font-weight:700;letter-spacing:.005em}
.m53-together-label span{font-size:9px;color:var(--m53-sub)}
.m53-together-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.m53-action-chip{
  position:relative;min-height:42px;display:flex;align-items:center;justify-content:center;gap:5px;
  border:1px solid var(--m53-line);border-radius:14px;background:rgba(255,255,255,.7);color:var(--m53-ink);
  font-size:11px;font-weight:600
}
.m53-action-chip:active{background:var(--m53-warm)}
.m53-action-icon{font-size:12px;font-weight:400;color:var(--m53-blue)}
.count-badge{
  display:grid!important;place-items:center;position:absolute;right:7px;top:6px;
  min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--m53-blue);color:#fff;
  font-size:8px;line-height:1;font-weight:700
}
.count-badge.hidden{display:none!important}
.mini-dot{position:absolute;right:10px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--m53-blue)}

/* ---------- Yesterday ---------- */
.m53-yesterday-zone{padding-top:4px}
.m53-yesterday{
  padding:17px 17px 0;background:linear-gradient(180deg,#f1eee6 0,#f6f3ec 100%);
  border:1px solid rgba(76,68,52,.09);border-radius:22px;overflow:hidden
}
.yesterday-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important}
.m53-kicker{font-size:10px;font-weight:700;color:var(--m53-sub);text-transform:uppercase;letter-spacing:.08em}
.yesterday-ref{
  margin-top:3px;font-family:Georgia,"Times New Roman",serif!important;font-size:19px!important;line-height:1.15!important;
  color:var(--m53-ink)!important;text-align:left!important
}
.yesterday-ref [dir=rtl]{font-family:"Times New Roman",serif}
.font-stepper{
  display:flex!important;align-items:center!important;gap:1px!important;padding:2px!important;
  border:1px solid rgba(20,20,18,.10)!important;border-radius:999px!important;background:rgba(255,255,255,.6)!important
}
.font-stepper button{width:31px!important;height:29px!important;border:0!important;background:transparent!important;font-size:17px!important;color:var(--m53-sub)!important}
.font-stepper span{font-size:10px!important;color:var(--m53-sub)!important}
.yesterday-review{--y-scale:1;padding:0!important;background:transparent!important;border:0!important}
.yesterday-review .yesterday-he{
  margin:0 0 16px!important;direction:rtl;text-align:right;
  font-family:"Times New Roman",serif!important;font-size:20px!important;line-height:1.65!important
}
.yesterday-review .yesterday-en{
  margin:0!important;padding:15px 0 16px!important;border-top:1px solid rgba(20,20,18,.08);
  font-family:Georgia,"Times New Roman",serif!important;font-size:14px!important;line-height:1.58!important;color:#3d3a35
}
.between-days{
  margin:0 -17px!important;padding:11px 17px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  border:0!important;border-top:1px solid rgba(20,20,18,.08)!important;background:rgba(255,255,255,.42)!important
}
.between-days span{font-size:9px;font-weight:700;color:var(--m53-sub);letter-spacing:.03em}
.between-days p{margin:0!important;font-size:9px!important;color:var(--m53-faint)!important}

/* ---------- Today marker + title ---------- */
.m53-day-marker{display:flex;align-items:center;gap:12px;padding:30px 0 18px;color:var(--m53-faint)}
.m53-day-marker span{height:1px;flex:1;background:var(--m53-line)}
.m53-day-marker b{font-size:9px;text-transform:uppercase;letter-spacing:.16em;font-weight:700}
.today-heading-block{padding:0 0 18px!important}
.today-heading-label{font-size:12px!important;font-weight:700!important;margin:0 0 6px!important;color:var(--m53-sub)!important}
.today-heading-ref{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;
  font-family:Georgia,"Times New Roman",serif!important;font-size:33px!important;line-height:1.03!important;
  letter-spacing:-.035em!important;color:var(--m53-ink)!important
}
.today-heading-ref #refHe{font-family:"Times New Roman",serif;font-size:.88em;letter-spacing:0}
.today-dot{color:#b0ada5}
.today-heading-block .contextline{display:none!important}
.today-heading-block .progress{height:2px!important;margin-top:17px!important;background:#dedbd4!important;border-radius:2px!important;overflow:hidden!important}
.today-heading-block .progress i{display:block;height:100%;background:var(--m53-blue)!important}
.today-heading-block .week-note{margin:12px 0 0!important;padding:10px 12px!important;border:0!important;border-radius:12px!important;background:var(--m53-blue-soft)!important;font-size:11px!important}
.apple-day-nav{display:none!important}

/* ---------- Today's text ---------- */
.m53-reader{
  margin:0!important;padding:0!important;border:1px solid var(--m53-line)!important;border-radius:24px!important;
  background:var(--m53-paper)!important;overflow:hidden!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset
}
.m53-reader-intro{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px 11px;
  border-bottom:1px solid var(--m53-line);background:rgba(248,247,242,.72)
}
.m53-reader-intro span{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--m53-sub)}
.m53-reader-intro small{font-size:9px;color:var(--m53-faint)}
.m53-reader-body{padding:0 18px}
.m53-phrase{display:flex!important;flex-direction:column!important;gap:5px!important;padding:21px 0!important;border:0!important;border-top:1px solid var(--m53-line)!important;background:transparent!important}
.m53-phrase:first-child{border-top:0!important}
.m53-phrase .he{
  order:1!important;direction:rtl!important;text-align:right!important;
  font-family:"Times New Roman",serif!important;font-size:25px!important;line-height:1.5!important;color:var(--m53-ink)!important
}
.m53-phrase .en{
  order:2!important;font-family:Georgia,"Times New Roman",serif!important;font-size:15px!important;line-height:1.48!important;color:#4b4842!important
}
.reader-status{display:none!important}

/* ---------- Study guide ---------- */
.m53-study{margin-top:28px!important}
.m53-point{
  position:relative;margin:0 0 12px;padding:18px 20px 19px!important;
  border:0!important;border-radius:20px!important;background:var(--m53-blue)!important;color:#fff!important
}
.m53-point .m53-kicker{color:rgba(255,255,255,.67)}
.m53-point p{
  margin:5px 0 0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:19px!important;
  line-height:1.48!important;color:#fff!important
}
.m53-study .study-section{
  margin:0!important;padding:26px 0!important;border:0!important;border-bottom:1px solid var(--m53-line)!important;background:transparent!important
}
.m53-section-heading{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;margin-bottom:15px}
.m53-section-number{font-size:9px;font-weight:700;letter-spacing:.08em;color:var(--m53-faint);padding-top:5px}
.m53-section-heading h3{
  margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:25px!important;line-height:1.1!important;
  font-weight:500!important;letter-spacing:-.02em
}
.m53-section-heading>div>p{margin:4px 0 0!important;font-size:10px!important;color:var(--m53-sub)!important;line-height:1.35!important}
.m53-reading-copy{padding-left:40px}
.m53-reading-copy p{margin:0!important;font-size:15px!important;line-height:1.68!important}
.m53-study-grid{display:grid;gap:9px;padding-left:40px}
.m53-study-lens{
  padding:15px 16px;border:1px solid var(--m53-line);border-radius:17px;background:rgba(255,255,255,.6)
}
.m53-study-lens>span{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--m53-blue)}
.m53-study-lens h4{margin:4px 0 7px!important;font-size:14px!important;font-weight:700!important}
.m53-study-lens p,.m53-study-lens .ai-section-paragraph{
  margin:0 0 9px!important;font-size:13px!important;line-height:1.6!important;color:#393733!important
}
.m53-study-lens p:last-child,.m53-study-lens .ai-section-paragraph:last-child{margin-bottom:0!important}
.m53-source-note{margin:13px 0 0 40px!important;font-size:9px!important;color:var(--m53-faint)!important}

/* ---------- Go Deeper ---------- */
.go-deeper-apple{padding:30px 0 36px!important}
.go-deeper-apple h3{
  margin:0 0 15px!important;font-family:Georgia,"Times New Roman",serif!important;font-size:28px!important;
  font-weight:500!important;letter-spacing:-.025em
}
.deeper-row{
  width:100%!important;min-height:64px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;text-align:left!important;border:0!important;border-top:1px solid var(--m53-line)!important;
  background:transparent!important;padding:12px 2px!important;color:var(--m53-ink)!important
}
.deeper-row:last-of-type{border-bottom:1px solid var(--m53-line)!important}
.deeper-row span{display:grid!important;gap:3px!important}
.deeper-row strong{font-size:14px!important;font-weight:700!important}
.deeper-row small{font-size:10px!important;line-height:1.3!important;color:var(--m53-sub)!important}
.deeper-row b{font-size:24px!important;font-weight:300!important;color:#aaa69d!important}
.footer-actions{display:none!important}

/* ---------- Modals / bottom sheets ---------- */
.modal{
  display:none;position:fixed!important;inset:0!important;z-index:1200!important;padding:12px!important;
  background:rgba(17,17,15,.28)!important;backdrop-filter:blur(7px)
}
.modal.show{display:flex!important}
.modal .sheet{
  width:min(100%,660px)!important;max-height:88dvh!important;margin:auto auto 0!important;overflow:auto!important;
  padding:0 18px 20px!important;background:#fdfcf9!important;border:1px solid rgba(255,255,255,.9)!important;
  border-radius:26px!important;box-shadow:0 24px 80px rgba(17,17,15,.2)!important
}
.sheethead{
  position:sticky!important;top:0!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  padding:17px 0 13px!important;background:rgba(253,252,249,.96)!important;backdrop-filter:blur(12px);border-bottom:1px solid var(--m53-line)!important
}
.sheethead h3{margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:23px!important;font-weight:500!important}
.sheethead .close{min-height:36px!important;border:0!important;background:transparent!important;color:var(--m53-blue)!important;font-size:13px!important;font-weight:600!important}
.shared-textarea,.shared-input,.refuah-editor textarea{
  width:100%!important;border:1px solid var(--m53-line)!important;border-radius:15px!important;background:#fff!important;padding:13px!important;
  color:var(--m53-ink)!important;font-size:16px!important
}
.shared-textarea{min-height:150px!important}
.pillbtn,.navbtn{
  min-height:42px!important;border:1px solid var(--m53-line)!important;border-radius:13px!important;background:#fff!important;color:var(--m53-ink)!important;
  padding:9px 13px!important;font-size:12px!important;font-weight:600!important
}
.primary-record,.modal .navbtn{background:var(--m53-blue)!important;color:#fff!important;border-color:var(--m53-blue)!important}
.voice-person{padding:15px 0!important;border-top:1px solid var(--m53-line)!important}
.voice-person>strong{font-size:12px!important}
.voice-recording-row{padding:8px 0!important}
.voice-recording-row audio{width:100%;height:34px}
.deep-block{padding:4px 0 18px!important}
.deep-block h4,.study-sheet-content h4{font-size:14px!important;margin:18px 0 6px!important}
.deep-block p,.study-sheet-content p,.discussion-questions{font-size:14px!important;line-height:1.65!important}
.discussion-questions{padding-left:22px!important}
.setup-guide{margin-top:18px!important;padding-top:16px!important;border-top:1px solid var(--m53-line)!important}
.setup-guide h4{font-size:14px!important;margin:0 0 8px!important}
.setup-guide ol{font-size:13px!important;line-height:1.6!important}

/* ---------- Login ---------- */
.auth-gate{
  position:fixed!important;inset:0!important;z-index:99999!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:22px!important;background:
    radial-gradient(circle at 50% 10%,rgba(23,63,115,.08),transparent 38%),
    var(--m53-bg)!important
}
.auth-gate.hidden{display:none!important}
.auth-card{
  width:min(100%,390px)!important;padding:30px 24px 24px!important;border:1px solid var(--m53-line)!important;border-radius:28px!important;
  background:rgba(255,254,251,.94)!important;box-shadow:var(--m53-shadow)!important
}
.auth-card::before{
  content:"Today’s Mishnah";display:block;margin-bottom:22px;font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1;
  letter-spacing:-.035em
}
.auth-card h1{display:none!important}
.auth-card p{font-size:12px!important;color:var(--m53-sub)!important;margin:0 0 18px!important}
.auth-field{margin:12px 0!important}
.auth-field span{font-size:10px!important;font-weight:700!important;color:var(--m53-sub)!important;margin:0 0 6px!important}
.auth-field input{
  width:100%!important;min-height:49px!important;border:1px solid var(--m53-line)!important;border-radius:14px!important;
  background:#fff!important;color:var(--m53-ink)!important;padding:11px 13px!important;font-size:16px!important
}
#loginButton{width:100%!important;margin-top:6px!important;background:var(--m53-blue)!important;color:#fff!important;border-color:var(--m53-blue)!important}
.auth-error{font-size:11px!important;margin-top:10px!important}

/* ---------- Calendar ---------- */
#calendarView.panel,#journeyView.panel{display:none!important}
#calendarView.panel.show,#journeyView.panel.show{display:block!important;width:min(100% - 32px,760px)!important;margin:0 auto!important;padding:4px 0 48px!important;background:transparent!important;border:0!important}
.panelhead{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;padding:8px 0 20px!important;border:0!important}
.panelhead h2{margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:31px!important;font-weight:500!important;letter-spacing:-.03em!important}
.panelhead p{margin:5px 0 0!important;font-size:11px!important;color:var(--m53-sub)!important}
.monthnav{display:flex!important;gap:5px!important}
.monthnav button{width:36px!important;height:36px!important;border:1px solid var(--m53-line)!important;border-radius:12px!important;background:#fff!important;font-size:11px!important}
#thisMonth{width:auto!important;padding:0 11px!important}
.calendar{overflow:hidden!important;border:1px solid var(--m53-line)!important;border-radius:20px!important;background:#fff!important}
.calweek{display:grid!important;grid-template-columns:repeat(7,1fr)!important;padding:8px 4px!important;background:#faf9f5!important;border-bottom:1px solid var(--m53-line)!important}
.calweek div{text-align:center!important;font-size:8px!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:var(--m53-sub)!important}
.calgrid{display:grid!important;grid-template-columns:repeat(7,1fr)!important}
.calcell{
  min-height:66px!important;padding:6px!important;border:0!important;border-right:1px solid var(--m53-line)!important;border-bottom:1px solid var(--m53-line)!important;
  background:#fff!important
}
.calcell:nth-child(7n){border-right:0!important}
.calcell .num{font-size:10px!important;font-weight:650!important}
.calcell .entry{font-size:7.5px!important;line-height:1.25!important;margin-top:4px!important;color:var(--m53-sub)!important}
.calcell .hecal{display:block!important;font-family:"Times New Roman",serif!important;font-size:8px!important}
.calcell.today{box-shadow:inset 0 0 0 1.5px var(--m53-blue)!important}
.calcell.weekend{background:#faf8f2!important}
.legend{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:12px!important;font-size:9px!important;color:var(--m53-sub)!important}

/* ---------- Mishnayot browser ---------- */
.orders{display:grid!important;gap:10px!important}
.ordercard{
  padding:17px!important;border:1px solid var(--m53-line)!important;border-radius:20px!important;background:#fff!important
}
.ordercard h3{margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:19px!important;font-weight:500!important}
.orderhe{font-size:11px!important;color:var(--m53-sub)!important;margin:2px 0 12px!important}
.tractates{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
.tractates button{
  min-height:37px!important;border:1px solid var(--m53-line)!important;border-radius:999px!important;background:#faf9f5!important;
  padding:7px 10px!important;font-size:10px!important;color:var(--m53-ink)!important
}
.tractate-browser{margin-top:16px!important;padding:18px!important;border:1px solid var(--m53-line)!important;border-radius:20px!important;background:#fff!important}
.chapter{padding:15px 0!important;border-top:1px solid var(--m53-line)!important}
.chapter h4{font-size:12px!important;margin:0 0 8px!important}
.mishna-buttons{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
.mishna-buttons button{min-width:37px!important;min-height:37px!important;border:1px solid var(--m53-line)!important;border-radius:11px!important;background:#faf9f5!important}

/* ---------- Weekend review ---------- */
#reviewView{width:min(100% - 32px,760px)!important;margin:0 auto!important;padding:5px 0 48px!important}
.review-hero{padding:8px 0 18px!important}
.review-title{margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:30px!important;line-height:1.08!important;font-weight:500!important;letter-spacing:-.03em!important}
.review-sub{margin-top:5px!important;font-family:"Times New Roman",serif!important;font-size:15px!important;color:var(--m53-sub)!important}
.review-intro{font-size:12px!important;line-height:1.55!important;color:var(--m53-sub)!important}
.review-nav{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:6px!important;margin:0 0 17px!important}
.review-nav button{min-height:40px!important}
.weekly-synthesis{
  margin:0 0 14px!important;padding:16px!important;border:0!important;border-radius:18px!important;background:var(--m53-blue)!important;color:#fff!important
}
.weekly-synthesis h3{font-family:Georgia,"Times New Roman",serif!important;font-size:18px!important;font-weight:500!important;margin:0 0 7px!important}
#weeklySynthesis{font-size:12px!important;line-height:1.5!important}
.review-card{
  margin:0 0 14px!important;padding:17px!important;border:1px solid var(--m53-line)!important;border-radius:22px!important;background:#fff!important
}
.review-card .review-day{font-size:9px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:var(--m53-sub)!important}
.review-card>h3{font-family:Georgia,"Times New Roman",serif!important;font-size:21px!important;font-weight:500!important;margin:3px 0 12px!important}
.review-card .m53-reader{border-radius:16px!important}
.review-card .m53-phrase{padding:15px 0!important}
.review-card .m53-phrase .he{font-size:20px!important}
.review-card .m53-phrase .en{font-size:13px!important}
.review-card details{margin-top:12px!important;border-top:1px solid var(--m53-line)!important;padding-top:10px!important}
.review-card summary{font-size:11px!important;font-weight:650!important;cursor:pointer}
.weekly-quiz{margin-top:18px!important;padding:17px!important;border:1px solid var(--m53-line)!important;border-radius:20px!important;background:#fff!important}
.weekly-quiz h3{font-family:Georgia,"Times New Roman",serif!important;font-size:20px!important;font-weight:500!important}
.quiz-item{padding:12px 0!important;border-top:1px solid var(--m53-line)!important}
.quiz-q{font-size:12px!important;line-height:1.5!important}
.quiz-answer{font-size:12px!important;line-height:1.5!important}

/* ---------- Small screens ---------- */
@media(max-width:420px){
  .m53-shell{width:calc(100% - 24px)}
  .m53-masthead-inner{padding-top:18px;padding-bottom:15px}
  .m53-brand-en{font-size:28px}
  .m53-brand-he{font-size:14px}
  .m53-menu-button{width:39px;height:39px}
  .m53-greeting-row .greeting{font-size:17px!important}
  .m53-greeting-row .reminder{font-size:12px!important}
  .m53-date-block{font-size:10px}
  .m53-together-actions{gap:5px}
  .m53-action-chip{font-size:10px;min-height:40px}
  .m53-yesterday{padding:15px 14px 0;border-radius:20px}
  .between-days{margin-left:-14px!important;margin-right:-14px!important;padding-left:14px!important;padding-right:14px!important}
  .yesterday-review .yesterday-he{font-size:19px!important}
  .yesterday-review .yesterday-en{font-size:13px!important}
  .today-heading-ref{font-size:30px!important}
  .today-heading-ref #refHe{font-size:.85em}
  .m53-reader{border-radius:21px!important}
  .m53-reader-body{padding:0 15px}
  .m53-phrase{padding:18px 0!important}
  .m53-phrase .he{font-size:23px!important}
  .m53-phrase .en{font-size:14px!important}
  .m53-point{padding:17px!important;border-radius:18px!important}
  .m53-point p{font-size:18px!important}
  .m53-section-heading{grid-template-columns:25px 1fr}
  .m53-section-heading h3{font-size:23px!important}
  .m53-reading-copy,.m53-study-grid{padding-left:35px}
  .m53-source-note{margin-left:35px!important}
  .m53-study-lens{padding:14px}
  .go-deeper-apple h3{font-size:26px!important}
  #calendarView.panel.show,#journeyView.panel.show,#reviewView{width:calc(100% - 24px)!important}
  .calcell{min-height:58px!important;padding:4px!important}
  .calcell .entry{font-size:6.8px!important}
}

/* ---------- Landscape phones ---------- */
@media(orientation:landscape) and (max-height:540px){
  .m53-masthead-inner{padding-top:12px;padding-bottom:11px}
  .m53-brand-en{font-size:25px}
  .m53-brand-he{display:inline-block;margin-top:2px}
  .m53-greeting-row{grid-template-columns:1fr auto;align-items:end}
  .m53-together{grid-template-columns:auto 1fr;align-items:center;gap:14px}
  .m53-together-label{display:block}
  .m53-together-actions{max-width:430px;justify-self:end;width:100%}
  .m53-reader .m53-phrase{display:flex!important;flex-direction:column!important}
  .m53-reader .he{order:1!important}
  .m53-reader .en{order:2!important}
  .modal .sheet{max-height:88vh!important}
}

/* ---------- Desktop refinement ---------- */
@media(min-width:760px){
  .m53-shell{width:min(100% - 48px,860px)}
  .m53-masthead-inner{padding-top:28px;padding-bottom:23px}
  .m53-brand-en{font-size:40px}
  .m53-brand-he{font-size:17px}
  .m53-greeting-row{grid-template-columns:1fr auto;align-items:end}
  .m53-date-block{text-align:right}
  .m53-together{grid-template-columns:1fr auto;align-items:center}
  .m53-together-actions{width:390px}
  .m53-yesterday{padding:22px 24px 0}
  .between-days{margin-left:-24px!important;margin-right:-24px!important;padding-left:24px!important;padding-right:24px!important}
  .yesterday-review{display:grid;grid-template-columns:1fr 1fr;gap:30px}
  .yesterday-review .yesterday-he{grid-column:2;grid-row:1;margin:0!important}
  .yesterday-review .yesterday-en{grid-column:1;grid-row:1;border-top:0!important;padding:0 0 22px!important}
  .today-heading-ref{font-size:45px!important}
  .m53-reader-body{padding:0 24px}
  .m53-phrase{display:grid!important;grid-template-columns:1fr 1fr!important;gap:34px!important;padding:24px 0!important}
  .m53-phrase .en{grid-column:1!important;grid-row:1!important;align-self:center;font-size:16px!important}
  .m53-phrase .he{grid-column:2!important;grid-row:1!important;align-self:center;font-size:27px!important}
  .m53-study-grid{grid-template-columns:1fr 1fr}
  .modal .sheet{margin:auto!important;border-radius:28px!important}
  #calendarView.panel.show,#journeyView.panel.show,#reviewView{width:min(100% - 48px,860px)!important}
  .orders{grid-template-columns:1fr 1fr!important}
}
body.menu-open{overflow:hidden}


/* ===== m53-depth-polish ===== */
.m53-source-status{display:flex;align-items:flex-start;gap:8px;margin:8px 0 16px;padding:10px 11px;border-radius:12px;font-size:10px;line-height:1.4}
.m53-source-status span{width:7px;height:7px;border-radius:50%;flex:0 0 auto;margin-top:3px}
.m53-source-status.verified{background:#eef5ef;color:#3f5d45}.m53-source-status.verified span{background:#4f805c}
.m53-source-status.pending{background:#f3f0e8;color:#716b5d}.m53-source-status.pending span{background:#9f967e}
.m53-tractate-title{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:500;letter-spacing:-.02em;margin:0 0 5px}


/* ===== m53-mobile-final-corrections ===== */
/* Final mobile-priority corrections after all legacy and desktop rules. */
#dailyNav.apple-day-nav{display:none!important}

/* Landscape phones remain Hebrew-first stacked, exactly like portrait. */
@media(orientation:landscape) and (max-height:540px){
  .yesterday-review{display:block!important}
  .yesterday-review .yesterday-he{
    display:block!important;grid-column:auto!important;grid-row:auto!important;
    margin:0 0 16px!important
  }
  .yesterday-review .yesterday-en{
    display:block!important;grid-column:auto!important;grid-row:auto!important;
    border-top:1px solid rgba(20,20,18,.08)!important;padding:15px 0 16px!important
  }
  .m53-reader .m53-phrase{
    display:flex!important;flex-direction:column!important;gap:5px!important
  }
  .m53-reader .he{order:1!important;grid-column:auto!important;grid-row:auto!important}
  .m53-reader .en{order:2!important;grid-column:auto!important;grid-row:auto!important}
}


/* ===== m53a-defect-repair ===== */
.font-stepper button:disabled{opacity:.28;cursor:default}
.voice-recording-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.voice-share-btn{
  flex:0 0 auto;min-height:32px;padding:5px 10px;border:1px solid var(--m53-line);
  border-radius:999px;background:#fff;color:var(--m53-blue);font-size:10px;font-weight:700
}
.voice-share-btn:disabled{opacity:.55}
@media(max-width:420px){
  .voice-share-btn{min-height:34px;padding:6px 11px}
}


/* ===== m54-chullin-deep-corpus ===== */
.m54-deep-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.m54-deep-head h3{margin-bottom:15px!important}
.m54-corpus-badge{margin-bottom:15px;padding:5px 8px;border-radius:999px;background:#eef5ef;color:#3f5d45;font-size:8px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.m54-source-records{margin-top:22px;padding-top:16px;border-top:1px solid var(--m53-line)}
.m54-source-records h4{font-size:12px;margin:0 0 8px}
.m54-source-record{padding:9px 0;border-top:1px solid var(--m53-line)}
.m54-source-record strong{display:block;font-size:11px}
.m54-source-record small{display:block;margin-top:2px;font-size:8px;line-height:1.35;color:var(--m53-sub);overflow-wrap:anywhere}


/* ===== m55-continuous-reading ===== */
/* Continuous study: no expandable/collapsible study rows. */
.m55-go-deeper{padding-top:30px!important}
.m55-go-intro{margin:-7px 0 10px;font-size:10px;line-height:1.45;color:var(--m53-sub)}
.m55-deep-section{padding:23px 0;border-top:1px solid var(--m53-line)}
.m55-deep-section:last-of-type{border-bottom:1px solid var(--m53-line)}
.m55-inline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}
.m55-inline-head h4{margin:0!important;font-family:Georgia,"Times New Roman",serif;font-size:21px!important;font-weight:500!important;letter-spacing:-.015em}
.m55-inline-head p{margin:3px 0 0!important;font-size:9px!important;color:var(--m53-sub)!important}
.m55-deep-body{font-size:13px;line-height:1.65}
.m55-deep-body p{margin:0 0 10px}
.m55-commentary-entry{padding:12px 0;border-top:1px solid var(--m53-line)}
.m55-commentary-entry:first-child{border-top:0;padding-top:0}
.m55-commentary-entry h4{margin:0 0 5px!important;font-size:13px!important;font-family:inherit!important;font-weight:700!important}
.m55-commentary-entry p{margin:0!important}
.m55-speaker{
  width:32px;height:32px;min-width:32px;display:grid;place-items:center;
  border:1px solid var(--m53-line);border-radius:50%;background:rgba(255,255,255,.72);
  color:var(--m53-blue);font-size:12px;font-weight:800;line-height:1;padding:0;cursor:pointer
}
.m55-speaker.speaking{background:var(--m53-blue);border-color:var(--m53-blue);color:#fff}
.m55-speaker-light{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#fff}
.m55-reader-tools{display:flex;align-items:center;gap:8px}
.m55-reader-tools .m55-speaker{width:29px;height:29px;min-width:29px}
.m55-yesterday-tools{display:flex;align-items:center;gap:7px}
.m55-point-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.m53-section-heading{grid-template-columns:30px 1fr auto!important}
.m55-speech-dock{
  position:fixed;z-index:1600;left:50%;bottom:max(12px,env(safe-area-inset-bottom));
  transform:translate(-50%,22px);display:flex;align-items:center;gap:7px;
  max-width:calc(100% - 24px);padding:7px 8px 7px 10px;border:1px solid rgba(255,255,255,.85);
  border-radius:999px;background:rgba(28,28,27,.94);color:#fff;box-shadow:0 16px 45px rgba(0,0,0,.2);
  backdrop-filter:blur(14px);opacity:0;pointer-events:none;transition:.18s ease
}
.m55-speech-dock.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.m55-speech-dot{font-size:11px}
.m55-speech-label{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:rgba(255,255,255,.75)}
.m55-speech-dock button{border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;padding:6px 9px;font-size:9px;font-weight:650}
.m55-review-open{padding:11px 0;border-top:1px solid var(--m53-line)}
.m55-review-open h4{margin:0 0 5px;font-size:11px}
.m55-review-open p{margin:0;font-size:12px;line-height:1.55}
@media(max-width:420px){
  .m55-deep-section{padding:20px 0}
  .m55-inline-head h4{font-size:20px!important}
  .m55-speaker{width:34px;height:34px;min-width:34px}
  .m53-section-heading{grid-template-columns:25px 1fr auto!important}
}

.m55-static-heading{margin:0 0 10px;font-size:13px;font-weight:700}
.m55-legacy-open,.m55-open-section{padding:13px 0;border-top:1px solid var(--m53-line)}
.m55-legacy-open>h4,.m55-open-section>h4{margin:0 0 7px;font-size:12px}


/* ===== m55a-dual-view-audio ===== */
.m55-viewbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:0 0 12px;padding:0 1px
}
.m55-viewbar>span{font-size:9px;font-weight:700;color:var(--m53-sub);text-transform:uppercase;letter-spacing:.08em}
.m55-segmented{
  display:inline-flex;align-items:center;padding:2px;border:1px solid var(--m53-line);
  border-radius:999px;background:rgba(255,255,255,.58)
}
.m55-segmented button{
  min-height:28px;border:0;border-radius:999px;background:transparent;color:var(--m53-sub);
  padding:4px 9px;font-size:9px;font-weight:650
}
.m55-segmented button.active{
  background:#fff;color:var(--m53-ink);box-shadow:0 1px 4px rgba(20,20,18,.08)
}
.m55-lang-speakers{display:flex;align-items:center;gap:4px}
.m55-lang-speakers .m55-speaker{font-size:9px;font-weight:800}
.m55-y-paragraph,.m55-y-lines{display:block}
.m55-y-pair{padding:14px 0;border-top:1px solid rgba(20,20,18,.08)}
.m55-y-pair:first-child{border-top:0;padding-top:0}
.m55-y-pair .yesterday-he{margin-bottom:8px!important}
.m55-y-pair .yesterday-en{padding:0!important;border-top:0!important}
.m55-today-viewbar{padding:10px 16px 0;margin:0}
.m55-t-paragraph{padding:19px 18px 22px}
.m55-t-paragraph-he{
  direction:rtl;text-align:right;font-family:"Times New Roman",serif;
  font-size:25px;line-height:1.62;color:var(--m53-ink)
}
.m55-t-paragraph-en{
  margin-top:18px;padding-top:16px;border-top:1px solid var(--m53-line);
  font-family:Georgia,"Times New Roman",serif;font-size:15px;line-height:1.58;color:#4b4842
}
@media(max-width:420px){
  .m55-yesterday-tools{gap:5px}
  .m55-lang-speakers{gap:3px}
  .m55-lang-speakers .m55-speaker{width:32px;height:32px;min-width:32px}
  .m55-segmented button{padding:4px 8px;font-size:8.5px}
  .m55-t-paragraph{padding:17px 15px 20px}
  .m55-t-paragraph-he{font-size:23px}
  .m55-t-paragraph-en{font-size:14px}
}


/* ===== m55b-speed-male-voices ===== */
.m55-speech-dock{
  position:fixed!important;z-index:200000!important;pointer-events:none!important;
  flex-direction:column!important;align-items:stretch!important;gap:6px!important;
  border-radius:18px!important;padding:8px 9px!important;min-width:min(360px,calc(100vw - 24px))
}
.m55-speech-main{display:flex;align-items:center;gap:7px}
.m55-speech-dock.show{pointer-events:auto!important}
.m55-speed-current{
  margin-left:auto;min-width:30px;text-align:center;font-size:9px;font-weight:800;
  color:#fff;background:rgba(255,255,255,.12);border-radius:999px;padding:5px 7px
}
.m55-speed-row{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.m55-speed-row button{
  min-height:28px!important;padding:4px 3px!important;border:0!important;border-radius:9px!important;
  background:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.72)!important;
  font-size:8px!important;font-weight:700!important
}
.m55-speed-row button.active{
  background:#fff!important;color:#1c1c1b!important
}
.m55-voice-status{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:7.5px;line-height:1.2;color:rgba(255,255,255,.48);text-align:center
}
@media(max-width:420px){
  .m55-speech-dock{min-width:calc(100vw - 20px);bottom:max(10px,env(safe-area-inset-bottom))}
  .m55-speech-label{max-width:100px}
}


/* ===== m56-itorah ===== */
.m56-itorah{margin:8px 0 38px;padding:24px 20px;border:1px solid var(--m53-line);border-radius:22px;background:var(--m53-paper)}
.m56-itorah-mark{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--m53-blue)}
.m56-itorah h3{margin:5px 0 7px;font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:500;letter-spacing:-.02em}
.m56-itorah>p{margin:0 0 15px;font-size:12px;line-height:1.55;color:var(--m53-sub)}
.m56-itorah-links{display:grid;gap:7px}
.m56-itorah-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 13px;border:1px solid var(--m53-line);border-radius:14px;background:#fff;color:var(--m53-ink);text-decoration:none;font-size:12px;font-weight:650}
.m56-itorah-links a span{color:var(--m53-blue)}
.m56-itorah .m56-itorah-note{margin:12px 0 0;font-size:8px;color:var(--m53-faint)}


/* ===== m57-full-corpus ===== */
.m57-full-scrub{margin-top:30px;padding-top:30px;border-top:2px solid var(--m53-ink)}
.m57-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.m57-title-row span{font-size:8px;font-weight:850;letter-spacing:.12em;color:var(--m53-blue)}
.m57-title-row h3{margin:4px 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:29px;font-weight:500;letter-spacing:-.025em}
.m57-intro{margin:0 0 20px;font-size:11px;line-height:1.55;color:var(--m53-sub)}
.m57-full-scrub>section{padding:20px 0;border-top:1px solid var(--m53-line)}
.m57-full-scrub>section>h4,.m57-verbatim-head h4{margin:0 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:500}
.m57-full-scrub>section>p{margin:0;font-size:13px;line-height:1.7}
.m57-list{margin:0;padding-left:19px}.m57-list li{margin:0 0 9px;font-size:12px;line-height:1.55}
.m57-concepts{display:grid;gap:7px}.m57-concepts article{padding:12px;border:1px solid var(--m53-line);border-radius:14px;background:rgba(255,255,255,.55)}
.m57-concepts strong{font-size:11px}.m57-concepts p{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--m53-sub)}
.m57-verbatim-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.m57-verbatim-head span{font-size:8px;color:var(--m53-faint)}
.m57-verbatim>p{margin:0 0 13px!important;font-size:9px!important;color:var(--m53-sub)}
.m57-source-grid{display:grid;gap:8px}.m57-source-card{padding:13px;border:1px solid var(--m53-line);border-radius:15px;background:#fff}
.m57-source-type{font-size:7px;font-weight:850;letter-spacing:.1em;color:var(--m53-blue)}
.m57-source-card h5{margin:3px 0 1px;font-size:12px}.m57-source-ref{margin:0 0 8px!important;font-size:9px!important;color:var(--m53-sub)}
.m57-source-card blockquote{margin:8px 0;padding:9px 10px;border-right:2px solid var(--m53-blue);background:var(--m53-blue-soft);font-family:"Times New Roman",serif;font-size:15px;line-height:1.5}
.m57-source-card>p:last-of-type{font-size:9px!important;line-height:1.45!important;color:var(--m53-sub)}
.m57-source-card a{display:inline-block;margin-top:7px;color:var(--m53-blue);font-size:9px;font-weight:700;text-decoration:none}
@media(min-width:760px){.m57-source-grid{grid-template-columns:1fr 1fr}.m57-concepts{grid-template-columns:1fr 1fr}}


/* ===== m58-premium-beit-midrash ===== */
.m58-beit-midrash{border-top:0!important;margin-top:36px!important;padding-top:0!important}
.m58-bm-hero{margin:0 -2px 8px;padding:22px 18px 15px;border-radius:22px;background:#132f57;color:#fff;box-shadow:0 16px 42px rgba(20,42,70,.12)}
.m58-bm-hero .m57-title-row span{color:#b9cbe2}.m58-bm-hero .m57-title-row h3{color:#fff;margin-bottom:5px}
.m58-bm-hero .m57-intro{color:rgba(255,255,255,.72);margin-bottom:14px}
.m58-bm-hero .m55-speaker{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);color:#fff}
.m58-progress{height:2px;background:rgba(255,255,255,.16);border-radius:99px;overflow:hidden}.m58-progress span{display:block;width:0;height:100%;background:#fff;transition:width .15s linear}
.m58-study-path{display:flex;gap:4px;overflow-x:auto;padding-top:11px;scrollbar-width:none}.m58-study-path::-webkit-scrollbar{display:none}
.m58-study-path a{flex:0 0 auto;padding:5px 8px;border:1px solid rgba(255,255,255,.15);border-radius:999px;color:rgba(255,255,255,.78);font-size:7.5px;font-weight:700;text-decoration:none}
.m58-stage{position:relative;padding:25px 2px 25px 17px!important;border-top:0!important;border-left:1px solid #d9d5cc}
.m58-stage:before{content:"";position:absolute;left:-4px;top:29px;width:7px;height:7px;border-radius:50%;background:#fff;border:1.5px solid #8d887e}
.m58-stage-label{margin-bottom:6px;font-size:7.5px;font-weight:850;letter-spacing:.12em;color:#77736b}
.m58-stage>h4,.m58-verbatim-head h4{font-size:23px!important;letter-spacing:-.02em}
.m58-stage>p{font-family:Georgia,"Times New Roman",serif;font-size:14px!important;line-height:1.72!important;color:#292724}
.m58-stage-gemara:before{border-color:#345e91;background:#345e91}.m58-stage-gemara .m58-stage-label{color:#345e91}
.m58-stage-rishonim:before{border-color:#6d553b;background:#6d553b}.m58-stage-rishonim .m58-stage-label{color:#6d553b}
.m58-stage-halacha:before{border-color:#365d47;background:#365d47}.m58-stage-halacha .m58-stage-label{color:#365d47}
.m58-stage-chavruta{margin:4px 0 14px;padding:20px!important;border:1px solid #dcd7cd!important;border-left:1px solid #dcd7cd!important;border-radius:18px;background:#f6f3ec}
.m58-stage-chavruta:before{display:none}.m58-stage-chavruta .m57-list{padding-left:18px}
.m58-stage-texts{border-left:0!important;padding-left:0!important}.m58-stage-texts:before{display:none}
.m58-verbatim-head{padding-bottom:7px;border-bottom:1px solid var(--m53-line)}
.m57-source-grid{gap:6px!important}.m57-source-card{padding:12px!important;border-radius:13px!important;box-shadow:none}
.m58-source-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.m58-source-status{flex:0 0 auto;margin-top:1px;padding:3px 5px;border-radius:99px;background:#edf3ed;color:#49614f;font-size:6px;font-weight:850;letter-spacing:.06em}
.m57-source-card blockquote{margin:9px 0!important;padding:9px 11px!important;background:#f4f1e9!important;border-right:2px solid #284f7e!important;font-size:16px!important}
.m57-source-card>a{display:flex!important;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px solid #eeeae2}
.m57-concepts{gap:5px!important}.m57-concepts article{padding:10px 11px!important;border-radius:12px!important;background:#f8f6f1!important}
@media(max-width:420px){
 .m58-bm-hero{padding:20px 15px 14px;border-radius:19px}
 .m58-stage{padding:22px 0 22px 14px!important}
 .m58-stage>h4,.m58-verbatim-head h4{font-size:21px!important}
 .m58-stage>p{font-size:13px!important;line-height:1.68!important}
 .m57-source-card blockquote{font-size:15px!important}
}


/* ===== m59-actual-itorah ===== */
.m59-itorah{margin-top:12px!important}
.m59-itorah-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.m59-itorah-head h3{margin-bottom:5px}
.m59-verified{flex:0 0 auto;margin-top:2px;padding:5px 7px;border-radius:999px;background:#edf5ee;color:#42614a;font-size:7px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.m59-itorah-intro{margin-bottom:12px!important}
.m59-itorah-results{display:grid;gap:7px}
.m59-itorah-result{display:block;padding:14px;border:1px solid var(--m53-line);border-radius:16px;background:#fff;color:var(--m53-ink);text-decoration:none}
.m59-itorah-result.exact{border-color:#b9c8dc;background:linear-gradient(180deg,#fff,#f7f9fc)}
.m59-itorah-result-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.m59-itorah-type{font-size:7px;font-weight:850;letter-spacing:.09em;color:var(--m53-blue)}
.m59-itorah-open{font-size:8px;font-weight:750;color:var(--m53-blue)}
.m59-itorah-result h4{margin:7px 0 3px;font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:500}
.m59-itorah-result p{margin:0;font-size:10px;color:var(--m53-sub)}
.m59-itorah-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.m59-itorah-meta span{padding:4px 6px;border-radius:999px;background:#f2f0eb;color:#69655e;font-size:7px;font-weight:650}
.m59-neighbor-label{margin:16px 0 7px;font-size:8px;font-weight:800;letter-spacing:.07em;color:var(--m53-sub);text-transform:uppercase}
.m59-itorah-results.neighbors{grid-template-columns:1fr 1fr}
.m59-itorah-results.neighbors .m59-itorah-result h4{font-size:15px}
.m59-itorah-actions{display:grid;gap:7px;margin-top:15px}
.m59-itorah-actions a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:9px 12px;border-top:1px solid var(--m53-line);color:var(--m53-ink);font-size:10px;font-weight:650;text-decoration:none}
.m59-itorah-actions a span{color:var(--m53-blue)}
@media(max-width:420px){
 .m59-itorah-results.neighbors{grid-template-columns:1fr}
 .m59-itorah-result{padding:13px}
}


/* ===== m61-mobile-scholarly-compression ===== */
/*
 M61 benchmark: comfortable iPhone reading without using tiny type to solve page length.
 The compression comes from spacing, card structure and metadata density.
*/
@media(max-width:600px){
  html{-webkit-text-size-adjust:100%}
  body{font-size:16px;line-height:1.55}
  .m53-shell,.wrap{max-width:100%}

  /* Core Mishnah reading remains the strongest typography. */
  .m53-reader .he,.m53-phrase .he{font-size:23px!important;line-height:1.55!important}
  .m53-reader .en,.m53-phrase .en{font-size:16px!important;line-height:1.52!important}
  .m55-t-paragraph-he{font-size:24px!important;line-height:1.58!important}
  .m55-t-paragraph-en{font-size:16px!important;line-height:1.55!important}
  .yesterday-he{font-size:21px!important;line-height:1.55!important}
  .yesterday-en{font-size:16px!important;line-height:1.55!important}

  /* Never make actual study prose micro-sized. */
  .m53-point p,
  .study-section p,.study-section li,
  .m55-deep-body,.m55-deep-body p,.m55-deep-body li,
  .m55-commentary-entry p,
  .m57-full-scrub>section>p,
  .m58-stage>p,
  .m57-list li,
  .m57-concepts p,
  .m59-itorah-intro,
  .m56-itorah>p{
    font-size:16px!important;line-height:1.58!important
  }
  .m55-commentary-entry h4,.m57-concepts strong{font-size:15px!important;line-height:1.35!important}

  /* Major hierarchy. */
  .study-section h3,.go-deeper-apple>div>h3{font-size:25px!important;line-height:1.15!important}
  .m55-inline-head h4{font-size:21px!important}
  .m58-stage>h4,.m58-verbatim-head h4{font-size:23px!important;line-height:1.18!important}
  .m58-bm-hero .m57-title-row h3{font-size:30px!important}
  .m56-itorah h3,.m59-itorah-head h3{font-size:25px!important}

  /* Metadata has a readable floor. */
  .m53-kicker,.m57-title-row span,.m58-stage-label,.m57-source-type,
  .m59-itorah-type,.m59-verified,.m56-itorah-mark,
  .m55-viewbar>span,.m55-segmented button,.m58-study-path a,
  .m59-itorah-meta span,.m57-verbatim-head span{
    font-size:11px!important;line-height:1.25!important
  }
  .source,.m53-source-note,.m56-itorah-note,.m57-source-ref,
  .m57-source-card>p:last-of-type,.m55-inline-head p{
    font-size:12px!important;line-height:1.4!important
  }

  /* Compress by removing empty air, not by shrinking words. */
  .study-section{padding-top:22px!important;padding-bottom:22px!important}
  .m55-deep-section{padding:18px 0!important}
  .m55-deep-body p{margin-bottom:9px!important}
  .m55-commentary-entry{padding:10px 0!important}
  .m58-beit-midrash{margin-top:26px!important}
  .m58-bm-hero{padding:18px 15px 13px!important;margin-bottom:2px!important}
  .m58-stage{padding:19px 0 19px 13px!important}
  .m58-stage:before{top:24px!important}
  .m58-stage>p{margin:0!important}
  .m57-list li{margin-bottom:8px!important}
  .m57-concepts{gap:5px!important}
  .m57-concepts article{padding:10px 11px!important}
  .m58-stage-chavruta{padding:16px!important;margin:2px 0 10px!important}
  .m57-verbatim{padding-top:18px!important}

  /* Primary Text Desk: compact citation rows with a readable source excerpt. */
  .m57-source-grid{display:block!important}
  .m57-source-card{
    position:relative;padding:13px 0!important;border:0!important;border-top:1px solid var(--m53-line)!important;
    border-radius:0!important;background:transparent!important
  }
  .m57-source-card:first-child{border-top:0!important}
  .m58-source-head{gap:8px!important}
  .m57-source-card h5{font-size:16px!important;line-height:1.3!important;margin:3px 0 2px!important}
  .m57-source-ref{font-size:12px!important;margin:0!important}
  .m58-source-status{font-size:10px!important;padding:4px 6px!important}
  .m57-source-card blockquote{
    margin:9px 0 7px!important;padding:8px 10px!important;
    font-size:19px!important;line-height:1.45!important;border-radius:0 8px 8px 0
  }
  .m57-source-card>p:last-of-type{margin:0 0 6px!important}
  .m57-source-card>a{font-size:13px!important;min-height:36px!important;padding:7px 0!important}

  /* iTorah finale: readable but compact. */
  .m56-itorah{padding:18px 15px!important;border-radius:18px!important;margin-bottom:26px!important}
  .m59-itorah-result{padding:12px!important}
  .m59-itorah-result h4{font-size:18px!important;line-height:1.25!important;margin:5px 0 2px!important}
  .m59-itorah-result p{font-size:14px!important}
  .m59-itorah-meta{margin-top:7px!important}
  .m59-itorah-meta span{font-size:11px!important;padding:4px 6px!important}
  .m59-itorah-open{font-size:12px!important}
  .m59-neighbor-label{font-size:11px!important;margin:12px 0 6px!important}
  .m59-itorah-actions{margin-top:10px!important}
  .m59-itorah-actions a{font-size:14px!important;min-height:44px!important}

  /* Controls stay touchable even when surrounding layout is compressed. */
  .m55-speaker{width:36px!important;height:36px!important;min-width:36px!important}
  .m55-segmented button{min-height:34px!important;padding:6px 10px!important}
  .font-stepper button{min-width:34px!important;min-height:34px!important}
}

/* Tablet/desktop still gets a readable scholarly floor. */
@media(min-width:601px){
  .m58-stage>p,.m57-list li,.m55-deep-body{font-size:15px!important}
  .m57-source-card>p:last-of-type{font-size:11px!important}
}


/* ===== m61a-visible-mobile-typography ===== */
/* M61A: deliberately obvious iPhone typography upgrade. */
@media(max-width:600px){
  /* Masthead: retain elegance but improve supporting Hebrew legibility. */
  .m53-brand-en{font-size:34px!important;line-height:1.02!important}
  .m53-brand-he{font-size:15px!important;line-height:1.25!important;margin-top:7px!important}

  /* Greeting and day context — these were still visibly too small in M61. */
  .m53-greeting-row .greeting{
    font-size:22px!important;line-height:1.15!important;font-weight:700!important
  }
  .m53-greeting-row .reminder{
    font-size:16px!important;line-height:1.4!important;margin-top:5px!important
  }
  .m53-date-block{
    font-size:16px!important;line-height:1.55!important;margin-top:18px!important
  }
  .m53-date-block strong{font-size:17px!important}
  .m53-time-strip{padding:13px 0 12px!important}
  .m53-time-strip .people-grid{gap:13px!important}
  .m53-time-strip .person-name{
    font-size:14px!important;line-height:1.25!important;font-weight:650!important
  }
  .m53-time-strip .person-time{
    font-size:14px!important;line-height:1.25!important
  }
  .m53-time-divider{height:15px!important}

  /* Learn Together should read as a real section, not metadata. */
  .m53-together{gap:12px!important;padding:20px 0 22px!important}
  .m53-together-label strong{
    font-size:17px!important;line-height:1.25!important;font-weight:750!important
  }
  .m53-together-label span{
    font-size:14px!important;line-height:1.3!important
  }
  .m53-action-chip{
    min-height:52px!important;border-radius:16px!important;
    font-size:15px!important;line-height:1.2!important;font-weight:650!important
  }
  .m53-action-chip .count-badge,.voice-count-badge{
    font-size:11px!important;min-width:20px!important;height:20px!important
  }

  /* Yesterday control/header hierarchy. */
  .m53-yesterday{padding:20px 18px 4px!important}
  .m53-kicker{
    font-size:14px!important;line-height:1.25!important;font-weight:800!important;letter-spacing:.09em!important
  }
  .yesterday-ref{
    font-size:14px!important;line-height:1.35!important;margin-top:5px!important
  }
  .m55-viewbar{
    margin:14px 0 16px!important
  }
  .m55-viewbar>span{
    font-size:13px!important;line-height:1.2!important;font-weight:800!important
  }
  .m55-segmented button{
    min-height:40px!important;padding:7px 12px!important;
    font-size:15px!important;line-height:1.15!important;font-weight:650!important
  }
  .m55-lang-speakers .m55-speaker{
    font-size:13px!important;width:42px!important;height:42px!important;min-width:42px!important
  }
  .font-stepper{
    min-height:42px!important
  }
  .font-stepper button{
    min-width:40px!important;min-height:40px!important;font-size:18px!important
  }
  .font-stepper span{font-size:14px!important}

  /* Default Yesterday copy should be distinctly comfortable.
     User-selected resize still wins because JS writes inline !important. */
  .yesterday-review .yesterday-en{
    font-size:18px!important;line-height:1.62!important
  }
  .yesterday-review .yesterday-he{
    font-size:26px!important;line-height:1.62!important
  }

  /* Today's small structural labels must not fall back to legacy 8–11px rules. */
  #dailyHero #dailyLabel{font-size:15px!important;line-height:1.3!important}
  #dailyHero .week-note{font-size:12px!important;line-height:1.35!important}
  #peoplePanel .person-name,#peoplePanel .person-time{
    font-size:14px!important;line-height:1.25!important
  }

  /* Make secondary page chrome readable, while still subordinate. */
  .m53-refuah-label,.refuah-view{font-size:13px!important}
  .refuah-track{font-size:14px!important}
}


/* ===== m61a-specificity-repair ===== */
@media(max-width:600px){
  /* Beat legacy ID-based compact rules that survived from earlier milestones. */
  #dailyHero .m53-greeting-row .greeting,
  #dailyHero h1.greeting{
    font-size:22px!important;line-height:1.15!important;font-weight:700!important;margin-bottom:3px!important
  }
  #dailyHero .m53-greeting-row .reminder,
  #dailyHero .reminder{
    font-size:16px!important;line-height:1.4!important;margin-bottom:10px!important
  }
  #dailyHero .today-line,.m53-date-block{
    font-size:16px!important;line-height:1.55!important
  }
  #peoplePanel .person-name,#peoplePanel .person-time,
  .m53-time-strip .person-name,.m53-time-strip .person-time{
    font-size:14px!important;line-height:1.3!important
  }
  #yesterdayContent .yesterday-ref,.m53-yesterday .yesterday-ref{
    font-size:14px!important;line-height:1.35!important
  }
  #yesterdayContent .m53-kicker,.m53-yesterday .m53-kicker{
    font-size:14px!important
  }
  #yesterdayContent .yesterday-review .yesterday-he{line-height:1.62!important}
  #yesterdayContent .yesterday-review .yesterday-en{line-height:1.62!important}
}


/* ===== m62-voice-lab-style ===== */
.m62-voice-button{border:0;background:transparent;width:100%;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.m62-voice-lab{position:fixed;z-index:250000;inset:0;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,18,22,.34);backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:.18s ease}
.m62-voice-lab.show{opacity:1;pointer-events:auto}
.m62-voice-sheet{width:min(560px,100%);max-height:88vh;overflow:auto;padding:22px 18px max(22px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#f8f7f3;box-shadow:0 -18px 60px rgba(0,0,0,.18)}
.m62-voice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.m62-voice-head span{font-size:11px;font-weight:850;letter-spacing:.1em;color:#315a88}.m62-voice-head h3{margin:3px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:500}.m62-voice-head>button{border:0;border-radius:999px;background:#e9e7e1;padding:9px 13px;font-size:14px;font-weight:700}
.m62-voice-intro{font-size:15px;line-height:1.5;color:#65615a;margin:14px 0 6px}.m62-voice-count{font-size:12px;color:#858078;margin-bottom:15px}
.m62-voice-sheet section{padding:17px 0;border-top:1px solid #dedbd3}.m62-voice-sheet label{display:block;margin-bottom:8px;font-size:16px;font-weight:750}
.m62-voice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.m62-voice-row select{min-width:0;min-height:48px;padding:0 11px;border:1px solid #d7d3ca;border-radius:13px;background:#fff;font-size:16px;color:#1e1e1c}.m62-voice-row button{min-height:48px;border:1px solid #cbd4df;border-radius:13px;background:#fff;color:#214d7d;padding:0 13px;font-size:14px;font-weight:750}
.m62-voice-note{margin:7px 0 0;font-size:12px;line-height:1.45;color:#77726a}
