/* The 2026-11 look refresh — colour. Every rule starts with body.rf (see
   refresh-base.css); linked after the area files and before refresh-compact.css.

   The user, 11-10: the site looks too grey and white (palettes were rejected —
   the teal stays the brand). So colour is ADDED next to the teal, never instead:
   - the page is ONE colour, «ערפל טורקיז», and the boxes inside the columns
     take its hue (no two-colour glow — the user, 11-10);
   - every screen in the one shots teal (each had its own colour — blue,
     violet, rose — until the user asked for one, 11-10);
   - the open project in the side menu is soft teal, not grey;
   - the main buttons get a gentle teal gradient (the logo's teal → bright teal).
   Each block below stands alone, so any one of them can be dropped. */

body.rf {
  /* every screen in the shots teal (the user, 11-10: «שכולם יהיו כמו החלון קטעים»);
     the names stay so each screen can get its own colour back in one line */
  --rf-c-plan: #0d8794;
  --rf-c-plan-soft: #dcf0f2;
  --rf-c-shots: #0d8794;
  --rf-c-shots-soft: #dcf0f2;
  --rf-c-ws: #0d8794;
  --rf-c-ws-soft: #dcf0f2;
  --rf-c-files: #0d8794;
  --rf-c-files-soft: #dcf0f2;
  --rf-nav-tint: color-mix(in srgb, var(--accent-bright) 7%, var(--nav-bg));
  --rf-col-tint: 7%;
  --rf-open: color-mix(in srgb, var(--accent-bright) 16%, var(--rf-card));
  --rf-open-ink: var(--rf-teal-ink);
  --rf-primary-grad: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, var(--accent-bright)) 100%);
  --rf-primary-grad-hover: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  --rf-tab-on: #ffffff;
}
[data-theme="dark"] body.rf {
  --rf-c-plan: #4fd1db;
  --rf-c-plan-soft: rgba(79, 209, 219, 0.16);
  --rf-c-shots: #4fd1db;
  --rf-c-shots-soft: rgba(79, 209, 219, 0.16);
  --rf-c-ws: #4fd1db;
  --rf-c-ws-soft: rgba(79, 209, 219, 0.16);
  --rf-c-files: #4fd1db;
  --rf-c-files-soft: rgba(79, 209, 219, 0.16);
  --rf-col-tint: 9%;
  --rf-nav-tint: var(--nav-bg);
  --rf-open: rgba(32, 167, 178, 0.2);
  --rf-open-ink: var(--accent-bright);
  --rf-tab-on: #0b1522;
}

/* ── 1. the page: ONE colour, «ערפל טורקיז» (the user, 11-10: «יותר ניגוד»,
   «לא אוהב שזה שני צבעים») — and inside the columns the boxes take the same
   hue instead of grey, a little deeper, with darker secondary words and a
   clearer card shadow, so cards and boxes stand out. Light mode only; dark
   keeps its own surfaces. ── */
:root:not([data-theme="dark"]) body.rf {
  --bg: #cfe2e6;
  --rf-grey: #dcedf0;
  --rf-grey-2: #cde3e7;
  --rf-line: rgba(10, 90, 100, 0.16);
  --rf-line-2: rgba(10, 90, 100, 0.26);
  --text-3: #3d4e62;
  --text-muted: #56677b;
  --rf-shadow: 0 1px 2px rgba(14, 28, 48, 0.1), 0 6px 18px rgba(14, 28, 48, 0.1);
}
body.rf .main-area {
  background: var(--bg);
}

/* ── 2. the side menu: a breath of teal; the open project soft teal ── */
/* …one flat tint from top to bottom (the user, 11-10: «רק הגוון האמצעי» — the
   glow around the logo and the ember at the foot are gone) */
body.rf .side-nav {
  background: var(--rf-nav-tint);
}
body.rf .sidebar-project.active {
  background: var(--rf-open);
  color: var(--rf-open-ink);
}

/* ── 3. a colour per tab ── */
body.rf .workspace-root .project-header-tabs .wtab[data-tab="planning"] { --rf-tab-c: var(--rf-c-plan); }
body.rf .workspace-root .project-header-tabs .wtab[data-tab="shots"] { --rf-tab-c: var(--rf-c-shots); }
body.rf .workspace-root .project-header-tabs .wtab[data-tab="workshop"] { --rf-tab-c: var(--rf-c-ws); }
body.rf .workspace-root .project-header-tabs .wtab[data-tab="files"] { --rf-tab-c: var(--rf-c-files); }
/* the tabs: quiet grey, and the open one filled with its own colour, white
   words (the user chose «מלא בצבע», 11-10). In dark mode the tab colours are
   light, so the words on them are dark. */
body.rf .workspace-root .project-header-tabs .wtab[data-tab] .wtab-icon {
  color: var(--text-muted);
}
body.rf .workspace-root .project-header-tabs .wtab[data-tab]:hover:not(.active) .wtab-icon {
  color: var(--rf-tab-c);
}
body.rf .workspace-root .project-header-tabs .wtab[data-tab].active,
body.rf .workspace-root .project-header-tabs .wtab[data-tab].active:hover {
  background: var(--rf-tab-c);
  box-shadow: none;
  color: var(--rf-tab-on);
  font-weight: 700;
}
body.rf .workspace-root .project-header-tabs .wtab[data-tab].active .wtab-icon {
  color: var(--rf-tab-on);
}

/* «עורך»: on its own, outside the tabs' grey capsule (the user, 11-10: «הייתי
   מפריד את עורך משאר השורה»), 8px from them, corners like every other button,
   in the teal of the main buttons (11-11: «שיהיה טורקיז»), and a small player
   icon instead of the film's picture. Higher specificity than refresh-compact.css, which
   sizes the old in-capsule button. */
body.rf .workspace-root .project-header .project-header-bottom {
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
body.rf .workspace-root .project-header .project-header-tabs {
  /* a little more room between the tabs and their shared frame (11-11) */
  padding: 4px;
  border-radius: 10px;
  background: var(--rf-grey);
}
body.rf .workspace-root .project-header .btn-open-editor {
  height: 34px;
  margin: 0;
  padding: 0 16px;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background-color: var(--accent);
  background-image: var(--rf-primary-grad);
  box-shadow: none;
  color: var(--text-on-accent);
  font-size: 13px;
  font-weight: 700;
}
body.rf .workspace-root .project-header .btn-open-editor:hover:not(:disabled),
body.rf .workspace-root .project-header .btn-open-editor:active:not(:disabled) {
  background-color: var(--accent-hover);
  background-image: var(--rf-primary-grad-hover);
  color: var(--text-on-accent);
}
body.rf .workspace-root .project-header .btn-open-editor::before {
  display: none;
}
body.rf .btn-open-editor .btn-open-editor-icon {
  display: inline-flex;
  flex: none;
  color: currentColor;
}
body.rf .btn-open-editor .btn-open-editor-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* every screen's columns: a faint wash of the screen's colour at the top */
body.rf .pc-page { --rf-area: var(--rf-c-plan); }
body.rf .shots-layout { --rf-area: var(--rf-c-shots); }
body.rf .workshop-grid { --rf-area: var(--rf-c-ws); }
body.rf .files-panel { --rf-area: var(--rf-c-files); }
body.rf .pc-main,
body.rf .pd-side,
body.rf .pc-director,
body.rf .shots-layout > .shot-rail,
body.rf .shots-layout > .shot-stage,
body.rf .shots-layout > .videos-panel,
body.rf .workshop-grid > .workshop-shot-list,
body.rf .workshop-grid > .ws-area-stage,
body.rf .workshop-grid > .ws-area-options,
body.rf .files-panel .files-section {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rf-area, var(--accent)) var(--rf-col-tint), var(--rf-card)) 0, var(--rf-card) 150px)
    var(--rf-card);
}

/* «תכנון»: the tiles' icons in the planning blue */
body.rf .pc-source-tiles .pc-tile-icon {
  border-color: transparent;
  background: var(--rf-c-plan-soft);
  color: var(--rf-c-plan);
}

/* «עריכה»: the tools' icons in the workshop violet; the chosen tool keeps it */
body.rf .ws-options-menu .ws-menu-btn .ws-menu-icon {
  color: var(--rf-c-ws);
}

/* «קבצים»: the counts as small rose pills */
body.rf .files-panel .files-jump-count,
body.rf .files-panel .files-section-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rf-c-files-soft);
  color: var(--rf-c-files);
  font-weight: 700;
  text-align: center;
}

/* ── 4. the main buttons: the logo's teal → bright teal ── */
body.rf .btn-primary {
  background-image: var(--rf-primary-grad);
}
body.rf .btn-primary:hover:not(:disabled),
body.rf .btn-primary:active:not(:disabled) {
  background-image: var(--rf-primary-grad-hover);
}

/* «עריכה» on a narrow screen: the tool picker's icons in the same violet */
body.rf .ws-tool-picker-trigger .ws-tool-picker-icon,
body.rf .ws-tool-picker-panel .ws-menu-btn .ws-menu-icon {
  color: var(--rf-c-ws);
}
body.rf .ws-tool-picker-panel .ws-menu-btn.active .ws-menu-icon {
  color: var(--accent);
}

/* ── the side menu's buttons (the user, 11-11) ──
   «הגדרות» takes the footer's free width (next to the status words) at a
   proper height; and on hover none of the white buttons turns into the side
   menu's own tint any more — they stay white, a teal hairline and teal words
   say "you are on it". */
body.rf .side-nav .nav-footer .nav-item-lg {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  gap: 8px;
  border-radius: 10px;
  font-size: 13.5px;
}
body.rf .side-nav .nav-footer .nav-item-lg .nav-icon,
body.rf .side-nav .nav-footer .nav-item-lg .nav-icon svg {
  width: 17px;
  height: 17px;
  font-size: 17px;
}
body.rf .side-nav .sidebar-status-meta {
  flex: none;
}
body.rf .side-nav .sidebar-actions .sidebar-new-btn:hover:not(:disabled),
body.rf .side-nav .nav-footer .nav-item-lg:hover {
  background: var(--rf-card);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--rf-teal-ink);
  box-shadow: 0 1px 4px rgba(10, 107, 118, 0.14);
}
body.rf .side-nav .nav-footer .nav-item-lg:hover .nav-icon {
  color: var(--accent);
}

/* «פרויקט חדש» / «קבוצה חדשה» = the same white button as «הגדרות» at the
   bottom (the user chose «ב», 11-11): they were lower (32px), with smaller
   words and a darker frame, so the menu had two kinds of white button.
   12.5px, not «הגדרות»'s 13.5: two of them share the row, and «קבוצה חדשה»
   is cut at 13px. Computer only — the phone drawer already gives all three 40px. */
@media (min-width: 769px) {
  body.rf .side-nav .sidebar-actions {
    gap: 6px;
    margin: 4px 0 12px;
  }
  body.rf .side-nav .sidebar-actions .sidebar-new-btn {
    height: 38px;
    gap: 6px;
    border-color: var(--rf-line);
    border-radius: 10px;
    font-size: 12.5px;
  }
}

/* «עורך»'s player icon draws itself on hover like the tab icons — the frame
   is traced, the ▶ gives a small push (the user, 11-11) */
body.rf .btn-open-editor:hover .ed-ic-frame {
  stroke-dasharray: 1;
  animation: rf-ic-draw 0.7s ease both;
}
body.rf .btn-open-editor:hover .ed-ic-play {
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-ed-play 0.6s ease both;
}
@keyframes rf-ed-play {
  0% { transform: scale(1); }
  45% { transform: scale(1.35) translateX(1px); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.rf .btn-open-editor:hover .ed-ic-play {
    animation: none;
  }
}

/* ── the side list: what belongs to which group (the user chose «ב», 11-11) ──
   The group's folder and a project's picture sat in the same column, so a
   group read like one more project. Now the group name is a clear heading and
   its projects step in under it, joined by a thin line on their start side;
   the open project's line is teal. */
body.rf .side-nav .sidebar-group-label {
  padding: 10px 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
body.rf .side-nav .sidebar-group-label.muted {
  color: var(--text-3);
}
body.rf .side-nav .sidebar-project {
  margin-inline-start: 12px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--rf-line-2);
  border-radius: 8px;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
body.rf .side-nav .sidebar-project.active {
  border-inline-start-color: var(--accent);
}

/* ── the side menu's foot (the user, 11-11: the API / server words looked
   loose and squeezed beside «הגדרות») ──
   The two states together in ONE quiet panel — a soft teal tint, no shadow, no
   white frame, so it reads as information, not as another button — on a row
   of its own ABOVE «הגדרות», which stays at the very bottom, the full width. */
body.rf .side-nav .nav-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
body.rf .side-nav .nav-footer .nav-item-lg {
  order: 1;
  width: 100%;
}
body.rf .side-nav .sidebar-status-meta {
  order: 0;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
body.rf .side-nav .sidebar-status-meta .status-bit {
  flex: none;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

/* ── the project bar's order (the user, 11-11: «ד» + «א») ──
   What tells about the project on one side — the name, its ⋮, the details —
   and what you press on the other: undo / redo move to the far end, next to
   the tabs, as two small white circles with a hairline (a shape nothing else
   in the bar has, so they don't read as more tabs). The order is computer
   only — the phone keeps its own arrangement — but the circles are on the
   phone too (the user, 11-11: «גם במצב נייד, עם מסגרת עגולה»). On the phone
   they sit at the left end of the name's line, a little smaller (the user:
   «בצד שמאל של השורה… טיפה יותר קטנים»). */
body.rf .workspace-root .project-header .project-undo-group {
  gap: 6px;
}
body.rf .workspace-root .project-header .project-undo-btn {
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rf-card);
  box-shadow: 0 0 0 1px var(--rf-line-2);
  color: var(--text-2);
}
body.rf .workspace-root .project-header .project-undo-btn:hover:not(:disabled) {
  background: var(--rf-card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}
body.rf .workspace-root .project-header .project-undo-btn:disabled {
  opacity: 0.4;
}
@media (max-width: 768px) {
  body.rf .workspace-root .project-header .project-name-row {
    flex: 1 1 100%;
  }
  body.rf .workspace-root .project-header .project-undo-group {
    margin-inline-start: auto;
  }
  body.rf .workspace-root .project-header .project-undo-btn {
    width: 28px;
    height: 28px;
  }
}
@media (min-width: 769px) {
  body.rf .workspace-root .project-header .project-name-row {
    display: contents;
  }
  body.rf .workspace-root .project-header .project-name-wrapper {
    order: 1;
  }
  body.rf .workspace-root .project-header .project-menu-wrapper {
    order: 2;
  }
  body.rf .workspace-root .project-header .project-header-title p.project-stats-row {
    order: 3;
  }
  body.rf .workspace-root .project-header .project-undo-group {
    order: 4;
    display: inline-flex;
    align-items: center;
    margin-inline-start: auto;
  }
}
