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

/* «תכנון» = look «ב · כרטיסים רכים», steps in one row, colours «לפי התכנון»
   (approved 11-10):
   - the same three columns (director right, the chapter in the middle, the
     details left), white cards; the details column 320 → 290;
   - the steps are a grey capsule like the project tabs, the open one white and
     raised; circle and name on ONE row (the circle above the name only when
     the bar is under 470px);
   - no box in a box: the chapter sits on the white card; each section is a
     soft grey card with white content on it; «הגדרות הסרט» and «השיר והמילים»
     side by side; «בקשת שינוי» a white message box with a square send;
   - teal only for what is chosen, what you click and the main action; no green.
   «בלי תכנון»: no step bar — a title, a line and what is missing in words
   (planning-tab.js manualHead), the same soft cards, «המשך לקטעים» at the foot,
   «הגדרות הסרט» open in the details column. */

/* ── the three columns ───────────────────────────────────────────────────── */
@media (min-width: 1025px) {
  body.rf .pc-app {
    gap: 16px;
  }
}

@media (min-width: 1281px) {
  body.rf .pc-app {
    grid-template-columns: 280px minmax(0, 1fr) 290px;
  }

  /* «בלי תכנון»: «הגדרות הסרט» the same width as with planning (the user,
     11-10: the window changed size between the two) */
  body.rf .pc-app.pc-app--manual {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

body.rf .pc-main,
body.rf .pd-side,
body.rf .pc-director {
  border-color: transparent;
  border-radius: 16px;
  background: var(--rf-card);
  box-shadow: var(--rf-shadow);
}

/* ── the steps: a grey capsule, the open one white and raised ───────────── */
body.rf .pc-stage-nav {
  position: static;
  display: flex;
  gap: 2px;
  margin: 10px 10px 2px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-grey);
  container-type: inline-size;
}

body.rf .pc-stage-btn {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  white-space: nowrap;
}

body.rf .pc-stage-btn:hover {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
  color: var(--text);
}

body.rf .pc-stage-btn[aria-current="step"] {
  background: var(--rf-card);
  color: var(--text);
  box-shadow: var(--rf-raise);
}

body.rf .pc-stage-num {
  width: 18px;
  height: 18px;
  background: var(--rf-card);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
}

body.rf .pc-stage-num svg {
  width: 11px;
  height: 11px;
}

body.rf .pc-stage-btn.is-done .pc-stage-num {
  background: var(--accent-soft-2);
  color: var(--accent);
}

body.rf .pc-stage-btn[aria-current="step"] .pc-stage-num {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* What a step still lacks: a small dot on its circle's corner. */
body.rf .pc-stage-state {
  top: -2px;
  right: -2px;
  left: auto;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 2px var(--rf-grey);
}

body.rf .pc-stage-btn[aria-current="step"] .pc-stage-state {
  box-shadow: 0 0 0 2px var(--rf-card);
}

body.rf .pc-stage-title {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
}

/* A narrow bar: the circle goes above the name, the name stays one line. */
@container (max-width: 470px) {
  body.rf .pc-stage-btn {
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
  }

  body.rf .pc-stage-title {
    max-width: 100%;
  }
}

/* Narrower still (a small laptop with the side menu): the name may take two
   lines rather than be cut. */
@container (max-width: 380px) {
  body.rf .pc-stage-btn {
    padding-inline: 2px;
  }

  body.rf .pc-stage-title {
    white-space: normal;
    text-align: center;
  }
}

/* ── the chapter: on the white card, no box in a box ─────────────────────── */
body.rf .pc-page .pc-chapters {
  gap: 0;
  padding: 0;
}

body.rf .pc-chapter {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.rf .pc-page .pc-body {
  padding: 16px 20px;
}

body.rf .pc-page .pc-story-chapter,
body.rf .pc-page .pc-look,
body.rf .pc-page .pc-shots,
body.rf .pc-page .pv-preview {
  gap: 14px;
}

/* The foot, a hairline above; the buttons stay at the left end, in today's
   order (the user, 11-10: they had moved to the right). */
body.rf .pc-stage-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--rf-line);
  background: var(--rf-card);
}

body.rf .pc-stage-actions > .pc-actions {
  gap: 8px;
}

body.rf .pc-page .pc-stage-actions .pc-actions > .btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

body.rf .pc-page .pc-stage-actions .pc-actions > .btn-secondary {
  padding: 0 14px;
  border-color: var(--rf-line-2);
  background: var(--rf-card);
  font-size: 13px;
}

/* The progress line over the foot, on the same white. */
body.rf .pc-progress {
  border-top-color: var(--rf-line);
  background: var(--rf-grey);
}

/* ── a section: a soft grey card, its title and its actions as teal links ── */
body.rf .pc-page .pc-section-head {
  margin: 0;
}

body.rf .pc-page .pc-section .pc-section-title,
body.rf .pc-page .pc-costumes .pc-section-title,
body.rf .pc-story-head .pc-section-title {
  font-size: 15px;
  font-weight: 700;
}

body.rf .pc-page .pc-section-tools {
  gap: 4px 14px;
}

body.rf .pc-page .pc-section-tools .btn-ghost {
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

body.rf .pc-page .pc-section-tools .btn-ghost:hover:not(:disabled) {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.rf .pc-page .pc-section-hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}

/* Chapter 2 (and «בלי תכנון»): every section is a soft card. */
body.rf .pc-page .pc-look > .pc-section {
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rf-grey);
}

/* Chapter 1: «הגדרות הסרט» and «השיר והמילים» side by side, each a soft tile:
   icon and name on the first line, what is set now under them. */
body.rf .pc-source-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

body.rf .pc-page .pc-source-tiles > .pc-look-line,
body.rf .pc-page .pc-source-tiles > .pc-idea-block {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  row-gap: 6px;
  column-gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-grey);
}

body.rf .pc-page .pc-source-tiles > .pc-look-line:hover,
body.rf .pc-page .pc-source-tiles > .pc-idea-block:hover {
  background: var(--rf-grey-2);
}

/* Open in the details column: white, with a teal ring. */
body.rf .pc-page .pc-source-tiles > .is-selected,
body.rf .pc-page .pc-source-tiles > .is-selected:hover {
  background: var(--rf-card);
  box-shadow: 0 0 0 1.5px var(--accent);
}

body.rf .pc-source-tiles .pc-tile-icon {
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  background: var(--rf-card);
}

body.rf .pc-source-tiles .pc-look-label,
body.rf .pc-source-tiles .pc-idea-label {
  grid-column: 2;
  grid-row: 1;
  padding-inline-end: 18px;
  font-size: 13.5px;
}

body.rf .pc-source-tiles .pc-look-edit {
  position: absolute;
  grid-column: auto;
  grid-row: auto;
  top: 19px;
  inset-inline-end: 14px;
  color: var(--text-muted);
}

body.rf .pc-source-tiles .pc-look-text,
body.rf .pc-source-tiles .pc-idea-preview {
  grid-column: 1 / -1;
  grid-row: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  white-space: normal;
}

/* «בלי תכנון»: the one tile takes the whole row. */
body.rf .pc-look > .pc-source-tiles {
  grid-template-columns: minmax(0, 1fr);
}

/* The story: a soft card, its text on white inside it. */
body.rf .pc-page .pc-story-section {
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--rf-grey);
}

body.rf .pc-story-link {
  padding: 0;
  font-size: 12.5px;
}

body.rf .pc-story-link:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.rf .pc-page .pc-story-section .planning-story {
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--rf-card);
  box-shadow: none;
  font-size: 14.5px;
  line-height: 1.95;
}

body.rf .pc-page .pc-story-section .planning-story:focus {
  box-shadow: 0 0 0 1.5px var(--accent);
}

body.rf .pc-page .pc-story-section > .pc-empty-state {
  border-color: var(--rf-line-2);
  background: var(--rf-card);
}

/* «קו הסיפור של השיר»: a teal link under the text. */
body.rf .pc-song-arc .btn {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
}

body.rf .pc-song-arc .btn:hover:not(:disabled) {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* «בקשת שינוי»: a white message box, the send a teal square. */
body.rf .pc-page .pc-change {
  align-items: flex-end;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  padding-inline-start: 14px;
  border: 1px solid var(--rf-line-2);
  border-radius: 14px;
  background: var(--rf-card);
}

body.rf .pc-page .pc-change:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

body.rf .pc-change-label {
  display: none;
}

body.rf .pc-page .pc-change-input {
  padding: 7px 0;
  font-size: 12.5px;
}

/* The word «שנה» stays the button's name for screen readers, not on screen. */
body.rf .pc-change-send {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
  font-size: 0;
  gap: 0;
}

body.rf .pc-change-send .ui-icon {
  flex: none;
  font-size: 15px;
}

body.rf .pc-change-send .ui-icon svg {
  width: 15px;
  height: 15px;
}

/* ── chapter 2: characters and places ───────────────────────────────────── */
body.rf .pc-page .pc-faces:has(> .pc-face) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

body.rf .pc-page .pc-faces > .pc-face:not(.pc-face--place) {
  width: 78px;
  padding: 6px 2px 4px;
}

body.rf .pc-page .pc-faces--places:has(> .pc-face) {
  gap: 8px 14px;
}

body.rf .pc-page .pc-faces > .pc-face--place {
  width: 122px;
  padding: 0 0 4px;
}

body.rf .pc-page .pc-faces > .pc-face:hover {
  background: var(--rf-grey-2);
}

/* Open in the details: the picture itself is ringed (white + teal), not the tile. */
body.rf .pc-page .pc-faces > .pc-face.is-selected {
  border-color: transparent;
  background: transparent;
}

body.rf .pc-page .pc-faces > .pc-face.is-selected .pc-pic {
  border-color: transparent;
  background: var(--rf-card);
  box-shadow: 0 0 0 2px var(--accent);
}

body.rf .pc-page .pc-faces > .pc-face.is-selected .pc-face-label {
  color: var(--accent);
}

body.rf .pc-page .pc-face .pc-pic.is-empty {
  border: 1px solid var(--rf-line);
  background: var(--rf-grey);
}

body.rf .pc-page .pc-face--place .pc-pic {
  aspect-ratio: auto;
  height: 76px;
  border-radius: 10px;
}

body.rf .pc-page .pc-face--place .pc-pic.is-empty {
  border: 1.5px dashed var(--rf-line-2);
  background: transparent;
}

/* "This one needs a hand": on the circle's top corner, like a phone badge. */
body.rf .pc-face-dot {
  right: 2px;
  left: auto;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 2px var(--rf-grey);
}

body.rf .pc-face--place .pc-face-dot,
body.rf .pc-shot-frame .pc-face-dot {
  right: 5px;
}

/* on a shot's picture the dot sits ON the picture's top corner, half over
   its edge, like the dots on the step buttons above (the user, 11-11: smaller,
   then «יותר למעלה בקצה של המרובע»). The frame stops clipping so the dot can
   cross its edge; the picture keeps its own rounded corners. */
body.rf .pc-page .pc-shot-frame {
  overflow: visible;
}
body.rf .pc-page .pc-shot-frame > img {
  border-radius: 9px;
}
body.rf .pc-shot-frame .pc-face-dot {
  top: -3px;
  right: -3px;
  left: auto;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 2px var(--rf-card);
}

body.rf .pc-face-label {
  font-size: 13px;
}

/* An empty list: an icon on a teal tint and two lines. */
body.rf .pc-empty-state {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
}

body.rf .pc-empty-icon {
  width: 34px;
  height: 34px;
}

body.rf .pc-empty-copy b {
  color: var(--text);
}

/* The costumes: the card's title, and its one tile white on the grey. */
body.rf .pc-page .pc-detail-link {
  border: 0;
  border-radius: 10px;
  background: var(--rf-card);
}

body.rf .pc-page .pc-detail-link:hover {
  background: var(--rf-card);
  box-shadow: 0 0 0 1px var(--rf-line-2);
}

/* The story-sync notice: one quiet grey card. */
body.rf .pc-story-sync {
  border-color: transparent;
  border-radius: 14px;
  background: var(--rf-grey);
}

/* ── chapter 3: the scenes are the soft cards ────────────────────────────── */
body.rf .pc-page .pc-scenes {
  gap: 12px;
}

body.rf .pc-page .pc-scene,
body.rf .pc-page .pc-scene:first-child {
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}

body.rf .pc-page .pc-scene + .pc-scene {
  border-top: 0;
}

body.rf .pc-page .pc-scene-head {
  margin: -4px -6px 0;
}

body.rf .pc-page .pc-scene-head:hover {
  background: var(--rf-grey-2);
}

body.rf .pc-page .pc-scene-head.is-selected {
  background: var(--rf-card);
  box-shadow: 0 0 0 1.5px var(--accent);
}

body.rf .pc-page .pc-scene-num {
  padding: 1px 9px;
  background: var(--accent-soft);
  font-size: 11.5px;
}

body.rf .pc-page .pc-scene-titles b {
  font-size: 14px;
}

body.rf .pc-page .pc-scene-meta {
  font-size: 12px;
}

body.rf .pc-page .pc-shot-list {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}

body.rf .pc-page .pc-shot {
  padding: 3px;
}

body.rf .pc-page .pc-shot:hover {
  background: var(--rf-grey-2);
}

body.rf .pc-page .pc-shot.is-selected {
  border-color: transparent;
  background: var(--rf-card);
  box-shadow: 0 0 0 1.5px var(--accent);
}

body.rf .pc-shot-frame {
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  background: var(--rf-grey);
}

body.rf .pc-shot-frame.is-empty {
  border: 1px solid var(--rf-line);
}

body.rf .pc-page .pc-shot-frame .pc-shot-num {
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
}

body.rf .pc-shot-frame:has(img) .pc-shot-num {
  background: color-mix(in srgb, var(--rf-card) 88%, transparent);
}

body.rf .pc-page .pc-shot-title {
  font-weight: 700;
  line-height: 1.35;
}

body.rf .pc-shot-meta {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 11.5px;
}

body.rf .pc-add-shot-frame {
  border: 1.5px dashed var(--rf-line-2);
  border-radius: 10px;
}

body.rf .pc-page .pc-add-shot .pc-shot-title {
  color: var(--text);
}

/* ── chapter 4: the preview ──────────────────────────────────────────────── */
body.rf .pc-page .pv-progress {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rf-grey);
}

body.rf .pc-page .pv-missing {
  border-color: var(--rf-line);
  border-radius: 12px;
  background: var(--rf-card);
}

body.rf .pc-page .pv-missing-title {
  padding: 9px 14px;
  background: var(--rf-grey);
  font-weight: 700;
}

body.rf .pc-page .pv-missing-row {
  padding: 4px 6px 4px 14px;
  padding-inline-start: 14px;
  border-top-color: var(--rf-line);
}

body.rf .pc-page .pv-missing-row .btn {
  font-weight: 700;
}

body.rf .pv-ways {
  gap: 12px;
}

body.rf .pv-way {
  gap: 8px;
  padding: 12px 14px;
  border-color: var(--rf-line);
  border-radius: 12px;
  background: var(--rf-card);
}

body.rf .pv-way--recommended {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
}

body.rf .pv-way--done {
  background: var(--rf-grey);
}

body.rf .pv-way-head {
  font-size: 13.5px;
}

body.rf .pv-way--recommended .pc-chip {
  border-color: transparent;
  background: var(--rf-card);
  color: var(--accent);
}

body.rf .pv-way-text {
  color: var(--text-3);
}

body.rf .pc-page .pv-keys {
  gap: 12px;
}

body.rf .pc-page .pv-key {
  border: 0;
  border-radius: 12px;
  background: var(--rf-grey);
  box-shadow: none;
}

body.rf .pc-page .pv-key-thumb {
  border-radius: 12px 12px 0 0;
  background: var(--rf-grey-2);
}

/* ── «בלי תכנון»: no step bar — a title, a line, what is missing ───────────── */
body.rf .pc-page--manual .pc-stage-nav {
  display: none;
}

body.rf .pc-manual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px;
}

body.rf .pc-manual-titles {
  flex: 1;
  min-width: 0;
}

body.rf .pc-manual-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

body.rf .pc-manual-line {
  max-width: 64ch;
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

body.rf .pc-manual-missing {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 48%;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 13px;
  background: var(--rf-grey);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

body.rf .pc-manual-missing > i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}

/* ── the details column ──────────────────────────────────────────────────── */
body.rf .pd-head {
  align-items: flex-start;
  padding: 16px 16px 10px;
  border-bottom: 0;
}

body.rf .pd-title {
  font-size: 16px;
}

body.rf .pd-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rf-grey);
  color: var(--text-3);
}

body.rf .pd-close:hover {
  background: var(--rf-grey-2);
  color: var(--text);
}

body.rf .pd-close svg {
  width: 12px;
  height: 12px;
}

body.rf .pd-body {
  padding: 4px 14px 14px;
}

/* Groups: a heading and the content — no hairlines between them. */
body.rf .pd-group,
body.rf .pd-side .style-panel--compact > .pd-group:first-child {
  padding: 6px 0;
  border-top: 0;
}

body.rf .pd-group-title {
  font-size: 12.5px;
}

/* Every choice: a grey capsule, the chosen one white and raised. */
body.rf .pd-side .planning-mode-toggle,
body.rf .pd-side .style-panel--compact .style-choice-grid--seg {
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 11px;
  background: var(--rf-grey);
}

body.rf .pd-side .planning-mode-toggle .planning-mode-btn,
body.rf .pd-side .style-panel--compact .style-choice-grid--seg > .style-choice {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

body.rf .pd-side .planning-mode-toggle .planning-mode-btn:hover:not(.is-active),
body.rf .pd-side .style-panel--compact .style-choice-grid--seg > .style-choice:hover:not(.active) {
  background: color-mix(in srgb, var(--rf-card) 55%, transparent);
  color: var(--text);
}

body.rf .pd-side .planning-mode-toggle .planning-mode-btn.is-active,
body.rf .pd-side .style-panel--compact .style-choice-grid--seg > .style-choice.active {
  background: var(--rf-card);
  color: var(--text);
  box-shadow: var(--rf-raise);
}

body.rf .pd-side .planning-mode-toggle .planning-mode-btn .ui-icon {
  color: var(--text-3);
}

/* Nothing in «הגדרות הסרט» may be wider than the column (the user, 11-10: «סוג
   התכנון» pushed the column sideways → a sideways scrollbar, «בלי תכנון» and
   «חורף» cut at the edge). The three planning kinds share the width evenly and
   shrink; under ~250px their icons step aside; the body never scrolls sideways. */
body.rf .pd-body {
  overflow-x: hidden;
  container: rf-pd / inline-size;
}

/* The scrollbar (a classic Windows one sits on the left in Hebrew) took room
   on ONE side only, so the content looked pushed to the right edge, «יוצא
   מחוץ למסגרת» (the user, 11-10). The same gutter is kept on both sides and
   the side padding shrinks by it: even margins, lined up with the title. */
@media (min-width: 1025px) {
  body.rf .pd-body {
    scrollbar-gutter: stable both-edges;
    padding-inline: 7px;
  }
}

body.rf .pd-side .pd-group--mode .planning-mode-toggle {
  display: flex;
  min-width: 0;
}

body.rf .pd-side .pd-group--mode .planning-mode-btn {
  flex: 1 1 0;
  min-width: 0;
  gap: 4px;
  padding-inline: 4px;
  white-space: nowrap;
  overflow: hidden;
}

@container rf-pd (max-width: 280px) {
  body.rf .pd-side .pd-group--mode .planning-mode-btn .ui-icon {
    display: none;
  }
}

/* The capsule rows wrap to a second line before they run out of room. */
body.rf .pd-side .style-panel--compact .style-choice-grid--seg > .style-choice {
  padding-inline: 6px;
}

/* «סגנון»: grey tiles, the chosen one white with a teal ring. */
body.rf .pd-side .style-panel--compact .style-choice--with-swatch {
  min-height: 40px;
  height: auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--rf-grey);
  box-shadow: none;
  color: var(--text-2);
}

body.rf .pd-side .style-panel--compact .style-choice--with-swatch:hover:not(.active) {
  background: var(--rf-grey-2);
}

/* the ring is drawn INSIDE the tile: the panel around the tiles clips what
   sticks out, so an outside ring lost its side at the column's edge (the user,
   11-10: «עדיין שבור… שבוחרים סגנון») */
body.rf .pd-side .style-panel--compact .style-choice--with-swatch.active {
  background: var(--rf-card);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

body.rf .pd-side .style-panel--compact .style-choice--with-swatch .style-choice-swatch {
  border-radius: 7px;
}

body.rf .pd-side .style-panel--compact .style-choice--with-swatch .style-choice-label {
  font-size: 12px;
  font-weight: 600;
  /* one line: «צילום ריאליסטי» broke onto two lines in a narrow column */
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.rf .pd-side .style-panel--compact .style-choice--with-swatch {
  gap: 6px;
  min-width: 0;
}

body.rf .pd-side .style-panel--compact .style-choice-grid--styles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.rf .pd-side .style-panel--compact .style-choice--with-swatch .style-choice-text {
  min-width: 0;
  flex: 1 1 auto;
}

/* Chosen = white (and a ring or a lift); the words stay dark, not teal. */
body.rf .pd-side .style-panel--compact .style-choice.active .style-choice-label {
  color: var(--text);
}

body.rf .pd-side .style-panel--compact .style-choice.active .style-choice-swatch {
  border-color: transparent;
  box-shadow: none;
}

body.rf .pd-side .style-panel--compact .style-section-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

/* The editable lists and the inputs: white on the column, a hairline round. */
body.rf .pd-side .pd-list {
  border-color: var(--rf-line);
  border-radius: 12px;
}

/* A shot's / a scene's details: soft grey cards, the heading plain on them,
   the fields white. */
body.rf .pd-body:is([data-kind="part"], [data-kind="beat"], [data-kind="shot"]) > .pd-group:has(> .pd-group-head) {
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}

body.rf .pd-body:is([data-kind="part"], [data-kind="beat"], [data-kind="shot"]) > .pd-group > .pd-group-head {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

body.rf .pd-body:is([data-kind="part"], [data-kind="beat"], [data-kind="shot"]) > .pd-group > .pd-field + .pd-field {
  border-top-color: var(--rf-line);
}

/* «השיר והמילים» in the details: soft grey steps, the words on white; each
   choice a grey card with white options, the chosen one ringed in teal. */
body.rf .pd-side .song-panel-step {
  border-radius: 14px;
  background: var(--rf-grey);
}

body.rf .pd-side .song-panel-step .planning-raw {
  border-color: transparent;
  border-radius: 10px;
  background: var(--rf-card);
}

body.rf .pd-side .song-choices {
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.rf .pd-side .song-choice,
body.rf .pd-side .song-choices > .song-choice {
  border: 0;
  border-radius: 14px;
  background: var(--rf-grey);
}

body.rf .pd-side .song-choice-opt {
  border-color: transparent;
  border-radius: 10px;
  background: var(--rf-card);
}

body.rf .pd-side .song-choice-opt:hover:not(:disabled):not(.is-active) {
  border-color: var(--rf-line-2);
}

body.rf .pd-side .song-choice-opt.is-active,
body.rf .pd-side .song-choice-opt.active {
  border-color: transparent;
  background: var(--rf-card);
  box-shadow: 0 0 0 1.5px var(--accent);
}

/* ── the director ────────────────────────────────────────────────────────── */
body.rf .director-card .director-head {
  border-bottom-color: var(--rf-line);
}

body.rf .director-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Your message: a light teal tint, dark words, your name in teal. */
body.rf .director-card .director-msg.is-user {
  background: var(--accent-soft);
  color: var(--text);
}

body.rf .director-card .director-msg.is-user .director-msg-meta,
body.rf .director-card .director-msg.is-user .director-msg-meta > span {
  color: var(--accent);
}

body.rf .director-card .director-msg.is-user .director-msg-meta time {
  color: var(--text-3);
}

/* The director's: the one grey, white content on it. */
body.rf .director-card .director-msg.is-director {
  border: 0;
  background: var(--rf-grey);
}

body.rf .director-card .director-msg {
  max-width: 100%;
  border-radius: 12px;
  font-size: 12.5px;
}

body.rf .director-card .director-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

body.rf .director-card .director-msg.is-user .director-text {
  color: var(--text);
}

body.rf .director-card .director-options {
  border-top-color: var(--rf-line);
}

body.rf .director-options .director-option,
body.rf .director-changes {
  border-color: var(--rf-line);
  border-radius: 10px;
  background: var(--rf-card);
}

body.rf .director-options .director-option:hover,
body.rf .director-options .director-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--rf-card);
  box-shadow: 0 0 0 0.5px var(--accent);
}

body.rf .pc-director .pc-director-context {
  padding: 6px 2px;
  border-top: 0;
  font-size: 11px;
  color: var(--text-muted);
}

body.rf .director-card .director-compose {
  border-color: var(--rf-line-2);
  border-radius: 14px;
  padding: 6px 8px;
  background: var(--rf-card);
}

body.rf .director-card .director-compose:focus-within {
  border-color: var(--accent);
}

/* ── a phone: tighter, as before the refresh ─────────────────────────────── */
@media (max-width: 600px) {
  body.rf .pc-page .pc-body {
    padding: 12px;
  }

  body.rf .pc-page .pc-look > .pc-section,
  body.rf .pc-page .pc-story-section,
  body.rf .pc-page .pc-scene,
  body.rf .pc-page .pc-scene:first-child {
    padding: 12px;
  }

  body.rf .pc-stage-actions {
    padding: 10px 12px;
  }

  body.rf .pc-page .pc-stage-actions .pc-actions > .btn {
    padding: 0 10px;
    font-size: 12px;
  }

  body.rf .pc-manual-head {
    flex-wrap: wrap;
  }

  body.rf .pc-manual-missing {
    max-width: 100%;
  }
}

/* ── dark mode: the grey tiles and the chosen white stay readable ───────── */
[data-theme="dark"] body.rf .pc-stage-btn[aria-current="step"],
[data-theme="dark"] body.rf .pd-side .planning-mode-toggle .planning-mode-btn.is-active,
[data-theme="dark"] body.rf .pd-side .style-panel--compact .style-choice-grid--seg > .style-choice.active {
  background: var(--surface-hover);
}
