@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/rubik-hebrew.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 700; font-display: swap;
  src: url("fonts/rubik-latin.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; }

/* Layout: שלושה טלפונים כהים זה לצד זה, מימין לשמאל. כיוון מהרפרנס האחרון של זיו:
   רקע כהה, כרטיסי פסטל גדולים, כפתורי pill, ליים לפעולה ולמצב "נכון".
   צבע פסטל = המדינה. ליים = חלופה בטוחה. קורל = אזהרה. סכנה גם כתובה במילים, לא רק בצבע. */
:root {
  --page: #141414;
  --bg: #141414;
  --surface: #1E1E1E;
  --surface2: #2E2E2E;
  --line: #3F3F3F;
  --edge: #707070;
  --text: #FFFFFF;
  --muted: #BDBDB5;
  --ink: #141414;
  --lime: #DDF59A;
  --mx: #F9BFD4;
  --ar: #F7DE8B;
  --pa: #9FE3E8;
  --br: #C9BFF5;
  --coral: #FF8A66;
  --coral-edge: #D96B48;
  --lime-edge: #A8C45C;
  --blue: #49C0F8;
  --blue-edge: #1899D6;
  --gold: #FFC800;
  --c-MX: #8FD9C4;
  --c-AR: #A9D4F5;
  --c-BR: #F2C94C;
  --c-CO: #7FA8F0;
  --c-PE: #E8A3C8;
  --c-BO: #FFC58A;
  --c-UY: #C6CCF7;
  --c-GA: #9FE6EA;
  --c-PA: #D2BDF2;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
#app { max-width: 480px; min-height: 100vh; margin-inline: auto; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.devbar { background: var(--surface); border-bottom: 2px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; padding: 6px 12px; }
.devbar b { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.bigcard :focus-visible { outline-color: var(--ink); }
bdi { unicode-bidi: isolate; }



.pad { padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 20px; }

.lab { font-size: 13px; font-weight: 600; color: var(--muted); }
.h2 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; }

/* ---- מסך 1 ---- */
.app-title { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 0; }
.app-sub { color: var(--muted); margin: 2px 0 0; }
.search { position: relative; }
.search input {
  width: 100%; height: 58px; border-radius: 999px; border: 0; background: var(--surface);
  padding-inline: 22px 64px; font: inherit; font-size: 17px; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.circ { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.search .circ { position: absolute; inset-inline-end: 7px; top: 7px; }
.where { font-size: 22px; font-weight: 700; line-height: 1.3; }
.rail { display: flex; gap: 14px; overflow-x: auto; margin-inline: -20px; padding: 4px 20px 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rit { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--text); }
.ring { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; border: 3px solid transparent; background: var(--surface2); font-weight: 700; font-size: 15px; }
.rit[aria-pressed="true"] .ring { border-color: var(--lime); }
.rit[aria-pressed="true"] .rn { color: var(--lime); }
.rn { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.tint-MX { background: var(--c-MX); }
.tint-AR { background: var(--c-AR); }
.tint-BR { background: var(--c-BR); }
.tint-CO { background: var(--c-CO); }
.tint-PE { background: var(--c-PE); }
.tint-BO { background: var(--c-BO); }
.tint-UY { background: var(--c-UY); }
.tint-GA { background: var(--c-GA); }
.tint-PA { background: var(--c-PA); }
.flag { width: 40px; height: 40px; border-radius: 999px; display: block; flex: none; }
.lab-count { font-size: 14px; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.item {
  width: 100%; text-align: start; background: var(--surface); border: 2px solid transparent; border-radius: 22px; color: var(--text);
  padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1.15fr); align-items: stretch;
}
.item[aria-current="true"] { border-color: var(--lime); }
.item .c1 { padding: 14px 16px; display: grid; gap: 4px; align-content: start; justify-items: start; }
.item .sep { background: var(--line); margin-block: 12px; border-radius: 2px; }
.item .c2 { padding: 14px 16px; display: flex; align-items: center; color: var(--muted); line-height: 1.5; }
.item .term { font-size: 21px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.item.stub { opacity: .8; cursor: default; }
.item mark { background: none; color: var(--lime); }
.item .meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.item .tr { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { background: var(--surface); border: 1.5px dashed var(--muted); border-radius: 22px; padding: 18px; color: var(--muted); }
.foot { font-size: 14px; color: var(--muted); text-align: center; }

.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag.hi { background: var(--coral); color: var(--ink); }
.tag.mid { border: 1.5px solid var(--muted); color: var(--text); }

/* ---- כרטיסי מסך 2 ו-3 ---- */
.bigcard { position: relative; border-radius: 30px; padding: 22px; display: grid; gap: 12px; color: var(--ink); }
.bigcard.lime { background: var(--lime); }
.bigcard.coral { background: var(--coral); }
.divider { height: 2px; background: var(--ink); border-radius: 2px; opacity: .85; }
.term-big { font-size: 40px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; padding-inline-end: 56px; }
.vars { font-size: 15px; }
.kicker { font-size: 14px; font-weight: 600; padding-inline-end: 56px; display: flex; align-items: center; gap: 8px; }
.kicker .flag { width: 22px; height: 22px; }
.spk {
  position: absolute; inset-inline-end: 16px; top: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--lime); display: grid; place-items: center;
}
.spk:active { transform: scale(.95); }
.playing .spk { background: var(--text); color: var(--ink); }
.pron { font-size: 22px; font-weight: 700; line-height: 1.4; }
.trans { font-size: 19px; line-height: 1.55; margin: 0; }
.audio-note { font-size: 14px; line-height: 1.5; }

.panel { background: var(--surface); border-radius: 24px; padding: 16px 18px; display: grid; gap: 12px; }
.meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.meter .k { font-weight: 700; }
.meter .v { display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 13px; height: 13px; border-radius: 999px; border: 2px solid var(--muted); }
.dots i.on { background: var(--lime); border-color: var(--lime); }
.bar3 { display: flex; gap: 5px; }
.bar3 i { width: 22px; height: 11px; border-radius: 999px; border: 2px solid var(--muted); }
.bar3 i.on { background: var(--lime); border-color: var(--lime); }
.bar3.hot i.on { background: var(--coral); border-color: var(--coral); }
.val { font-size: 14px; font-weight: 700; min-width: 4.4em; font-variant-numeric: tabular-nums; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.ex { background: var(--surface); border-radius: 24px; padding: 16px 18px; display: grid; gap: 6px; }
.ex .exhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ex .es { font-size: 19px; font-weight: 600; font-style: italic; line-height: 1.45; }
.ex .he { color: var(--muted); }
.tone { background: var(--surface2); border-radius: 999px; padding: 1px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tone.edge { background: var(--coral); color: var(--ink); }
.use { display: grid; gap: 10px; }
.use .box { background: var(--surface); border-radius: 24px; padding: 14px 18px; }
.use .box .lab { display: block; }
.use p { margin: 0; }
.safe-es { font-size: 26px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.draft { border: 1.5px dashed var(--muted); border-radius: 999px; padding: 4px 14px; font-size: 14px; text-align: center; color: var(--muted); }
.draft b { color: var(--text); font-weight: 700; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.back { display: inline-flex; width: 48px; height: 48px; border-radius: 999px; background: var(--surface); border: 0; align-items: center; justify-content: center; color: var(--text); }

/* ---- מסך 3 ---- */
.warnrow { display: flex; align-items: center; gap: 10px; padding-inline-end: 56px; }
.warnrow b { font-size: 20px; font-weight: 700; line-height: 1.3; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp > div { border-radius: 24px; padding: 14px 15px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.cmp .bad { background: var(--surface); border: 2px solid var(--coral); }
.cmp .good { background: var(--lime); color: var(--ink); }
.cmp .es { font-size: 21px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.cmp .p { font-size: 15px; line-height: 1.5; }
.cmp .lab { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cmp .bad .lab { color: var(--coral); }
.cmp .good .lab { color: var(--ink); }
.why { background: var(--surface); border: 2px solid var(--coral); border-radius: 24px; padding: 14px 18px; }
.why p { margin: 0; }
.why .lab { color: var(--coral); }

/* ---- סגנון משני ממסכי Duolingo שזיו הביאה: רקע כחול-כהה, כרטיסים עם מסגרת, כפתורים עבים עם קצה תחתון, כותרות זהב ---- */
.item, .panel, .ex, .use .box, .empty { background: transparent; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 20px; }
.item[aria-current="true"] { border-color: var(--lime); }
.item .sep { background: var(--line); }
.search input { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 20px; }
.search .circ { background: var(--lime); color: var(--ink); border-bottom: 4px solid var(--lime-edge); }
.spk { background: var(--ink); color: var(--lime); border-bottom: 4px solid #000; }
.search .circ { width: 44px; height: 44px; top: 5px; inset-inline-end: 6px; border-radius: 14px; }
.spk { border-radius: 16px; width: 50px; height: 50px; }
.spk:active, .search .circ:active { transform: translateY(2px); border-bottom-width: 2px; }
.playing .spk { background: var(--lime); color: var(--ink); border-bottom-color: var(--lime-edge); }
.ring { background: var(--surface); border: 3px solid var(--line); }
.rit[aria-pressed="true"] .ring { border-color: var(--lime); }
.back { background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; }
.bigcard { border-radius: 26px; border-bottom: 6px solid rgba(0, 0, 0, .25); }
.bigcard.lime { border-bottom-color: var(--lime-edge); }
.bigcard.coral { border-bottom-color: var(--coral-edge); }
.cmp > div { border-radius: 22px; }
.cmp .bad { background: transparent; border: 2px solid var(--coral); border-bottom-width: 4px; }
.cmp .good { border-bottom: 4px solid var(--lime-edge); }
.why { background: transparent; border-radius: 20px; border-bottom-width: 4px; }
.tag.hi { background: var(--coral); }
.tone { background: transparent; border: 2px solid var(--line); }
.tone.edge { background: var(--coral); border-color: var(--coral); }
.where, .h2 { color: var(--text); }
.draft { border-color: var(--line); }
.pbar { width: 110px; height: 14px; border-radius: 999px; background: var(--line); display: block; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 999px; background: var(--text); }
.pbar.g i { background: var(--lime); }
.pbar.r i { background: var(--coral); }
/* ---- קריאות (ממצאי השופטים): בלי נטייה, טקסט קטן לפחות 15px, הגייה עם רווח שורה ---- */
.ex .es { font-style: normal; font-size: 20px; font-weight: 500; line-height: 1.5; }
.lab, .item .meta, .lab-count, .tag, .tone, .rn, .draft, .audio-note, .val, .kicker, .foot { font-size: 15px; }
.rit { width: 84px; }
.pron { font-weight: 500; line-height: 1.6; }
/* ---- שורת רשימה בעמודה אחת (ממצאי השופטים) ---- */
.item { display: grid; grid-template-columns: none; gap: 6px; justify-items: start; position: relative; padding: 14px 20px; padding-inline-start: 30px; }
.item .stripe { position: absolute; inset-block: 12px; inset-inline-start: 11px; width: 6px; border-radius: 4px; }
.item .term { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); }
.item .tr { color: var(--text); line-height: 1.5; }
.item .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.item .meta .flag { width: 20px; height: 20px; }
.riskt { color: var(--muted); }
.spk.off { background: rgba(20, 20, 20, .18); color: rgba(20, 20, 20, .6); border-bottom-color: rgba(20, 20, 20, .22); cursor: default; }
.spk.off:active { transform: none; border-bottom-width: 4px; }
.audio-note b { font-weight: 700; }
.audio-note.nudge { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.pbar { width: 90px; flex: none; }
.val { min-width: 0; max-width: 9.5em; line-height: 1.35; }
/* ---- קצה תחתון עבה רק למה שלוחצים עליו; גבולות ברורים (ממצאי השופטים) ---- */
.item, .panel, .ex, .use .box, .empty, .search input, .back, .ring, .tone { border-color: var(--edge); }
.panel, .ex, .use .box, .empty, .why { border-bottom-width: 2px; }
.search .circ, .search .circ:active { background: transparent; border: 0; color: var(--muted); transform: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.term-big:focus { outline: none; }
.mini { background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); min-height: 44px; }
.mini:active { transform: translateY(1px); }
html { color-scheme: dark; }
.addbtn, .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; background: var(--lime); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; border: 0; border-bottom: 4px solid var(--lime-edge); }
.addbtn { align-self: flex-start; }
.cta { width: 100%; }
.addbtn:active, .cta:active { transform: translateY(2px); border-bottom-width: 2px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; border-radius: 16px; border: 2px solid var(--edge); border-bottom-width: 4px; background: var(--surface); color: var(--text); font: inherit; font-size: 17px; padding: 12px 16px; }
.fld textarea { resize: vertical; }
.err { color: var(--coral); margin: 0; min-height: 1.6em; font-weight: 600; }
.tag.mine { border: 1.5px solid var(--lime); color: var(--lime); }
.mine-strip { border: 2px dashed var(--lime); border-radius: 20px; padding: 14px 16px; display: grid; gap: 10px; justify-items: start; }
.reportlink { color: var(--muted); text-align: center; text-decoration: underline; padding: 12px; font-size: 15px; }
.mini2 { background: transparent; border: 2px solid var(--edge); border-radius: 999px; padding: 0 16px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text); }
