/* האולפן: המראה של אתר קול חכמת התורה (twentytwentyfour-child, ‏_variables.css), לאפליקציה.
   אותם טוקנים ואותם שמות (--bm-*): מעטפת נייבי, דף לבן, Heebo, פינות חדות, כרטיסים במסגרת דקה בלי צל,
   ו-accent כחול-טורקיז. כמו באתר, אין אדום, כתום וירוק: מצבים מובחנים בעוצמת ה-accent ובאייקון.
   הכותרות: Frank Ruhl Libre (חופשי) במקום FbAkapulco של האתר, שהרישיון שלו לא נבדק למארח אחר. */
@font-face { font-family: "Heebo"; font-weight: 300; font-display: swap; src: url(fonts/heebo-300.woff2) format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url(fonts/heebo-400.woff2) format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url(fonts/heebo-500.woff2) format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 600; font-display: swap; src: url(fonts/heebo-600.woff2) format("woff2"); }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url(fonts/heebo-700.woff2) format("woff2"); }

:root {
  --bm-navy: #0f2240;
  --bm-navy-deep: #0a1830;
  --bm-navy-soft: #16294b;
  --bm-ink: #1b2a44;
  --bm-ink-soft: #2b3a55;
  --bm-accent-ink: #1b6f92;
  --bm-accent-bright: #74dbfa;
  --bm-accent-2: #36b6e4;
  --bm-steel: #5f6b80;
  --bm-steel-light: #c8d0dd;
  --bm-steel-soft: #eef1f6;
  --bm-white: #ffffff;

  --bm-bg: var(--bm-white);
  --bm-text: var(--bm-ink);
  --bm-accent: var(--bm-accent-ink);
  --bm-on-accent: var(--bm-white);
  --bm-muted: color-mix(in srgb, var(--bm-text) 68%, transparent);
  --bm-muted-2: color-mix(in srgb, var(--bm-text) 55%, transparent);
  --bm-line: color-mix(in srgb, var(--bm-navy) 16%, transparent);
  --bm-line-strong: color-mix(in srgb, var(--bm-navy) 28%, transparent);
  --bm-surface: color-mix(in srgb, var(--bm-navy) 5%, transparent);
  --bm-surface-2: color-mix(in srgb, var(--bm-navy) 9%, transparent);
  --bm-accent-soft: color-mix(in srgb, var(--bm-accent) 9%, var(--bm-white));
  --bm-accent-mid: color-mix(in srgb, var(--bm-accent) 18%, var(--bm-white));
  --bm-shadow: 0 18px 50px color-mix(in srgb, var(--bm-navy) 18%, transparent);

  --bm-font-body: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bm-font-heading: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --bm-container: 1200px;
  --bm-pad-inline: clamp(1rem, 3vw, 2rem);
  --bm-header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bm-bg); color: var(--bm-text);
  font: 400 1.0625rem/1.5 var(--bm-font-body); direction: rtl;
  background-image: radial-gradient(1100px 520px at 85% -120px, color-mix(in srgb, var(--bm-accent) 7%, transparent), transparent 70%);
  background-repeat: no-repeat;
}
[hidden] { display: none !important; }
a { color: var(--bm-accent); text-underline-offset: 3px; }
a:hover { color: var(--bm-navy); }
h1, h2, h3 { font-family: var(--bm-font-heading); font-weight: 900; line-height: 1.15; margin: 0; color: var(--bm-navy); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bm-accent); outline-offset: 2px; }
.muted { color: var(--bm-muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- מעטפת: הדר נייבי ---------- */
.app-header {
  position: sticky; top: 0; z-index: 30; height: var(--bm-header-h);
  background: var(--bm-navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.app-header__in {
  max-width: var(--bm-container); height: 100%; margin: 0 auto; padding: 0 var(--bm-pad-inline);
  display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.25rem);
}
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__logo { width: 40px; height: 43px; background: url(img/logo-white.png) center / contain no-repeat; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--bm-font-heading); font-weight: 900; font-size: 1.35rem; letter-spacing: .01em; }
.brand__sub { font-size: .78rem; color: color-mix(in srgb, #fff 70%, transparent); font-weight: 400; }
.nav { display: flex; gap: clamp(.5rem, 2vw, 1.6rem); flex: 1; min-width: 0; }
.nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; padding: .35rem 0;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--bm-accent-bright); color: #fff; }
.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: .55rem; background: transparent; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); padding: .4rem .8rem; min-height: 40px;
}
.user-menu__btn:hover { border-color: var(--bm-accent-bright); }
.avatar {
  width: 28px; height: 28px; display: grid; place-items: center; font-size: .85rem; font-weight: 600;
  background: var(--bm-accent-bright); color: var(--bm-navy); flex-shrink: 0;
}
.user-menu__name { font-size: .92rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; color: var(--bm-text);
  border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); padding: .5rem 0; z-index: 40;
}
.user-menu__pop .who { padding: .5rem 1rem .75rem; border-bottom: 1px solid var(--bm-line); margin-bottom: .35rem; }
.user-menu__pop .who b { display: block; font-weight: 500; }
.user-menu__pop button, .user-menu__pop a {
  display: block; width: 100%; text-align: start; background: none; border: 0; padding: .55rem 1rem; cursor: pointer;
  color: var(--bm-text); text-decoration: none; font-size: .95rem;
}
.user-menu__pop button:hover, .user-menu__pop a:hover { background: var(--bm-surface); }

/* ---------- פריסה ---------- */
.page { max-width: var(--bm-container); margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.75rem) var(--bm-pad-inline) 4rem; }
.page--narrow { max-width: 820px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-head__title { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.page-head__title::before { content: ""; width: 18px; height: 18px; background: var(--bm-accent); display: block; }
.page-head__sub { color: var(--bm-muted); font-size: 1rem; }
.crumbs { font-size: .9rem; color: var(--bm-muted); margin-bottom: .9rem; }
.crumbs a { color: var(--bm-muted); text-decoration: none; }
.crumbs a:hover { color: var(--bm-accent); }
.crumbs a::after { content: "‹"; margin-inline: .45rem; color: var(--bm-muted-2); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: .62rem 1.45rem; border: 1px solid var(--bm-accent); background: var(--bm-accent); color: var(--bm-on-accent);
  font: 500 1rem/1.2 var(--bm-font-body); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--bm-navy); border-color: var(--bm-navy); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn--lg { min-height: 52px; padding: .8rem 2rem; font-size: 1.06rem; }
.btn--sm { min-height: 34px; padding: .3rem .9rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--bm-accent); }
.btn--ghost:hover:not(:disabled) { background: var(--bm-accent); border-color: var(--bm-accent); color: #fff; }
.btn--quiet { background: transparent; border-color: transparent; color: var(--bm-accent); padding-inline: .6rem; }
.btn--quiet:hover:not(:disabled) { background: var(--bm-surface); border-color: transparent; color: var(--bm-navy); transform: none; }
.btn--line { background: #fff; color: var(--bm-text); border-color: var(--bm-line-strong); }
.btn--line:hover:not(:disabled) { background: var(--bm-surface); border-color: var(--bm-navy); color: var(--bm-navy); transform: none; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--on-dark:hover:not(:disabled) { background: #fff; color: var(--bm-navy); border-color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; background: transparent; color: var(--bm-text); cursor: pointer; }
.icon-btn:hover { background: var(--bm-surface); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- טפסים ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-weight: 500; font-size: .95rem; }
.field__hint { font-size: .85rem; color: var(--bm-muted); }
.input, .select {
  width: 100%; min-height: 46px; padding: .62rem .9rem; background: #fff; color: var(--bm-text);
  border: 1px solid color-mix(in srgb, var(--bm-text) 30%, transparent); border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--bm-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bm-accent) 25%, transparent); }
.input::placeholder { color: var(--bm-muted-2); }
.select { appearance: none; padding-inline-start: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231b2a44' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat left .85rem center; }
.form-error { display: flex; gap: .5rem; align-items: flex-start; padding: .7rem .9rem; background: var(--bm-accent-mid); border-inline-start: 3px solid var(--bm-navy); font-size: .95rem; }
.form-error::before { content: "⚠"; }

/* בחירה בין כמה אפשרויות ("פילים", כמו בטופס ההגשה באתר) */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .45rem 1rem; cursor: pointer;
  border: 1px solid var(--bm-line-strong); background: #fff; font-size: .95rem; transition: all .15s;
}
.pill span:hover { border-color: var(--bm-accent); color: var(--bm-accent); }
.pill input:checked + span { background: var(--bm-accent); border-color: var(--bm-accent); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--bm-accent); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 40px; height: 22px; background: var(--bm-steel-light); position: relative; transition: background .15s; flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; background: #fff; transition: inset-inline-start .15s var(--ease); }
.switch input:checked + .switch__track { background: var(--bm-accent); }
.switch input:checked + .switch__track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--bm-accent); outline-offset: 2px; }

/* הגדרות מתקדמות: סגורות כברירת מחדל */
.advanced { border-top: 1px solid var(--bm-line); }
.advanced > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .9rem 0; color: var(--bm-accent); font-weight: 500;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: "‹"; font-size: 1.3rem; line-height: 1; transition: transform .2s var(--ease); }
.advanced[open] > summary::before { transform: rotate(-90deg); }
.advanced__body { display: grid; gap: 1.1rem; padding: .25rem 0 1.25rem; }

/* ---------- כרטיסים, תגים, התקדמות ---------- */
.card { background: #fff; border: 1px solid var(--bm-line); padding: clamp(1rem, 2.5vw, 1.5rem); }
.card--accent { border-color: var(--bm-accent); }
.card__title { font-family: var(--bm-font-body); font-weight: 600; font-size: 1.05rem; color: var(--bm-navy); margin: 0 0 .25rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; font-size: .8rem; font-weight: 500;
  background: var(--bm-surface-2); color: var(--bm-ink-soft); white-space: nowrap; line-height: 1.5;
}
.chip::before { content: ""; width: 7px; height: 7px; background: currentColor; opacity: .55; }
.chip--active { background: var(--bm-accent-mid); color: var(--bm-accent); }
.chip--active::before { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
.chip--action { background: var(--bm-accent); color: #fff; }
.chip--action::before { background: #fff; opacity: 1; }
.chip--done { background: var(--bm-navy); color: #fff; }
.chip--done::before { content: "✓"; width: auto; height: auto; background: none; opacity: 1; font-size: .78rem; }
.chip--alert { background: #fff; color: var(--bm-navy); outline: 1.5px solid var(--bm-navy); outline-offset: -1.5px; }
.chip--alert::before { content: "⚠"; width: auto; height: auto; background: none; opacity: 1; }
@keyframes pulse { 50% { opacity: .25; } }
.bar { height: 4px; background: var(--bm-surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--bm-accent); transition: width .4s var(--ease); }
.bar--indeterminate > i { width: 35% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(120%); } to { transform: translateX(-320%); } }
.spinner { width: 18px; height: 18px; border: 2px solid var(--bm-accent-mid); border-top-color: var(--bm-accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bm-surface) 0%, var(--bm-surface-2) 50%, var(--bm-surface) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; background: var(--bm-accent-soft); border-inline-start: 3px solid var(--bm-accent); }
.notice--strong { background: var(--bm-accent-mid); border-color: var(--bm-navy); }
.notice__icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--bm-accent); }

/* ---------- דיאלוג וחלון מלא ---------- */
dialog.modal { border: 0; padding: 0; width: min(560px, calc(100vw - 2rem)); box-shadow: var(--bm-shadow); color: var(--bm-text); }
dialog.modal::backdrop { background: color-mix(in srgb, var(--bm-navy-deep) 55%, transparent); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--bm-line); }
.modal__head h2 { font-size: 1.4rem; }
.modal__body { padding: 1.3rem 1.4rem; display: grid; gap: 1.1rem; }
.modal__foot { display: flex; gap: .6rem; justify-content: flex-start; padding: 1rem 1.4rem 1.3rem; flex-wrap: wrap; }

/* העורך המתקדם: נפתח מעל עמוד הסקירה, בחלון מלא */
dialog.sheet { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #0b1424; }
dialog.sheet::backdrop { background: rgba(10, 24, 48, .7); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet__bar { display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; background: var(--bm-navy); color: #fff; min-height: 56px; }
.sheet__bar h2 { color: #fff; font-family: var(--bm-font-body); font-weight: 500; font-size: 1.02rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__bar .tag { font-size: .78rem; padding: .15rem .55rem; background: var(--bm-accent-bright); color: var(--bm-navy); font-weight: 600; }
.sheet iframe { flex: 1; width: 100%; border: 0; background: #0b1424; }

.toast {
  position: fixed; bottom: 1.5rem; inset-inline-start: 50%; transform: translateX(50%); z-index: 100;
  background: var(--bm-navy); color: #fff; padding: .8rem 1.3rem; box-shadow: var(--bm-shadow); max-width: min(560px, calc(100vw - 2rem));
  display: flex; gap: .6rem; align-items: center; animation: toast-in .25s var(--ease);
}
.toast--error::before { content: "⚠"; color: var(--bm-accent-bright); }
.toast--ok::before { content: "✓"; color: var(--bm-accent-bright); }
@keyframes toast-in { from { transform: translate(50%, 12px); opacity: 0; } }

/* ---------- טבלה ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bm-line); }
.table th { text-align: start; font-weight: 500; font-size: .85rem; color: var(--bm-muted); padding: .75rem 1rem; border-bottom: 1px solid var(--bm-line); background: var(--bm-surface); }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--bm-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- מסך כניסה: נייבי עם גלי קול, כמו מסך "בהקמה" של האתר ---------- */
.auth-body { background: var(--bm-navy); min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; overflow-x: hidden; position: relative; }
.auth-body::before, .auth-body::after {
  content: ""; position: fixed; left: 50%; top: 42%; border-radius: 50%; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--bm-accent-bright) 14%, transparent); transform: translate(-50%, -50%);
}
.auth-body::before { width: 640px; height: 640px; animation: wave 6s ease-in-out infinite; }
.auth-body::after { width: 980px; height: 980px; border-color: color-mix(in srgb, var(--bm-accent-bright) 7%, transparent); animation: wave 6s ease-in-out infinite 1.2s; }
@keyframes wave { 50% { transform: translate(-50%, -50%) scale(1.04); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .auth-body::before, .auth-body::after, .chip--active::before { animation: none; } }
.auth { position: relative; z-index: 1; width: min(440px, 100%); }
.auth__brand { text-align: center; color: #fff; margin-bottom: 1.6rem; }
.auth__logo { width: 84px; height: 90px; margin: 0 auto 1rem; background: url(img/logo-white.png) center / contain no-repeat; }
.auth__brand h1 { color: #fff; font-size: 2.1rem; }
.auth__brand p { color: color-mix(in srgb, #fff 72%, transparent); margin-top: .4rem; font-weight: 300; }
.auth__card { background: #fff; padding: clamp(1.4rem, 5vw, 2.2rem); display: grid; gap: 1.15rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth__card h2 { font-size: 1.5rem; }
.auth__foot { text-align: center; color: color-mix(in srgb, #fff 62%, transparent); font-size: .85rem; margin-top: 1.4rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-start: 3rem; }
.pw-wrap .icon-btn { position: absolute; inset-inline-start: 3px; top: 3px; color: var(--bm-muted); }

/* ---------- רשימת ההקלטות ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--bm-line); flex: 1; min-width: 0; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: .65rem 0; cursor: pointer; color: var(--bm-muted); font-weight: 500;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center;
}
.tabs button[aria-selected="true"] { color: var(--bm-navy); border-bottom-color: var(--bm-accent); }
.tabs .count { font-size: .78rem; background: var(--bm-surface-2); padding: 0 .45rem; color: var(--bm-ink-soft); }
.tabs button[aria-selected="true"] .count { background: var(--bm-accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.rec-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bm-line); color: var(--bm-text); text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rec-card:hover { border-color: var(--bm-accent); transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--bm-navy) 10%, transparent); color: var(--bm-text); }
.rec-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bm-navy-soft) center / cover no-repeat; overflow: hidden; }
.rec-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 24, 48, .55), transparent 45%); }
.rec-card__thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.rec-card__thumb .ph i { width: 54px; height: 58px; background: url(img/logo-white.png) center / contain no-repeat; opacity: .25; }
.rec-card__dur { position: absolute; z-index: 1; bottom: .55rem; inset-inline-start: .65rem; color: #fff; font-size: .82rem; font-weight: 500; background: rgba(10, 24, 48, .7); padding: .05rem .45rem; }
.rec-card__body { padding: .95rem 1.05rem 1.1rem; display: grid; gap: .45rem; flex: 1; }
.rec-card__title { font-weight: 600; font-size: 1.04rem; line-height: 1.35; color: var(--bm-navy); }
.rec-card__meta { font-size: .86rem; color: var(--bm-muted); display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.rec-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .4rem; }
.rec-card__cta { font-size: .9rem; font-weight: 500; color: var(--bm-accent); }
.rec-card .bar { margin-top: .2rem; }
.empty { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 1rem; border: 1px dashed var(--bm-line-strong); display: grid; gap: .9rem; justify-items: center; }
.empty__icon { width: 64px; height: 64px; color: var(--bm-accent); }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--bm-muted); max-width: 30rem; }

/* ---------- העלאה ---------- */
.drop {
  display: grid; justify-items: center; gap: .9rem; text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
  border: 2px dashed color-mix(in srgb, var(--bm-accent) 45%, transparent); background: var(--bm-accent-soft); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over { background: var(--bm-accent-mid); border-color: var(--bm-accent); }
.drop__icon { width: 56px; height: 56px; color: var(--bm-accent); }
.drop__title { font-size: 1.25rem; font-weight: 500; color: var(--bm-navy); }
.found { display: flex; flex-wrap: wrap; gap: .6rem; }
.found .chip { font-size: .88rem; padding: .3rem .75rem; }
.steps-list { display: grid; gap: .7rem; }
.step-row { display: grid; grid-template-columns: 26px 1fr auto; gap: .75rem; align-items: center; }
.step-row__dot { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--bm-line-strong); color: var(--bm-muted); font-size: .8rem; background: #fff; }
.step-row[data-s="run"] .step-row__dot { border-color: var(--bm-accent); color: var(--bm-accent); }
.step-row[data-s="done"] .step-row__dot { background: var(--bm-accent); border-color: var(--bm-accent); color: #fff; }
.step-row__label { font-weight: 500; }
.step-row__sub { font-size: .85rem; color: var(--bm-muted); }
.files { width: 100%; border-collapse: collapse; font-size: .9rem; }
.files td, .files th { padding: .45rem .5rem; border-bottom: 1px solid var(--bm-line); text-align: start; }
.files th { color: var(--bm-muted); font-weight: 500; }

/* ---------- עמוד הסקירה ---------- */
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.rec-head__main { min-width: 0; display: grid; gap: .55rem; }
.rec-title { display: flex; align-items: center; gap: .5rem; }
.rec-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); overflow-wrap: anywhere; }
.rec-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--bm-muted); font-size: .95rem; align-items: center; }
.stepper { display: flex; gap: 0; margin: 0 0 1.6rem; counter-reset: st; border: 1px solid var(--bm-line); background: #fff; overflow-x: auto; }
.stepper li { list-style: none; flex: 1; min-width: 120px; padding: .7rem .9rem; display: flex; gap: .55rem; align-items: center; font-size: .9rem; color: var(--bm-muted); position: relative; counter-increment: st; }
.stepper li + li { border-inline-start: 1px solid var(--bm-line); }
.stepper li::before { content: counter(st); width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; border: 1.5px solid var(--bm-line-strong); flex-shrink: 0; }
.stepper li[data-s="done"] { color: var(--bm-ink-soft); }
.stepper li[data-s="done"]::before { content: "✓"; background: var(--bm-accent); border-color: var(--bm-accent); color: #fff; }
.stepper li[data-s="now"] { color: var(--bm-navy); font-weight: 600; background: var(--bm-accent-soft); box-shadow: inset 0 -3px 0 var(--bm-accent); }
.stepper li[data-s="now"]::before { border-color: var(--bm-accent); color: var(--bm-accent); }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.player { background: #0a1830; position: relative; }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #0a1830; overflow: hidden; }
.player canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player__label { position: absolute; top: .7rem; inset-inline-end: .7rem; background: rgba(10, 24, 48, .75); color: #fff; font-size: .82rem; padding: .2rem .6rem; z-index: 1; }
.player__msg { position: absolute; inset: 0; display: grid; place-items: center; color: #c8d0dd; text-align: center; padding: 1rem; z-index: 1; }
.player__big-play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; z-index: 2;
  background: rgba(255, 255, 255, .92); color: var(--bm-navy); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .15s var(--ease);
}
.player__big-play:hover { transform: scale(1.06); }
.player__big-play svg { width: 30px; height: 30px; margin-inline-start: -4px; }
.controls { display: flex; align-items: center; gap: .35rem; padding: .45rem .6rem; background: var(--bm-navy); color: #fff; direction: ltr; }
.controls .icon-btn { color: #fff; }
.controls .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.controls .time { font-size: .85rem; color: #dfe6f0; margin-inline: .5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.controls .grow { flex: 1; }
.controls .toggle-orig { direction: rtl; font-size: .82rem; color: #dfe6f0; display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.strip-wrap { background: #fff; border: 1px solid var(--bm-line); border-top: 0; padding: .65rem .75rem .5rem; }
.strip { position: relative; height: 46px; cursor: pointer; direction: ltr; touch-action: none; }
.strip canvas { width: 100%; height: 100%; display: block; }
.strip-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--bm-muted); margin-top: .45rem; }
.strip-legend i { display: inline-block; width: 12px; height: 10px; vertical-align: -1px; margin-inline-end: .3rem; }
.sel-pop { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .75rem; background: var(--bm-accent-soft); border: 1px solid var(--bm-accent); border-top: 0; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.tools .sep { width: 1px; height: 26px; background: var(--bm-line); margin-inline: .25rem; }
.side { display: grid; gap: 1rem; }
.ai-card { background: #fff; border: 1px solid var(--bm-line); }
.ai-card__head { display: flex; align-items: center; gap: .65rem; padding: .95rem 1.1rem; }
.ai-card__icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--bm-accent-soft); color: var(--bm-accent); flex-shrink: 0; }
.ai-card__icon svg { width: 20px; height: 20px; }
.ai-card__title { font-weight: 600; color: var(--bm-navy); }
.ai-card__sum { font-size: .9rem; color: var(--bm-muted); }
.ai-card__body { padding: 0 1.1rem 1rem; display: grid; gap: .7rem; }
.ai-card > details > summary { list-style: none; cursor: pointer; }
.ai-card > details > summary::-webkit-details-marker { display: none; }
.ai-card .more { margin-inline-start: auto; color: var(--bm-accent); font-size: .85rem; white-space: nowrap; }
.cam-bars { display: grid; gap: .45rem; }
.cam-bar { display: grid; grid-template-columns: 6.5rem 1fr 3rem; gap: .6rem; align-items: center; font-size: .88rem; }
.cam-bar__track { height: 8px; background: var(--bm-surface-2); }
.cam-bar__track i { display: block; height: 100%; }
.prop-list { display: grid; max-height: 320px; overflow: auto; border: 1px solid var(--bm-line); }
.prop { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--bm-line); font-size: .9rem; }
.prop:last-child { border-bottom: 0; }
.prop[data-status="rejected"] { background: var(--bm-surface); }
.prop[data-status="rejected"] .prop__what { color: var(--bm-muted); }
.prop__play { width: 30px; height: 30px; }
.prop__toggle { font-size: .8rem; min-height: 30px; padding: .15rem .65rem; }
.summary-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; background: var(--bm-navy); color: #fff; }
.summary-line b { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-line span { color: color-mix(in srgb, #fff 75%, transparent); font-size: .9rem; }
.approve { display: grid; gap: .65rem; }
.film { display: grid; gap: .9rem; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.health { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.health li { display: flex; gap: .5rem; }
.health li::before { content: "✓"; color: var(--bm-accent); flex-shrink: 0; }
.health li[data-level="warn"]::before, .health li[data-level="error"]::before { content: "⚠"; color: var(--bm-navy); }
.health li[data-level="error"] { font-weight: 500; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1000px) {
  .review { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --bm-header-h: 60px; }
  .brand__sub, .user-menu__name { display: none; }
  .brand__name { font-size: 1.15rem; }
  .brand__logo { width: 32px; height: 35px; }
  .nav { gap: .9rem; }
  .nav a { font-size: .9rem; }
  .page-head { align-items: stretch; }
  .page-head .btn { width: 100%; }
  /* בטלפון: רק השלב הנוכחי בשמו, השאר כמספרים */
  .stepper li { min-width: 0; flex: 0 0 auto; padding: .6rem .7rem; }
  .stepper li:not([data-s="now"]) { font-size: 0; gap: 0; }
  .stepper li::before { font-size: .75rem; }
  .stepper li[data-s="now"] { flex: 1; font-size: .88rem; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--bm-line); }
  .table td { border: 0; padding: .1rem 0; }
}
