/* מערכת הניהול — נקייה ובהירה, עם סרגל צד כהה שמשדר את אותה שפה של מסך הלובי. */

:root {
  --font: 'Heebo', 'Assistant', 'Segoe UI', Arial, sans-serif;
  --bg: #f4f5f9; --card: #fff; --ink: #141826; --ink2: #5b6377; --ink3: #8d94a8; --line: #e6e8f0;
  --accent: #3157ff; --accent-soft: #eef1ff; --teal: #12b5a0; --green: #14a46c; --amber: #c9820a; --red: #d9443b;
  --r: 16px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg); direction: rtl;
  display: grid; grid-template-columns: 264px minmax(0, 1fr); -webkit-font-smoothing: antialiased; font-size: 15px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--ink3); margin: 0; }
.mt { margin-top: 22px !important; }

.hue-blue { --a1: #4f8cff; --a2: #a9c8ff; --a3: #2a5bd7; }
.hue-violet { --a1: #9b7bff; --a2: #cdbcff; --a3: #6a46e0; }
.hue-amber { --a1: #ffb547; --a2: #ffd89a; --a3: #c77a06; }
.hue-green { --a1: #2ecf8f; --a2: #9cf0c9; --a3: #10935f; }
.hue-red { --a1: #ff6b6b; --a2: #ffb3b3; --a3: #cf3434; }
.hue-slate { --a1: #7d8fb3; --a2: #c6d1e6; --a3: #4c5b7a; }
.hue-pink { --a1: #ff7eb6; --a2: #ffc4dd; --a3: #d2427f; }
.hue-teal { --a1: #22cfc1; --a2: #9df1e9; --a3: #0e9a8e; }
.hue-gold { --a1: #ffcf5a; --a2: #ffe7a6; --a3: #c98a0b; }
.art { width: 100%; height: 100%; display: block; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- סרגל צד ---------- */
#nav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; color: #fff; overflow-y: auto;
  background: radial-gradient(120% 60% at 100% 0%, #1d3a8a 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, #0d6b62 0%, transparent 60%), #0a1128;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-logo { width: 42px; height: 42px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 4px; }
.brand b { font-size: 20px; font-weight: 800; display: block; letter-spacing: -.01em; }
.brand small { color: rgba(255, 255, 255, .55); font-size: 13px; }
#nav nav { display: grid; gap: 2px; }
#nav nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255, 255, 255, .72);
  font-weight: 500; transition: background .15s, color .15s; position: relative;
}
#nav nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
#nav nav a.on { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 700; }
#nav nav a.on::before { content: ''; position: absolute; right: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #7cf5d4; }
#nav nav em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; background: #ff6b6b; color: #fff; border-radius: 99px; padding: 1px 8px; }
.open-screen {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; color: #0a1128; font-weight: 700;
  background: linear-gradient(135deg, #7cf5d4, #8fb3ff);
}
.me { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.me b { display: block; font-size: 14px; }
.me small { color: rgba(255, 255, 255, .55); font-size: 12px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, #8fb3ff, #7cf5d4); color: #0a1128;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

/* ---------- תוכן ---------- */
#view { height: 100vh; overflow-y: auto; padding: 30px 40px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--ink2); margin: 6px 0 0; }
.actions { display: flex; gap: 10px; align-items: center; }

.btn {
  height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s;
}
.btn:hover { border-color: #cdd2e1; background: #fafbfe; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(49, 87, 255, .28); }
.btn.primary:hover { background: #2347e6; }
.btn.ghost { background: transparent; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.icon-only { width: 42px; padding: 0; justify-content: center; }
.btn.playing { border-color: var(--accent); color: var(--accent); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink2); }
.icon-btn:hover { background: #eef0f6; color: var(--ink); }
.icon-btn.danger:hover { background: #fdecea; color: var(--red); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card h2 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card header small { color: var(--ink3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col > .card { margin: 0; }
.two-col + .card, .two-col { margin-bottom: 20px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; }
.hint .ic { color: var(--teal); }

.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #f0f2f7; color: var(--ink2); white-space: nowrap; }
.tag.red { background: #fdecea; color: var(--red); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: '●'; margin-inline-end: 5px; font-size: 9px; vertical-align: 1px; }
.pill.active { background: #e7f7ef; color: var(--green); }
.pill.scheduled, .pill.invited { background: var(--accent-soft); color: var(--accent); }
.pill.expired, .pill.disabled { background: #f0f2f7; color: var(--ink3); }
.pill.paused, .pill.pending { background: #fff4e0; color: var(--amber); }

.thumb-art { width: 48px; height: 48px; border-radius: 12px; padding: 4px; flex: none; display: inline-block; background: color-mix(in srgb, var(--a1) 14%, #fff); }

/* ---------- לוח בקרה ---------- */
.dash { display: grid; gap: 20px; }
/* לוח בקרה: מדדים בשורה אחת · המסך עכשיו ליד הבוט · מסתיימות בקרוב ליד פעילות אחרונה */
.dash-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; } /* אותם רוחבים בשתי השורות, גובה שווה בכל שורה */
.stats.row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.row4 .stat { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.stats.row4 .stat .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); }
.stats.row4 .stat b { margin: 0; font-size: 22px; line-height: 1; }
.stats.row4 .stat span { font-size: 13px; line-height: 1.25; }
/* הבוט בגובה של "המסך עכשיו": התוכן שלו לא קובע את גובה השורה, והשיחה נגללת בפנים */
.dash-row .preview-card { grid-row: auto; } /* בלוח הבקרה — שורה אחת עם הבוט */
.dash-row.main .bot-card { display: flex; flex-direction: column; contain: size; }
.dash-row.main .bot-card .chat.bot { flex: 1; height: auto; min-height: 0; }
.dash .card { margin: 0; }
.preview-card { grid-row: span 2; }
.preview { aspect-ratio: 16 / 9; border-radius: 12px; background: #060a18; }
#view { position: relative; }
.preview-frame { position: absolute; display: none; border: 0; border-radius: 12px; z-index: 5; pointer-events: none; background: #060a18; }
.preview-card footer { display: flex; gap: 18px; align-items: center; margin-top: 14px; color: var(--ink2); font-size: 14px; flex-wrap: wrap; }
.preview-card footer span { display: inline-flex; align-items: center; gap: 6px; }
.preview-card footer a { margin-inline-start: auto; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(20, 164, 108, .15); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat .ic { width: 22px; height: 22px; color: var(--accent); }
.stat b { display: block; font-size: 30px; font-weight: 800; margin-top: 6px; }
.stat span { color: var(--ink2); font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rows li { display: flex; align-items: center; gap: 12px; }
.rows li > div { flex: 1; min-width: 0; }
.rows b { display: block; font-size: 14px; }
.rows small { color: var(--ink3); font-size: 13px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.log small { display: block; color: var(--ink3); font-size: 12px; }

/* וואטסאפ */
.wa h2 .ic { color: #25d366; }
.chat {
  height: 300px; overflow-y: auto; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  background: #efeae2 radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1.5px) 0 0 / 18px 18px;
}
.bubble { max-width: 84%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bubble.bot { background: #fff; align-self: flex-start; border-start-start-radius: 4px; }
.bubble.me { background: #d9fdd3; align-self: flex-end; border-start-end-radius: 4px; }
.wa-card { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #f3f6ff; border-inline-start: 3px solid var(--accent); }
.wa-card b { display: block; }
.wa-card span { font-size: 12px; color: var(--ink2); }
.wa-btns { display: flex; gap: 8px; margin-top: 8px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; height: 42px; border-radius: 99px; border: 1px solid var(--line); padding: 0 16px; background: #fff; }

/* ---------- רשימות וטבלאות ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #e9ebf2; border-radius: 12px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.tabs em { font-style: normal; font-size: 12px; color: var(--ink3); margin-inline-start: 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 120px 84px auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.expired, .list li.paused { opacity: .6; }
.li-main b { display: block; font-size: 15px; }
.li-main small { display: block; color: var(--ink3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { color: var(--ink2); font-size: 13px; font-variant-numeric: tabular-nums; }
.li-act { display: flex; gap: 2px; }
.empty-row { display: block !important; text-align: center; color: var(--ink3); padding: 40px !important; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; color: var(--ink3); font-size: 12px; padding: 12px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--ink3); font-size: 12px; }
.table tr.done td, .table tr.disabled td { opacity: .6; }
.table select { height: 34px; border-radius: 9px; border: 1px solid var(--line); padding: 0 8px; background: #fff; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.row-act { display: flex; gap: 4px; justify-content: flex-end; }
.st-select.st-open { color: var(--amber); } .st-select.st-progress { color: var(--accent); } .st-select.st-parts { color: #7b5cff; } .st-select.st-done { color: var(--green); }

/* ישיבות */
.meeting header { align-items: center; }
.meeting header > div { flex: 1; }
.decisions { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.decisions li { display: grid; grid-template-columns: 30px 1fr 130px 34px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f8f9fc; }
.decisions b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ece8ff; color: #6a46e0; font-size: 13px; }
.decisions select { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; padding: 0 8px; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; }

/* בעלי מקצוע */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pro { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pro.off { opacity: .55; }
.pro-top { display: flex; align-items: center; gap: 12px; }
.pro-top > div { flex: 1; }
.pro-top b { display: block; font-size: 16px; }
.pro-top small { color: var(--ink3); }
.pro-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); align-self: flex-end; font-variant-numeric: tabular-nums; }
.pro-rating { display: flex; align-items: center; gap: 8px; }
.pro-rating small { color: var(--ink3); }
.stars { letter-spacing: .08em; background: linear-gradient(to left, #f5b301 var(--r), #dfe3ec var(--r)); -webkit-background-clip: text; background-clip: text; color: transparent; }
blockquote { margin: 0; padding: 10px 14px; border-radius: 12px; background: #f6f8fb; color: var(--ink2); font-size: 14px; line-height: 1.5; }
blockquote cite { display: block; font-style: normal; color: var(--ink3); font-size: 12px; margin-top: 4px; }
.pro footer { display: flex; gap: 4px; align-items: center; margin-top: auto; }
.pro footer .btn { margin-inline-end: auto; }

/* חדשות */
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting:last-child { border-bottom: 0; }
.setting.col { flex-direction: column; align-items: flex-start; cursor: default; }
.setting b { display: block; }
.setting small { color: var(--ink3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); transition: all .15s;
}
.chip-btn:hover { border-color: #c9cfdf; }
.chip-btn.on { background: var(--accent-soft); border-color: #c7d1ff; color: var(--accent); }
.chip-btn em { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 11px; }
.chip-btn .ic { width: 14px; height: 14px; }
.news-prev { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-prev li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.5; }

/* מתג */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: #d5d9e5; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(-18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch span { font-weight: 600; font-size: 14px; }
.switch.big i { width: 52px; height: 30px; }
.switch.big i::after { width: 24px; height: 24px; }
.switch.big input:checked + i::after { transform: translateX(-22px); }

/* ---------- תצוגה ---------- */
.display-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 0; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.layout-card {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; text-align: start;
  display: flex; flex-direction: column; gap: 4px; transition: all .15s;
}
.layout-card:hover { border-color: #c9cfdf; }
.layout-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.layout-card b { font-size: 14px; margin-top: 6px; }
.layout-card small { color: var(--ink3); font-size: 12px; line-height: 1.4; }
.thumb { width: 100%; border-radius: 8px; background: #0b1430; }
.thumb rect.zone { fill: rgba(255, 255, 255, .14); }
.thumb rect.bar { fill: rgba(255, 255, 255, .26); }
.thumb rect.lead { fill: rgba(124, 245, 212, .45); }
.thumb.on rect.lead { fill: #7cf5d4; }
.zone-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.zone-row:last-child { border-bottom: 0; }
.zone-row > b { padding-top: 7px; font-size: 14px; }
.card.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card.two h2 { margin-bottom: 12px; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; }
.theme { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px 8px 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.theme span { width: 34px; height: 34px; border-radius: 9px; }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.range { display: flex; align-items: center; gap: 14px; }
.range input { flex: 1; accent-color: var(--accent); }
.range b { min-width: 80px; font-variant-numeric: tabular-nums; }
select, input[type='time'], input[type='text'], input:not([type]), input[type='tel'], input[type='number'], input[type='datetime-local'], textarea {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; background: #fff; width: 100%; outline: none; transition: border .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-inputs label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }

/* ---------- מוזיקה ---------- */
.styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.style-card {
  border-radius: 18px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; min-height: 230px;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .2s;
}
.style-card:hover { transform: translateY(-3px); }
.style-card.on { border-color: #fff; box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.sc-lounge { background: linear-gradient(150deg, #3a2d8f, #1c4fd6); }
.sc-piano { background: linear-gradient(150deg, #f08a6c, #c54a8a); }
.sc-jazz { background: linear-gradient(150deg, #a0621a, #3d2614); }
.sc-nature { background: linear-gradient(150deg, #1d9a73, #0c4f63); }
.sc-med { background: linear-gradient(150deg, #1b8fd1, #10b5a0); }
.style-art { height: 64px; display: flex; align-items: center; }
.wave { display: inline-flex; align-items: center; gap: 4px; height: 40px; }
.wave i { width: 5px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .8); }
.style-card.on .wave i, .style-card:has(.playing) .wave i { animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s !important; } .wave i:nth-child(3) { animation-delay: -.5s !important; }
.wave i:nth-child(4) { animation-delay: -.7s !important; } .wave i:nth-child(5) { animation-delay: -.35s !important; }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 38px; } }
.style-card b { font-size: 18px; }
.style-card small { opacity: .85; font-size: 13px; line-height: 1.4; }
.style-card em { font-style: normal; font-size: 12px; opacity: .7; }
.style-act { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.style-act .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.style-act .btn.primary { background: #fff; color: #111; }
.dayparts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.dayparts label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.dayparts.disabled { opacity: .45; pointer-events: none; }

/* ---------- משתמשים ---------- */
.pending { border-color: #ffe0a6; background: #fffcf4; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roles li b { display: block; font-size: 14px; }
.roles li small { color: var(--ink3); font-size: 13px; }
.stack { display: grid; gap: 14px; }

/* ---------- הגדרות ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.form-grid .wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
legend { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.radio-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid !important; gap: 2px !important; position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card b { color: var(--ink); font-size: 14px; }
.radio-card small { color: var(--ink3); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; }
.danger-zone b { display: block; }
.danger-zone small { color: var(--ink3); }

/* ---------- מגירה וטפסים ---------- */
#drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#drawer.open { pointer-events: auto; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 17, 40, .35); animation: fadeIn .2s both; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(500px, 100vw); background: #fff; padding: 24px; overflow-y: auto;
  box-shadow: 20px 0 60px rgba(10, 17, 40, .2); animation: slideIn .28s cubic-bezier(.2, .8, .2, 1) both;
}
.drawer > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer h2 { font-size: 20px; font-weight: 800; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(-40px); opacity: 0; } }
.stack label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.stack label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.stack label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.counter { font-weight: 500; color: var(--ink3); font-size: 12px; }
.counter.warn { color: var(--amber); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: #eef0f6; border-radius: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--ink2); font-size: 14px; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
form[data-kind='golden'] .for-notice, form[data-kind='notice'] .for-golden { display: none; }
.art-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.art-pick label { cursor: pointer; }
.art-pick input { position: absolute; opacity: 0; }
.art-pick .thumb-art { width: 52px; height: 52px; border: 2px solid transparent; transition: all .15s; }
.art-pick input:checked + .thumb-art { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate span { font-size: 30px; color: #dfe3ec; cursor: pointer; }
.rate label:has(input:checked) span, .rate label:has(input:checked) ~ label span { color: #f5b301; }

.mini-slide { border-radius: 14px; overflow: hidden; }
.mini {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 18px; color: #fff; min-height: 150px;
  background: radial-gradient(120% 100% at 100% 0%, #1d3a8a, #060a18 70%);
}
.mini.gold { background: radial-gradient(120% 100% at 50% 0%, #5a4210, #060a18 75%); }
.mini-art { width: 96px; height: 96px; }
.mini-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--a1) 25%, transparent); color: var(--a2); }
.mini b { display: block; font-size: 20px; font-weight: 800; margin: 6px 0 4px; line-height: 1.2; }
.mini p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.5; }

#toasts { position: fixed; bottom: 24px; left: 24px; z-index: 60; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; background: #111830; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: toastIn .3s cubic-bezier(.2, .8, .2, 1) both;
}
.toast .ic { color: #7cf5d4; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- מסכים קטנים ---------- */
@media (max-width: 1280px) {
  .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .display-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100vh; }
  #nav { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; }
  .brand { padding: 0 4px; } .brand div, .open-screen span, .me { display: none; }
  #nav nav { display: flex; } #nav nav a span { display: none; } #nav nav a.on::before { display: none; }
  .open-screen { margin: 0; }
  #view { height: auto; padding: 20px 16px 60px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .dash, .two-col, .card.two, .form-grid, fieldset { grid-template-columns: 1fr; }
  .dash-row, .dash-row.main { grid-template-columns: 1fr; }
  .stats.row4 { grid-template-columns: 1fr 1fr; }
  .dash-row.main .bot-card { contain: none; }
  .dash-row.main .bot-card .chat.bot { height: 280px; flex: none; }
  .styles { grid-template-columns: 1fr 1fr; }
  .list li { grid-template-columns: 48px 1fr auto; }
  .list li .tag, .list li .when { display: none; }
  .card.flush { overflow-x: auto; }
}

/* ---------- כניסה ---------- */
body.login-mode { grid-template-columns: 1fr; }
body.login-mode #nav { display: none; }
body.login-mode #view { padding: 0; }
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 16px;
  background: radial-gradient(70% 60% at 85% 0%, #1d3a8a, transparent 60%), radial-gradient(60% 50% at 0% 100%, #0d6b62, transparent 60%), #060a18;
}
.login-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 34px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); text-align: center; }
.login-logo { display: inline-block; width: 64px; height: 64px; border-radius: 18px; padding: 6px; background: #0a1128; }
.login-card h1 { font-size: 26px; font-weight: 800; margin: 16px 0 6px; }
.login-card p { color: var(--ink2); margin: 0 0 22px; }
.login-card .stack { text-align: start; }
.btn.big { height: 48px; font-size: 16px; justify-content: center; }
.code-input { height: 64px !important; text-align: center; font-size: 32px !important; font-weight: 800; letter-spacing: .5em; padding-inline-start: .5em !important; font-variant-numeric: tabular-nums; }
.code-input.pair { height: 52px !important; font-size: 24px !important; letter-spacing: .25em; text-transform: uppercase; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 600; padding: 4px; }
.login-error { margin-top: 16px; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--red); font-weight: 600; }
.dev-code { margin-top: 18px; padding: 12px; border-radius: 12px; background: #fff8e6; color: #7a5200; font-size: 14px; }
.dev-code b { font-size: 20px; letter-spacing: .15em; margin-inline-start: 6px; }
.dev-code small { display: block; color: #a07a2c; margin-top: 4px; }

.me .logout { margin-inline-start: auto; color: rgba(255, 255, 255, .6); transform: scaleX(-1); }
.me .logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.offline-pill { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 107, 107, .15); color: #ffb3b3; font-size: 12px; font-weight: 600; text-align: center; }
.toast.bad { background: #5c1414; }
.toast.bad .ic { color: #ffb3b3; }
.steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; color: var(--ink2); line-height: 1.5; }

/* ---------- תמונות בהודעות ---------- */
.thumb-art.photo, .mini-art.photo { padding: 0; overflow: hidden; background: #e9ecf3; }
.thumb-art.photo img, .mini-art.photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.mini-art.photo { border-radius: 14px; }
form[data-visual='photo'] .for-art, form[data-visual='art'] .for-photo { display: none; }
.photo-pick { display: grid; gap: 6px; }
.drop { position: relative; display: block; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; border-radius: 14px;
  border: 2px dashed #cfd5e4; background: #f8f9fc; color: var(--ink2); overflow: hidden; transition: border-color .15s;
}
.drop:hover .drop-in { border-color: var(--accent); }
.drop-in .ic { width: 28px; height: 28px; color: var(--accent); }
.drop-in small { color: var(--ink3); }
.drop-in img { width: 100%; max-height: 240px; object-fit: cover; display: block; }

/* אזורי התרעה, וואטסאפ ובאנר חברה */
.area-chips .chip-btn { cursor: default; }
.chip-btn .x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 2px; font-size: 11px; opacity: .7; }
.chip-btn .x:hover { opacity: 1; }
.wa-number { font-size: 30px; font-weight: 800; color: #128c4a; letter-spacing: .02em; margin-bottom: 6px; text-align: right; }
.company-banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: -10px 0 20px; border-radius: 12px;
  background: #eef1ff; color: #23308f; font-size: 14px;
}
.company-banner a { margin-inline-start: auto; font-weight: 700; }
.company-banner.warn { background: #fff4e0; color: #8a5800; }

/* כיוון מסך */
.seg.orient span { padding: 10px 8px; }
.edit-orient { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.preview.portrait { aspect-ratio: 9 / 16; max-height: 72vh; margin-inline: auto; }
.layouts.tall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb.tall { width: 62%; margin: 0 auto; display: block; }


.login-foot { display: block; margin-top: 16px; }

/* תצוגה מלאה של המסך בתוך הניהול */
.open-screen { border: 0; cursor: pointer; font: inherit; font-weight: 700; width: 100%; text-align: start; }
.screen-overlay { position: fixed; inset: 0; z-index: 70; background: #04060c; display: flex; flex-direction: column; }
.so-bar { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #0a1128; color: #fff; }
.so-bar .muted { color: rgba(255, 255, 255, .55); font-size: 13px; }
.so-bar .btn { margin-inline-start: auto; color: var(--ink); font-weight: 700; }
.screen-overlay iframe { flex: 1; width: 100%; border: 0; }

/* משתמשים וקישור קבוע */
.add-user { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 10px; }
.link-box { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.link-box code { flex: 1; background: #f3f5fa; padding: 10px 12px; border-radius: 10px; font-size: 14px; word-break: break-all; }
@media (max-width: 900px) { .add-user { grid-template-columns: 1fr; } }

/* בוט הגדרות מהיר */
.bot-card h2 .ic { color: var(--accent); }
.chat.bot { background: linear-gradient(180deg, #f5f7ff, #eef6f4); height: 280px; }
.chat.bot .bubble.me { background: var(--accent); color: #fff; }
.bot-help { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.undo-hint { color: var(--ink3); font-size: 12px; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bot-chips .chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; }
.bot-chips .chip:hover { border-color: var(--accent); color: var(--accent); }

/* סט אייקונים */
.icon-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.icon-set { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; display: grid; gap: 8px; justify-items: start; font: inherit; color: var(--ink); }
.icon-set.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.icon-set .icon-row { display: flex; gap: 6px; }
.icon-set .thumb-art { width: 40px; height: 40px; padding: 3px; }

/* חגי ישראל */
.hol-table td { vertical-align: middle; }
.hol-table td small { display: block; color: var(--ink3); font-size: 12.5px; margin-top: 2px; }
.hol-table tr.off td:not(:nth-child(5)) { opacity: .45; }
.hol-thumb { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #0d1530; overflow: hidden; }
.hol-thumb svg { width: 50px; height: 50px; }
.hol-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hol-what small { max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hol-table .row-act { white-space: nowrap; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.hol-table .row-act select { padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-size: 13px; }
@media (max-width: 1200px) { .hol-table th:nth-child(4), .hol-table td:nth-child(4) { display: none; } }
@media (max-width: 900px) { .hol-table .row-act { flex-wrap: wrap; } }
.tag.on { background: #e3f6ec; color: #11834f; }

/* מפת תנועה */
.traffic-card { margin-top: 18px; }
.traffic-card .row-inputs { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.traffic-card .row-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); flex: 1 1 200px; }
.waze-prev { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 300px; }
.waze-prev iframe { width: 100%; height: 100%; border: 0; display: block; }

/* גלריית תמונות */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.gal-card { padding: 10px; display: grid; gap: 8px; }
.gal-card.off { opacity: .5; }
.gal-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #0d1530; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-num { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.gal-caption { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; }
.gal-tools { display: flex; align-items: center; gap: 4px; }
.gal-tools .switch { margin-inline-end: auto; }
.btn.disabled { opacity: .6; pointer-events: none; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; margin-top: 16px; text-align: center; }
.empty-state .ic { width: 34px; height: 34px; color: var(--ink3); }

/* שבת וחג, פרשת השבוע, הפתגם היומי */
.radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px) { .radio-grid { grid-template-columns: 1fr; } }
.setting.disabled { opacity: .5; }
.sh-next { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sh-next > div { background: #f6f7fb; border-radius: 12px; padding: 12px 14px; }
.sh-next small { display: block; color: var(--ink3); font-size: 12.5px; }
.sh-next b { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .sh-next { grid-template-columns: 1fr 1fr; } }
.pa-table td { vertical-align: middle; }
.pa-table td small { display: block; color: var(--ink3); font-size: 12.5px; margin-top: 2px; }
.pa-table td .tag { margin-bottom: 4px; }
.pa-table tr.off td { opacity: .5; }
.pa-table .hol-what small { -webkit-line-clamp: 3; max-width: 60ch; }
.pv-today { margin: 6px 0 10px; padding: 18px 22px; border-radius: 14px; background: linear-gradient(135deg, #f3efff, #eef6ff); font-size: 22px; font-weight: 800; line-height: 1.35; }
.pv-today cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink3); }
.pv-add { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin-bottom: 12px; }
@media (max-width: 900px) { .pv-add { grid-template-columns: 1fr; } }
.pv-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; }
.pv-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pv-list li:last-child { border-bottom: 0; }
.pv-list b { display: block; font-weight: 600; }
.pv-list small { color: var(--ink3); font-size: 12.5px; }
.pv-all summary { cursor: pointer; padding: 4px 0; }
.pv-all[open] summary { margin-bottom: 8px; }

/* התרעה מיוחדת */
.tab-note { margin: -4px 0 14px; max-width: 80ch; }
form[data-mode='always'] .for-cycle { display: none; }
.sp-styles { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-styles label { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.sp-styles input { position: absolute; opacity: 0; }
.sp-styles label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sp-sw { width: 22px; height: 22px; border-radius: 7px; }
.sp-urgent { --sp: radial-gradient(circle at 50% 35%, #e8461f, #8f1414 60%, #3d0606); }
.sp-info { --sp: radial-gradient(circle at 50% 35%, #3a6bff, #13308f 60%, #070f33); }
.sp-celebrate { --sp: radial-gradient(circle at 50% 35%, #f0b52b, #9a5f06 60%, #3a2203); }
.sp-calm { --sp: radial-gradient(circle at 50% 35%, #19c9a8, #0b6f5f 60%, #032520); }
.sp-sw { background: var(--sp); }
.sp-mini { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--sp); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 24px; }
.sp-mini-art { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.sp-mini-art svg { width: 46px; height: 46px; }
.sp-mini-art.photo { width: 120px; height: 68px; border-radius: 10px; overflow: hidden; }
.sp-mini-art.photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-mini small { margin-top: 10px; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .28); }
.sp-mini b { margin-top: 6px; font-size: 20px; font-weight: 900; line-height: 1.15; }
.sp-mini p { margin: 6px 0 0; font-size: 12px; opacity: .9; }

/* קישור לניהול ועד הבית (vaad.html) — מעל כפתור התצוגה המלאה */
.vaad-link { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.vaad-link:hover { background: rgba(255, 255, 255, .14); }
.vaad-link + .open-screen { margin-top: 8px; }
@media (max-width: 900px) { .vaad-link { margin: 0 6px 0 0; flex: none; } .vaad-link span { display: none; } .vaad-link + .open-screen { margin-top: 0; } }
