/* TorahMaker · entry B preview */
html.eb .hai-sec,html.eb .hai-gal{display:none!important}
html.eb .hebrew-ai-app.is-work .eb-head,html.eb .hebrew-ai-app.is-work .eb-tools,html.eb .hebrew-ai-app.is-work .eb-recent{display:none!important}
.eb-head{display:flex;flex-direction:column;align-items:center;gap:8px;margin:4px 0 14px}
.eb-seg{display:inline-flex;background:#fff;border:1px solid var(--lo-line,#E2DED4);border-radius:99px;padding:4px;box-shadow:0 6px 18px rgba(20,24,38,.06)}
.eb-seg button{border:0;background:none;padding:10px 20px;border-radius:99px;font:600 15px var(--lo-font,Rubik,sans-serif);color:var(--lo-mute,#6A6F7E);cursor:pointer;transition:background .25s,color .25s}
.eb-seg button.on{background:var(--lo-ink,#141826);color:#fff}
.eb-int{margin:0;font-size:14px;color:var(--lo-mute,#6A6F7E);text-align:center}
/* lessons wing */
html.eb-les .hai-prods,html.eb-les .hai-prods-w,html.eb-les .hai-opt,html.eb-les .hai-optsep,html.eb-les .hai-target{display:none!important}
html.eb-dist .eb-strip,html.eb-dist .eb-choice,html.eb-dist .eb-recent{display:none!important}
.eb-strip{display:flex;align-items:center;gap:10px;width:100%;margin:6px 0 8px;padding:12px 14px;border:1.5px dashed #d8cfb8;border-radius:16px;background:var(--lo-sand,#F6F2E8);color:var(--lo-mute,#6A6F7E);font:400 13.5px var(--lo-font,Rubik,sans-serif);text-align:start;cursor:pointer;transition:border-color .2s,background .2s}
.eb-strip:hover{border-color:var(--lo-gold-2,#A87B24);background:#fff}.eb-strip b{color:var(--lo-ink,#141826);font-weight:600}.eb-strip i{font-style:normal;font-size:18px;color:var(--lo-gold-2,#A87B24)}
.eb-strip[hidden]{display:none}
.eb-choice{margin:6px 0 8px;padding:12px;border-radius:16px;background:var(--lo-gold-soft,#FFF6DE);border:1px solid #ecd9a8}
.eb-choice[hidden]{display:none}
.eb-fn{margin:0 0 10px;font:500 14px var(--lo-font,Rubik,sans-serif);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eb-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.eb-opts button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 14px;border-radius:14px;border:1px solid var(--lo-line,#E2DED4);background:#fff;cursor:pointer;text-align:start;font-family:inherit}
.eb-opts button:first-child{background:var(--lo-ink,#141826);color:#fff;border-color:var(--lo-ink,#141826)}
.eb-opts b{font-size:15px}.eb-opts small{font-size:12px;opacity:.75;line-height:1.4}
.eb-cx{margin-top:8px;background:none;border:0;color:var(--lo-mute,#6A6F7E);font:400 13px var(--lo-font,Rubik,sans-serif);text-decoration:underline;cursor:pointer}
.eb-recent{max-width:var(--hub-w,860px);margin:18px auto 0;background:#fff;border:1px solid var(--lo-line,#E2DED4);border-radius:20px;padding:14px 16px}
.eb-recent h4{display:flex;justify-content:space-between;margin:0 0 10px;font:600 14px var(--lo-font,Rubik,sans-serif)}.eb-recent h4 a{color:var(--lo-gold-2,#A87B24);font-weight:500;text-decoration:none}
.eb-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.eb-it{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--lo-line,#E2DED4);border-radius:14px;color:inherit;text-decoration:none;position:relative;padding-inline-start:24px}
.eb-it b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eb-it small{font-size:11.5px;color:var(--lo-mute,#6A6F7E)}
.eb-dot{position:absolute;inset-inline-start:10px;top:15px;width:7px;height:7px;border-radius:50%;background:#2E9E5B}
.eb-empty{margin:0;font-size:13px;color:var(--lo-mute,#6A6F7E)}.eb-in{background:none;border:0;padding:0;color:var(--lo-gold-2,#A87B24);font:inherit;text-decoration:underline;cursor:pointer}
/* distribution wing */
html.eb-dist:not(.eb-allp) .hai-prods,html.eb-dist:not(.eb-allp) .hai-prods-w{display:none!important}
html.eb-les .eb-tools{display:none}
.eb-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px auto 0;max-width:var(--hub-w,860px)}
.eb-tools button{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:99px;border:1px solid var(--lo-line,#E2DED4);background:#fff;font:500 14px var(--lo-font,Rubik,sans-serif);color:var(--lo-ink,#141826);cursor:pointer;transition:all .2s}
.eb-tools button i{font-style:normal}.eb-tools button.on{border-color:var(--lo-gold-2,#A87B24);background:var(--lo-gold-soft,#FFF6DE)}
.eb-tools .eb-more{color:var(--lo-mute,#6A6F7E)}
/* processing: calm wait line */
html.eb .hai-proc-in:after{content:"זמן משוער: כ-2–5 דקות לשיעור של שעה. אפשר לעבור לחלון אחר בינתיים, רק לא לסגור את הלשונית עד סוף ההעלאה.";display:block;margin-top:8px;font:400 12.5px var(--lo-font,Rubik,sans-serif);color:var(--lo-mute,#6A6F7E)}
/* mobile bar: 4 anchors */
html.eb .tm-tab [data-k=studio],html.eb .tm-tab [data-k=rec]{display:none!important}
@media(max-width:600px){.eb-seg button{padding:9px 15px;font-size:14px}.eb-opts{grid-template-columns:1fr}.eb-int{font-size:13px;padding:0 8px}}
/* order inside the hub (flex column) + quiet the extra layers */
html.eb .eb-head{order:2}html.eb .eb-tools{order:4}html.eb .eb-recent{order:6}
html.eb .hai-eyebrow,html.eb .hai-minis,html.eb .hai-qk,html.eb .hai-orb,html.eb .hai-agb{display:none!important}
html.eb.eb-les.t-min .hai-box .hai-row .hai-opt,html.eb.eb-les.t-min .hai-box .hai-row .hai-optsep,html.eb.eb-les .hai-box .hai-row .hai-opt,html.eb.eb-les .hai-box .hai-row .hai-optsep{display:none!important}
html.eb.eb-les .hebrew-ai-app .hai-box .hai-opt:not(#x):not(#y):not(#z),html.eb.eb-les .hebrew-ai-app .hai-box .hai-optsep:not(#x):not(#y):not(#z){display:none!important}
html.eb .eb-recent{width:100%;max-width:920px;box-sizing:border-box}
/* static markup stays invisible when the old home is chosen */
html:not(.eb) .eb-head,html:not(.eb) .eb-strip,html:not(.eb) .eb-choice,html:not(.eb) .eb-recent,html:not(.eb) .eb-tools{display:none!important}
.eb-items{min-height:20px}
.eb-recent{min-height:104px}.eb-items{min-height:46px;align-content:start}
html.eb .hai-snav{min-height:1px}
/* ☰ menu drawer */
.ebm-bg{position:fixed;inset:0;z-index:2147483000;background:rgba(20,24,38,.28);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;transition:opacity .35s ease}
.ebm-bg.on{opacity:1}.ebm-bg[hidden],.ebm[hidden]{display:none}
.ebm{box-sizing:border-box;position:fixed;top:0;bottom:0;right:0;z-index:2147483001;width:min(380px,calc(100vw - 40px));background:#FBF8F1;border-left:1px solid #D9B66A;border-radius:24px 0 0 24px;box-shadow:0 0 60px rgba(20,24,38,.25);overflow-y:auto;overscroll-behavior:contain;padding:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) 18px;transform:translateX(104%);transition:transform .45s cubic-bezier(.22,1,.36,1);font-family:var(--lo-font,Rubik,sans-serif);color:var(--lo-ink,#141826)}
.ebm.on{transform:none}
.ebm-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.ebm-top b{font:600 20px var(--lo-serif,'David Libre',serif)}
.ebm-x{width:40px;height:40px;border-radius:50%;border:1px solid #D9B66A;background:#fff;font-size:15px;cursor:pointer}
.ebm-q{width:100%;box-sizing:border-box;padding:11px 14px;border-radius:14px;border:1px solid var(--lo-line,#E2DED4);background:#fff;font:inherit;font-size:14.5px;margin-bottom:6px}
.ebm-g{margin-top:12px}.ebm-g[hidden]{display:none}
.ebm-h{margin:0 0 6px;font-size:12px;font-weight:600;color:#A87B24;letter-spacing:.4px}
.ebm-i{display:flex;align-items:center;gap:10px;width:100%;padding:10px 4px;background:none;border:0;border-bottom:1px solid rgba(20,24,38,.07);cursor:pointer;text-align:start;font:inherit;color:inherit}
.ebm-i[hidden]{display:none}.ebm-i span{flex:1;display:flex;flex-direction:column;gap:2px}.ebm-i b{font-size:15px;font-weight:500}.ebm-i small{font-size:12.5px;color:var(--lo-mute,#6A6F7E)}
.ebm-i i{font-style:normal;color:#C9A04A;font-size:18px}.ebm-i:hover b{color:#A87B24}
.ebm-none{font-size:13.5px;color:var(--lo-mute,#6A6F7E)}.ebm-ask{background:none;border:0;padding:0;color:#A87B24;text-decoration:underline;font:inherit;cursor:pointer}
html.ebm-lock,html.ebm-lock body{overflow:hidden}
.ebm-btn{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:12px;border:1px solid var(--lo-line,#E2DED4);background:#fff;cursor:pointer;font:500 14px var(--lo-font,Rubik,sans-serif);color:var(--lo-ink,#141826);margin-inline-end:10px}
.ebm-btn s{display:block;width:15px;height:1.6px;background:currentColor;box-shadow:0 5px 0 currentColor,0 -5px 0 currentColor}
@media(max-width:760px){.ebm-btn{display:none}}
/* desktop side rail: keep only the anchors, everything else lives in ☰ */
html.eb .hai-side .hai-sn-i:is([data-sn=create],[data-sn=tr],[data-sn=mic],[data-sn=edit],[data-sn=video],[data-sn=src],[data-sn=ask],[data-sn=word]){display:none!important}
@media(prefers-reduced-motion:reduce){.ebm{transition:none}}
.eb-pend{order:3;display:flex;align-items:center;gap:10px;width:100%;max-width:920px;box-sizing:border-box;margin:0 auto 10px;padding:10px 14px;border-radius:16px;background:#fff;border:1px solid #ecd9a8;box-shadow:0 8px 22px rgba(20,24,38,.06);font-family:var(--lo-font,Rubik,sans-serif)}
.eb-pend span{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.eb-pend b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eb-pend small{font-size:12.5px;color:var(--lo-mute,#6A6F7E)}
.eb-pend-go{background:var(--lo-ink,#141826);color:#fff;border:0;border-radius:12px;padding:9px 16px;font:600 13.5px inherit;cursor:pointer}.eb-pend-go[hidden]{display:none}
.eb-pend-x{background:none;border:0;color:var(--lo-mute,#6A6F7E);cursor:pointer;font-size:14px}
.eb-dot.run{position:static;flex:none;width:9px;height:9px;border-radius:50%;background:#D9B66A;animation:ebp 1.4s ease-in-out infinite}.eb-pend .eb-dot.ok{position:static;flex:none;width:9px;height:9px;background:#2E9E5B}.eb-pend .eb-dot.err{position:static;flex:none;width:9px;height:9px;border-radius:50%;background:#B3261E}
@keyframes ebp{50%{opacity:.35;transform:scale(.8)}}
.eb-pend.done{border-color:#bfe3cc;background:#F4FBF6}
.eb-note{margin:8px 2px 0;font-size:12.5px;line-height:1.45;color:#7a5a12}.eb-note[hidden]{display:none}
html.eb-les .hai-hint .hai-h-up,html.eb-les .hai-hint .hai-h-drag,html.eb-les .hai-hint .hai-h-sep{display:none!important}
.eb-choice.eb-nudge{animation:ebn .5s ease}@keyframes ebn{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@media (orientation:landscape) and (max-height:500px){html.eb .eb-int{display:none}html.eb .eb-head{margin:0 0 6px}html.eb .eb-seg button{padding:7px 16px}html.eb .hai-box textarea{min-height:40px}html.eb .eb-strip{padding:8px 12px;margin:4px 0 6px}}
/* audit fixes: content anchored to the top (no jump when switching wings), snappier ☰, taller switch */
html.eb .hai-hub{justify-content:flex-start!important}
.ebm{transition-duration:.28s}.ebm-bg{transition-duration:.25s}
.eb-seg button{min-height:40px}
.eb-ans{order:5;position:relative;width:100%;max-width:920px;box-sizing:border-box;margin:10px auto 0;padding:12px 40px 12px 16px;border-radius:16px;background:#fff;border:1px solid var(--lo-line,#E2DED4);box-shadow:0 8px 22px rgba(20,24,38,.06);font-family:var(--lo-font,Rubik,sans-serif);animation:ebaIn .25s ease}
@keyframes ebaIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.eb-ans-q{margin:0 0 4px;font-size:12.5px;color:var(--lo-mute,#6A6F7E)}.eb-ans-a{margin:0 0 8px;font-size:14.5px;line-height:1.55}
.eb-ans-l{display:flex;flex-wrap:wrap;gap:8px}.eb-ans-l a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:12px;background:var(--lo-ink,#141826);color:#fff;text-decoration:none;font:600 13.5px inherit}
.eb-ans-x{position:absolute;top:8px;left:8px;border:0;background:none;color:var(--lo-mute,#6A6F7E);cursor:pointer}
.eb-ans-more{margin-top:8px;background:none;border:0;padding:0;color:#A87B24;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
html.eb-dist .eb-ans{display:none}
