/* Growth Engine (ai-social-view) */
#ai-social-view, .sx-embed { direction: rtl; color: var(--text); }
#ai-social-view { padding: 20px; color: var(--text); overflow-y: auto; height: 100%; max-height: 100vh; direction: rtl; }
.sx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 16px; }
.sx-head h2 { margin: 0; color: var(--gold); font-size: 22px; }
.sx-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sx-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sx-btn { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.sx-btn:hover { border-color: var(--gold); }
.sx-btn.gold { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 600; }
.sx-btn.ok { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.6); }
.sx-btn.bad { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.5); }
.sx-btn:disabled { opacity: .5; cursor: wait; }
.sx-warn { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.4); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.6; }
.sx-warn code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.sx-card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 14px; }
.sx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sx-section { margin: 18px 0 8px; font-size: 15px; color: var(--gold); font-weight: 600; }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.sx-chip { white-space: nowrap; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; color: var(--text); font: inherit; }
.sx-chip.active { border-color: var(--gold); background: rgba(212,175,55,0.15); }
.sx-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; margin-inline-start: 6px; text-align: center; }
.sx-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; overflow-x: auto; }
.sx-tab { background: none; border: none; color: var(--muted); padding: 8px 12px; cursor: pointer; font: inherit; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.sx-tab.active { color: var(--text); border-bottom-color: var(--gold); }
.sx-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sx-kpi { background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; }
.sx-kpi b { display: block; font-size: 22px; }
.sx-kpi span { color: var(--muted); font-size: 12px; }
.sx-post h4 { margin: 0 0 6px; font-size: 14px; }
.sx-post .hook { font-size: 13px; color: #fde68a; margin-bottom: 6px; }
.sx-post .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sx-post details { font-size: 12px; margin: 6px 0; color: #cbd5e1; white-space: pre-wrap; }
.sx-post textarea, .sx-form textarea, .sx-form input, .sx-form select, .sx-inline input { width: 100%; background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; }
.sx-post textarea { min-height: 70px; margin: 6px 0; }
.sx-label { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.sx-label.viral { background: #f59e0b; color: #111; }
.sx-label.good { background: rgba(34,197,94,0.25); color: #86efac; }
.sx-label.normal { background: rgba(255,255,255,0.08); color: var(--muted); }
.sx-label.flop { background: rgba(239,68,68,0.2); color: #fca5a5; }
.sx-label.pending { background: rgba(59,130,246,0.2); color: #93c5fd; }
.sx-cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
.sx-col > h5 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.sx-col .sx-card { margin-bottom: 10px; }
.sx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sx-table th, .sx-table td { text-align: start; padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.sx-table th { color: var(--muted); font-weight: 500; }
.sx-table a, .sx-card a { color: #93c5fd; }
.sx-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sx-form label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.sx-inline { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.sx-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.sx-acc { display: flex; align-items: center; gap: 10px; }
.sx-acc img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sx-slides { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0; }
.sx-slides img { width: 90px; border-radius: 6px; }
.sx-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111827; border: 1px solid var(--gold); color: var(--text); padding: 10px 18px; border-radius: 10px; z-index: 99999; font-size: 14px; max-width: 90vw; }
.sx-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.sx-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.sx-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.sx-bulk { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #111827; border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.sx-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sx-modal-box { background: #0b1526; color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 18px; width: min(760px, 100%); max-height: 90vh; overflow-y: auto; }
.sx-modal .sx-form textarea, .sx-modal .sx-form input, .sx-modal .sx-form select { width: 100%; background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; }
.sx-bell { background: #f59e0b; color: #111; }
.sx-inbox { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(220px, 1fr)); align-items: start; overflow-x: auto; }
.sx-inbox-col { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px; max-height: 70vh; overflow-y: auto; }
.sx-inbox-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; position: sticky; top: -10px; background: #0b1526; padding: 6px 0 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); z-index: 1; }
.sx-note { display: flex; gap: 8px; padding: 8px; border-radius: 10px; margin-bottom: 6px; font-size: 13px; cursor: default; border: 1px solid transparent; }
.sx-note.unread { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.35); cursor: pointer; }
.sx-note img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.sx-note .sx-inline input { font-size: 12px; }
@media (max-width: 900px) { .sx-inbox { grid-template-columns: 1fr; } }
/* 🤖 auto-replies tab (renderer/social-autoreply.js) */
.ar-wrap { display: grid; gap: 4px; }
.ar-acc { margin-bottom: 4px; }
.ar-acc-head { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 4px; }
.ar-gate { margin-top: 6px; font-size: 13px; }
.ar-perm { margin: 10px 0 0; }
.ar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ar-pill { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ar-pill.ok { background: rgba(34,197,94,0.2); color: #86efac; }
.ar-pill.bad { background: rgba(239,68,68,0.2); color: #fca5a5; }
.ar-pill.off { background: rgba(255,255,255,0.08); color: var(--muted); }
.ar-kw { display: inline-block; background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.35); border-radius: 6px; padding: 0 6px; margin: 0 0 3px 3px; font-size: 12px; }
.ar-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 4px 10px; }
.ar-table-wrap .sx-table { min-width: 640px; }
.ar-msg { max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.ar-actions { white-space: nowrap; }
.ar-actions .sx-btn { margin-inline-start: 4px; padding: 5px 9px; }
.ar-dim td { opacity: .55; }
.ar-dim td:first-child { opacity: 1; }
.ar-form { margin-bottom: 10px; border-color: rgba(212,175,55,0.35); }
.ar-input { background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; }
.ar-test-out { margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.ar-test-out.ok { background: rgba(34,197,94,0.1); }
.ar-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.ar-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ar-switch span { position: absolute; inset: 0; cursor: pointer; background: rgba(255,255,255,0.15); border-radius: 999px; transition: background .15s; }
.ar-switch span::before { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; right: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.ar-switch input:checked + span { background: var(--gold); }
.ar-switch input:checked + span::before { transform: translateX(-16px); }
.ar-switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .ar-msg { max-width: 180px; }
  #ai-social-view { padding: 12px 16px 90px; }
  .sx-kpi b { font-size: 18px; }
}

/* 📅 Calendar (main view of a profile): one primary action, quiet cards, details only in the editor */
.sx-cal-banner { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); }
.sx-cal-banner button, .sx-link { background: none; border: none; color: var(--gold); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.sx-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sx-cal-head b { font-size: 17px; min-width: 120px; text-align: center; }
.sx-cal-head .sx-spacer { flex: 1; }
.sx-icon-btn { background: none; border: 1px solid rgba(255,255,255,0.12); color: var(--text); border-radius: 8px; min-width: 32px; height: 32px; cursor: pointer; font: inherit; font-size: 15px; line-height: 1; padding: 0 8px; }
.sx-icon-btn:hover { border-color: var(--gold); }
.sx-menu { position: relative; }
.sx-menu-list { position: absolute; inset-inline-end: 0; top: 38px; z-index: 50; min-width: 230px; background: #0b1526; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.sx-menu-list[hidden] { display: none; }
.sx-menu-list button { display: block; width: 100%; text-align: start; background: none; border: none; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; }
.sx-menu-list button:hover { background: rgba(255,255,255,0.06); }
.sx-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; position: relative; }
.sx-cal-wrap.sx-drag-files::after { content: "שחרר כאן להעלאה ⬆️"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px dashed var(--gold); border-radius: 14px; background: rgba(11,21,38,0.85); z-index: 40; }
.sx-cal-wrap > * { min-width: 0; }
.sx-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sx-cal-dow { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.sx-cal-day { min-height: 104px; background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sx-cal-day.out { opacity: .35; }
.sx-cal-day.today { border-color: var(--gold); }
.sx-cal-day.over { border-color: var(--gold); background: rgba(212,175,55,0.08); }
.sx-cal-num { font-size: 12px; color: var(--muted); }
.sx-cal-card { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 7px; background: rgba(255,255,255,0.05); cursor: pointer; font-size: 12px; min-width: 0; }
.sx-cal-card:hover { background: rgba(255,255,255,0.1); }
.sx-cal-card[draggable="true"] { cursor: grab; }
.sx-cal-card img, .sx-cal-card .sx-thumb { width: 22px; height: 30px; border-radius: 4px; object-fit: cover; flex: none; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.sx-cal-card .b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sx-cal-card .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-cal-card .ic { font-size: 9px; letter-spacing: -1px; opacity: .8; overflow: hidden; white-space: nowrap; }
.sx-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
/* Sharon 16.10.26: 🟡 draft · 🟢 scheduled · ⚪ published · 🔴 failed */
.sx-dot.draft, .sx-dot.ready, .sx-dot.in_production { background: var(--gold); }
.sx-dot.scheduled, .sx-dot.publishing { background: #34d399; }
.sx-dot.published, .sx-dot.analyzed { background: #6b7280; }
.sx-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.sx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sx-legend .sx-dot { display: inline-block; }
.sx-dot.failed { background: #f87171; }
.sx-tray { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 720px; overflow-y: auto; }
.sx-tray.over { border-color: var(--gold); }
.sx-tray h5 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sx-up { font-size: 12px; }
.sx-up .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 3px; }
.sx-up .bar i { display: block; height: 100%; background: var(--gold); }
.sx-up.err { color: #fca5a5; }
.sx-up.skip { opacity: 0.6; }
.sx-up-clear { background: none; border: 0; color: var(--muted, #94a3b8); font: inherit; font-size: 11px; cursor: pointer; padding: 2px 0; }
.sx-cal-list { display: none; }
.sx-cal-list .sx-day-h { font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.sx-ed details { border-top: 1px solid rgba(255,255,255,0.07); padding: 8px 0; }
.sx-ed summary { cursor: pointer; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.sx-ed summary::-webkit-details-marker { display: none; }
.sx-ed summary span { color: var(--muted); font-size: 12px; }
.sx-ed .sx-form { margin-top: 8px; grid-template-columns: 1fr; }
.sx-ed input, .sx-ed textarea, .sx-ed select { box-sizing: border-box; max-width: 100%; }
.sx-ed-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.sx-ed-top img { width: 72px; height: 128px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,0.06); }
.sx-ed-minor { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }
.sx-ed-minor button { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.sx-ed-minor button.bad { color: #fca5a5; }
.sx-more { position: relative; display: inline-block; }
@media (max-width: 760px) {
  .sx-cal-wrap { grid-template-columns: 1fr; }
  .sx-cal-grid { display: none; }
  .sx-cal-list { display: block; }
  .sx-tray { max-height: none; order: 2; }
  .sx-cal-head { flex-wrap: wrap; }
  .sx-cal-head b { min-width: 0; }
  .sx-cal-banner { flex-wrap: wrap; }
}

/* ---------- 14.10.26: calendar header centered · brand icons · links · editor · inline settings · cover picker ---------- */
.sx-cal-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sx-cal-nav { display: flex; align-items: center; gap: 8px; justify-content: center; }
.sx-cal-nav b { min-width: 128px; text-align: center; font-size: 17px; }
.sx-arrow { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 32px; }
.sx-today { background: none; border: 1px solid rgba(255,255,255,0.12); color: var(--muted); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.sx-today:hover { color: var(--text); border-color: var(--gold); }
.sx-cal-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.sx-ico { display: inline-block; vertical-align: -2px; color: var(--muted); flex: none; }
.sx-cal-card .ic { display: inline-flex; gap: 3px; align-items: center; letter-spacing: 0; }
.sx-cal-card .ic .sx-ico { width: 11px; height: 11px; }
.sx-gone-ic { font-size: 9px; opacity: .7; }
.sx-qdot { font-size: 10px; margin-inline-end: 2px; }
.sx-tag { align-self: flex-start; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--muted); border-radius: 999px; font: inherit; font-size: 10px; padding: 0 6px; margin-top: 2px; cursor: pointer; line-height: 16px; white-space: nowrap; }
.sx-tag.viral { color: #fbbf24; border-color: rgba(251,191,36,0.45); }
.sx-tag.value { color: #93c5fd; border-color: rgba(147,197,253,0.4); }
.sx-tag.proof { color: #34d399; border-color: rgba(52,211,153,0.45); }
.sx-tag.unique { color: #c4b5fd; border-color: rgba(196,181,253,0.45); }
.sx-tag:hover { border-color: var(--gold); }
/* live links (editor top + calendar hover) */
.sx-ll { background: rgba(52,211,153,0.06); border: 1px solid rgba(52,211,153,0.25); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; }
.sx-ll-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.sx-ll-copy { background: none; border: 1px solid rgba(255,255,255,0.15); color: var(--text); border-radius: 6px; font: inherit; font-size: 11px; padding: 1px 8px; cursor: pointer; }
.sx-ll-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; min-width: 0; }
.sx-ll-l { color: var(--muted); white-space: nowrap; }
.sx-ll-row a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; direction: ltr; unicode-bidi: isolate; }
.sx-ll-n { color: #fbbf24; font-size: 12px; white-space: nowrap; }
.sx-linkpop { position: fixed; z-index: 99990; width: min(380px, calc(100vw - 16px)); background: #0b1526; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,0.5); color: var(--text); }
.sx-linkpop .sx-ll { margin: 0; }
/* modal: header / body / footer + ⋯ */
.sx-modal-box.wide { width: min(820px, 100%); }
.sx-modal-box { box-sizing: border-box; max-width: 100%; min-width: 0; }
.sx-modal-body, .sx-ed, .sx-ed-row > *, .sx-ed-top > * { min-width: 0; }
.sx-ed .sx-chip { white-space: normal; }
.sx-modal-head { margin-bottom: 8px; padding-bottom: 8px; }
.sx-modal-head h2 { font-size: 17px; margin: 0; }
.sx-modal-foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.sx-foot-menu { margin-inline-start: auto; }
.sx-menu-list.up { top: auto; bottom: 38px; inset-inline-end: 0; }
.sx-menu-list button.bad { color: #fca5a5; }
/* editor */
.sx-ed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.sx-ed-meta { font-size: 13px; color: var(--muted); }
.sx-ed-thumb img, .sx-thumb.big { width: 76px; height: 135px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sx-ed-info { display: grid; gap: 4px; min-width: 0; }
.sx-ed-status { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sx-ed-row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.sx-ed-row.top { align-items: start; }
.sx-ed-l { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sx-ed input, .sx-ed textarea, .sx-ed select { background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.sx-when { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sx-when input[data-e="date"] { width: 104px; text-align: center; }
.sx-when input[data-e="time"] { width: 62px; text-align: center; }
.sx-dayname { font-size: 12px; color: var(--muted); min-width: 44px; }
.sx-chip.mini { padding: 2px 9px; font-size: 12px; }
.sx-nets { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-net { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 4px 10px 4px 8px; cursor: pointer; font-size: 12px; color: var(--muted); user-select: none; }
.sx-net input { display: none; }
.sx-net.on { color: var(--text); border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); }
.sx-ed-cap { display: grid; gap: 6px; }
.sx-ed-cap textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; }
.sx-ed-cap input { width: 100%; box-sizing: border-box; }
.sx-hint { font-size: 12px; color: var(--muted); }
.sx-ed .sx-link { font-size: 12px; }
.sx-hint:empty { display: none; }
.sx-q { font-size: 12px; }
.sx-q.good { color: #34d399; }
.sx-q.low { color: #fbbf24; }
.sx-q.info { color: var(--muted); }
.sx-gone { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; }
/* inline settings (editor ⚙️ מתקדם · bulk · profile defaults) */
.sx-settings { display: grid; gap: 8px; margin-top: 8px; }
.sx-netset { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 6px 10px 10px; margin: 0; min-width: 0; }
.sx-netset legend { font-size: 12px; color: var(--text); padding: 0 6px; display: inline-flex; gap: 5px; align-items: center; }
.sx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; align-items: center; }
.sx-wide { grid-column: 1 / -1; }
.sx-cb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; flex-wrap: wrap; }
.sx-cb input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold); }
.sx-cb em { font-style: normal; color: var(--muted); font-size: 11px; width: 100%; padding-inline-start: 21px; margin-top: -3px; }
.sx-cb.sx-tpl { margin-top: 10px; font-size: 12px; color: var(--muted); } /* 📋 the quiet "saved as the client template" line */
.sx-f { display: grid; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.sx-f input, .sx-f select, .sx-f textarea { width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.25); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; }
.sx-f textarea { resize: none; overflow: hidden; min-height: 52px; }
.sx-chipbox { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 3px 5px; min-height: 30px; box-sizing: border-box; }
.sx-chipbox input { flex: 1; min-width: 70px; border: none !important; background: none !important; padding: 2px 4px !important; }
.sx-chipv { font-weight: 400; font-size: 12px; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 1px 4px 1px 8px; display: inline-flex; gap: 4px; align-items: center; color: var(--text); direction: ltr; }
.sx-chipv i { font-style: normal; cursor: pointer; opacity: .6; }
.sx-defaults summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sx-defaults summary::-webkit-details-marker { display: none; }
.sx-cleanup { margin: 0 0 8px; }
.sx-days { display: flex; gap: 4px; flex-wrap: wrap; padding-inline-start: 21px; }
.sx-day { display: inline-flex; }
.sx-day input { display: none; }
.sx-day span { border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 3px 9px; font-size: 13px; cursor: pointer; color: var(--muted); }
.sx-day input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(212,175,55,0.12); }
.sx-cadence { display: grid; gap: 6px; }
.sx-cadence select { width: auto; padding: 2px 6px; }
/* cover picker */
.sx-cover-main { display: grid; grid-template-columns: 180px 1fr; gap: 14px; margin-top: 8px; }
.sx-cover-stage { position: relative; width: 180px; height: 320px; border-radius: 10px; overflow: hidden; background: #000; }
.sx-cover-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.sx-cover-stage canvas:active { cursor: grabbing; }
.sx-cover-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; padding: 10px; }
.sx-cover-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.sx-strip { position: relative; height: 54px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.05); }
.sx-strip-frames { display: flex; height: 100%; direction: ltr; }
.sx-strip-frames canvas { flex: 1; min-width: 0; height: 100%; cursor: pointer; }
.sx-strip input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; direction: ltr; pointer-events: none; }
.sx-strip input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 54px; border-radius: 4px; border: 3px solid #fff; background: transparent; box-shadow: 0 0 0 1px rgba(0,0,0,0.5); cursor: ew-resize; }
.sx-strip input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 10px; height: 50px; border-radius: 4px; border: 3px solid #fff; background: transparent; cursor: ew-resize; }
.sx-ed [data-cover-sec] > summary { flex-wrap: wrap; row-gap: 4px; align-items: center; }
.sx-ed summary .sx-cover-title { color: inherit; font-size: inherit; display: inline-flex; align-items: center; gap: 8px; }
.sx-cover-upbtn { background: none; border: 1px solid rgba(255,255,255,0.14); color: var(--muted); border-radius: 999px; font: inherit; font-size: 11px; line-height: 18px; padding: 0 8px; cursor: pointer; white-space: nowrap; }
.sx-cover-upbtn:hover { color: var(--gold); border-color: var(--gold); }
.sx-cover-badge { position: absolute; top: 6px; inset-inline-start: 6px; background: rgba(0,0,0,0.65); color: #fff; border: 1px solid var(--gold); border-radius: 999px; font-size: 10px; line-height: 16px; padding: 0 7px; pointer-events: none; }
.sx-cover-up { display: grid; gap: 6px; }
.sx-cover [hidden] { display: none !important; }
.sx-cover.is-upload .sx-cover-stage canvas { cursor: default; }
.sx-cover input[data-cover-zoom] { accent-color: var(--gold); padding: 0; border: none; background: none; }
.sx-cover-previews { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.sx-cover-previews figure { margin: 0; display: grid; gap: 4px; justify-items: center; }
.sx-cover-previews figcaption { font-size: 11px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.sx-pv-grid { display: grid; grid-template-columns: repeat(3, 45px); gap: 2px; }
.sx-pv-grid img, .sx-pv-grid canvas, .sx-pv-grid i { width: 45px; height: 60px; object-fit: cover; display: block; background: rgba(255,255,255,0.06); }
.sx-pv-grid img { opacity: 0.55; }
.sx-pv-grid canvas { outline: 2px solid var(--gold); outline-offset: -2px; }
.sx-pv-reel { width: 68px; height: 120px; border-radius: 6px; }
.sx-pv-tt { width: 68px; height: 90px; border-radius: 4px; }
.sx-pv-ig { width: 90px; height: 120px; border-radius: 4px; }  /* just this post's 3:4 tile, no grid (Sharon 16.10.26) */
@media (max-width: 760px) {
  .sx-cal-head { grid-template-columns: 1fr; }
  .sx-cal-side { display: none; }
  .sx-cal-actions { justify-content: center; }
  .sx-grid2 { grid-template-columns: 1fr; }
  .sx-ed-row { grid-template-columns: 1fr; gap: 4px; }
  .sx-cover-main { grid-template-columns: 1fr; justify-items: center; }
}

/* not-connected networks: always listed, dimmed, click → חיבורים (Sharon 15.10) */
.sx-net.off { opacity: .5; cursor: pointer; background: transparent; }
.sx-net.off small { font-size: 10px; margin-inline-start: 4px; opacity: .9; }
.sx-net.off:hover { opacity: .8; }

/* ▶︎ in-HQ video preview popup (Drive player) */
/* above .sx-modal (99998), toasts and every HQ overlay — the viewer opens from inside the post editor */
.sx-vp { position: fixed; inset: 0; z-index: 100005; background: rgba(2, 6, 23, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sx-vp-box { position: relative; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.sx-vp-box iframe { width: 100%; height: 100%; border: 0; }
.sx-vp-x { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15,23,42,.85); color: #fff; font-size: 16px; cursor: pointer; }

/* 📅 the calendar fits the screen under the client header + tabs, no page scroll (Sharon 14.10).
   The client-page panel (.ch-panel, already viewport-tall) stops scrolling; weeks share the height (5 or 6),
   each day / the drafts tray scrolls on its own. Phones keep the list layout. */
@media (min-width: 900px) {
  .ch-panel.sx-fit-cal { overflow: hidden; }
  .sx-fit-cal > .sx-body { height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .sx-fit-cal > .sx-body > .sx-cal-banner, .sx-fit-cal > .sx-body > .sx-cal-head { flex: none; }
  .sx-fit-cal .sx-cal-wrap { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .sx-fit-cal .sx-cal-wrap > div { display: flex; flex-direction: column; min-height: 0; }
  .sx-fit-cal .sx-cal-grid { flex: 1; min-height: 0; grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); }
  .sx-fit-cal .sx-cal-day { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
  .sx-fit-cal .sx-cal-day > * { flex: none; }
  .sx-fit-cal .sx-tray { max-height: none; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }
}

/* every target network icon on a calendar chip stays visible — the row wraps instead of clipping (Sharon 14.10) */
.sx-cal-card .ic { flex-wrap: wrap; row-gap: 2px; white-space: normal; overflow: visible; }

/* 🗓️ date / time bubbles */
.sx-bubble { position: fixed; z-index: 100000; background: #111c30; color: var(--text); border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.5); padding: 10px; direction: rtl; }
.sx-bubble-arrow { position: absolute; top: -7px; width: 12px; height: 12px; margin-left: -6px; background: #111c30; border-left: 1px solid rgba(255,255,255,0.16); border-top: 1px solid rgba(255,255,255,0.16); transform: rotate(45deg); }
.sx-bubble.up .sx-bubble-arrow { top: auto; bottom: -7px; transform: rotate(225deg); }
.sx-cal-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sx-cal-pick-head b { font-size: 14px; }
.sx-cal-pick-head button, .sx-cal-pick-foot button { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.sx-cal-pick-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; }
.sx-cal-pick-grid i { font-style: normal; font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.sx-cal-pick-grid button { height: 32px; border: none; border-radius: 50%; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sx-cal-pick-grid button:hover:not(:disabled) { background: rgba(255,255,255,0.08); }
.sx-cal-pick-grid button.today { color: var(--gold); font-weight: 700; }
.sx-cal-pick-grid button.sel { background: var(--gold); color: #111; font-weight: 700; }
.sx-cal-pick-grid button:disabled { opacity: 0.3; cursor: default; }
.sx-cal-pick-foot { display: flex; justify-content: center; margin-top: 8px; }
.sx-wheels { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 180px; }
.sx-wheel { height: 180px; width: 64px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 72px 0; box-sizing: border-box; position: relative; z-index: 1; -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.sx-wheel::-webkit-scrollbar { display: none; }
.sx-wheel-it { height: 36px; line-height: 36px; text-align: center; font-size: 20px; color: var(--muted); scroll-snap-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.sx-wheel-it.on { color: var(--text); font-weight: 700; }
.sx-wheel-colon { font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.sx-wheel-band { position: absolute; left: 8px; right: 8px; top: 72px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.08); pointer-events: none; }

/* post editor: narrow, one column (Sharon 16.10.26: "עמוס — צר יותר, עמודה אחת") */
.sx-modal-box:has(> .sx-modal-body > .sx-ed) { width: min(560px, 100%); }
.sx-ed .sx-grid2 { grid-template-columns: 1fr; gap: 8px; }
.sx-ed .sx-ed-row { grid-template-columns: 1fr; gap: 6px; }

/* 🌐 networks in the editor: neat tiles, 3 per row; not-connected ones as one quiet line (Sharon 16.10.26) */
.sx-ed .sx-nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sx-ed .sx-net.dead { opacity: 0.28; cursor: default; pointer-events: none; }
.sx-ed .sx-net { border-radius: 10px; padding: 9px 10px; gap: 8px; font-size: 13px; min-width: 0; transition: background .15s, border-color .15s; }
.sx-ed .sx-net span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-ed .sx-net.on { border-color: rgba(212,175,55,0.55); background: rgba(212,175,55,0.08); }
.sx-nets-off { margin-top: 10px; font-size: 11px; color: var(--muted); }
.sx-nets-off button { background: none; border: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline dotted; cursor: pointer; }
.sx-nets-off button:hover { color: var(--text); }
@media (max-width: 520px) { .sx-ed .sx-nets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .sx-ed .sx-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* cover: dashed center guides while dragging (snap to the middle) */
.sx-guide { position: absolute; pointer-events: none; z-index: 2; }
.sx-guide.v { top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed rgba(255,255,255,0.85); transform: translateX(-0.75px); }
.sx-guide.h { left: 0; right: 0; top: 50%; border-top: 1.5px dashed rgba(255,255,255,0.85); transform: translateY(-0.75px); }

/* editor sections: no side labels — the section name huge + faint behind its content, in a display font (Sharon 16.10.26) */
.sx-ed .sx-ed-row { position: relative; padding: 14px 0; isolation: isolate; overflow: hidden; }
.sx-ed .sx-ed-row > :not(.sx-ed-l) { position: relative; z-index: 1; }
/* centered both ways; letters spread with flex gap (letter-spacing is one-sided in RTL → looked pushed left) */
.sx-ed .sx-ed-row > .sx-ed-l { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; user-select: none;
  font-family: "Karantina", "Heebo", sans-serif; font-weight: 700; font-size: 40px; line-height: 1; /* set from the section height by fitWatermarks() */
  display: flex; gap: 0.22em; color: var(--text); opacity: 0.09; white-space: nowrap; }

/* "?" tips instead of notes under checkboxes */
.sx-qt { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; line-height: 1; cursor: help; vertical-align: middle; }
.sx-qt:hover, .sx-qt:focus { color: var(--text); border-color: var(--gold); outline: none; }
.sx-tipbox { position: fixed; z-index: 100001; max-width: 260px; background: #111c30; color: #e8edf5; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.45; box-shadow: 0 10px 24px rgba(0,0,0,0.5); pointer-events: none; text-align: start; }

.sx-cb .sx-qt { margin-inline-end: 2px; }
.sx-f .sx-qt, .sx-hint .sx-qt { margin-inline-end: 5px; }

/* Sharon 16.10: שמור / ביטול / ⋯ always floating at the bottom of the modal */
.sx-modal-foot { position: sticky; bottom: -18px; z-index: 30; background: #0b1526; margin-bottom: -18px; padding-bottom: 18px; box-shadow: 0 -10px 16px -10px rgba(0,0,0,0.6); }
/* TikTok | YouTube settings side by side, each one column (Sharon 16.10) — stacks on a phone */
.sx-netpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: stretch; }
.sx-netpair > .sx-netset { min-width: 0; margin: 0; }
.sx-netpair .sx-grid2 { grid-template-columns: 1fr; }
/* checkboxes (Sharon 16.10): checked = green box + dark-blue ✓ · unchecked = empty white box · bulk "no change" = green dash */
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 4px; background: #fff; border: 1.5px solid #fff; display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]::before { content: ""; width: 9px; height: 5px; border: solid #0b1f4a; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:checked { background: #34d399; border-color: #34d399; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:checked::before { opacity: 1; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:indeterminate { background: #34d399; border-color: #34d399; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:indeterminate::before { opacity: 1; width: 8px; height: 0; border-width: 0 0 2.5px 0; transform: none; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"]:disabled { opacity: 0.4; cursor: default; }
:is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) :is(.sx-net, .sx-day) input[type="checkbox"], :is(#ai-social-view, .sx-modal, .sx-embed, .sx-bubble) input[type="checkbox"][hidden] { display: none; }
/* date + time centered in their section (Sharon 16.10) */
.sx-ed .sx-when { justify-content: center; }
/* ⚙️ מתקדם, compact: each network = a box with its icon huge + faint behind (no title); Instagram in 2 columns */
.sx-ed .sx-settings { gap: 8px; margin-top: 6px; }
.sx-netset { position: relative; isolation: isolate; }
.sx-netset > :not(.sx-netset-wm) { position: relative; z-index: 1; }
.sx-netset > .sx-netset-wm { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; border-radius: inherit; }
.sx-netset > .sx-netset-wm svg { width: auto; height: 96%; max-width: 96%; color: var(--text); opacity: 0.07; }
.sx-ed .sx-netset { padding: 8px 10px; }
.sx-ed .sx-netset legend { padding: 0 4px; }
.sx-ed .sx-netset .sx-grid2 { gap: 6px 12px; }
.sx-ed .sx-netset[data-net="instagram"] .sx-grid2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .sx-ed .sx-netset[data-net="instagram"] .sx-grid2 { grid-template-columns: 1fr; } }
.sx-ed .sx-adv { border-top: 1px solid rgba(255,255,255,0.07); padding: 10px 0 4px; display: grid; gap: 6px; }
.sx-netset .sx-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sx-netset[data-net="youtube"] > .sx-netset-wm svg { transform: scale(1.25); }
.sx-cb, .sx-check { cursor: default; }
/* every checkbox at the same X: the "?" sits in a fixed gutter before it (empty gutter when there's no "?") */
.sx-cb { position: relative; padding-inline-start: 22px; }
.sx-cb > .sx-qt { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.sx-ed .sx-hint:has(> .sx-qt:first-child) { position: relative; padding-inline-start: 22px; }
.sx-ed .sx-hint > .sx-qt:first-child { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); margin: 0; }
/* 🤖 per-post auto-reply section in the post editor */
.sx-ed .sx-ar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; align-items: end; }
@media (max-width: 520px) { .sx-ed .sx-ar { grid-template-columns: 1fr; } }

/* 📱 iPhone (Sharon 16.10): the post editor is a full screen sheet — title + ✕ stay on top, שמור/ביטול/⋯ stay at the
   bottom above the home bar; 16px fields so iOS doesn't zoom in on tap; bigger touch targets; a shorter cover stage */
@media (max-width: 640px) {
  .sx-modal { padding: 0; align-items: stretch; }
  .sx-modal-box, .sx-modal-box:has(> .sx-modal-body > .sx-ed) { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding: 0 14px; }
  .sx-modal-head { position: sticky; top: 0; z-index: 31; background: #0b1526; margin: 0 -14px 8px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .sx-modal-head h2 { font-size: 15px; }
  .sx-modal-foot { bottom: 0; margin: 12px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .sx-modal-foot .sx-btn { min-height: 44px; flex: 1; font-size: 15px; }
  .sx-modal-foot .sx-foot-menu { flex: none; }
  .sx-modal input:not([type="checkbox"]):not([type="range"]), .sx-modal textarea, .sx-modal select, .sx-bubble input { font-size: 16px; }
  .sx-modal .sx-icon-btn { min-width: 40px; min-height: 40px; }
  .sx-ed .sx-net { min-height: 44px; }
  .sx-ed .sx-cb { min-height: 32px; }
  .sx-cover-stage { width: min(46vw, 180px); height: auto; aspect-ratio: 9 / 16; }
  .sx-ed .sx-when { gap: 8px; }
  .sx-ed .sx-when input { min-height: 40px; }
}
.sx-vp-box video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

/* 🏷️ @-suggestions under תיוג / Collab (Sharon 18.10, like Publer) */
.sx-chipin { position: relative; }
.sx-sug { position: absolute; inset-inline: 0; top: 100%; margin-top: 4px; z-index: 30; background: #0f1a33; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,0.45); padding: 4px; max-height: 260px; overflow-y: auto; }
.sx-sug-i { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-radius: 7px; padding: 6px 8px; color: inherit; cursor: pointer; text-align: start; font: inherit; }
.sx-sug-i:hover, .sx-sug-i.on { background: rgba(52,211,153,0.14); }
.sx-sug-i img, .sx-sug-av { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; }
.sx-sug-av { display: grid; place-content: center; background: rgba(255,255,255,0.08); font-size: 13px; opacity: 0.7; }
.sx-sug-t { display: flex; flex-direction: column; min-width: 0; direction: ltr; text-align: left; flex: 1; }
.sx-sug-t b { font-size: 13px; }
.sx-sug-t small { font-size: 11px; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-sug-ok { font-style: normal; color: #34d399; font-size: 12px; }
.sx-netset:focus-within { z-index: 6; }
.sx-netset > :focus-within { z-index: 5; }
.sx-sug-hint { font-size: 11.5px; opacity: 0.7; padding: 6px 8px; line-height: 1.4; }
.sx-ed .sx-ar-wrap { display: grid; gap: 8px; min-width: 0; flex: 1; }
.sx-ed .sx-ar[hidden] { display: none; }
.sx-ed .sx-autocap { font-size: 12px; margin-top: 2px; }

/* 🔥 the daily boost pick (web/social/boostpick.js): ring + badge on its block, one line in the board header */
.sx-cal-card.boost { position: relative; flex-wrap: wrap; outline: 2px solid #f97316; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(249,115,22,0.25), 0 0 14px rgba(249,115,22,0.45); background: rgba(249,115,22,0.12); }
.sx-boost-badge { flex: 1 0 100%; order: -1; font-size: 10px; font-weight: 700; color: #fdba74; line-height: 1.2; white-space: nowrap; }
.sx-boost-line { margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(249,115,22,0.6); background: rgba(249,115,22,0.12); color: #fdba74; font: inherit; font-size: 12px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-boost-line:hover { background: rgba(249,115,22,0.22); }

/* 🎵 TikTok panel in the post editor (Direct Post UX, English, left-to-right) */
.sx-tt-wrap { grid-column: 1 / -1; min-width: 0; }
.sx-tt { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sx-tt-mode { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sx-tt [data-tt-direct] { display: flex; flex-direction: column; gap: 8px; }
.sx-tt [data-tt-direct][hidden], .sx-tt [hidden] { display: none; }
.sx-tt-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.sx-tt-who img { border-radius: 50%; object-fit: cover; }
.sx-tt-top { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sx-tt-prev { width: 120px; max-height: 214px; border-radius: 8px; background: #000; object-fit: contain; flex: none; }
.sx-tt-cap { flex: 1 1 180px; min-width: 0; }
.sx-tt-cap pre { white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; font-size: 12px; line-height: 1.45; font-family: inherit; color: var(--text); background: rgba(255,255,255,0.04); border-radius: 6px; padding: 6px 8px; max-height: 140px; overflow: auto; }
.sx-tt-ix { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sx-tt .sx-cb.dis { opacity: 0.5; cursor: not-allowed; }
.sx-tt-disc [data-tt-brand] { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 21px; margin-top: 4px; }
.sx-tt .sx-hint.bad { color: #fca5a5; }
.sx-tt-consent { font-weight: 600; }
.sx-tt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sx-tt-actions .sx-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
