/* ==========================================================================
   אולפן הפרסום — מערכת העיצוב
   נייד קודם, עברית RTL, גופן Heebo. רקע שמנת חמים, כרטיסים לבנים רכים,
   כפתור ראשי בגרדיאנט זהב→טורקיז. כל המידות בנויות למסך של סמסונג ביד אחת.
   ========================================================================== */

:root {
  /* צבעי יסוד */
  --bg: #f6f6f1;
  --card: #ffffff;
  --ink: #17211f;
  --ink-soft: #414c4a;
  --muted: #7c8482;
  --line: #e8e7de;
  --line-soft: #f0efe7;

  /* מותג */
  --gold: #e2b93b;
  --gold-dark: #b8860b;
  --teal: #1f6f6b;
  --teal-dark: #175451;
  --grad: linear-gradient(115deg, #e2b93b 0%, #cdae43 38%, #1f6f6b 100%);
  --grad-soft: linear-gradient(115deg, #f3e3ab 0%, #b9d2ce 100%);

  /* משוב */
  --green: #1e7d32;
  --red: #b3261e;
  --blue: #1a5fb4;

  /* צורה */
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(23, 33, 31, .04), 0 6px 22px rgba(23, 33, 31, .055);
  --shadow-lift: 0 2px 6px rgba(23, 33, 31, .06), 0 14px 34px rgba(23, 33, 31, .09);

  /* שלד */
  --sidebar-w: 268px;
  --bottomnav-h: 66px;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--teal); }

h1, h2, h3 { line-height: 1.3; }

/* ==========================================================================
   1. שלד: סרגל צד (דסקטופ), סרגל עליון וניווט תחתון (נייד)
   ========================================================================== */

.sidebar { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  background: rgba(246, 246, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .back {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-inline-start: -6px;
  border-radius: var(--pill);
  color: var(--ink); text-decoration: none;
  font-size: 20px; line-height: 1;
  background: #fff; border: 1px solid var(--line);
}
.topbar .page-title {
  font-size: 18px; font-weight: 700; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .brand-mark {
  margin-inline-start: auto;
  font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--bottomnav-h) + 26px);
}

.bottomnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--bottomnav-h);
  color: var(--muted); text-decoration: none;
  font-size: 11.5px; font-weight: 600;
}
.bottomnav a svg { width: 23px; height: 23px; }
.bottomnav a.on { color: var(--teal); }
.bottomnav a.on svg { stroke-width: 2.1; }

/* --- דסקטופ: סרגל צד ימני --- */
@media (min-width: 900px) {
  .sidebar {
    position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 20;
    display: flex; flex-direction: column; gap: 6px;
    width: var(--sidebar-w);
    padding: 22px 18px 18px;
    background: #fff;
    border-inline-start: 1px solid var(--line);
  }
  .sidebar .logo {
    font-size: 19px; font-weight: 800; letter-spacing: -.01em;
    margin: 0 0 18px; padding-inline-start: 6px;
    display: flex; align-items: center; gap: 9px;
  }
  .sidebar .logo .dot {
    width: 26px; height: 26px; border-radius: 9px; background: var(--grad); flex: 0 0 auto;
  }
  .sidebar .side-cta { margin-bottom: 18px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 3px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border-radius: var(--radius-sm);
    color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px;
  }
  .sidebar nav a svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .sidebar nav a:hover { background: var(--line-soft); }
  .sidebar nav a.on { background: #f2f5f4; color: var(--teal); }
  .sidebar .side-user {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
    display: flex; align-items: center; gap: 10px; font-size: 14px;
  }
  .sidebar .side-user .av {
    width: 34px; height: 34px; border-radius: var(--pill); background: var(--grad);
    color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto; font-size: 15px;
  }
  .sidebar .side-user .who { min-width: 0; }
  .sidebar .side-user b { display: block; font-size: 14px; }
  .sidebar .side-user a { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; }

  body { padding-inline-end: var(--sidebar-w); }
  .topbar { display: none; }
  .bottomnav { display: none; }
  .page { padding: 34px 30px 60px; max-width: 900px; }
}

/* ==========================================================================
   2. טיפוגרפיה כללית
   ========================================================================== */

.greet { margin: 2px 0 2px; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.greet-date { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.greet-date::after {
  content: ""; display: block; width: 52px; height: 3px; margin-top: 8px;
  border-radius: 2px; background: var(--grad);
}
.page-h1 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.page-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.group-title { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 26px 0 10px; }
.caption, .legend, .hint, .sub { font-size: 13px; color: var(--muted); line-height: 1.55; }
.item-heading { font-size: 21px; font-weight: 800; margin: 2px 0 14px; }

/* ==========================================================================
   3. כרטיסים והודעות
   ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.card .sub { margin: 0 0 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.banner {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 13px 15px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600;
}
.approved-banner {
  background: #eaf6ec; border: 1px solid #bfe3c6; color: #1b5e20;
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 16px; font-weight: 700; font-size: 14.5px;
}
.notice {
  background: #fffaeb; border: 1px solid #f0dda4; border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 16px; white-space: pre-wrap; font-size: 14.5px;
}
.notice.error { background: #fdecea; border-color: #f2c4bf; color: #8c211a; }
.empty { text-align: center; color: var(--muted); padding: 46px 10px; }
.empty p { margin: 4px 0; }

/* ==========================================================================
   4. כפתורים
   ========================================================================== */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; border: 0;
  border-radius: var(--pill); padding: 13px 26px;
  font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 6px 18px rgba(31, 111, 107, .22);
  min-height: 48px;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn-primary.wide { display: flex; width: 100%; }
.btn-primary.big { font-size: 17px; padding: 16px 26px; min-height: 56px; }
.btn-primary svg { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 10px 18px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 42px;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost.on { border-color: var(--teal); background: #eef4f3; color: var(--teal-dark); font-weight: 700; }

.btn-sm {
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
  border-radius: var(--pill); padding: 7px 15px; font: inherit; font-size: 13.5px;
  font-weight: 600; cursor: pointer; min-height: 36px;
}
.btn-sm:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm:disabled { opacity: .5; cursor: default; }
.btn-sm.solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-sm.solid:hover { color: #fff; filter: brightness(1.08); }
.btn-sm.quiet { color: var(--muted); }
.btn-sm.danger { border-color: #e3b8b4; color: var(--red); }
.btn-copy { border: 1px solid var(--line); color: var(--teal); background: #fff;
  border-radius: var(--pill); padding: 6px 15px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-force { border: 1px solid var(--line); color: var(--gold-dark); background: #fff;
  border-radius: var(--pill); padding: 7px 15px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-del { background: none; border: 0; color: #a8adab; font-size: 13px; cursor: pointer; padding: 6px 8px; font-family: inherit; }
.btn-del:hover { color: var(--red); }
.link-quiet { background: none; border: 0; color: var(--teal); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline; padding: 0; }

.approve-bar { position: sticky; bottom: 0; padding: 14px 0 8px;
  background: linear-gradient(transparent, var(--bg) 34%); }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 4px 0; }

/* ==========================================================================
   5. שבבים: רשתות, סטטוסים
   ========================================================================== */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--pill); padding: 4px 11px;
  font-size: 12.5px; font-weight: 700; color: #fff; background: #999;
  border: 0; font-family: inherit; cursor: default; white-space: nowrap;
}
.chip-facebook  { background: #1877f2; }
.chip-instagram { background: #e1306c; }
.chip-linkedin  { background: #0a66c2; }
.chip-whatsapp  { background: #25d366; }
.chip-tiktok    { background: #000000; }
.chip-youtube   { background: #ff0000; }
.chip-x         { background: #111111; }
.chip-telegram  { background: #229ed9; }

.status-chip {
  flex-shrink: 0; display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 700; border-radius: var(--pill);
  padding: 5px 12px; background: #eceae2; color: #5c6260; white-space: nowrap;
}
.chip-awaiting_review { background: #fbf0cf; color: #7d6210; }
.chip-queued          { background: #e2ecfa; color: #1a4f96; }
.chip-published       { background: #e2f2e5; color: #1c6b2c; }
.chip-error           { background: #fbe3e0; color: #9c2b23; }
.chip-skipped         { background: #f8ebd9; color: #8a5a00; }
.chip-force_edit      { background: #e9e7f5; color: #4a4380; }
.chip-editing, .chip-uploaded, .chip-waiting_pc { background: #e9efee; color: #3f5b58; }

.chip-q-pending   { background: #e2ecfa; color: #1a4f96; }
.chip-q-posting   { background: #fbf0cf; color: #7d6210; }
.chip-q-posted    { background: #e2f2e5; color: #1c6b2c; }
.chip-q-cancelled { background: #eceae2; color: #5c6260; }
.chip-q-error     { background: #fbe3e0; color: #9c2b23; }

/* ==========================================================================
   6. מסך הבית
   ========================================================================== */

.start-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.start-card .txt { min-width: 0; flex: 1 1 200px; }
.start-card .kicker { font-size: 12.5px; color: var(--muted); margin: 0 0 3px; }
.start-card h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 4px; }
.stat {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 13px 14px;
}
.stat b { display: block; font-size: 25px; font-weight: 800; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.today-list { display: flex; flex-direction: column; gap: 10px; }
.today-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.today-row .t { font-weight: 700; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.today-row .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }

.item-wrap { margin-bottom: 12px; }
.item-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 15px 16px;
  text-decoration: none; color: inherit;
}
.item-card:hover { box-shadow: var(--shadow-lift); }
.item-card.status-awaiting_review { border-color: #ecd898; }
.item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-date { color: var(--muted); font-size: 12.5px; }
.item-report { color: #8a5a00; font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

.del-confirm { background: #fdf3f2; border: 1px solid #f0cdc9; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 8px; }
.del-confirm p { margin: 0 0 10px; font-size: 14px; color: #7a2b2b; line-height: 1.5; }
.del-confirm .yes { background: var(--red); color: #fff; border: 0; border-radius: var(--pill); padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.del-confirm .no { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 10px; }

/* ==========================================================================
   7. טפסים
   ========================================================================== */

.field { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
.field > span.lbl { display: block; margin-bottom: 6px; }
.field textarea, .field input[type=text], .field input[type=date],
.field input[type=datetime-local], .field input[type=time], .field input[type=password] {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 400;
  background: #fcfcf9; color: var(--ink); resize: vertical;
}
.field textarea::placeholder, .card textarea::placeholder { color: #a9afad; }
.field textarea:focus, .field input:focus, .card textarea:focus {
  outline: 0; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 107, .12);
}
.card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; font: inherit; font-size: 15px; background: #fcfcf9; resize: vertical;
  line-height: 1.6;
}
.card textarea[readonly] { background: #f3f3f0; color: #707674; }
textarea.txt { min-height: 150px; }

.f-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.f-row label { min-width: 118px; font-weight: 700; font-size: 14px; }
.f-row input[type=text], .f-row input[type=time] {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font: inherit; font-size: 15px; background: #fcfcf9; flex: 1 1 150px; max-width: 260px;
}

.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label {
  display: flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  border-radius: var(--pill); padding: 8px 14px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; min-height: 42px;
}
.checks input { accent-color: var(--teal); width: 18px; height: 18px; }
.checks label:has(input:checked) { border-color: var(--teal); background: #eef4f3; color: var(--teal-dark); }

details.collapsible { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; }
details.collapsible > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
details.collapsible[open] > summary { margin-bottom: 8px; }

/* בורר סוג מדיה */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #efeee7;
  border-radius: var(--pill); padding: 5px; }
.seg label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--pill); padding: 10px 6px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ink-soft); min-height: 42px; text-align: center;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow); }

/* אזור בחירת קובץ */
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed #cfd6d4; border-radius: var(--radius);
  padding: 30px 16px; cursor: pointer; background: #fbfbf7; text-align: center;
}
.file-drop input[type=file] { display: none; }
.file-drop-icon {
  width: 52px; height: 52px; border-radius: var(--pill); background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.file-drop-icon svg { width: 24px; height: 24px; }
.file-drop-text { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
.file-drop-hint { font-size: 12.5px; color: var(--muted); }
.file-drop.has-file { border-style: solid; border-color: var(--teal); background: #f5faf9; }
.file-drop.has-file .file-drop-text { color: var(--teal-dark); }

/* פס התקדמות ההעלאה */
.up-progress { margin-top: 14px; display: none; }
.up-progress.on { display: block; }
.up-bar { height: 10px; border-radius: var(--pill); background: #e9e8e0; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s ease; }
.up-line { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.up-line b { font-size: 16px; }
.up-hint { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   8. שבבי טון
   ========================================================================== */

.tones { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.tone {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: var(--pill); padding: 8px 15px; font: inherit; font-size: 13.5px;
  font-weight: 600; cursor: pointer; min-height: 40px;
}
.tone:hover { border-color: var(--teal); }
.tone.on, .tone:has(input:checked) {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 111, 107, .2);
}
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone { position: relative; }

/* ==========================================================================
   9. בוחר פלטפורמות
   ========================================================================== */

.plat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
@media (min-width: 620px) { .plat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.plat {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-radius: var(--radius-sm); padding: 15px 6px 12px; min-height: 84px;
  cursor: pointer; font: inherit; color: #fff; background: #8b918f;
  filter: grayscale(1) opacity(.42); transition: filter .15s ease, transform .1s ease;
  text-align: center; overflow: hidden;
}
/* צבע הרשת גובר על אפור ברירת המחדל של הכרטיס */
.plat.chip-facebook  { background: #1877f2; }
.plat.chip-instagram { background: #e1306c; }
.plat.chip-linkedin  { background: #0a66c2; }
.plat.chip-whatsapp  { background: #25d366; }
.plat.chip-tiktok    { background: #000000; }
.plat.chip-youtube   { background: #ff0000; }
.plat.chip-x         { background: #111111; }
.plat.chip-telegram  { background: #229ed9; }

.plat .plat-name { font-size: 12px; font-weight: 700; line-height: 1.25; word-break: break-word; }
.plat .plat-tick {
  position: absolute; top: 6px; inset-inline-start: 6px;
  width: 18px; height: 18px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  opacity: 0;
}
.plat input { position: absolute; opacity: 0; pointer-events: none; }
.plat.on, .plat:has(input:checked) { filter: none; box-shadow: var(--shadow); }
.plat.on .plat-tick, .plat:has(input:checked) .plat-tick {
  opacity: 1; background: rgba(255, 255, 255, .95); color: #17211f;
}
.plat:active { transform: scale(.97); }

/* ==========================================================================
   10. "מתי לפרסם"
   ========================================================================== */

.when-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.when-pills .btn-ghost { flex: 1 1 auto; position: relative; }
.when-pills .btn-ghost input { position: absolute; opacity: 0; pointer-events: none; }
.when-pills .btn-ghost:has(input:checked) {
  border-color: var(--teal); background: #eef4f3; color: var(--teal-dark); font-weight: 700;
}
.when-date { display: none; margin-top: 12px; }
.when-date.on { display: block; }
.when-pills:has(input[value="date"]:checked) ~ .when-date { display: block; }

/* בורר סוג המדיה חושף את אזור הקובץ המתאים — עובד גם בלי JavaScript */
.media-pane { display: none; }
.seg:has(input[value="video"]:checked) ~ .media-pane.pane-video { display: block; }
.seg:has(input[value="image"]:checked) ~ .media-pane.pane-image { display: block; }
.seg:has(input[value="text"]:checked)  ~ .media-pane.pane-text  { display: block; }
.when-date input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font: inherit; font-size: 15px; background: #fcfcf9; max-width: 240px; width: 100%;
}

.timing-card { display: flex; flex-direction: column; gap: 12px; }
.timing-opt { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.timing-opt input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.timing-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font: inherit; font-size: 15px; background: #fcfcf9; margin-inline-start: 30px; max-width: 260px; }
.timing-picker:disabled { opacity: .45; }
.timing-note { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }

/* ==========================================================================
   11. מסך העיבוד
   ========================================================================== */

.proc { text-align: center; padding: 24px 0 8px; }
.proc-kicker { font-size: 11.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600; margin: 0 0 22px; }
.proc-circle {
  width: 132px; height: 132px; margin: 0 auto 22px; border-radius: var(--pill);
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(31, 111, 107, .25);
  animation: proc-breathe 2.6s ease-in-out infinite;
}
.proc-circle svg { width: 52px; height: 52px; }
@keyframes proc-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 40px rgba(31, 111, 107, .25); }
  50%      { transform: scale(1.04); box-shadow: 0 16px 52px rgba(31, 111, 107, .33); }
}
.proc h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.proc .proc-cap { margin: 0 0 26px; font-size: 13px; color: var(--muted); }

.steps { display: flex; flex-direction: column; gap: 2px; text-align: start; max-width: 420px; margin: 0 auto; }
.steps .step { display: flex; align-items: flex-start; gap: 13px; padding: 11px 4px; position: relative; }
.steps .step .bullet {
  position: relative; flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--pill);
  background: #e6e5dc; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.steps .step + .step .bullet::before {
  content: ""; position: absolute; top: -14px; inset-inline-start: 10px;
  width: 2px; height: 14px; background: #e6e5dc;
}
.steps .step .txt { font-size: 14.5px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.steps .step.done .bullet { background: var(--teal); }
.steps .step.done + .step .bullet::before { background: var(--teal); }
.steps .step.done .txt { color: var(--ink-soft); }
.steps .step.now .bullet { background: var(--gold); box-shadow: 0 0 0 0 rgba(226, 185, 59, .55); animation: pulse-dot 1.7s ease-out infinite; }
.steps .step.now .txt { color: var(--ink); font-weight: 700; }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(226, 185, 59, .6); }
  70%  { box-shadow: 0 0 0 12px rgba(226, 185, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 185, 59, 0); }
}

/* ==========================================================================
   12. מסך ביקורת ותור
   ========================================================================== */

.player-wrap {
  position: relative; width: 100%; aspect-ratio: 9 / 14; max-height: 66vh;
  background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
}
.player-wrap iframe, .player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-wrap video { background: #000; object-fit: contain; }
.player-wrap.image { aspect-ratio: 1 / 1; background: #f0efe8; }
.player-wrap.image img { width: 100%; height: 100%; object-fit: contain; }

.transcript {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; color: var(--ink-soft); font-size: 14.5px;
}
.transcript summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14.5px; }

.net-check { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.net-check input { width: 21px; height: 21px; accent-color: var(--teal); flex: 0 0 auto; }
.net-label { font-weight: 700; font-size: 15px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.rephrase-box { display: none; margin-top: 10px; background: #fbfaf4; border: 1px dashed #ddd7bd; border-radius: var(--radius-sm); padding: 12px; }
.rephrase-box.open { display: block; }
.rephrase-box input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chips .chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: var(--pill); padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit; font-weight: 600;
}
.chips .chip:hover { border-color: var(--teal); color: var(--teal); }
.vers { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.vers select { font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 9px; background: #fff; max-width: 100%; }
.busy { opacity: .55; pointer-events: none; }
.msg { font-size: 12.5px; color: var(--green); margin-top: 6px; min-height: 17px; }
.msg.err { color: var(--red); }

.q-card { border-inline-start: 4px solid #cfd3d1; }
.q-card.q-pending   { border-inline-start-color: var(--blue); }
.q-card.q-posted    { border-inline-start-color: var(--green); }
.q-card.q-cancelled { border-inline-start-color: #b7bbb9; opacity: .9; }
.q-card.q-error     { border-inline-start-color: var(--red); }
.q-card.q-posting   { border-inline-start-color: var(--gold); }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-when { font-size: 14px; color: var(--ink-soft); margin: 2px 0 10px; }
.q-when b { color: var(--ink); }
.q-time { display: none; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.q-time.open { display: flex; }
.q-time input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; font-size: 14.5px; background: #fcfcf9; }
.q-result { font-size: 12.5px; color: #8a5a00; margin-top: 4px; }

/* ==========================================================================
   13. מסך כניסה
   ========================================================================== */

.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center;
  padding: 20px; background: var(--bg); }
.auth-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 30px 26px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lift);
}
.auth-card .mark { width: 46px; height: 46px; border-radius: 15px; background: var(--grad); margin-bottom: 16px; }
.auth-card h1 { margin: 0 0 2px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { margin: 0 0 22px; }
.auth-card label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.auth-card input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fcfcf9;
}
.auth-card input:focus { outline: 0; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(31,111,107,.12); }

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ==========================================================================
   15. אשף הביקורת: סטפר, תצוגות מקדימות, מתג, סרגל תחתון ומסך התזמון
   ========================================================================== */

/* מה נראה עם JavaScript ומה בלעדיו */
html:not(.js) .wiz-only { display: none !important; }
html.js .nojs-only      { display: none !important; }
/* hidden גובר על כל display של מחלקה (הסטפר והסרגל הם flex) */
[hidden] { display: none !important; }

/* --- קיפול המדיה --- */
.media-fold { margin-bottom: 14px; }
.media-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; margin-bottom: 10px;
}
.media-toggle .mt-caret { transition: transform .18s ease; display: inline-block; }
.media-fold:not(.open) .media-toggle .mt-caret { transform: rotate(180deg); }
.media-fold:not(.open) .media-body { display: none; }
.media-fold .player-wrap { margin-bottom: 0; }

/* --- שורת נקודות הרשתות --- */
.stepper {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--pill);
  padding: 9px 12px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.sdot {
  position: relative; flex: 0 0 auto;
  width: 27px; height: 27px; padding: 0;
  border-radius: 50%; cursor: pointer;
  background: #fff; border: 2px solid var(--nc, var(--muted));
  transition: transform .15s ease, box-shadow .15s ease;
}
.sdot::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: var(--nc, var(--muted)); opacity: .35;
}
.sdot .sd-mark {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800; line-height: 1;
}
.sdot.on { transform: scale(1.16); box-shadow: 0 0 0 3px rgba(23, 33, 31, .12); }
.sdot.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--nc) 22%, transparent); }
.sdot.on::after { opacity: 1; }
.sdot.done::after { opacity: 1; }
.sdot.done .sd-mark { display: flex; }
.sdot.off { border-color: #d3d6d4; opacity: .5; }
.sdot.off::after { background: #c3c7c5; opacity: .5; }

/* --- כרטיס הרשת --- */
.net-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.nch-start { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-tag {
  font-size: 11.5px; font-weight: 700; color: var(--teal-dark);
  background: #eaf3f2; border: 1px solid #cfe3e0; border-radius: var(--pill);
  padding: 3px 9px; white-space: nowrap;
}

/* מתג "לפרסם ברשת זו" */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative; flex: 0 0 auto;
  width: 42px; height: 24px; border-radius: var(--pill);
  background: #d8dbd9; transition: background .18s ease;
}
.switch-knob {
  position: absolute; top: 3px; inset-inline-end: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s ease;
}
.switch input:checked + .switch-track { background: var(--teal); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(-18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(31,111,107,.25); }
.switch-text { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* --- תצוגה מקדימה: השלד המשותף --- */
.preview { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.pv-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 13px 8px; }
.pv-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #eceadf; display: block; }
.pv-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pv-who b { font-size: 14px; font-weight: 700; }
.pv-who i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pv-media { background: #f0efe8; }
.pv-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-media.wide { aspect-ratio: 16 / 9; }
.pv-media.sq   { aspect-ratio: 1 / 1; }
.pv-media.vert { aspect-ratio: 9 / 16; width: 108px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; }
.pv-media.bub  { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.pv-media.x    { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-top: 10px; }
.pv-media.pv-vid {
  display: flex; align-items: center; justify-content: center;
  background: #11201e; color: #fff;
}
.pv-play { font-size: 22px; opacity: .92; }

/* פוסט לבן: פייסבוק / לינקדאין */
.preview-post .pv-text { padding: 0 13px 12px; }
.pv-foot {
  display: flex; justify-content: space-around; gap: 6px;
  border-top: 1px solid var(--line-soft); padding: 9px 8px;
  font-size: 12.5px; color: var(--muted);
}

/* אינסטגרם: מדיה מרובעת ואז כיתוב עם השם במודגש */
.preview-ig .pv-body { padding: 11px 13px 13px; }
.preview-ig .pv-caption { font-size: 14.5px; line-height: 1.6; }
.preview-ig .pv-caption > b { font-weight: 800; margin-inline-end: 5px; }
.preview-ig .pv-text { display: inline; }

/* טיקטוק / יוטיוב: תמונה אנכית וכיתוב לצידה */
.preview-vertical .pv-vrow { display: flex; gap: 12px; padding: 12px 13px; align-items: flex-start; }
.preview-vertical .pv-vtext { min-width: 0; }
.pv-handle { display: block; font-size: 13px; font-weight: 800; margin-bottom: 5px; }

/* בועות: וואטסאפ וטלגרם */
.preview-wa, .preview-tg { border: 0; background: #ece5dd; padding: 14px 12px; }
.preview-tg { background: #e9f2f7; }
.pv-bubble {
  position: relative; max-width: 90%;
  border-radius: 14px; padding: 10px 12px 20px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.pv-bubble.wa { background: #dcf8c6; margin-inline-start: auto; }
.preview-wa.status .pv-bubble.wa { background: #128c7e; color: #fff; margin: 0 auto; max-width: 100%; }
.preview-wa.status .pv-text { color: #fff; }
.pv-bubble.tg { background: #d9f0fb; margin-inline-start: auto; }
.pv-tick, .pv-time {
  position: absolute; inset-inline-start: 10px; bottom: 6px;
  font-size: 11px; color: #5a8a6a;
}
.preview-wa.status .pv-tick { color: rgba(255,255,255,.8); }
.pv-bubble.tg .pv-time { color: #4b8cad; }

/* איקס: כרטיס ציוץ עם מונה 280 */
.preview-x { background: #fff; }
.preview-x .pv-text { padding: 0 13px; }
.pv-x-foot { display: flex; justify-content: flex-end; padding: 8px 13px 11px; }
.pv-count { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-count.over { color: var(--red); }

/* --- תיבת AI וכלים --- */
.net-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.wa-btn { text-decoration: none; display: inline-flex; align-items: center; border-color: #a6e3bc; color: #12744a; }
.net-txt { margin-top: 12px; }

.ai-box {
  display: none; margin-top: 12px;
  background: #fbfaf4; border: 1px dashed #ddd7bd; border-radius: var(--radius-sm); padding: 12px;
}
.ai-box.open { display: block; }
.ai-box input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font: inherit; font-size: 14.5px; background: #fff;
}
.ai-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vers.compact { margin-top: 10px; font-size: 12px; }
.vers.compact select { max-width: 100%; }

/* שלד טעינה בזמן שה-AI כותב */
.skel { display: none; margin-top: 12px; }
.net-pane.loading .skel { display: block; }
.net-pane.loading .preview, .net-pane.loading .net-txt, .net-pane.loading .net-tools { opacity: .25; }
.skel i {
  display: block; height: 13px; border-radius: var(--pill); margin-bottom: 9px;
  background: linear-gradient(90deg, #eceae2 25%, #f7f6f1 50%, #eceae2 75%);
  background-size: 240% 100%; animation: skel-slide 1.25s ease-in-out infinite;
}
.skel i:nth-child(2) { width: 88%; }
.skel i:nth-child(3) { width: 72%; }
.skel i:nth-child(4) { width: 55%; }
@keyframes skel-slide { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* --- פאנל רשת אחת בכל פעם --- */
html.js .net-pane { display: none; }
html.js .net-pane.on { display: block; }
html.js .net-txt { display: none; }
html.js .net-pane.editing .net-txt { display: block; }
html.js .net-pane.editing .preview { display: none; }
html:not(.js) .preview { display: none; }

/* --- הסרגל התחתון של האשף --- */
.sticky-bar {
  position: sticky; bottom: calc(var(--bottomnav-h) + 8px); z-index: 25;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0 4px;
  background: linear-gradient(to top, var(--bg) 72%, rgba(246,246,241,0));
}
.sticky-bar .approve-btn { flex: 1 1 auto; min-width: 0; }
.nav-arrow {
  flex: 0 0 auto; width: 46px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-arrow:hover { border-color: var(--teal); color: var(--teal); }
@media (min-width: 900px) { .sticky-bar { bottom: 10px; } }

/* --- שלב 2: כל הפוסטים אושרו --- */
.s2-head { display: flex; align-items: center; gap: 13px; margin: 6px 0 16px; }
.s2-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.s2-icon svg { width: 24px; height: 24px; stroke-width: 2.4; }
.s2-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.s2-head .caption { margin: 2px 0 0; }

.s2-all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.s2-all-lbl { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.s2-all input[type=date] {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px; font: inherit; font-size: 14px; background: #fcfcf9; min-width: 0;
}

.sched-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 18px; }
.sched-row {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 9px 11px; box-shadow: var(--shadow);
}
.sched-row .chip { flex: 0 0 auto; }
.sched-row input {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 9px; font: inherit; font-size: 13.5px; background: #fcfcf9;
  min-width: 0; max-width: 100%;
}
.sched-row .sr-date { flex: 1 1 128px; }
.sched-row .sr-time { flex: 0 0 92px; }
.sr-manual { font-size: 12.5px; color: var(--muted); }
.ai-badge {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: #eaf3f2; color: var(--teal-dark); border: 1px solid #cfe3e0;
  border-radius: var(--pill); padding: 3px 8px;
}
.ai-badge.def { background: #fbf3da; color: #7d6210; border-color: #ecdcaa; }

/* ==========================================================================
   16. לוח שנה
   ========================================================================== */

.tabs { display: flex; gap: 6px; background: #efeee7; border-radius: var(--pill); padding: 4px; margin-bottom: 16px; }
.tabs a {
  flex: 1 1 0; text-align: center; text-decoration: none;
  padding: 9px 6px; border-radius: var(--pill);
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.tabs a.on { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow); }

.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-bar .m-name { font-size: 16px; font-weight: 800; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--pill);
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 700;
}
.cal-nav a:hover { border-color: var(--teal); color: var(--teal); }

.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { margin-bottom: 4px; }
.cal-head span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal-day {
  position: relative; display: block; text-align: start;
  min-height: 62px; padding: 4px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 10px;
  color: inherit; text-decoration: none;
}
.cal-day.pad { background: transparent; border-color: transparent; }
.cal-day.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cal-day.on { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(31,111,107,.18); }
.cal-day .d-num { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.cal-day .d-thumb {
  display: block; width: 100%; height: 26px; object-fit: cover;
  border-radius: 6px; margin: 2px 0;
}
.d-dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 2px; }
.net-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.cal-day .d-more { font-size: 10px; color: var(--muted); }

.day-list { margin-top: 16px; }
.cal-row {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
}
.cal-row .t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; flex: 0 0 auto; }
.cal-row .n { flex: 1 1 130px; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row .ex { flex: 1 1 100%; font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-row .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.cal-row .msg { flex: 1 1 100%; min-height: 0; margin-top: 0; }
.cal-row .msg:empty { display: none; }
.cal-row .q-time { flex: 1 1 100%; }

.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chips a {
  text-decoration: none; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: var(--pill); padding: 6px 12px;
}
.filter-chips a.on { border-color: var(--teal); background: #eef4f3; color: var(--teal-dark); }

.today-more { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; }

/* ==========================================================================
   14. נגישות: כיבוד "פחות תנועה"
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .proc-circle { animation: none; }
  .steps .step.now .bullet { animation: none; box-shadow: 0 0 0 4px rgba(226, 185, 59, .3); }
  .skel i { animation: none; background: #eceae2; }
}
