/* The studio portal's client screens in the subscriber app's look (Ronen, 15/11): the same
   layout as before, painted like app.cuts.co.il. Reisinger's Michal for every text, the
   brand's solid colours only, 4px panels and pill buttons; no aura, grain, glow, gradient,
   alpha tint, shadow or letter-spacing.
   Loaded after style.css on every client page (each sets app_look = 'full'); the admin and
   the CRM keep style.css alone. The first part sets the ground; the part after
   "Rule by rule" mirrors each style.css rule that painted off-brand, in style.css's order and
   with its selector, so it wins by source order and only those declarations change; the
   part after "By hand" settles what that mirror cannot. */

/* Michal's Hebrew letters stand 19% taller than FbTypograph2's at the same font-size;
   size-adjust brings them back to the letter height the layout was set in (as in app.css). */
@font-face {
  font-family: 'Michal';
  src: url('fonts/Reisinger-Michal-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  size-adjust: 84%;
}
@font-face {
  font-family: 'Michal';
  src: url('fonts/Reisinger-Michal-Regular.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
  size-adjust: 84%;
}
@font-face {
  font-family: 'Michal';
  src: url('fonts/Reisinger-Michal-Bold.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
  size-adjust: 84%;
}

:root {
  --c-yellow: #FFDE1F;
  --c-ink: #141210;
  --c-panel: #1B1B1B;
  --c-raise: #272727;
  --c-gray: #808080;
  --c-white: #FFFFFF;
  /* The one colour outside the palette: errors and destructive actions. */
  --c-red: #E5484D;

  --primary: var(--c-yellow);
  --accent: var(--c-yellow);
  --ink: var(--c-ink);
  --paper: var(--c-white);
  --muted: var(--c-gray);
  --line: var(--c-raise);
  --bg: var(--c-ink);
  --fg: var(--c-white);
  --card: var(--c-panel);
  --card-2: var(--c-raise);
  --line2: var(--c-raise);
  --line2-strong: var(--c-gray);
  --fg-soft: var(--c-white);
  --fg-mute: var(--c-gray);
  --fg-dim: var(--c-gray);
  --y-glow-1: var(--c-ink);
  --y-glow-2: var(--c-ink);
  --y-surface: var(--c-raise);
  --y-border: var(--c-raise);
  --danger: var(--c-red);
  --danger-soft: var(--c-raise);
  --r-pill: 999px;
  --r-card: 16px;
  --r-btn: 999px;
  --r-input: 12px;

  --font-display: 'Michal', 'Arial Hebrew', Arial, sans-serif;
  --font-body: 'Michal', 'Arial Hebrew', Arial, sans-serif;
  --font-mono: 'Michal', 'Arial Hebrew', Arial, sans-serif;
  color-scheme: dark;
}

/* ───── The ground: one flat black, no aura, drift or grain ───── */
html { background: var(--c-ink); }
body {
  background: var(--c-ink);
  background-image: none;
  color: var(--c-white);
}
body::before,
body::after { content: none; }
.scene,
.cursor-glow { display: none; }
::selection { background: var(--c-yellow); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }

/* ═══════════════════════════ Rule by rule ═══════════════════════════ */

/* ── Reset ── */
body { background-image: none; }
::selection { color: var(--c-ink); }
.cursor-glow { background: none; mix-blend-mode: normal; }

/* ── Typography utilities ── */
.display { letter-spacing: 0; }
.display--accent { text-shadow: none; }
.mono { letter-spacing: 0; font-size: 13.5px; }
.eyebrow { letter-spacing: 0; font-size: 13.5px; }
.eyebrow::before { box-shadow: none; }
.tag { letter-spacing: 0; font-size: 13.5px; }
.dot-pulse { box-shadow: none; }

/* ── Loader: the studio's ring, for the sign in link page and modal fetches ── */
.loader { border: 2px solid var(--c-raise); }
.loader--big { box-shadow: none; }

/* ── Package renewal: pricing cards ── */
.plan { border-radius: 16px; }
.plan:hover { border-color: var(--c-raise); }
.plan--best { background: var(--card); box-shadow: 0 0 0 1px var(--c-yellow); }
.plan--best::after { background: none; }
.plan-ribbon { color: var(--c-ink); }
.plan-amount { letter-spacing: 0; }
.plan--best .plan-buy { color: var(--c-ink); }
.plan--best .plan-buy:hover { color: var(--c-ink); }

/* ── Nav ── */
.nav--scrolled { background: var(--c-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-link { letter-spacing: 0; border-radius: 12px; font-size: 14.5px; }
.nav-link--cta { letter-spacing: 0; }
.nav-link--cta:hover { box-shadow: none; }
.hamburger { border-radius: 12px; }

/* ── Buttons ── */
.btn,
.btn-primary,
.btn-back,
.btn--primary,
.btn--secondary,
.btn--full,
.btn-show-more,
.cancel-modal-no,
.cancel-modal-yes,
.sp-details-back { letter-spacing: 0; }
.btn-primary:hover:not(:disabled),
.btn--primary:hover:not(:disabled) { box-shadow: none; }
.cancel-modal-yes:hover { background: var(--c-red); }
.btn-reschedule,
.btn-shorts,
.btn-revision,
.btn-view-deliverables { letter-spacing: 0; font-size: 14.5px; }
.btn-cancel { letter-spacing: 0; font-size: 14.5px; }

/* ── Forms ── */
.label,
label { letter-spacing: 0; font-size: 13.5px; }
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea { background: var(--c-ink); }
.input:focus,
input:focus,
select:focus,
textarea:focus { background: var(--c-raise); box-shadow: 0 0 0 4px var(--c-raise); }
input[type="checkbox"] { border-radius: 6px; background: var(--c-ink); }

/* ── Page header ── */
.page-title { letter-spacing: 0; }
.pod-name { text-shadow: none; }
.pod-name::after { background: none; box-shadow: none; }
.page-sub { letter-spacing: 0; font-size: 14.5px; }
.section-title { letter-spacing: 0; }
.section-title::before { box-shadow: none; }

/* ── Alerts ── */
.alert { background: var(--c-raise); }
.alert--warning { border-color: var(--c-red); background: var(--c-raise); }
.badge-new { letter-spacing: 0; font-size: 13.5px; }

/* ── Auth (login) ── */
.auth-card { border-radius: 16px; box-shadow: 0 0 0 1px var(--c-raise); }
.auth-card::before { background: none; }
.auth-title { letter-spacing: 0; }
.auth-subtitle { letter-spacing: 0; font-size: 13.5px; }

/* ── Dashboard cards ── */
.card:hover { box-shadow: none; }
.card--highlight { background: var(--card); box-shadow: inset 0 0 0 1px var(--c-raise); }
.card-label { letter-spacing: 0; font-size: 13.5px; }
.card-value { letter-spacing: 0; }
.card-value--large { text-shadow: none; }

/* ── Project list ── */
.project-item:hover { background: var(--c-raise); }
.project-name { letter-spacing: 0; }
.project-meta { letter-spacing: 0; font-size: 13.5px; }
.project-status-badge { letter-spacing: 0; font-size: 13.5px; }
.project-status-badge::before { box-shadow: none; }

/* ── Project progress bar ── */
.ptl-now { text-shadow: none; }
.ptl-step { letter-spacing: 0; font-size: 13.5px; }
.ptl-fill { background: var(--c-yellow); box-shadow: none; }

/* ── Modal overlays ── */
.revision-overlay,
.cancel-overlay,
.shorts-overlay,
.deliv-overlay,
.video-overlay { background: var(--c-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.revision-modal,
.cancel-modal,
.shorts-modal,
.deliv-modal,
.video-modal { border-radius: 16px; box-shadow: none; }
.revision-modal-title,
.cancel-modal-title,
.video-modal-title { letter-spacing: 0; }
.revision-modal-sub { letter-spacing: 0; font-size: 13.5px; }
.revision-textarea { background: var(--c-ink); }
.revision-textarea:focus { background: var(--c-raise); }
.rev-label { letter-spacing: 0; font-size: 13.5px; }
.rev-counter { letter-spacing: 0; font-size: 13.5px; }
.cancel-overlay--success .cancel-modal { border-radius: 16px; }
.cancel-success-icon { box-shadow: none; }
.cancel-success-msg { letter-spacing: 0; }
.short-option { border-radius: 12px; }
.short-check { background: var(--c-ink); }
.short-option:has(.short-checkbox:checked) { box-shadow: 0 0 0 1px var(--accent) inset; }
.short-play { background: var(--c-ink); backdrop-filter: none; }
.short-option:hover .short-play { background: var(--c-ink); }
.custom-short-input { border-radius: 12px; }
.custom-short-remove { border-radius: 12px; }
.custom-short-add { border-radius: 12px; }

/* ── Extra shorts upsell ── */
.shorts-meter-count { letter-spacing: 0; font-size: 13.5px; }
.short-option--extra:has(.short-checkbox:checked) { background: var(--c-yellow); box-shadow: none; }
.short-option--extra:has(.short-checkbox:checked) .short-check { border-color: var(--c-raise); }
.short-option--extra:has(.short-checkbox:checked) .short-play { background: var(--c-ink); border-color: var(--c-raise); }
.short-option--extra::before { background: none; }
@keyframes extra-badge {
  0% { box-shadow: none; }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.custom-short-row--extra .custom-short-input { background: none; }
.cart-error { border-radius: 12px; }

/* ── Payment return ── */
.pay-ref { letter-spacing: 0; font-size: 13.5px; }
.deliv-item { background: var(--c-ink); border-radius: 12px; }
.deliv-item-label { letter-spacing: 0; background: var(--c-ink); backdrop-filter: none; font-size: 13.5px; }
.deliv-item--corrected::after { letter-spacing: 0; font-size: 13.5px; }
.plan-row { border-radius: 16px; background: var(--c-ink); }
.plan-date { letter-spacing: 0; font-size: 13.5px; }
.plan-copy { letter-spacing: 0; font-size: 13.5px; }
.stills-download-all { letter-spacing: 0; font-size: 13.5px; }
.still-tile { background: var(--c-ink); border-radius: 12px; }
.still-dl { letter-spacing: 0; font-size: 13.5px; }
@keyframes video-title-in {
  from { opacity: 0; transform: translateY(-6px); letter-spacing: 0; }
  to { opacity: 1; transform: none; letter-spacing: 0; }
}
.video-nav { background: var(--c-raise); }
.video-nav:hover,
.video-nav:focus-visible { box-shadow: none; }
@keyframes video-nav-pulse {
  0% { box-shadow: none; }
  100% { box-shadow: 0 0 0 16px transparent; }
}
.video-iframe-wrap { background: var(--c-ink); border-radius: 12px; }
.video-iframe-wrap video { background: var(--c-ink); }
#videoImage { border-radius: 12px; }
.image-zoom { background: var(--c-ink); }
.image-zoom img { border-radius: 12px; }
.image-zoom-close { background: var(--c-ink); }
.vbtn { letter-spacing: 0; }
.vbtn--primary { box-shadow: none; }
.vbtn--primary:hover { background: var(--c-yellow); border-color: var(--c-yellow); box-shadow: none; }
.vbtn--ghost { background: var(--c-raise); }
.vbtn--quiet { background: var(--c-raise); }
.video-note-form,
.video-approval-form { background: var(--c-raise); }
.video-approval-hint { letter-spacing: 0; font-size: 13.5px; }
.batch-send-tip { border-radius: 12px; box-shadow: none; }
.video-note-item { background: var(--c-raise); border-radius: 12px; }

/* ── Slots picker (slots.html) ── */
.sp-back { letter-spacing: 0; font-size: 14.5px; }
.sp-title { letter-spacing: 0; }
.sp-card { border-radius: 16px; }
.sp-nav-month { letter-spacing: 0; }
.sp-wdays > * { letter-spacing: 0; font-size: 13.5px; }
.sp-day { border-radius: 12px; background: var(--c-raise); }
.sp-day-avail::after { box-shadow: none; }
.sp-day-sel { box-shadow: none; }
.sp-slots-hd > div:first-child { letter-spacing: 0; }
.sp-slot { background: var(--c-raise); letter-spacing: 0; font-size: 14.5px; }
.sp-slot-sel { box-shadow: none; }
.sp-stime { letter-spacing: 0; }
.sp-stag { letter-spacing: 0; font-size: 13.5px; }
.sp-empty { letter-spacing: 0; font-size: 14.5px; }
.sp-confirm { box-shadow: none; }
.sp-confirm-text { letter-spacing: 0; font-size: 13.5px; }
.sp-details-card { border-radius: 16px; }
.sp-details-chosen { letter-spacing: 0; font-size: 13.5px; }
.sp-details-title { letter-spacing: 0; }
/* Field titles white (Ronen 22/11): a title reads as a title, the gray stays for hints. */
.sp-label { letter-spacing: 0; font-size: 13.5px; color: var(--c-white); }
.sp-check-row { color: var(--c-white); }
.sp-input,
.sp-select { background: var(--c-ink); }
.sp-input:focus,
.sp-select:focus { background: var(--c-raise); box-shadow: 0 0 0 4px var(--c-raise); }
.sp-input--error,
.sp-input--error:focus { box-shadow: 0 0 0 4px var(--c-red); }
.sp-field-error { letter-spacing: 0; }
.sp-add-guest { letter-spacing: 0; font-size: 13.5px; }
.sp-success { border-radius: 16px; }
.sp-success-icon { box-shadow: none; }
.sp-success-msg { letter-spacing: 0; }

/* ── Upload page ── */
.upl-wrap { border-radius: 16px; }
.upl-label { letter-spacing: 0; font-size: 13.5px; }
.q-short-notice { border-radius: 12px; }
.upl-input,
.upl-textarea { background: var(--c-ink); }
.upl-input:focus,
.upl-textarea:focus { background: var(--c-raise); box-shadow: 0 0 0 4px var(--c-raise); }
.upl-success-icon { box-shadow: none; }

/* ── Confirmed (booking success) ── */
.confirmed-icon { box-shadow: none; }
.confirmed-date { letter-spacing: 0; }
.confirmed-sub { letter-spacing: 0; font-size: 13.5px; }

/* ── Tables (legacy) ── */
th { letter-spacing: 0; font-size: 13.5px; }

/* ──  ── */
@container canvas (max-width: 720px) {
  .nav-links { background: var(--c-ink); backdrop-filter: none; }
  .sp-day { border-radius: 12px; }
  .revision-modal,
  .cancel-modal,
  .shorts-modal,
  .deliv-modal { border-radius: 16px 16px 0 0; }
  .video-stage .video-iframe-wrap.is-portrait { border-radius: 12px; }
}

/* ── Fallback viewport based queries (until .site canvas is applied) ── */
@media (max-width: 720px) {
  .nav-links { background: var(--c-ink); backdrop-filter: none; }
}

/* ──  ── */
.cp svg { filter: none; }
.cp::after { background: none; }
.cp-big { box-shadow: none; }
.cp-spinner { border: 4px solid var(--c-raise); }
.cp-ripple { background: var(--c-raise); }
.cp-track::before { background: var(--c-raise); box-shadow: none; }
.cp-buffered { background: var(--c-raise); }
.cp-thumb { box-shadow: none; }
.cp-btn { border-radius: 999px; }
.cp-btn:focus-visible { background: var(--c-raise); }
@media (hover: hover) {
  .cp-btn:hover { background: var(--c-raise); }
}
.cp-skip b { text-shadow: none; }
.cp-time { letter-spacing: 0; text-shadow: none; }
.cp-time-sep { color: var(--c-gray); }
#cpDur { color: var(--c-white); }
.cp-note:focus-visible { background: var(--c-yellow); }
@media (hover: hover) {
  .cp-note:hover { background: var(--c-yellow); }
}
.cp-menu { background: var(--c-ink); border-radius: 16px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cp-menu-title { letter-spacing: 0; font-size: 13.5px; }
.cp-sheet { background: var(--c-ink); border-radius: 16px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cp-sheet-text { background: var(--c-raise); border-radius: 12px; }
.cp-tip { border-radius: 12px; box-shadow: none; }
.video-iframe-wrap.is-audio { background: var(--c-ink); border-radius: 12px; }
.video-iframe-wrap.cp-pinned { background: var(--c-ink); }
.video-iframe-wrap:fullscreen,
.video-iframe-wrap:-webkit-full-screen { background: var(--c-ink); }

/* ── the channel teaser on the dashboard: a taste, and one door in ── */
.yt-teaser__label { letter-spacing: 0; }
.yt-teaser__delta.up { color: var(--c-yellow); }
.yt-teaser__delta.down { color: var(--c-red); }

/* ── Publishing panel ── */
.btn-publish { letter-spacing: 0; font-size: 14.5px; }
.pub-skeleton-bar { border-radius: 999px; background: none; }

/* ── Publishing panel ── */
.publish-modal { --pb-yt: var(--c-red); --pb-ok: var(--c-yellow); --pb-warn: var(--c-yellow); }
.pb-link--danger { color: var(--c-red); }
.pb-note--bad { color: var(--c-red); }
.pb-state--on::before { box-shadow: 0 0 0 3px var(--c-yellow); }
.pb-thumb-alt { border-radius: 12px; }
.pb-magic-text { background: var(--c-yellow); }
.pb-magic::after { background: none; }
.pb-magic:hover:not(:disabled) { box-shadow: none; }
.pb-magic:hover:not(:disabled) .pb-spark { filter: none; }
.pb-idea { border-radius: 12px; }
@keyframes pb-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.97); filter: none; border-color: var(--accent); }
  60% { opacity: 1; filter: none; border-color: var(--accent); box-shadow: none; }
  100% { transform: none; border-color: var(--line2); box-shadow: none; }
}
.pb-idea--ghost { background: none; }
.pb-seg button { border-radius: 999px; }
.pb-net[aria-pressed="true"] .pb-net-ico::after { color: var(--c-panel); }
button.pb-row-main { border-radius: 999px; }
button.pb-row-main:hover { background: var(--c-raise); }
button.pb-row-main:focus-visible { border-radius: 999px; }
.pb-row-pick[aria-pressed="true"] .pb-tick::after { border-left: 2px solid var(--c-panel); border-bottom: 2px solid var(--c-panel); }
.pb-st--bad { color: var(--c-red); }
.pb-tt-stop { border-radius: 12px; }
.pb-tt-clip { border-radius: 12px; }
.pb-tt-st.pb-st--bad { color: var(--c-red); }
.pb-clip-thumb { border-radius: 12px; }
.pb-clip-num { background: var(--c-ink); }
.pb-action { background: none; }
.pb-btn { color: var(--c-panel); }
.pb-msg--bad { color: var(--c-red); }
.pb-errors { color: var(--c-red); }
.pb-sheet-overlay { background: var(--c-ink); }
.pb-sheet { border-radius: 16px 16px 0 0; }
.pb-sheet-overlay.is-playing .pb-sheet .pb-sheet-preview { box-shadow: 0 0 0 1px var(--y-border); }
.pb-mini { background: var(--c-ink); }
.pb-mini-bar { background: none; }
.pb-mini-track::before { background: var(--c-raise); }
.pb-mini-knob { box-shadow: none; }
.pb-mini.is-loading::after { border: 3px solid var(--c-raise); }
.pb-sheet-preview { border-radius: 16px; }
.pb-sheet-preview img,
.pb-sheet-preview video { background: var(--c-ink); }
.pb-play-big { background: var(--c-ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pb-play-big:hover { background: var(--c-ink); }
@keyframes pb-flash-in {
  from { border-color: var(--accent); box-shadow: none; }
}
@media (min-width: 721px) {
  .pb-sheet { border-radius: 16px; }
}

/* ── Shorts "where": the episode tab's destination rows, each one a switch. ── */
.pb-dest-pick { border-radius: 12px; }
button.pb-dest-pick:hover { background: var(--c-raise); }
.pb-dest-pick[aria-pressed="true"] .pb-tick::after { border-left: 2px solid var(--c-panel); border-bottom: 2px solid var(--c-panel); }
.publish-modal .pb-checks input[type="checkbox"] { border-radius: 6px; }
.publish-modal .pb-checks input[type="checkbox"]:checked::before { border-left: 2px solid var(--c-panel); border-bottom: 2px solid var(--c-panel); }
.pb-dp-day[aria-pressed="true"] { color: var(--c-panel); }

/* ── Thumbnails load with a reveal instead of painting in strips ── */
.pb-thumb,
.pb-thumb-alt { background: var(--c-panel); }
@media (prefers-reduced-motion: no-preference) {
  .pb-thumb:has(.pb-reveal.is-loaded)::after { background: none; }
}
@keyframes pb-reveal-in {
  0% { opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); filter: none; transform: scale(1.06); }
  45% { opacity: 1; }
  100% { opacity: 1; clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); filter: none; transform: none; }
}
.pb-clip-thumb,
.pb-sheet-preview { background: var(--c-panel); }

/* ── Micro motion (30 09) ── */
.done-tick--lg { filter: none; }
.badge-new::after { background: none; }
@keyframes mo-blur-in {
  from { opacity: 0; filter: none; transform: translateY(6px); }
}

/* ── Micro motion round 2 (30 09) ── */
.sp-booked .is-booked::before { box-shadow: none; }

/* ── Deliverable sections (01 10) ── */
.dsec-ico { border-radius: 12px; }
.ep-card { border-radius: 12px; background: var(--c-panel); }
.ep-shade { background: none; }
.ep-play { box-shadow: none; }
.ep-dur { border-radius: 999px; background: var(--c-ink); }
.ep-row { border-radius: 12px; }
.ep-row-poster { border-radius: 12px; background: var(--c-panel); }
.ep-tag { border-radius: 999px; }
.deliv-item.dtile,
.deliv-item.dwide-item { background: var(--c-panel); }
.dtile.has-poster::before { background: none; }
.dtile-badge { border-radius: 999px; }
.dwide-item .deliv-play { text-shadow: none; }

/* ── Short tiles and section icons (01 10) ── */
.dtile .deliv-play { box-shadow: none; }
.dsec-ico { background: var(--c-yellow); box-shadow: none; }

/* ── Recommended shorts (01 10) ── */
.short-cell--reco .short-option:not(:has(.short-checkbox:checked)) { background: var(--card-2); }
.short-reco-badge { background: var(--c-yellow); box-shadow: none; }
.shorts-reco-why { border-radius: 16px; background: var(--c-raise); }
.shorts-reco-why b { color: var(--c-yellow); }
.pb-del:hover:not(:disabled) { color: var(--c-red); }
.pb-del.is-armed { background: var(--c-red); border-color: var(--c-red); }
.pb-connect:hover:not(:disabled) { color: var(--c-ink); }
.pb-confirm-overlay { background: var(--c-ink); }
.pb-confirm { border-radius: 16px; }
.pb-confirm-yes { color: var(--c-ink); }

/* ── home screen app (standalone) ── */
.nav-back { border-radius: 12px; }

/* ── install guide ── */
.install-glyph { border-radius: 12px; }

/* ── hand off cover from the home screen launch page ── */
html.handoff::before { background: var(--c-ink) url("/static/לוגו צהוב שקוף.png") no-repeat; }

/* ── style.css modifiers that come after a base rule above, set again ── */
.plan--best { border-color: var(--accent); }
.plan--best::after { border-radius: inherit; }
.plan-ribbon { border-radius: var(--r-pill); }
.plan-ribbon--mine { color: var(--fg); }
.plan-specs li::before { border-radius: 50%; }
.plan-buy { border-radius: var(--r-pill); }
.plan-buy:hover { border-color: var(--accent); }
.plan--best .plan-buy { border-color: var(--accent); }
.nav-link--cta { border-radius: var(--r-btn); }
.nav-link--cta { letter-spacing: 0; }
.btn-reschedule,
.btn-shorts,
.btn-revision,
.btn-view-deliverables { letter-spacing: 0; }
.btn-cancel { letter-spacing: 0; }
.alert--warning { background: var(--c-raise); }
.alert--info { background: var(--y-surface); }
.alert--new { background: var(--y-surface); }
.alert--draft { background: var(--y-surface); }
.card--highlight { box-shadow: inset 0 0 0 1px var(--c-raise); }
.project-item--new { background: var(--y-surface); }
.short-option--extra:has(.short-checkbox:checked) { box-shadow: none; }
.short-option--extra::after { border-radius: var(--r-pill); }
.deliv-item-label { background: var(--c-ink); }
.deliv-item-label { border-radius: var(--r-pill); }
.deliv-item--corrected::after { background: var(--accent); }
.deliv-item--corrected::after { border-radius: var(--r-pill); }
.plan-row { border-radius: 16px; }
.plan-num { border-radius: 50%; }
.plan-copy { border-radius: var(--r-pill); }
.plan-copy:hover { border-color: var(--accent); }
.image-zoom-close { background: var(--c-ink); }
.sp-day-off { background: none; }
.sp-day-avail::after { border-radius: 50%; }
.sp-day-avail::after { background: var(--accent); }
.sp-day-sel { background: var(--accent); }
.sp-day-sel::after { background: var(--ink); }
.sp-slot-sel { background: var(--accent); }
.sp-input--error,
.sp-input--error:focus { box-shadow: 0 0 0 4px var(--c-red); }
.sp-success-icon { border-radius: 50%; }
.cp-big { background: var(--accent); }
.cp-ripple { background: var(--c-raise); }
.cp-track::before { background: var(--c-raise); }
.cp-buffered { background: var(--c-raise); }
.cp-played { background: var(--accent); }
.cp-thumb { background: var(--accent); }
.cp-bubble { background: var(--accent); }
.cp-btn { background: transparent; }
.cp-btn:focus-visible { background: var(--c-raise); }
.cp-note { background: var(--accent); }
.cp-note:focus-visible { background: var(--c-yellow); }
.cp-menu { background: var(--c-ink); }
.cp-chip { background: transparent; }
.cp-chip.is-on { background: var(--accent); }
.cp-sheet { background: var(--c-ink); }
.cp-sheet-text { background: var(--c-raise); }
.cp-sheet-text { border-radius: 12px; }
.cp-tip { background: var(--accent); }
.cp-tip::after { background: var(--accent); }
.cp-tip-ok { border-radius: var(--r-pill); }
.cp-tip-ok { background: var(--ink); }
.video-iframe-wrap.cp-pinned { background: var(--c-ink); }
.btn-publish { letter-spacing: 0; }
.pb-sheet-grab { border-radius: 999px; }
.pb-mini-big { background: var(--accent); }
.pb-mini-bar { background: none; }
.pb-mini-btn { background: none; }
.pb-mini-track::before { background: var(--c-raise); }
.pb-mini-played { background: var(--accent); }
.pb-mini-knob { background: var(--accent); }
.pb-sheet-preview { border-radius: 16px; }
.ep-row-poster { border-radius: 12px; }
.dtile:not(.has-poster) .deliv-item-label { background: none; }
.dtile-badge { background: var(--accent); }
.pb-confirm-yes, .pb-confirm-no { border-radius: var(--r-pill); }

/* ═══════════════════════════ By hand ═══════════════════════════ */

/* Buttons and fields don't inherit the page font in browsers; a close ✕ or a stepper's +
   would fall back to Arial. Michal everywhere, the fallbacks only for a glyph it lacks. */
button,
input,
select,
textarea { font-family: var(--font-body); }

/* ───── Fields: a black well with a 2px edge that turns yellow in use ───── */
.input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  background: var(--c-ink);
  border: 2px solid var(--c-gray);
  border-radius: var(--r-input);
  color: var(--c-white);
}
.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--c-yellow);
  background: var(--c-ink);
  box-shadow: none;
}
.input::placeholder,
input::placeholder,
textarea::placeholder { color: var(--c-gray); }


/* Surfaces whose gradient was the whole fill. */
.custom-short-row--extra .custom-short-input { background: var(--c-ink); }
.pb-action { background: var(--c-panel); }
.pub-skeleton-bar,
.pb-idea--ghost { background: var(--c-raise); }

/* The desktop nav's booking link is a button: a pill, like every button here. */
.nav-link--cta { border-radius: var(--r-pill); }

/* No ornament icons (Ronen 15/11: "אני לא רוצה אייקונים מצועצעים"): the words carry it.
   Icons that do something stay: play on a video, the close X, a picked tile's check, the
   calendar's open-day marks. */
.mo-bell,
.dsec-ico,
.short-reco-badge svg { display: none; }
.short-cell .short-watch::before,
.eyebrow::before,
/* Without its icon a section head keeps two columns: the words, and its count or chip. */
.dsec-head { grid-template-columns: minmax(0, 1fr) auto; }
.dsec-head--wrap { grid-template-columns: minmax(0, 1fr); }
.dsec-head--wrap .dsec-chip { grid-column: 1; }
@container canvas (min-width: 721px) {
  .dsec-head--wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .dsec-head--wrap .dsec-chip { grid-column: auto; }
}

/* ═══════════════════ Direction: the recording light ═══════════════════
   Ronen, 15/11, after a charles-unslop pass: the yellow is the studio's recording light. It is
   on only for what waits for the client now (a pending questionnaire, a project waiting for a
   shorts choice or for publishing), as a full block; with nothing waiting it moves to booking.
   Everything else is quiet: white and gray on the brand's blacks, weight 400, spacing instead of
   dividers, compact so a screen needs less scrolling. */

body { font-variant-numeric: tabular-nums; }

/* ───── The top: a bar of its own so it reads as the app's frame (Ronen, 15/11) ───── */
.nav,
.nav--scrolled { border-bottom: 0; background: var(--c-raise); }
.nav-inner { padding-block: 8px; }
.nav-logo { height: 24px; width: auto; }
.hamburger { width: 38px; height: 38px; border: 0; background: transparent; }
.main { padding-top: 78px; }
.page-header { margin-bottom: 20px; text-align: start; }
.page-title { font-size: 24px; font-weight: 400; line-height: 1.25; }
/* The client's podcast is the page's name: the word small, the name large. */
.page-title .pod-kicker { display: block; margin-bottom: 4px; color: var(--c-gray); font-size: 14px; }
.page-title .pod-name { display: block; color: var(--c-white); font-size: 34px; font-weight: 700; line-height: 1.1; }
.pod-name::after { content: none; }
.page-sub { margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--c-gray); }
/* The small word above a title is words, not a pill. */
.eyebrow { min-height: 0; padding: 0; border: 0; background: none; color: var(--c-gray); font-size: 14px; font-weight: 400; }

/* ───── Notices: a quiet strip; one that asks something of the client is lit ───── */
.alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--c-panel);
  color: var(--c-white);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
}
.alert a { color: var(--c-white); font-weight: 700; }
.alert--warning { box-shadow: inset 0 0 0 1px var(--c-red); }
.alert--new { padding: 16px 16px 18px; background: var(--c-panel); color: var(--c-white); }
.alert--new a { color: var(--c-yellow); }

/* ───── The package: ledger rows, the word on one side and the count on the other ───── */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-bottom: 16px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--c-panel);
}
.card,
.card--highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.card + .card { border-top: 1px solid var(--c-raise); }
.card-label { grid-column: 1; grid-row: 1; color: var(--c-white); font-size: 15px; font-weight: 400; }
.card-value,
.card-value--large { grid-column: 2; grid-row: 1; color: var(--c-white); font-size: 28px; font-weight: 400; line-height: 1; }
.card-sub { grid-column: 3; grid-row: 1; color: var(--c-gray); font-size: 13px; white-space: nowrap; }

/* ───── Booking: lit when nothing else waits, an outline when something does ───── */
.cta-block { display: block; margin: 0 0 32px; }
.cta-block .btn,
.cta-block .btn--primary { width: 100%; min-height: 48px; padding-block: 0 2px; font-size: 16px; font-weight: 700; }

/* ───── Sections and projects: each project its own surface, spacing instead of lines ───── */
.section { margin-bottom: 32px; }
.section-title { gap: 8px; margin: 0 0 8px; color: var(--c-gray); font-size: 14px; font-weight: 400; }
.section-title::before { content: none; }
.project-list { display: grid; gap: 8px; margin-bottom: 0; border: 0; border-radius: 0; background: none; }
.project-item { gap: 12px; padding: 16px; border: 0; border-radius: 16px; background: var(--c-panel); }
/* Name and date on one line; under them the stage and its bar. */
.project-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex: 1 0 100%; align-items: baseline; gap: 4px 10px; }
.project-info > * { grid-column: 1 / -1; margin: 0; }
.project-info > .project-name { grid-column: 1; }
.project-info > .project-meta--dim { grid-column: 2; grid-row: 1; }
.project-name { font-size: 16px; font-weight: 400; }
.project-meta,
.project-meta--dim { color: var(--c-gray); font-size: 13px; font-weight: 400; }
.badge-new {
  display: inline;
  position: static;
  margin-inline-start: 6px;
  padding: 0;
  overflow: visible;
  background: none;
  color: var(--c-white);
  font-size: 12.5px;
  font-weight: 400;
  line-height: inherit;
  vertical-align: baseline;
  transform: none;
}
.badge-new::before { content: '· '; color: var(--c-gray); }
.badge-new::after { content: none; }
.ptl { display: grid; grid-template-columns: auto minmax(40px, 1fr); align-items: center; gap: 10px; margin: 2px 0 0; }
.ptl-head { display: contents; }
.ptl-now { order: 1; color: var(--c-white); font-size: 14px; font-weight: 400; }
.ptl-bar { order: 2; height: 2px; background: var(--c-raise); }
.ptl-fill { background: var(--c-white); }
.project-status-badge { display: inline; padding: 0; border: 0; background: none; color: var(--c-gray); font-size: 13px; font-weight: 400; }
.project-status-badge::before { content: none; }
.project-actions { gap: 8px; margin-top: 0; }

/* ───── Row buttons: dark pills; the yellow belongs to the step that waits ───── */
.btn-shorts,
.btn-publish,
.btn-reschedule,
.btn-revision,
.btn-view-deliverables,
.btn-cancel { min-height: 36px; padding: 0 16px 2px; font-size: 14px; font-weight: 400; }
.btn-reschedule,
.btn-revision,
.btn-view-deliverables,
.btn-shorts--add,
.btn-shorts--add .rev-label,
.project-list--done .btn-publish { border-color: var(--c-raise); background: var(--c-raise); color: var(--c-white); }
.btn-reschedule:hover,
.btn-revision:hover:not(:disabled):not(.btn-revision--disabled),
.btn-view-deliverables:hover,
.project-list--done .btn-publish:hover { border-color: var(--c-yellow); background: var(--c-raise); color: var(--c-white); transform: none; }
.btn-revision--disabled { color: var(--c-gray); }
.btn-shorts:not(.btn-shorts--add),
.project-list:not(.project-list--done) .btn-publish { border-color: var(--c-yellow); background: var(--c-yellow); color: var(--c-ink); font-weight: 700; }
.btn-shorts .rev-label { color: inherit; }
.btn-shorts--add .rev-label { background: transparent; }
.btn-cancel { border-color: transparent; background: transparent; color: var(--c-red); font-weight: 700; }

/* ───── The channel card on the dashboard: numbers and a white line, no lit area ───── */
.yt-teaser__name { font-weight: 400; }
.yt-teaser__value { font-weight: 400; }
.yt-teaser__delta.up { color: var(--c-white); }
.yt-teaser__delta.down { color: var(--c-gray); }
.yt-teaser__spark polyline { stroke: var(--c-white); }
.yt-teaser__spark circle { fill: var(--c-white); }
.yt-teaser__area { fill: none; }
.yt-teaser .btn--primary { border-color: var(--c-raise); background: var(--c-raise); color: var(--c-white); font-weight: 400; }

/* ───── Windows: compact; the yellow for the pick and the send, the counts quiet ───── */
.revision-modal { padding: 16px 14px; }
.revision-modal-header { margin-bottom: 8px; }
.revision-modal-title { font-size: 20px; }
.dsec { gap: 8px; margin-bottom: 14px; }
.dsec-title { font-size: 16px; }
.dsec-sub { font-size: 12.5px; }
#shortsOverlay .dsec-chip { border-color: var(--c-raise); background: var(--c-raise); color: var(--c-white); font-weight: 400; }
.shorts-grid { gap: 6px; }
.short-option { height: 52px; aspect-ratio: auto; border: 1px solid var(--c-raise); border-radius: 12px; background: var(--c-panel); }
.short-option:has(.short-checkbox:checked) { border-color: var(--c-yellow); }
.short-reco-badge { background: var(--c-raise); color: var(--c-white); }
.short-cell { gap: 4px; }
.short-cell .short-watch { min-height: 28px; padding: 0 8px; font-size: 12.5px; }
/* One play mark everywhere: the round yellow one the shorts carry. A thumbnail is a picture
   and has none. */
.dwide-item .deliv-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 14px;
  text-shadow: none;
}

/* ───── Booking page ───── */
.sp-header { margin-bottom: 12px; }
.sp-title { font-size: 22px; }
.sp-card { gap: 14px; padding: 14px; border-radius: 16px; }
.sp-day { border-radius: 12px; font-size: 13px; }
.sp-slot { min-height: 38px; font-size: 14px; }

/* ───── Motion that says something: the light switches on, a button gives ───── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-init {
    transform: translateY(12px);
    transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
  }
  .reveal-in { transform: none; }
  /* As a waiting card comes into view its yellow bar sweeps in from the reading side. */
  .project-item--waiting.reveal-in .wait-ask { animation: light-in .7s cubic-bezier(.22, 1, .36, 1) .2s backwards; }
  .btn,
  .btn--primary,
  .btn-shorts,
  .btn-publish,
  .btn-reschedule,
  .btn-revision,
  .btn-view-deliverables,
  .btn-cancel {
    transition: transform .12s cubic-bezier(.22, 1, .36, 1), background-color .15s, color .15s, border-color .15s;
  }
  :is(.btn, .btn--primary, .btn-shorts, .btn-publish, .btn-reschedule, .btn-revision, .btn-view-deliverables, .btn-cancel):active { transform: scale(.97); }
  /* A full-width button travels further at the same scale, so it gives less. */
  .cta-block .btn--primary:active { transform: scale(.985); }
}
@keyframes light-on { to { clip-path: inset(0 0 0 0); } }

/* ═══════════════════ Motion, round 2 (Ronen 15/11, from the animate, review-animations,
   charles-ux-animation, charles-polish and deslop skills) ═══════════════════
   The windows behave like sheets, a pick answers the finger, a send shows its progress, the
   light goes off when the client is done. Plus fixes: no hover left behind by a tap, no
   overshoot, no endless invisible loops, no see-through disabled states, yellow only where
   something waits. */

:root {
  --mo-drawer: cubic-bezier(.32, .72, 0, 1);
  --mo-exit: cubic-bezier(.55, 0, 1, .45);
  /* The approved micro-motion keeps its timing, without the overshoot he called "sticker". */
  --mo-spring: cubic-bezier(.32, .72, 0, 1);
}
@keyframes mo-pop-0 { from { transform: scale(.9); opacity: 0; } }
@keyframes reco-badge-in { from { opacity: 0; } }
@keyframes extra-pop { 0%, 100% { transform: none; } }

/* ───── A tap leaves no hover behind ───── */
@media (hover: none), (pointer: coarse) {
  .sp-slot:not(.sp-slot-sel):hover { border-color: var(--c-raise); color: var(--c-white); }
  .project-item:hover { background: var(--c-panel); }
  .short-option:hover,
  .sp-nav-btn:hover { transform: none; }
}
.sp-slot-sel:hover { color: var(--c-ink); }

/* ───── Picked things stay in their column; transitions name what they move ───── */
.sp-slot,
.sp-nav-btn { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--mo-out); }
.sp-day-sel,
.sp-slot-sel { transform: none; }

/* ───── Unavailable is gray words, not a faded button ───── */
.btn:disabled,
.btn-primary:disabled,
.btn--primary:disabled,
.btn-shorts:disabled,
.btn-revision:disabled {
  opacity: 1;
  border: 1px solid var(--c-raise);
  background: transparent;
  color: var(--c-gray);
}
.btn-shorts:disabled .rev-label,
.btn-revision:disabled .rev-label { color: var(--c-gray); }
.sp-slot-taken { opacity: 1; color: var(--c-gray); }
.sp-day-off { opacity: 1; color: var(--c-gray); }

/* ───── Yellow only where something waits ───── */
.btn-revision .rev-counter,
.deliv-nav-chip:not([aria-current]) b,
.dtile-badge { background: var(--c-raise); color: var(--c-white); }
.badge-new { white-space: nowrap; }

/* ───── Loops nobody sees ───── */
.short-option--extra::before,
.short-option--extra::after { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  /* ───── Windows are sheets: on a phone they rise from the bottom edge and sink back ───── */
  :is(.revision-overlay, .cancel-overlay, .shorts-overlay, .deliv-overlay) { transition: opacity 180ms var(--mo-exit); }
  :is(.revision-overlay, .cancel-overlay, .shorts-overlay, .deliv-overlay).active { transition: opacity 240ms var(--mo-drawer); }
  :is(.revision-modal, .cancel-modal, .shorts-modal, .deliv-modal) { transform: scale(.97); transition: transform 160ms var(--mo-exit); }
  :is(.revision-overlay, .cancel-overlay, .shorts-overlay, .deliv-overlay).active :is(.revision-modal, .cancel-modal, .shorts-modal, .deliv-modal) {
    transform: none;
    transition: transform 240ms var(--mo-drawer);
  }
  @container canvas (max-width: 720px) {
    :is(.revision-modal, .cancel-modal, .shorts-modal, .deliv-modal) { transform: translateY(100%); transition: transform 220ms var(--mo-exit); }
    :is(.revision-overlay, .cancel-overlay, .shorts-overlay, .deliv-overlay).active :is(.revision-modal, .cancel-modal, .shorts-modal, .deliv-modal) {
      transform: none;
      transition: transform 380ms var(--mo-drawer);
    }
  }
  /* ───── A short tile gives under the thumb ───── */
  .short-option { transition: transform 160ms var(--mo-out), border-color 150ms ease; }
  .short-option:active { transform: scale(.96); transition-duration: 100ms; }

  /* ───── Booking: the picked day and time light from the reading side ───── */
  .sp-day-sel,
  .sp-slot-sel { position: relative; isolation: isolate; }
  .sp-day-sel::before,
  .sp-slot-sel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--c-yellow);
    animation: light-in 220ms var(--mo-out) backwards;
  }
  .sp-day:active,
  .sp-slot:active,
  .sp-nav-btn:active { transform: scale(.97); }

  /* ───── A send shows its progress: the button fills instead of fading ───── */
  :is(#shortsSubmit, #revisionSubmit).is-sending { position: relative; isolation: isolate; overflow: hidden; }
  :is(#shortsSubmit, #revisionSubmit).is-sending:disabled {
    opacity: 1;
    border-color: var(--c-raise);
    background: var(--c-raise);
    color: var(--c-white);
    animation: mo-send-text 2.6s linear forwards;
  }
  :is(#shortsSubmit, #revisionSubmit).is-sending::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c-yellow);
    transform-origin: right;
    animation: mo-send-fill 2.6s cubic-bezier(.3, .1, .3, 1) forwards;
  }
  :is(#shortsSubmit, #revisionSubmit).is-sending.is-sent { animation: none; color: var(--c-ink); }
  :is(#shortsSubmit, #revisionSubmit).is-sending.is-sent::after { animation: none; transform: none; transition: transform .3s var(--mo-out); }

  /* ───── The light goes off when the client is done: the yellow leaves through the far edge ───── */
  .project-item--waiting.is-light-off .wait-ask { animation: light-off 450ms var(--mo-out) both; }
}
@keyframes light-in { from { clip-path: inset(0 0 0 100%); } }
@keyframes light-off { from { clip-path: inset(0); } to { clip-path: inset(0 100% 0 0); } }

/* ═══════════════ The booking calendar, round 2 (Ronen 17/11: "taken in red, and make the
   calendar screen nicer") ═══════════════
   The calendar first and the day's times after it, as the choice is made. An open day is a
   raised square with a white number, a closed one a gray number on nothing; the picked day and
   the picked time are the yellow ones. Times are a grid of short buttons, a taken one framed
   and marked in red. The first rules here outrank the older ones above by coming last. */
.sp-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
}
.sp-wdays { gap: 6px; margin-bottom: 4px; }
.sp-wdays > * { padding: 6px 0; font-size: 13px; font-weight: 700; color: var(--c-gray); }
.sp-grid { grid-auto-rows: auto; gap: 6px; }
.sp-blank { min-height: 0; }
.sp-day {
  aspect-ratio: auto;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--c-raise);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
}
.sp-day-avail::after { content: none; }
.sp-day-off { background: none; color: var(--c-gray); font-weight: 400; }
.sp-day-today { border-color: var(--c-gray); color: var(--c-white); }
.sp-day-off.sp-day-today { color: var(--c-gray); }
.sp-day-sel,
.sp-day-sel:hover:not(.sp-day-off) { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }
.sp-day:hover:not(.sp-day-off):not(.sp-day-sel) { background: var(--c-raise); border-color: var(--c-gray); }
.sp-day-sel::after { content: none; }

.sp-slots { padding-inline-start: 32px; border-inline-start: 1px solid var(--c-raise); }
.sp-slots-hd { min-height: 40px; margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.sp-slots-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 184px;
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--c-gray);
  border-radius: 12px;
  color: var(--c-gray);
  font-size: 15px;
  text-align: center;
}
.sp-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-slot {
  min-height: 56px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--c-raise);
  border-radius: 12px;
  background: var(--c-raise);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sp-slot:not(.sp-slot-sel):not(:disabled):hover { border-color: var(--c-gray); color: var(--c-white); }
.sp-slot-sel,
.sp-slot-sel:hover { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }
.sp-slot-taken,
.sp-slot-taken:hover {
  background: none;
  border-color: var(--c-red);
  color: var(--c-gray);
  opacity: 1;
}
.sp-slot-na,
.sp-slot-na:hover { background: none; border-color: var(--c-raise); color: var(--c-gray); opacity: 1; }
.sp-stag { font-size: 13px; font-weight: 700; color: var(--c-red); opacity: 1; }

/* Hours in a row (Ronen 22/11): each hour an episode. The picked hours are lit and numbered
   "פרק 1, 2..."; the next free hour waits as a dashed place with a plus, and the stepper
   under the list adds or takes off the last hour. */
.sp-stag--run { color: var(--c-ink); font-size: 12px; }
.sp-slot.sp-slot-next {
  background: none;
  border: 1px dashed var(--c-yellow);
  color: var(--c-white);
}
.sp-slot.sp-slot-next:not(:disabled):hover { border-color: var(--c-yellow); background: var(--c-raise); }
.sp-stag--next { color: var(--c-yellow); font-size: 12px; }
.sp-slot-added { animation: sp-run-add 220ms cubic-bezier(.32, .72, 0, 1); }
@keyframes sp-run-add {
  from { transform: scale(0.92); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-slot-added { animation: none; }
}

.sp-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--c-gray);
  border-radius: 14px;
}
.sp-run-text { display: grid; gap: 2px; min-width: 0; }
.sp-run-title { font-size: 15px; font-weight: 700; color: var(--c-white); }
.sp-run-sub { font-size: 13px; line-height: 1.5; color: var(--c-gray); font-variant-numeric: tabular-nums; }
.sp-run-stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.sp-run-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--c-gray);
  border-radius: 50%;
  background: none;
  color: var(--c-white);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease-out;
}
.sp-run-btn--add { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-ink); }
.sp-run-btn:not(:disabled):active { transform: scale(0.94); }
.sp-run-btn:disabled { background: var(--c-raise); border-color: var(--c-raise); color: var(--c-gray); cursor: not-allowed; }
/* Hours in a row: the guests as one list, a row per episode (number and time, then the
   guest's name). The email for that hour's invite opens under the name only on request. */
.sp-episodes-list {
  display: grid;
  border: 1px solid var(--c-gray);
  border-radius: 14px;
  text-align: start;
}
.sp-episode {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
}
.sp-episode + .sp-episode { border-top: 1px solid var(--c-raise); }
.sp-episode-when { display: grid; gap: 2px; padding-top: 10px; }
.sp-episode-n { font-size: 14px; font-weight: 700; color: var(--c-white); white-space: nowrap; }
.sp-episode-time { font-size: 13px; color: var(--c-gray); font-variant-numeric: tabular-nums; }
.sp-episode-fields { display: grid; gap: 4px; min-width: 0; }
.sp-episode-fields .sp-input { width: 100%; text-align: start; }
.sp-episode-mail {
  justify-self: start;
  min-height: 32px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--c-white);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sp-episode-mail:hover { color: var(--c-yellow); }

.sp-run-count {
  min-width: 2.2ch;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
}

/* The way on is the card's last row, across both columns: one panel from the month to the
   button (Ronen 17/11). It stays in reach at the foot of the screen while the card scrolls. */
.sp-confirm {
  grid-column: 1 / -1;
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 16px 0 4px;
  border: 0;
  border-top: 1px solid var(--c-raise);
  border-radius: 0;
  background: var(--c-panel);
}
.sp-confirm-text { font-size: 15px; font-weight: 700; color: var(--c-white); }

/* The same container step style.css stacks the card at. */
@container canvas (max-width: 720px) {
  .sp-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 18px 14px; }
  .sp-slots { padding-inline-start: 0; border-inline-start: 0; }
  .sp-slots-empty { min-height: 88px; }
  .sp-confirm { padding: 14px 0 6px; }
  .sp-day { height: 42px; font-size: 14px; }
  .sp-slot { min-height: 52px; }
  .sp-slots { scroll-margin-top: 16px; }
}

/* ───── UX round 19/11: the findings Ronen marked in the research ───── */
/* Every row button is a full finger tall, and a live corrections button reads live: its
   label was the gray of a disabled one (3.78:1 on the raised pill). */
.btn-shorts,
.btn-publish,
.btn-reschedule,
.btn-revision,
.btn-view-deliverables,
.btn-cancel { min-height: 44px; }
.btn-revision .rev-label {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-white);
}
.btn-revision--disabled .rev-label { color: var(--c-gray); }
/* Inside the last five days a shoot has no buttons; this line says why, and who to ask. */
.project-lock-note { margin: 0; color: var(--c-gray); font-size: 13.5px; line-height: 1.5; }

/* The one line on top of a panel that says what it wants from the client. */
.panel-lead { margin: 2px 0 14px; color: var(--c-white); font-size: 16px; font-weight: 700; line-height: 1.5; }

/* Shorts picker: what the short is about is the tile's text, white and readable, and the
   whole tile picks it. The number is small; "צפייה" under it is a full finger tall. */
#shortsGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 10px; margin-top: 12px; }
#shortsGrid .short-cell { grid-template-rows: 1fr auto; align-content: stretch; gap: 6px; }
#shortsGrid .short-option { height: auto; min-height: 92px; aspect-ratio: auto; overflow: visible; border-color: var(--c-gray); }
#shortsGrid .short-option:has(.short-checkbox:checked) { border-color: var(--c-yellow); }
#shortsGrid .short-option:hover { transform: none; }
#shortsGrid .short-option-label {
  position: relative;
  inset: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  place-items: initial;
  gap: 6px;
  padding: 10px 12px 12px;
}
#shortsGrid .short-check { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; }
#shortsGrid .short-num { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--c-gray); transform: none; }
#shortsGrid .short-topic {
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#shortsGrid .short-topic:empty { display: none; }
/* No topic yet (the read of the clip is still coming): the number is the tile. */
#shortsGrid .short-option-label:has(.short-topic:empty) { justify-content: center; align-items: center; }
#shortsGrid .short-option-label:has(.short-topic:empty) .short-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--c-white); }
#shortsGrid .short-option:has(.short-checkbox:checked) .short-num { color: var(--c-gray); }
#shortsGrid .short-option--extra:has(.short-checkbox:checked) :is(.short-topic, .short-num) { color: var(--c-ink); }
#shortsGrid .short-option--extra::after { top: auto; right: auto; bottom: 8px; left: 8px; }
#shortsGrid .short-cell .short-watch { height: 44px; min-height: 44px; font-size: 14px; }

/* The shorts bar: pinned to the foot of the panel while the grid scrolls under it, the
   count on one side and the one button on the other. The panel's own padding is undone
   so the bar meets its edges. */
.shorts-bar {
  position: sticky;
  bottom: -16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px -14px -16px;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-raise);
  background: var(--c-panel);
}
.shorts-bar-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.shorts-bar-text p { margin: 0; }
.shorts-bar-count { color: var(--c-white); font-size: 16px; font-weight: 700; line-height: 1.4; }
.shorts-bar-sub { color: var(--c-gray); font-size: 13px; line-height: 1.4; }
.shorts-bar-error { color: var(--c-red); font-size: 13.5px; line-height: 1.4; }
.shorts-bar .btn { flex: none; min-width: 120px; min-height: 48px; }

/* In the player: a short the client already picked says so beside the undo. */
.video-picked { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--c-yellow); font-size: 15px; font-weight: 700; }
.video-picked svg { width: 18px; height: 18px; fill: currentColor; }

/* A card whose selection was just sent says so in place of its button. */
.project-sent-note { color: var(--c-white); font-size: 14px; }

/* The approval bar: pinned to the foot of the deliverables panel like the shorts bar.
   The rounds left in words on top, then the approval and, once written, the corrections. */
.approval-footer {
  position: sticky;
  bottom: -16px;
  z-index: 3;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 16px -14px -16px;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-raise);
  background: var(--c-panel);
}
.approval-round { margin: 0; color: var(--c-gray); font-size: 13.5px; font-weight: 400; }
.approval-actions { display: flex; gap: 10px; }
.approval-actions > * { flex: 1; min-width: 0; }
.approval-actions .btn { width: 100%; min-height: 48px; }
.batch-send { display: flex; }
.approval-more { margin-top: 8px; }
.approval-more .approval-add-shorts { margin: 0; }

/* A delivered short's tile carries its topic, two lines at most. */
.dtile .deliv-item-label,
.dtile:not(.has-poster) .deliv-item-label {
  inset: auto 6px 8px;
  display: -webkit-box;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--c-white);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* In the player: the versions of a short, the one on screen marked. */
.video-versions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.video-version {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--c-gray);
  border-radius: 999px;
  background: none;
  color: var(--c-white);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.video-version[aria-pressed="true"] { border-color: var(--c-yellow); color: var(--c-yellow); font-weight: 700; }

/* ───── Rounding pass 19/11: what the screens showed once every corner was round ───── */
/* Spinners: the shorthand border above wiped the yellow arc, so they stood still. */
.loader,
.cp-spinner,
.pb-mini.is-loading::after { border-top-color: var(--c-yellow); }
/* Fields: one edge, one focus. Text areas had a near invisible edge beside the gray one-line
   fields, and a focused field wore a dark halo around its yellow edge. */
.upl-textarea,
.sp-select { border: 2px solid var(--c-gray); }
textarea:focus,
.sp-input:focus,
.sp-select:focus,
.upl-input:focus,
.upl-textarea:focus { box-shadow: none; }
/* A field with an error is drawn one way: a red edge, focused or not. */
.sp-input.sp-input--error,
.sp-input.sp-input--error:focus,
.sp-check-row .sp-input--error { border-color: var(--c-red); box-shadow: none; }
/* Round buttons sit on the panel without a dark ring. */
.revision-close,
.sp-nav-btn,
.sp-back { border: 0; background: var(--c-raise); }
/* The menu on a phone: no dashed rules under its links, and it opens right under the bar. */
.nav-link { border-bottom: 0; }
@container canvas (max-width: 720px) {
  .nav-links { top: 54px; border-top: 0; }
}
/* Breathing room: cards apart, page titles off their panel. */
.project-list { gap: 12px; }
.sp-header { margin-bottom: 24px; }
/* The package's numbers line up in one column. */
.card,
.card--highlight { grid-template-columns: minmax(0, 1fr) 3ch 16ch; }
.card-sub { white-space: normal; }
/* Counters and labels on tiles are rounded like everything else. */
.btn-revision .rev-counter { padding: 0 8px; border-radius: 999px; }
.dtile .deliv-item-label,
.dtile:not(.has-poster) .deliv-item-label { border-radius: 12px; }
/* A landscape video in the phone player keeps its corners. */
.video-stage .video-iframe-wrap:not(.is-image) { border-radius: 12px; }
/* The player's one-time tip: its title, its sentence and its button each on a line. */
.cp-tip { display: grid; gap: 4px; }
.cp-tip b { display: block; }
.cp-tip-ok { justify-self: start; }
/* The deliverables jump chips wrap on a phone instead of running off the sheet. */
@container canvas (max-width: 720px) {
  .deliv-nav { flex-wrap: wrap; overflow-x: visible; }
}
/* Shorts picker: the recommendation badge sits inside the tile beside the tick, a picked
   tile with no topic yet keeps a white number, and a paid tile keeps room for its ₪. */
#shortsGrid .short-reco-badge { top: 9px; right: auto; left: 38px; }
#shortsGrid .short-option:has(.short-checkbox:checked) .short-option-label:has(.short-topic:empty) .short-num { color: var(--c-white); }
#shortsGrid .short-option--extra .short-option-label { padding-bottom: 36px; }


/* ═══════════════ Dashboard, direction A3 (Ronen 19/11) ═══════════════
   What waits for the client is a dark card under a yellow bar that says what waits, with the
   episode's still and, on the shorts card, the clips themselves; the card's one button is
   yellow. Beside it on a computer: the package, the booking as the page's big yellow button,
   and the shoots. On a phone the blocks keep the order they always had. */
.dash-grid { display: flex; flex-direction: column; }
.dash-main,
.dash-side { display: contents; }
.dash-grid .section--waiting { order: 1; }
.dash-grid .alert--new { order: 2; }
.dash-grid .cards { order: 3; }
.dash-grid .cta-block,
.dash-grid .alert--info { order: 4; }
.dash-grid .section--channel { order: 5; }
.dash-grid .section--upcoming { order: 6; }
.dash-grid .section--active { order: 7; }
.dash-grid .section--done { order: 8; }
.cta-block .btn,
.cta-block .btn--primary { min-height: 64px; font-size: 19px; }

.project-item--waiting {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px;
  overflow: hidden;
  background: var(--c-panel);
  color: var(--c-white);
}
.project-item--waiting > * { margin-inline: 18px; }
.project-item--waiting > .wait-ask {
  margin: 0;
  padding: 12px 18px;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.project-item--waiting .project-name { color: var(--c-white); font-size: 16px; font-weight: 700; }
.project-item--waiting :is(.ptl-now, .project-meta, .project-meta--dim, .shorts-meter, .shorts-meter *) { color: var(--c-gray); }
.project-item--waiting .ptl-bar { height: 4px; border-radius: 999px; background: var(--c-raise); box-shadow: none; }
.project-item--waiting .ptl-fill { border-radius: 999px; background: var(--c-white); }
.project-item--waiting :is(.btn-shorts:not(.btn-shorts--add), .btn-view-deliverables[data-approval="1"]) {
  min-height: 48px;
  padding: 0 24px;
  border-color: var(--c-yellow);
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 700;
}
.project-item--waiting > :is(.btn-view-deliverables, .btn-publish) { justify-self: start; }
.project-item--waiting > .project-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 14px; width: auto; min-width: 0; }
.wait-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-ink);
  cursor: pointer;
}
.wait-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wait-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--c-yellow);
}
.wait-play::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  margin: -9px 0 0 -6px;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--c-ink);
}
.wait-strip { display: flex; gap: 8px; margin-top: 12px; }
.wait-strip img,
.wait-strip span { width: 48px; aspect-ratio: 9 / 16; border-radius: 8px; object-fit: cover; }
.wait-strip span { display: grid; place-items: center; background: var(--c-raise); color: var(--c-white); font-size: 14px; font-weight: 700; }

@container canvas (min-width: 1000px) {
  .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .dash-main { display: block; }
  .dash-side { display: grid; gap: 16px; }
  .dash-side > *,
  .dash-side .cards,
  .dash-side .cta-block { margin: 0; }
  .dash-side .card-value,
  .dash-side .card-value--large { color: var(--c-yellow); font-size: 36px; }
  .project-item--waiting > .wait-ask { padding: 14px 22px; font-size: 20px; }
  .project-item--waiting:has(> .wait-media:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 24px;
    align-items: start;
  }
  .project-item--waiting > .wait-ask { grid-column: 1 / -1; }
  .project-item--waiting > .wait-media { grid-column: 2; grid-row: 2 / span 3; margin-inline: 0 18px; }
  .project-item--waiting > :not(.wait-ask):not(.wait-media) { grid-column: 1; }
}
