@font-face{font-family:"RdRubik";src:url(a/b5ebcab2d7df.woff2) format("woff2");font-weight:300 900;font-display:swap}
@font-face{font-family:"RdAssistant";src:url(a/da8686322c07.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"RdAssistant";src:url(a/78613418b648.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"RdHeebo";src:url(a/9da4a41316c8.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"RdVarela";src:url(a/4ada18d7d1da.woff2) format("woff2");font-display:swap}
@font-face{font-family:"RdPlex";src:url(fonts-subset/IBMPlexSansHebrew-Regular.ttf) format("truetype");font-weight:400}
@font-face{font-family:"RdPlex";src:url(fonts-subset/IBMPlexSansHebrew-Bold.ttf) format("truetype");font-weight:700}
@font-face{font-family:"RdNoto";src:url(a/50819ffec9fa.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{--navy:#1b2559;--indigo:#4f46e5;--amber:#f5a524;--mint:#2fbf8f;--cream:#f6f1e7;
 --bg:#efe9dd;--bg2:#f7f3ea;--surface:#fbf8f1;--ink:#1b2036;--muted:#5c6280;--line:#e1d9c6;--chip:#f1ecdf;--accent:#1b2559;--accent-ink:#fff;--share:#1f6b52;--focus:#4f46e5;--shadow:0 10px 30px rgba(27,37,89,.12);
 --ui:"RdRubik","RdHeebo","Liberation Sans",system-ui,sans-serif;--safe-b:env(safe-area-inset-bottom,0px)}
html[data-theme=dark]{--bg:#10142b;--bg2:#171b38;--surface:#1c2142;--ink:#f1ecdf;--muted:#a9afcc;--line:#2c3260;--chip:#252a52;--accent:#8f89ff;--accent-ink:#0f1233;--share:#2fbf8f;--focus:#ffcf6b;--shadow:0 10px 30px rgba(0,0,0,.4)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:var(--ui);overscroll-behavior:none}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
[hidden]{display:none!important}
#gate{position:fixed;inset:0;display:grid;place-items:center;padding:20px;background:var(--bg)}
.gate-box{max-width:340px;text-align:center}.gate-box h1{font-size:22px}
.btn{min-height:44px;padding:0 18px;border-radius:14px;background:var(--chip);font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.ic{width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* shell */
#app{position:fixed;inset:0;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,var(--bg2),var(--bg))}
.top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:6px 10px 0;min-height:52px;border-bottom:1px solid var(--line)}
.top .side{display:flex;align-items:center;gap:2px}.top .side.end{justify-content:flex-start;flex-direction:row}.top .side.last{justify-content:flex-start}
.avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.avatar i{font-style:normal;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:600;letter-spacing:.02em}
html[data-theme=dark] .avatar i{background:#8f89ff;color:#0f1233}
.logo{font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--navy);direction:ltr}
.logo b{color:var(--amber)}html[data-theme=dark] .logo{color:var(--ink)}
.undo-wrap{display:flex}
.chip-row{display:flex;justify-content:center;align-items:center;gap:4px;padding:8px 12px 2px;min-height:44px}
.type-chip{min-height:44px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;display:inline-flex;align-items:center;gap:6px;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.type-chip .dot{width:8px;height:8px;border-radius:50%;background:var(--amber)}
.type-chip.manual .dot{background:var(--mint)}
.stage{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}
.carousel{flex:1;min-height:0;display:flex;align-items:center;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:6px 0;touch-action:pan-x}
.carousel::-webkit-scrollbar{display:none}
.slot{flex:0 0 auto;height:100%;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;padding:0 var(--gap,8px)}
.slot:first-child{margin-inline-start:var(--edge,15%)}.slot:last-child{margin-inline-end:var(--edge,15%)}
.cardwrap{position:relative;height:100%;max-height:min(100%,calc(74vw / var(--ar,.6667)));aspect-ratio:var(--ar,2/3);transition:transform .2s,opacity .2s;transform:scale(.9);opacity:.75}
.slot.on .cardwrap{transform:scale(1);opacity:1}
.card{position:absolute;inset:0;border-radius:18px;overflow:hidden;container-type:size;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--c-bg);color:var(--c-ink);isolation:isolate}
.card .tx{padding:0 9cqw;text-align:center;width:100%;font-family:var(--c-font);font-weight:var(--c-w,600);position:relative;z-index:2}
.card .ln{display:block;font-size:calc(var(--fs,8)*1cqw*var(--gs,1)*var(--ls,1));line-height:var(--lh,1.22);opacity:var(--lo,1);transform:translate(var(--lx,0),var(--ly,0));text-align:var(--la,center);letter-spacing:calc(var(--tr,0)*.01em);overflow-wrap:anywhere}
.card .sig{position:absolute;bottom:6cqh;inset-inline:0;text-align:center;font-size:3.6cqw;opacity:.7;z-index:2;display:flex;justify-content:center;align-items:center;gap:1.5cqw}
.card .sig.start{justify-content:flex-start;padding-inline-start:8cqw}
.card .sig img{height:5.5cqw;width:auto;vertical-align:middle}.card .sig img.dk{filter:invert(1) hue-rotate(180deg)}
.card mark{background:none;color:inherit}
.hl-marker mark{background:linear-gradient(transparent 55%,var(--c-hl) 55%)}
.hl-under mark{text-decoration:underline;text-decoration-thickness:.12em;text-underline-offset:.15em;text-decoration-color:var(--c-hl)}
.hl-size mark{font-size:1.22em;color:var(--c-hl2)}
.bgl{position:absolute;inset:0;z-index:0;pointer-events:none}
.card.lay-frame::after{content:"";position:absolute;inset:4cqw;border:.5cqw solid var(--c-hl);border-radius:3cqw;z-index:1;opacity:.7}
.card.lay-bar::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3.2cqw;background:var(--c-hl);z-index:1}
.card.lay-big .tx::before{content:"״";display:block;font-size:22cqw;line-height:.6;color:var(--c-hl);margin-bottom:2cqh;opacity:.9}
.card.lay-stage .tx{background:var(--c-plate);margin:0 6cqw;width:auto;padding:7cqh 6cqw;border-radius:5cqw}
.card.lay-corner::before{content:"";position:absolute;top:-14cqw;inset-inline-start:-14cqw;width:34cqw;height:34cqw;border-radius:50%;background:var(--c-hl);opacity:.85;z-index:1}
.card .tx[contenteditable=true],.card textarea.edit{outline:2px dashed var(--c-hl);outline-offset:6px}
textarea.edit{position:absolute;z-index:5;inset:10% 6%;background:transparent;border:0;resize:none;text-align:center;font:inherit;font-size:max(16px,5cqw);color:inherit;line-height:1.3}
.cbtn{position:absolute;top:8px;z-index:6;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--c-ink);background:rgba(255,255,255,.0)}
.cbtn.fav{inset-inline-start:2px}.cbtn.exp{inset-inline-end:2px}
.cbtn .ring{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.55);display:grid;place-items:center;backdrop-filter:blur(4px)}
html[data-theme=dark] .cbtn .ring{background:rgba(20,22,50,.5);color:#fff}
.cbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cbtn.fav.on svg{fill:#e0405a;stroke:#e0405a}
.dots{display:flex;justify-content:center;gap:6px;padding:4px 0;min-height:18px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}.dots i.on{background:var(--navy);width:16px;border-radius:4px}
html[data-theme=dark] .dots i.on{background:#8f89ff}
.hint{text-align:center;font-size:12px;color:var(--muted);min-height:26px;padding-bottom:4px}
.dock{display:grid;grid-template-columns:1fr 1.5fr 1fr;align-items:center;gap:8px;padding:6px 12px calc(8px + var(--safe-b));border-top:1px solid var(--line);background:var(--surface)}
.dock .tab{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted);border-radius:14px}
.dock .tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dock .share{min-height:52px;border-radius:26px;background:var(--navy);color:#fff;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;box-shadow:0 6px 16px rgba(27,37,89,.3)}
html[data-theme=dark] .dock .share{background:#8f89ff;color:#0f1233}
.share svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* sheet mode: card goes to the top, sheet below */
#app[data-sheet] .dots,#app[data-sheet] .hint{display:none}
#app[data-sheet] .dock{display:none}
#app[data-sheet] .chip-row{display:none}
#app[data-sheet] .stage{padding-bottom:0}
.sheet{position:absolute;inset-inline:0;bottom:0;background:var(--surface);border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(0,0,0,.14);display:flex;flex-direction:column;height:var(--sh,58%);max-height:calc(100% - 150px);z-index:20;padding-bottom:var(--safe-b);animation:up .18s ease-out}
@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
.sheet.tall{height:calc(100% - 44px);max-height:none}
.grab{width:38px;height:4px;border-radius:2px;background:var(--line);margin:8px auto 0;flex:none}
.sh-head{display:flex;align-items:center;justify-content:space-between;padding:2px 8px 0 8px 16px;padding-inline:16px 6px;min-height:44px;flex:none}
.sh-head h2{font-size:17px;margin:0;font-weight:600}
.sh-body{flex:1;min-height:0;overflow-y:auto;padding:4px 16px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:0 16px;flex:none;overflow-x:auto;scrollbar-width:none}
.tabs button{min-height:44px;padding:0 12px;font-size:13.5px;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}
.tabs button[aria-selected=true]{color:var(--ink);border-color:var(--accent);font-weight:600}
.sec{font-size:12px;color:var(--muted);margin:14px 0 6px;font-weight:500}
.row{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 14px;border-radius:14px;background:var(--chip);border:1px solid transparent;font-size:13.5px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip[aria-pressed=true],.chip[aria-checked=true]{background:var(--navy);color:#fff}
html[data-theme=dark] .chip[aria-pressed=true],html[data-theme=dark] .chip[aria-checked=true]{background:#8f89ff;color:#0f1233}
.chip.dash{border:1px dashed var(--muted);background:transparent}
.seg{display:flex;background:var(--chip);border-radius:14px;padding:3px;gap:3px}
.seg button{flex:1;min-height:44px;border-radius:11px;font-size:13.5px;padding:0 6px}
.seg button[aria-pressed=true],.seg button[aria-checked=true]{background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.12);font-weight:600}
.field,.ta{width:100%;min-height:44px;border-radius:14px;border:1px solid var(--line);background:var(--bg2);padding:10px 12px;font-size:16px}
.ta{min-height:84px;resize:vertical}
label.lbl{display:block;font-size:12.5px;color:var(--muted);margin:10px 0 4px}
.fmt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fmt button{min-height:64px;border-radius:14px;background:var(--chip);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px}
.fmt button[aria-pressed=true]{background:var(--navy);color:#fff}html[data-theme=dark] .fmt button[aria-pressed=true]{background:#8f89ff;color:#0f1233}
.fmt i{display:block;border:2px solid currentColor;border-radius:3px}
.fontrow{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.fontrow button{flex:0 0 auto;min-width:72px;min-height:64px;border-radius:14px;background:var(--chip);border:2px solid transparent;font-size:15px;padding:0 10px}
.fontrow button[aria-pressed=true]{border-color:var(--navy)}html[data-theme=dark] .fontrow button[aria-pressed=true]{border-color:#8f89ff}
.sl{display:grid;grid-template-columns:78px 1fr 46px;align-items:center;gap:8px;min-height:44px}
.sl span{font-size:13px}.sl output{font-size:12px;color:var(--muted);text-align:left;direction:ltr}
input[type=range]{width:100%;height:44px;accent-color:var(--navy);margin:0;touch-action:pan-y}
.lines{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lines li{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:4px;background:var(--bg2);border:1px solid var(--line);border-radius:14px;padding:0 4px;min-height:48px}
.lines li input{border:0;background:none;font-size:16px;min-height:44px;width:100%}
.lines .acts{display:flex}.lines .acts button{width:44px;height:44px;display:grid;place-items:center}
.lines svg,.rowbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.handle{cursor:grab;touch-action:none;display:grid;place-items:center;height:44px;color:var(--muted)}
.rowbtn{width:100%;min-height:52px;border-radius:14px;background:var(--chip);display:flex;align-items:center;justify-content:space-between;padding:0 14px;margin-bottom:8px;font-size:14.5px;text-align:start;gap:10px}
.rowbtn.main{background:var(--share);color:#fff;font-weight:600}
html[data-theme=dark] .rowbtn.main{color:#06231a}
.rowbtn small{color:var(--muted);font-size:12px}
.sw{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:10px;font-size:14px}
.sw button{position:relative;flex:none;width:60px;height:44px;min-height:44px;background:none}
.sw button::before{content:"";position:absolute;inset-inline-end:0;top:50%;margin-top:-15px;width:52px;height:30px;border-radius:15px;background:var(--line);transition:.15s}
.sw button::after{content:"";position:absolute;z-index:1;top:50%;margin-top:-12px;inset-inline-end:25px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.15s}
.sw button[aria-checked=true]::before{background:var(--navy)}
html[data-theme=dark] .sw button[aria-checked=true]::before{background:#8f89ff}
.sw button[aria-checked=true]::after{inset-inline-end:3px}
.menu{position:absolute;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);max-height:60%;overflow:auto;padding:6px;inset-inline:16px;top:96px}
.menu button{display:block;width:100%;min-height:44px;text-align:start;padding:0 12px;border-radius:10px;font-size:14px}
.menu button[aria-checked=true]{background:var(--chip);font-weight:600}
.toast{position:absolute;inset-inline:16px;bottom:90px;z-index:60;background:var(--navy);color:#fff;border-radius:14px;padding:12px 16px;font-size:13.5px;text-align:center;box-shadow:var(--shadow)}
html[data-theme=dark] .toast{background:#e8e4ff;color:#10142b}
.full{position:absolute;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column}
.full .vp{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;padding:10px}
.full .vp .cardwrap{height:calc(100% * var(--z,1));transform:none;opacity:1;flex:none}
.full .vp.z{place-items:start center}
.full .bar{display:flex;align-items:center;gap:6px;padding:6px 10px calc(6px + var(--safe-b));border-top:1px solid var(--line);background:var(--surface);flex-wrap:wrap}
.guide{position:absolute;inset:8%;border:2px dashed #e0405a;border-radius:10px;pointer-events:none;z-index:7}
.gal{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gal button{aspect-ratio:2/3;border-radius:10px;overflow:hidden;position:relative;padding:0;border:2px solid transparent;min-height:44px}
.gal button[aria-pressed=true]{border-color:var(--amber)}
.gal .mini{position:absolute;inset:0;display:grid;place-items:center;font-size:11px;font-weight:600;text-align:center;padding:4px}
.gal .hb{position:absolute;top:2px;inset-inline-end:2px;width:44px;height:44px;display:grid;place-items:center}
.gal .hb span{font-size:15px;background:rgba(255,255,255,.7);color:#e0405a;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}
.avrow{display:flex;align-items:center;gap:12px;background:var(--chip);border-radius:16px;padding:12px;margin-bottom:10px}
.avrow .big{width:52px;height:52px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:600}
.avrow b{display:block;font-size:15px}.avrow small{color:var(--muted)}
.ver{text-align:center;color:var(--muted);font-size:11px;margin-top:10px}
.pill{display:inline-block;font-size:11px;padding:1px 8px;border-radius:9px;background:var(--amber);color:#3a2500}
.empty-hint{position:absolute;inset-inline:0;top:6px;text-align:center;font-size:12px;color:var(--muted)}
@media (max-height:600px){.top{min-height:46px}.chip-row{min-height:40px;padding-top:4px}.hint{display:none}.dock .tab,.dock .share{min-height:48px}.dock{padding-top:4px}.sheet{max-height:calc(100% - 120px)}}
@media (max-width:340px){.tabs button{padding:0 9px;font-size:12.5px}.sl{grid-template-columns:64px 1fr 40px}.chip{padding:0 11px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* kbsheet themed to the app palette */
.kbs-root{--kbs-bg:var(--bg,#faf6ec);--kbs-fg:var(--ink,#1c1f4a);--kbs-line:var(--line);--kbs-field:var(--surface,#fff);--kbs-acc:var(--navy,#1c1f4a);--kbs-acc-fg:#fff;--kbs-chip:var(--surface,#fff)}
.kbs-root[data-kbs-theme=dark]{--kbs-bg:#171a3d;--kbs-fg:#f2f2fa;--kbs-field:#22265a;--kbs-acc:#8f89ff;--kbs-acc-fg:#10123a;--kbs-chip:#22265a}
.kbs-chip{min-height:44px}
