@font-face{font-family:"Inter";src:url("fonts/inter.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Fraunces";src:url("fonts/fraunces.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Frank";src:url("fonts/frank.woff2") format("woff2");font-weight:300 900;font-display:swap}
*{box-sizing:border-box;margin:0;padding:0}
:root{--cream:#FAF6EF;--card:#fff;--navy:#1E2A45;--ink:#26304A;--muted:#6E7383;--gold:#A87A2E;--gold-l:#B4873A;--gold2:#E9D9B8;--goldbg:#F6EDDC;--line:#ECE5D8;--green:#3F7A5A;--greenbg:#E7F1EA;--red:#A4423A;
 --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);--serif:"Fraunces",Georgia,serif;--heb:"Frank","Times New Roman",serif}
html,body{height:100%}
body{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--cream);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
a{color:var(--gold)}
input,select,textarea{font:inherit;color:var(--ink)}
:focus-visible{outline:2.5px solid var(--gold-l);outline-offset:2px;border-radius:10px}
svg{display:block}
[lang=he]{font-family:var(--heb)}
.hidden{display:none!important}

/* app shell */
.app{position:relative;height:100vh;height:100dvh;display:flex;flex-direction:column;max-width:480px;margin:0 auto;background:var(--cream);overflow:hidden}
.main{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:calc(var(--safe-t) + 8px) 16px 24px;outline:none}
.demo-badge{position:absolute;top:calc(var(--safe-t) + 4px);left:50%;transform:translateX(-50%);z-index:5;font-size:9.5px;font-weight:700;letter-spacing:.08em;color:var(--gold);background:var(--goldbg);border:1px solid var(--gold2);padding:2px 8px;border-radius:20px;pointer-events:none}
.tabs{display:flex;justify-content:space-around;background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:6px 4px calc(6px + var(--safe-b));backdrop-filter:blur(10px)}
.tabs button{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;font-weight:600;color:#9A9DA8;padding:4px 2px;min-width:60px;border-radius:10px}
.tabs button svg{width:24px;height:24px}
.tabs button.on{color:var(--navy)}
.tabs button.on svg{color:var(--gold-l)}

/* header */
.top{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:18px 2px 12px}
.top h1{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.05;color:var(--navy);letter-spacing:-.01em}
.kicker{font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.top-r{display:flex;gap:6px;align-items:center;flex-shrink:0}
.icon-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:var(--navy)}
.icon-btn svg{width:19px;height:19px}
.pill-prem{display:flex;align-items:center;gap:5px;height:34px;padding:0 12px;border-radius:20px;background:var(--navy);color:#F3DFAF;font-size:12.5px;font-weight:700}
.pill-prem svg{width:14px;height:14px}
.ptag{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;letter-spacing:.03em;color:var(--gold);background:var(--goldbg);border:1px solid var(--gold2);border-radius:20px;padding:1px 7px 1px 5px;text-transform:uppercase;vertical-align:middle}
.ptag svg{width:10px;height:10px}

/* hero */
.hero{background:linear-gradient(160deg,#22304F 0%,#1A2540 100%);color:#fff;border-radius:22px;padding:22px 20px 18px;text-align:center;position:relative;overflow:hidden;box-shadow:0 10px 24px -14px rgba(30,42,69,.6)}
.hero:before{content:"";position:absolute;inset:8px;border:1px solid rgba(233,217,184,.25);border-radius:16px;pointer-events:none}
.hero-he{font-size:36px;line-height:1.2;color:#F0D9A6;font-weight:600}
.hero-en{font-family:var(--serif);font-size:19px;margin-top:4px;color:#fff}
.hero-note{font-size:12.5px;color:#C8CDDA;margin-top:6px}
.city-btn{margin:14px auto 0;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#fff;border-radius:20px;padding:7px 12px 7px 10px;font-size:13px;font-weight:600;position:relative}
.city-btn svg{width:15px;height:15px}
.today-tz{margin-top:12px;width:100%;display:flex;align-items:center;gap:12px;background:var(--goldbg);border:1px solid var(--gold2);border-radius:16px;padding:12px 14px}
.today-tz .candle{font-size:22px}
.today-tz b{display:block;font-size:14px;color:var(--navy)}
.today-tz small{color:var(--muted);font-size:12px}
.chev{width:18px;height:18px;color:#B5B8C2;flex-shrink:0}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 14px 8px;margin-top:12px}
.card-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px}
.card-h h2{font-family:var(--serif);font-size:18px;font-weight:600;color:var(--navy)}
.muted{color:var(--muted);font-size:12.5px}
.link{color:var(--gold);font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:4px;padding:6px 0}
.link svg{width:15px;height:15px}
.link.danger{color:var(--red);display:block;margin:10px auto 0;text-align:center}
.link.small{font-size:12px}
.zrow{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #F3EEE5;font-size:14px}
.zrow:first-of-type{border-top:0}
.zrow span{color:#4A5168}
.zrow b{font-weight:600;color:var(--navy);text-align:right}
.shabbos .sh-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 6px}
.sh-grid>div{background:var(--goldbg);border-radius:14px;padding:10px 12px}
.sh-grid small{display:block;font-size:11.5px;color:var(--gold);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.sh-grid b{display:block;font-family:var(--serif);font-size:24px;color:var(--navy);font-weight:600;margin-top:2px}
.sh-grid span{font-size:12px;color:var(--muted)}
.tiny{font-size:11.5px;color:var(--muted);line-height:1.45;padding-bottom:6px}
.tiny.pad{padding:10px 4px 0}
.center{text-align:center}
.credit{font-size:11.5px;color:var(--muted);text-align:center;margin:16px 8px 0;line-height:1.5}
.demo-foot{font-size:11px;color:#A0A3AD;text-align:center;margin:14px 0 8px;letter-spacing:.02em}

/* rows */
.row{width:100%;display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #F3EEE5}
.card .row:first-of-type{border-top:0}
.card-h + .row{border-top:0}
.ricon{width:38px;height:38px;border-radius:12px;background:var(--goldbg);display:grid;place-items:center;font-size:18px;flex-shrink:0}
.ricon.sim{background:#EEF1F8}
.rmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rtitle{font-weight:600;font-size:14.5px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rsub{font-size:12.5px;color:var(--muted);line-height:1.35}
.rsub b{color:var(--ink);font-weight:600}
.rwhen{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;align-self:center}
.rwhen.soon{color:var(--gold)}
.row.tall{align-items:flex-start}
.row.tall .rwhen{align-self:flex-start;margin-top:2px}
.tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}
.tags i{font-style:normal;font-size:11px;font-weight:600;background:#F1F2F5;color:#555B6E;border-radius:6px;padding:2px 6px}
.tags i.gold{background:var(--goldbg);color:var(--gold)}
.add-inline{display:flex;align-items:center;gap:6px;width:100%;justify-content:center;color:var(--gold);font-weight:600;font-size:13.5px;padding:12px 0 8px;border-top:1px dashed var(--gold2);margin-top:4px}
.add-inline svg{width:16px;height:16px}
.empty{color:var(--muted);font-size:13.5px;padding:14px 0;text-align:center}
.explain{background:#fff;border:1px solid var(--line);border-left:3px solid var(--gold-l);border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.5;color:#4A5168;margin-bottom:12px}
.explain b{color:var(--navy)}
.hint{font-size:13px;color:#5A6075;line-height:1.5;margin:10px 2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 16px;border-radius:14px;font-weight:650;font-size:15px;text-decoration:none}
.btn svg{width:17px;height:17px}
.btn.primary{background:var(--navy);color:#fff}
.btn.soft{background:#fff;border:1px solid var(--line);color:var(--navy)}
.btn.wide{width:100%;margin-top:10px}
.btn-col{display:flex;flex-direction:column;gap:0;margin-top:6px}

/* segmented & chips */
.seg{display:flex;background:#EFE9DE;border-radius:12px;padding:3px;margin:2px 0 10px}
.seg button{flex:1;text-align:center;padding:9px 6px;border-radius:10px;font-size:13.5px;font-weight:600;color:#6B6F7C}
.seg button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg.small button{font-size:12.5px;padding:8px 4px}
.chips{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0}
.chip{border:1px solid var(--line);background:#fff;border-radius:20px;padding:8px 12px;font-size:13px;font-weight:600;color:#4A5168}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.emo{font-size:18px;padding:6px 11px}

/* forms / sheets */
.sheet-wrap{position:absolute;inset:0;z-index:40;pointer-events:none}
.sheet-bg{position:absolute;inset:0;background:rgba(20,26,40,.42);opacity:0;transition:opacity .22s}
.sheet{position:absolute;left:0;right:0;bottom:0;max-height:88%;background:var(--cream);border-radius:22px 22px 0 0;transform:translateY(105%);transition:transform .26s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;box-shadow:0 -10px 30px rgba(0,0,0,.15)}
.sheet.tall{height:92%;max-height:92%}
.sheet-wrap.open{pointer-events:auto}
.sheet-wrap.open .sheet-bg{opacity:1}
.sheet-wrap.open .sheet{transform:none}
.grab{width:40px;height:5px;border-radius:5px;background:#D9D2C4;margin:8px auto 0;flex-shrink:0}
.sheet-x{position:absolute;right:12px;top:10px;width:34px;height:34px;z-index:2}
.sheet-body{overflow-y:auto;padding:12px 18px calc(22px + var(--safe-b));-webkit-overflow-scrolling:touch}
.sh-title{font-family:var(--serif);font-size:23px;font-weight:600;color:var(--navy);margin:6px 40px 12px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.15}
.c-head .sh-title,.tz-head .sh-title,.done h2{margin:6px 0 4px;justify-content:center}
.form{display:flex;flex-direction:column;gap:12px}
.fl{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:#5A6075;text-transform:none}
.fl-row{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:#5A6075}
.fl-hint{font-weight:500;color:var(--muted);font-size:12px;margin-top:-2px}
.fl input,.fl select,.fl textarea,.prow input{width:100%;border:1px solid #E2DACB;background:#fff;border-radius:12px;padding:12px;font-size:16px;font-weight:500;appearance:none;-webkit-appearance:none;min-height:46px}
.fl select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7F8C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:18px;padding-right:34px}
.fl textarea{resize:vertical;min-height:64px}
.row2{display:flex;gap:10px}
.row2 .grow{flex:1;min-width:0}
.row2 .narrow{width:92px;flex-shrink:0}
.row2 .narrow2{width:142px;flex-shrink:0}
.prow{margin-bottom:8px}
.prow input:first-child{flex:1.1}
.prow input:last-child{flex:1}
.check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:#4A5168;line-height:1.4;margin-top:8px}
.check input{width:20px;height:20px;accent-color:var(--navy);flex-shrink:0;margin-top:1px}
.preview{background:#fff;border:1px solid var(--gold2);border-radius:14px;padding:12px 14px;font-size:13.5px}
.preview.small{padding:9px 12px;font-size:13px;color:#4A5168}
.pv-h{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--gold);margin-bottom:4px}
.pv-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;padding:8px 0;border-top:1px solid #F3EEE5}
.pv-row:nth-child(2){border-top:0}
.pv-row b{color:var(--navy)}
.pv-row span{color:var(--muted)}
.pv-row small{width:100%;color:var(--muted);font-size:11.5px}
.pv-note{margin-top:8px;font-size:12px;color:#7A5A1E;background:var(--goldbg);border-radius:10px;padding:8px 10px;line-height:1.45}
.conv{padding-bottom:8px;margin-bottom:6px;border-bottom:1px solid #F3EEE5}
.cpick{display:flex;flex-wrap:wrap;gap:7px}
.cchip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:20px;padding:7px 11px;font-size:13px;font-weight:600;color:#4A5168}
.cchip small{font-size:11px;color:#9A9DA8;font-weight:700}
.cchip.on{background:var(--goldbg);border-color:var(--gold-l);color:var(--navy)}
.cchip.on small{color:var(--gold)}
.ccount{font-size:12px;color:var(--green);font-weight:600;margin-top:2px}
.toast{position:absolute;left:50%;top:calc(var(--safe-t) + 26px);transform:translate(-50%,-16px);background:var(--navy);color:#fff;font-size:13.5px;font-weight:600;padding:11px 16px;border-radius:14px;opacity:0;transition:all .25s;z-index:60;max-width:88%;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* simchas */
.scard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:12px;transition:box-shadow .3s}
.scard.flash{box-shadow:0 0 0 3px var(--gold2)}
.s-top{display:flex;gap:12px;align-items:flex-start}
.s-ic{width:46px;height:46px;border-radius:14px;background:var(--goldbg);display:grid;place-items:center;font-size:24px;flex-shrink:0}
.s-type{font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--gold)}
.scard h3{font-family:var(--serif);font-size:19px;font-weight:600;color:var(--navy);line-height:1.2;margin-top:2px}
.s-host{font-size:12.5px;color:var(--muted);margin-top:2px}
.s-when{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.s-line{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;width:100%}
.s-line svg{width:18px;height:18px;color:var(--gold-l);flex-shrink:0;margin-top:1px}
.s-line>span{display:flex;flex-direction:column;gap:1px;min-width:0}
.s-line b{color:var(--navy);font-weight:600}
.s-line small{color:var(--muted);font-size:12px}
.s-line.addr{background:#F7F9FD;border:1px solid #E3E8F2;border-radius:12px;padding:9px 10px}
.s-line.addr u{color:#2C5DB5;text-decoration:underline;text-underline-offset:2px}
.s-note{font-size:13.5px;color:#4A5168;margin-top:10px;line-height:1.45}
.s-sent{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--green);font-weight:600;margin-top:10px;background:var(--greenbg);border-radius:10px;padding:7px 10px}
.s-sent svg{width:14px;height:14px;flex-shrink:0}
.s-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.s-actions .btn{min-height:42px;font-size:13.5px;padding:0 8px}

/* tree */
.match-banner{width:100%;display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border-radius:16px;padding:12px 14px;margin-bottom:4px}
.match-banner b{font-size:14.5px}
.match-banner small{font-size:12.5px;color:#C8CDDA;line-height:1.35}
.match-banner .chev{color:#8892AA}
.match-banner.done{background:var(--greenbg);color:var(--navy);border:1px solid #CFE3D6}
.match-banner.done small{color:#4A6B57}
.mb-ic{width:36px;height:36px;border-radius:50%;background:rgba(240,217,166,.18);display:grid;place-items:center;color:#F0D9A6;flex-shrink:0}
.match-banner.done .mb-ic{background:#fff;color:var(--green)}
.mb-ic svg{width:19px;height:19px}
.sample-chip{display:inline-block;font-size:11px;font-weight:700;color:var(--muted);background:#EFE9DE;border-radius:20px;padding:3px 9px;margin:0 2px 2px}
.gen{margin-top:14px;position:relative}
.gen-h{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:0 2px 8px;display:flex;align-items:center;gap:8px}
.gen-h:after{content:"";flex:1;height:1px;background:var(--gold2)}
.gen-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gen-grid.one{grid-template-columns:1fr;max-width:60%;margin:0 auto}
.pcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 11px;display:flex;flex-direction:column;gap:3px;min-height:74px;position:relative}
.pcard.me{background:var(--navy);border-color:var(--navy);color:#fff;align-items:center;justify-content:center;min-height:52px}
.pcard.me .pname{color:#fff}
.pcard.late{border-left:3px solid var(--gold2)}
.pcard.fm{background:#FBF8F1;border-style:dashed;border-color:var(--gold2)}
.pname{font-weight:650;font-size:13.5px;color:var(--navy);line-height:1.25}
.ptown{font-size:11.5px;color:var(--muted)}
.pyz{font-size:12px;color:var(--gold);font-weight:600}
.pbadge{align-self:flex-start;font-size:10.5px;font-weight:700;color:#fff;background:var(--gold-l);border-radius:20px;padding:1px 7px;margin-top:2px}
.pbadge.g{background:var(--green)}
.pcard.slot{border:1.5px dashed #D8CFBE;background:transparent;flex-direction:row;align-items:center;gap:8px;color:var(--gold);font-weight:600;font-size:13px;min-height:58px}
.pcard.slot svg{width:18px;height:18px;flex-shrink:0}
.pcard.slot span{display:flex;flex-direction:column}
.pcard.slot small{color:var(--muted);font-weight:500;font-size:11.5px}
.facts{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 14px;margin-top:8px}
.facts div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #F3EEE5;font-size:14px}
.facts div:first-child{border-top:0}
.facts span{color:var(--muted)}
.facts b{color:var(--navy);text-align:right;font-weight:600;display:flex;flex-direction:column}
.facts b small{font-weight:500;color:var(--muted);font-size:12px}
.c-head{text-align:center}
.c-big{font-size:38px;display:block;margin-top:4px}
.c-big.mb{width:58px;height:58px;margin:4px auto 0;border-radius:50%;background:var(--navy);color:#F0D9A6;display:grid;place-items:center}
.c-big.mb svg{width:28px;height:28px}
.cmp{background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:14px;overflow:hidden}
.cmp-h,.cmp-r{display:grid;grid-template-columns:76px 1fr 1fr;gap:8px;padding:9px 12px;font-size:13px;align-items:start}
.cmp-h{background:#F6F2EA;font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.cmp-h b{font-weight:700}
.cmp-r{border-top:1px solid #F3EEE5}
.cmp-r span{color:var(--muted);font-size:12px;padding-top:1px}
.cmp-r b{font-weight:600;color:var(--navy)}
.cmp-r i{font-style:normal;font-size:11px;font-weight:700}
.cmp-r i.ok{color:var(--green)}
.cmp-r i.nw{color:var(--gold);background:var(--goldbg);border-radius:6px;padding:0 5px}
.both{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.side{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;text-align:center}
.side span{display:block;font-size:12px;color:var(--muted)}
.side b{font-size:14px;color:var(--navy)}
.side.yes{background:var(--greenbg);border-color:#CFE3D6}
.side.yes b{color:var(--green)}
.done{text-align:center;padding:4px 0}
.done-ic{font-size:46px;margin-top:6px}
.done h2{font-family:var(--serif);font-size:24px;color:var(--navy);font-weight:600}
.done p{font-size:14px;color:#4A5168;line-height:1.5;margin-top:8px}
.mlist{background:#fff;border:1px solid var(--line);border-radius:14px;padding:2px 14px;margin-top:14px}
.mrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #F3EEE5;font-size:14px;color:var(--navy)}
.mrow:first-child{border-top:0}
.mrow span{display:flex;flex-direction:column}
.mrow small{color:var(--muted);font-size:12px}
.av{width:34px;height:34px;border-radius:50%;background:var(--goldbg);color:var(--gold);font-weight:700;display:grid!important;place-items:center;flex-shrink:0;font-size:14px}
.shared{background:var(--goldbg);border-radius:14px;padding:11px 13px;margin-top:10px;display:flex;flex-direction:column;gap:3px;font-size:13px;color:#4A5168;line-height:1.4}
.shared b{color:var(--navy);font-size:13.5px}

/* library */
.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 12px;color:var(--muted)}
.search svg{width:18px;height:18px;flex-shrink:0}
.search input{border:0;outline:0;flex:1;padding:12px 0;font-size:16px;background:transparent;min-width:0}
.lib-list{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.tzcard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 14px;display:flex;flex-direction:column;gap:2px;position:relative}
.tz-he{font-size:20px;color:var(--gold);line-height:1.25;text-align:left}
.tz-he.big{font-size:32px;text-align:center;margin-top:4px}
.tz-en{font-family:var(--serif);font-size:17px;font-weight:600;color:var(--navy);line-height:1.25}
.tz-sub{font-size:12px;color:var(--muted)}
.tz-date{font-size:12.5px;color:#4A5168;margin-top:6px}
.tz-date b{color:var(--navy)}
.unsure{color:var(--gold);font-style:normal;margin-left:1px}
.tz-on{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--green)}
.tz-on svg{width:13px;height:13px}
.tz-head{text-align:center}
.tz-yz{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:14px}
.tz-yz>div{background:var(--goldbg);border-radius:14px;padding:10px 12px}
.tz-yz span{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--gold)}
.tz-yz b{display:block;font-family:var(--serif);font-size:17px;color:var(--navy);font-weight:600;margin-top:2px}
.tz-yz small{font-size:11.5px;color:var(--muted)}
.tz-note{font-size:12.5px;color:#4A5168;margin-top:10px;line-height:1.45}
.tz-note.warn{background:#FFF8EA;border:1px solid var(--gold2);border-radius:10px;padding:8px 10px}
.story{font-family:var(--serif);font-size:16.5px;line-height:1.6;color:#2B3450;margin:14px 2px 6px}
.src{display:block;text-align:center;font-size:12px;margin-top:12px}

/* premium */
.prem-hero{text-align:center;background:linear-gradient(160deg,#22304F,#1A2540);color:#fff;border-radius:22px;padding:22px 18px}
.ph-crown{width:50px;height:50px;border-radius:50%;background:rgba(240,217,166,.15);color:#F0D9A6;display:grid;place-items:center;margin:0 auto 10px}
.ph-crown svg{width:26px;height:26px}
.prem-hero h2{font-family:var(--serif);font-size:21px;font-weight:600;line-height:1.25}
.prem-hero p{font-size:13.5px;color:#C8CDDA;margin-top:6px}
.plans{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.plan{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;position:relative}
.plan.gold{border:2px solid var(--gold-l);background:#FFFDF8}
.best{position:absolute;top:-11px;right:14px;background:var(--gold-l);color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px}
.plan h3{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.plan.gold h3{color:var(--gold)}
.price{font-family:var(--serif);font-size:30px;font-weight:600;color:var(--navy);margin-top:2px}
.price small{font-size:14px;color:var(--muted);font-family:"Inter",sans-serif;font-weight:500}
.alt{font-size:13px;color:var(--green);font-weight:600}
.plan ul{list-style:none;margin-top:10px;display:flex;flex-direction:column;gap:8px}
.plan li{display:flex;gap:9px;font-size:14px;line-height:1.35;color:#3A4259}
.plan li svg{width:16px;height:16px;color:var(--gold-l);flex-shrink:0;margin-top:2px}
.sample-prices{text-align:center;font-size:11.5px;font-weight:700;color:var(--gold);margin-top:10px;text-transform:uppercase;letter-spacing:.06em}
.join-row{margin-top:2px}

/* settings, city */
.clist{display:flex;flex-direction:column;margin-top:8px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 14px}
.crow{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-top:1px solid #F3EEE5;font-size:15px;color:var(--navy);font-weight:500}
.clist .crow:first-child{border-top:0}
.crow svg{width:18px;height:18px;color:var(--gold-l)}
.crow.on{font-weight:700}
.sheet-body>.crow{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.crow b{color:var(--muted);font-weight:500}
.about{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-top:10px}
.about h3{font-size:14px;color:var(--navy);margin-bottom:4px}
.about p{font-size:13px;color:#4A5168;line-height:1.5;margin-top:4px}
.vote .btn{margin-top:8px}

/* welcome */
.welcome{text-align:center;padding-bottom:4px}
.w-logo{width:64px;height:64px;border-radius:18px;background:var(--navy);color:#E3C27E;font-family:var(--heb);font-size:40px;display:grid;place-items:center;margin:6px auto 10px;box-shadow:inset 0 0 0 2px rgba(180,135,58,.6)}
.welcome h2{font-family:var(--serif);font-size:26px;color:var(--navy);font-weight:600}
.w-sub{font-family:var(--heb);color:var(--gold);font-size:16px;margin-top:2px}
.welcome ul{list-style:none;text-align:left;margin:16px 0 12px;display:flex;flex-direction:column;gap:10px}
.welcome li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.4;color:#3A4259}
.welcome li span:first-child{font-size:20px;width:28px;flex-shrink:0;text-align:center}

/* desktop */
.desk{display:none}
.noscript{padding:40px 20px;text-align:center}
@media (min-width:900px){
  /* on a computer: the full app, with the menu on the left and the page centred */
  body{background:#EFE9DE;overflow:hidden}
  .desk{display:none}
  .app{max-width:none;width:100%;height:100vh;margin:0;flex-direction:row;border-radius:0;border:0;box-shadow:none}
  .tabs{order:-1;flex-direction:column;justify-content:flex-start;gap:4px;width:220px;flex-shrink:0;border-top:0;border-right:1px solid var(--line);padding:22px 12px;background:#fff}
  .tabs:before{content:"Ledor · לדור ודור";font-family:var(--serif);font-size:22px;font-weight:600;color:var(--navy);padding:6px 12px 18px}
  .tabs button{flex-direction:row;justify-content:flex-start;gap:12px;font-size:15px;min-width:0;padding:11px 12px;color:#6B7080}
  .tabs button:hover{background:#F5F1E8}
  .tabs button.on{background:#EEF2FA}
  .main{padding:28px max(36px,calc((100% - 880px)/2)) 40px;font-size:15px}
  .demo-badge{left:auto;right:24px;transform:none}
  .sheet{left:50%;right:auto;width:620px;margin-left:-310px;max-height:90%}
  .toast{max-width:520px}
  .sides{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
  .sides .fside{margin:0}
  .app .tabs button{flex:0 0 auto}
  .gen-grid.pairg,.gen-grid{gap:10px}
  .top h1{font-size:34px}
  .pname{font-size:15px}
}
@media (max-width:360px){ .top h1{font-size:26px} .pill-prem span{display:none} .pill-prem{padding:0 10px} }
@media (prefers-reduced-motion:reduce){ .sheet,.sheet-bg,.toast{transition:none} }
.tzcard .tz-he{direction:rtl;text-align:right;align-self:stretch}
.tz-on{position:static;margin-top:6px}
@media (min-width:900px){.desk .desk-he{font-size:24px;margin-top:2px}}

/* kever / cemetery */
.kv{margin-top:12px}
.kv-h{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:0 2px 6px}
.kv .s-line{text-align:left}
.kv .s-line.addr{background:#fff;padding:11px 12px;border-radius:14px}
.s-line em{font-style:normal;color:#4A5168;font-size:12.5px}
.s-line.kv-unknown{background:#FBF8F2;border:1px dashed #D8CFBE;border-radius:14px;padding:11px 12px}
.kv-add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:12px;padding:11px;border:1.5px dashed #D8CFBE;border-radius:14px;color:var(--gold);font-weight:600;font-size:13.5px;background:transparent}
.kv-add svg{width:17px;height:17px}
.kv-in{margin-top:6px;display:flex;flex-direction:column;gap:10px}
.rsub.kvs{display:flex;align-items:center;gap:4px}
.rsub.kvs svg{width:13px;height:13px;color:var(--gold-l);flex-shrink:0}
#yzIn .kv-in{margin-top:14px}

/* year of passing */
.yline{font-size:13.5px;color:#4A5168;margin:6px 0 0;line-height:1.4}
.yline b{color:var(--gold);font-weight:700}
.yline .ynote{font-size:11.5px;color:var(--muted)}
.muted-y{color:var(--muted);font-size:12.5px}
.yr .fl-row{flex-wrap:wrap;row-gap:2px}
.yr-out{font-size:12.5px;line-height:1.5;margin:-4px 2px 10px;color:#4A5168}
.yr-out:empty{display:none}
.yr-out.ok{background:var(--greenbg);border-radius:10px;padding:8px 10px}
.yr-out.err{color:var(--red);font-weight:600}
.yr-out small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.facts .link{padding:0;font-size:13.5px}
/* detail tabs */
.dtabs{margin:12px 0 4px;position:sticky;top:-12px;z-index:2;box-shadow:0 0 0 6px var(--cream)}
.dtabs button i{font-style:normal;display:inline-block;min-width:18px;padding:0 5px;margin-left:3px;border-radius:9px;background:var(--goldbg);color:var(--gold);font-size:11px;font-weight:700;line-height:17px}
.dpane{padding-top:2px}
/* photos */
.pg{margin-top:12px}
.pg-h{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);margin:14px 2px 7px}
.pg-h small{display:block;text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted);font-size:11.5px;margin-top:2px}
.pg .pg-h{margin-top:0}
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ptile{display:flex;flex-direction:column;gap:4px;text-align:left;min-width:0}
.pimg{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#EFE9DE;border:1px solid var(--line)}
.pimg img{width:100%;height:100%;object-fit:cover;display:block}
.pcap{font-size:11px;line-height:1.3;color:#4A5168;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.padd .pimg{background:transparent;border:1.5px dashed #D8CFBE;color:var(--gold);flex-direction:column;gap:2px}
.padd svg{width:22px;height:22px}
.padd em{font-style:normal;font-size:12px;font-weight:650}
.sbadge{position:absolute;left:5px;top:5px;background:rgba(30,42,69,.78);color:#fff;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;padding:2px 5px}
.sbadge.in{position:static;vertical-align:middle;background:rgba(255,255,255,.18)}
.ph-note{margin-top:8px}
.ph-pick{display:block;cursor:pointer}
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.ph-prev{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:150px;border:1.5px dashed #D8CFBE;border-radius:16px;color:var(--gold);background:#fff;text-align:center;padding:12px;margin-bottom:12px;overflow:hidden}
.ph-prev svg{width:28px;height:28px}
.ph-prev b{font-size:14.5px;color:var(--navy)}
.ph-prev small{font-size:12px;color:var(--muted)}
.ph-prev.has{padding:0;border-style:solid;border-color:var(--line)}
.ph-prev img{display:block;width:100%;max-height:260px;object-fit:contain;background:#F3EFE7}
/* lightbox */
.lb{position:absolute;inset:0;z-index:80;background:rgba(12,16,28,.94);display:flex;flex-direction:column;opacity:0;transition:opacity .2s}
.lb.open{opacity:1}
.lb-stage{flex:1;display:flex;align-items:center;justify-content:center;padding:calc(56px + var(--safe-t)) 10px 8px;min-height:0}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.lb-x{position:absolute;right:12px;top:calc(12px + var(--safe-t));width:40px;height:40px;border-radius:20px;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center}
.lb-x svg{width:20px;height:20px}
.lb-nav{position:absolute;top:45%;width:40px;height:40px;border-radius:20px;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center}
.lb-nav svg{width:22px;height:22px}
.lb-nav.l{left:8px}.lb-nav.r{right:8px}
.lb-cap{color:#fff;padding:10px 18px calc(18px + var(--safe-b));font-size:14px;line-height:1.45}
.lb-k{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#E9D9B8}
.lb-n{float:right;color:rgba(255,255,255,.6);letter-spacing:0}
.lb-cap p{margin:4px 0 0}
.lb-cap small{display:block;color:rgba(255,255,255,.6);font-size:11.5px;margin-top:4px}
.lb-del{margin-top:10px;color:#F1A7A0;font-weight:600;font-size:13px}
/* biography */
.lcard{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none;color:inherit}
.lc-ic{flex:0 0 40px;height:40px;border-radius:10px;background:var(--goldbg);color:var(--gold);display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-weight:700;font-size:20px}
.lc-ic svg{width:20px;height:20px}
.lc-ic.wiki{background:#F1F1EE;color:#222}
.lc-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.lc-m b{font-size:14.5px;color:var(--navy);line-height:1.3}
.lc-m em{font-style:normal;font-size:12.5px;color:#4A5168;line-height:1.35}
.lc-m small{font-size:11.5px;color:var(--muted)}
.lcard .chev{width:18px;height:18px;color:#B8B2A6;flex:0 0 auto}
.lc-row{display:flex;gap:8px;margin:8px 0 2px;flex-wrap:wrap}
.btn.sm{min-height:36px;padding:0 12px;font-size:13px;border-radius:11px}
.bio-h{margin-top:18px}
.bio-text{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 14px;font-family:var(--serif);font-size:15.5px;line-height:1.6;color:#2B3450}
.bio-text p{margin:10px 0}
.bio-in{min-height:150px;line-height:1.5;resize:vertical}
.yr-he{font-family:var(--heb,inherit);font-size:13.5px}

/* update 3: gate code, find information, stories */
.gate{margin-top:8px;background:#FBF8F2;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.gate-top{display:flex;align-items:center;gap:8px}
.gate-ic{font-size:17px;line-height:1}
.gate-t{flex:1;min-width:0;font-size:14px;color:var(--navy)}
.gate-reveal{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}
.gate-code{flex:1;min-width:110px;font:700 22px/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.14em;color:var(--navy);background:#fff;border:1px dashed #D8CFBE;border-radius:10px;padding:7px 10px;text-align:center;word-break:break-all}
.gate-note{font-size:12.5px;color:#5A6072;line-height:1.4;margin:7px 2px 0}
.gate-ed{display:block;margin:6px 2px 0;font-size:12.5px;color:var(--gold);background:none;padding:0}
.sbadge.dark{background:var(--navy);color:#fff}
.hidden.gate-show,.btn.hidden{display:none}
.find-row{display:flex;align-items:center;gap:10px;margin:-2px 0 2px}
.find-row .btn svg{width:16px;height:16px;margin-right:4px}
.find-got{flex:1;font-size:12px;color:var(--muted);line-height:1.35}
.find-got.ok{color:#2F6B45}
.find-got svg{width:13px;height:13px;vertical-align:-2px}
.find-btn{display:flex;align-items:center;gap:11px;width:100%;margin:12px 0 2px;padding:11px 12px;border-radius:14px;background:var(--navy);color:#fff;text-align:left}
.find-btn>svg:first-child{width:21px;height:21px;flex:0 0 auto;color:#F3D9A4}
.find-btn span{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.find-btn b{font-size:15px}
.find-btn small{font-size:12px;opacity:.82;line-height:1.3}
.find-btn .chev{width:18px;height:18px;opacity:.7;flex:0 0 auto}
.find-f{flex-direction:row;align-items:center;gap:8px}
.find-f .fd-s{flex:1;margin:0}
.fd-res{min-height:60px}
.fd-wait{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:13.5px;padding:18px 0}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid #E2D9C8;border-top-color:var(--gold);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.fd-item{display:flex;align-items:center;gap:11px;width:100%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px 10px;margin-bottom:8px;text-align:left}
.fd-item.busy{border-color:var(--gold)}
.fd-item:disabled{opacity:.65}
.fd-item.busy:disabled{opacity:1}
.fd-th{flex:0 0 48px;height:48px;border-radius:10px;overflow:hidden;background:#F1F1EE;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;color:#222}
.fd-th img{width:100%;height:100%;object-fit:cover}
.fd-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fd-m b{font-size:14.5px;color:var(--navy);line-height:1.3}
.fd-m em{font-style:normal;font-size:12.5px;color:#4A5168;line-height:1.35}
.fd-item .chev{width:17px;height:17px;color:#B8B2A6;flex:0 0 auto}
.bio-img{float:right;width:96px;max-height:128px;object-fit:cover;border-radius:10px;margin:12px 0 6px 12px;background:#F1F1EE}
.bio-text[dir="rtl"] .bio-img,.bio-text:dir(rtl) .bio-img{float:left;margin:12px 12px 6px 0}
.bio-text::after{content:"";display:block;clear:both}
.lc-more{display:flex;flex-direction:column;gap:8px}
.st-list{display:flex;flex-direction:column;gap:9px;margin:12px 0 10px}
.st-card{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 13px}
.st-t{font-family:var(--serif);font-size:16px;font-weight:600;color:var(--navy);line-height:1.3}
.st-p{font-size:13.5px;color:#4A5168;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.st-card small{font-size:11.5px;color:var(--gold);font-weight:600}
.st-src{font-size:12.5px;color:#5A6072;line-height:1.5;margin:10px 2px}
.st-view .btn-col{margin-top:8px}
.lib-add{margin:14px 0 4px}
.dtabs button{padding-left:3px;padding-right:3px}
.sheet-x{z-index:5}
.dtabs.stuck{margin-right:40px}
.kvm{margin-top:16px;border-top:1px solid var(--line);padding-top:4px}
.kvm-p{margin-top:8px}
.kvm .find-f input{flex:1;min-width:0}
.find-f{display:flex;flex-direction:row;align-items:center;gap:8px}
.find-f .search{flex:1;min-width:0}
.find-f .btn{flex:0 0 auto}
.kv-link{display:flex;align-items:center;gap:8px;margin-top:8px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--navy);font-size:13.5px;font-weight:600;text-decoration:none}
.kv-link svg{width:16px;height:16px;color:var(--gold);flex:0 0 auto}
.kv-link span{flex:1}
.kvm .find-f input{flex:1;min-width:0;border:1px solid #E2DACB;background:#fff;border-radius:12px;padding:10px 12px;font-size:16px;font-weight:500;appearance:none;-webkit-appearance:none;min-height:44px}

/* v6: tabs fit six; relatives; circles; search; month calendar */
.tabs button{min-width:0;flex:1}
.pcard.me .pbadge.y{align-self:center;background:var(--gold-l);margin:0 0 2px}
.pcard.me .ptown,.pcard.me .pyz{color:#E9D9B8}
.pbadge.a{background:#EFE9DE;color:#8A6A2E}
.pcard.slot.rel{min-height:52px}
.gen.kids .gen-h,.gen.sibs .gen-h,.gen.aunts .gen-h{color:#3F6E8A}
.rels{margin:14px 0 4px;border-top:1px solid var(--line);padding-top:10px}
.rels-r{display:flex;gap:10px;align-items:baseline;padding:4px 0;font-size:13px}
.rels-r>span{width:68px;flex-shrink:0;color:var(--muted);font-weight:600}
.rels-r>div{display:flex;flex-wrap:wrap;gap:6px}
.rchip{border:1px solid var(--line);background:#fff;border-radius:16px;padding:5px 10px;font-size:13px;font-weight:600;color:var(--navy)}
.rel-add{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 4px}
.rel-add .chip{display:inline-flex;align-items:center;gap:4px;color:var(--gold)}
.rel-add .chip svg{width:14px;height:14px}
.cv .c-head .link{margin-top:4px}
.mr-m{flex:1;display:flex;flex-direction:column;min-width:0}
.mr-m small{color:var(--muted);font-size:12px}
.mr-b{width:34px;height:34px;border-radius:10px;color:var(--muted);font-size:16px;display:inline-flex;align-items:center;justify-content:center}
.mr-b svg{width:16px;height:16px}
.mr-b.del{color:var(--red)}
.lc-ic.g{font-weight:800;color:#4285F4;font-size:16px}
.fd-note{font-size:12.5px;color:#8A6A2E;background:var(--goldbg);border-radius:10px;padding:8px 10px;margin:6px 0}
.fd-none{display:flex;flex-direction:column;gap:4px;background:var(--goldbg);border-radius:12px;padding:12px;margin:8px 0;font-size:13px;color:#4A5168}
.fd-none b{color:var(--navy);font-size:14.5px}
.cal-bar{margin-top:10px;display:flex;align-items:center;gap:8px}
.cal-bar .seg{flex:1;margin:2px 0 10px}
.cal{padding:10px 8px 10px;--cal-fs:1;touch-action:pan-x pan-y}
.cal-h{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.cal-h .icon-btn svg{width:22px;height:22px}
.cal-t{text-align:center;display:flex;flex-direction:column;gap:2px}
.cal-t b{font-family:var(--serif);font-size:19px;color:var(--navy);font-weight:600}
.cal-t b [lang=he]{font-family:var(--heb);font-size:22px}
.cal-t small{font-size:12px;color:var(--muted)}
.cal-t small [lang=he]{font-family:var(--heb);font-size:13.5px;color:var(--gold)}
.cal-wd{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:calc(10.5px*var(--cal-fs));font-weight:700;color:var(--muted);margin-bottom:4px}
.cal-wd span{display:flex;flex-direction:column;line-height:1.15}
.cal-wd i{font-style:normal;font-family:var(--heb);font-weight:500;font-size:calc(11px*var(--cal-fs));color:#B0A58E}
.cal-wd .shab{color:var(--gold)}
.cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cd{min-height:calc(70px*var(--cal-fs));border-radius:9px;background:#FBF9F5;border:1px solid #F0EAE0;padding:3px 3px 4px;display:flex;flex-direction:column;align-items:stretch;gap:1px;overflow:hidden;text-align:left;position:relative}
.cd.blank{background:transparent;border-color:transparent}
.cd.shab{background:#F6EDDC;border-color:#EADBBF}
.cd.chag{background:#EAF1F6;border-color:#C9DCE8}
.cd.today{border:2px solid var(--navy);padding:2px 2px 3px}
.cd-top{display:flex;justify-content:space-between;align-items:flex-start}
.cd-n{font-size:calc(15px*var(--cal-fs));font-weight:700;color:var(--navy);line-height:1.1}
.cd-n.he{font-family:var(--heb);font-size:calc(16px*var(--cal-fs))}
.cd.today .cd-n{color:#fff;background:var(--navy);border-radius:8px;padding:0 5px}
.cd-cnd{font-style:normal;font-size:calc(11px*var(--cal-fs));line-height:1}
.cd-s{font-family:var(--heb);font-size:calc(11.5px*var(--cal-fs));color:var(--gold);line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.cd-l{font-family:var(--heb);font-size:calc(10.5px*var(--cal-fs));line-height:1.15;color:#3F6E8A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;font-weight:600}
.cd-l.par{color:#8A6A2E}
.cd-l.chag{color:#1E5A86}
.cd-l.rc{color:#3F7A5A}
.cd-l.yz{color:#fff;background:#7A5AA8;border-radius:5px;padding:0 3px;align-self:flex-end}
.cd-dots{display:flex;gap:2px;margin-top:auto;justify-content:center}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold-l)}
.dot.yahrzeit,.dot.tzaddik{background:#7A5AA8}
.dot.birthday{background:#D9822B}
.dot.anniversary{background:#C2477A}
.dot.simcha{background:var(--green)}
.cal-leg{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;font-size:11px;color:var(--muted);margin-top:8px}
.cal-leg span{display:inline-flex;align-items:center;gap:4px}
.cal-leg .yz-k{font-family:var(--heb);color:#7A5AA8;font-weight:700}
.cal-today{display:flex;flex-direction:column;align-items:center;gap:2px;margin:8px 0 0}
.cday-he{font-family:var(--heb);font-size:26px;color:var(--gold);margin-bottom:2px}
.card.flat{margin-top:10px}
.zrow.yzr span{color:#7A5AA8;font-weight:600}
.zrow b[lang=he]{font-family:var(--heb);font-size:15px}

/* ---- update 5: tiers, search, privacy, yichus print, sign in ---- */
.pill-prem.t-supreme{background:linear-gradient(135deg,#1E2A45,#3A2C12);color:#F6D98E}
.pill-prem.t-free{background:#fff;color:var(--navy);border:1px solid var(--line)}
.top-r{display:flex;align-items:center;gap:6px}
.sbtn{width:100%;margin:12px 0 4px;min-height:46px;text-align:left;font-size:15px;color:var(--muted)}
.sbtn svg{width:19px;height:19px;flex-shrink:0}
.vis-ic{display:inline-block;font-size:12px;margin-left:6px;vertical-align:1px;opacity:.85}
.vis-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0 14px}
.vis-seg label{position:relative;display:block;cursor:pointer}
.vis-seg input{position:absolute;opacity:0;pointer-events:none}
.vis-seg span{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:10px 12px;min-height:64px}
.vis-seg b{font-size:14.5px;color:var(--navy)}
.vis-seg small{font-size:11.5px;color:var(--muted);line-height:1.3}
.vis-seg input:checked+span{border-color:var(--gold-l);background:#FFFBF2;box-shadow:0 0 0 1px var(--gold-l)}
.vis-seg input:focus-visible+span{outline:2.5px solid var(--gold-l);outline-offset:2px}
.sup-badge{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:700;letter-spacing:.03em;color:#7A5A1E;background:linear-gradient(135deg,#F6EDDC,#EED9AE);border:1px solid #E2C88F;border-radius:20px;padding:2px 8px;vertical-align:2px;text-transform:none}
.gen.locked .gen-h{display:flex;align-items:center;gap:8px}
.lock-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;width:100%;background:linear-gradient(180deg,#FFFDF8,#F8F0E0);border:1.5px dashed #DCC48F;border-radius:18px;padding:14px 14px 16px}
.lock-card .ghosts{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:4px}
.lock-card .ghosts i{font-style:normal;min-width:62px;padding:12px 8px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--navy);font-weight:600;font-size:13px;filter:blur(3.5px);opacity:.75}
.lock-card b{font-size:15px;color:var(--navy)}
.lock-card small{font-size:12.5px;color:var(--muted);line-height:1.4;max-width:300px}
.lock-card .btn{min-height:38px;font-size:13.5px;margin-top:4px;padding:0 16px}
.match-banner.teaser{background:linear-gradient(135deg,#FFF8E8,#F6EAD0);border-color:#E2C88F}
.match-banner.teaser .mb-ic{background:#fff;font-size:16px}
.match-banner.teaser b{color:var(--navy)}
.match-banner.teaser small{color:#5A5F70}
.match-banner.teaser .chev{color:var(--gold)}
.match-banner.teaser u{text-decoration:none;font-weight:700;color:#7A5A1E}
.yp-btn{margin:2px 0 10px;font-size:14.5px}
.free-note{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--gold2);border-radius:14px;padding:10px 12px;font-size:13px;line-height:1.4;color:#3A4259;margin-bottom:10px}
.free-note .link{font-size:13px;padding:0;font-weight:700}
.tier-demo{display:flex;flex-direction:column;align-items:center;gap:6px;margin:14px 0 2px;font-size:12px;color:var(--muted);font-weight:600}
.tier-demo .seg{width:100%}
.plan.sup{border:2px solid #2B2F45;background:linear-gradient(180deg,#FFFDF7,#FBF3E2)}
.plan.sup h3{color:#7A5A1E}
.plan.cur{box-shadow:0 0 0 3px rgba(180,135,58,.25)}
.plan .btn{margin-top:14px}
.plan-cur{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:14px;min-height:42px;border-radius:12px;background:var(--greenbg);color:var(--green);font-weight:700;font-size:14px}
.plan-cur svg{width:16px;height:16px}
.upg{text-align:center;padding-bottom:6px}
.upg-ic{width:58px;height:58px;border-radius:18px;margin:4px auto 10px;display:grid;place-items:center;background:linear-gradient(135deg,#1E2A45,#3A2C12);color:#F6D98E}
.upg-ic.p{background:var(--navy)}
.upg-ic svg{width:28px;height:28px}
.upg h2{font-family:var(--serif);font-size:23px;color:var(--navy);font-weight:600;margin:4px 0 8px}
.upg p{font-size:14.5px;line-height:1.45;color:#3A4259;margin-bottom:10px}
.upg ul{list-style:none;text-align:left;display:flex;flex-direction:column;gap:8px;margin:8px 0 14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}
.upg li{display:flex;gap:9px;font-size:14px;line-height:1.35}
.upg li svg{width:16px;height:16px;color:var(--gold-l);flex-shrink:0;margin-top:2px}
.upg .btn{margin-top:8px}
.acct-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.acct-box>div{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:4px}
.danger-t{color:var(--red)!important;margin-top:10px}
/* search */
.sr-res{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.sr-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px}
.sr-tag{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:4px}
.sr-tag .vis-ic{margin-left:2px}
.smp{font-style:normal;background:var(--goldbg);color:var(--gold);border:1px solid var(--gold2);border-radius:6px;padding:1px 5px;font-size:10px}
.sr-he{font-family:var(--heb);font-size:21px;color:var(--navy);margin-top:6px;line-height:1.3}
.sr-en{font-weight:700;font-size:15.5px;color:var(--navy);margin-top:2px}
.sr-sub{font-size:13px;color:var(--muted);margin-top:2px}
.sr-kv{display:flex;gap:6px;font-size:13px;margin-top:8px;color:#3A4259}
.sr-kv svg{width:15px;height:15px;color:var(--gold-l);flex-shrink:0;margin-top:2px}
.sr-kv small{display:block;color:var(--muted)}
.sr-date{margin-top:8px;background:var(--cream);border-radius:12px;padding:8px 10px;font-size:13px;display:flex;flex-direction:column;gap:2px}
.sr-date span{color:var(--muted);font-weight:600}
.sr-date b{font-size:15px;color:var(--navy)}
.sr-date b span{font-family:var(--heb);color:var(--gold);font-weight:600;margin-left:6px}
.sr-date small{color:#3A4259}
.sr-add{margin-top:10px;min-height:40px;font-size:14px}
.sr-ok{display:flex;align-items:center;gap:6px;margin-top:10px;color:var(--green);font-weight:700;font-size:13.5px}
.sr-ok svg{width:15px;height:15px}
/* sign in */
.auth{position:absolute;inset:0;z-index:80;background:radial-gradient(120% 70% at 50% 0%,#FFFDF8,var(--cream));overflow-y:auto;display:flex;align-items:flex-start;justify-content:center;padding:calc(var(--safe-t) + 36px) 22px 30px}
.a-card{width:100%;max-width:380px;text-align:center}
.a-card h1{font-family:var(--serif);font-size:34px;color:var(--navy);font-weight:600}
.a-card .w-sub{font-family:var(--heb);color:var(--gold);font-size:17px;margin:2px 0 18px}
.a-card .seg{margin-bottom:14px}
.a-card .form{text-align:left}
.a-card .link{margin-top:12px;font-size:14px}
.a-h{font-family:var(--serif);font-size:20px;color:var(--navy);margin-bottom:12px}
.a-err{color:var(--red);font-size:13.5px;font-weight:600;margin:-2px 0 10px}
.a-keep{margin-top:10px;color:var(--green);font-weight:600}
.a-note{margin-top:22px;font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:20px;display:inline-block;padding:5px 12px}
/* printable yichus */
.yprint{position:fixed;inset:0;z-index:100;background:#EDE7DC;overflow-y:auto;-webkit-overflow-scrolling:touch}
.yp-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:10px;padding:calc(var(--safe-t) + 10px) 14px 10px;background:rgba(237,231,220,.95);backdrop-filter:blur(8px)}
.yp-bar .btn{min-height:40px;font-size:14px}
.yp-bar .btn svg{width:16px;height:16px}
.ypage{background:#FFFEFA;margin:4px 12px 30px;padding:24px 14px 20px;border:1px solid #D9CBAE;box-shadow:0 6px 24px rgba(0,0,0,.08);font-family:var(--serif);color:#2A2418;position:relative}
.ypage:before{content:"";position:absolute;inset:6px;border:1.5px solid #C9A961;pointer-events:none}
.yp-head{text-align:center;margin-bottom:14px}
.yp-bh{position:absolute;top:12px;right:16px;font-size:12px;color:#7A6640}
.yp-t1{font-family:var(--heb);font-size:30px;color:#6B4E16;font-weight:700;line-height:1.1}
.yp-head h2{font-family:var(--serif);font-weight:600;font-size:19px;color:#2A2418;margin-top:4px}
.yp-sub{font-family:var(--heb);font-size:15px;color:#8A7040;margin-top:2px}
.yp-orn{color:#B4873A;font-size:18px;margin-top:2px}
.yrow h4{text-align:center;font-family:var(--serif);font-weight:600;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#8A7040;margin:6px 0 6px}
.ycells{display:grid;grid-template-columns:repeat(min(var(--n),4),minmax(0,1fr));gap:5px}
.yrow.g0 .ycells,.yrow.kids .ycells{max-width:320px;margin:0 auto}
.yb{border:1px solid #D9C79C;background:#FFFCF3;border-radius:6px;padding:6px 4px;text-align:center;min-height:44px;display:flex;flex-direction:column;justify-content:center;gap:1px;overflow:hidden}
.yb.empty{border-style:dashed;background:transparent;opacity:.5}
.yb.me{border:1.5px solid #B4873A;background:#FFF6DE}
.yb-he{font-family:var(--heb);font-size:14px;font-weight:700;color:#3B2A0A;line-height:1.2}
.yb-en{font-size:11px;color:#3A3226;line-height:1.2;word-break:break-word}
.yb-fam{font-size:10px;color:#7A6A50;font-style:italic}
.yb-yz{font-family:var(--heb);font-size:10.5px;color:#7A5A1E}
.yrow.g4 .yb-en,.yrow.g5 .yb-en,.yrow.g6 .yb-en{font-size:9px}
.yrow.g4 .yb-he,.yrow.g5 .yb-he,.yrow.g6 .yb-he{font-size:11px}
.yjoin{width:1px;height:12px;background:#C9A961;margin:4px auto}
.yp-foot{text-align:center;font-size:10.5px;color:#8A7A5A;margin-top:16px;font-style:italic}
/* yichus tree (illustrated) */
.btn.ta-open{background:linear-gradient(135deg,#EAF2E0,#F6EEDC);border:1px solid #C9D7B4;color:#3E5A2C;font-weight:700;margin-bottom:8px}
.ta-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:2px 0 10px}
.ta-zoom{display:flex;gap:6px}
.ta-zoom .chip{min-width:40px;justify-content:center;font-weight:700}
.ta-wrap{position:relative;border:1px solid #E2D5B8;border-radius:18px;overflow:hidden;background:#FBF6EA}
.ta-scroll{overflow:auto;max-height:76vh;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.ta-canvas{margin:0 auto}
.ta-svg{display:block;width:100%;height:auto}
.ta-svg [data-act]{cursor:pointer}
.ta-n rect{fill:#FFFBF0;stroke:#B98B4E;stroke-width:1.2;filter:drop-shadow(0 1px 1.5px rgba(60,40,10,.25))}
.ta-n.late rect{fill:#F6F0E2}
.ta-n.kid rect{fill:#F3E7D0;stroke:#B98B4E}
.ta-n:hover rect,.ta-n:focus rect{stroke:#6B4E16;stroke-width:2}
.ta-he{font-family:var(--heb);font-weight:700;fill:#3B2A0A;font-size:13px}
.ta-he.big{fill:#FFF6DE}
.ta-en{font-family:var(--sans,Inter,sans-serif);fill:#5C4E38;font-size:9.5px}
.ta-plate>rect:first-child{fill:#5A3B20;stroke:#C9A961;stroke-width:2}
.ta-plate .ta-en{fill:#EBDDBE;font-size:10px}
.ta-amp{font-family:var(--serif);fill:#C9A961;font-size:18px;font-style:italic}
.ta-side{font-family:var(--serif);font-style:italic;font-size:13px;font-weight:600;fill:#6B5330;paint-order:stroke;stroke:#FBF6EA;stroke-width:3px;stroke-linejoin:round}
.ta-bud circle{fill:#FDFBF4;stroke:#6E9A5E;stroke-width:1.4;stroke-dasharray:3 2.5}
.ta-plus{font-size:17px;font-weight:700;fill:#4F7A3E;font-family:var(--sans,sans-serif)}
.ta-bl{font-size:9px;fill:#5F7A4E;font-family:var(--sans,sans-serif);paint-order:stroke;stroke:#FBF6EA;stroke-width:3px}
.ta-bud:hover circle{fill:#fff;stroke-width:2}
.ta-wrap.locked .ta-scroll{filter:blur(3.5px);pointer-events:none;user-select:none;max-height:62vh;overflow:hidden}
.ta-wrap.locked .ta-canvas{width:150%!important;margin-left:-25%;max-width:none}
@media(min-width:900px){.ta-wrap.locked .ta-canvas{width:100%!important;margin-left:0}}
.ta-lock{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:18px;background:rgba(251,246,234,.35)}
.ta-lock-c{background:#fff;border:1px solid #E2C88F;border-radius:18px;padding:18px 16px;max-width:320px;text-align:center;box-shadow:0 10px 30px rgba(60,40,10,.18)}
.ta-lock-c p{font-size:13.5px;color:var(--muted);margin:6px 0 10px;line-height:1.35}
.ta-lock-c .btn{margin-top:6px}
.ta-lk{display:inline-block;font-weight:800;color:#7A5A1E;background:linear-gradient(135deg,#F6EDDC,#EED9AE);border:1px solid #E2C88F;border-radius:20px;padding:4px 12px;font-size:14px}
.ypage.tp>svg{display:block;width:auto;max-width:100%;height:auto;max-height:78vh;margin:4px auto 0}
@media print{
  .ypage.tp{padding:4mm}
  .ypage.tp>svg{max-height:150mm;width:auto;max-width:100%}
  .ypage.tp .yp-head{margin-bottom:4px}
  .ypage.tp .ta-bud{display:none}
}
@media print{
  @page{margin:12mm}
  body.printing{overflow:visible;background:#fff}
  body.printing>*:not(.yprint){display:none!important}
  body.printing .yprint{position:static;background:#fff;overflow:visible}
  .yp-bar{display:none!important}
  .ypage{margin:0;box-shadow:none;border:0;padding:10mm 6mm}
  .yb{break-inside:avoid}
  .ycells{grid-template-columns:repeat(min(var(--n),8),minmax(0,1fr))}
}

.pair-in{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.pair-in label{display:flex;flex-direction:column;gap:3px;min-width:0}
.pair-in small{font-size:11px;color:var(--muted);font-weight:600}
.pair-in small[lang=he]{font-family:var(--heb);font-size:12.5px;text-align:left}
.pair-in input{min-width:0;transition:background .4s}
.pair-in input.autofill{background:#FFF6DE}
.row3{display:grid;grid-template-columns:72px 1fr 104px;gap:8px}
.row3 .fl{min-width:0}
.row3 .narrow,.row3 .narrow2{width:auto}
.row3 input{width:100%}

.focus-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#EAF0FB;border:1px solid #C9D6EE;border-radius:12px;padding:8px 10px;margin:10px 0 4px;font-size:13.5px;color:var(--navy)}
.focus-bar.me{position:static;background:transparent;border-color:transparent;padding:2px 2px;color:var(--muted)}
.focus-bar .fb-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.focus-bar .fb-back{flex-shrink:0;padding:6px 10px;background:var(--navy);border-color:var(--navy);color:#fff}
.pcard.focus{box-shadow:0 0 0 3px #9DB7E6}
.pcard.mine{border-color:var(--navy);border-width:1.5px}
.pcard .pfoc{font-size:10.5px;color:#C9D6EE;font-weight:600;margin-top:2px}
.fb-back2{margin-top:14px}

/* v13: family tree sides: every couple splits into his side and her side */
.gen.parents .gen-grid{margin-bottom:4px}
.tap-hint{color:var(--muted);margin:6px 2px 0}
.sides{margin-top:6px}
.fside{border:1px solid var(--line);border-radius:16px;padding:12px 10px 10px;margin:12px 0;background:#FFFCF6}
.fside-f{border-top:4px solid #3F6E8A}
.fside-m{border-top:4px solid #B0607A}
.side-h{font-family:var(--serif);font-size:19px;font-weight:600;color:var(--navy);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:0 2px 2px}
.side-fam{font-family:var(--heb),var(--serif);font-size:16px;color:var(--gold)}
.side-sub{font-size:12.5px;color:var(--muted);margin:0 2px 8px}
.gen-sub{margin:10px 0 0}
.sub-h{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#3F6E8A;margin:0 2px 6px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fside-m .sub-h{color:#9A4D66}
.sub-h small{text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted);font-size:11.5px}
.gen-sub.locked .sub-h{color:var(--gold)}
.lock-card.mini{padding:12px;gap:4px}
.lock-card.mini .ghosts i{font-size:12px}
.fb-rel{display:block;font-size:11.5px;color:var(--muted);font-weight:500;margin-top:1px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 2px 6px;font-size:13px;color:var(--muted)}
.crumbs .cr{color:#2E5A9C;font-weight:600;padding:4px 6px;border-radius:8px;background:#EEF2FA}
.crumbs b{color:var(--navy);padding:4px 2px}
.cr-s{color:#B9B2A4}
.fl-kids{display:block;font-size:12px;color:#2E5A9C;font-weight:600;margin-top:2px}
button{cursor:pointer}

/* invitations (v20) */
.inv-btn{margin-top:8px}
.inv-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.inv-t{display:flex;flex-direction:column;align-items:center;gap:3px;padding:14px 8px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.inv-t.on,.inv-t:hover{border-color:var(--gold-l);background:var(--goldbg)}
.inv-t .it-i{font-size:26px}.inv-t b{font-size:14.5px}.inv-t [lang=he]{font-size:16px;color:var(--gold)}
.inv-more{border:1px solid var(--line);border-radius:14px;padding:8px 12px;margin:6px 0 12px;background:#fff}
.inv-more summary{font-weight:700;cursor:pointer;padding:4px 0}
#invf textarea{resize:vertical;min-height:58px}
#invf select{width:100%}
.inv-sh{max-width:560px;margin:6px auto 10px;padding:0 12px}.inv-sh p{margin:4px 0 6px;font-size:14px}.inv-sh textarea{width:100%;font:inherit;font-size:13px;padding:10px;border-radius:12px;border:1px solid var(--line)}
.ypage.inv{max-width:560px;margin:6px auto 22px;padding:46px 30px 34px;text-align:center;background:#FBF6EA;color:#3A2E1A}
.ypage.inv:before{inset:8px;border:1px solid #C9A961;outline:3px double #D8BE85;outline-offset:-8px}
.inv .i-orn{display:block;width:150px;height:14px;margin:12px auto;color:#B08D3C}
.inv.ih{font-family:var(--heb);font-size:19px;line-height:1.55}
.icor{position:absolute;font-size:15px;color:#9A7A33;top:20px}.icor.c0{right:26px}.icor.c1{left:26px}.icor.c2,.icor.c3{top:auto;bottom:20px}.icor.c2{right:26px}.icor.c3{left:26px}
.i-top{font-size:15px;color:#9A7A33}
.i-in{font-size:18px}
.i-nm{font-size:30px;font-weight:700;color:#8A6A22;margin-top:10px;line-height:1.3}
.i-mid{font-size:17px;color:#9A7A33;margin:2px 0}
.i-dt{margin-top:14px;font-size:18.5px}
.i-tm{font-size:18px;margin-top:6px}
.i-hall{font-size:22px;font-weight:700;margin-top:10px}
.i-ad{font-size:15px;color:#5A4B30}
.i-sig{display:flex;justify-content:space-around;gap:12px;margin:6px 0 14px}.i-sig>div{flex:1}
.i-sl{font-size:15px;color:#9A7A33}.i-sn{font-size:18px;font-weight:700;line-height:1.35}
.i-gp{font-size:19px;font-weight:700;line-height:1.8}
.inv.ie{font-family:var(--serif);text-transform:uppercase;letter-spacing:.2em;font-size:12.5px;line-height:1.9}
.e-p{font-size:14px;font-weight:600}.e-in{margin-top:12px}
.e-nm{font-size:20px;letter-spacing:.14em;color:#8A6A22;margin-top:12px;line-height:1.5}
.e-dt{font-weight:600}.e-hall{font-size:14.5px;font-weight:600;margin-top:10px}
.inv-ft{margin-bottom:30px}
@media(max-width:420px){.ypage.inv{padding:44px 16px 34px;margin:6px 10px 18px}.i-sn{font-size:16px}.inv.ih{font-size:17px}.i-nm{font-size:26px}.inv.ie{letter-spacing:.14em;font-size:11.5px}.e-nm{font-size:17px}}
@media print{.invp .ypage.inv{margin:0 auto;max-width:150mm;min-height:200mm;padding:22mm 14mm;break-after:page;page-break-after:always;background:#FBF6EA;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .invp .ypage.inv:last-of-type{break-after:auto;page-break-after:auto}.invp .ypage.inv:before{display:block}.inv-ft{display:none}}

.tz-rls{margin:10px 0;display:grid;gap:8px}.tz-rl{background:var(--card);border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:8px 12px}.tz-rl span{display:block;font-size:12px;opacity:.65}.tz-rl b{font-weight:600}

.lib-f{display:flex;gap:8px;margin:8px 0 2px}.lib-f select{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:9px 10px;font-size:14px;background:#fff;color:var(--navy)}
.lib-count{font-size:12px;color:#6B7186;margin:6px 2px}
.tz-links{display:flex;flex-direction:column;gap:8px;margin:12px 0}.tz-she{font-family:var(--he,inherit);font-size:16px}
.today-tz.more{background:#fff}

/* zmanim (v33: reference layout) */
.zm-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 8px}
.zm-nav .icon-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;color:var(--navy)}
.zm-date{text-align:center;display:flex;flex-direction:column;gap:1px}
.zm-date b{font-size:14px;color:var(--navy);font-weight:600}
.zm-date span{font-size:14px;color:var(--gold)}
.zm-back{display:block;margin:-2px auto 8px;font-size:12.5px}
.zm-clock{text-align:center;background:var(--goldbg);border:1px solid var(--gold2);border-radius:12px;padding:10px 8px;font-family:var(--serif);font-size:18px;font-weight:600;color:var(--navy)}
.zm-clock b{font-weight:700}
.zm-warn{text-align:center;font-size:11.5px;color:var(--muted);margin:8px 0 4px}
.zm{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;column-gap:10px;padding:10px 0;border-top:1px solid #F3EEE5;align-items:end}
.zmlist .zm:first-child{border-top:0}
.zm-en,.zm-he{display:contents}
.zm-en b{grid-column:1;grid-row:1;font-size:13.5px;font-weight:700;color:var(--navy);line-height:1.25}
.zm-en small{grid-column:1;grid-row:2;font-size:11.5px;color:var(--muted);line-height:1.3;margin-top:3px}
.zm-he b{grid-column:3;grid-row:1;font-family:var(--heb);font-size:15px;font-weight:700;color:var(--navy);text-align:right;line-height:1.25}
.zm-he small{grid-column:3;grid-row:2;font-family:var(--heb);font-size:13px;color:var(--muted);text-align:right;line-height:1.3;margin-top:3px}
.zm-t{grid-column:2;grid-row:2;font-size:19px;font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center;min-width:88px}
.zm-t small{font-size:12px;font-weight:600;color:#4A5168}
.zm.one{align-items:center}
.zm.one .zm-t{grid-row:1}

/* v34: calendar text size (pinch / Ctrl+wheel / A- A+), swipe month & year, one-time tips */
.cal-fs{display:flex;align-items:center;background:#EFE9DE;border-radius:12px;padding:3px;margin:2px 0 10px;flex:none}
.cal-fs button{min-width:34px;height:32px;border-radius:9px;font-size:13px;font-weight:700;color:var(--navy);padding:0 6px}
.cal-fs button.big{font-size:16px}
.cal-fs button:not(:disabled):active{background:#fff}
.cal-fs button:disabled{opacity:.35}
.cal-fs .cal-fs-v{font-size:11px;font-weight:600;color:#6B6F7C;min-width:40px}
.cal-h .icon-btn.yr{width:30px;height:30px;font-size:17px;font-weight:700;color:var(--muted);border-color:transparent;background:transparent}
.cal-t{flex:1}
.cal-sc{max-height:calc(100dvh - 250px);min-height:200px;overflow-y:auto;overflow-x:hidden;touch-action:none;overscroll-behavior:contain;border-radius:9px}
.cal-g{will-change:transform}
.cal .dot{width:calc(6px*var(--cal-fs));height:calc(6px*var(--cal-fs))}
.cd{padding:calc(3px*var(--cal-fs)) 3px calc(4px*var(--cal-fs))}
.cd.today{padding:calc(3px*var(--cal-fs) - 1px) 2px calc(4px*var(--cal-fs) - 1px)}
.cal.fs-big .cd-s,.cal.fs-big .cd-l{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;overflow:visible}
.cal.fs-big .cd-top{flex-wrap:wrap}
.cal.fs-big .cd.today .cd-n{padding:0 2px}
/* labels (parsha, yom tov, rosh chodesh) grow with the text size but never past what a narrow phone cell can hold without breaking a word */
.cd{container-type:inline-size}
.cd-l{font-size:min(calc(10.5px*var(--cal-fs)), max(13px, 28cqi))}
.cd-n{min-width:0}
.cal-g.in-l{animation:calInL .22s ease-out}.cal-g.in-r{animation:calInR .22s ease-out}
.cal-g.in-u{animation:calInU .26s ease-out}.cal-g.in-d{animation:calInD .26s ease-out}
@keyframes calInL{from{transform:translateX(28%);opacity:.2}to{transform:none;opacity:1}}
@keyframes calInR{from{transform:translateX(-28%);opacity:.2}to{transform:none;opacity:1}}
@keyframes calInU{from{transform:translateY(22%);opacity:.2}to{transform:none;opacity:1}}
@keyframes calInD{from{transform:translateY(-22%);opacity:.2}to{transform:none;opacity:1}}
.cal-hint{background:#fff;border:1px solid var(--gold2);border-radius:16px;padding:12px 14px 12px;margin:0 0 10px;box-shadow:0 4px 14px rgba(27,42,74,.08);transition:opacity .2s,transform .2s}
.cal-hint.bye{opacity:0;transform:translateY(-6px)}
.ch-row{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.ch-ic{flex:none;width:44px;height:44px;border-radius:12px;background:var(--goldbg);color:var(--gold);display:grid;place-items:center}
.ch-ic svg{width:30px;height:30px}
.ch-row p{margin:0;font-size:13.5px;line-height:1.35;color:#3C4150}
.ch-row b{display:block;color:var(--navy);font-size:14.5px;margin-bottom:1px}
.ch-desk{display:none;margin:0 0 8px;font-size:12.5px;color:var(--muted)}
@media (hover:hover) and (pointer:fine){.ch-desk{display:block}}
.ch-ok{width:100%;padding:10px}
@media (prefers-reduced-motion:reduce){.cal-g.in-l,.cal-g.in-r,.cal-g.in-u,.cal-g.in-d{animation:none}.cal-hint{transition:none}}

/* v35: children sorted by age; a note for children with no birth year */
.kids-hint{margin:-2px 2px 12px;color:#6B5B4B;line-height:1.5}
.linkish{background:none;border:0;padding:0;font:inherit;color:#3F6E8A;text-decoration:underline;cursor:pointer}

/* v36: children read right-to-left like Hebrew (oldest top-right) */
.gen.kids .gen-grid{direction:rtl}
.gen.kids .gen-grid>*{direction:ltr}

/* v42: folded family generations */
.foldable>.fold-h{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;padding:12px 12px;margin:0 0 8px;border-radius:12px;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.08);font-size:14px;letter-spacing:.03em;display:flex;align-items:center;gap:8px}
.foldable>.fold-h .fold-n{font-size:11px;font-weight:700;background:rgba(0,0,0,.07);border-radius:10px;padding:1px 8px;color:inherit;letter-spacing:0}
.foldable>.fold-h .fold-ch{margin-left:auto;font-size:22px;line-height:1;transition:transform .2s;transform:rotate(90deg)}
.foldable.folded>.fold-h .fold-ch{transform:rotate(0)}
.foldable.folded>:not(.fold-h){display:none!important}
.foldable.folded{margin-top:8px}
.foldable.folded + .kids-hint{display:none}
.foldable>.fold-h::after,.foldable>.fold-h::before{display:none!important}
.dup-box{background:#FFF6E0;border:1px solid #E8C770;border-radius:12px;padding:10px 12px;margin:6px 0 12px;font-size:14px}.dup-box p{margin:0 0 8px}.dup-btns{display:flex;gap:8px;flex-wrap:wrap}
.ta-lang{display:inline-flex;gap:4px;margin:0 6px}.ta-lang .chip.on{background:var(--gold,#B08A3E);color:#fff}

/* v45 merge */
.dup-ban{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#FFF6E0;border:1px solid #E8C770;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:14px}
.mg-list{margin:6px 0 10px;padding-inline-start:20px}.mg-h{font-size:15px;margin:14px 0 6px}
.mg-q{border:1px solid rgba(0,0,0,.1);border-radius:12px;padding:8px 10px;margin:6px 0}.mg-q label{display:flex;gap:8px;align-items:center;padding:4px 0}.mg-k{font-size:12.5px;color:#7a6a55;margin-bottom:2px}

/* v47: matzeiva pictures box */
.mzbox{margin:12px 0;padding:12px;border:1px solid var(--line,#E6DCC8);border-radius:14px;background:#FBF8F1}
.mz-h{display:flex;align-items:center;gap:8px;font-weight:650;font-size:14px;color:var(--navy);margin-bottom:10px}
.mz-h i{font-style:normal;font-size:11px;background:var(--navy);color:#fff;border-radius:999px;padding:1px 7px}
.mz-h small{margin-left:auto;font-family:var(--heb);font-size:13px;color:var(--muted);font-weight:500}
.mz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}
.mz-t,.mz-add{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;border:0;padding:0;background:#EEE6D6;cursor:pointer}
.mz-t img{width:100%;height:100%;object-fit:cover;display:block}
.mz-t .sbadge{position:absolute;left:4px;bottom:4px}
.mz-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1.5px dashed #C9B999;background:#fff;color:var(--navy);font-size:12px;font-weight:600;text-align:center}
.mz-add svg{width:22px;height:22px}
.mz-add:focus-within{outline:2px solid var(--navy);outline-offset:2px}
.mz-note{margin:8px 0 0;color:var(--muted)}
/* v47: known as (kinui) */
.pka{font-size:11.5px;color:#8A6A2E;font-style:italic;line-height:1.2}
.pcard.me .pka{color:#E9D9B8}
.ka-h{margin:2px 0 4px;font-size:14px;color:#8A6A2E}
.ka-h span{font-size:12px;color:var(--muted)}
.ka-h b{font-weight:650}
.ta-ka{font-family:var(--heb);font-style:italic;fill:#8A6A2E;font-size:9.5px}
.yb-ka{font-size:10px;color:#8A6A2E;font-style:italic;line-height:1.2}
.ka-tip{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-4px 0 10px;padding:9px 11px;border-radius:12px;background:#FFF6DD;border:1px solid #EBD9A6;font-size:13px}
.ka-tip[hidden]{display:none}
.ka-tip span{flex:1 1 180px}

/* v48: import link sheet */
.imp-at{margin:10px 0 6px}
.imp-opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin:6px 0;border:1px solid var(--line);border-radius:12px;background:var(--card);cursor:pointer}
.imp-opt input{margin-top:3px;flex:none;width:18px;height:18px}
.imp-opt span{display:flex;flex-direction:column;gap:2px;min-width:0}
.imp-opt small{color:var(--muted);font-size:12px;line-height:1.35}
.imp-opt:has(input:checked){border-color:var(--navy);box-shadow:0 0 0 1px var(--navy) inset}
.imp-tree{margin:12px 0 4px;padding:10px 12px;border-radius:12px;background:var(--goldbg);font-size:15px;line-height:1.55}
.imp-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}
.imp-row .pka{font-size:12px}
.imp-have{opacity:.6}
.imp-ok{color:var(--green);font-size:11px}
.imp-sum:empty{display:none}

/* v49: hosted family import + matzeiva picture links */
.imp-big{font-size:14px;margin:0 0 4px;color:var(--navy)}
.imp-sp{font-size:13.5px;opacity:.85}
.imp-yz{font-size:11px}
.imp-br{margin:4px 0;border-radius:10px;background:rgba(255,255,255,.55)}
.imp-br>summary{cursor:pointer;padding:6px 8px;list-style-position:inside}
.imp-br .imp-n{display:inline-block;min-width:22px;padding:0 7px;border-radius:9px;background:var(--navy);color:#fff;font-size:11.5px;font-weight:700;text-align:center}
.imp-sub{padding:2px 8px 8px;font-size:14px;max-height:340px;overflow:auto}
.piclinks{margin:12px 0;padding:12px;border:1px solid var(--line,#E6DCC8);border-radius:14px;background:#FBF8F1}
.pl-a{display:flex;align-items:center;gap:8px;margin-top:8px;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--navy);font-size:13.5px;text-decoration:none}
.pl-a svg{width:16px;height:16px;color:var(--gold);flex:0 0 auto}
.pl-a span{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pl-a small{color:var(--muted);font-size:12px;font-weight:400}
.imp-note{font-weight:400;font-size:13px;line-height:1.4}
.src-link{color:var(--navy);text-decoration:underline}

/* v50: whole family going down from a person */
.fd-top .sh-title{margin-bottom:2px}
.fd-bar{display:flex;gap:6px;align-items:center;margin:8px 0}
.fd-bar .fd-sp1{flex:1}
.fd-bar .chip[aria-pressed="true"]{background:var(--navy);color:#fff}
.fd-scroll{overflow:auto;height:62vh;border-radius:14px;background:linear-gradient(#FBF6EA,#F3EBD9);border:1px solid var(--line);-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.fd-svg{display:block}
.fd-l{stroke:#9A7046;stroke-width:2;fill:none;opacity:.7}
.fd-n rect{fill:#fff;stroke:#C9B48A;stroke-width:1.2}
.fd-n.f rect{fill:#FFF8F6;stroke:#D9B3A8}
.fd-n.late rect{fill:#F6F1E6}
.fd-n.focus rect{stroke:var(--gold,#B8892F);stroke-width:3}
.fd-n{cursor:pointer}
.fd-he{font-family:"Frank Ruhl Libre","Frank",serif;fill:#1F2A44;font-weight:700}
.fd-fam{fill:#5A5F6E}
.fd-ka{fill:#8A6A3A;font-style:italic}
.fd-sp{fill:#6E6A63}
.fd-t{cursor:pointer}
.fd-t rect{fill:#1F2A44}
.fd-t.on rect{fill:#8A6A48}
.fd-t text{fill:#fff;font-size:10.5px;font-weight:700}
.fd-hint{margin-top:6px}
.ta-sib{cursor:pointer}
.ta-sib circle{fill:#fff;stroke:#B8892F;stroke-width:1.2}
.ta-sib text{fill:#8A6A3A;font-size:10px;font-weight:700}

/* v51 family tree poster */
.pzv{display:flex;flex-direction:column}
.pz-bar{flex-wrap:wrap;gap:6px}
.pz-modes{display:inline-flex;gap:4px;flex-wrap:wrap}
.pz-modes .chip[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.pz-opts{display:flex;gap:8px 14px;flex-wrap:wrap;align-items:center;padding:4px 14px 6px;font-size:13px;color:var(--muted)}
.pz-opts label{display:inline-flex;gap:6px;align-items:center}
.pz-opts input{font:16px var(--heb);padding:5px 9px;border:1px solid #DCCFB6;border-radius:9px;width:13em;background:#fff;color:var(--ink)}
.pz-page{padding:4px 10px 18px}
.pz-page svg{display:block;width:100%;height:auto;max-height:calc(100vh - 130px);margin:0 auto;border-radius:6px;box-shadow:0 6px 24px rgba(60,40,10,.18)}
.imp-up{font-size:12px;color:#8A6A2E;margin:2px 0}
.imp-clash{color:var(--red)}
@media print{
  .pz-opts{display:none!important}
  .pzv{display:block}
  .pz-page{padding:0}
  .pz-page svg{box-shadow:none;border-radius:0;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 4mm);-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* v54: former family name + find a person on the tree */
.fm-h{color:#7A6A50}
.fm-h b{font-weight:600}
.fm-he{font-size:12px;color:var(--muted)}
.yb-fm{font-size:9.5px;color:#7A6A50;font-style:italic;line-height:1.2}
.fm-row .fl-hint{font-style:normal}
.fp-box{margin:10px 0 8px;position:relative}
.fp-res{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.fp-res:empty{display:none}
.fp-item{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;text-align:start;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);font:inherit;color:inherit;cursor:pointer}
.fp-item:hover,.fp-item:focus-visible{border-color:#C9A35C;background:#FFFBF0}
.fp-n{font-weight:650;font-size:15px}
.fp-item small{flex-basis:100%;color:var(--muted);font-size:12px}
.fp-none{margin:6px 2px}
.imp-find{margin:8px 0 4px}
.imp-find .search input{padding:9px 0;font-size:15px}
@media print{.fp-box{display:none}}

/* v57: 8 tabs. On a phone the bar scrolls sideways when it must (the active tab is kept in view); labels never cut off */
@media (max-width:899px){
  .tabs{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding-left:0;padding-right:0;scroll-padding:0 8px}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{flex:1 0 auto;min-width:44px;min-height:48px;padding:4px 3px;font-size:9.6px;white-space:nowrap;letter-spacing:-.15px}
  .tabs.more-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent)}
  .tabs.more-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 30px);mask-image:linear-gradient(90deg,transparent,#000 30px)}
  .tabs.more-l.more-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent)}
  .tabs button svg{width:23px;height:23px}
  .tabs button span[lang="he"]{font-size:10.5px}
}
.yz-h{font-size:13px;font-weight:700;color:var(--muted);margin:14px 2px 6px;letter-spacing:.02em}
.yz-row .rtitle{font-size:15px}
.yh{display:flex;flex-direction:column;gap:10px;margin:6px 0 14px}
.yh-names h3{font-size:14px;margin:2px 4px 4px}
.yh-names .row svg{width:16px;height:16px;color:#B9BCC6}
.yh-c{display:flex;gap:12px;align-items:center;text-align:start;padding:14px;border-radius:16px;border:1px solid var(--line);width:100%}
.yh-c>span:first-child{font-size:30px}
.yh-c b{display:block;font-size:19px;font-family:var(--serif);color:var(--navy)}
.yh-c small{display:block;color:var(--muted);font-size:12.5px;line-height:1.35}
.yh-c.book{background:#FBF4E4;border-color:#EAD9B3}
.yh-c.kv{background:#EAF2FC;border-color:#CFE0F5}
.yb2 h3{font-size:15px;margin:18px 0 6px;border-bottom:1px solid #E6DCC8;padding-bottom:4px}
.fb-p{padding:5px 0;break-inside:avoid}
.fb-p small{display:inline-block;margin-inline-start:10px;color:#6B6F7C;font-size:12px}
.fb-z{max-width:42vw;font:inherit;padding:6px;border-radius:10px}
.kv-pick{background:#fff;border-radius:14px;padding:12px;margin-bottom:16px}
.kv-pick input.kv-me{width:100%;min-height:44px;font-size:16px;padding:8px;border:1px solid var(--line);border-radius:10px}
.kv-pg{text-align:center;font-family:var(--serif);font-size:22px;line-height:1.8}
.kv-pg .kv-w{font-weight:700}
.fam-list{display:flex;flex-direction:column;gap:6px}
.fam-i{display:flex;align-items:center;gap:8px;text-align:start;width:100%;padding:10px 12px;border:1px solid var(--line);border-inline-start:4px solid #8FB3E0;border-radius:12px;background:#fff}
.fam-i.mine{border-inline-start-color:var(--navy)}
.fam-n{flex:1;min-width:0;display:flex;flex-direction:column}
.fam-n b{font-size:15px}.fam-n span{font-size:12.5px;color:var(--muted)}
.fam-i small{color:var(--muted);font-size:11.5px;max-width:40%;text-align:end}
.fam-t{font-style:normal;font-size:11px;font-weight:700;color:var(--navy);background:#EEF2FA;border-radius:10px;padding:3px 8px}
.fam-late summary{cursor:pointer;list-style:none;padding:6px 0}
.fam-note{margin:14px 4px}
.fam-ct .crow,.fam-ads .fam-ad{display:flex;justify-content:space-between;gap:10px;padding:12px 4px;border-bottom:1px solid var(--line)}
.fam-ads .fam-ad{flex-direction:column;gap:2px;white-space:pre-line}
.fam-prof{padding:12px;margin:10px 0}
.fam-prof h3{font-size:14px;margin:0 0 6px}
@media print{.np{display:none!important}}
.fam-dl{font-size:13.5px;margin:0 0 10px}
.yb2{direction:rtl;text-align:right}
.yb2 .kv-pick{direction:ltr;text-align:left}
.yb2 .yp-foot{text-align:center;direction:ltr}
