/* The 2026-11 look refresh — proportions. Every rule starts with body.rf (see
   refresh-base.css); this file is linked LAST so it wins over the other
   refresh-*.css files without !important.

   The user, 11-10: «בפרופורציות של כל האתר יש דברים גדולים ומוגשים וזה לא אתר
   מקצועי מתוכנן נכון», then «בפרופורציות של הכל». So, on a computer screen:
   - the site's spacing scale (--s-*, used ~640 times) and the big corner radii
     step down ~15% — every screen and window gets tighter in one move;
   - the frame every screen shares (side menu, project bar, the column cards)
     loses its extra height and its big margins;
   - the heavy pieces on each screen (empty picture tiles, shot rows) shrink.
   Phones keep their own sizes (they are already tight). Remove the link in
   index.html to undo the whole step. */

@media (min-width: 769px) {
  body.rf {
    --s-3: 10px;
    --s-4: 14px;
    --s-5: 17px;
    --s-6: 20px;
    --s-7: 24px;
    --s-8: 26px;
    --s-10: 32px;
    --s-12: 40px;
    --s-16: 54px;
    --s-20: 66px;
    --r-lg: 14px;
    --r-xl: 16px;
    --r-2xl: 20px;
    --nav-w: 232px;
  }

  /* ── the page: less empty room around the screens ── */
  body.rf .content-area {
    padding: 20px 24px;
  }

  /* the columns reach the bottom again (the user, 11-10: «יש עכשיו רווח למטה»
     in «תכנון», «קטעים» and «עריכה»). Their height was "screen − 136px",
     fitted to the old 32px margins and the taller project bar; now the room
     above and below them is 20 (top) + 48 (project bar) + 12 + 20 (bottom). */
  body.rf {
    --rf-col-h: calc(100vh - 100px);
  }
  body.rf .shots-layout {
    --shots-col-h: var(--rf-col-h);
  }
  body.rf .pc-app {
    --pc-col-h: var(--rf-col-h);
  }
  body.rf .workshop-grid > .workshop-shot-list {
    max-height: var(--rf-col-h);
  }
  body.rf .ws-area-options {
    height: var(--rf-col-h);
    max-height: var(--rf-col-h);
  }

  /* ── side menu ── */
  body.rf .side-nav {
    padding: 12px 10px;
  }
  body.rf .brand {
    gap: 4px;
    padding: 0 0 8px;
  }
  body.rf .brand-logo {
    width: 38px;
    height: 38px;
  }
  body.rf .brand-name {
    font-size: 14.5px;
  }
  body.rf .brand-by {
    font-size: 8.5px;
  }
  body.rf .sidebar-actions {
    margin: 0 0 8px;
  }
  body.rf .sidebar-actions .sidebar-new-btn {
    height: 32px;
    gap: 5px;
    border-radius: 9px;
    font-size: 12px;
  }
  body.rf .sidebar-group-label {
    padding: 7px 8px 2px;
    font-size: 11px;
  }
  body.rf .sidebar-project {
    gap: 8px;
    padding: 5px 8px;
    font-size: 12.5px;
  }
  body.rf .sidebar-project-thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  body.rf .nav-footer .nav-item-lg {
    gap: 6px;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 12.5px;
  }
  body.rf .nav-footer .nav-item-lg .nav-icon,
  body.rf .nav-footer .nav-item-lg .nav-icon svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }
  body.rf .sidebar-status-meta,
  body.rf .sidebar-status-meta .status-bit {
    font-size: 10.5px;
  }

  /* ── the project bar: one step lower ── */
  body.rf .workspace-root .project-header {
    gap: 12px;
    padding-block: 6px;
    /* the name needs room from the bar's edge (the user, 11-11: «צמודה לקצה») */
    padding-inline: 18px 12px;
    margin-bottom: 12px;
    border-radius: 14px;
  }
  body.rf .workspace-root .project-name-editable,
  body.rf .workspace-root .ws-sk-project-name,
  body.rf .workspace-root .project-name-input {
    font-size: 15.5px;
  }
  body.rf .workspace-root .project-header-title p.project-stats-row {
    font-size: 11.5px;
  }
  body.rf .workspace-root .project-header-bottom {
    padding: 2px;
    border-radius: 10px;
  }
  body.rf .workspace-root .project-header-tabs .wtab {
    height: 32px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 8px;
    font-size: 12.5px;
  }
  body.rf .workspace-root .wtab-svg,
  body.rf .workspace-root .project-header-tabs .ws-sk-wtab-icon {
    width: 15px;
    height: 15px;
  }
  body.rf .workspace-root .btn-open-editor {
    height: 32px;
    gap: 7px;
    font-size: 12.5px;
  }
  body.rf .editor-thumb {
    width: 36px;
    height: 22px;
    border-radius: 4px;
  }

  /* ── the column cards: the same corners and gaps on every screen ── */
  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,
  body.rf .settings-page .ug-entry,
  body.rf .settings-page .card,
  body.rf .settings-page .card:hover,
  body.rf .gd-toc,
  body.rf .gd-ch {
    border-radius: 14px;
  }
  body.rf .workshop-grid {
    gap: 12px;
  }
}

@media (min-width: 1025px) {
  body.rf .pc-app {
    gap: 12px;
  }
}

@media (min-width: 769px) {
  /* ── «תכנון»: the foot and its buttons one step lower ── */
  body.rf .pc-stage-actions {
    padding: 10px 16px;
  }
  body.rf .pc-page .pc-stage-actions .pc-actions > .btn {
    min-height: 32px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12.5px;
  }
  body.rf .pc-page .pc-stage-actions .pc-actions > .btn-secondary {
    padding: 0 12px;
    font-size: 12.5px;
  }
  body.rf .pc-stage-btn {
    padding: 6px 6px;
  }
}

@media (min-width: 769px) {
  /* ── «קטעים»: lighter rows and empty picture tiles ── */
  body.rf .shot-rail .rail-item {
    gap: 8px;
    padding: 6px 8px;
  }
  body.rf .shot-rail .rail-thumb {
    width: 44px;
    height: 25px;
  }
  body.rf .shot-stage .frame-slot-empty-btn,
  body.rf .shot-stage .frame-slot-empty-btn--ai {
    width: 56px;
    padding: 6px 0 5px;
    border-radius: 9px;
    font-size: 10px;
  }
  body.rf .shot-stage .frame-slot-empty-btn .frame-slot-empty-btn-ico .ui-icon,
  body.rf .shot-stage .frame-slot-empty-btn .frame-slot-empty-btn-ico .ui-icon svg {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 1281px) {
  body.rf .shots-layout {
    gap: 12px;
  }
}

@media (min-width: 769px) {
  /* ── «הגדרות»: a smaller title and gear ── */
  body.rf .settings-page .settings-header {
    gap: 12px;
  }
  body.rf .settings-page .settings-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  body.rf .settings-page .settings-header-icon svg {
    width: 20px;
    height: 20px;
  }
  body.rf .settings-page .settings-greeting h1,
  body.rf .settings-page .settings-greeting h2 {
    font-size: 22px;
  }
  body.rf .settings-page .ug-entry {
    height: 54px;
    margin-bottom: 18px;
  }
}
