@font-face{font-family:Mishnah;src:url('hebrew.ttf')}*{box-sizing:border-box}html{color:#251f21;background:#f4efec;font-family:system-ui,-apple-system,'Arial',sans-serif;font-size:16px}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,select,input{min-height:44px}button{cursor:pointer;border:1px solid #d7d9d5;background:#fff;color:#251f21;border-radius:8px;padding:10px 14px;line-height:1.35}button:hover{background:#eef5f1}button:disabled{opacity:.45;cursor:default}button.primary{background:#245b4e;color:white;border-color:#245b4e;font-weight:600}button.danger{color:#a92230}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5b9180;outline-offset:3px}a{color:#245b4e;overflow-wrap:anywhere}h1,h2,h3,p{margin:0}h1{font-family:Mishnah,serif;font-size:30px;font-weight:600}h2{font-family:Mishnah,serif;font-size:25px;margin-bottom:14px}h3{font-size:18px;margin-bottom:10px}p{line-height:1.65}small,.muted{font-size:14px;color:#585254;line-height:1.6}header{max-width:1060px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 24px 16px}.brand{display:flex;gap:14px;align-items:center}.brand img{width:48px;height:48px}.header-actions{display:flex;gap:8px;flex-wrap:wrap}main{max-width:1012px;margin:auto;padding:0 24px 28px}.tabs{display:flex;gap:4px;position:sticky;top:0;background:#f4efecf5;z-index:5;padding:8px 0 12px;backdrop-filter:blur(10px);margin-bottom:12px}.tabs button{flex:1;background:transparent;border:0;padding:10px 6px;border-radius:8px}.tabs button.active{background:#245b4e;color:white;font-weight:600}.card{background:#fff;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 2px 12px #251f2105}.accent{background:#245b4e;color:#fff}.accent .muted,.accent small{color:#dfebe5}.eyebrow{font-size:13px;letter-spacing:.05em;margin-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.stat{padding:15px 12px;background:#f6f5f2;border-radius:10px;min-width:0}.stat strong{display:block;font-size:29px;font-weight:600;line-height:1.2;margin-bottom:7px;overflow-wrap:anywhere}.stat span{display:block;font-size:14px;line-height:1.5}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #eae9ea}.row:last-child{border-bottom:0}.row>div{min-width:0}.row strong{display:block;line-height:1.5}.row .value{white-space:nowrap;font-weight:600;color:#245b4e}.progress{height:9px;background:#e6e9e2;border-radius:20px;margin:14px 0;overflow:hidden}.progress span{display:block;height:100%;background:#73a89a}.notice{background:#f4efec;border-inline-start:3px solid #8d9c91;padding:13px 16px;border-radius:6px;margin:14px 0;line-height:1.6;font-size:14px}.notice.error{color:#a92230;border-color:#a92230}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.fields label{display:block;font-size:14px;line-height:1.5;min-width:0}.fields label>input,.fields label>select{margin-top:6px;width:100%}input,select{border:1px solid #cbd2cb;border-radius:7px;background:white;color:#251f21;padding:8px 10px;max-width:100%;min-width:0}input[type=date]{direction:ltr}input[type=checkbox]{width:20px;min-height:20px;vertical-align:middle}.wide{grid-column:1/-1}details{margin:14px 0}summary{cursor:pointer;padding:12px 0;line-height:1.5}nav.reader-nav{display:flex;justify-content:space-between;gap:10px;margin:18px 0}.reader-text{font-family:Mishnah,'Times New Roman',serif;font-size:27px;line-height:2.05;direction:rtl;text-align:right}.word{display:inline;cursor:pointer;border-radius:3px;padding:1px 0}.word.mark{background:#f6d98b;box-shadow:0 2px 0 #dcb655}.reader-tip{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin:10px 0}.stepper{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stepper input{width:82px}.mapgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:6px;margin:10px 0 20px;direction:rtl}.cell{border:1px solid #dfe4dc;border-radius:6px;padding:2px;min-height:42px;background:#f6f5f2;font-size:13px}.cell[data-level='1']{background:#e6efe8}.cell[data-level='2']{background:#a8c9ba}.cell[data-level='3']{background:#245b4e;color:#fff}.cell b{display:block;font-size:15px}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:#585254;margin:14px 0}.dot{display:inline-block;width:12px;height:12px;border:1px solid #bac5ba;border-radius:3px;margin-inline-end:5px}.mishna-list{max-height:400px;overflow:auto}.pill{display:inline-block;background:#eef5f1;color:#245b4e;border-radius:15px;padding:5px 11px;font-size:13px;font-weight:600}.listbutton{width:100%;text-align:start;display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:0;border-bottom:1px solid #eae9ea;border-radius:0}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#251f21;color:white;border-radius:9px;padding:13px 18px;z-index:20;max-width:90vw;box-shadow:0 5px 20px #0002;line-height:1.5}.footer{font-size:12px;color:#706b6c;text-align:center;line-height:1.7;padding:8px 20px 22px}.loading{text-align:center;padding:60px}.checkline{display:flex;align-items:flex-start;gap:10px;margin:15px 0;line-height:1.7}.checkline input{margin-top:5px}.book-totals{margin-top:14px}.badge{font-size:12px;color:#585254}.offline{font-size:12px;color:#585254;max-width:150px;line-height:1.5}.scroll-anchor{scroll-margin-top:85px}#storage-error{padding:15px;background:#fbe5e7;color:#992331}dialog{border:0;border-radius:16px;padding:24px;max-width:540px;width:calc(100% - 32px);color:#251f21;box-shadow:0 12px 70px #0003}dialog::backdrop{background:#0006}dialog h2{font-size:23px}dialog .actions{justify-content:flex-end}.range-label{font-family:Mishnah,serif;font-size:18px;line-height:1.7}.split{display:flex;gap:20px;justify-content:space-between;align-items:start}.split>div{min-width:0}#content:focus{outline:0}ul{padding-inline-start:22px;line-height:1.8}code{font-size:12px;overflow-wrap:anywhere}button.linklike{border:0;color:#245b4e;background:none;padding:5px;text-decoration:underline}footer a{margin-inline:8px}@media(max-width:650px){header{padding:19px 16px 12px;align-items:start}.brand{gap:9px}.brand img{width:40px;height:40px}h1{font-size:25px}.header-actions{max-width:130px;justify-content:flex-end}.header-actions button{padding:8px 10px;font-size:13px}main{padding:0 14px 20px}.tabs{gap:2px}.tabs button{font-size:14px;padding:10px 3px}.card{padding:19px 16px;border-radius:13px;margin-bottom:14px}.stats{grid-template-columns:1fr 1fr;gap:8px}.stat strong{font-size:26px}.grid2{grid-template-columns:1fr;gap:0}.fields{grid-template-columns:1fr;gap:12px}.wide{grid-column:auto}.reader-text{font-size:25px;line-height:2}.row{gap:10px;flex-wrap:wrap}.row>div:first-child{flex:1 1 160px}.split{flex-direction:column;gap:10px}.offline{max-width:125px;font-size:11px}h2{font-size:23px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}html{scroll-behavior:smooth}}

.accent button.primary{background:#fff;color:#245b4e;border-color:#fff}.accent button.primary:hover{background:#e8f1ec}
@media(max-width:360px){.stat strong{font-size:21px;letter-spacing:-.03em;white-space:nowrap}}
