@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+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+2000-206F,U+20AC}
@font-face{font-family:Rubik;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-hebrew-700-normal.woff2) format('woff2');unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/rubik-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
@font-face{font-family:Rubik;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/rubik-hebrew-800-normal.woff2) format('woff2');unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/rubik-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
@font-face{font-family:Heebo;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/heebo-hebrew-400-normal.woff2) format('woff2');unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/heebo-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
@font-face{font-family:Heebo;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/heebo-hebrew-500-normal.woff2) format('woff2');unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/heebo-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
@font-face{font-family:Heebo;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/heebo-hebrew-700-normal.woff2) format('woff2');unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/heebo-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC}
:root {
  --ink: #2347c5; --ink-2: #3a5fd9; --ink-dark: #14224f; --ink-soft: #eaf0ff;
  --mark: #ffd84a; --mark-soft: #fff1b8;
  --paper: #f5efe2; --card: #fffdf7; --line: #e3dac4; --line-2: #d9cfb8; --rule: rgba(217,207,182,.6);
  --text: #1b2033; --muted: #585c69; --chip: #efe8d6;
  --bad: #c0322a; --ok: #0d6b4c;
  --shadow: 0 1px 2px rgba(60,45,10,.06), 0 6px 16px rgba(60,45,10,.09);
  --shadow-up: 0 2px 4px rgba(60,45,10,.08), 0 12px 24px rgba(60,45,10,.14);
  --r: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #e4dcc7; color: var(--text); font-family: Heebo, Arial, sans-serif; font-size: calc(16px * var(--fs, 1)); line-height: 1.5; -webkit-font-smoothing: antialiased; }
/* notebook paper: ruled lines + red margin */
#app { max-width: 560px; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; box-shadow: 0 0 60px rgba(60,45,10,.12);
  background:
    linear-gradient(to left, transparent 0, transparent 13px, rgba(217,142,134,.55) 13px, rgba(217,142,134,.55) 14.5px, transparent 14.5px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 30.5px, var(--rule) 30.5px, var(--rule) 32px),
    var(--paper); }
a { color: var(--ink); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: Rubik, Heebo, sans-serif; margin: 0; color: var(--ink-dark); }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: calc(13px * var(--fs, 1)); }
.center { text-align: center; }
.pad { padding: 24px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex-grow: 1; min-width: 0; }

/* marker highlight */
mark { background: linear-gradient(176deg, transparent 46%, var(--mark) 46%, var(--mark) 94%, transparent 94%); color: inherit; padding: 0 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* top */
.hero { padding: calc(20px + env(safe-area-inset-top)) 30px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--mark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(20,34,79,.18); }
.brand b { font-family: Rubik, sans-serif; font-size: calc(20px * var(--fs, 1)); color: var(--ink-dark); }
.brand span { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.hero h1 { font-weight: 800; font-size: calc(32px * var(--fs, 1)); line-height: 1.2; margin-top: 14px; color: var(--ink-dark); }
.hero p { color: var(--muted); font-size: calc(16px * var(--fs, 1)); }
.acct { margin-inline-start: auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: calc(14px * var(--fs, 1)); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; transition: background .15s, color .15s; }
.acct:hover { background: var(--ink); color: #fff; }
.bar { padding: calc(16px + env(safe-area-inset-top)) 30px 14px 18px; display: flex; align-items: center; gap: 12px; }
.bar h1, .bar h2 { font-size: calc(24px * var(--fs, 1)); line-height: 1.25; font-weight: 800; background: linear-gradient(176deg, transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); align-self: flex-start; padding: 0 4px; border-radius: 3px; display: inline; }
.bar .sub { font-size: calc(13px * var(--fs, 1)); color: var(--muted); margin-top: 4px; }
.bar.light h2 { font-size: calc(22px * var(--fs, 1)); background: none; padding: 0; }
.back { width: 44px; height: 44px; border-radius: 12px; background: var(--card); color: var(--ink-dark); border: 1.5px solid var(--line-2); box-shadow: 0 3px 0 var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: calc(20px * var(--fs, 1)); flex-shrink: 0; transition: transform .1s, box-shadow .1s; }
.back:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-2); }

/* chips */
.section { padding: 14px 30px 4px 20px; display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips .lbl { font-size: calc(13px * var(--fs, 1)); font-weight: 700; color: var(--muted); min-width: 40px; }
.chips.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; background: var(--chip); border: 1px solid var(--line-2); border-radius: 12px; gap: 4px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-size: calc(14px * var(--fs, 1)); font-weight: 500; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chips.grid3 .chip { border: 0; background: transparent; border-radius: 9px; font-size: calc(16px * var(--fs, 1)); font-weight: 700; min-height: 44px; color: var(--muted); }
.chips.grid3 .chip.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips.grid3 .chip.on { color: var(--ink); border-color: transparent; }

/* list */
.list { padding: 12px 30px 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: -1px; width: 5px; border-radius: 0 3px 3px 0; background: var(--mark); }
.list > .card:nth-child(odd) { transform: rotate(-.25deg); }
.list > .card:nth-child(even) { transform: rotate(.2deg); }
a.card:hover { transform: translateY(-2px) rotate(0); box-shadow: var(--shadow-up); }
a.card:active { transform: translateY(0); }
.row { display: flex; align-items: center; gap: 10px; }
.card .name { font-weight: 700; font-size: calc(17px * var(--fs, 1)); flex-grow: 1; line-height: 1.3; color: var(--ink-dark); }
.score { font-family: Rubik, sans-serif; font-weight: 700; font-size: calc(12px * var(--fs, 1)); white-space: nowrap; background: var(--ink-soft); color: var(--ink); padding: 2px 8px; border-radius: 999px; }
.best { font-size: calc(12px * var(--fs, 1)); font-weight: 700; background: var(--ink-soft); color: var(--ink); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: calc(12px * var(--fs, 1)); }
.tag { background: var(--chip); color: #4a4f5e; border-radius: 999px; padding: 3px 10px; }
.tag.wait { background: var(--mark-soft); color: #7a5b00; font-weight: 700; }
.arrow { font-size: calc(20px * var(--fs, 1)); color: var(--ink); transition: transform .15s; }
a.card:hover .arrow { transform: translateX(-4px); }
.empty { padding: 36px 12px; text-align: center; color: var(--muted); background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--r); }

/* buttons (tactile, hard shadow like the splash) */
.foot { padding: 14px 30px calc(24px + env(safe-area-inset-bottom)) 20px; position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 62%, rgba(245,239,226,0)); }
.btn { width: 100%; min-height: 56px; border-radius: 16px; border: 0; font-family: Rubik, Heebo, sans-serif; font-size: calc(18px * var(--fs, 1)); font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:active { transform: translateY(4px); }
.btn.blue { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--ink-dark); }
.btn.blue:active { box-shadow: 0 0 0 var(--ink-dark); }
.btn.yellow { background: var(--mark); color: var(--ink-dark); box-shadow: 0 4px 0 #c9a21a; }
.btn.yellow:active { box-shadow: 0 0 0 #c9a21a; }
.btn.google { background: var(--card); color: var(--text); border: 1.5px solid var(--line-2); gap: 12px; box-shadow: 0 4px 0 var(--line-2); font-family: Heebo, sans-serif; }
.btn.google:active { box-shadow: 0 0 0 var(--line-2); }
.btn.outline { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 4px 0 rgba(35,71,197,.25); }
.btn.ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--line-2); min-height: 46px; font-size: calc(15px * var(--fs, 1)); font-weight: 700; font-family: Heebo, sans-serif; box-shadow: 0 3px 0 var(--line-2); }
.btn.ghost:active { transform: translateY(3px); box-shadow: none; }
.btn.danger { background: var(--card); color: var(--bad); border: 1.5px solid #ecc2bd; min-height: 46px; font-size: calc(15px * var(--fs, 1)); font-weight: 700; font-family: Heebo, sans-serif; }
.btn.danger:hover { background: #fff5f4; }
.btn.wa { background: #0b7a3b; color: #fff; gap: 10px; box-shadow: 0 4px 0 #075a2b; }
.btn.wa:active { box-shadow: 0 0 0 #075a2b; }
.acts { padding-bottom: 18px; }
.mystats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mystats > div { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.mystats .big { font-family: Rubik, sans-serif; font-weight: 800; font-size: calc(30px * var(--fs, 1)); color: var(--ink-dark); line-height: 1.1; }
.field textarea { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 16px; font: inherit; font-size: calc(16px * var(--fs, 1)); background: var(--card); width: 100%; resize: vertical; min-height: 110px; transition: border-color .15s, box-shadow .15s; }
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(35,71,197,.14); outline: none; }
.bul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.bul li { line-height: 1.55; }
.home-h { margin: 18px 30px 0 20px; }
.list.mini { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
.list.mini .card { padding: 12px 16px; gap: 4px; }
.toplist { margin: 8px 30px 0 20px; padding: 6px 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); list-style: none; counter-reset: top; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); counter-increment: top; font-weight: 700; color: var(--ink-dark); }
.toplist li:last-child { border-bottom: 0; }
.toplist li::before { content: counter(top); width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--ink-dark); display: inline-flex; align-items: center; justify-content: center; font-size: calc(13px * var(--fs, 1)); flex-shrink: 0; }
.home-note { margin: 6px 30px 0 20px; }
.btn:disabled { background: #e6e0d0; color: var(--muted); cursor: default; box-shadow: none; transform: none; }
.btns2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* summary */
.body { padding: 8px 30px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
form.body { padding-top: 0; }
.big { font-family: Rubik, sans-serif; font-weight: 800; font-size: calc(44px * var(--fs, 1)); line-height: 1; color: var(--ink); }
.box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.note { background: var(--mark-soft); border-radius: 8px; padding: 12px 16px; font-size: calc(14px * var(--fs, 1)); color: #6b5200; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lab { font-weight: 700; font-size: calc(15px * var(--fs, 1)); }
.field input[type=text], .field input:not([type]), .field input[type=email], .field input[type=number], .field select { height: 50px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 16px; font-size: calc(16px * var(--fs, 1)); background: var(--card); width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(35,71,197,.14); outline: none; }
.chip:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid #8aa2ec; outline-offset: 2px; }
.file { min-height: 96px; border: 2px dashed var(--ink-2); border-radius: var(--r); background: var(--card); color: var(--ink); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 14px; text-align: center; transition: background .15s; }
.file:hover { background: var(--ink-soft); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: calc(14px * var(--fs, 1)); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.err { color: var(--bad); font-size: calc(14px * var(--fs, 1)); font-weight: 700; }
.code { letter-spacing: 6px; text-align: center; font-family: Rubik, sans-serif; font-size: calc(22px * var(--fs, 1)) !important; }

.done { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.done .ok { width: 100px; height: 100px; border-radius: 50%; background: var(--mark); display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink-dark); transform: rotate(-8deg); box-shadow: 0 5px 0 rgba(20,34,79,.25); }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink-dark); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: calc(15px * var(--fs, 1)); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#toast.show { opacity: 1; }

/* splash */
.splash { position: relative; flex-grow: 1; display: flex; flex-direction: column; padding: calc(56px + env(safe-area-inset-top)) 30px calc(24px + env(safe-area-inset-bottom)) 24px; overflow: hidden; }
.splash .tagp { align-self: flex-start; font-size: calc(13px * var(--fs, 1)); font-weight: 500; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px; }
.splash h1 { font-family: Rubik, sans-serif; font-weight: 800; font-size: calc(68px * var(--fs, 1)); line-height: 1.15; margin-top: 30px; color: var(--ink-dark); align-self: flex-start; }
.splash h1 mark { padding: 0 8px; transform: rotate(-1.5deg); display: inline-block; background: linear-gradient(180deg, transparent 50%, var(--mark) 50%, var(--mark) 90%, transparent 90%); }
.splash .lead { font-weight: 700; font-size: calc(24px * var(--fs, 1)); line-height: 1.35; margin-top: 14px; color: #232736; }
.splash .sub2 { color: var(--muted); margin-top: 8px; }
.stackbox { position: relative; height: 300px; margin: 26px auto 0; width: 250px; flex-shrink: 0; }
.paper { position: absolute; inset: 0 auto auto 0; width: 250px; height: 280px; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 6px 14px rgba(60,45,10,.15); }
.paper.p3 { transform: rotate(6deg) translate(6px,-4px); }
.paper.p2 { transform: rotate(-4deg); }
.paper.p1 { transform: rotate(1.5deg) translateY(6px); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; box-shadow: 0 8px 18px rgba(60,45,10,.2); }
.paper .ch { font-family: Rubik, sans-serif; font-weight: 500; font-size: calc(12px * var(--fs, 1)); color: var(--ink); background: var(--ink-soft); border-radius: 999px; padding: 4px 10px; }
.paper .tt { font-weight: 700; font-size: calc(18px * var(--fs, 1)); line-height: 1.4; color: var(--ink-dark); }
.paper i { display: block; height: 10px; border-radius: 5px; background: #e6dfcf; }
.paper i.hl { background: var(--mark); }
.stamp { position: absolute; top: -34px; left: -30px; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); transform: rotate(12deg); display: flex; align-items: center; justify-content: center; font-family: Rubik, sans-serif; font-weight: 800; font-size: calc(26px * var(--fs, 1)); color: var(--ink); z-index: 3; }
.stamp::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1.2px solid var(--ink); }
.splash .btn { margin-top: auto; }
.splash .made { text-align: center; font-size: calc(13px * var(--fs, 1)); color: var(--muted); margin-top: 18px; }
.splash .stackwrap { margin-top: 26px; margin-bottom: 26px; }

/* topic groups, eye icon, ratings */
.ghead { font-size: calc(15px * var(--fs, 1)); font-weight: 700; color: var(--ink-dark); margin-top: 10px; align-self: flex-start; padding: 0 4px; background: linear-gradient(176deg, transparent 58%, var(--mark-soft) 58%, var(--mark-soft) 94%, transparent 94%); }
.list > .ghead:first-of-type { margin-top: 2px; }
.eye { vertical-align: -1px; margin-inline-end: 3px; }
.stars-adm { font-family: Rubik, sans-serif; font-weight: 700; font-size: calc(13px * var(--fs, 1)); white-space: nowrap; color: #7a5b00; background: var(--mark-soft); padding: 4px 9px; border-radius: 999px; }
.stars { display: flex; gap: 6px; }
.star { width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); color: #d6ccb2; font-size: calc(26px * var(--fs, 1)); line-height: 1; cursor: pointer; transition: color .1s, transform .1s; }
.star.on { color: #e8b400; border-color: #e8c34a; background: var(--mark-soft); }
.star:active { transform: scale(.92); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* --- launch additions --- */
[hidden] { display: none !important; }
.search { padding: 4px 20px 0; }
.search input { width: 100%; height: 54px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 18px; font-size: calc(16px * var(--fs, 1)); background: var(--card); box-shadow: 0 3px 0 var(--line-2); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(35,71,197,.14); outline: none; }
.search input::placeholder { color: var(--muted); }
.foot { text-align: center; padding: 8px 20px 34px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.foot a, .linkbtn { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 8px 0; font-size: calc(13px * var(--fs, 1)); cursor: pointer; color: var(--muted); }
.reportbox { display: flex; flex-direction: column; gap: 10px; }

/* --- accessibility --- */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
#app:focus { outline: none; }
.skip { position: fixed; top: 8px; right: 8px; z-index: 10001; background: var(--ink-dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; transform: translateY(-200%); }
.skip:focus { transform: none; outline: 3px solid var(--mark); }
.a11y-fab { position: fixed; left: 12px; bottom: 14px; z-index: 10000; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--ink-dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); padding: 0; }
.a11y-panel { position: fixed; left: 12px; bottom: 76px; z-index: 10000; width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 100px); overflow: auto; background: #fff; color: #1b2033; border: 2px solid var(--ink-dark); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.a11y-panel[hidden] { display: none !important; }
.a11y-panel h2 { font-size: 18px; margin: 0 0 2px; }
.a11y-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button { min-height: 44px; border-radius: 10px; border: 2px solid #1b2033; background: #fff; color: #1b2033; font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 10px; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink-dark); color: #fff; }
.a11y-panel .lvl { text-align: center; font-weight: 700; font-size: 14px; }
.a11y-panel a { color: var(--ink); text-decoration: underline; font-size: 14px; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .btn { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-focus :focus-visible { outline: 5px solid #000 !important; outline-offset: 3px; box-shadow: 0 0 0 8px #ffe600 !important; }
html.a11y-contrast { --paper: #fff; --card: #fff; --text: #000; --muted: #1a1a1a; --ink: #0016a8; --ink-2: #0016a8; --ink-dark: #000; --ink-soft: #fff; --line: #000; --line-2: #000; --chip: #fff; --rule: transparent; --mark: #ffe600; --mark-soft: #ffe600; --bad: #a00000; --ok: #005a00; --shadow: none; --shadow-up: none; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast #app { background: #fff !important; box-shadow: none; }
html.a11y-contrast .card, html.a11y-contrast .chip, html.a11y-contrast .btn.ghost, html.a11y-contrast .btn.danger, html.a11y-contrast .btn.google, html.a11y-contrast .box, html.a11y-contrast .tag, html.a11y-contrast .score, html.a11y-contrast .best, html.a11y-contrast .star, html.a11y-contrast .back, html.a11y-contrast .acct, html.a11y-contrast .search input, html.a11y-contrast .field input, html.a11y-contrast .field select, html.a11y-contrast .field textarea, html.a11y-contrast .mystats > div, html.a11y-contrast .toplist { border: 2px solid #000 !important; box-shadow: none !important; }
html.a11y-contrast .card { transform: none !important; }
html.a11y-contrast .chip.on, html.a11y-contrast .btn.blue, html.a11y-contrast .btn.wa { background: #000 !important; color: #fff !important; }
html.a11y-contrast .muted, html.a11y-contrast .sub, html.a11y-contrast .small { color: #1a1a1a !important; }
html.a11y-contrast a { text-decoration: underline; }
#app { padding-bottom: 72px; }

/* אזור אישי */
.profile { display: flex; align-items: center; gap: 14px; padding: 6px 2px 2px; }
.profile .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--mark); color: var(--ink-dark); font: 800 24px Rubik, sans-serif; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 0 rgba(20,34,79,.18); }
.profile .pname { display: block; font-family: Rubik, Heebo, sans-serif; font-size: calc(20px * var(--fs, 1)); color: var(--ink-dark); overflow-wrap: anywhere; }
.profile .small { overflow-wrap: anywhere; }
.menu { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: start; font: inherit; cursor: pointer; width: 100%; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--ink-soft); }
.mrow:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.mico { width: 40px; height: 40px; border-radius: 12px; background: var(--ink-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mtxt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.mtxt b { color: var(--ink-dark); font-size: calc(16px * var(--fs, 1)); }
.mrow .arrow { color: var(--muted); }
.personal .ghead { margin-top: 10px; }
fieldset.kinds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.kinds legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.kind { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); cursor: pointer; }
.kind input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.kind:has(input:checked) { border-color: var(--ink); background: var(--ink-soft); }
.kind:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.pcard { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.ptag { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--ink-soft); color: var(--ink); font-size: calc(12px * var(--fs, 1)); font-weight: 700; }
.pcard .grow { display: flex; flex-direction: column; align-items: flex-start; }
.statcard { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.statcard h2 { font-size: calc(18px * var(--fs, 1)); }
.statcard .mystats > div { box-shadow: none; background: var(--paper); }
.link-go { font-weight: 700; color: var(--ink); min-height: 36px; display: inline-flex; align-items: center; }
.promo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--mark-soft); border: 1.5px solid var(--mark); box-shadow: var(--shadow); }
.promo b { color: var(--ink-dark); }
.promo-ico { background: var(--mark); color: var(--ink-dark); }
.pill { min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; flex-shrink: 0; }
.mrow .arrow { font-size: 18px; }
html.a11y-contrast .pcard, html.a11y-contrast .statcard, html.a11y-contrast .promo { border: 2px solid #000 !important; box-shadow: none !important; }
.vchart { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; direction: ltr; }
.vbar { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 3px; }
.vbar:last-child { background: var(--mark); box-shadow: inset 0 0 0 1.5px var(--ink-dark); }
.vtable { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs, 1)); }
.vtable td { padding: 5px 2px; border-bottom: 1px solid var(--line); }
.vtable td:last-child { text-align: end; }
.disclaim { margin-top: 8px; text-align: center; }
.pglist { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.pgrow { display: flex; align-items: center; gap: 8px; padding: 4px; border-bottom: 1px solid var(--line); }
.pgrow:last-child { border-bottom: 0; }
.pgnum { width: 26px; height: 26px; border-radius: 50%; background: var(--mark); color: var(--ink-dark); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pgrow img { width: 56px; height: 56px; object-fit: contain; transition: transform .2s; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; flex-shrink: 0; }
.pgname { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: end; }
.pgbtn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-dark); font-size: 18px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.pgbtn:disabled { opacity: .3; cursor: default; }
.pgbtn:not(:disabled):hover { border-color: var(--ink); }
