/* The 2026-11 look refresh — workshop. Every rule starts with body.rf (see refresh-base.css). */

/* ============================================================
   «עריכה» (route workshop, js/views/workspace/workshop-tab.js)
   Approved design: the sample's «עריכה» screen (ws-r5 · wlq-3 · tm-l · tp-2 ·
   mm-3 · mt-1 · fx-a/c/d/e · ko-7). Same three columns as before — shots 108 on
   the right, the video in the middle, the tools on the left — in the planning
   colours: white columns, ONE grey inside, white content on the grey; the
   chosen thing is white (raised) on the grey; teal only for chosen / clickable
   / create. No green.
   ============================================================ */
body.rf {
  --rf-ws-amber: #c77d0a;                    /* the small icon of a yellow note */
  --rf-ws-frame-h: min(48vh, 440px);         /* the tallest the video may get */
  --rf-ws-chosen: 0 1px 4px rgba(14, 28, 48, 0.18); /* chosen = white raised */
  --rf-ws-on-pic: rgba(10, 22, 40, 0.7);     /* chips drawn ON a picture */
}
[data-theme="dark"] body.rf {
  --rf-ws-amber: #e0a43a;
  --rf-ws-chosen: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---------- the three columns ---------- */
body.rf .workshop-grid {
  gap: 16px;
}
body.rf .workshop-grid > .workshop-shot-list,
body.rf .workshop-grid > .ws-area-stage,
body.rf .workshop-grid > .ws-area-options {
  border: 0;
  border-radius: 16px;
  background: var(--rf-card);
  box-shadow: var(--rf-shadow);
}

/* ============ the shots list (right) ============ */
/* Today's tiles (picture + two-line centred name); each scene its own grey box
   with a gap, no scene titles, counts, numbers or dots. */
body.rf .workshop-grid > .workshop-shot-list {
  padding: 12px 8px 8px;
  max-height: calc(100vh - var(--topbar-h) - 80px);
}
body.rf .workshop-shot-list-header {
  padding: 2px 4px;
  border: 0;
  text-align: start;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
/* one grey box for all the shots: scenes belong to planning only (the user,
   11-10) — the per-scene wrappers stay in the markup but draw nothing */
body.rf .workshop-shot-list .workshop-shot-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  padding: 4px;
  border-radius: 12px;
  background: var(--rf-grey);
}
body.rf .workshop-scene-group {
  display: contents;
}
body.rf .workshop-scene-head {
  display: none;
}
body.rf .workshop-grid > .workshop-shot-list .workshop-shot-item {
  position: relative;
  gap: 4px;
  margin-bottom: 2px;
  padding: 4px;
  border-radius: 8px;
}
body.rf .workshop-grid > .workshop-shot-list .workshop-shot-item:last-child {
  margin-bottom: 0;
}
body.rf .workshop-shot-item:hover:not(.active) {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
}
/* the open shot: flat white, its name bold teal (like the chosen tool) */
body.rf .workshop-shot-item.active {
  background: var(--rf-card);
  box-shadow: none;
}
body.rf .workshop-grid > .workshop-shot-list .workshop-shot-item.active .workshop-shot-title {
  font-weight: 700;
  color: var(--accent);
}
body.rf .workshop-shot-thumb {
  border-radius: 8px;
}
body.rf .workshop-shot-thumb--empty {
  border: 0;
  background: repeating-linear-gradient(135deg, var(--rf-card) 0 4px, var(--rf-grey-2) 4px 8px);
}
body.rf .workshop-grid > .workshop-shot-list .workshop-shot-title {
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  color: var(--text);
}
/* the microphone (singing / audio / motion shot): a small white circle on the picture's corner */
body.rf .workshop-shot-item .shot-performance-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rf-card) 92%, transparent);
  color: var(--text-2);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.15);
}
body.rf .workshop-shot-item .shot-performance-badge .ui-icon,
body.rf .workshop-shot-item .shot-performance-badge .ui-icon svg {
  width: 10px;
  height: 10px;
}
/* the loading skeleton has no scene boxes: one grey box */
body.rf .project-load-overlay .workshop-shot-items {
  padding: 4px;
  border-radius: 12px;
  background: var(--rf-grey);
}

/* ============ the middle: title, video, «גרסאות», «שיפורים פעילים» ============ */
body.rf .workshop-grid > .ws-area-stage {
  padding: 12px;
}
body.rf .ws-area-stage .ws-stage-top {
  padding: 2px 4px 10px;
}
body.rf .ws-area-stage .ws-stage-context {
  margin: 0;
  padding: 0;
  border: 0;
}
body.rf .ws-area-stage .ws-stage-context-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
/* the video right under the title (no empty space above or below it) */
body.rf .ws-area-stage .ws-stage-preview-area {
  flex: none;
  min-height: 0;
  max-height: none;
}
body.rf .ws-area-stage .ws-stage-frame {
  width: min(100%, calc(var(--rf-ws-frame-h) * var(--ws-ar, 1.7777777778)));
  max-height: none;
  border-radius: 12px;
}
/* «גרסאות · 3»: a grey card that runs to the bottom */
body.rf .ws-area-stage .ws-versions {
  flex: 1 0 auto;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}
body.rf .ws-area-stage .ws-versions-label {
  margin: 0 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}
body.rf .ws-area-stage .ws-versions-row {
  gap: 6px;
  margin: -2px;
  padding: 2px 2px 4px;
}
body.rf .ws-area-stage .ws-version {
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: none;
}
body.rf .ws-area-stage .ws-version:hover:not(.is-editing) {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
}
/* the edited version: white and raised (no «בעריכה» chip, no green) */
body.rf .ws-area-stage .ws-version.is-editing {
  background: var(--rf-card);
  box-shadow: var(--rf-ws-chosen);
}
body.rf .ws-area-stage .ws-version-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
body.rf .ws-area-stage .ws-version-thumb > video,
body.rf .ws-area-stage .ws-version-thumb > img {
  width: 100%;
  height: 100%;
}
/* on the picture: ▶ in the middle, the length bottom-left, «בסרט» bottom-right, «הכנס לעורך» top-left */
body.rf .ws-version-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.6);
  color: var(--text-on-accent);
  pointer-events: none;
}
body.rf .ws-version-play .ui-icon,
body.rf .ws-version-play svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
  fill: currentColor;
}
body.rf .ws-version-dur {
  position: absolute;
  bottom: 5px;
  left: 5px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--rf-ws-on-pic);
  color: var(--text-on-accent);
  font: 500 10px/1.35 ui-monospace, "SF Mono", Consolas, monospace;
  direction: ltr;
  pointer-events: none;
}
body.rf .ws-area-stage .ws-version-badges {
  left: auto;
  right: 5px;
  bottom: 5px;
}
body.rf .ws-version-chip--edit {
  display: none;
}
body.rf .ws-area-stage .ws-version-chip {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--rf-ws-on-pic);
  color: var(--text-on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.rf .ws-area-stage .ws-version-insert-btn {
  top: 5px;
  inset-inline-end: 5px;
  min-height: 0;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--rf-card);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(14, 28, 48, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.rf .ws-area-stage .ws-version-insert-btn:hover {
  background: var(--rf-card);
  color: var(--accent-hover);
  box-shadow: 0 1px 4px rgba(14, 28, 48, 0.3);
}
/* the name + ONE line («Omni · לפני 1 ימים»); the longer lines are hidden */
body.rf .ws-area-stage .ws-version-body {
  gap: 2px;
  padding: 7px 4px 3px;
}
body.rf .ws-area-stage .ws-version-op,
body.rf .ws-area-stage .ws-version.is-editing .ws-version-op {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
body.rf .ws-version-line {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.rf .ws-area-stage .ws-version-tool,
body.rf .ws-area-stage .ws-version-meta,
body.rf .ws-area-stage .ws-version-from {
  display: none;
}
/* «שיפורים פעילים»: a grey card at the bottom */
body.rf .ws-area-stage .ws-enhancements-slot {
  margin-top: auto;
}
body.rf .ws-area-stage .ws-enhancements {
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}
body.rf .ws-enh-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
body.rf .ws-area-stage .ws-enh-row {
  min-height: 0;
  padding-bottom: 0;
}
body.rf .ws-area-stage .ws-enh-empty {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}
body.rf .ws-area-stage .ws-enh-chip {
  border: 0;
  background: var(--rf-card);
}
body.rf .ws-area-stage .ws-enh-chip:hover {
  background: var(--rf-card);
  box-shadow: 0 0 0 1px var(--accent);
}
body.rf .ws-area-stage .ws-enh-chip-remove {
  border-inline-start-color: var(--rf-line);
}

/* ============ the tools (left): the strip + the chosen tool's window ============ */
/* the strip: one grey, 132 wide + 12 margin, round corners, group names dark,
   a thin line between groups; the chosen tool white raised, bold, teal icon */
body.rf .ws-area-options .ws-options-menu {
  width: 132px;
  margin: 12px;
  margin-inline-end: 0;
  padding: 12px 5px;
  gap: 2px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-grey);
}
body.rf .ws-options-menu .ws-menu-group {
  margin: 8px 2px 0;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--rf-line-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
}
body.rf .ws-options-menu .ws-menu-group:first-child {
  margin: 0;
  padding: 2px 6px 4px;
  border-top: 0;
}
body.rf .ws-options-menu .ws-menu-btn {
  min-height: 30px;
  gap: 5px;
  padding: 6px;
  border: 0;
  font-size: 11.5px;
  color: var(--text-2);
}
body.rf .ws-options-menu .ws-menu-label {
  font-size: 11.5px;
}
body.rf .ws-options-menu .ws-menu-icon {
  color: var(--text-3);
}
body.rf .ws-options-menu .ws-menu-icon .ui-icon,
body.rf .ws-options-menu .ws-menu-icon svg {
  width: 13px;
  height: 13px;
}
body.rf .ws-options-menu .ws-menu-btn:hover:not(.active) {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
  color: var(--text);
}
body.rf .ws-options-menu .ws-menu-btn.active {
  background: var(--rf-card);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--rf-ws-chosen);
}
body.rf .ws-options-menu .ws-menu-btn.active .ws-menu-icon {
  color: var(--accent);
}
body.rf .ws-area-options .ws-menu-badge,
body.rf .ws-area-options .ws-menu-btn.active .ws-menu-badge {
  background: var(--rf-card);
  color: var(--text-2);
}
body.rf .ws-options-menu .ws-menu-btn.active .ws-menu-badge {
  background: var(--rf-grey);
}

/* the tool's window: its title like a column header (no grey band) */
body.rf .ws-area-options .ws-options-body {
  padding: 12px;
}
body.rf .ws-area-options .ws-options-head {
  gap: 3px;
  padding: 2px 4px 10px;
  border: 0;
  background: none;
}
body.rf .ws-area-options .ws-options-head-action {
  font-size: 14.5px;
  line-height: 1.3;
}
body.rf .ws-area-options .ws-options-head-help {
  font-size: 12px;
}
body.rf .ws-area-options .ws-options-content {
  padding: 0;
}
/* the «מהיר / חכם» switch: on grey, the chosen side white */
body.rf .ws-area-options .ws-meta-tabs.ws-seg {
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--rf-grey);
}
body.rf .ws-area-options .ws-meta-tabs.ws-seg .ws-meta-tab {
  border-radius: 8px;
}
body.rf .ws-area-options .ws-meta-tabs.ws-seg .ws-meta-tab.active {
  background: var(--rf-card);
  box-shadow: var(--rf-raise);
}
/* each step a grey card, white content inside, the number in a white circle */
body.rf .ws-area-options .ws-action-scroll {
  gap: 10px;
}
body.rf .ws-area-options .ws-ai-step-section.ws-ai-step-section {
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}
body.rf .ws-area-options .ws-ai-step-index {
  background: var(--rf-card);
  color: var(--text-2);
}
body.rf .ws-area-options .ws-ai-step-section :is(.textarea, .input, select:not(.ws-tune-select)) {
  border-color: transparent;
  background: var(--rf-card);
}
body.rf .ws-area-options .ws-ai-step-section :is(.textarea, .input, select):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}
body.rf .ws-area-options .ws-ai-step-section .btn-ghost {
  color: var(--accent);
  font-weight: 600;
}
body.rf .ws-area-options .ws-advanced-details {
  border: 0;
  border-radius: 8px;
  background: var(--rf-card);
}
body.rf .ws-area-options .ws-check.ws-runway-opt-check {
  border: 0;
  border-radius: 8px;
  background: var(--rf-card);
}
body.rf .ws-area-options :is(.ws-color-sliders, .ws-sliders) {
  border: 0;
  border-radius: 12px;
  background: var(--rf-card);
  box-shadow: none;
}
body.rf .ws-area-options .ws-slider {
  background: linear-gradient(to right, var(--accent) var(--slider-fill, 50%), var(--rf-grey-2) var(--slider-fill, 50%));
}
/* the yellow note: a white row with a small amber icon */
body.rf .ws-area-options .ws-restyle-warning {
  display: flex;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--rf-card);
  line-height: 1.6;
}
body.rf .ws-area-options .ws-restyle-warning::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--rf-ws-amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* options on grey: the chosen one white and raised (one way to mark the chosen) */
body.rf .ws-area-options :is(.ws-engine-pick, .ws-relight-dir, .ws-upscale-model) {
  border-color: transparent;
  background: none;
  box-shadow: none;
}
body.rf .ws-area-options :is(.ws-engine-pick, .ws-relight-dir, .ws-upscale-model):hover:not(.active) {
  border-color: transparent;
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
}
body.rf .ws-area-options :is(.ws-engine-pick, .ws-relight-dir, .ws-upscale-model).active {
  border-color: transparent;
  background: var(--rf-card);
  box-shadow: var(--rf-ws-chosen);
}
body.rf .ws-area-options :is(.ws-engine-pick.active .ws-step3-engine-name, .ws-relight-dir.active .ws-relight-dir-label, .ws-upscale-model.active .ws-upscale-model-name) {
  color: var(--text);
}
/* a row of options that is not inside a step (e.g. «תאורה»'s engines) sits on its own grey capsule */
body.rf .ws-area-options :not(.ws-ai-step-section) > .ws-engine-pick-row {
  padding: 3px;
  border-radius: 12px;
  background: var(--rf-grey);
}
/* pictures of people keep a ring too */
body.rf .ws-area-options .ws-recast-card {
  border-color: transparent;
}
body.rf .ws-area-options .ws-recast-card.active {
  border-color: transparent;
  background: var(--rf-card);
  box-shadow: 0 0 0 2px var(--accent);
}
/* small option pills (engine, length, kind…): the same mark - the chosen one white raised */
body.rf .ws-area-options .ws-sound-chip {
  border-color: var(--rf-line-2);
  background: transparent;
}
body.rf .ws-area-options .ws-sound-chip:hover:not(.active) {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
}
body.rf .ws-area-options .ws-sound-chip.active {
  border-color: transparent;
  background: var(--rf-card);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--rf-ws-chosen);
}
/* pictures and looks keep a teal ring */
body.rf .ws-area-options :is(.ws-look-chip, .ws-style-card) {
  border: 0;
  box-shadow: none;
}
body.rf .ws-area-options :is(.ws-look-chip.is-selected, .ws-style-card.active, .ws-style-card:focus-visible) {
  box-shadow: 0 0 0 2px var(--accent);
}
body.rf .ws-area-options .ws-auto-correct-btn {
  min-height: 34px;
  border-radius: 10px;
}

/* create: the light-teal bar with the price ON the 44px button, always last */
body.rf .ws-area-options .ws-action-dock {
  margin-top: 10px;
  padding: 6px 0 0;
  border: 0;
  background: none;
}
body.rf .ws-area-options .ws-action-dock:has(.btn-primary) {
  padding: 8px;
  border-radius: 14px;
  background: var(--rf-teal-bar);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
body.rf .ws-area-options .ws-action-dock .btn-primary {
  min-height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
}
/* the wrapper of «button + price» becomes the button; the price sits on it after
   a thin line. The button's ::after stretches over the whole wrapper, so a click
   on the price still presses the button. */
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price {
  position: relative;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--text-on-accent);
  direction: rtl;
  transition: background 0.15s var(--ease-out), opacity 0.15s var(--ease-out);
}
html[dir="ltr"] body.rf .ws-area-options .ws-action-dock .generate-btn-with-price {
  direction: ltr;
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price > .btn {
  position: static;
  flex: none;
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price > .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price > .generate-btn-price {
  margin-right: 5px;
  padding-right: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.9;
}
html[dir="ltr"] body.rf .ws-area-options .ws-action-dock .generate-btn-with-price > .generate-btn-price {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
  margin-left: 5px;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price:has(> .btn:hover:not(:disabled)) {
  background: var(--accent-hover);
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price:has(> .btn:active:not(:disabled)) {
  background: var(--accent-pressed, var(--accent-hover));
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price:has(> .btn:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price:has(> .btn:disabled) {
  opacity: 0.45;
}
body.rf .ws-area-options .ws-action-dock .generate-btn-with-price > .btn:disabled {
  opacity: 1;
}
/* a dock with only «איפוס»: no bar, the word centred under the steps */
body.rf .ws-area-options .ws-action-dock:not(:has(.btn-primary)) .btn-ghost {
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- narrow screens: the shots list is a sideways strip, no boxes ---------- */
@media (max-width: 1100px) {
  body.rf .workshop-grid > .workshop-shot-list {
    max-height: none;
  }
  body.rf .workshop-shot-list .workshop-shot-items {
    flex-direction: row;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: var(--rf-grey);
  }
  body.rf .workshop-scene-group {
    display: contents;
  }
  body.rf .workshop-grid > .workshop-shot-list .workshop-shot-item {
    border: 0;
    margin-bottom: 0;
  }
  body.rf .ws-area-options .ws-options-body {
    padding: 0 12px 12px;
  }
}
