/* אבני בזלת: עיצוב. כחול וחום אינם מתערבבים; מלבן צבוע הוא רקע בהיר עם כיתוב כהה מאותו גוון. */
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/GoogleSans-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/GoogleSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* גווני הלוגו: #7DA6BA, #54859C, #426979, #304C59 */
  --blue: #54859c;
  --blue-light: #7da6ba;
  --blue-mid: #426979;
  --blue-bg: #e8f0f4;
  --blue-ink: #304c59;
  --brown: #bda26e;
  --brown-bg: #f5efe2;
  --brown-ink: #5a4a26;
  --acc: var(--blue);
  --acc-bg: var(--blue-bg);
  --acc-ink: var(--blue-ink);
  --acc-soft: #d3e2ea;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #1f2a30;
  --ink-2: #4a565e;
  --line: #e3e6e8;
  --radius: 14px;
  --nav-h: 64px;
  --side-w: 272px;
}

/* הכחול הוא הצבע המרכזי. גוון חום ניתן לרכיב בודד (אריח, כרטיס, התראה) כדי לשבור את הכחול; כחול וחום לא מתערבבים באותו רכיב. */
.tone-brown { --acc: var(--brown); --acc-bg: var(--brown-bg); --acc-ink: var(--brown-ink); --acc-soft: #e6d9bb; }
.tone-blue { --acc: var(--blue); --acc-bg: var(--blue-bg); --acc-ink: var(--blue-ink); --acc-soft: #d3e2ea; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) url('/assets/pattern.svg') repeat;
  background-size: 480px;
  color: var(--ink);
  font-family: 'Google Sans', 'Google Sans Flex', Heebo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; font-weight: 700; color: var(--acc-ink); letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 600; color: var(--acc-ink); }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--acc-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.boot { padding: 48px; text-align: center; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.end { margin-inline-start: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 6px; }

/* ---- כפתורים ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--acc); border-radius: 12px;
  background: var(--acc-bg); color: var(--acc-ink);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--acc-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #f1f2f1; }
.btn.brown { --acc: var(--brown); --acc-bg: var(--brown-bg); --acc-ink: var(--brown-ink); --acc-soft: #e6d9bb; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: 0.875rem; border-radius: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--acc-ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--acc-bg); }
.icon-btn[aria-disabled='true'] { opacity: 0.35; pointer-events: none; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- טפסים ---- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.input, select.input, textarea.input {
  min-height: 44px; padding: 8px 12px; width: 100%;
  border: 1px solid #c9cfd3; border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 1rem;
}
.input:focus { border-color: var(--acc); outline: 2px solid var(--acc-bg); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--acc); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d5d9dc; transition: background 0.15s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + span { background: var(--acc); }
.switch input:checked + span::after { transform: translateX(-22px); }
.switch input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---- משטחים ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.clickable { cursor: pointer; text-align: start; width: 100%; }
.card.clickable:hover { border-color: var(--acc); }
.notice { border-radius: var(--radius); padding: 12px 16px; background: var(--brown-bg); color: var(--brown-ink); border: 1px solid var(--brown); }
.notice.blue { background: var(--acc-bg); color: var(--acc-ink); border-color: var(--acc); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; background: var(--acc-bg); color: var(--acc-ink); }
.chip.brown { background: var(--brown-bg); color: var(--brown-ink); }
.chip.plain { background: #eff0ef; color: var(--ink-2); }
.chip svg.ic { width: 14px; height: 14px; stroke-width: 2.4; }
.page-head h1, .page-head p, .main > .stack > p, .main > div > h2, .main > .stack > h2 { text-shadow: 0 0 6px var(--bg), 0 0 6px var(--bg); }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-2); }
.spinner { width: 28px; height: 28px; margin: 48px auto; border: 3px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { transition: none !important; } }

/* ---- מסגרת האפליקציה ---- */
.shell { min-height: 100dvh; }
.side {
  --acc: var(--blue); --acc-bg: var(--blue-bg); --acc-ink: var(--blue-ink);
  position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w);
  display: flex; flex-direction: column; gap: 4px; padding: 20px 12px;
  background: var(--surface); border-inline-end: 1px solid var(--line); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-weight: 600; font-size: 1.125rem; color: var(--acc-ink); }
.brand img { width: 44px; height: 40px; object-fit: contain; }
.nav-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px;
  border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; border: 0; background: none; cursor: pointer; width: 100%; text-align: start;
}
.nav-link:hover { background: #f1f2f1; }
.nav-link[aria-current='page'] { background: var(--acc-bg); color: var(--acc-ink); }
.side .user { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.main { margin-inline-start: var(--side-w); padding: 28px 32px 48px; max-width: 1240px; }
.topbar, .bottom { display: none; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-inline-end: auto; }

@media (max-width: 899px) {
  .side { display: none; }
  .main { margin: 0; padding: 16px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
  .topbar img { width: 32px; height: 32px; }
  .topbar strong { color: var(--acc-ink); margin-inline-end: auto; }
  .bottom {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: var(--ink-2); text-decoration: none; font-size: 0.75rem; font-weight: 500; }
  .bottom a[aria-current='page'] { color: var(--acc-ink); }
  .bottom a[aria-current='page'] svg.ic { background: var(--acc-bg); box-sizing: content-box; padding: 4px 16px; border-radius: 999px; }
  h1 { font-size: 1.25rem; }
  .desktop-only { display: none !important; }
}
@media (min-width: 900px) { .mobile-only { display: none !important; } }

/* ---- כניסה ---- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 860px; display: grid; grid-template-columns: 5fr 6fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(48, 76, 89, 0.12); }
.auth-brand { background: var(--acc-bg); color: var(--acc-ink); padding: 36px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-inline-end: 1px solid var(--acc-soft); }
.auth-tag { font-size: 1.125rem; font-weight: 600; letter-spacing: 0.02em; }
.auth-minis { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.auth-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 12px 6px; border-radius: 16px; background: var(--acc-bg); border: 1px solid var(--acc-soft); color: var(--acc-ink); font-size: 0.875rem; font-weight: 500; }
.auth-mini.tone-blue { background: var(--surface); }
.auth-mini .bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.auth-mini.tone-blue .bubble { background: var(--acc-bg); }
.auth-form { padding: 36px 32px; border-top: 5px solid var(--brown); }
.auth-form h1 { text-align: start; margin: 0; }
.auth-note { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-ink); border: 1px solid var(--acc-soft); font-size: 0.875rem; }
@media (max-width: 719px) {
  .auth-card { grid-template-columns: 1fr; max-width: 420px; }
  .auth-brand { padding: 20px 16px 16px; gap: 6px; border-inline-end: 0; }
  .auth-brand .logo { width: 104px; }
  .auth-minis { display: none; }
  .auth-form { padding: 24px 20px; }
}
.auth .logo { display: block; width: 168px; height: auto; margin: 0 auto 8px; }
.code-input { text-align: center; font-size: 1.5rem; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.error { color: var(--brown-ink); background: var(--brown-bg); border: 1px solid var(--brown); border-radius: 10px; padding: 8px 12px; font-size: 0.9375rem; }
.qr { width: 200px; height: 200px; margin: 0 auto; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: ui-monospace, monospace; letter-spacing: 1px; word-break: break-all; text-align: center; direction: ltr; }

/* ---- רשימות ---- */
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: #eff0ef; border-radius: 14px; max-width: 100%; overflow-x: auto; }
.tabs button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected='true'] { background: var(--surface); color: var(--acc-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1 1 180px; }
.toolbar select.input { flex: 0 1 140px; }
.group-head { border-bottom: 1px solid var(--acc-soft); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--acc-bg); color: var(--acc-ink); }
.group-head h2 { font-size: 1rem; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); min-height: 60px; }
.list-row a.name { color: var(--ink); text-decoration: none; font-weight: 500; }
.list-row a.name:hover { text-decoration: underline; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; background: var(--acc-bg); color: var(--acc-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9375rem; }
.avatar.lg { width: 112px; height: 112px; font-size: 2rem; border-radius: 24px; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-weight: 500; font-size: 0.875rem; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---- האזור האישי ---- */
.id-card { display: flex; gap: 20px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; flex: 1; min-width: 240px; }
.fact dt { font-size: 0.8125rem; color: var(--ink-2); }
.fact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
dl { margin: 0; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--acc-bg); color: var(--acc-ink); min-width: 120px; }
.stat.brown { background: var(--brown-bg); color: var(--brown-ink); }
.stat b { font-size: 1.75rem; font-weight: 600; line-height: 1.2; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 0.75rem; color: var(--ink-2); padding: 4px 0; }
.cal .day { min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 0.875rem; color: var(--ink); padding: 2px; }
.cal button.day { cursor: pointer; }
.cal button.day:hover { border-color: var(--acc); }
.cal .day.present { background: var(--blue-bg); color: var(--blue-ink); }
.cal .day.absent { background: var(--brown-bg); color: var(--brown-ink); }
.cal .day.none { color: var(--ink-2); }
.cal .day.selected { border: 2px solid var(--acc); font-weight: 700; }
.cal .day.today .d { text-decoration: underline; text-underline-offset: 3px; }
.cal .day .mark { font-size: 0.6875rem; line-height: 1; height: 11px; }
.cal .day svg.ic { width: 12px; height: 12px; stroke-width: 2.6; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }

/* ---- נוכחות ---- */
.fill-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.fill-row .name { flex: 1; min-width: 0; font-weight: 500; }
.mark-btn { min-width: 84px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mark-btn.present[aria-pressed='true'] { background: var(--blue-bg); color: var(--blue-ink); border-color: var(--blue); }
.mark-btn.absent[aria-pressed='true'] { background: var(--brown-bg); color: var(--brown-ink); border-color: var(--brown); }
.fill-bar { flex-wrap: wrap; }
.fill-bar .btn { flex: 0 0 auto; }
.fill-bar { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(31, 42, 48, 0.1); }
@media (min-width: 900px) { .fill-bar { bottom: 16px; } }
.dash { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 1099px) { .dash { grid-template-columns: 1fr; } }
.ring-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { width: 120px; height: 120px; flex: none; }
.ring text { font-size: 22px; font-weight: 700; fill: var(--acc-ink); }
.big { font-size: 2.75rem; font-weight: 600; color: var(--acc-ink); line-height: 1.1; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.class-card.pending { background: var(--acc-bg); border-color: var(--acc-soft); color: var(--acc-ink); }
.class-card.pending .muted { color: var(--acc-ink); }
.class-card.pending .chip { background: var(--surface); }
.class-card { display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }

/* ---- שיבוץ ---- */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.room.hit { border: 2px solid var(--acc); box-shadow: 0 0 0 3px var(--acc-bg); }
.room.over { border: 2px dashed var(--acc); background: var(--acc-bg); }
.room.full.over { border-color: var(--brown); background: var(--brown-bg); }
.room.target { cursor: pointer; border-color: var(--acc); }
.room-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--acc-ink); }
.person { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; font-size: 0.875rem; background: #eff0ef; color: var(--ink); border: 1.5px solid transparent; min-height: 32px; }
.person small { margin-inline-start: auto; opacity: 0.85; white-space: nowrap; font-size: 0.75rem; }
.person.hit { border-color: var(--acc-ink); font-weight: 600; }
.person[draggable='true'] { cursor: grab; }
.person.selected { border-color: var(--acc-ink); box-shadow: 0 0 0 2px var(--acc-bg); }
.person.dragging { opacity: 0.4; }
.person.swap { border: 1.5px dashed var(--acc-ink); }
.person.counselor { background: var(--surface); border: 1.5px dashed var(--brown); color: var(--brown-ink); }
.slot { min-height: 32px; border: 1.5px dashed var(--line); border-radius: 8px; }
/* צבע לפי כיתה: שכבות ט ו-יא בכחול, י ו-יב בחום. מספר הכיתה מסומן בפס בקצה. */
.g9 { background: #e8f0f4; color: #304c59; --stripe: #54859c; }
.g10 { background: #f5efe2; color: #5a4a26; --stripe: #bda26e; }
.g11 { background: #c9dbe5; color: #2a4350; --stripe: #426979; }
.g12 { background: #e6d9bb; color: #4d3f1f; --stripe: #8a7648; }
.person.n2, .chip.n2 { box-shadow: inset -4px 0 0 var(--stripe); }
.person.n3, .chip.n3 { box-shadow: inset -7px 0 0 var(--stripe); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.pool { position: sticky; top: 16px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 10px; }
.pool-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 6px; border-radius: 10px; border: 1.5px dashed transparent; }
.pool-list.over { border-color: var(--acc); background: var(--acc-bg); }
.complex-title { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 10px; }

/* ---- אינפוגרפיקה ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--acc-bg); color: var(--acc-ink); border: 1px solid var(--acc-soft); text-decoration: none; min-width: 0; }
a.tile:hover { border-color: var(--acc); }
.tile .bubble { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--acc-ink); }
.tile .bubble svg.ic { width: 22px; height: 22px; }
.tile b { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 0.9375rem; font-weight: 500; opacity: 0.85; }
.tile span { font-size: 0.875rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-top: 4px solid var(--acc); }
.panel h2, .panel h3 { color: var(--acc-ink); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--acc); }
.chart .bar.dim { fill: var(--acc-soft); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart g:hover .bar { fill: var(--acc-ink); }
.chart text { font-size: 11px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart text.val { fill: var(--ink); font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .g0 { stop-color: var(--acc); stop-opacity: 0.28; }
.chart .g1 { stop-color: var(--acc); stop-opacity: 0; }
.chart .dot { fill: var(--acc); }
.chart .end { fill: var(--surface); stroke: var(--acc); stroke-width: 2.5; }
.chart .cross { stroke: var(--acc-soft); stroke-width: 1.5; }
.panel .tabs button[aria-selected='true'] { background: var(--acc-ink); color: #fff; }
.weekday { border-top: 4px solid var(--acc); }
.side .user { --acc: var(--brown); --acc-bg: var(--brown-bg); --acc-ink: var(--brown-ink); }
.side .user .nav-link { color: var(--brown-ink); }
.side .user .nav-link:hover { background: var(--brown-bg); }
.cal .day.has { background: var(--acc-bg); color: var(--acc-ink); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.8125rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); }
.hbars { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 0.9375rem; }
.hbars .track { height: 10px; border-radius: 5px; background: var(--acc-bg); overflow: hidden; }
.hbars .track i { display: block; height: 100%; border-radius: 0 0 0 0; background: var(--acc); border-start-end-radius: 4px; border-end-end-radius: 4px; }
.hbars .v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.splitbar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.splitbar i { display: block; height: 100%; background: var(--acc); min-width: 2px; }
.splitbar i + i { background: var(--acc-soft); }
.keys { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: var(--ink-2); }
.keys span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--acc); margin-inline-end: 6px; }
.keys span + span::before { background: var(--acc-soft); }
.donut { width: 132px; height: 132px; flex: none; }
.donut .track { stroke: var(--acc-bg); }
.donut .arc { stroke: var(--acc); }
.donut text { font-size: 24px; font-weight: 700; fill: var(--acc-ink); }
.donut text.sub { font-size: 10px; font-weight: 500; fill: var(--ink-2); }
@media (min-width: 900px) { .span-2 { grid-column: span 2; } }
.donut.share { width: 160px; height: 160px; }
.donut .seg2 { stroke: var(--acc-soft); }
.donut.share text { font-size: 30px; }
.donut.share text.sub { font-size: 11px; }
.legend-row { display: flex; align-items: baseline; gap: 8px; color: var(--ink-2); }
.legend-row b { font-size: 1.5rem; font-weight: 700; color: var(--ink); min-width: 2.2ch; }
.legend-row .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--acc); align-self: center; }
.legend-row .sw.soft { background: var(--acc-soft); }
.grades { display: flex; flex-wrap: wrap; gap: 12px; }
.grade { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--acc-bg); border: 1px solid var(--acc-soft); color: var(--acc-ink); }
.grade h4 { margin: 0; font-size: 0.9375rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.grade .rings { display: flex; gap: 8px; align-items: flex-end; justify-content: center; flex-wrap: wrap; min-height: 106px; }
.class-ring { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--acc-ink); }
.class-ring small { font-size: 0.75rem; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.grade .sum { font-size: 0.8125rem; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; }
.grade .sum span { white-space: nowrap; }
.class-ring .disc { fill: var(--surface); }
.class-ring .track { stroke: var(--surface); }
.class-ring .arc { stroke: var(--acc); }
.class-ring text { font-size: 24px; font-weight: 700; fill: var(--acc-ink); font-variant-numeric: tabular-nums; }
.gauges { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; justify-content: space-around; }
.gauges-sep { align-self: stretch; width: 1px; background: var(--line); }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--acc-ink); max-width: 150px; }
.gauge .disc { fill: var(--acc-bg); }
.gauge .track { stroke: var(--acc-soft); }
.gauge .arc { stroke: var(--acc); }
.gauge text { font-size: 22px; font-weight: 700; fill: var(--acc-ink); font-variant-numeric: tabular-nums; }
.gauge text.sub { font-size: 9px; font-weight: 500; }
.gauge strong { font-size: 0.9375rem; }
.gauge small { font-size: 0.75rem; color: var(--ink-2); }
.pips { display: inline-flex; gap: 3px; direction: ltr; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--acc); background: transparent; }
.pips i.on { background: var(--acc); }
.set-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.set-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); color: var(--acc-ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; text-align: center; min-height: 44px; }
.set-item .bubble, .bubble.big { width: 46px; height: 46px; border-radius: 50%; background: var(--acc-bg); color: var(--acc-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.set-item:hover { border-color: var(--acc); }
.set-item[aria-current='page'] { background: var(--acc-bg); border-color: var(--acc); box-shadow: 0 4px 14px rgba(48, 76, 89, 0.1); }
.set-item[aria-current='page'] .bubble { background: var(--surface); }
.table-wrap .tbl th { background: var(--acc-bg); color: var(--acc-ink); border-bottom-color: var(--acc-soft); }
.dialog header { background: var(--acc-bg); border-bottom-color: var(--acc-soft); border-radius: 18px 18px 0 0; }
.idcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 28px rgba(48, 76, 89, 0.1); }
.idcard-band { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--acc-bg); color: var(--acc-ink); border-bottom: 3px solid var(--acc); }
.idcard-band img { width: 40px; height: 36px; object-fit: contain; }
.idcard-band strong { display: block; font-size: 1.125rem; }
.idcard-band span { font-size: 0.8125rem; }
.idcard-band .bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.idcard-body { display: flex; gap: 22px; padding: 22px 20px; flex-wrap: wrap; }
.idcard-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.idcard-photo .avatar.lg { width: 132px; height: 160px; border-radius: 18px; border: 3px solid var(--acc-bg); font-size: 2.25rem; }
.idcard-name { font-size: 1.625rem; font-weight: 700; color: var(--acc-ink); line-height: 1.2; }
.idcard-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--acc-bg); color: var(--acc-ink); border-top: 1px solid var(--acc-soft); }
.idcard-foot small { display: block; font-size: 0.75rem; }
.idcard-foot strong { font-size: 1.125rem; }
.meter { height: 8px; border-radius: 4px; background: var(--acc-bg); overflow: hidden; flex: 1; min-width: 80px; max-width: 220px; }
.meter i { display: block; height: 100%; background: var(--acc); }

/* ---- חלונות והודעות ---- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(31, 42, 48, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--surface); border-radius: 18px; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.dialog.wide { max-width: 820px; }
.dialog header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog header h2 { margin-inline-end: auto; }
.dialog .body { padding: 20px; overflow-y: auto; }
.dialog footer { display: flex; gap: 10px; justify-content: flex-start; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; z-index: 60; inset-inline: 0; bottom: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--acc-bg); color: var(--acc-ink); border: 1px solid var(--acc); border-radius: 12px; padding: 10px 18px; font-weight: 500; box-shadow: 0 4px 16px rgba(31, 42, 48, 0.15); max-width: 520px; }
.toast.err { background: var(--brown-bg); color: var(--brown-ink); border-color: var(--brown); }

/* ---- תבניות שבועיות ---- */
.week { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.weekday { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; }
.weekday.off .tpl { opacity: 0.5; }
.tpl { text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.tpl:hover { border-color: var(--acc); }

@media print {
  .side, .topbar, .bottom, .no-print, .toasts { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; }
  body { background: #fff; font-size: 11px; }
  .infographic { display: none !important; }
  .rooms-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .room { break-inside: avoid; min-height: 0; padding: 6px; }
  .person { min-height: 0; padding: 1px 6px; font-size: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .complex-title { margin: 10px 0 6px; }
}

/* תעודת הזהות במסך צר */
.idcard-body > .grow { min-width: 0; flex: 1 1 200px; }
.idcard-body .facts { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
@media (max-width: 599px) {
  .idcard-body { gap: 14px; padding: 16px; }
  .idcard-photo .avatar.lg { width: 96px; height: 116px; font-size: 1.75rem; }
  .idcard-name { font-size: 1.375rem; }
  .idcard-band span { display: none; }
}


/* סרגל הצד: הלוגו המלא (אבן וכיתוב) בראש, ומתחתיו הלשוניות */
.brand { justify-content: center; padding: 4px 8px 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.brand img { width: 132px; height: auto; }
.topbar-logo { margin-inline-end: auto; display: inline-flex; }
.topbar .topbar-logo img { width: auto; height: 46px; }

/* תעודת זהות: התמונה למעלה באמצע, ומתחתיה הפרטים */
.idcard-body { flex-direction: column; align-items: center; gap: 16px; }
.idcard-photo .avatar.lg { width: 148px; height: 178px; }
.idcard-info { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.idcard-name { text-align: center; }
.idcard-info .facts { width: 100%; margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--line); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }
@media (max-width: 599px) { .idcard-photo .avatar.lg { width: 120px; height: 144px; } }

/* סרגל המילוי בטלפון: המונה בשורה משלו, ושני הכפתורים מתחתיו */
@media (max-width: 599px) {
  .fill-bar > .grow { flex: 1 1 100%; }
  .fill-bar .btn { flex: 1 1 0; }
}

/* ---- פחות לבן: משטחים בגוון עדין של כחול או חום, לפי גוון הרכיב ---- */
:root { --tint: #eef4f7; --plate: #dfeaf0; }
.tone-blue { --tint: #eef4f7; --plate: #dfeaf0; }
.tone-brown { --tint: #f9f4ea; --plate: #efe5cf; }
.card, .panel, .room, .dialog, .idcard, .set-item, .auth-form, .fill-bar, .tabs button[aria-selected='true'] { background: var(--tint); }
.card, .panel, .room, .idcard, .set-item { border-color: var(--acc-soft); }
.list-row, .fill-row, .tbl td { border-color: var(--acc-soft); }
.side { background: #eef4f7; }
.topbar, .bottom { background: #eef4f7; }
.tabs { background: var(--plate); }
.icon-btn, .btn.ghost { background: var(--surface); }
.set-item[aria-current='page'] { background: var(--acc-bg); }
.class-card.pending { background: var(--acc-bg); }
.auth-brand { background: var(--acc-bg); }
.auth-form { --tint: #f9f4ea; }
.tile .bubble, .idcard-band .bubble { background: var(--tint); }

/* ---- טקסט שיושב ישירות על רקע הסמלילים מקבל רקע אחיד ---- */
.page-head { background: var(--acc-bg); border: 1px solid var(--acc-soft); border-radius: 18px; padding: 12px 16px; }
.page-head h1, .page-head p { text-shadow: none; }
.main :is(h2, h3, p, .complex-title, .legend):not(:where(.card, .panel, .idcard, .notice, .tile, .page-head, .fill-bar, .grade, .dialog, .empty, .room, .gauge) *) {
  width: fit-content; max-width: 100%; background: var(--plate); color: var(--acc-ink); padding: 4px 12px; border-radius: 10px; text-shadow: none;
}
.main .complex-title h2, .main .complex-title span { background: none; padding: 0; }

/* ---- אלפון: חיפוש בולט, אות לכל קבוצה, וכפתורי קשר ---- */
.searchbar { background: var(--acc-bg); border: 1px solid var(--acc-soft); border-radius: 18px; padding: 10px; }
.search-wrap { position: relative; flex: 1 1 240px; display: flex; }
.search-wrap svg.ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search-wrap .input { padding-inline-start: 44px; width: 100%; flex: 1; font-size: 1.0625rem; }
.group-head h2.letter { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.icon-btn.call { background: var(--blue-bg); color: var(--blue-ink); border-color: #c9dbe5; }
.icon-btn.wa svg.ic { width: 22px; height: 22px; }

/* ---- תעודת זהות: יישור לימין ---- */
.idcard-body { align-items: flex-start; }
.idcard-photo { align-items: flex-start; }
.idcard-info { align-items: flex-start; }
.idcard-name { text-align: start; }
.idcard-info .facts { text-align: start; }

/* ---- היררכיה של משטחים: רקע כללי בהיר, כרטיסים לבנים או חמים, ורצועות בגוון עמוק יותר ----
   כך חלון אף פעם אינו באותו גוון של הרקע שמאחוריו. */
:root { --bg: #f5f7f9; --tint: #ffffff; --tint2: #dce8ef; --plate: #dce8ef; --acc-soft: #c7dae4; }
.tone-blue { --tint: #ffffff; --tint2: #dce8ef; --plate: #dce8ef; --acc-soft: #c7dae4; }
.tone-brown, .btn.brown { --tint: #fbf6ea; --tint2: #f0e4c9; --plate: #f0e4c9; --acc-soft: #e2d2ac; }
/* רצועות ואריחים שיושבים על הרקע הכללי: גוון עמוק, כדי שייבדלו ממנו */
.page-head, .tile, .searchbar, .grade, .set-item[aria-current='page'], .class-card.pending, .auth-brand, .group-head, .idcard-band, .idcard-foot, .dialog header, .table-wrap .tbl th { background: var(--tint2); }
.tile .bubble, .idcard-band .bubble, .set-item[aria-current='page'] .bubble, .group-head h2.letter { background: #ffffff; }
.side, .topbar, .bottom { background: #ffffff; }
.tabs { background: var(--tint2); }
.tabs button[aria-selected='true'] { background: #ffffff; }
.panel .tabs button[aria-selected='true'] { background: var(--acc-ink); }
.icon-btn.call { background: var(--blue-bg); }
/* מילוי נוכחות ולוח בקרה: בלי כרטיסים לבנים */
.fill-list { background: #e9f1f5; border-color: #c7dae4; }
.fill-bar { background: var(--tint2); border-color: var(--acc-soft); }
.dash .card.ring-wrap { background: var(--tint2); }
.dash .class-card:not(.pending) { background: #e9f1f5; }
.dash .panel.tone-blue { background: #edf3f7; }
.main :is(h2, h3, p, .complex-title, .legend):not(:where(.card, .panel, .idcard, .notice, .tile, .page-head, .fill-bar, .grade, .dialog, .empty, .room, .gauge) *) { background: var(--tint2); }

/* ---- מילוי נוכחות: שני גוונים בלבד. "נוכח" כחול ו"לא נוכח" חום כבר לפני הבחירה (מסגרת, סמל וכיתוב על לבן); הבחירה ממלאת את הכפתור. ---- */
.mark-btn { background: #ffffff; border-width: 1.5px; }
.mark-btn.present { color: var(--blue-ink); border-color: #9dbccb; }
.mark-btn.absent { color: var(--brown-ink); border-color: #d6c08e; }
.mark-btn.present[aria-pressed='true'] { background: #cfe0e9; border-color: var(--blue-mid); border-width: 2px; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'] { background: #ecdcb8; border-color: #8a7648; border-width: 2px; font-weight: 700; }

/* ---- שורות האלפון: נקי יותר. סמלילי קשר קטנים בלי מסגרת ובלי מילוי: חיוג בכחול, וואטסאפ בחום. ---- */
.list-row { min-height: 54px; padding-block: 6px; gap: 10px; }
.list-row .avatar { width: 36px; height: 36px; font-size: 0.8125rem; }
.list-row .icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; }
.list-row .icon-btn svg.ic, .list-row .icon-btn.wa svg.ic { width: 18px; height: 18px; stroke-width: 1.6; }
.list-row .icon-btn.call { color: var(--blue-mid); background: transparent; }
.list-row .icon-btn.wa { color: #8a7648; background: transparent; }
.list-row .icon-btn:hover { background: var(--tint2); }

/* סמליל וואטסאפ מצויר כצורה מלאה */
svg.ic.solid { fill: currentColor; stroke: none; }
.list-row .icon-btn.wa svg.ic { width: 19px; height: 19px; }

/* סרגל הצד (ובטלפון: הסרגל העליון והתחתון): חום עדין מאוד במקום לבן */
.side, .topbar, .bottom { background: #fbf8f1; }
.side { border-inline-end-color: #ece3cf; }
.brand { border-bottom-color: #ece3cf; }
.side .user { border-top-color: #ece3cf; }
.nav-link:hover { background: #f3ecdc; }
.nav-link[aria-current='page'] { background: var(--blue-bg); }

/* שיבוץ: שני גוונים בלבד לדיירים (כחול לשכבות ט ו-יא, חום לשכבות י ו-יב). הכיתה כתובה ליד כל שם. */
.g9, .g11 { background: #e3edf2; color: #304c59; }
.g10, .g12 { background: #f3e9d2; color: #5a4a26; }
.room-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.room-legend .person { min-height: 0; padding: 2px 10px; font-size: 0.8125rem; }
.main .room-legend { background: none; padding: 0; }

/* ---- הרחבה: חוגים, ימי היכרות, צ'אט ---- */
.icon-btn.mail { color: var(--blue-mid); }
.list-row .icon-btn.mail { color: var(--blue-mid); }
.contact-row { gap: 6px; }
.parent-name { font-size: 1.125rem; }
.bottom { overflow-x: auto; }
.bottom a { min-width: 72px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; max-height: 46vh; overflow-y: auto; padding: 4px; }
button.link { background: none; border: 0; padding: 0; color: var(--acc-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.next-lesson { text-align: center; align-items: center; }
.next-lesson .big { color: var(--acc-ink); }
.event-card { text-decoration: none; color: inherit; }
.patrol-link { background: none; border: 0; padding: 8px; border-radius: 16px; cursor: pointer; text-decoration: none; font: inherit; }
.patrol-link:hover { background: var(--tint2); }
.club-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 14px; }
.club-day { display: flex; flex-direction: column; gap: 8px; }
.club-day h3 { color: var(--acc-ink); font-size: 0.9375rem; padding-bottom: 4px; border-bottom: 2px solid var(--acc-soft); }
.club-slot { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--tint2); border: 1px solid var(--acc-soft); }
.club-slot .person { cursor: pointer; border: 1.5px solid transparent; font: inherit; font-size: 0.875rem; background: #ffffff; color: var(--acc-ink); }
.club-slot .person.selected { border-color: var(--acc-ink); box-shadow: 0 0 0 2px var(--acc-soft); }
.tbl.board th, .tbl.board td { text-align: center; padding: 8px 6px; }
.tbl.board th:first-child, .tbl.board td:first-child, .tbl.board th:nth-child(2), .tbl.board td:nth-child(2) { text-align: start; white-space: nowrap; }
.dot { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.dot.yes { background: var(--blue-bg); color: var(--blue-ink); }
.dot.no { background: #f0e4c9; color: var(--brown-ink); }
code { font-family: ui-monospace, monospace; font-size: 0.9375rem; }

/* צ'אט: מראה של אפליקציית מסרים. רקע הסמלילים של אבני בזלת בגוון חם, בועות ירקרקות להודעות שלי ולבנות לאחרים. */
.chat-list { --tint: #ffffff; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 68px; }
.chat-item:first-child { border-top: 0; }
.chat-item:hover { background: #f5f6f6; }
.chat-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; background: #dfe5e7; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.chat-avatar svg.ic { width: 26px; height: 26px; }
.chat-avatar.xl { width: 120px; height: 120px; }
.chat-avatar.xl svg.ic { width: 56px; height: 56px; }
.chat-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #25d366; color: #ffffff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.unread-time { color: #1fa855; font-weight: 600; }
.chat-room { display: flex; flex-direction: column; height: calc(100dvh - 56px); margin: -12px -16px -24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #efeae2 url('/assets/pattern-chat.svg') repeat; background-size: 480px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #ffffff; border-bottom: 1px solid #e0e0e0; text-decoration: none; color: inherit; }
.chat-head .chat-avatar { width: 40px; height: 40px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 5%; display: flex; flex-direction: column; gap: 4px; }
.chat-day { align-self: center; background: #ffffff; color: #54656f; font-size: 0.8125rem; padding: 4px 12px; border-radius: 8px; margin: 8px 0; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.bubble { align-self: flex-start; max-width: min(78%, 520px); background: #ffffff; color: #111b21; border-radius: 10px; border-start-start-radius: 0; padding: 6px 9px 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); display: flex; flex-direction: column; gap: 2px; }
.bubble.mine { align-self: flex-end; background: #d9fdd3; border-start-start-radius: 10px; border-start-end-radius: 0; }
.bubble-sender { font-size: 0.8125rem; font-weight: 600; color: #1f7aec; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9688rem; line-height: 1.4; }
.bubble-meta { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 0.6875rem; color: #667781; direction: ltr; }
.ticks { color: #53bdeb; letter-spacing: -3px; padding-inline-end: 3px; }
.bubble-del { border: 0; background: none; padding: 0; color: #8696a0; cursor: pointer; display: none; }
.bubble:hover .bubble-del, .bubble:focus-within .bubble-del { display: inline-flex; }
.bubble-del svg.ic { width: 12px; height: 12px; }
.chat-media { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; }
.chat-audio { width: 240px; max-width: 100%; height: 40px; }
.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; }
.chat-composer.locked { justify-content: center; background: #ffffff; color: #54656f; font-size: 0.875rem; padding: 14px; }
.chat-box { flex: 1; display: flex; align-items: flex-end; gap: 4px; background: #ffffff; border-radius: 24px; padding: 4px 10px; min-height: 48px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.chat-input { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 1rem; padding: 10px 4px; max-height: 120px; color: #111b21; }
.chat-attach { width: 40px; height: 40px; border: 0; background: none; color: #54656f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.chat-send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: #1daa61; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-composer.recording .chat-send { background: #d9534f; animation: pulse 1.2s ease-in-out infinite; }
.chat-composer.recording .chat-box::after { content: 'מקליט…'; color: #d9534f; font-size: 0.875rem; padding: 12px 4px; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (max-width: 899px) { .chat-room { height: calc(100dvh - 68px - var(--nav-h) - env(safe-area-inset-bottom)); margin: -16px -16px 0; border-radius: 0; border-inline: 0; } }
.chat-info { max-width: 720px; margin: 0 auto; }
.chat-info-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 16px 16px; }
.chat-info-head h1, .chat-info-head p { background: none !important; padding: 0 !important; }
.chat-action { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 0.875rem; color: var(--ink); cursor: pointer; padding: 8px 14px; border-radius: 12px; min-height: 44px; }
.chat-action:hover { background: #f1f2f1; }

/* ================= חוגים: עיצוב ייעודי =================
   כחול ראשי #41708a, בהיר #dce8ee, כהה #223f4d. חום #bda26d, בהיר #eee0c4, כהה #523c12. צהוב #ffda44 להתראות בלבד.
   באלמנט אחד רק גווני כחול או רק גווני חום. מלבנים בלי שוליים, עם פינות מעוגלות. */
body.music-bg { background: #d7e6ee url('/assets/pattern-music.svg') repeat; background-size: 520px; }
.music { --m-blue: #41708a; --m-blue-bg: #dce8ee; --m-blue-ink: #223f4d; --m-brown: #bda26d; --m-brown-bg: #eee0c4; --m-brown-ink: #523c12; --m-yellow: #ffda44; color: var(--m-blue-ink); }
.music-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 96px; padding: 14px 20px; border-radius: 20px; background: var(--m-blue) url('/assets/music-header.svg') repeat-x center; background-size: auto 92px; color: #ffffff; }
.music-head-text { margin-inline-end: auto; background: var(--m-blue); padding: 6px 14px; border-radius: 12px; }
.music-head h1, .music-head p { color: #ffffff; background: none !important; padding: 0 !important; margin: 0; text-shadow: none; }
.music-head h1 { font-size: 1.625rem; font-weight: 700; }
.music-head p { font-size: 0.9375rem; opacity: 0.95; }
.music-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.music-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: #ffffff; width: fit-content; max-width: 100%; }
.music-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--m-blue-ink); }
.music-tabs a[aria-current='page'] { background: var(--m-blue); color: #ffffff; }
.m-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.m-club { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-club-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--m-brown-bg); color: var(--m-brown-ink); }
.m-club-name { font-size: 1.125rem; font-weight: 600; color: var(--m-brown-ink); }
.m-club-teacher { font-weight: 700; color: var(--m-brown-ink); font-size: 0.9375rem; }
.m-icon { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--m-brown-bg); color: var(--m-brown-ink); display: inline-flex; align-items: center; justify-content: center; }
.m-club-head .m-icon { background: #f7efdd; }
.m-card { background: #ffffff; border: 0; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.music .m-day { margin: 0; font-size: 1.0625rem; font-weight: 900; color: var(--m-blue); background: none !important; padding: 0 !important; }
.m-slot { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--m-blue-bg); }
.m-day + .m-slot { border-top: 0; padding-top: 0; }
.m-time { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--m-blue); text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums; }
span.m-time { cursor: default; }
.m-sub { font-size: 0.875rem; color: #4d6877; }
.music .m-sub, .music .m-hint { background: none !important; padding: 0 !important; width: auto !important; }
.m-link { font-size: 0.875rem; color: var(--m-blue); font-weight: 500; text-decoration: none; }
.m-link:hover, .m-time:hover { opacity: 0.75; }
.m-students { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-student { border: 0; border-radius: 10px; padding: 5px 12px; min-height: 32px; background: var(--m-blue-bg); color: var(--m-blue); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.m-student.selected { background: var(--m-blue); color: #ffffff; }
.m-add { border: 0; background: none; padding: 5px 4px; min-height: 32px; font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--m-blue); cursor: pointer; }
.m-add.block { align-self: flex-start; padding: 8px 6px; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--m-blue-bg); min-height: 52px; }
.m-day + .m-row, h3 + .m-row, .m-sub + .m-row { border-top: 0; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 12px; background: var(--m-blue-bg); color: var(--m-blue-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.m-btn.solid { background: var(--m-blue); color: #ffffff; }
.m-btn.light { background: #ffffff; color: var(--m-blue-ink); }
.m-tag { padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; background: var(--m-blue-bg); color: var(--m-blue-ink); white-space: nowrap; }
.m-tag.brown { background: var(--m-brown-bg); color: var(--m-brown-ink); }
.m-alert { background: var(--m-yellow); color: #3d3200; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.music .m-alert h3, .music .m-alert p { background: none !important; padding: 0 !important; color: #3d3200; margin: 0; }
.m-alert .m-sub { color: #5c4d00; }
.m-alert .m-row { border-top-color: rgba(61, 50, 0, 0.18); }
.m-alert .m-btn { background: #fff3bf; color: #3d3200; }
.m-alert button.link { color: #3d3200; }
.m-swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #ffffff; border-radius: 16px; padding: 10px 14px; font-weight: 500; }
.music .m-hint { color: var(--m-blue-ink); background: #ffffff !important; padding: 6px 14px !important; border-radius: 12px; width: fit-content !important; font-size: 0.9375rem; }
.m-filters { flex-direction: row; flex-wrap: wrap; }
.m-filters .input { width: auto; flex: 0 1 200px; border: 0; background: var(--m-blue-bg); color: var(--m-blue-ink); }
.m-next { background: var(--m-blue); color: #ffffff; border-radius: 20px; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.m-next-label { font-size: 0.875rem; opacity: 0.9; }
.m-next-club { font-size: 2rem; font-weight: 700; line-height: 1.15; }
.m-next-time { font-size: 1.125rem; font-weight: 600; }
.m-next-sub { opacity: 0.92; }
/* בתוך מסכי החוגים: כרטיסים וכפתורי סימון בלי שוליים, בצבעי החוגים */
.music .card, .music .fill-list, .music .fill-bar { border: 0; background: #ffffff; border-radius: 18px; }
.music .fill-row { border-color: var(--m-blue-bg); }
.music .mark-btn { border: 0; background: #f1f5f7; }
.music .mark-btn.present { color: var(--m-blue-ink); background: var(--m-blue-bg); }
.music .mark-btn.absent { color: var(--m-brown-ink); background: var(--m-brown-bg); }
.music .mark-btn.present[aria-pressed='true'] { background: var(--m-blue); color: #ffffff; }
.music .mark-btn.absent[aria-pressed='true'] { background: var(--m-brown); color: var(--m-brown-ink); }
.music .btn { border: 0; background: var(--m-blue-bg); color: var(--m-blue-ink); }
.music .fill-bar .btn { background: var(--m-blue); color: #ffffff; }
.music .fill-bar .btn:disabled { background: var(--m-blue-bg); color: var(--m-blue-ink); }
.music .notice.blue { border: 0; background: #ffffff; }
.music .tbl th { background: var(--m-blue-bg); color: var(--m-blue-ink); border: 0; }
.music .tbl td { border-color: var(--m-blue-bg); }
.music .dot.yes { background: var(--m-blue-bg); color: var(--m-blue); }
.music .dot.no { background: var(--m-brown-bg); color: var(--m-brown-ink); }
.music button.link { color: var(--m-blue); }
@media print { body.music-bg { background: #ffffff; } .music-head { background: none; color: #000; } .music-head h1, .music-head p { color: #000; } }
.music .music-head p { color: #ffffff !important; opacity: 0.92; }
.m-alert summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; gap: 8px; list-style: none; }
.m-alert summary::-webkit-details-marker { display: none; }
.m-alert summary::after { content: 'הצגה'; margin-inline-start: auto; font-weight: 600; font-size: 0.875rem; background: #fff3bf; padding: 4px 14px; border-radius: 10px; }
.m-alert[open] summary::after { content: 'הסתרה'; }
@media (max-width: 720px) {
  .music-head { min-height: 0; padding: 14px 16px; }
  .music .m-row { flex-wrap: wrap; }
  .music .m-row > .grow { flex: 1 1 60%; min-width: 0; }
  .music .m-row > .m-btn { flex: 1 1 100%; justify-content: center; }
  .m-next-club { font-size: 1.75rem; }
}

/* ================= מי שמדבר: מראה של אפליקציית מסרים =================
   בועה נכנסת לבנה מימין, בועה שלי ירוקה משמאל, זנב רק בהודעה הראשונה ברצף, שעה ווי בפינה התחתונה. */
.chat-room.wa { position: relative; border: 0; font-family: Roboto, 'Google Sans', 'Segoe UI', Arial, sans-serif; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px; min-height: 60px; background: #ffffff; text-decoration: none; color: #111b21; }
.wa-head .chat-avatar { width: 40px; height: 40px; }
.wa-head-text { min-width: 0; line-height: 1.25; }
.wa-head-text strong { display: block; font-size: 1.125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head-text .chat-preview { font-size: 0.8125rem; color: #667781; }
.wa-back { width: 36px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #111b21; cursor: pointer; flex: none; }
.wa-back svg.ic, .wa-form-back svg.ic { width: 24px; height: 24px; stroke-width: 2; }
.wa-messages { flex: 1; overflow-y: auto; padding: 8px 16px 6px; display: flex; flex-direction: column; }
.wa-day { align-self: center; background: #ffffff; color: #54656f; font-size: 0.78rem; padding: 5px 12px; border-radius: 8px; margin: 10px 0 6px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-msg { display: flex; margin-top: 2px; }
.wa-msg.tail { margin-top: 8px; }
.wa-msg.in { justify-content: flex-start; }
.wa-msg.out { justify-content: flex-end; }
.wa-bubble { position: relative; max-width: min(80%, 520px); min-width: 84px; background: #ffffff; color: #111b21; border-radius: 12px; padding: 6px 9px 8px 7px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-msg.out .wa-bubble { background: #d9fdd3; }
.wa-msg.in.tail .wa-bubble { border-top-right-radius: 0; }
.wa-msg.out.tail .wa-bubble { border-top-left-radius: 0; }
.wa-msg.tail .wa-bubble::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; background: no-repeat top / 8px 13px; }
.wa-msg.in.tail .wa-bubble::before { right: -8px; background-image: url('/assets/tail-in.svg'); }
.wa-msg.out.tail .wa-bubble::before { left: -8px; background-image: url('/assets/tail-out.svg'); }
.wa-sender { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; margin-bottom: 1px; }
.wa-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.32; }
.wa-text::after { content: ''; display: inline-block; width: 44px; height: 1px; }
.wa-msg.out .wa-text::after { width: 64px; }
.wa-deleted { color: #667781; font-style: italic; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wa-deleted svg.ic { width: 15px; height: 15px; }
.wa-meta { position: absolute; bottom: 3px; left: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 0.6875rem; line-height: 1; color: #667781; white-space: nowrap; }
.wa-ticks { width: 17px; height: 11px; fill: none; stroke: #8696a0; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wa-ticks .t2 { display: none; }
.wa-ticks.double .t2 { display: inline; }
.wa-ticks.read { stroke: #53bdeb; }
.wa-more { position: absolute; top: 2px; left: 4px; width: 26px; height: 22px; border: 0; padding: 0; border-radius: 50%; background: inherit; color: #8696a0; cursor: pointer; display: none; align-items: center; justify-content: center; }
.wa-bubble { --self: inherit; }
.wa-bubble:hover .wa-more, .wa-more:focus-visible { display: inline-flex; }
.wa-more svg.ic { width: 18px; height: 18px; }
/* תמונה וסרטון: ממלאים את הבועה, והשעה מונחת על התמונה */
.wa-bubble.k-image, .wa-bubble.k-video { padding: 3px; }
.wa-bubble.k-image .wa-sender, .wa-bubble.k-video .wa-sender { padding: 3px 6px 2px; }
.wa-media { display: block; max-width: 100%; width: 300px; max-height: 340px; object-fit: cover; border-radius: 9px; }
.wa-bubble.k-image .wa-meta { bottom: 7px; left: 9px; color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.wa-bubble.k-image .wa-ticks:not(.read) { stroke: #ffffff; }
.wa-bubble.k-video .wa-meta, .wa-bubble.k-audio .wa-meta, .wa-bubble.k-file .wa-meta, .wa-bubble.k-poll .wa-meta { position: static; display: flex; justify-content: flex-end; margin-top: 4px; padding-left: 2px; }
.wa-bubble.k-video .wa-meta { padding: 0 6px 3px; }
.wa-audio { width: 250px; max-width: 100%; height: 40px; display: block; }
.wa-file { display: flex; align-items: center; gap: 10px; width: 270px; max-width: 100%; padding: 10px; border-radius: 8px; background: #f5f6f6; text-decoration: none; color: #111b21; }
.wa-msg.out .wa-file { background: #d1f4cc; }
.wa-file-icon { width: 34px; height: 40px; flex: none; border-radius: 5px; background: #7f66ff; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.wa-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-file-name { font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-file-sub { font-size: 0.75rem; color: #667781; direction: ltr; text-align: right; }
.wa-file-get { width: 34px; height: 34px; flex: none; border: 1px solid #b6c1c7; border-radius: 50%; color: #54656f; display: inline-flex; align-items: center; justify-content: center; }
.wa-file-get svg.ic { width: 18px; height: 18px; }
/* סקר */
.wa-bubble.k-poll { width: 330px; max-width: 84%; padding: 8px 10px 4px; }
.wa-poll { display: flex; flex-direction: column; gap: 4px; }
.wa-poll-q { font-size: 0.9688rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.wa-poll-hint { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: #667781; margin-bottom: 6px; }
.wa-poll-hint svg.ic { width: 14px; height: 14px; }
.wa-poll-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.wa-poll-opt:disabled { cursor: default; }
.wa-poll-check { width: 20px; height: 20px; flex: none; margin-top: 1px; border: 2px solid #8696a0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; }
.wa-poll-opt.on .wa-poll-check { background: #1daa61; border-color: #1daa61; }
.wa-poll-check svg.ic { width: 13px; height: 13px; stroke-width: 3; }
.wa-poll-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wa-poll-row { display: flex; gap: 8px; font-size: 0.9375rem; line-height: 1.3; }
.wa-poll-row .grow { overflow-wrap: anywhere; }
.wa-poll-track { height: 8px; border-radius: 4px; background: #e9edef; overflow: hidden; display: block; }
.wa-msg.out .wa-poll-track { background: #c3e7bd; }
.wa-poll-fill { display: block; height: 100%; border-radius: 4px; background: #1daa61; transition: width 0.25s ease; }
.wa-poll-view { margin-top: 6px; border: 0; border-top: 1px solid rgba(17, 27, 33, 0.1); background: none; padding: 10px 0 6px; font: inherit; font-size: 0.9375rem; font-weight: 500; color: #008069; cursor: pointer; }
.wa-voter { display: flex; align-items: center; gap: 10px; }
.wa-voter .avatar { width: 32px; height: 32px; font-size: 0.875rem; }
.wa-info-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #54656f; }
/* שורת הכתיבה */
.wa-composer { display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px 6px; }
.wa-composer.locked { justify-content: center; background: #ffffff; color: #54656f; font-size: 0.875rem; padding: 14px; }
.wa-box { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: #ffffff; border-radius: 24px; padding: 0 6px; min-height: 48px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-input { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 1.0625rem; line-height: 1.3; padding: 12px 4px; max-height: 120px; color: #111b21; }
.wa-input::placeholder { color: #8696a0; }
.wa-tool { width: 40px; height: 48px; flex: none; border: 0; background: none; padding: 0; color: #54656f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-tool[hidden] { display: none; }
.wa-tool svg.ic { width: 24px; height: 24px; }
.wa-send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: #1daa61; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-send svg.ic { width: 24px; height: 24px; }
.wa-send.sending svg.ic, .wa-fab svg.ic { transform: scaleX(-1); fill: currentColor; }
.wa-composer.recording .wa-send { background: #d9534f; animation: pulse 1.2s ease-in-out infinite; }
.wa-composer.recording .wa-box::after { content: 'מקליט…'; color: #d9534f; font-size: 0.875rem; padding: 14px 4px; }
.wa-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px; background: #ffffff; max-height: 150px; overflow-y: auto; }
.wa-emoji[hidden], .wa-sheet[hidden] { display: none; }
.wa-emoji button { border: 0; background: none; font-size: 1.5rem; line-height: 1; padding: 6px 0; cursor: pointer; border-radius: 8px; }
/* מגש הצירוף */
.wa-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 30px 14px 22px; background: #ffffff; border-radius: 22px 22px 0 0; position: relative; }
.wa-sheet::before { content: ''; position: absolute; top: 9px; left: 50%; width: 30px; height: 4px; margin-left: -15px; border-radius: 2px; background: #8696a0; }
.wa-sheet-item { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: 0.875rem; color: #54656f; cursor: pointer; }
.wa-sheet-icon { width: 62px; height: 32px; border: 1px solid #d1d7db; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.wa-sheet-icon svg.ic { width: 20px; height: 20px; stroke-width: 2.2; }
.wa-sheet-icon.gallery { color: #007bfc; }
.wa-sheet-icon.camera { color: #ff2e74; }
.wa-sheet-icon.document { color: #7f66ff; }
.wa-sheet-icon.poll { color: #ffbc38; }
/* יצירת סקר */
.wa-form { position: absolute; inset: 0; z-index: 5; background: #ffffff; color: #111b21; display: flex; flex-direction: column; }
.wa-form-head { display: flex; align-items: center; gap: 14px; padding: 8px 12px; min-height: 62px; border-bottom: 1px solid #e9edef; }
.main .wa-form-head h2 { margin: 0; font-size: 1.3125rem; font-weight: 500; color: #111b21; background: none !important; padding: 0 !important; }
.wa-form-back { width: 40px; height: 44px; border: 0; background: none; padding: 0; color: #111b21; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-form-body { flex: 1; overflow-y: auto; padding: 18px 16px 96px; }
.wa-form-label { font-size: 1.0625rem; color: #54656f; margin: 12px 0 10px; }
.wa-form-label.small { font-size: 0.9375rem; color: #667781; margin-top: 22px; }
.wa-field { margin: 0; min-width: 0; border: 1px solid #8696a0; border-radius: 10px; padding: 0 14px; display: flex; align-items: center; min-height: 54px; }
.wa-field.legend { padding-bottom: 4px; }
.wa-field legend { padding: 0 5px; font-size: 0.8125rem; color: #54656f; margin-inline-start: -4px; }
.wa-field:focus-within { border: 2px solid #1daa61; padding-inline: 13px; }
.wa-field input, .wa-field textarea { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; resize: none; font: inherit; font-size: 1.0625rem; color: #111b21; padding: 8px 0; caret-color: #1daa61; }
.wa-field input::placeholder { color: #54656f; }
.wa-count { direction: ltr; text-align: left; font-size: 0.8125rem; color: #667781; padding: 6px 14px 8px; }
.wa-switch-row { display: flex; align-items: center; gap: 12px; min-height: 60px; font-size: 1.0625rem; cursor: pointer; }
.wa-form-line { height: 1px; background: #e9edef; margin: 4px -16px; }
.wa-switch { position: relative; flex: none; }
.wa-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wa-switch-track { display: flex; align-items: center; width: 52px; height: 32px; border: 2px solid #8696a0; border-radius: 16px; background: #f0f2f5; padding: 0 5px; box-sizing: border-box; transition: background 0.15s ease; justify-content: flex-start; }
.wa-switch-thumb { width: 16px; height: 16px; border-radius: 50%; background: #8696a0; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all 0.15s ease; }
.wa-switch-thumb svg.ic { width: 14px; height: 14px; stroke-width: 3; }
.wa-switch input:checked + .wa-switch-track { background: #1daa61; border-color: #1daa61; justify-content: flex-end; padding: 0 2px; }
.wa-switch input:checked + .wa-switch-track .wa-switch-thumb { width: 24px; height: 24px; background: #ffffff; color: #1daa61; }
.wa-switch input:focus-visible + .wa-switch-track { outline: 2px solid #111b21; outline-offset: 2px; }
.wa-end { margin: 0 0 12px; border: 1px solid #8696a0; border-radius: 10px; padding: 10px 12px; font: inherit; color: #111b21; background: #ffffff; }
.wa-end[hidden] { display: none; }
.wa-fab { position: absolute; bottom: 20px; left: 16px; width: 56px; height: 56px; border: 0; border-radius: 16px; background: #1daa61; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(11, 20, 26, 0.3); }
.wa-fab svg.ic { width: 26px; height: 26px; }
.wa-send.sending svg.ic, .wa-fab svg.ic { transform: none; fill: currentColor; stroke-linejoin: round; }
.wa-poll-track { display: flex; justify-content: flex-start; }
.wa-poll-fill { flex: none; }
.wa-form .wa-field { display: block; width: 100%; box-sizing: border-box; background: #ffffff; }
.wa-form .wa-field input, .wa-form .wa-field textarea { display: block; width: 100%; box-sizing: border-box; background: transparent !important; box-shadow: none !important; border: 0 !important; outline: 0 !important; border-radius: 0; min-height: 50px; }
.wa-form .wa-field.legend textarea { min-height: 44px; }
@media (max-width: 899px) {
  body.chat-full .topbar, body.chat-full .bottom { display: none; }
  body.chat-full .main { padding: 0; }
  body.chat-full .chat-room.wa { height: 100dvh; margin: 0; border-radius: 0; }
}
/* בלי צהוב בחוגים: ההתראות בגווני החום */
.music .m-alert { background: var(--m-brown-bg); color: var(--m-brown-ink); }
.music .m-alert h3, .music .m-alert p, .music .m-alert summary, .music .m-alert .m-sub, .music .m-alert strong, .music .m-alert button.link { color: var(--m-brown-ink); }
.music .m-alert .m-row { border-top-color: rgba(82, 60, 18, 0.18); }
.music .m-alert .m-btn, .music .m-alert summary::after { background: #f7efdd; color: var(--m-brown-ink); }

/* ================= מי שמדבר: רשימת השיחות ================= */
.wl { position: relative; background: #ffffff; border-radius: 18px; padding: 8px 0 88px; min-height: calc(100dvh - 48px); font-family: Roboto, 'Google Sans', 'Segoe UI', Arial, sans-serif; color: #111b21; }
.wl-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 6px; }
.main .wl-head h1 { margin: 0; font-size: 1.625rem; font-weight: 700; color: #1daa61; background: none !important; padding: 0 !important; }
.wl-search { display: flex; align-items: center; gap: 10px; margin: 8px 14px 14px; padding: 0 18px; min-height: 48px; border-radius: 24px; background: #f6f5f3; color: #54656f; }
.wl-search svg.ic { width: 22px; height: 22px; flex: none; }
.wl-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 1.0625rem; color: #111b21; padding: 10px 0; }
.wl-search input::placeholder { color: #667781; }
.wl-item { display: flex; align-items: center; gap: 14px; padding: 9px 16px; min-height: 74px; text-decoration: none; color: inherit; }
.wl-item:hover { background: #f5f6f6; }
.wl-item .chat-avatar { width: 52px; height: 52px; }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wl-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-name { flex: 1; min-width: 0; font-size: 1.0938rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-time { flex: none; font-size: 0.8125rem; color: #667781; }
.wl-time.unread { color: #1daa61; font-weight: 600; }
.wl-preview { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; font-size: 0.9375rem; color: #667781; white-space: nowrap; overflow: hidden; }
.wl-preview > span { flex: none; }
.wl-preview .wl-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wl-preview svg.ic { width: 17px; height: 17px; flex: none; }
.wl-badge { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #1daa61; color: #ffffff; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wl-empty { text-align: center; color: #667781; padding: 40px 16px; }
.wl-fab { position: fixed; bottom: 28px; left: 28px; width: 56px; height: 56px; border: 0; border-radius: 16px; background: #1daa61; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(11, 20, 26, 0.3); z-index: 4; }
.wl-fab svg.ic { width: 26px; height: 26px; stroke-width: 2.4; }
@media (max-width: 899px) {
  body.chat-list .topbar { display: none; }
  body.chat-list .main { padding: 0 0 calc(var(--nav-h) + env(safe-area-inset-bottom)); background: #ffffff; }
  .wl { border-radius: 0; min-height: calc(100dvh - var(--nav-h)); }
  .wl-fab { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); left: 16px; }
}

/* ================= חוגים: קווי המתאר של האתר הקיים ================= */
.music .music-head { display: block; min-height: 0; padding: 20px 22px 0; border-radius: 26px; background: var(--m-blue); overflow: hidden; }
.music .music-head-text { background: none; padding: 0; margin: 0; }
.music .music-head h1 { font-size: 1.75rem; font-weight: 700; }
.music .music-head p { font-size: 1.0625rem; margin-top: 2px; }
.music-staff { height: 74px; margin: 10px -22px 0; background: url('/assets/music-header.svg') repeat-x center / auto 74px; opacity: 0.85; }
.music .music-tabs { display: flex; gap: 10px; padding: 2px; background: none; width: auto; overflow-x: auto; scrollbar-width: none; border-radius: 0; }
.music .music-tabs::-webkit-scrollbar { display: none; }
.music .music-tabs a { flex: none; min-height: 46px; padding: 8px 24px; border-radius: 999px; background: #ffffff; color: var(--m-blue-ink); font-size: 1.0625rem; font-weight: 600; }
.music .music-tabs a[aria-current='page'] { background: var(--m-blue); color: #ffffff; }
.music .m-title { margin: 6px 0 0; font-size: 1.5rem; font-weight: 700; color: var(--m-blue-ink); background: none !important; padding: 0 !important; width: auto; }
.m-daylabel { font-size: 1.0625rem; color: #4d6877; margin-bottom: -6px; }
.music .m-note { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: #4d6877; background: none !important; padding: 0 !important; width: auto !important; }
.m-club-head { gap: 10px; padding: 14px 18px; flex-wrap: wrap; }
.m-club-icon { display: inline-flex; color: var(--m-brown-ink); }
.m-club-icon svg.ic { width: 26px; height: 26px; stroke-width: 2; }
.m-club-name { font-size: 1.25rem; font-weight: 700; }
.m-club-teacher { font-size: 1rem; font-weight: 400; }
.m-card { padding: 18px 18px; border-radius: 20px; }
.m-card.flush { padding: 0; gap: 0; overflow: hidden; }
.music .m-day { font-size: 1.1875rem; font-weight: 700; }
.m-slot { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: start; padding-top: 14px; border-top: 1px solid #c9d9e1; }
.m-slot-time { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 6px; }
.m-time { font-size: 1rem; white-space: nowrap; }
.m-students { gap: 8px; }
.m-student { border-radius: 999px; padding: 7px 16px; min-height: 36px; }
.m-add { padding: 7px 6px; min-height: 36px; }
.m-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 14px; background: #e3edf2; color: var(--m-blue-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.m-pill svg.ic { width: 18px; height: 18px; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.m-back { display: inline-flex; align-items: center; gap: 4px; color: var(--m-blue-ink); font-weight: 600; text-decoration: none; width: fit-content; }
.m-back svg.ic { width: 16px; height: 16px; }
.m-weeknav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--m-blue-ink); font-size: 1.0625rem; }
.m-lesson { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-top: 1px solid #c9d9e1; background: none; font: inherit; color: var(--m-blue-ink); text-align: start; text-decoration: none; cursor: pointer; }
.m-lesson:first-child { border-top: 0; }
.m-lesson strong { font-size: 1.0625rem; }
.m-lesson .m-sub { font-size: 1rem; margin-top: 2px; }
.m-lesson .m-icon { width: 52px; height: 52px; border-radius: 16px; }
.m-lesson .m-icon svg.ic { width: 26px; height: 26px; stroke-width: 2; }
.m-name { font-size: 1.0625rem; }
.m-chev { color: #4d6877; display: inline-flex; flex: none; }
.m-chev svg.ic { width: 16px; height: 16px; }
.m-bar { display: flex; justify-content: flex-start; width: 110px; height: 8px; border-radius: 4px; background: var(--m-brown-bg); overflow: hidden; margin-top: 8px; }
.m-bar span { display: block; height: 100%; border-radius: 4px; background: var(--m-blue); }
.m-tag.brown { padding: 5px 14px; font-weight: 700; font-size: 0.875rem; }
.m-flag { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 0; border-inline-start: 6px solid #7a6230; text-decoration: none; color: var(--m-blue-ink); min-height: 60px; }
.m-flag.dark { border-inline-start-color: #5c4a14; }
.m-flag strong { font-size: 1.0625rem; }
.m-filters { display: flex; flex-wrap: wrap; gap: 12px; background: none; padding: 0; }
.m-field { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--m-blue-ink); max-width: 260px; }
.music .m-field .input, .music .m-field select { width: 100%; min-height: 52px; border: 1px solid #c9d9e1; border-radius: 14px; background: #ffffff; color: var(--m-blue-ink); padding: 8px 14px; }
.music .tbl th { background: #ffffff; font-weight: 700; border-bottom: 1px solid #c9d9e1; }
.music .tbl td { border-color: #c9d9e1; padding-block: 14px; }
.music .m-card.table-wrap { padding: 0; overflow-x: auto; }
.music .mark-btn { border-radius: 14px; }
.music .btn.block { width: fit-content; border-radius: 14px; background: #e3edf2; color: var(--m-blue-ink); font-weight: 600; }
@media (max-width: 899px) {
  .music .music-head { margin: -16px -16px 0; border-radius: 0 0 30px 30px; padding: 22px 22px 0; }
  .m-columns { grid-template-columns: 1fr; }
}
@media print { .music-staff, .music-tabs { display: none; } }
.music .m-filters .m-field .input, .music .m-filters .m-field select { flex: none; height: 52px; }
/* רקע החוגים: הסמלילים עדינים יותר, כדי שכיתוב שיושב עליהם ייקרא בקלות */
body.music-bg { background-color: #d7e6ee; background-image: linear-gradient(rgba(215, 230, 238, 0.5), rgba(215, 230, 238, 0.5)), url('/assets/pattern-music.svg'); background-size: auto, 520px; background-repeat: repeat; }
.music .m-note, .m-daylabel { color: #2f4b59; }
/* חדר כושר: אותו מבנה, בלי החמשה והתווים */
.music.gym .music-staff { display: none; }
.music.gym .music-head { padding-bottom: 20px; }
.m-club-icon svg.ic, .m-lesson .m-icon svg.ic { stroke-width: 1.8; }
/* חדר כושר: חוג אחד עם קבוצות גדולות, ולכן הוא נפרש לכל הרוחב והכול מיושר לימין */
.music.gym .m-columns { grid-template-columns: 1fr; }
.music.gym .m-club { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; align-items: start; justify-items: stretch; }
.music.gym .m-club > .m-club-head, .music.gym .m-club > div:last-child { grid-column: 1 / -1; }
.music.gym .m-club-head { width: fit-content; min-width: min(100%, 430px); }
.music.gym .m-students, .music.gym .m-slot, .music.gym .m-card { justify-content: flex-start; text-align: right; }
.music.gym .m-next { align-items: flex-start; text-align: right; }

/* ================= מי שמדבר: תיוגים, הדגשות, תגובות ולוח אימוג'ים ================= */
.wa-text strong { font-weight: 700; }
.wa-mention { color: #027eb5; }
.wa-mention.me { font-weight: 600; }
.wa-col { display: flex; flex-direction: column; max-width: min(80%, 520px); min-width: 0; }
.wa-msg.in .wa-col { align-items: flex-start; }
.wa-msg.out .wa-col { align-items: flex-end; }
.wa-col .wa-bubble { max-width: 100%; }
.wa-col .wa-bubble.k-poll { width: 330px; max-width: 100%; }
.wa-reacts { display: inline-flex; align-items: center; gap: 3px; margin: -7px 10px 3px; padding: 2px 7px; min-height: 26px; border: 1px solid #e9edef; border-radius: 13px; background: #ffffff; font: inherit; font-size: 0.9375rem; line-height: 1; color: #54656f; cursor: pointer; position: relative; z-index: 1; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.wa-reacts[hidden] { display: none; }
.wa-reacts .num { font-size: 0.75rem; padding-inline-start: 2px; }
.wa-react-bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px; margin-bottom: 6px; border-radius: 28px; background: #ffffff; box-shadow: 0 1px 4px rgba(11, 20, 26, 0.2); }
.wa-react-bar button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.625rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-react-bar button.on { background: #e9edef; }
.wa-react-bar button.plus { background: #f0f2f5; color: #54656f; }
.wa-react-big { font-size: 1.5rem; width: 32px; text-align: center; }
.wa-mentions { margin: 0 8px; background: #ffffff; border-radius: 14px; box-shadow: 0 1px 4px rgba(11, 20, 26, 0.2); max-height: 230px; overflow-y: auto; }
.wa-mentions[hidden] { display: none; }
.wa-mention-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; min-height: 52px; border: 0; background: none; font: inherit; color: #111b21; text-align: start; cursor: pointer; }
.wa-mention-item:hover { background: #f5f6f6; }
.wa-mention-item .avatar { width: 36px; height: 36px; font-size: 0.9375rem; }
.wa-emoji { display: flex; flex-direction: column; grid-template-columns: none; gap: 0; padding: 0; max-height: none; height: 320px; overflow: hidden; background: #ffffff; border-radius: 22px 22px 0 0; }
.modal .wa-emoji { height: min(60vh, 420px); border-radius: 0; }
.wa-emoji-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px 6px; padding: 0 14px; min-height: 40px; border-radius: 20px; background: #f0f2f5; color: #54656f; flex: none; }
.wa-emoji-search svg.ic { width: 18px; height: 18px; flex: none; }
.wa-emoji-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; color: #111b21; padding: 6px 0; }
.wa-emoji-body { flex: 1; overflow-y: auto; padding: 0 8px 8px; position: relative; }
.wa-emoji-title { padding: 10px 6px 4px; font-size: 0.875rem; font-weight: 600; color: #667781; }
.wa-emoji-note { text-align: center; color: #667781; padding: 28px 12px; }
.wa-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; }
.wa-emoji .wa-emoji-grid button { border: 0; background: none; padding: 5px 0; font-size: 1.625rem; line-height: 1.15; border-radius: 8px; cursor: pointer; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.wa-emoji .wa-emoji-grid button:hover { background: #f0f2f5; }
.wa-emoji-bar { display: flex; justify-content: space-around; padding: 4px 6px; border-top: 1px solid #e9edef; flex: none; }
.wa-emoji .wa-emoji-bar button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; padding: 0; font-size: 1.25rem; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: 0.75; }
.wa-emoji .wa-emoji-bar button:hover { background: #f0f2f5; filter: none; opacity: 1; }

/* ================= מי שמדבר: בחירת הודעה, תשובה והעברה ================= */
.wa-head[hidden], .wa-actions[hidden], .wa-reply-bar[hidden] { display: none; }
.wa-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px; min-height: 60px; background: #ffffff; color: #111b21; }
.wa-actions .wa-back { border: 0; background: none; padding: 0; }
.wa-actions-count { font-size: 1.375rem; margin-inline: 14px auto; }
.wa-actions .wa-tool { width: 46px; color: #111b21; }
.wa-actions .wa-tool svg.ic { stroke-width: 2; }
.wa-msg { position: relative; }
.wa-msg.selected { margin-inline: -16px; padding-inline: 16px; background: rgba(29, 170, 97, 0.28); }
.wa-msg.selected + .wa-msg { margin-top: 2px; }
.wa-msg.flash { margin-inline: -16px; padding-inline: 16px; background: rgba(29, 170, 97, 0.2); transition: background 0.4s ease; }
.wa-react-bar.floating { position: absolute; z-index: 6; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); width: min(350px, calc(100% - 24px)); margin: 0; padding: 5px 8px; border-radius: 30px; box-shadow: 0 2px 8px rgba(11, 20, 26, 0.26); }
.wa-react-bar.floating.below { bottom: auto; top: calc(100% - 4px); }
.wa-react-bar.floating button { width: 42px; height: 42px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.wa-react-bar.floating button.plus { width: 36px; height: 36px; background: #e9edef; }
.wa-quote { margin: 2px 0 5px; padding: 6px 10px 7px; border-radius: 8px; border-inline-start: 4px solid #1daa61; background: rgba(11, 20, 26, 0.05); cursor: pointer; min-width: 150px; overflow: hidden; }
.wa-quote-name { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; }
.wa-quote-text { display: flex; align-items: center; gap: 4px; font-size: 0.8438rem; color: #667781; line-height: 1.35; max-height: 2.7em; overflow: hidden; overflow-wrap: anywhere; }
.wa-quote-text svg.ic { width: 15px; height: 15px; flex: none; }
.wa-forwarded { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-style: italic; color: #8696a0; margin-bottom: 1px; }
.wa-forwarded svg.ic { width: 14px; height: 14px; }
.wa-reply-bar { display: flex; align-items: center; gap: 4px; margin: 0 62px 0 8px; padding: 6px 8px 2px; background: #ffffff; border-radius: 18px 18px 0 0; }
.wa-reply-bar .wa-quote { flex: 1; margin: 0; cursor: default; }
.wa-reply-bar:not([hidden]) + .wa-composer .wa-box { border-start-start-radius: 0; border-start-end-radius: 0; }
.wa-quote-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: none; }
.wa-quote-text svg.ic { display: inline-block; vertical-align: -2px; margin-inline-end: 3px; }
/* מי שמדבר: הגוונים המדויקים של אפליקציית המסרים (נדגמו מצילומי מסך) */
.chat-room.wa { background-color: #f4f1ec; }
.wa-msg.out .wa-bubble { background: #e0fcd6; }
.wa-msg.out .wa-file { background: #d3f3c8; }
.wa-msg.out .wa-poll-track { background: #c8ecbd; }

/* מי שמדבר: שורת ההתראות ברשימת השיחות */
.wl-push { display: flex; align-items: center; gap: 12px; width: calc(100% - 28px); margin: 0 14px 10px; padding: 12px 14px; border: 0; border-radius: 16px; background: #e7fce3; color: #111b21; font: inherit; text-align: start; cursor: pointer; }
div.wl-push { cursor: default; background: #f6f5f3; }
.wl-push .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-push .grow span { font-size: 0.875rem; color: #54656f; }
.wl-push-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #1daa61; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
div.wl-push .wl-push-icon { background: #8696a0; }
.wl-push > svg.ic { width: 16px; height: 16px; color: #54656f; flex: none; }

/* ================= מי שמדבר: שיחות קול ווידאו ================= */
.wa-callbtn { width: auto; padding: 0 4px; gap: 0; }
.wa-callbtn svg.ic:last-child { width: 16px; height: 16px; }
.wa-menu { position: absolute; z-index: 7; top: 58px; left: 12px; min-width: 220px; padding: 8px 0; background: #ffffff; border-radius: 16px; box-shadow: 0 4px 16px rgba(11, 20, 26, 0.26); }
.wa-menu[hidden], .wa-callbar[hidden] { display: none; }
.wa-menu-item { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 12px 20px; min-height: 52px; border: 0; background: none; font: inherit; font-size: 1.0625rem; color: #111b21; cursor: pointer; text-align: start; }
.wa-menu-item:hover { background: #f5f6f6; }
.wa-menu-item svg.ic { width: 22px; height: 22px; color: #54656f; }
.wa-menu-line { height: 1px; background: #e9edef; margin: 4px 0; }
.wa-callbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #e7fce3; color: #111b21; font-size: 0.9375rem; }
.wa-callbar svg.ic { width: 20px; height: 20px; color: #1daa61; }
.wa-callbar button { border: 0; border-radius: 18px; background: #1daa61; color: #ffffff; font: inherit; font-weight: 600; padding: 6px 16px; min-height: 36px; cursor: pointer; }
.vcall { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #0b141a; color: #ffffff; font-family: Roboto, 'Google Sans', 'Segoe UI', Arial, sans-serif; }
.call-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: calc(18px + env(safe-area-inset-top)) 16px 10px; text-align: center; }
.call-head strong { font-size: 1.25rem; font-weight: 500; }
.call-status { font-size: 0.9375rem; color: #aebac1; font-variant-numeric: tabular-nums; }
.call-grid { flex: 1; min-height: 0; display: grid; gap: 6px; padding: 6px; grid-template-columns: 1fr; grid-auto-rows: 1fr; position: relative; }
.call-grid[data-count='2'], .call-grid[data-count='3'], .call-grid[data-count='4'] { grid-template-columns: 1fr 1fr; }
.call-grid:not([data-count='0']):not([data-count='1']):not([data-count='2']):not([data-count='3']):not([data-count='4']) { grid-template-columns: repeat(3, 1fr); }
.call-tile { position: relative; min-height: 0; border-radius: 18px; overflow: hidden; background: #1f2c34; display: flex; align-items: center; justify-content: center; }
.call-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.call-tile.live video { display: block; }
.call-tile.live .call-avatar { display: none; }
.call-tile audio { display: none; }
.call-tile.mine video { transform: scaleX(-1); }
.call-avatar { width: 96px; height: 96px; border-radius: 50%; background: #6a7175; color: #ffffff; font-size: 2.5rem; display: inline-flex; align-items: center; justify-content: center; }
.call-avatar.big { width: 140px; height: 140px; font-size: 3.5rem; margin: auto; }
.call-name { position: absolute; bottom: 8px; right: 10px; padding: 2px 10px; border-radius: 10px; background: rgba(11, 20, 26, 0.55); font-size: 0.875rem; }
/* התמונה שלי: חלון קטן בפינה כשיש משתתפים נוספים */
.call-grid:not([data-count='0']) .call-tile.mine { position: absolute; z-index: 2; bottom: 14px; left: 14px; width: 104px; height: 150px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.call-grid:not([data-count='0']) .call-tile.mine .call-avatar { width: 52px; height: 52px; font-size: 1.375rem; }
.call-grid:not([data-count='0']) .call-tile.mine .call-name { display: none; }
.call-controls { display: flex; justify-content: center; gap: 22px; padding: 16px 16px calc(22px + env(safe-area-inset-bottom)); background: #111b21; border-radius: 24px 24px 0 0; }
.call-btn { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #2a3942; color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.call-btn svg.ic { width: 26px; height: 26px; }
.call-btn[aria-pressed='true'] { background: #ffffff; color: #111b21; }
.call-btn.hang { background: #ea0038; }
.call-btn.hang svg.ic { transform: rotate(135deg); }
.call-btn.answer { background: #1daa61; }
.vcall.call-ring .call-head { padding-top: calc(60px + env(safe-area-inset-top)); gap: 8px; color: #aebac1; }
.vcall.call-ring .ring-name { font-size: 1.75rem; color: #ffffff; }
.vcall.call-ring .call-controls { gap: 90px; background: none; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.vcall.call-ring .call-btn { width: 68px; height: 68px; }

/* מי שמדבר: כפתור ההקלטה, המהדק, המצלמה ומגש הצירוף, בצבעים ובצורות שנדגמו מאפליקציית המסרים */
.wa svg.ic.solid { fill: currentColor; stroke: none; }
.wa-send { background: #51a768; }
.wa-send svg.ic.solid { width: 26px; height: 26px; }
.wa-send.sending svg.ic.solid, .wa-fab svg.ic.solid { transform: scaleX(-1); width: 24px; height: 24px; }
.wa-fab { background: #51a768; }
.wa-box .wa-tool { color: #686d71; width: 44px; }
.wa-box .wa-tool svg.ic.solid { width: 25px; height: 25px; }
.wa-sheet { padding: 34px 10px 24px; gap: 22px 4px; }
.wa-sheet::before { top: 10px; width: 36px; margin-left: -18px; height: 5px; border-radius: 3px; background: #8d9295; }
.wa-sheet-item { gap: 9px; font-size: 1rem; color: #5b6366; }
.wa-sheet-icon { width: 72px; height: 36px; border-radius: 18px; border-color: #d9dbdc; }
.wa-sheet-icon svg.ic.solid { width: 24px; height: 24px; }
.wa-sheet-icon.gallery { color: #357af3; }
.wa-sheet-icon.camera { color: #eb4575; }
.wa-sheet-icon.document { color: #7a67f5; }
.wa-sheet-icon.poll { color: #f3bc55; }

/* מי שמדבר: מיקום ואיש קשר */
.wa-sheet-icon.location { color: #5ecc9f; }
.wa-sheet-icon.contact { color: #469bdc; }
.wa-bubble.k-location, .wa-bubble.k-contact { padding: 4px 4px 6px; width: 290px; max-width: 100%; }
.wa-bubble.k-location .wa-sender, .wa-bubble.k-contact .wa-sender, .wa-bubble.k-location .wa-forwarded, .wa-bubble.k-contact .wa-forwarded { padding: 2px 6px; }
.wa-bubble.k-location .wa-meta, .wa-bubble.k-contact .wa-meta { position: static; display: flex; justify-content: flex-end; margin-top: 4px; padding: 0 4px; }
.wa-loc { display: flex; flex-direction: column; text-decoration: none; color: #111b21; border-radius: 10px; overflow: hidden; background: rgba(11, 20, 26, 0.05); }
.wa-loc-map { height: 96px; display: flex; align-items: center; justify-content: center; color: #ea4335; background: #dfe9e1 linear-gradient(135deg, #e8efe6 25%, #d7e4da 25%, #d7e4da 50%, #e8efe6 50%, #e8efe6 75%, #d7e4da 75%) 0 0 / 56px 56px; }
.wa-loc-map svg.ic { width: 40px; height: 40px; }
.wa-loc-main { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; font-size: 0.8438rem; color: #667781; }
.wa-loc-main strong { font-size: 0.9688rem; font-weight: 500; color: #111b21; }
.wa-loc-main .ltr { direction: ltr; text-align: right; }
.wa-loc-open { color: #008069; font-weight: 500; margin-top: 3px; }
.wa-contact-top { display: flex; align-items: center; gap: 12px; padding: 8px 8px 10px; }
.wa-contact-top .chat-avatar { width: 46px; height: 46px; background: #dfe5e7; color: #ffffff; }
.wa-contact-top .chat-avatar svg.ic { width: 28px; height: 28px; }
.wa-contact-main { display: flex; flex-direction: column; min-width: 0; }
.wa-contact-main strong { font-size: 1.0313rem; font-weight: 500; color: #008069; overflow-wrap: anywhere; }
.wa-contact-main .ltr { direction: ltr; text-align: right; font-size: 0.8438rem; color: #667781; }
.wa-contact-actions { display: flex; border-top: 1px solid rgba(17, 27, 33, 0.1); }
.wa-contact-actions a { flex: 1; text-align: center; padding: 10px 4px; min-height: 44px; font-size: 0.9688rem; font-weight: 500; color: #008069; text-decoration: none; }
.wa-contact-actions a + a { border-inline-start: 1px solid rgba(17, 27, 33, 0.1); }
@media (max-width: 420px) { .wa-sheet { grid-template-columns: repeat(4, 1fr); } }

/* מי שמדבר: מפה, כרטיס מיקום ומסך "שליחת מיקום" */
.wa-map { position: relative; overflow: hidden; height: 150px; background: #f2efe9; }
.wa-map img { position: absolute; width: 256px; height: 256px; max-width: none; }
.wa-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: #ea4335; display: inline-flex; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.wa-map-pin svg.ic { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.wa-map-credit { position: absolute; left: 4px; bottom: 2px; font-size: 0.625rem; color: #54656f; background: rgba(255, 255, 255, 0.75); padding: 0 4px; border-radius: 3px; direction: ltr; }
.wa-loc { display: flex; flex-direction: column; }
.wa-loc-link { display: block; }
.wa-loc-stop { align-self: flex-start; margin-top: 4px; border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 500; color: #ea0038; cursor: pointer; }
.wa-locpick { overflow-y: auto; }
.wa-locpick .wa-form-head { border-bottom: 0; }
.wa-locpick-mapwrap { position: relative; flex: none; }
.wa-locpick-map { height: 290px; background: #f2efe9; }
.wa-locpick-map .wa-map { height: 290px; }
.wa-locpick-target { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffffff; color: #111b21; box-shadow: 0 1px 4px rgba(11, 20, 26, 0.3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wa-locpick-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; min-height: 72px; border: 0; background: none; font: inherit; font-size: 1.0625rem; color: #111b21; text-align: start; cursor: pointer; }
.wa-locpick-row:first-of-type { border-bottom: 1px solid #e9edef; }
.wa-locpick-icon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.wa-locpick-icon.live { background: #51a768; color: #ffffff; }
.wa-locpick-icon.live svg.ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.wa-locpick-icon.ring { border: 1.5px solid #51a768; }
.wa-locpick-icon.ring span { width: 14px; height: 14px; border-radius: 50%; background: #51a768; box-shadow: 0 0 0 3px #ffffff, 0 0 0 4.5px #51a768; }
.wa-locpick-text { display: flex; flex-direction: column; gap: 2px; }
.wa-locpick-sub { font-size: 0.875rem; color: #667781; }
.wa-locpick-label { padding: 14px 16px 2px; font-size: 0.9375rem; color: #667781; }
.wa-spinner { align-self: center; width: 60px; height: 60px; margin: 40px 0; border-radius: 50%; border: 5px solid #51a768; border-top-color: transparent; animation: wa-spin 0.9s linear infinite; }
.wa-spinner[hidden] { display: none; }
@keyframes wa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wa-spinner { animation-duration: 3s; } }

/* מפת Google מוטמעת */
.wa-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wa-map.static iframe { pointer-events: none; }
.wa-loc-link { position: relative; }

/* =====================================================================
   שפה עיצובית אחת לכל האפליקציה, כמו באזור החוגים (19/11/2026):
   רקע תכלת עם סמלילים לבנים, כותרת בגוש כחול מעוגל, כרטיסים לבנים בלי שוליים,
   לשוניות ככדורים, וכפתורים מעוגלים. כחול #41708a, חום #bda26d.
   ===================================================================== */
:root {
  --blue: #41708a; --blue-bg: #dce8ee; --blue-ink: #223f4d; --blue-mid: #41708a;
  --brown: #bda26d; --brown-bg: #eee0c4; --brown-ink: #523c12;
  --acc-soft: #c9d9e1; --bg: #d7e6ee; --line: #c9d9e1; --ink: #1c2b33; --ink-2: #3f5360;
  --tint: #ffffff; --plate: #ffffff; --radius: 20px;
}
.tone-blue { --tint: #ffffff; --plate: #ffffff; --acc-soft: #c9d9e1; }
.tone-brown { --tint: #fbf6ea; --plate: #eee0c4; --acc-soft: #e2d2ae; }
body { font-size: 1rem; background-color: #d7e6ee; background-image: linear-gradient(rgba(215, 230, 238, 0.55), rgba(215, 230, 238, 0.55)), url('/assets/pattern-light.svg'); background-size: auto, 480px; background-repeat: repeat; }
/* כותרת המסך: גוש כחול, כיתוב לבן */
.main .page-head { background: #41708a; border: 0; border-radius: 26px; padding: 18px 22px; margin-bottom: 18px; color: #ffffff; }
.main .page-head h1, .main .page-head p, .main .page-head .muted { color: #ffffff !important; background: none !important; padding: 0 !important; text-shadow: none; }
.main .page-head .icon-btn { background: rgba(255, 255, 255, 0.16); color: #ffffff; border: 0; }
.main .page-head .btn { background: #ffffff; color: #223f4d; border: 0; }
.main .page-head .btn.brown { background: #eee0c4; color: #523c12; }
/* כיתוב שיושב ישירות על הרקע: בלי לוחית, בכחול כהה */
.main > .stack > p, .main > div > h2, .main > .stack > h2, .main h2.on-bg { background: none !important; padding: 0 !important; width: auto !important; text-shadow: none; color: #223f4d; }
/* כרטיסים ומשטחים */
.card, .panel, .room, .idcard, .set-item, .fill-bar, .fill-list, .dialog { border: 0; border-radius: 20px; }
.panel { border-top: 0; }
.card.pad-0 { border-radius: 20px; }
.group-head { border-bottom: 0; }
.list-row { border-top-color: #dbe6ec; }
.tile { border: 0; border-radius: 18px; }
.notice { border: 0; border-radius: 18px; }
.notice.blue { background: #ffffff; color: #223f4d; }
.dialog > header { border-radius: 20px 20px 0 0; }
/* לשוניות: כדורים לבנים, הנבחרת בכחול */
.tabs { background: none; padding: 2px; gap: 10px; border-radius: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 44px; padding: 8px 22px; border-radius: 999px; background: #ffffff; color: #223f4d; font-weight: 600; box-shadow: none; }
.tabs button[aria-selected='true'] { background: #41708a; color: #ffffff; box-shadow: none; }
/* כפתורים */
.btn { border: 0; border-radius: 14px; background: #41708a; color: #ffffff; font-weight: 600; }
.btn:hover { background: #386378; }
.btn:disabled { background: #dce8ee; color: #6b8290; }
.btn.ghost { background: #e3edf2; color: #223f4d; border: 0; }
.btn.ghost:hover { background: #d4e2ea; }
.btn.brown { background: #eee0c4; color: #523c12; }
.btn.brown:hover { background: #e6d5b1; }
.btn.sm { border-radius: 12px; }
.icon-btn { border-radius: 14px; }
.input, select.input, textarea.input { border-radius: 14px; border-color: #c9d9e1; }
.chip { font-weight: 600; }
.toasts .toast { border-radius: 14px; }
/* סרגל הצד (מחשב) */
.side { background: #fbf8f1; }
.side .nav-link { border-radius: 14px; }
.side .nav-link[aria-current='page'] { background: #41708a; color: #ffffff; }
.nav-ic { position: relative; display: inline-flex; }
.nav-badge { position: absolute; top: -6px; inset-inline-end: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #1daa61; color: #ffffff; font-size: 0.6875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge[hidden] { display: none; }

/* ---------- חיפוש קבוע ---------- */
.gsearch { position: relative; }
.gsearch-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 22px; background: #ffffff; color: #54656f; }
.side .gsearch { margin: 4px 0 10px; }
.side .gsearch-field { background: #f0ebdf; }
.gsearch-field svg.ic { width: 18px; height: 18px; flex: none; }
.gsearch-field input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 0.9375rem; color: #1c2b33; padding: 8px 0; }
.gsearch-field:focus-within { outline: 2px solid #41708a; }
.gsearch-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; min-width: 260px; background: #ffffff; border-radius: 18px; box-shadow: 0 8px 28px rgba(34, 63, 77, 0.25); padding: 6px; max-height: 60vh; overflow-y: auto; }
.gsearch-list[hidden] { display: none; }
.gsearch-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 52px; border-radius: 12px; text-decoration: none; color: #1c2b33; }
.gsearch-item:hover, .gsearch-item.active { background: #dce8ee; }
.gsearch-item .grow { display: flex; flex-direction: column; min-width: 0; }
.gsearch-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #dce8ee; color: #41708a; display: inline-flex; align-items: center; justify-content: center; }
.gsearch-icon svg.ic { width: 18px; height: 18px; }
.gsearch-kind { font-size: 0.75rem; font-weight: 600; color: #523c12; background: #eee0c4; padding: 2px 10px; border-radius: 999px; flex: none; }
.gsearch-empty { margin: 0; padding: 16px; text-align: center; color: #54656f; }

/* ---------- טלפון: סרגל עליון עם חיפוש, וסרגל תחתון בסגנון אפליקציית מסרים ---------- */
@media (max-width: 899px) {
  .topbar { background: #ffffff; border-bottom: 0; padding: 8px 12px; gap: 10px; }
  .topbar .topbar-logo { margin: 0; flex: none; }
  .topbar .topbar-logo img { width: 38px; height: 38px; }
  .topbar .gsearch { flex: 1; min-width: 0; }
  .topbar .gsearch-field { background: #f0f4f6; }
  .bottom { background: #ffffff; border-top: 1px solid #e3ebef; overflow: visible; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0; }
  .bottom a, .bottom .bottom-more { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 500; color: #3f5360; text-decoration: none; cursor: pointer; }
  .bottom .nav-ic { width: 64px; height: 32px; border-radius: 16px; align-items: center; justify-content: center; transition: background 0.18s ease; }
  .bottom .nav-ic svg.ic { width: 24px; height: 24px; background: none !important; padding: 0 !important; box-sizing: border-box; }
  .bottom a[aria-current='page'] { color: #1c2b33; font-weight: 700; }
  .bottom a[aria-current='page'] .nav-ic { background: #cfe1ea; color: #223f4d; }
  .bottom a[aria-current='page'] svg.ic { background: none; padding: 0; }
  .bottom .nav-badge { top: -2px; inset-inline-end: 8px; }
  .bottom .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .main .page-head { margin: -16px -16px 16px; border-radius: 0 0 28px 28px; padding: 18px 20px 20px; }
}
.more-list { display: flex; flex-direction: column; }
.more-user { padding: 4px 6px 12px; color: #54656f; font-size: 0.9375rem; }
.more-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 6px; border: 0; border-top: 1px solid #e3ebef; background: none; font: inherit; font-size: 1.0625rem; color: #1c2b33; text-decoration: none; text-align: start; cursor: pointer; }
.more-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #dce8ee; color: #41708a; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- נגישות ותצוגה ---------- */
html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }
html.hc { --ink: #000000; --ink-2: #1c2b33; --line: #6b8290; }
html.hc .muted, html.hc .small.muted, html.hc .m-sub, html.hc .wl-preview, html.hc .wa-meta { color: #1c2b33 !important; }
html.hc .card, html.hc .m-card, html.hc .panel, html.hc .input { outline: 1px solid #6b8290; }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.segs { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: #e3edf2; color: #223f4d; font: inherit; font-weight: 600; cursor: pointer; }
.seg.on { background: #41708a; color: #ffffff; }
.a11y-row { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; }
.a11y-row .grow { display: flex; flex-direction: column; }
:focus-visible { outline: 3px solid #223f4d; outline-offset: 2px; }

/* ---------- משוב על פעולות ---------- */
.btn, .m-btn, .m-pill, .mark-btn, .seg, .wa-send, .tabs button, .bottom a, .bottom .bottom-more, .icon-btn { transition: transform 0.08s ease, background 0.15s ease; }
.btn:active, .m-btn:active, .m-pill:active, .mark-btn:active, .seg:active, .wa-send:active, .tabs button:active, .icon-btn:active { transform: scale(0.96); }
.bottom a:active .nav-ic, .bottom .bottom-more:active .nav-ic { transform: scale(0.9); }
.mark-btn[aria-pressed='true'] { animation: pop 0.22s ease; }
.fill-bar .btn:not(:disabled) { animation: ready 0.5s ease; }
@keyframes pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes ready { 0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(65, 112, 138, 0.5); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(65, 112, 138, 0); } }

/* ---------- מסך פתיחה ---------- */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #223f4d; }
.splash img { animation: splash-in 0.5s ease both; }
.splash strong { font-size: 1.75rem; font-weight: 700; animation: splash-in 0.5s 0.1s ease both; }
.splash-bar { width: 120px; height: 4px; border-radius: 2px; background: #ffffff; overflow: hidden; position: relative; margin-top: 8px; }
.splash-bar::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: #41708a; animation: splash-run 1s ease-in-out infinite alternate; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splash-run { from { transform: translateX(0); } to { transform: translateX(-150%); } }

/* ---------- אלפון: סמליל החיוג באותו סגנון של סמליל הוואטסאפ ---------- */
.list-row .icon-btn.call { color: #8a7648; }
.list-row .icon-btn.call svg.ic { width: 19px; height: 19px; }
.icon-btn.call svg.ic.solid, .icon-btn.wa svg.ic.solid { fill: currentColor; stroke: none; }
/* משטחים כחולים בהירים הופכים ללבנים, כדי שיבלטו על רקע התכלת; החומים נשארים חומים */
.dash .card, .dash .panel, .fill-list, .fill-bar, .tile, .main .card, .main .panel { background: #ffffff; }
.main .card.tone-brown, .main .panel.tone-brown, .tile.tone-brown, .class-card.pending, .dash .card.tone-brown, .dash .panel.tone-brown { background: var(--brown-bg); }
.main .tone-brown.card.soft, .main .panel.tone-brown.soft { background: #fbf6ea; }
.dash h2, .dash .day-title, .main .plate { background: #ffffff; }
.tile .bubble, .tile .tile-ic { background: var(--blue-bg); }
.tile.tone-brown .bubble, .tile.tone-brown .tile-ic { background: #f7efdd; }

/* ---------- שיבוץ פנימייה: תרשים המתחמים ---------- */
.plan-complex { background: #ffffff; border-radius: 22px; padding: 18px; margin-bottom: 16px; }
.plan-complex .complex-title { margin-bottom: 14px; }
.plan-complex .complex-title h2 { background: none !important; padding: 0 !important; color: #223f4d; font-size: 1.25rem; }
.plan-scroll { overflow-x: auto; padding-bottom: 4px; }
.plan { display: flex; flex-direction: column; gap: 0; min-width: calc(var(--cols) * 92px); border: 3px solid #223f4d; border-radius: 16px; overflow: hidden; background: #223f4d; }
.plan-row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; }
.plan-hall { margin: 3px 0; padding: 6px 12px; background: #eef3f6; color: #54656f; font-size: 0.8125rem; letter-spacing: 0.3em; text-align: center; }
.plan-room { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 96px; padding: 10px 4px; border: 0; background: #ffffff; color: #223f4d; font: inherit; cursor: pointer; transition: background 0.15s ease; }
.plan-room:hover { background: #eef3f6; }
.plan-room.full { background: #dce8ee; }
.plan-room.vacant { background: #fbf6ea; }
.plan-room.hit { background: #eee0c4; outline: 3px solid #bda26d; outline-offset: -3px; }
.plan-num { font-size: 1.0625rem; font-weight: 700; }
.plan-beds { display: flex; gap: 4px; }
.bed { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #9fb4c0; background: transparent; }
.bed.g9, .bed.g11 { background: #41708a; border-color: #41708a; }
.bed.g10, .bed.g12 { background: #bda26d; border-color: #bda26d; }
.bed.counselor { background: #223f4d; border-color: #223f4d; }
.plan-free { font-size: 0.75rem; color: #54656f; }
@media print { .plan-complex { break-inside: avoid; } }

/* סימון נוכחות: הבחירה ממלאת את הכפתור, כמו בחוגים */
.mark-btn { border-radius: 14px; }
.mark-btn.present[aria-pressed='true'] { background: #41708a; border-color: #41708a; color: #ffffff; }
.mark-btn.absent[aria-pressed='true'] { background: #bda26d; border-color: #bda26d; color: #523c12; }
.call-tile.mine.audio { display: none; }

/* ---------- הסרגל התחתון (טלפון): גרסה מהודקת ---------- */
@media (max-width: 899px) {
  .bottom { background: #ffffff; border-top: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -8px 28px rgba(34, 63, 77, 0.14); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 2px; overflow: visible; }
  .bottom a, .bottom .bottom-more { gap: 5px; min-height: 58px; padding: 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; color: #5b6f7b; -webkit-tap-highlight-color: transparent; }
  .bottom .nav-ic { width: 62px; height: 34px; border-radius: 17px; color: #4d6472; transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease; }
  .bottom .nav-ic svg.ic { width: 25px; height: 25px; stroke-width: 1.7; fill: transparent; transition: fill 0.2s ease, stroke-width 0.2s ease; }
  .bottom a[aria-current='page'] { color: #223f4d; font-weight: 700; }
  .bottom a[aria-current='page'] .nav-ic { background: #d3e4ec; color: #2f5d76; animation: nav-pill 0.26s ease; }
  /* הסמליל הנבחר: קו מודגש ומילוי עדין, באותה צורה */
  .bottom a[aria-current='page'] .nav-ic svg.ic { stroke-width: 2; fill: rgba(65, 112, 138, 0.24); }
  .bottom .nav-label { line-height: 1.1; }
  .bottom .nav-badge { top: -3px; inset-inline-end: 6px; border: 2px solid #ffffff; min-width: 20px; height: 20px; }
  .main { padding-bottom: calc(var(--nav-h) + 44px + env(safe-area-inset-bottom)); }
}
@keyframes nav-pill { from { transform: scaleX(0.55); opacity: 0.4; } to { transform: scaleX(1); opacity: 1; } }
.side .nav-link svg.ic { stroke-width: 1.7; }
.side .nav-link[aria-current='page'] svg.ic { fill: rgba(255, 255, 255, 0.2); }

/* ---------- תרשים החדרים: מסגרת עדינה, ומיטה חמישית ---------- */
.plan { border: 2px solid #b9cdd7; background: #b9cdd7; border-radius: 16px; }
.plan-row { gap: 2px; }
.plan-hall { margin: 2px 0; background: #f3f7f9; color: #6b8290; }
.bed.fifth { border-style: dashed; }
.bed.fifth.g9, .bed.fifth.g10, .bed.fifth.g11, .bed.fifth.g12, .bed.fifth.counselor { border-style: solid; box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #9fb4c0; }
.bed-toggle { margin-top: 6px; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: #41708a; cursor: pointer; text-align: start; }
.bed-toggle.on { color: #8a7648; }

/* סמליל "מי שמדבר" (מלא) בסרגלים; כפתור התפריט בסרגל העליון */
.nav-ic svg.ic.solid, .side .nav-link svg.ic.solid, .gsearch-icon svg.ic.solid, .more-ic svg.ic.solid { fill: currentColor !important; stroke: none; }
.topbar-menu { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: #f0f4f6; color: #223f4d; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.topbar-menu svg.ic { width: 22px; height: 22px; }
.wl-menu { display: none; }
@media (max-width: 899px) {
  .wl-menu { display: inline-flex; }
  .bottom a[aria-current='page'] .nav-ic svg.ic.solid { fill: #2f5d76 !important; }
}

/* =====================================================================
   סרגלי הניווט בסגנון Material 3 (כמו באפליקציות של Google):
   סרגל שטוח בגוון רך, סמליל קווי כשהמסך לא נבחר וסמליל מלא בתוך כדור כשנבחר, תג אדום.
   ===================================================================== */
.nav-ic .ic-on { display: none; }
a[aria-current='page'] > .nav-ic .ic-on { display: inline; }
a[aria-current='page'] > .nav-ic .ic-off { display: none; }
.nav-badge { background: #b3261e; color: #ffffff; font-weight: 600; }
@media (max-width: 899px) {
  .bottom { background: #eaeff3; border-radius: 0; box-shadow: none; border-top: 0; padding: 10px 4px calc(12px + env(safe-area-inset-bottom)); gap: 0; }
  .bottom a { gap: 4px; min-height: 60px; padding: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: #44474e; }
  .bottom .nav-ic { width: 64px; height: 32px; border-radius: 16px; color: #44474e; background: none; transition: background 0.2s ease; }
  .bottom .nav-ic svg.ic, .bottom .nav-ic svg.ic.solid { width: 24px; height: 24px; }
  .bottom .nav-ic svg.ic:not(.solid) { stroke-width: 1.8; fill: none; }
  .bottom a[aria-current='page'] { color: #1d3644; font-weight: 600; }
  .bottom a[aria-current='page'] .nav-ic { background: #cbdde8; color: #1d3644; animation: nav-pill 0.22s ease; }
  .bottom a[aria-current='page'] .nav-ic svg.ic.solid { fill: #1d3644 !important; }
  .bottom a[aria-current='page'] .nav-ic svg.ic:not(.solid) { fill: none; stroke-width: 2.2; }
  .bottom .nav-badge { top: -4px; inset-inline-end: 10px; min-width: 16px; height: 16px; padding: 0 4px; border: 0; font-size: 0.6875rem; }
  .topbar { background: #eaeff3; }
  .topbar .gsearch-field { background: #ffffff; }
  .topbar-menu { background: #ffffff; border-radius: 50%; }
}
/* סרגל הצד (מחשב): אותו סגנון, הפריט הנבחר ככדור רך עם סמליל מלא */
.side { background: #eef2f5; border-inline-start: 0; }
.side .gsearch-field { background: #ffffff; }
.side .nav-link { border-radius: 999px; color: #44474e; font-weight: 500; min-height: 52px; padding-inline: 18px; }
.side .nav-link .nav-ic svg.ic, .side .nav-link > svg.ic { width: 24px; height: 24px; }
.side .nav-link:hover { background: #e0e7ec; }
.side .nav-link[aria-current='page'] { background: #cbdde8; color: #1d3644; font-weight: 600; }
.side .nav-link[aria-current='page'] svg.ic.solid { fill: #1d3644 !important; }
.side .nav-link[aria-current='page'] svg.ic:not(.solid) { fill: none; }
.side .nav-badge { position: static; margin-inline-start: 6px; }
.side .user { border-top-color: #d9e2e8; }
/* סמליל "מי שמדבר" ממלא את כל המסגרת שלו, ולכן הוא מוקטן מעט כדי להיראות בגודל של שאר הסמלילים */
.bottom a[href='#/chat'] .nav-ic svg.ic, .side a[href='#/chat'] .nav-ic svg.ic { width: 22px; height: 22px; }

/* =====================================================================
   מילוי נוכחות: גוון אחד, בהיר ורגוע (בכל מסכי הסימון: פנימייה, חוגים, ימי היכרות).
   שני הכפתורים באותו גוון תכלת-אפור. הבחירה נראית בצורה ולא בצבע:
   "נוכח" מתמלא, "לא נוכח" מקבל מסגרת, ולכל אחד הסמל שלו (וי או איקס).
   ===================================================================== */
.mark-btn, .music .mark-btn, .mark-btn.present, .mark-btn.absent, .music .mark-btn.present, .music .mark-btn.absent { background: #eef3f6; border: 1.5px solid transparent; color: #4d6472; border-radius: 14px; font-weight: 500; }
.mark-btn svg.ic { opacity: 0.55; }
.mark-btn.present[aria-pressed='true'], .music .mark-btn.present[aria-pressed='true'] { background: #cbdde8; border-color: #cbdde8; color: #1d3644; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'], .music .mark-btn.absent[aria-pressed='true'] { background: #ffffff; border-color: #5b7482; color: #1d3644; font-weight: 700; }
.mark-btn[aria-pressed='true'] svg.ic { opacity: 1; }
.fill-row .name, .fill-row { color: #1d3644; }
.fill-row { border-color: #e3ebef; }
/* הכותרת, "סמן את כולם" וסרגל השמירה: אותו גוון, בלי כחול כהה ובלי חום */
.main:has(.fill-list) .page-head { background: #cbdde8; color: #1d3644; }
.main:has(.fill-list) .page-head h1, .main:has(.fill-list) .page-head p, .main:has(.fill-list) .page-head .muted { color: #1d3644 !important; }
.main:has(.fill-list) .page-head .icon-btn { background: #ffffff; color: #1d3644; }
.main:has(.fill-list) .btn.block, .music:has(.fill-list) .btn.block { background: #ffffff; color: #1d3644; }
.fill-bar .btn, .music .fill-bar .btn { background: #cbdde8; color: #1d3644; }
.fill-bar .btn:hover { background: #bcd2df; }
.fill-bar .btn:disabled, .music .fill-bar .btn:disabled { background: #eef3f6; color: #8a9aa5; }
.fill-bar .btn.brown, .fill-bar .btn.ghost { background: #ffffff; color: #1d3644; box-shadow: inset 0 0 0 1.5px #cbdde8; }
.main:has(.fill-list) .chip, .main:has(.fill-list) .chip.brown { background: #eef3f6; color: #4d6472; }
.main:has(.fill-list) .notice { background: #ffffff; color: #1d3644; }
.music:has(.fill-list) .music-head { background: #cbdde8; }
.music:has(.fill-list) .music-head h1, .music:has(.fill-list) .music-head p { color: #1d3644 !important; }
.music:has(.fill-list) .music-staff { opacity: 0.5; filter: brightness(0.6); }

/* =====================================================================
   פלטה אחת לכל האפליקציה (חוץ מ"מי שמדבר"): לבן, כחול וחום, בגוונים עדינים.
   אין כחול כהה מאוד ואין ניגודים חדים; המשחק הוא בין בהיר יותר לעמוק יותר בתוך כל משפחה.
     כחול: #eef3f6  #dce8ee  #cbdde8  #8fb0c2  #5b8198   כיתוב #1d3644
     חום:  #f8f3e8  #f1e7d1  #e6d6b3  #c9b384  #9a8350   כיתוב #4a3a17
   הכחול הוא הבסיס; החום ניתן לרכיבים בודדים (אריח, כרטיס "טרם מולא", "לא נוכח", כותרת חוג).
   ===================================================================== */
:root, .main, .music {
  --blue: #5b8198; --blue-bg: #dce8ee; --blue-ink: #1d3644; --blue-mid: #5b8198;
  --brown: #c9b384; --brown-bg: #f1e7d1; --brown-ink: #4a3a17;
  --m-blue: #5b8198; --m-blue-bg: #dce8ee; --m-blue-ink: #1d3644; --m-brown: #c9b384; --m-brown-bg: #f1e7d1; --m-brown-ink: #4a3a17;
  --acc-soft: #d5e2e9; --line: #d5e2e9; --ink: #1d3644; --ink-2: #4d6472;
}
.tone-blue { --tint: #ffffff; --plate: #eef3f6; --acc-soft: #d5e2e9; }
.tone-brown { --tint: #f8f3e8; --plate: #f1e7d1; --acc-soft: #e6d6b3; }
body, body.music-bg { background-color: #dfeaf0; }

/* כותרות המסכים: כחול בינוני-בהיר עם כיתוב כהה, בכל האפליקציה כולל החוגים */
.main .page-head, .music .music-head { background: #cbdde8; color: #1d3644; }
.main .page-head h1, .main .page-head p, .main .page-head .muted, .music .music-head h1, .music .music-head p { color: #1d3644 !important; }
.main .page-head .icon-btn { background: #ffffff; color: #1d3644; }
.main .page-head .btn { background: #ffffff; color: #1d3644; }
.main .page-head .btn.brown { background: #f1e7d1; color: #4a3a17; }
.music-staff { filter: brightness(0.45); opacity: 0.28; }

/* כפתורים */
.btn, .music .btn, .m-btn.solid, .music .fill-bar .btn { background: #cbdde8; color: #1d3644; }
.btn:hover { background: #bcd2df; }
.btn:disabled, .music .fill-bar .btn:disabled { background: #eef3f6; color: #8a9aa5; }
.btn.ghost, .m-btn, .m-pill, .music .btn.block { background: #eef3f6; color: #1d3644; }
.btn.brown { background: #f1e7d1; color: #4a3a17; }
.btn.brown:hover { background: #e6d6b3; }
.fill-bar .btn.brown { background: #f8f3e8; color: #4a3a17; box-shadow: inset 0 0 0 1.5px #e6d6b3; }
.m-btn.light { background: #ffffff; }

/* לשוניות: הנבחרת בכחול בינוני-בהיר */
.tabs button[aria-selected='true'], .music .music-tabs a[aria-current='page'], .seg.on { background: #cbdde8; color: #1d3644; }
.side .nav-link[aria-current='page'] { background: #cbdde8; color: #1d3644; }

/* משטחים: לבן לכחול, קרם לחום */
.main .card, .main .panel, .tile, .m-card, .fill-list, .fill-bar, .dash .card, .dash .panel, .class-card { background: #ffffff; }
.main .card.tone-brown, .main .panel.tone-brown, .dash .card.tone-brown, .dash .panel.tone-brown { background: #f8f3e8; }
.tile.tone-brown, .class-card.pending, .m-club-head { background: #f1e7d1; color: #4a3a17; }
.tile .bubble, .tile .tile-ic { background: #dce8ee; color: #1d3644; }
.tile.tone-brown .bubble, .tile.tone-brown .tile-ic, .m-club-head .m-icon { background: #f8f3e8; color: #4a3a17; }
.chip { background: #dce8ee; color: #1d3644; }
.chip.brown, .m-tag.brown, .gsearch-kind { background: #f1e7d1; color: #4a3a17; }
.chip.plain { background: #eef3f6; color: #4d6472; }
.group-head { background: #dce8ee; color: #1d3644; }
.tone-brown .group-head { background: #f1e7d1; color: #4a3a17; }
.notice { background: #f1e7d1; color: #4a3a17; }
.notice.blue { background: #ffffff; color: #1d3644; }
.m-icon { background: #f1e7d1; color: #4a3a17; }
.m-next { background: #cbdde8; color: #1d3644; }
.m-next-label, .m-next-sub { opacity: 1; color: #4d6472; }
.m-student { background: #dce8ee; color: #1d3644; }
.m-student.selected { background: #8fb0c2; color: #1d3644; }
.m-time, .m-link, .m-add, .music .m-day, .music button.link { color: #5b8198; }
.m-flag { border-inline-start-color: #c9b384; }
.m-flag.dark { border-inline-start-color: #9a8350; }
.m-bar { background: #f1e7d1; }
.m-bar span { background: #8fb0c2; }
.music .m-alert { background: #f1e7d1; color: #4a3a17; }
.list-row .icon-btn.call, .list-row .icon-btn.wa { color: #9a8350; }
.list-row .icon-btn.mail { color: #5b8198; }
.gsearch-icon, .more-ic, .wl-push-icon { background: #dce8ee; color: #1d3644; }
.main .wl-push { background: #ffffff; }

/* סימון נוכחות: שני הכפתורים בהירים לפני הבחירה; "נוכח" מתמלא בכחול, "לא נוכח" בחום. אותה עוצמה לשניהם */
.mark-btn, .music .mark-btn, .mark-btn.present, .mark-btn.absent, .music .mark-btn.present, .music .mark-btn.absent { background: #eef3f6; border: 1.5px solid transparent; color: #4d6472; border-radius: 14px; font-weight: 500; }
.mark-btn.absent, .music .mark-btn.absent { background: #f8f3e8; color: #6b5a33; }
.mark-btn.present[aria-pressed='true'], .music .mark-btn.present[aria-pressed='true'] { background: #cbdde8; border-color: #cbdde8; color: #1d3644; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'], .music .mark-btn.absent[aria-pressed='true'] { background: #e6d6b3; border-color: #e6d6b3; color: #4a3a17; font-weight: 700; }
.main:has(.fill-list) .btn.block, .music:has(.fill-list) .btn.block { background: #ffffff; color: #1d3644; }
.music:has(.fill-list) .music-staff { opacity: 0.28; filter: brightness(0.45); }

/* שיבוץ: כחול וחום באותה עוצמה */
.bed.g9, .bed.g11 { background: #8fb0c2; border-color: #8fb0c2; }
.bed.g10, .bed.g12 { background: #c9b384; border-color: #c9b384; }
.bed.counselor { background: #5b8198; border-color: #5b8198; }
.plan-room.full { background: #eef3f6; }
.plan-room.vacant { background: #f8f3e8; }
.plan-room.hit { background: #f1e7d1; outline-color: #c9b384; }
.person.g9, .person.g11 { background: #dce8ee; color: #1d3644; border-color: #cbdde8; }
.person.g10, .person.g12 { background: #f1e7d1; color: #4a3a17; border-color: #e6d6b3; }
.bed-toggle { color: #5b8198; }
.bed-toggle.on { color: #9a8350; }
.side .user .nav-link, .side .user, .side .user strong { color: #44474e; }
.main .infographic .tabs button[aria-selected='true'], .main .tabs button[aria-selected='true'] { background: #cbdde8 !important; color: #1d3644 !important; }
.main .infographic .tabs button { background: #eef3f6; }
.wl-push-icon, div.wl-push .wl-push-icon { background: #dce8ee; color: #5b8198; }

/* =====================================================================
   יותר חום, ובלי ערבוב: רכיב חום הוא חום כולו (רקע, כפתורים, תגים וסימונים מאותה משפחה).
   ===================================================================== */
/* כותרת "חוגי מוזיקה" / "חדר כושר" וכותרת תעודת הזהות: חום */
.music .music-head { background: #e6d6b3; color: #4a3a17; }
.music .music-head h1, .music .music-head p { color: #4a3a17 !important; }
.idcard-band, .idcard-band.tone-blue { background: #e6d6b3; color: #4a3a17; border-bottom-color: #c9b384; --acc: #c9b384; --acc-bg: #e6d6b3; --acc-ink: #4a3a17; }
.idcard-band .bubble { background: #f8f3e8; color: #4a3a17; }
.idcard-band strong, .idcard-band span { color: #4a3a17; }
/* התווים שבחמשה: בחום עמוק וברור, באותה משפחה של הכותרת */
.music-staff, .music:has(.fill-list) .music-staff { background: #7d6a3c; -webkit-mask: url('/assets/music-header.svg') repeat-x center / auto 74px; mask: url('/assets/music-header.svg') repeat-x center / auto 74px; filter: none; opacity: 0.9; }
/* לשוניות: הנבחרת בחום */
.tabs button[aria-selected='true'], .music .music-tabs a[aria-current='page'], .seg.on, .main .tabs button[aria-selected='true'], .main .infographic .tabs button[aria-selected='true'] { background: #e6d6b3 !important; color: #4a3a17 !important; }
/* בתוך רכיב חום הכול חום: כפתורים, תגים, סמלילים ושדות */
.tone-brown .btn, .tone-brown .btn.ghost, .tone-brown .icon-btn { background: #f1e7d1; color: #4a3a17; border-color: #e6d6b3; }
.tone-brown .btn:hover, .tone-brown .icon-btn:hover { background: #e6d6b3; }
.tone-brown .chip, .tone-brown .chip.plain { background: #f1e7d1; color: #4a3a17; }
.tone-brown h2, .tone-brown h3, .tone-brown strong, .tone-brown .muted, .tone-brown .small { color: #4a3a17; }
.tone-brown .muted, .tone-brown .small.muted, .tone-brown .legend { color: #6b5a33; }
.tone-brown .input { border-color: #e6d6b3; }
/* יומן: כולו בגווני חום. יום עם דיווח בהיר, היום הנבחר במסגרת עמוקה; בלוח של תלמיד: נוכח בהיר, לא נוכח עמוק */
.cal .dow { color: #6b5a33; }
.cal .day { color: #4a3a17; }
.cal .day.has, .cal .day.present { background: #f1e7d1; color: #4a3a17; }
.cal .day.absent { background: #c9b384; color: #3a2d10; }
.cal .day.none { color: #9a8350; }
.cal .day.selected { border: 2px solid #9a8350; }
.cal button.day:hover { border-color: #c9b384; }
.cal .day .mark, .cal .day svg.ic { color: #7d6a3c; }
.main .card:has(.cal), .main .panel:has(.cal), .dash .card:has(.cal) { background: #f8f3e8; --acc: #c9b384; --acc-bg: #f1e7d1; --acc-ink: #4a3a17; }
.main .card:has(.cal) .btn, .main .card:has(.cal) .icon-btn, .main .panel:has(.cal) .btn, .main .panel:has(.cal) .icon-btn { background: #f1e7d1; color: #4a3a17; border-color: #e6d6b3; }
.main .card:has(.cal) h2, .main .card:has(.cal) h3, .main .card:has(.cal) strong, .main .panel:has(.cal) h2, .main .panel:has(.cal) h3, .main .panel:has(.cal) strong { color: #4a3a17; }
.main .card:has(.cal) .legend, .main .panel:has(.cal) .legend, .main .card:has(.cal) .muted, .main .panel:has(.cal) .muted { color: #6b5a33; }
.main .card:has(.cal) .chip, .main .panel:has(.cal) .chip { background: #f1e7d1; color: #4a3a17; }
.dash .tone-brown h2, .main .tone-brown h2, .main .tone-brown h3, .main .card:has(.cal) h2 { background: none !important; padding: 0 !important; }
.dash .class-card:not(.pending) { background: #ffffff; }

/* כותרת מסך הבית: חום */
.main .home > .page-head { background: #e6d6b3; color: #4a3a17; }
.main .home > .page-head h1, .main .home > .page-head p, .main .home > .page-head .muted { color: #4a3a17 !important; }
/* בחוגים: שם תלמיד בלי קו תחתון */
.music button.link, .music a.link, .music .tbl button.link { text-decoration: none; }
/* תעודת זהות: כולה בגווני חום */
.idcard { background: #fdfaf3; color: #4a3a17; --acc: #c9b384; --acc-bg: #f1e7d1; --acc-ink: #4a3a17; --acc-soft: #e6d6b3; --line: #e6d6b3; --ink: #4a3a17; --ink-2: #6b5a33; }
.idcard-body, .idcard-info { background: #fdfaf3; }
.idcard h1, .idcard h2, .idcard h3, .idcard strong, .idcard .idcard-name, .idcard dd, .idcard .fact strong { color: #4a3a17; }
.idcard .muted, .idcard .small, .idcard dt, .idcard .fact span { color: #7d6a3c; }
.idcard .avatar, .idcard .idcard-photo .avatar { background: #f1e7d1; color: #4a3a17; }
.idcard .chip, .idcard .chip.brown { background: #f1e7d1; color: #4a3a17; }
.idcard .chip:first-child { background: #e6d6b3; }
.idcard .btn, .idcard .btn.ghost, .idcard .btn.sm { background: #f1e7d1; color: #4a3a17; }
.idcard .icon-btn, .idcard .icon-btn.call, .idcard .icon-btn.wa, .idcard .icon-btn.mail { background: #fdfaf3; color: #7d6a3c; border-color: #e6d6b3; }
.idcard-info .facts { border-top-color: #e6d6b3; }
.idcard-foot, .idcard-foot.tone-brown { background: #f1e7d1; color: #4a3a17; }
/* סמליל לוח עם התאריך של היום */
svg.ic.day-ic { fill: none; }
svg.ic.day-ic text { fill: currentColor; stroke: none; font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 9px; font-weight: 700; }
svg.ic.day-ic.day-on path { fill: currentColor; }
svg.ic.day-ic.day-on text { fill: #cbdde8; }
.bottom .nav-ic svg.ic.day-ic, .side .nav-link svg.ic.day-ic { fill: none !important; stroke-width: 1.8; }

/* כותרת שיבוץ פנימייה: חום (כולל השדה והכפתורים שבתוכה) */
.main .rooms-page > .page-head { background: #e6d6b3; color: #4a3a17; }
.main .rooms-page > .page-head h1, .main .rooms-page > .page-head p { color: #4a3a17 !important; }
.main .rooms-page > .page-head .btn, .main .rooms-page > .page-head .icon-btn, .main .rooms-page > .page-head .input { background: #fdfaf3; color: #4a3a17; border-color: #e6d6b3; }
.main .rooms-page > .page-head .chip { background: #f1e7d1; color: #4a3a17; }
/* אלפון תלמידים: הרשימה כולה בגווני חום (כותרת האות או הכיתה, השורות, הסמלילים) */
.dir-list .card, .dir-list .card.tone-blue, .dir-list .card.tone-brown { background: #fdfaf3; --acc: #c9b384; --acc-bg: #f1e7d1; --acc-ink: #4a3a17; --acc-soft: #e6d6b3; }
.dir-list .group-head { background: #f1e7d1; color: #4a3a17; }
.dir-list .group-head h2, .dir-list .group-head .small, .dir-list .group-head span { color: #4a3a17; }
.dir-list .group-head h2.letter { background: #fdfaf3; color: #4a3a17; }
.dir-list .list-row { border-top-color: #efe4cb; color: #4a3a17; }
.dir-list .list-row a.name, .dir-list .list-row strong { color: #4a3a17; }
.dir-list .list-row .small, .dir-list .list-row .muted { color: #7d6a3c; }
.dir-list .avatar { background: #f1e7d1; color: #4a3a17; }
.dir-list .chip { background: #f1e7d1; color: #4a3a17; }
.dir-list .list-row .icon-btn.call, .dir-list .list-row .icon-btn.wa { color: #9a8350; }
.dir-list .list-row .icon-btn:hover { background: #f1e7d1; }
/* כל הכותרות העליונות של המסכים (הגדרות, נוכחות, תלמידים ועוד) בגווני חום */
.main .page-head, .main:has(.fill-list) .page-head, .music .music-head { background: #e6d6b3; color: #4a3a17; }
.main .page-head h1, .main .page-head p, .main .page-head .muted,
.main:has(.fill-list) .page-head h1, .main:has(.fill-list) .page-head p, .main:has(.fill-list) .page-head .muted { color: #4a3a17 !important; }
.main .page-head .btn, .main .page-head .icon-btn, .main .page-head .input,
.main:has(.fill-list) .page-head .icon-btn { background: #fdfaf3; color: #4a3a17; border-color: #e6d6b3; }
.main .page-head .btn.brown { background: #f1e7d1; color: #4a3a17; }
.main .page-head .chip { background: #f1e7d1; color: #4a3a17; }
/* שיבוץ פנימייה: בכותרת מתחם (רקע כחול) כל הכיתוב בכחול, בלי חום על כחול */
.main .rooms-page .complex-title, .main .rooms-page .complex-title h2, .main .rooms-page .complex-title span,
.main .rooms-page .complex-title .chip, .main .rooms-page .complex-title .chip.brown, .main .rooms-page .complex-title .muted { color: #1d3644 !important; }
.main .rooms-page .complex-title .chip.brown { background: none; }
/* סמליל לוח נוכחות בצורת סמליל יומן גוגל: מסגרת עבה, פינה מקופלת ומספר היום */
svg.ic.day-ic, .bottom .nav-ic svg.ic.day-ic, .side .nav-link svg.ic.day-ic { fill: currentColor !important; stroke: none !important; }
svg.ic.day-ic path, svg.ic.day-ic.day-on path { fill: currentColor; }
svg.ic.day-ic .day-fold { opacity: 0.5; }
svg.ic.day-ic text, svg.ic.day-ic.day-on text { fill: currentColor; font-size: 6.6px; font-weight: 700; }
/* כפתור שלושת הקווים מימין ללוגו, ומגירת הניווט שנפתחת מימין */
.topbar-menu svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(29, 54, 68, 0.38); display: flex; justify-content: flex-start; }
.drawer { width: min(84vw, 320px); height: 100%; background: #fdfaf3; display: flex; flex-direction: column; border-radius: 24px 0 0 24px; box-shadow: -8px 0 28px rgba(29, 54, 68, 0.2); animation: drawer-in 0.2s ease-out; overflow: hidden; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #e6d6b3; color: #4a3a17; }
.drawer-head img { width: 44px; height: 44px; flex: none; }
.drawer-head > div { flex: 1; min-width: 0; }
.drawer-head strong { font-size: 1.125rem; }
.drawer-head .icon-btn { background: #fdfaf3; color: #4a3a17; border: 0; }
.drawer-list { flex: 1; overflow-y: auto; padding: 10px 10px 20px; display: flex; flex-direction: column; gap: 2px; }
.drawer-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 1.0625rem; font-weight: 500; color: #4a3a17; text-decoration: none; text-align: start; cursor: pointer; }
.drawer-row:hover { background: #f1e7d1; }
.drawer-row[aria-current='page'] { background: #e6d6b3; font-weight: 700; }
.drawer-ic { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #9a8350; }
.drawer-ic svg.ic { width: 24px; height: 24px; }
.drawer-ic svg.ic.solid { fill: currentColor !important; stroke: none; }
.drawer-line { height: 1px; background: #e6d6b3; margin: 8px 12px; }
.wl-title { gap: 6px; align-items: center; }
/* רקע השיחה: ציורים קטנים וצפופים */
.chat-room { background-size: 300px; }
/* כותרת "מי שמדבר" ברשימת השיחות: בגווני חום כמו שאר הכותרות, לא בירוק */
.wl-head { background: #e6d6b3; margin: -8px 0 8px; padding: 14px 18px; border-radius: 18px 18px 0 0; }
.main .wl-head h1 { color: #4a3a17; }
.wl-head .wa-tool { color: #4a3a17; }
@media (max-width: 899px) { .wl-head { border-radius: 0 0 24px 24px; } }
/* חץ השליחה: מעוגל, עם חריץ באמצע, כמו באפליקציית המסרים */
.wa-send.sending svg.ic.solid, .wa-fab svg.ic.solid { width: 25px; height: 25px; stroke: currentColor !important; stroke-width: 1.7; stroke-linejoin: round; }
.wa-send.sending svg.ic.solid, .wa-fab svg.ic.solid { width: 28px; height: 28px; stroke-width: 1.3; }
.wa-input:focus, .wa-input:focus-visible { outline: none !important; box-shadow: none !important; }
/* שלוש הנקודות בראש השיחה: נקודות מלאות וכהות כמו באפליקציית המסרים */
.wa-head .wa-tool svg.ic.solid { width: 24px; height: 24px; fill: #111b21 !important; stroke: none; }
/* רקע השיחה: ציורים בגדלים שונים, מפוזרים בלי שורות, כמו באפליקציית המסרים */
.chat-room { background-size: 470px; }
.wa-box .wa-tool svg.ic:not(.solid) { width: 26px; height: 26px; stroke-width: 1.9; color: #54595d; }
/* מי שמדבר: שורת הכתיבה לפי מידות שנמדדו מצילום מסך של אפליקציית המסרים */
.wa-composer { gap: 8px; padding: 5px 8px 8px; align-items: flex-end; }
.wa-box { min-height: 45px; border-radius: 23px; padding: 0; box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1); }
.wa-box .wa-tool { width: 45px; height: 45px; color: #5c6367; }
.wa-input { padding: 11px 2px; font-size: 1.125rem; }
.wa-send { width: 45px; height: 45px; background: #51a768; box-shadow: 0 2px 4px rgba(11, 20, 26, 0.22); }
svg.ic.wx, .wa-box .wa-tool svg.ic.wx, .wa-send svg.ic.wx { width: 22px; height: 22px; fill: none !important; stroke: none !important; }
svg.ic.wx .wx-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.wx .wx-fill { fill: currentColor; stroke: none; }
.wa-send svg.ic.wx { width: 21.5px; height: 21.5px; }
.wa-send svg.ic.wx .wx-line { stroke-width: 1.8; }
.wa-input::placeholder { color: #5c6367; opacity: 1; }
.wa-box .wa-tool svg.ic.wx { width: 23px; height: 23px; }
.wa-send svg.ic.wx { width: 24px; height: 24px; }
/* כפתור השיחה בראש השיחה: מצלמה עם משולש קטן, לפי מידות שנמדדו מצילום מסך */
.wa-head .wa-callbtn { width: auto; padding: 0 6px; gap: 6px; color: #111b21; }
.wa-head .wa-callbtn svg.ic.wx { width: 22.5px; height: 22.5px; }
.wa-head .wa-callbtn svg.ic.wx:first-child { width: 16.5px; height: 16.5px; }
.wa-head .wa-tool svg.ic.solid { width: 23px; height: 23px; }
.wa-head .wa-tool svg.ic.solid { width: 26px; height: 26px; }
/* סמליל היומן ולוח הנוכחות: מסגרת מעוגלת עם צדדים שקועים ומספר היום */
svg.ic.day-ic, .bottom .nav-ic svg.ic.day-ic, .side .nav-link svg.ic.day-ic { fill: none !important; stroke: none !important; }
svg.ic.day-ic path.day-frame, svg.ic.day-ic.day-on path.day-frame { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
svg.ic.day-ic text, svg.ic.day-ic.day-on text { fill: currentColor; stroke: none; font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 8.6px; font-weight: 700; }

/* ---- יומן הפנימייה: כולו בגווני חום ---- */
.gcal { background: #fdfaf3; border-radius: 22px; padding: 14px 12px 12px; color: #4a3a17; }
.gcal-top { display: flex; align-items: center; gap: 6px; padding: 0 4px 10px; }
.main .gcal-top h2 { margin: 0; margin-inline-end: auto; font-size: 1.375rem; font-weight: 600; color: #4a3a17; background: none !important; padding: 0 !important; order: -1; }
.gcal-nav { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1e7d1; color: #4a3a17; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gcal-nav svg.ic { width: 20px; height: 20px; }
.gcal-today { border: 0; border-radius: 999px; background: #e6d6b3; color: #4a3a17; font: inherit; font-weight: 600; padding: 0 16px; min-height: 40px; cursor: pointer; }
.gcal-week, .gcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.gcal-week span { text-align: center; font-size: 0.8125rem; color: #9a8350; padding: 6px 0; }
.gcal-cell { border: 0; background: none; font: inherit; color: #4a3a17; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 0 4px; min-height: 62px; border-radius: 16px; }
.gcal-cell:hover { background: #f8f3e8; }
.gcal-num { font-size: 1.0625rem; font-weight: 600; line-height: 1.15; }
.gcal-heb { font-size: 0.8125rem; color: #7d6a3c; line-height: 1.1; }
.gcal-dots { display: flex; gap: 3px; height: 7px; margin-top: 4px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c9b384; }
.dot.yeshiva { background: #6e5a2c; }
.dot.free { background: #fdfaf3; box-shadow: inset 0 0 0 1.5px #9a8350; }
.dot.trip { background: #9a8350; border-radius: 2px; }
.dot.workshop { background: #c9b384; border-radius: 2px; }
.dot.event { background: #b39a62; }
.gcal-cell.sat .gcal-num { color: #6e5a2c; }
.gcal-cell.today .gcal-num { background: #9a8350; color: #ffffff; border-radius: 999px; min-width: 28px; padding: 2px 6px; }
.gcal-cell.sel { background: #f1e7d1; }
.gcal-months { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.gcal-months::-webkit-scrollbar { display: none; }
.gcal-chip { flex: none; border: 0; border-radius: 999px; background: #f8f3e8; color: #4a3a17; font: inherit; font-size: 1rem; padding: 6px 16px; min-height: 40px; cursor: pointer; }
.gcal-chip[aria-current='true'] { background: #e6d6b3; font-weight: 700; }
.gcal-year { flex: none; color: #7d6a3c; font-size: 1rem; padding: 0 4px; }
.gcal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 6px 0; font-size: 0.8125rem; color: #7d6a3c; }
.gcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gcal-day { background: #fdfaf3; border-radius: 22px; padding: 16px; color: #4a3a17; display: flex; flex-direction: column; gap: 10px; }
.gcal-day-head { display: flex; align-items: flex-start; gap: 10px; }
.gcal-day-head > div { flex: 1; min-width: 0; }
.gcal-day-head strong { font-size: 1.125rem; }
.gcal-day-heb { color: #7d6a3c; }
.gcal-add { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: #e6d6b3; color: #4a3a17; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gcal-shabbat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f1e7d1; border-radius: 16px; padding: 12px 14px; }
.gcal-parasha { font-size: 1.125rem; font-weight: 700; margin-inline-end: auto; }
.gcal-tag { border-radius: 999px; padding: 6px 14px; font-weight: 600; background: #fdfaf3; }
.gcal-tag.yeshiva { background: #6e5a2c; color: #ffffff; }
.gcal-tag.none { font-weight: 400; color: #7d6a3c; }
.gcal-seg { display: inline-flex; background: #fdfaf3; border-radius: 999px; padding: 3px; }
.gcal-seg button { border: 0; background: none; font: inherit; color: #4a3a17; border-radius: 999px; padding: 6px 14px; min-height: 38px; cursor: pointer; }
.gcal-seg button[aria-pressed='true'] { background: #6e5a2c; color: #ffffff; font-weight: 600; }
.gcal-none { margin: 0; color: #7d6a3c; background: none !important; padding: 0 !important; }
.gcal-event, .gcal-pill { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 14px; background: #e6d6b3; color: #4a3a17; text-align: start; }
.gcal-event .small, .gcal-pill span { font-size: 0.875rem; opacity: 0.85; }
.gcal-event.trip, .gcal-pill.trip { background: #9a8350; color: #ffffff; }
.gcal-event.workshop, .gcal-pill.workshop { background: #c9b384; color: #3a2d10; }
.gcal-pill.shabbat { background: #f1e7d1; }
.gcal-pill.shabbat.yeshiva { background: #6e5a2c; color: #ffffff; }
.gcal-pill.shabbat.free { background: #fdfaf3; box-shadow: inset 0 0 0 1.5px #c9b384; }
.gcal-pill { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.gcal-del { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.35); color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gcal-del svg.ic { width: 20px; height: 20px; }
.gcal-agenda { display: flex; flex-direction: column; gap: 8px; }
.main .gcal-agenda h2 { margin: 6px 4px 2px; font-size: 1.0625rem; color: #4a3a17; background: none !important; padding: 0 !important; }
.gcal-row { display: flex; align-items: stretch; gap: 10px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; width: 100%; }
.gcal-when { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #4a3a17; line-height: 1.15; }
.gcal-when b { font-size: 1.125rem; }
.gcal-when small { font-size: 0.75rem; color: #7d6a3c; }
.cal-sum { margin: 0; padding-inline-start: 20px; }
.cal-preview { max-height: 220px; overflow-y: auto; background: #f8f3e8; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
@media (min-width: 900px) {
  .cal-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .cal-page > .page-head { grid-column: 1 / -1; margin-bottom: 0; }
  .cal-page > .gcal { grid-row: 2 / span 2; }
  .gcal-cell { min-height: 76px; }
}
/* יומן: בלי גוונים כהים. רק הגוונים הבהירים של הפלטה החומה, וכיתוב בצבע הדיו הרגיל */
.dot.yeshiva { background: #c9b384; }
.dot.free { background: #fdfaf3; box-shadow: inset 0 0 0 1.5px #c9b384; }
.dot.trip { background: #c9b384; border-radius: 2px; }
.dot.workshop { background: #e6d6b3; border-radius: 2px; box-shadow: inset 0 0 0 1px #c9b384; }
.dot.event { background: #e6d6b3; box-shadow: inset 0 0 0 1px #c9b384; }
.gcal-cell.sat .gcal-num { color: #4a3a17; }
.gcal-cell.today .gcal-num { background: #e6d6b3; color: #4a3a17; box-shadow: inset 0 0 0 1.5px #c9b384; }
.gcal-week span { color: #7d6a3c; }
.gcal-tag.yeshiva { background: #e6d6b3; color: #4a3a17; }
.gcal-seg button[aria-pressed='true'] { background: #e6d6b3; color: #4a3a17; }
.gcal-event, .gcal-pill, .gcal-event.trip, .gcal-pill.trip, .gcal-event.workshop, .gcal-pill.workshop { color: #4a3a17; }
.gcal-event.trip, .gcal-pill.trip { background: #e6d6b3; }
.gcal-event.workshop, .gcal-pill.workshop { background: #f1e7d1; }
.gcal-event.event, .gcal-pill.event { background: #f8f3e8; box-shadow: inset 0 0 0 1.5px #e6d6b3; }
.gcal-pill.shabbat.yeshiva { background: #e6d6b3; color: #4a3a17; box-shadow: inset 0 0 0 1.5px #c9b384; }
.gcal-pill.shabbat.free { background: #fdfaf3; box-shadow: inset 0 0 0 1.5px #e6d6b3; }
.gcal-del { background: #fdfaf3; }
.gcal-edit { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: #fdfaf3; color: #4a3a17; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gcal-edit svg.ic { width: 20px; height: 20px; }
/* "השיעור הקרוב": מיושר לימין */
.m-next { align-items: flex-start; text-align: start; }
/* מי שמדבר: מיקרופון, מהדק ומצלמה לפי מדידה מצילום מסך באיכות גבוהה (יחידה אחת בציור = פיקסל אחד) */
.wa-box .wa-tool svg.ic.wx, .wa-send svg.ic.wx { width: 24px; height: 24px; }
.wa-box .wa-tool svg.ic.wx .wx-line { stroke-width: 1.8; }
.wa-send svg.ic.wx .wx-line { stroke-width: 1.55; }
/* שיבוץ פנימייה: שתי שורות החדרים צמודות, בלי מסדרון ביניהן */
.plan { gap: 2px; }
/* רשימת השיחות ב"מי שמדבר": קו עדין בין שיחה לשיחה (מתחיל אחרי התמונה) */
.wl-item { position: relative; }
.wl-item + .wl-item::before { content: ''; position: absolute; top: 0; inset-inline-start: 88px; inset-inline-end: 16px; height: 1px; background: #e9edef; }
/* מי שמדבר: מרווח השורות בתוך הודעה כמו באפליקציית המסרים (היחס שנמדד בצילום מסך: 1.19 מגודל האות) */
.wa-text { font-size: 1rem; line-height: 1.19; }
.wa-sender, .wa-quote-name, .wa-quote-text { line-height: 1.19; }
.wa-bubble { padding: 5px 9px 7px 7px; }
/* הטקסט חייב להיות בלוק, אחרת גובה השורה נקבע לפי הבועה ולא לפי ההגדרה שלו */
.wa-text { display: block; }
.wa-bubble { line-height: 1.19; }
/* מי שמדבר: שוליים בין המלל לקצה הבועה, לפי מדידה מצילום מסך (כ-10dp בצדדים, שם השולח 13dp מהקצה העליון, השעה 7dp מהתחתון) */
.wa-bubble { padding: 9px 11px 8px 11px; }
.wa-sender { font-size: 0.875rem; margin-bottom: 3px; }
.wa-meta { left: 11px; bottom: 6px; }
.wa-quote { margin: 0 -6px 6px; }
.wa-file { margin: -4px -6px 4px; }
.wa-text::after { width: 50px; }
.wa-msg.out .wa-text::after { width: 70px; }
.wa-bubble { border-radius: 17px; }
.wa-quote { border-radius: 11px; }
/* מי שמדבר: עיגול עם תמונת הדובר מימין לבועה (בהודעות של אחרים) */
.wa-face { width: 28px; height: 28px; flex: none; border-radius: 50%; margin-inline-end: 10px; margin-top: 0; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; font-size: 0.875rem; font-weight: 500; align-self: flex-start; }
.wa-face.gap { visibility: hidden; height: 1px; }
.wa-msg.in .wa-bubble { max-width: min(100%, 520px); }
.wa-msg.in .wa-col { max-width: calc(90% - 38px); }
/* מי שמדבר: כפתור תמונת הפרופיל שלי בראש רשימת השיחות, וחלון העדכון שלה */
.wl-me { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: inline-flex; margin-inline-start: 6px; }
.chat-avatar.sm { width: 36px; height: 36px; background: #c9b384; box-shadow: 0 0 0 2px #fdfaf3; }
.chat-avatar.sm svg.ic { width: 22px; height: 22px; }
.wl-profile { align-items: center; text-align: center; }
.wl-profile .row { justify-content: center; }
/* ראש השיחה: חייגן (שיחה קולית) במקום מצלמה, ושם הקבוצה בגודל של וואטסאפ (כגודל המלל בהודעות) */
.wa-head .wa-callbtn svg.ic.wx:last-child { width: 23px; height: 23px; }
.wa-head .wa-callbtn svg.ic.wx .wx-line { stroke-width: 1.9; }
.wa-head-text strong { font-size: 1.0625rem; font-weight: 500; }
.wa-head-text .chat-preview { font-size: 0.8125rem; }

/* ---- דף הקבוצה ב"מי שמדבר", במבנה של אפליקציית המסרים: תמונה, שם, כפתורי פעולה, ולשוניות חברים / מדיה / הגדרות ---- */
.chat-info.gi { max-width: 720px; margin: 0 auto; background: #ffffff; border-radius: 22px; padding: 8px 0 24px; font-family: Roboto, 'Google Sans', 'Segoe UI', Arial, sans-serif; color: #111b21; display: block; }
.gi-top { display: flex; padding: 6px 12px 0; }
.gi-back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #111b21; border-radius: 50%; }
.gi-back svg.ic { width: 26px; height: 26px; }
.gi-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 16px 14px; margin-top: -30px; }
.gi-head .chat-avatar.xl { width: 116px; height: 116px; margin-bottom: 12px; }
.main .gi-head h1 { margin: 0; font-size: 1.5rem; font-weight: 400; color: #111b21; background: none !important; padding: 0 !important; }
.main .gi-head p { margin: 0; font-size: 1.0625rem; color: #667781; background: none !important; padding: 0 !important; }
.gi-actions { display: flex; justify-content: center; gap: 12px; padding: 6px 16px 18px; border-bottom: 1px solid #e9edef; }
.gi-action { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 0.875rem; color: #111b21; cursor: pointer; padding: 0; min-width: 76px; }
.gi-pill { width: 64px; height: 46px; border-radius: 23px; background: #f4f3f1; display: inline-flex; align-items: center; justify-content: center; color: #111b21; }
.gi-pill svg.ic.wx { width: 24px; height: 24px; }
.gi-action:active .gi-pill { background: #e9e7e3; }
.gi-about { padding: 16px 18px; border-bottom: 1px solid #e9edef; display: flex; flex-direction: column; gap: 6px; }
.main .gi-about p { margin: 0; background: none !important; padding: 0 !important; }
.gi-link { border: 0; background: none; padding: 0; font: inherit; font-size: 1.0625rem; color: #1b8755; cursor: pointer; text-align: start; }
.gi-tabs { display: flex; justify-content: center; gap: 28px; padding: 14px 16px 0; }
.gi-tabs button { border: 0; background: none; font: inherit; font-size: 1rem; color: #667781; padding: 6px 4px 10px; cursor: pointer; border-bottom: 3px solid transparent; border-radius: 0; min-height: 44px; }
.gi-tabs button[aria-selected='true'] { color: #111b21; border-bottom-color: #1daa61; font-weight: 500; }
.gi-body { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.gi-count { color: #667781; padding: 8px 2px; }
.gi-member { display: flex; align-items: center; gap: 14px; padding: 9px 2px; border: 0; background: none; font: inherit; color: inherit; width: 100%; text-align: start; }
.gi-member.add { cursor: pointer; }
.gi-member strong { font-weight: 400; font-size: 1.0625rem; }
.chat-avatar.green { background: #1daa61; color: #ffffff; }
.chat-avatar.green svg.ic { width: 24px; height: 24px; }
.gi-admin { background: #e0fcd6; color: #1b6e45; font-size: 0.75rem; border-radius: 6px; padding: 3px 8px; flex: none; }
.gi-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; border-bottom: 1px solid #e9edef; scrollbar-width: none; }
.gi-chips::-webkit-scrollbar { display: none; }
.gi-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c7cbcd; border-radius: 999px; background: #ffffff; color: #54595d; font: inherit; font-size: 0.9375rem; padding: 0 14px; min-height: 36px; cursor: pointer; }
.gi-chip svg.ic.wx { width: 20px; height: 20px; color: #5c6367; }
.gi-chip[aria-selected='true'] { background: #e0fcd6; border-color: #a9dca0; color: #111b21; }
.gi-media { padding-top: 12px; display: flex; flex-direction: column; }
.gi-empty { color: #667781; text-align: center; padding: 28px 8px; margin: 0; background: none !important; }
.gi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 600px) { .gi-grid { grid-template-columns: repeat(5, 1fr); } }
.gi-grid a { position: relative; display: block; aspect-ratio: 1; background: #f0f2f5; overflow: hidden; border-radius: 4px; }
.gi-grid img, .gi-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffffff; background: rgba(11, 20, 26, 0.25); }
.gi-play svg.ic { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.gi-row { display: flex; align-items: center; gap: 14px; padding: 10px 2px; border-bottom: 1px solid #f0f2f5; color: inherit; text-decoration: none; }
.gi-row .grow { display: flex; flex-direction: column; min-width: 0; }
.gi-row strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-row strong.ltr { direction: ltr; text-align: right; color: #027eb5; }
.gi-row-ic { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #f4f3f1; color: #5c6367; display: inline-flex; align-items: center; justify-content: center; }
.gi-row-ic svg.ic.wx { width: 24px; height: 24px; }
.gi-setting { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border: 0; border-bottom: 1px solid #f0f2f5; background: none; font: inherit; color: inherit; width: 100%; text-align: start; cursor: pointer; }
.gi-setting strong { font-weight: 400; font-size: 1.0625rem; }
.gi-setting > svg.ic { width: 22px; height: 22px; color: #667781; }
.gi-results { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.gi-result { display: flex; flex-direction: column; gap: 2px; border: 0; border-bottom: 1px solid #f0f2f5; background: none; font: inherit; color: inherit; text-align: start; padding: 10px 2px; cursor: pointer; }
.gi-snippet { color: #54656f; overflow-wrap: anywhere; }
@media (max-width: 899px) { .chat-info.gi { border-radius: 0; margin: -16px -16px 0; min-height: calc(100dvh - 130px); } }
/* מחסנית השמות בעריכת השיבוץ: הלשוניות יורדות שורה כשהן ארוכות (למשל בימי היכרות) */
.pool .tabs { flex-wrap: wrap; overflow: visible; }
/* טלפון: מבנה של אפליקציה. המסך כולו קבוע, ורק התוכן שבאמצע נגלל.
   כך העמוד עצמו לא נגלל, שורת הכתובת של הדפדפן לא מתחבאת ולא חוזרת, ושום דבר לא מזיז את הסרגל התחתון.
   (קודם הסרגל היה "מודבק" לתחתית החלון, וב-Samsung Internet הוא קפץ בכל פעם שגובה החלון השתנה בגלילה.) */
@media (max-width: 899px) {
  .shell { position: fixed; inset: 0; min-height: 0; display: flex; flex-direction: column; }
  .shell > .topbar { position: static; flex: none; }
  .shell > .main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 28px; }
  .shell > .bottom { position: static; flex: none; padding-bottom: 12px; }
  body.chat-list .main { padding-bottom: 0; }
  .wl { min-height: 100%; }
  .fill-bar { bottom: 8px; }
  .wl-fab { bottom: calc(var(--nav-h) + 40px); }
  .chat-room { height: 100%; }
  body.chat-full .shell > .main { overflow: hidden; padding: 0; }
  body.chat-full .chat-room.wa { height: 100%; }
}
/* אפליקציה שהותקנה במסך הבית (באייפון): רווח קבוע מעל פס הבית */
@media (max-width: 899px) and (display-mode: standalone) {
  .shell > .bottom { padding-bottom: calc(12px + min(env(safe-area-inset-bottom, 0px), 34px)); }
}
  .fill-bar { bottom: calc(var(--nav-h) + min(env(safe-area-inset-bottom, 0px), 34px) + 8px); }
  .wl-fab { bottom: calc(var(--nav-h) + min(env(safe-area-inset-bottom, 0px), 34px) + 18px); }
}
}

/* ---- הגדרות: צמצום גוונים. כרטיסים לבנים, גוון הדגשה אחד (חום בהיר), וכיתוב בצבע אחד ---- */
.settings-page, .settings-page .tone-blue, .settings-page .tone-brown { --acc: #c9b384; --acc-bg: #f1e7d1; --acc-ink: #4a3a17; --acc-soft: #e6d6b3; --tint: #ffffff; --tint2: #f8f3e8; --plate: #f1e7d1; }
.settings-page :is(.card, .panel, .tile, .set-item, .class-card, .grade, .searchbar, .notice, .table-wrap, details), .settings-page .tile.tone-brown, .settings-page .card.tone-brown, .settings-page .panel.tone-brown { background: #ffffff; color: #4a3a17; border-color: #efe4cb; }
.settings-page :is(h2, h3, p, strong, label, td, th, summary, li), .settings-page .muted, .settings-page .small { color: #4a3a17; }
.settings-page .muted, .settings-page .small.muted, .settings-page td.muted { color: #7d6a3c; }
.main .settings-page :is(h2, h3, p):not(:where(.card, .panel, .tile, .notice, .dialog, .empty, .gauge, .page-head) *) { background: none; padding-inline: 2px; }
.settings-page .set-item[aria-current='page'] { background: #e6d6b3; border-color: #e6d6b3; box-shadow: none; }
.settings-page .set-item { border: 0; }
.settings-page :is(.set-item, .tile) .bubble, .settings-page .tile .tile-ic, .settings-page .tile.tone-brown .bubble, .settings-page .bubble { background: #f8f3e8; color: #4a3a17; }
.settings-page .set-item[aria-current='page'] .bubble { background: #fdfaf3; }
.settings-page .table-wrap .tbl th, .settings-page .tbl th, .settings-page .group-head { background: #f8f3e8; color: #4a3a17; border-bottom-color: #efe4cb; }
.settings-page .tbl td, .settings-page .tbl tr { background: #ffffff; border-color: #f3ecda; }
.settings-page .btn, .settings-page .btn.brown, .settings-page .btn.ghost, .settings-page .btn.sm { background: #f1e7d1; color: #4a3a17; border-color: #f1e7d1; }
.settings-page .btn:hover { background: #e6d6b3; }
.settings-page .chip, .settings-page .chip.brown, .settings-page .chip.blue, .settings-page .badge { background: #f8f3e8; color: #4a3a17; border-color: #efe4cb; }
.settings-page .input, .settings-page select.input { background: #fdfaf3; border-color: #e6d6b3; color: #4a3a17; }
.settings-page .gauge .arc { stroke: #c9b384; }
.settings-page .gauge .track { stroke: #f1e7d1; }
.settings-page .gauge text { fill: #4a3a17; }
.settings-page .switch input:checked + span { background: #c9b384; }
.settings-page svg.ic { color: inherit; }
/* כניסה ביומטרית במסך הכניסה */
.bio-btn { min-height: 56px; font-size: 1.0625rem; gap: 10px; }
.bio-or { margin: 4px 0 0; text-align: center; font-size: 0.875rem; color: var(--ink-2); background: none !important; }
.wl-push.bio { flex-wrap: wrap; }
.wl-push.bio > .row { width: 100%; justify-content: flex-end; gap: 8px; }
/* אלפונים בחום: גם הכפתורים שבשורות (למשל "עריכה" באלפון העובדים) */
.dir-list .btn, .dir-list .btn.sm, .dir-list .btn.ghost { background: #f1e7d1; color: #4a3a17; border-color: #f1e7d1; }
.dir-list .btn:hover { background: #e6d6b3; }
/* חוגים (מוזיקה וחדר כושר): שם היום והשעות בכחול הרגיל של אבני בזלת, ולא בתכלת הבהיר */
.music .m-day, .m-time { color: #1d3644; }

/* ---- דף הכניסה (ומסכי האימות): הכרטיס כולו בגווני חום. הרקע עם הסמלילים נשאר כחול, כמו בכל האתר ---- */
.auth { --acc: #c9b384; --acc-bg: #f1e7d1; --acc-ink: #4a3a17; --acc-soft: #e6d6b3; color: #4a3a17; }
.auth .auth-card { background: #fdfaf3; border-color: #e6d6b3; box-shadow: 0 12px 40px rgba(74, 58, 23, 0.14); }
.auth .auth-brand, .auth .auth-brand.tone-blue { background: #e6d6b3; color: #4a3a17; border-inline-end-color: #d9c79d; }
.auth .auth-form { background: #fdfaf3; --tint: #fdfaf3; border-top-color: #c9b384; }
.auth :is(h1, h2, p, label, strong, .field, .auth-tag, .small, .muted, .bio-or) { color: #4a3a17; }
.auth .input { background: #ffffff; border-color: #e6d6b3; color: #4a3a17; }
.auth .input:focus, .auth .input:focus-visible { border-color: #c9b384; box-shadow: 0 0 0 3px #f1e7d1; outline: none; }
.auth .btn, .auth .btn.block, .auth .bio-btn { background: #e6d6b3; color: #4a3a17; border-color: #e6d6b3; }
.auth .btn:hover { background: #dccb9f; }
.auth .btn.ghost { background: #f8f3e8; border-color: #e6d6b3; }
.auth .auth-note, .auth .notice { background: #f1e7d1; color: #4a3a17; border-color: #e6d6b3; }
.auth a { color: #7d6a3c; }
.shared-pw { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; background: #f8f3e8; border-radius: 14px; padding: 14px; user-select: all; }

/* הודעה חדשה ב"מי שמדבר": נקודה כחולה על הסמליל (בלי מספר), בנייד ובמחשב */
.nav-ic { position: relative; }
.nav-badge, .bottom .nav-badge, .side .nav-badge {
  position: absolute; top: -3px; inset-inline-end: -3px; margin: 0; min-width: 0; width: 12px; height: 12px; padding: 0;
  border-radius: 50%; background: #2f7fb3; border: 2px solid #ffffff; font-size: 0; color: transparent; box-sizing: border-box;
}
.bottom .nav-badge { top: 3px; inset-inline-end: calc(50% - 17px); }

/* בחירת חברי קבוצה לפי מחלקות */
.pick-group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.pick-group + .pick-group { margin-top: 10px; }
.pick-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: #f0e4c9; color: #4a3a12; grid-column: 1 / -1; position: sticky; top: 0; z-index: 1; }

/* תרשים החדרים: שם המתחם לפני מספר החדר ("ענווה 201") */
.plan-num { white-space: nowrap; }
.plan-cx { font-weight: 600; }
@media (max-width: 900px) { .plan-num { font-size: 0.8125rem; } }
