@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/rubik-hebrew-400-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/rubik-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/rubik-hebrew-500-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Rubik';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/rubik-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/fredoka-hebrew-400-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/fredoka-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/fredoka-hebrew-500-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/fredoka-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fredoka-hebrew-600-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fredoka-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fredoka-hebrew-700-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fredoka-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playpen Sans Hebrew';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/playpen-sans-hebrew-hebrew-400-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:'Playpen Sans Hebrew';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playpen-sans-hebrew-hebrew-600-normal.woff2) format('woff2');unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
/* Layout idea: a lively family board. A seasonal illustrated hero above a soft calendar card; colour carries meaning (mint = family, pink = personal). */
:root{
  /* Palette: dark ink, forest greens from the logo, sage, warm cream; coral from the logo's calendar rings as the one warm accent */
  --bg:#f7f3e8; --surface:#fffefa; --ink:#18211c; --muted:#58645c; --line:#d8dfd2;
  --accent:#2d6a4f; --accent-ink:#ffffff; --tint:#e5ede2; --deep:#173f32; --sage:#a8bfa3;
  --star:#e0654f; --personal:#c4553f; --family:#2d6a4f; --danger:#b8352a;
  --per-soft:#f8e2db; --fam-soft:#e5ede2;
  --shadow:0 12px 40px rgba(23,63,50,.16); --soft:0 3px 14px rgba(23,63,50,.07);
  --f-display:'Fredoka','Rubik','Arial Hebrew',Arial,sans-serif;
  --f-body:'Rubik','Arial Hebrew','Segoe UI',Arial,sans-serif;
  --f-hand:'Playpen Sans Hebrew','Fredoka','Rubik',sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#111814; --surface:#19231e; --ink:#eef2ea; --muted:#a3b1a5; --line:#2b3a32;
    --accent:#7cc4a0; --accent-ink:#0f1c16; --tint:#20302a; --deep:#173f32; --sage:#a8bfa3;
    --star:#f08a74; --personal:#f08a74; --family:#7cc4a0; --danger:#ff8a80;
    --per-soft:#3d2620; --fam-soft:#1d3329;
    --shadow:0 12px 40px rgba(0,0,0,.6); --soft:0 3px 14px rgba(0,0,0,.35);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#111814; --surface:#19231e; --ink:#eef2ea; --muted:#a3b1a5; --line:#2b3a32;
    --accent:#7cc4a0; --accent-ink:#0f1c16; --tint:#20302a; --deep:#173f32; --sage:#a8bfa3;
    --star:#f08a74; --personal:#f08a74; --family:#7cc4a0; --danger:#ff8a80;
    --per-soft:#3d2620; --fam-soft:#1d3329;
  --shadow:0 12px 40px rgba(0,0,0,.6); --soft:0 3px 14px rgba(0,0,0,.35);
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font:400 16px/1.45 var(--f-body);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:var(--f-display);font-weight:600;margin:0;text-wrap:balance}
.num,.time{font-variant-numeric:tabular-nums}
.ic{display:inline-grid;width:1.3em;height:1.3em;flex:none;vertical-align:-.25em}
.ic svg{width:100%;height:100%;display:block}

/* buttons */
.btn{min-height:46px;padding:0 20px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 6px 16px rgba(45,106,79,.28)}
.btn.danger{color:var(--danger);border-color:var(--danger);background:transparent}
.btn.ghost{background:transparent}
.btn:disabled{opacity:.55}
.icon{width:44px;height:44px;border:0;background:transparent;border-radius:14px;display:grid;place-items:center;font-size:20px;line-height:1}
.icon:active,.btn:active{transform:scale(.97)}

/* seasonal scene */
.s-winter,.s-spring,.s-summer,.s-autumn{background:var(--deep)}
.scene{display:block}
.scene svg{display:block;width:100%;height:auto;overflow:visible}
.spin{transform-origin:165px 30px;animation:spin 50s linear infinite}
.drift{animation:drift 9s ease-in-out infinite}
.fall{animation:fall 5s linear infinite}
.fall.d2{animation-delay:1.7s}.fall.d3{animation-delay:3.1s}
.sway{transform-origin:47px 114px;animation:sway 6s ease-in-out infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes drift{50%{transform:translateX(-12px)}}
@keyframes fall{0%{transform:translateY(-10px);opacity:0}15%{opacity:1}100%{transform:translateY(70px);opacity:0}}
@keyframes sway{50%{transform:rotate(2.5deg)}}

/* login */
#login{height:100%;overflow:auto;display:flex;align-items:center;justify-content:center;padding:calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom))}
.login-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:20px}
.login-hero{border-radius:28px;padding:22px 22px 0;color:#fff;overflow:hidden;box-shadow:var(--shadow)}
.lh{display:flex;align-items:center;gap:14px}
.logo{border-radius:22%;background:#fff;flex:none;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.login-hero h1{font-size:40px;line-height:1.05;font-weight:700}
.login-hero p{margin:6px 0 0;opacity:.92}
.login-hero .scene{width:78%;margin:4px auto -6px}
form{display:flex;flex-direction:column;gap:14px}
label.f,div.f{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:14.5px}
label.f small{font-weight:400;color:var(--muted)}
input[type=text],input[type=tel],input[type=password],input[type=date],input[type=time],select,textarea{
  width:100%;min-height:48px;padding:10px 14px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);font-size:16px;-webkit-appearance:none;appearance:none}
input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:0;box-shadow:0 0 0 3px var(--tint)}
textarea{min-height:150px;resize:vertical;line-height:1.5}
input[type=tel]{direction:ltr;text-align:right}
.err{color:var(--danger);font-size:14px;min-height:20px;margin:0}
.hint{color:var(--muted);font-size:14px;margin:0}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* app shell */
#app{height:100%;display:flex;flex-direction:column}
.top{flex:none;display:flex;align-items:center;gap:4px;padding:calc(6px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left))}
.top h1{flex:1;font-size:22px;padding-inline-start:4px}
.top .icon{background:var(--surface);box-shadow:var(--soft)}
.top #add-btn{background:var(--accent);color:var(--accent-ink)}
.banner{flex:none;margin:4px 16px 0;padding:9px 14px;font-size:13.5px;background:var(--tint);border-radius:12px}
main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px max(16px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
main.with-sheet{padding-bottom:min(52vh,420px)}
.wrap{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:16px}

/* calendar hero */
.hero{position:relative;border-radius:26px;color:#fff;padding:18px 20px 16px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;overflow:hidden;box-shadow:var(--shadow)}
.hero::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.1);top:-110px;inset-inline-start:-60px}
.hero-t{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0}
.hero h2{font-size:clamp(32px,9vw,46px);line-height:1.05;font-weight:700}
.hero h2 span{font-weight:400;opacity:.9}
.hero p{margin:0;opacity:.92;font-size:15px}
.cal-nav{display:flex;align-items:center;gap:6px;margin-top:12px}
.cal-nav button{min-height:42px;min-width:42px;border:0;border-radius:13px;background:rgba(255,255,255,.22);color:#fff;font-weight:500;padding:0 14px;display:grid;place-items:center;font-size:17px}
.cal-nav button.ar{padding:0}
.hero .scene{position:relative;width:48%;max-width:220px;flex:none;margin-bottom:-18px;margin-inline-end:-8px}

/* calendar card */
.cal-card{background:var(--surface);border-radius:24px;padding:12px 8px 8px;box-shadow:var(--soft)}
.dow{display:grid;grid-template-columns:repeat(7,1fr);font-size:12px;color:var(--muted);font-weight:500;padding-bottom:6px;text-align:center}
.dow span:last-child{color:var(--accent)}
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cell{position:relative;min-height:clamp(54px,13.6vw,92px);border:0;background:transparent;padding:6px 2px 4px;display:flex;flex-direction:column;align-items:center;gap:1px;border-radius:14px}
.cell.blank{pointer-events:none}
.cell .num{font:500 clamp(19px,5.2vw,28px)/1 var(--f-display);min-width:1.55em;height:1.55em;display:grid;place-items:center;border-radius:999px}
.cell.sat .num{color:var(--accent)}
.cell.today .num{background:var(--accent);color:var(--accent-ink);box-shadow:0 4px 10px rgba(45,106,79,.32)}
.cell .heb{font-size:10.5px;color:var(--muted);line-height:1.2;white-space:nowrap}
.cell.sel{background:var(--tint);box-shadow:inset 0 0 0 2px var(--accent)}
.cell .st{position:absolute;top:0;inset-inline-end:1px;font-size:12px;filter:drop-shadow(0 0 1.5px var(--surface))}
.st{color:var(--star)}.st.p{color:var(--personal)}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:0 4px}
.legend span{display:inline-flex;align-items:center;gap:5px}
.section-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px}
.section-h h3{font-size:21px}
.section-h .cnt{color:var(--muted);font-size:14px}
.link{border:0;background:none;color:var(--accent);font-weight:500;padding:8px 0;min-height:44px}

/* event rows */
.rows{display:flex;flex-direction:column;gap:10px}
.ev{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;text-align:start;padding:12px;background:var(--surface);border:0;border-radius:18px;min-height:64px;box-shadow:var(--soft)}
.ev-w{display:flex;gap:8px;align-items:stretch}
.ev-w .ev{flex:1;min-width:0}
.nav-a{flex:none;width:56px;border-radius:18px;background:#2d6a4f;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;font-size:12px;font-weight:500;box-shadow:var(--soft)}
.nav-a .ic{font-size:20px}
.quick{display:flex;gap:10px;flex-wrap:wrap}
.quick a{flex:1;text-decoration:none;white-space:nowrap}
.quick a.wz{background:#2d6a4f;border-color:#2d6a4f;color:#fff}
.badge{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:#fff;font-size:21px}
.k0{background:#2d6a4f}.k1{background:#c4553f}.k2{background:#173f32}.k3{background:#b0793a}.k4{background:#4f7d6a}.k5{background:#6f8a52}
.ev .t{font:500 17px/1.25 var(--f-display);overflow-wrap:anywhere}
.meta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:13px;color:var(--muted);margin-top:3px}
.meta .m{display:inline-flex;align-items:center;gap:3px;overflow-wrap:anywhere}
.chip{font-size:12px;font-weight:500;padding:1px 9px;border-radius:999px}
.chip.fam{background:var(--fam-soft);color:var(--family)}
.chip.per{background:var(--per-soft);color:var(--personal)}
.ev .time{display:flex;flex-direction:column;align-items:flex-end;font-size:12.5px;color:var(--muted);line-height:1.3;white-space:nowrap}
.ev .time b{color:var(--ink);font:600 17px var(--f-display)}
.chk{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--family);color:#fff;font-size:11px;margin-top:3px}
.chk .ic{width:13px;height:13px}
.ev.past .badge{filter:grayscale(1);opacity:.5}
.ev.past .t{color:var(--muted)}
.day-h{font:600 17px var(--f-display);margin:10px 4px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.day-h small{font:400 13px var(--f-body);color:var(--muted)}
.day-h.today-h::after{content:"היום";font:500 12px var(--f-body);background:var(--accent);color:var(--accent-ink);padding:2px 10px;border-radius:999px}
.empty{padding:26px 16px;text-align:center;color:var(--muted);background:var(--surface);border-radius:20px;display:flex;flex-direction:column;gap:12px;align-items:center;box-shadow:var(--soft)}
.empty .blob{width:64px;height:64px;border-radius:22px;background:var(--tint);color:var(--accent);display:grid;place-items:center;font-size:30px}
.seg{display:flex;background:var(--surface);border-radius:16px;padding:4px;gap:4px;box-shadow:var(--soft)}
.seg button,.seg label{flex:1;min-height:40px;border:0;background:transparent;border-radius:12px;font-weight:500;display:grid;place-items:center;padding:0 8px;cursor:pointer;text-align:center}
.seg button[aria-pressed=true],.seg input:checked+label{background:var(--accent);color:var(--accent-ink)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg input:focus-visible+label{outline:2.5px solid var(--accent);outline-offset:2px}
.panel .seg{box-shadow:none;border:1.5px solid var(--line)}
.filters{display:flex;flex-direction:column;gap:8px}

/* notes: paper stays paper in both themes */
.board{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px 16px;align-items:start;padding-top:8px}
.note{position:relative;color:#18211c;border-radius:6px 6px 18px 6px;padding:22px 16px 6px;box-shadow:0 8px 18px rgba(23,63,50,.16);display:flex;flex-direction:column;gap:6px;font-family:var(--f-hand)}
.note:nth-child(odd){transform:rotate(-.7deg)}.note:nth-child(even){transform:rotate(.6deg)}
.note::before{content:"";position:absolute;top:-8px;left:50%;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:#c4553f;box-shadow:inset -3px -3px 0 rgba(0,0,0,.18),0 3px 4px rgba(0,0,0,.2)}
.note.c1{background:#f3e3a6}.note.c2{background:#d3e3cf}.note.c3{background:#f5d6cc}.note.c4{background:#dbe6e0}
.note h3{font:600 20px/1.25 var(--f-hand);overflow-wrap:anywhere}
.note ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.note li button{width:100%;min-height:38px;border:0;background:transparent;color:inherit;text-align:start;display:flex;gap:10px;align-items:flex-start;padding:7px 0;overflow-wrap:anywhere}
.note .box{flex:none;width:21px;height:21px;border:2px solid #18211c;border-radius:7px;display:grid;place-items:center;margin-top:2px}
.note .box .ic{width:14px;height:14px}
.note li.done .box{background:#18211c;color:#fff}
.note li.done span.tx{text-decoration:line-through;opacity:.5}
.note .foot{display:flex;justify-content:space-between;align-items:center;font:400 12.5px var(--f-body);color:rgba(24,33,28,.7);border-top:1.5px dashed rgba(24,33,28,.22);margin-top:2px}
.note .link{color:#18211c;text-decoration:underline}
.colors{display:flex;gap:10px}
.colors label{width:46px;height:46px;border-radius:14px;border:3px solid transparent;cursor:pointer}
.colors input{position:absolute;opacity:0}
.colors input:checked+label{border-color:var(--ink)}

/* drawer */
.backdrop{position:fixed;inset:0;background:rgba(16,28,22,.5);opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}
.backdrop.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;bottom:0;right:0;width:min(86vw,330px);background:var(--surface);z-index:21;transform:translateX(105%);transition:transform .24s ease;display:flex;flex-direction:column;gap:6px;padding:calc(14px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 14px;box-shadow:var(--shadow);overflow-y:auto;visibility:hidden;border-radius:28px 0 0 28px}
.drawer.on{transform:none;visibility:visible}
.who{display:flex;align-items:center;gap:12px;padding:14px;border-radius:20px;color:#fff}
.who .av{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.25);display:grid;place-items:center;font:700 22px var(--f-display)}
.who b{font:600 21px var(--f-display);display:block}
.who span{font-size:13.5px;opacity:.92}
.drawer nav{display:flex;flex-direction:column;gap:2px;flex:1}
.drawer nav h4{margin:14px 10px 2px;font:500 12.5px var(--f-body);color:var(--muted)}
.drawer nav button{min-height:50px;border:0;background:transparent;text-align:start;padding:0 8px;border-radius:14px;font-weight:500;font-size:16.5px;display:flex;align-items:center;gap:12px}
.drawer nav button .nb{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#fff;font-size:17px;flex:none}
.drawer nav button[aria-current=page]{background:var(--tint);color:var(--accent)}
.drawer .status{font-size:13px;color:var(--muted);padding:8px 10px}

/* day sheet */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:10;background:var(--surface);border-radius:26px 26px 0 0;box-shadow:0 -10px 40px rgba(23,63,50,.2);max-height:min(56vh,460px);display:flex;flex-direction:column;transform:translateY(105%);transition:transform .24s ease;visibility:hidden}
.sheet.on{transform:none;visibility:visible}
.sheet::before{content:"";width:44px;height:5px;border-radius:9px;background:var(--line);margin:8px auto 0;flex:none}
.sheet-h{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 16px}
.sheet-h div{flex:1}
.sheet-h h3{font-size:20px}
.sheet-h small{color:var(--muted)}
.sheet-h .icon{background:var(--tint)}
.sheet-b{overflow-y:auto;padding:4px 14px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
.sheet .ev,.sheet .nav-a{box-shadow:none}
.sheet .ev{background:var(--bg);box-shadow:none}
.sheet-in{max-width:860px;width:100%;margin:0 auto;display:flex;flex-direction:column;min-height:0}

/* modal */
.modal{position:fixed;inset:0;z-index:30;background:rgba(16,28,22,.55);display:flex;align-items:flex-end;justify-content:center}
.panel{background:var(--bg);width:100%;max-width:560px;max-height:100%;overflow-y:auto;border-radius:28px 28px 0 0;padding:16px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.panel-h{display:flex;align-items:center;justify-content:space-between}
.panel-h h2{font-size:25px}
.panel-h .icon{background:var(--surface)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.actions .btn{flex:1}
@media (min-width:640px){.modal{align-items:center}.panel{border-radius:28px;max-height:92%}}
.ask .panel{max-width:400px}
.ask p{margin:0;font-size:17px}
.ask .actions{flex-direction:column}

.toast{position:fixed;left:50%;top:calc(64px + env(safe-area-inset-top));transform:translate(-50%,-30px);background:var(--ink);color:var(--bg);padding:11px 20px;border-radius:999px;font-weight:500;font-size:15px;opacity:0;transition:.2s;z-index:40;max-width:90vw;text-align:center;pointer-events:none}
.toast.on{opacity:1;transform:translate(-50%,0)}
.toast.bad{background:var(--danger);color:#fff}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* additions for the server version */
.center-hint{text-align:center;padding:10px 0}
.sw1{background:#f3e3a6}.sw2{background:#d3e3cf}.sw3{background:#f5d6cc}.sw4{background:#dbe6e0}
.privacy{font-size:12.5px;color:var(--muted);margin:0;text-align:center}
#splash{height:100%;display:grid;place-items:center}
#splash img{border-radius:22%;box-shadow:var(--shadow)}
