/* ============================================================
   The 2026-11 look refresh — shared base.
   Every refresh-*.css file is loaded AFTER the old styles and every rule in
   them starts with `body.rf`, so the refresh can be switched off by removing
   the `rf` class from <body> (index.html), and it always wins over the old
   rules without !important.

   The colour order («לפי התכנון»): white columns/cards, ONE grey inside,
   white content on the grey; the chosen thing = white raised on the grey;
   teal only for what is chosen, what you click, and the main action.
   No green states (green stays only in «API מחובר · שרת פעיל»).

   Use these tokens, never raw colours, so dark mode keeps working.
   ============================================================ */
body.rf {
  --rf-card: #ffffff;                       /* columns, cards, chosen items */
  --rf-grey: #eef2f6;                       /* the one grey inside a card */
  --rf-grey-2: #e2e8ef;                     /* a shade darker, rarely needed */
  --rf-line: rgba(14, 28, 48, 0.1);         /* hairlines */
  --rf-line-2: rgba(14, 28, 48, 0.16);
  --rf-raise: 0 0 0 1px rgba(14, 28, 48, 0.1);            /* chosen = white, a hairline, NO drop shadow (the user, 11-10: shadows on buttons were too heavy) */
  --rf-shadow: 0 2px 10px rgba(14, 28, 48, 0.06), 0 1px 2px rgba(14, 28, 48, 0.04);
  --rf-teal-bar: #dcedef;                   /* the create bar */
  --rf-teal-on: #c6e5e8;                    /* a tool that is ON (editor) */
  --rf-teal-ink: #06505a;
  --rf-danger-soft: #fdecec;
  --rf-backdrop: rgba(10, 22, 40, 0.32);
}
[data-theme="dark"] body.rf {
  --rf-card: var(--surface);
  --rf-grey: var(--surface-2);
  --rf-grey-2: var(--surface-hover);
  --rf-line: var(--border);
  --rf-line-2: var(--border-strong);
  --rf-raise: 0 0 0 1px var(--border);
  --rf-shadow: var(--shadow-sm);
  --rf-teal-bar: rgba(32, 167, 178, 0.16);
  --rf-teal-on: rgba(32, 167, 178, 0.28);
  --rf-teal-ink: var(--accent-bright);
  --rf-danger-soft: rgba(240, 109, 114, 0.16);
  --rf-backdrop: rgba(0, 0, 0, 0.5);
}

/* buttons are flat: no drop shadow on the white buttons (the user, 11-10) */
body.rf .btn-secondary,
body.rf .btn-secondary:hover:not(:disabled) {
  box-shadow: none;
}

/* ── renaming in place (the user, 11-11: «כל מקום שלוחצים על השם לערוך אין
   עיצוב, סתם ריבוע») ── every name that turns into a field when clicked —
   the project and the group (project-name-input), a shot in the list, a file,
   a video, a title on the shots board, an element tile — is one field: white,
   rounded, a thin teal line and a soft teal halo while you type. Each keeps
   the size of the words it replaces. */
body.rf :is(
  .project-name-input,
  .rail-title-input,
  .panel-video-name-input,
  .file-item-name-input,
  .ov-title-input
) {
  min-height: 0;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 8px;
  background: var(--rf-card);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--text);
  font-family: inherit;
  outline: none;
}
body.rf .elem-tile-name-input:focus {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--rf-card);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent),
    0 0 0 4px var(--accent-soft);
}
/* the project's name in its bar: a size that reads as the page's title (it was
   too small after the compact pass) — the field when renaming matches it */
body.rf .workspace-root .project-header .project-name-editable,
body.rf .workspace-root .project-header .ws-sk-project-name,
body.rf .workspace-root .project-header .project-name-input {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.rf .workspace-root .project-header .project-name-input {
  max-width: 360px;
  padding: 2px 10px;
}
