:root {
  --bg: #0e0f12; --panel: #16181d; --line: #262931; --ink: #eceef2; --muted: #9aa0aa;
  --silver: #c9ced6; --ok: #7fbf8e; --no: #d98080; --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: rgba(14,15,18,.94); backdrop-filter: blur(6px); }
.title { flex: 1; font-weight: 700; letter-spacing: .2px; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 3px; background: var(--line); }
.fill { height: 100%; width: 0; background: var(--silver); transition: width .3s; }
main { max-width: 560px; margin: 0 auto; padding: 12px 16px 32px; }
.msg { color: var(--muted); text-align: center; padding: 48px 8px; }
.ghost { color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.ghost:active { background: var(--panel); }
.primary { background: var(--silver); color: #111; font-weight: 700; padding: 10px 18px; border-radius: 10px; }

.chip-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); }
.chip.status:empty { display: none; }
.chip.status.approve { color: var(--ok); border-color: var(--ok); }
.chip.status.reject { color: var(--no); border-color: var(--no); }

.frame { position: relative; aspect-ratio: 1080 / 1350; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.frame img.ready { opacity: 1; }
.frame .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.frame img.ready + .loading { display: none; }
.card.approve .frame { border-color: var(--ok); }
.card.reject .frame { border-color: var(--no); opacity: .72; }

.hook-edited { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel);
  border-inline-start: 3px solid var(--silver); white-space: pre-line; }
.hook-edited .lbl { display: block; font-size: 13px; color: var(--muted); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.act { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  border-radius: var(--r); font-size: 18px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); }
.act span { font-size: 20px; }
.act.approve { color: var(--ok); }
.act.reject { color: var(--no); }
.card.approve .act.approve { background: var(--ok); color: #0e0f12; border-color: var(--ok); }
.card.reject .act.reject { background: var(--no); color: #0e0f12; border-color: var(--no); }
.actions.small { margin-top: 8px; }
.act2 { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--silver); }
.act2:active, .act:active { transform: scale(.98); }

.panel { margin-top: 10px; padding: 12px; background: var(--panel); border-radius: var(--r); border: 1px solid var(--line); }
.panel textarea { width: 100%; resize: vertical; min-height: 84px; padding: 10px; border-radius: 10px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: inherit; }
.panel .row { display: flex; gap: 8px; margin-top: 8px; }
.comments { list-style: none; padding: 0; margin: 10px 0 0; }
.comments li { padding: 8px 12px; margin-top: 6px; border-radius: 10px; background: var(--panel);
  color: var(--ink); font-size: 15px; white-space: pre-line; }
.comments li::before { content: "הערה: "; color: var(--muted); }
.nav { display: flex; justify-content: space-between; margin-top: 14px; }

.rounds { display: grid; gap: 10px; }
.round { text-align: start; padding: 14px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.round b { display: block; font-size: 17px; }
.round small { color: var(--muted); }

.done { text-align: center; padding: 32px 8px; }
.done h2 { margin: 0 0 6px; }
.done p { color: var(--muted); margin: 0 0 20px; }
.toast { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9;
  padding: 12px 14px; border-radius: 12px; background: #2a2d35; color: var(--ink); text-align: center; }

.frame { cursor: zoom-in; }
.zoom { direction: ltr; position: fixed; inset: 0; z-index: 20; background: #000; overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom img { display: block; width: 170%; max-width: 1080px; height: auto; }
@media (min-width: 700px) { .zoom img { width: 100%; } }
.zoom-x { position: fixed; top: calc(10px + env(safe-area-inset-top)); inset-inline-start: 12px; z-index: 21;
  padding: 8px 14px; border-radius: 99px; background: rgba(30,32,38,.9); color: var(--ink); }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.card.busy .act, .card.busy .primary { opacity: .55; }
button:disabled { cursor: default; }

/* כרטיס קול (שורה 56, 16.11.2026) */
.audio-title { font-size: 20px; margin: 8px 0 10px; }
.audio-card audio { width: 100%; margin: 4px 0 8px; }
.words { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.5; margin: 6px 0 10px; }
.words .w { background: #1b1e24; color: #eceef2; border: 1px solid #2a2d34; border-radius: 8px; padding: 4px 8px; font-size: 18px; cursor: pointer; }
.words .w.now { border-color: #c9ced6; background: #2a2d34; }
.words .w.marked { background: #5a2a2a; border-color: #e07070; }
.mark-word { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.marks-sum { color: #e0a0a0; font-size: 15px; margin: 4px 0 10px; }
/* בטלפון הרשימה ארוכה: הנגן נשאר למעלה ותיבת הסימון למטה, שלא ייעלמו בגלילה */
.audio-card audio { position: sticky; top: 0; z-index: 5; background: #0e0f12; }
.audio-card [data-panel="mark"] { position: sticky; bottom: 0; z-index: 5; background: #16181d; border-top: 2px solid #e07070; padding-top: 10px; }
