/* אבני בזלת: עיצוב. כחול וחום אינם מתערבבים; מלבן צבוע הוא רקע בהיר עם כיתוב כהה מאותו גוון. */
@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 {
  /* גווני הלוגו: #a0783d, #a0783d, #9c753c, #6e4523 */
  --blue: #a0783d;
  --blue-light: #a0783d;
  --blue-mid: #9c753c;
  --blue-bg: #f7f0dd;
  --blue-ink: #6e4523;
  --brown: #a0783d;
  --brown-bg: #faf5e9;
  --brown-ink: #694121;
  --acc: var(--blue);
  --acc-bg: var(--blue-bg);
  --acc-ink: var(--blue-ink);
  --acc-soft: #e5d4af;
  --bg: #fbf6ec;
  --surface: #ffffff;
  --ink: #59381c;
  --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: #f4e9ce; }
.tone-blue { --acc: var(--blue); --acc-bg: var(--blue-bg); --acc-ink: var(--blue-ink); --acc-soft: #e5d4af; }

* { 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: #f4e9ce; }
.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(110, 69, 35, 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(89, 56, 28, 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: #f7f0dd; color: #6e4523; --stripe: #a0783d; }
.g10 { background: #faf5e9; color: #694121; --stripe: #a0783d; }
.g11 { background: #e3d2ac; color: #633e1f; --stripe: #9c753c; }
.g12 { background: #f4e9ce; color: #59381c; --stripe: #a0783d; }
.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(110, 69, 35, 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(110, 69, 35, 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(89, 56, 28, 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(89, 56, 28, 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: #e0f2ea; --plate: #c4e6d7; }
.tone-blue { --tint: #f9f4e6; --plate: #f4ead0; }
.tone-brown { --tint: #fcf8f0; --plate: #f7efdb; }
.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: #f9f4e6; }
.topbar, .bottom { background: #f9f4e6; }
.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: #fcf8f0; }
.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: #e3d2ac; }
.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: #ebf7f1; --tint: #ffffff; --tint2: #bfe4d4; --plate: #bfe4d4; --acc-soft: #acdcc7; }
.tone-blue { --tint: #ffffff; --tint2: #f4e9ce; --plate: #f4e9ce; --acc-soft: #e3d2ac; }
.tone-brown, .btn.brown { --tint: #fcf9f1; --tint2: #f6eed8; --plate: #f6eed8; --acc-soft: #e8d9b5; }
/* רצועות ואריחים שיושבים על הרקע הכללי: גוון עמוק, כדי שייבדלו ממנו */
.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: #f8f1df; border-color: #e3d2ac; }
.fill-bar { background: var(--tint2); border-color: var(--acc-soft); }
.dash .card.ring-wrap { background: var(--tint2); }
.dash .class-card:not(.pending) { background: #f8f1df; }
.dash .panel.tone-blue { background: #f9f3e4; }
.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: #a78148; }
.mark-btn.absent { color: var(--brown-ink); border-color: #c3a778; }
.mark-btn.present[aria-pressed='true'] { background: #e3d2ac; border-color: var(--blue-mid); border-width: 2px; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'] { background: #f4e9ce; border-color: #a0783d; 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: #a0783d; 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: #fdfaf5; }
.side { border-inline-end-color: #f6eed9; }
.brand { border-bottom-color: #f6eed9; }
.side .user { border-top-color: #f6eed9; }
.nav-link:hover { background: #f9f3e4; }
.nav-link[aria-current='page'] { background: var(--blue-bg); }

/* שיבוץ: שני גוונים בלבד לדיירים (כחול לשכבות ט ו-יא, חום לשכבות י ו-יב). הכיתה כתובה ליד כל שם. */
.g9, .g11 { background: #f5ecd5; color: #6e4523; }
.g10, .g12 { background: #f8f1df; color: #694121; }
.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: #f6eed8; 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(17, 22, 20, 0.13); }
.bubble { align-self: flex-start; max-width: min(78%, 520px); background: #ffffff; color: #59381c; border-radius: 10px; border-start-start-radius: 0; padding: 6px 9px 4px; box-shadow: 0 1px 0.5px rgba(89, 56, 28, 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(17, 22, 20, 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: #171e1b; }
.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; }

/* ================= חוגים: עיצוב ייעודי =================
   כחול ראשי #5d7b6e, בהיר #bee4d3, כהה #33433c. חום #a0783d, בהיר #f5ecd4, כהה #59381c. צהוב #ffda44 להתראות בלבד.
   באלמנט אחד רק גווני כחול או רק גווני חום. מלבנים בלי שוליים, עם פינות מעוגלות. */
body.music-bg { background: #b7e1cf url('/assets/pattern-music.svg') repeat; background-size: 520px; }
.music { --m-blue: #a0783d; --m-blue-bg: #f4e9ce; --m-blue-ink: #5a381c; --m-brown: #a0783d; --m-brown-bg: #f5ecd4; --m-brown-ink: #59381c; --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: #faf4e7; }
.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: #a0783d; }
.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: #faf5e8; }
.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: #171e1b; }
.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: #171e1b; 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(17, 22, 20, 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: #171e1b; border-radius: 12px; padding: 6px 9px 8px 7px; box-shadow: 0 1px 0.5px rgba(17, 22, 20, 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: #171e1b; }
.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(23, 30, 27, 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(17, 22, 20, 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: #171e1b; }
.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: #171e1b; 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: #171e1b; background: none !important; padding: 0 !important; }
.wa-form-back { width: 40px; height: 44px; border: 0; background: none; padding: 0; color: #171e1b; 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: #171e1b; 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 #171e1b; outline-offset: 2px; }
.wa-end { margin: 0 0 12px; border: 1px solid #8696a0; border-radius: 10px; padding: 10px 12px; font: inherit; color: #171e1b; 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(17, 22, 20, 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(78, 59, 30, 0.18); }
.music .m-alert .m-btn, .music .m-alert summary::after { background: #faf4e7; 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: #171e1b; }
.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: #171e1b; 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(17, 22, 20, 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: #a0783d; margin-bottom: -6px; }
.music .m-note { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: #a0783d; 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 #e3d2ac; }
.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: #f5ecd5; 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 #e3d2ac; 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: #a0783d; 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 #8c572c; text-decoration: none; color: var(--m-blue-ink); min-height: 60px; }
.m-flag.dark { border-inline-start-color: #5c391d; }
.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 #e3d2ac; 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 #e3d2ac; }
.music .tbl td { border-color: #e3d2ac; 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: #f5ecd5; 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: #b7e1cf; background-image: linear-gradient(rgba(183, 225, 207, 0.5), rgba(183, 225, 207, 0.5)), url('/assets/pattern-music.svg'); background-size: auto, 520px; background-repeat: repeat; }
.music .m-note, .m-daylabel { color: #6e4523; }
/* חדר כושר: אותו מבנה, בלי החמשה והתווים */
.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(17, 22, 20, 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(17, 22, 20, 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(17, 22, 20, 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: #171e1b; 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: #171e1b; 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: #171e1b; }
.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: #171e1b; }
.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(17, 22, 20, 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(17, 22, 20, 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: #fbf7ee; }
.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: #171e1b; 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(17, 22, 20, 0.26); }
.wa-menu[hidden], .wa-callbar[hidden] { display: none; }
.wa-pop-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: #171e1b; cursor: pointer; text-align: start; }
.wa-pop-item:hover { background: #f5f6f6; }
.wa-pop-item svg.ic { width: 22px; height: 22px; color: #54656f; }
.wa-pop-line { height: 1px; background: #e9edef; margin: 4px 0; }
.wa-callbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #e7fce3; color: #171e1b; 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: #59381c; 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: #59381c; 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(89, 56, 28, 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: #59381c; border-radius: 24px 24px 0 0; }
.call-btn { width: 58px; height: 58px; border: 0; border-radius: 50%; background: #59381c; 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: #59381c; }
.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: #171e1b; border-radius: 10px; overflow: hidden; background: rgba(17, 22, 20, 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: #171e1b; }
.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(23, 30, 27, 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(23, 30, 27, 0.1); }
@media (max-width: 420px) { .wa-sheet { grid-template-columns: repeat(4, 1fr); } }

/* מי שמדבר: מפה, כרטיס מיקום ומסך "שליחת מיקום" */
.wa-map { position: relative; overflow: hidden; height: 150px; background: #faf6eb; }
.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: #faf6eb; }
.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: #171e1b; box-shadow: 0 1px 4px rgba(17, 22, 20, 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: #171e1b; 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):
   רקע תכלת עם סמלילים לבנים, כותרת בגוש כחול מעוגל, כרטיסים לבנים בלי שוליים,
   לשוניות ככדורים, וכפתורים מעוגלים. כחול #5d7b6e, חום #a0783d.
   ===================================================================== */
:root {
  --blue: #a0783d; --blue-bg: #f4e9ce; --blue-ink: #5a381c; --blue-mid: #a0783d;
  --brown: #a0783d; --brown-bg: #f5ecd4; --brown-ink: #59381c;
  --acc-soft: #acdcc7; --bg: #b7e1cf; --line: #acdcc7; --ink: #24302b; --ink-2: #486157;
  --tint: #ffffff; --plate: #ffffff; --radius: 20px;
}
.tone-blue { --tint: #ffffff; --plate: #ffffff; --acc-soft: #e3d2ac; }
.tone-brown { --tint: #fcf9f1; --plate: #f5ecd4; --acc-soft: #eadcb8; }
body { font-size: 1rem; background-color: #b7e1cf; background-image: linear-gradient(rgba(183, 225, 207, 0.55), rgba(183, 225, 207, 0.55)), url('/assets/pattern-light.svg'); background-size: auto, 480px; background-repeat: repeat; }
/* כותרת המסך: גוש כחול, כיתוב לבן */
.main .page-head { background: #a0783d; 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: #5a381c; border: 0; }
.main .page-head .btn.brown { background: #f5ecd4; color: #59381c; }
/* כיתוב שיושב ישירות על הרקע: בלי לוחית, בכחול כהה */
.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: #5a381c; }
/* כרטיסים ומשטחים */
.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: #f4e9ce; }
.tile { border: 0; border-radius: 18px; }
.notice { border: 0; border-radius: 18px; }
.notice.blue { background: #ffffff; color: #5a381c; }
.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: #5a381c; font-weight: 600; box-shadow: none; }
.tabs button[aria-selected='true'] { background: #a0783d; color: #ffffff; box-shadow: none; }
/* כפתורים */
.btn { border: 0; border-radius: 14px; background: #a0783d; color: #ffffff; font-weight: 600; }
.btn:hover { background: #8e592d; }
.btn:disabled { background: #f4e9ce; color: #6b8290; }
.btn.ghost { background: #f5ecd5; color: #5a381c; border: 0; }
.btn.ghost:hover { background: #e6d7b2; }
.btn.brown { background: #f5ecd4; color: #59381c; }
.btn.brown:hover { background: #f0e4c3; }
.btn.sm { border-radius: 12px; }
.icon-btn { border-radius: 14px; }
.input, select.input, textarea.input { border-radius: 14px; border-color: #e3d2ac; }
.chip { font-weight: 600; }
.toasts .toast { border-radius: 14px; }
/* סרגל הצד (מחשב) */
.side { background: #fdfaf5; }
.side .nav-link { border-radius: 14px; }
.side .nav-link[aria-current='page'] { background: #a0783d; 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: #f9f3e4; }
.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: #59381c; padding: 8px 0; }
.gsearch-field:focus-within { outline: 2px solid #a0783d; }
.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(90, 56, 28, 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: #59381c; }
.gsearch-item:hover, .gsearch-item.active { background: #f4e9ce; }
.gsearch-item .grow { display: flex; flex-direction: column; min-width: 0; }
.gsearch-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #f4e9ce; color: #a0783d; 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: #59381c; background: #f5ecd4; 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: #f9f4e7; }
  .bottom { background: #ffffff; border-top: 1px solid #f5ebd3; 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: #805029; 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: #59381c; font-weight: 700; }
  .bottom a[aria-current='page'] .nav-ic { background: #e3d2ac; color: #5a381c; }
  .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 #f5ebd3; background: none; font: inherit; font-size: 1.0625rem; color: #59381c; text-decoration: none; text-align: start; cursor: pointer; }
.more-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #f4e9ce; color: #a0783d; 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: #24302b; --line: #6b8290; }
html.hc .muted, html.hc .small.muted, html.hc .m-sub, html.hc .wl-preview, html.hc .wa-meta { color: #24302b !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: #f5ecd5; color: #5a381c; font: inherit; font-weight: 600; cursor: pointer; }
.seg.on { background: #a0783d; 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 #5a381c; 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(160, 120, 61, 0.5); } 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(160, 120, 61, 0); } }

/* ---------- מסך פתיחה ---------- */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #33433c; }
.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: #5d7b6e; 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: #a0783d; }
.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: #fcf9f1; }
.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: #faf4e7; }

/* ---------- שיבוץ פנימייה: תרשים המתחמים ---------- */
.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: #5a381c; 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 #5a381c; border-radius: 16px; overflow: hidden; background: #5a381c; }
.plan-row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 3px; }
.plan-hall { margin: 3px 0; padding: 6px 12px; background: #f9f3e4; 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: #5a381c; font: inherit; cursor: pointer; transition: background 0.15s ease; }
.plan-room:hover { background: #f9f3e4; }
.plan-room.full { background: #f4e9ce; }
.plan-room.vacant { background: #fcf9f1; }
.plan-room.hit { background: #f5ecd4; outline: 3px solid #a0783d; 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 #a0783d; background: transparent; }
.bed.g9, .bed.g11 { background: #a0783d; border-color: #a0783d; }
.bed.g10, .bed.g12 { background: #a0783d; border-color: #a0783d; }
.bed.counselor { background: #5a381c; border-color: #5a381c; }
.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: #a0783d; border-color: #a0783d; color: #ffffff; }
.mark-btn.absent[aria-pressed='true'] { background: #a0783d; border-color: #a0783d; color: #59381c; }
.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(90, 56, 28, 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: #9f773d; 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: #5a381c; font-weight: 700; }
  .bottom a[aria-current='page'] .nav-ic { background: #e8d9b5; color: #85532a; animation: nav-pill 0.26s ease; }
  /* הסמליל הנבחר: קו מודגש ומילוי עדין, באותה צורה */
  .bottom a[aria-current='page'] .nav-ic svg.ic { stroke-width: 2; fill: rgba(160, 120, 61, 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 #c6ab7c; background: #c6ab7c; border-radius: 16px; }
.plan-row { gap: 2px; }
.plan-hall { margin: 2px 0; background: #fbf7ec; 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 #a0783d; }
.bed-toggle { margin-top: 6px; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: #a0783d; cursor: pointer; text-align: start; }
.bed-toggle.on { color: #a0783d; }

/* סמליל "מי שמדבר" (מלא) בסרגלים; כפתור התפריט בסרגל העליון */
.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: #f9f4e7; color: #5a381c; 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: #85532a !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: #f8f0de; 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: #59381c; font-weight: 600; }
  .bottom a[aria-current='page'] .nav-ic { background: #e3d2ac; color: #59381c; animation: nav-pill 0.22s ease; }
  .bottom a[aria-current='page'] .nav-ic svg.ic.solid { fill: #59381c !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: #f8f0de; }
  .topbar .gsearch-field { background: #ffffff; }
  .topbar-menu { background: #ffffff; border-radius: 50%; }
}
/* סרגל הצד (מחשב): אותו סגנון, הפריט הנבחר ככדור רך עם סמליל מלא */
.side { background: #f9f3e4; 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: #f4e9ce; }
.side .nav-link[aria-current='page'] { background: #e3d2ac; color: #59381c; font-weight: 600; }
.side .nav-link[aria-current='page'] svg.ic.solid { fill: #59381c !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: #ebddba; }
/* סמליל "מי שמדבר" ממלא את כל המסגרת שלו, ולכן הוא מוקטן מעט כדי להיראות בגודל של שאר הסמלילים */
.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: #f9f3e4; border: 1.5px solid transparent; color: #9f773d; 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: #e3d2ac; border-color: #e3d2ac; color: #59381c; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'], .music .mark-btn.absent[aria-pressed='true'] { background: #ffffff; border-color: #5b7482; color: #59381c; font-weight: 700; }
.mark-btn[aria-pressed='true'] svg.ic { opacity: 1; }
.fill-row .name, .fill-row { color: #59381c; }
.fill-row { border-color: #f5ebd3; }
/* הכותרת, "סמן את כולם" וסרגל השמירה: אותו גוון, בלי כחול כהה ובלי חום */
.main:has(.fill-list) .page-head { background: #e3d2ac; color: #59381c; }
.main:has(.fill-list) .page-head h1, .main:has(.fill-list) .page-head p, .main:has(.fill-list) .page-head .muted { color: #59381c !important; }
.main:has(.fill-list) .page-head .icon-btn { background: #ffffff; color: #59381c; }
.main:has(.fill-list) .btn.block, .music:has(.fill-list) .btn.block { background: #ffffff; color: #59381c; }
.fill-bar .btn, .music .fill-bar .btn { background: #e3d2ac; color: #59381c; }
.fill-bar .btn:hover { background: #e3d2ac; }
.fill-bar .btn:disabled, .music .fill-bar .btn:disabled { background: #f9f3e4; color: #8a9aa5; }
.fill-bar .btn.brown, .fill-bar .btn.ghost { background: #ffffff; color: #59381c; box-shadow: inset 0 0 0 1.5px #e3d2ac; }
.main:has(.fill-list) .chip, .main:has(.fill-list) .chip.brown { background: #f9f3e4; color: #9f773d; }
.main:has(.fill-list) .notice { background: #ffffff; color: #59381c; }
.music:has(.fill-list) .music-head { background: #e3d2ac; }
.music:has(.fill-list) .music-head h1, .music:has(.fill-list) .music-head p { color: #59381c !important; }
.music:has(.fill-list) .music-staff { opacity: 0.5; filter: brightness(0.6); }

/* =====================================================================
   פלטה אחת לכל האפליקציה (חוץ מ"מי שמדבר"): לבן, כחול וחום, בגוונים עדינים.
   אין כחול כהה מאוד ואין ניגודים חדים; המשחק הוא בין בהיר יותר לעמוק יותר בתוך כל משפחה.
     כחול: #def1e9  #bee4d3  #acdcc7  #80af9b  #5e7e70   כיתוב #2c3b35
     חום:  #fbf7ee  #f7f0dd  #f4e9ce  #af8c56  #a0783d   כיתוב #59381c
   הכחול הוא הבסיס; החום ניתן לרכיבים בודדים (אריח, כרטיס "טרם מולא", "לא נוכח", כותרת חוג).
   ===================================================================== */
:root, .main, .music {
  --blue: #a0783d; --blue-bg: #f4e9ce; --blue-ink: #59381c; --blue-mid: #a0783d;
  --brown: #af8c56; --brown-bg: #f7f0dd; --brown-ink: #59381c;
  --m-blue: #a0783d; --m-blue-bg: #f4e9ce; --m-blue-ink: #59381c; --m-brown: #af8c56; --m-brown-bg: #f7f0dd; --m-brown-ink: #59381c;
  --acc-soft: #afddc9; --line: #afddc9; --ink: #2c3b35; --ink-2: #577468;
}
.tone-blue { --tint: #ffffff; --plate: #f9f3e4; --acc-soft: #e6d7b2; }
.tone-brown { --tint: #fbf7ee; --plate: #f7f0dd; --acc-soft: #f4e9ce; }
body, body.music-bg { background-color: #c4e6d7; }

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

/* כפתורים */
.btn, .music .btn, .m-btn.solid, .music .fill-bar .btn { background: #e3d2ac; color: #59381c; }
.btn:hover { background: #e3d2ac; }
.btn:disabled, .music .fill-bar .btn:disabled { background: #f9f3e4; color: #8a9aa5; }
.btn.ghost, .m-btn, .m-pill, .music .btn.block { background: #f9f3e4; color: #59381c; }
.btn.brown { background: #f7f0dd; color: #59381c; }
.btn.brown:hover { background: #f4e9ce; }
.fill-bar .btn.brown { background: #fbf7ee; color: #59381c; box-shadow: inset 0 0 0 1.5px #f4e9ce; }
.m-btn.light { background: #ffffff; }

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

/* משטחים: לבן לכחול, קרם לחום */
.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: #fbf7ee; }
.tile.tone-brown, .class-card.pending, .m-club-head { background: #f7f0dd; color: #59381c; }
.tile .bubble, .tile .tile-ic { background: #f4e9ce; color: #59381c; }
.tile.tone-brown .bubble, .tile.tone-brown .tile-ic, .m-club-head .m-icon { background: #fbf7ee; color: #59381c; }
.chip { background: #f4e9ce; color: #59381c; }
.chip.brown, .m-tag.brown, .gsearch-kind { background: #f7f0dd; color: #59381c; }
.chip.plain { background: #f9f3e4; color: #9f773d; }
.group-head { background: #f4e9ce; color: #59381c; }
.tone-brown .group-head { background: #f7f0dd; color: #59381c; }
.notice { background: #f7f0dd; color: #59381c; }
.notice.blue { background: #ffffff; color: #59381c; }
.m-icon { background: #f7f0dd; color: #59381c; }
.m-next { background: #e3d2ac; color: #59381c; }
.m-next-label, .m-next-sub { opacity: 1; color: #9f773d; }
.m-student { background: #f4e9ce; color: #59381c; }
.m-student.selected { background: #a0783d; color: #59381c; }
.m-time, .m-link, .m-add, .music .m-day, .music button.link { color: #a0783d; }
.m-flag { border-inline-start-color: #af8c56; }
.m-flag.dark { border-inline-start-color: #a0783d; }
.m-bar { background: #f7f0dd; }
.m-bar span { background: #a0783d; }
.music .m-alert { background: #f7f0dd; color: #59381c; }
.list-row .icon-btn.call, .list-row .icon-btn.wa { color: #a0783d; }
.list-row .icon-btn.mail { color: #a0783d; }
.gsearch-icon, .more-ic, .wl-push-icon { background: #f4e9ce; color: #59381c; }
.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: #f9f3e4; border: 1.5px solid transparent; color: #9f773d; border-radius: 14px; font-weight: 500; }
.mark-btn.absent, .music .mark-btn.absent { background: #fbf7ee; color: #825129; }
.mark-btn.present[aria-pressed='true'], .music .mark-btn.present[aria-pressed='true'] { background: #e3d2ac; border-color: #e3d2ac; color: #59381c; font-weight: 700; }
.mark-btn.absent[aria-pressed='true'], .music .mark-btn.absent[aria-pressed='true'] { background: #f4e9ce; border-color: #f4e9ce; color: #59381c; font-weight: 700; }
.main:has(.fill-list) .btn.block, .music:has(.fill-list) .btn.block { background: #ffffff; color: #59381c; }
.music:has(.fill-list) .music-staff { opacity: 0.28; filter: brightness(0.45); }

/* שיבוץ: כחול וחום באותה עוצמה */
.bed.g9, .bed.g11 { background: #a0783d; border-color: #a0783d; }
.bed.g10, .bed.g12 { background: #af8c56; border-color: #af8c56; }
.bed.counselor { background: #a0783d; border-color: #a0783d; }
.plan-room.full { background: #f9f3e4; }
.plan-room.vacant { background: #fbf7ee; }
.plan-room.hit { background: #f7f0dd; outline-color: #af8c56; }
.person.g9, .person.g11 { background: #f4e9ce; color: #59381c; border-color: #e3d2ac; }
.person.g10, .person.g12 { background: #f7f0dd; color: #59381c; border-color: #f4e9ce; }
.bed-toggle { color: #a0783d; }
.bed-toggle.on { color: #a0783d; }
.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: #e3d2ac !important; color: #59381c !important; }
.main .infographic .tabs button { background: #f9f3e4; }
.wl-push-icon, div.wl-push .wl-push-icon { background: #f4e9ce; color: #a0783d; }

/* =====================================================================
   יותר חום, ובלי ערבוב: רכיב חום הוא חום כולו (רקע, כפתורים, תגים וסימונים מאותה משפחה).
   ===================================================================== */
/* כותרת "חוגי מוזיקה" / "חדר כושר" וכותרת תעודת הזהות: חום */
.music .music-head { background: #f4e9ce; color: #59381c; }
.music .music-head h1, .music .music-head p { color: #59381c !important; }
.idcard-band, .idcard-band.tone-blue { background: #f4e9ce; color: #59381c; border-bottom-color: #af8c56; --acc: #af8c56; --acc-bg: #f4e9ce; --acc-ink: #59381c; }
.idcard-band .bubble { background: #fbf7ee; color: #59381c; }
.idcard-band strong, .idcard-band span { color: #59381c; }
/* התווים שבחמשה: בחום עמוק וברור, באותה משפחה של הכותרת */
.music-staff, .music:has(.fill-list) .music-staff { background: #916d37; -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: #f4e9ce !important; color: #59381c !important; }
/* בתוך רכיב חום הכול חום: כפתורים, תגים, סמלילים ושדות */
.tone-brown .btn, .tone-brown .btn.ghost, .tone-brown .icon-btn { background: #f7f0dd; color: #59381c; border-color: #f4e9ce; }
.tone-brown .btn:hover, .tone-brown .icon-btn:hover { background: #f4e9ce; }
.tone-brown .chip, .tone-brown .chip.plain { background: #f7f0dd; color: #59381c; }
.tone-brown h2, .tone-brown h3, .tone-brown strong, .tone-brown .muted, .tone-brown .small { color: #59381c; }
.tone-brown .muted, .tone-brown .small.muted, .tone-brown .legend { color: #825129; }
.tone-brown .input { border-color: #f4e9ce; }
/* יומן: כולו בגווני חום. יום עם דיווח בהיר, היום הנבחר במסגרת עמוקה; בלוח של תלמיד: נוכח בהיר, לא נוכח עמוק */
.cal .dow { color: #825129; }
.cal .day { color: #59381c; }
.cal .day.has, .cal .day.present { background: #f7f0dd; color: #59381c; }
.cal .day.absent { background: #af8c56; color: #59381c; }
.cal .day.none { color: #a0783d; }
.cal .day.selected { border: 2px solid #a0783d; }
.cal button.day:hover { border-color: #af8c56; }
.cal .day .mark, .cal .day svg.ic { color: #916d37; }
.main .card:has(.cal), .main .panel:has(.cal), .dash .card:has(.cal) { background: #fbf7ee; --acc: #af8c56; --acc-bg: #f7f0dd; --acc-ink: #59381c; }
.main .card:has(.cal) .btn, .main .card:has(.cal) .icon-btn, .main .panel:has(.cal) .btn, .main .panel:has(.cal) .icon-btn { background: #f7f0dd; color: #59381c; border-color: #f4e9ce; }
.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: #59381c; }
.main .card:has(.cal) .legend, .main .panel:has(.cal) .legend, .main .card:has(.cal) .muted, .main .panel:has(.cal) .muted { color: #825129; }
.main .card:has(.cal) .chip, .main .panel:has(.cal) .chip { background: #f7f0dd; color: #59381c; }
.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: #f4e9ce; color: #59381c; }
.main .home > .page-head h1, .main .home > .page-head p, .main .home > .page-head .muted { color: #59381c !important; }
/* בחוגים: שם תלמיד בלי קו תחתון */
.music button.link, .music a.link, .music .tbl button.link { text-decoration: none; }
/* תעודת זהות: כולה בגווני חום */
.idcard { background: #fdfbf5; color: #59381c; --acc: #af8c56; --acc-bg: #f7f0dd; --acc-ink: #59381c; --acc-soft: #f4e9ce; --line: #f4e9ce; --ink: #59381c; --ink-2: #825129; }
.idcard-body, .idcard-info { background: #fdfbf5; }
.idcard h1, .idcard h2, .idcard h3, .idcard strong, .idcard .idcard-name, .idcard dd, .idcard .fact strong { color: #59381c; }
.idcard .muted, .idcard .small, .idcard dt, .idcard .fact span { color: #916d37; }
.idcard .avatar, .idcard .idcard-photo .avatar { background: #f7f0dd; color: #59381c; }
.idcard .chip, .idcard .chip.brown { background: #f7f0dd; color: #59381c; }
.idcard .chip:first-child { background: #f4e9ce; }
.idcard .btn, .idcard .btn.ghost, .idcard .btn.sm { background: #f7f0dd; color: #59381c; }
.idcard .icon-btn, .idcard .icon-btn.call, .idcard .icon-btn.wa, .idcard .icon-btn.mail { background: #fdfbf5; color: #916d37; border-color: #f4e9ce; }
.idcard-info .facts { border-top-color: #f4e9ce; }
.idcard-foot, .idcard-foot.tone-brown { background: #f7f0dd; color: #59381c; }
/* סמליל לוח עם התאריך של היום */
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: #e3d2ac; }
.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: #f4e9ce; color: #59381c; }
.main .rooms-page > .page-head h1, .main .rooms-page > .page-head p { color: #59381c !important; }
.main .rooms-page > .page-head .btn, .main .rooms-page > .page-head .icon-btn, .main .rooms-page > .page-head .input { background: #fdfbf5; color: #59381c; border-color: #f4e9ce; }
.main .rooms-page > .page-head .chip { background: #f7f0dd; color: #59381c; }
/* אלפון תלמידים: הרשימה כולה בגווני חום (כותרת האות או הכיתה, השורות, הסמלילים) */
.dir-list .card, .dir-list .card.tone-blue, .dir-list .card.tone-brown { background: #fdfbf5; --acc: #af8c56; --acc-bg: #f7f0dd; --acc-ink: #59381c; --acc-soft: #f4e9ce; }
.dir-list .group-head { background: #f7f0dd; color: #59381c; }
.dir-list .group-head h2, .dir-list .group-head .small, .dir-list .group-head span { color: #59381c; }
.dir-list .group-head h2.letter { background: #fdfbf5; color: #59381c; }
.dir-list .list-row { border-top-color: #f6eed9; color: #59381c; }
.dir-list .list-row a.name, .dir-list .list-row strong { color: #59381c; }
.dir-list .list-row .small, .dir-list .list-row .muted { color: #916d37; }
.dir-list .avatar { background: #f7f0dd; color: #59381c; }
.dir-list .chip { background: #f7f0dd; color: #59381c; }
.dir-list .list-row .icon-btn.call, .dir-list .list-row .icon-btn.wa { color: #a0783d; }
.dir-list .list-row .icon-btn:hover { background: #f7f0dd; }
/* כל הכותרות העליונות של המסכים (הגדרות, נוכחות, תלמידים ועוד) בגווני חום */
.main .page-head, .main:has(.fill-list) .page-head, .music .music-head { background: #f4e9ce; color: #59381c; }
.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: #59381c !important; }
.main .page-head .btn, .main .page-head .icon-btn, .main .page-head .input,
.main:has(.fill-list) .page-head .icon-btn { background: #fdfbf5; color: #59381c; border-color: #f4e9ce; }
.main .page-head .btn.brown { background: #f7f0dd; color: #59381c; }
.main .page-head .chip { background: #f7f0dd; color: #59381c; }
/* שיבוץ פנימייה: בכותרת מתחם (רקע כחול) כל הכיתוב בכחול, בלי חום על כחול */
.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: #59381c !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(89, 56, 28, 0.38); display: flex; justify-content: flex-start; }
.drawer { width: min(84vw, 320px); height: 100%; background: #fdfbf5; display: flex; flex-direction: column; border-radius: 24px 0 0 24px; box-shadow: -8px 0 28px rgba(89, 56, 28, 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: #f4e9ce; color: #59381c; }
.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: #fdfbf5; color: #59381c; 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: #59381c; text-decoration: none; text-align: start; cursor: pointer; }
.drawer-row:hover { background: #f7f0dd; }
.drawer-row[aria-current='page'] { background: #f4e9ce; font-weight: 700; }
.drawer-ic { width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #a0783d; }
.drawer-ic svg.ic { width: 24px; height: 24px; }
.drawer-ic svg.ic.solid { fill: currentColor !important; stroke: none; }
.drawer-line { height: 1px; background: #f4e9ce; margin: 8px 12px; }
.wl-title { gap: 6px; align-items: center; }
/* רקע השיחה: ציורים קטנים וצפופים */
.chat-room { background-size: 300px; }
/* כותרת "מי שמדבר" ברשימת השיחות: בגווני חום כמו שאר הכותרות, לא בירוק */
.wl-head { background: #f4e9ce; margin: -8px 0 8px; padding: 14px 18px; border-radius: 18px 18px 0 0; }
.main .wl-head h1 { color: #59381c; }
.wl-head .wa-tool { color: #59381c; }
@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: #171e1b !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(17, 22, 20, 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(17, 22, 20, 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: #171e1b; }
.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: #fdfbf5; border-radius: 22px; padding: 14px 12px 12px; color: #59381c; }
.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: #59381c; background: none !important; padding: 0 !important; order: -1; }
.gcal-nav { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f7f0dd; color: #59381c; 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: #f4e9ce; color: #59381c; 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: #a0783d; padding: 6px 0; }
.gcal-cell { border: 0; background: none; font: inherit; color: #59381c; 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: #fbf7ee; }
.gcal-num { font-size: 1.0625rem; font-weight: 600; line-height: 1.15; }
.gcal-heb { font-size: 0.8125rem; color: #916d37; 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: #af8c56; }
.dot.yeshiva { background: #7f4f28; }
.dot.free { background: #fdfbf5; box-shadow: inset 0 0 0 1.5px #a0783d; }
.dot.trip { background: #a0783d; border-radius: 2px; }
.dot.workshop { background: #af8c56; border-radius: 2px; }
.dot.event { background: #a0783d; }
.gcal-cell.sat .gcal-num { color: #7f4f28; }
.gcal-cell.today .gcal-num { background: #a0783d; color: #ffffff; border-radius: 999px; min-width: 28px; padding: 2px 6px; }
.gcal-cell.sel { background: #f7f0dd; }
.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: #fbf7ee; color: #59381c; font: inherit; font-size: 1rem; padding: 6px 16px; min-height: 40px; cursor: pointer; }
.gcal-chip[aria-current='true'] { background: #f4e9ce; font-weight: 700; }
.gcal-year { flex: none; color: #916d37; 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: #916d37; }
.gcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gcal-day { background: #fdfbf5; border-radius: 22px; padding: 16px; color: #59381c; 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: #916d37; }
.gcal-add { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: #f4e9ce; color: #59381c; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gcal-shabbat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f7f0dd; 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: #fdfbf5; }
.gcal-tag.yeshiva { background: #7f4f28; color: #ffffff; }
.gcal-tag.none { font-weight: 400; color: #916d37; }
.gcal-seg { display: inline-flex; background: #fdfbf5; border-radius: 999px; padding: 3px; }
.gcal-seg button { border: 0; background: none; font: inherit; color: #59381c; border-radius: 999px; padding: 6px 14px; min-height: 38px; cursor: pointer; }
.gcal-seg button[aria-pressed='true'] { background: #7f4f28; color: #ffffff; font-weight: 600; }
.gcal-none { margin: 0; color: #916d37; background: none !important; padding: 0 !important; }
.gcal-event, .gcal-pill { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 14px; background: #f4e9ce; color: #59381c; text-align: start; }
.gcal-event .small, .gcal-pill span { font-size: 0.875rem; opacity: 0.85; }
.gcal-event.trip, .gcal-pill.trip { background: #a0783d; color: #ffffff; }
.gcal-event.workshop, .gcal-pill.workshop { background: #af8c56; color: #59381c; }
.gcal-pill.shabbat { background: #f7f0dd; }
.gcal-pill.shabbat.yeshiva { background: #7f4f28; color: #ffffff; }
.gcal-pill.shabbat.free { background: #fdfbf5; box-shadow: inset 0 0 0 1.5px #af8c56; }
.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: #59381c; 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: #59381c; line-height: 1.15; }
.gcal-when b { font-size: 1.125rem; }
.gcal-when small { font-size: 0.75rem; color: #916d37; }
.cal-sum { margin: 0; padding-inline-start: 20px; }
.cal-preview { max-height: 220px; overflow-y: auto; background: #fbf7ee; 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: #af8c56; }
.dot.free { background: #fdfbf5; box-shadow: inset 0 0 0 1.5px #af8c56; }
.dot.trip { background: #af8c56; border-radius: 2px; }
.dot.workshop { background: #f4e9ce; border-radius: 2px; box-shadow: inset 0 0 0 1px #af8c56; }
.dot.event { background: #f4e9ce; box-shadow: inset 0 0 0 1px #af8c56; }
.gcal-cell.sat .gcal-num { color: #59381c; }
.gcal-cell.today .gcal-num { background: #f4e9ce; color: #59381c; box-shadow: inset 0 0 0 1.5px #af8c56; }
.gcal-week span { color: #916d37; }
.gcal-tag.yeshiva { background: #f4e9ce; color: #59381c; }
.gcal-seg button[aria-pressed='true'] { background: #f4e9ce; color: #59381c; }
.gcal-event, .gcal-pill, .gcal-event.trip, .gcal-pill.trip, .gcal-event.workshop, .gcal-pill.workshop { color: #59381c; }
.gcal-event.trip, .gcal-pill.trip { background: #f4e9ce; }
.gcal-event.workshop, .gcal-pill.workshop { background: #f7f0dd; }
.gcal-event.event, .gcal-pill.event { background: #fbf7ee; box-shadow: inset 0 0 0 1.5px #f4e9ce; }
.gcal-pill.shabbat.yeshiva { background: #f4e9ce; color: #59381c; box-shadow: inset 0 0 0 1.5px #af8c56; }
.gcal-pill.shabbat.free { background: #fdfbf5; box-shadow: inset 0 0 0 1.5px #f4e9ce; }
.gcal-del { background: #fdfbf5; }
.gcal-edit { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: #fdfbf5; color: #59381c; 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: #af8c56; box-shadow: 0 0 0 2px #fdfbf5; }
.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: #171e1b; 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: #171e1b; 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: #171e1b; 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: #171e1b; 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: #171e1b; }
.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: #171e1b; 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: #171e1b; }
.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(17, 22, 20, 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)); }
}

/* ---- הגדרות: צמצום גוונים. כרטיסים לבנים, גוון הדגשה אחד (חום בהיר), וכיתוב בצבע אחד ---- */
.settings-page, .settings-page .tone-blue, .settings-page .tone-brown { --acc: #af8c56; --acc-bg: #f7f0dd; --acc-ink: #59381c; --acc-soft: #f4e9ce; --tint: #ffffff; --tint2: #fbf7ee; --plate: #f7f0dd; }
.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: #59381c; border-color: #f6eed9; }
.settings-page :is(h2, h3, p, strong, label, td, th, summary, li), .settings-page .muted, .settings-page .small { color: #59381c; }
.settings-page .muted, .settings-page .small.muted, .settings-page td.muted { color: #916d37; }
.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: #f4e9ce; border-color: #f4e9ce; 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: #fbf7ee; color: #59381c; }
.settings-page .set-item[aria-current='page'] .bubble { background: #fdfbf5; }
.settings-page .table-wrap .tbl th, .settings-page .tbl th, .settings-page .group-head { background: #fbf7ee; color: #59381c; border-bottom-color: #f6eed9; }
.settings-page .tbl td, .settings-page .tbl tr { background: #ffffff; border-color: #f9f3e3; }
.settings-page .btn, .settings-page .btn.brown, .settings-page .btn.ghost, .settings-page .btn.sm { background: #f7f0dd; color: #59381c; border-color: #f7f0dd; }
.settings-page .btn:hover { background: #f4e9ce; }
.settings-page .chip, .settings-page .chip.brown, .settings-page .chip.blue, .settings-page .badge { background: #fbf7ee; color: #59381c; border-color: #f6eed9; }
.settings-page .input, .settings-page select.input { background: #fdfbf5; border-color: #f4e9ce; color: #59381c; }
.settings-page .gauge .arc { stroke: #af8c56; }
.settings-page .gauge .track { stroke: #f7f0dd; }
.settings-page .gauge text { fill: #59381c; }
.settings-page .switch input:checked + span { background: #af8c56; }
.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: #f7f0dd; color: #59381c; border-color: #f7f0dd; }
.dir-list .btn:hover { background: #f4e9ce; }
/* חוגים (מוזיקה וחדר כושר): שם היום והשעות בכחול הרגיל של אבני בזלת, ולא בתכלת הבהיר */
.music .m-day, .m-time { color: #59381c; }

/* ---- דף הכניסה (ומסכי האימות): הכרטיס כולו בגווני חום. הרקע עם הסמלילים נשאר כחול, כמו בכל האתר ---- */
.auth { --acc: #af8c56; --acc-bg: #f7f0dd; --acc-ink: #59381c; --acc-soft: #f4e9ce; color: #59381c; }
.auth .auth-card { background: #fdfbf5; border-color: #f4e9ce; box-shadow: 0 12px 40px rgba(76, 57, 29, 0.14); }
.auth .auth-brand, .auth .auth-brand.tone-blue { background: #f4e9ce; color: #59381c; border-inline-end-color: #d3bd92; }
.auth .auth-form { background: #fdfbf5; --tint: #fdfbf5; border-top-color: #af8c56; }
.auth :is(h1, h2, p, label, strong, .field, .auth-tag, .small, .muted, .bio-or) { color: #59381c; }
.auth .input { background: #ffffff; border-color: #f4e9ce; color: #59381c; }
.auth .input:focus, .auth .input:focus-visible { border-color: #af8c56; box-shadow: 0 0 0 3px #f7f0dd; outline: none; }
.auth .btn, .auth .btn.block, .auth .bio-btn { background: #f4e9ce; color: #59381c; border-color: #f4e9ce; }
.auth .btn:hover { background: #d7c399; }
.auth .btn.ghost { background: #fbf7ee; border-color: #f4e9ce; }
.auth .auth-note, .auth .notice { background: #f7f0dd; color: #59381c; border-color: #f4e9ce; }
.auth a { color: #916d37; }
.shared-pw { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; background: #fbf7ee; 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: #f6eed8; color: #59381c; 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; } }

/* הפלטה הירוקה: על הרקע הירוק הכללי יושבים רק משטחים לבנים (או גוון ירוק אחר בבירור), לא אותו גוון על עצמו */
.side, .topbar, .bottom { background: #ffffff !important; }
.side { border-inline-start: 1px solid #e3d2ac; }
.bottom { border-top: 1px solid #e3d2ac; }
.card.ring-wrap, .panel.infographic, .toolbar.searchbar, .m-pill, .main .btn.ghost { background: #ffffff !important; }
.main .row.wrap > h2.grow, .main .stack > p.muted { background: none !important; box-shadow: none !important; }
.room-legend .person { box-shadow: 0 0 0 1px #a0783d; }
/* בתוך הסרגלים הלבנים: תיבת החיפוש בירוק בהיר */
.side .gsearch-field, .topbar .gsearch-field { background: #f9f3e4 !important; }
.side .gsearch-field input, .topbar .gsearch-field input { background: transparent !important; }

/* אין כיתוב ישירות על הרקע הכללי: כל כיתוב כזה יושב על בועה לבנה */
.main .stack.home > h2, .main .settings-page > .stack > h2, .main .gcal-agenda > h2, .main .stack > .row.wrap > h2.grow, .main h2.m-title, .main .dash .stack > p.muted {
  background: #ffffff !important; padding: 7px 18px !important; border-radius: 999px; width: fit-content !important; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); text-shadow: none;
}
.main .rooms-page > p.muted, .main > .stack > p.muted.small, .main .settings-page > .stack > p.muted.small, .main p.m-note, .main > .empty {
  background: #ffffff !important; padding: 10px 16px !important; border-radius: 16px; width: fit-content !important; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); text-shadow: none;
}
.main .gcal-row .gcal-when { background: #ffffff; border-radius: 14px; padding: 6px 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.main .m-filters { background: #ffffff; border-radius: 18px; padding: 10px 14px; width: fit-content; max-width: 100%; }
.main .settings-page .gauges { background: #ffffff; border-radius: 20px; padding: 16px; }

/* מילוי נוכחות (תלמידים וימי היכרות): עיגול עם וי לנוכח ועיגול עם איקס ללא נוכח, בלי מילים */
.mark-btn.round { min-width: 0; width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50% !important; justify-content: center; gap: 0; flex: none; background: #ffffff !important; border: 2px solid #a78148 !important; color: #a0783d !important; }
.mark-btn.round.absent { border-color: #c9a878 !important; color: #a0783d !important; }
.mark-btn.round svg.ic { width: 26px; height: 26px; opacity: 1; stroke-width: 2.4; }
.mark-btn.round.present[aria-pressed='true'] { background: #a0783d !important; border-color: #a0783d !important; color: #ffffff !important; }
.mark-btn.round.absent[aria-pressed='true'] { background: #a0783d !important; border-color: #a0783d !important; color: #ffffff !important; }

/* בועות חומות על הרקע הירוק: כל משטח שיושב על הרקע הכללי הוא חום בהיר, ובתוכו לבן וגווני חום */
/* משחק של לבן וחום: כרטיסים רגילים לבנים, כרטיסי "גוון חום" חומים; מילוי הנוכחות ועריכת השיבוץ כולם בחום */
.main :is(.fill-list, .fill-bar, .room, .m-filters, .toolbar.searchbar, .empty, .gcal-when):not(.tone-brown) { background-color: #f9f3e3 !important; }
.main .stack.home > h2, .main .settings-page > .stack > h2, .main .gcal-agenda > h2, .main .stack > .row.wrap > h2.grow, .main h2.m-title, .main .dash .stack > p.muted,
.main .rooms-page > p.muted, .main > .stack > p.muted.small, .main .settings-page > .stack > p.muted.small, .main p.m-note, .main > .empty { background: #f9f3e3 !important; }
.main .stack > .btn.block, .room-legend .person.counselor { background-color: #f9f3e3 !important; }
.main .page-head .btn.ghost { background-color: #ffffff !important; }

/* שיבוץ פנימייה בגווני חום: שכבות ט, יא בחום כהה יותר; שכבות י, יב בחום בהיר. כך ההבחנה בין השכבות נשמרת בלי ירוק */
.bed.g9, .bed.g11 { background: #8a5a2b; border-color: #8a5a2b; }
.bed.g10, .bed.g12 { background: #d2b384; border-color: #d2b384; }
.person.g9, .person.g11 { background: #e6d3a8; color: #59381c; border-color: #cdb07c; }
.person.g10, .person.g12 { background: #ffffff; color: #59381c; border-color: #e6d3a8; }

/* סרגלי הניווט בגווני חום: רקע חום בהיר, המסך הנבחר בחום כהה יותר */
.side, .topbar, .bottom { background: #f9f3e3 !important; }
.side { border-inline-start: 1px solid #e6d3a8; }
.bottom { border-top: 1px solid #e6d3a8; }
.side .gsearch-field, .topbar .gsearch-field { background: #ffffff !important; }
/* בסרגלים: כיתוב וסמלילים בחום כהה על החום הבהיר (לא אפור ולא ירוק) */
.side, .side .nav-link, .side .nav-label, .side .user, .side .user strong, .side button.nav-link, .bottom a, .bottom .nav-label, .bottom .bottom-more, .topbar, .topbar-menu { color: #59381c !important; }
.side .muted, .side .small.muted, .side .user .muted { color: #8c572c !important; }
.side .nav-ic svg.ic, .side .nav-link > svg.ic, .bottom .nav-ic svg.ic, .topbar svg.ic, .side .gsearch-field svg.ic, .topbar .gsearch-field svg.ic { color: #59381c !important; }
.side .nav-ic svg.ic:not(.solid), .side .nav-link > svg.ic:not(.solid), .bottom .nav-ic svg.ic:not(.solid), .side .gsearch-field svg.ic, .topbar .gsearch-field svg.ic, .topbar-menu svg.ic { stroke: #59381c !important; }
.side .nav-ic svg.ic.solid, .bottom .nav-ic svg.ic.solid { fill: #59381c !important; }
.side .nav-ic svg.day-ic text, .bottom .nav-ic svg.day-ic text { fill: #59381c !important; }
.side .gsearch-field input, .topbar .gsearch-field input { color: #59381c !important; }
.side .gsearch-field input::placeholder, .topbar .gsearch-field input::placeholder { color: #8c572c !important; }

/* ===== מי שמדבר: בחירת חברים ויצירת קבוצה, כמו בוואטסאפ ===== */
.wp-screen { position: fixed; inset: 0; z-index: 60; background: #ffffff; color: #111b21; display: flex; flex-direction: column; }
@media (min-width: 900px) { .wp-screen { inset: 24px auto 24px 50%; width: 460px; transform: translateX(-50%); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(11, 20, 26, 0.45), 0 10px 40px rgba(0, 0, 0, 0.3); overflow: hidden; } }
.wp-head { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 12px; background: #ffffff; flex: none; }
.wp-head .wa-back { color: #111b21; background: none; border: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wp-title { font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.wp-sub { font-size: 0.8125rem; color: #667781; }
.wp-searchbar { display: flex; align-items: center; gap: 10px; margin: 0 14px 6px; padding: 0 16px; min-height: 46px; border-radius: 999px; background: #f6f5f3; color: #667781; flex: none; }
.wp-searchbar svg.ic { width: 20px; height: 20px; flex: none; }
.wp-search { flex: 1; border: 0; background: none; font: inherit; font-size: 1rem; color: #111b21; outline: none; min-width: 0; }
.wp-chips { display: flex; gap: 14px; padding: 10px 16px 12px; overflow-x: auto; border-bottom: 1px solid #e9edef; flex: none; }
.wp-chips[hidden] { display: none; }
.wp-chip { border: 0; background: none; padding: 0; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; flex: none; cursor: pointer; color: #667781; }
.wp-chip-face { position: relative; display: inline-flex; }
.wp-chip-x { position: absolute; bottom: -2px; inset-inline-start: -2px; width: 20px; height: 20px; border-radius: 50%; background: #8696a0; color: #ffffff; border: 2px solid #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.wp-chip-x svg.ic { width: 11px; height: 11px; stroke-width: 3; }
.wp-chip-name { font-size: 0.8125rem; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-face { width: 44px; height: 44px; color: #ffffff; font-weight: 500; font-size: 1.125rem; }
.wp-face.lg { width: 56px; height: 56px; font-size: 1.375rem; }
.wp-list { flex: 1; overflow-y: auto; padding-bottom: 96px; }
.wp-section { display: flex; align-items: center; padding: 14px 18px 6px; font-size: 0.875rem; color: #667781; }
.wp-all { border: 0; background: none; font: inherit; font-size: 0.8125rem; color: #008069; font-weight: 500; cursor: pointer; padding: 4px 0; }
.wp-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 18px; min-height: 60px; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.wp-row:hover, .wp-row[aria-checked='true'] { background: #f5f6f6; }
.wp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wp-name { font-size: 1.0625rem; }
.wp-job { font-size: 0.875rem; color: #667781; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8696a0; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; }
.wp-check.on { background: #1daa61; border-color: #1daa61; }
.wp-check svg.ic { width: 14px; height: 14px; stroke-width: 3; }
.wp-empty { padding: 32px 20px; text-align: center; color: #667781; }
.wp-fab { position: absolute; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 16px; border: 0; background: #1daa61; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); cursor: pointer; }
.wp-fab svg.ic { width: 26px; height: 26px; stroke-width: 2.4; }
.wp-fab .ic-arrow, .wp-fab svg.ic { transform: none; }
.wp-name-row { display: flex; align-items: center; gap: 14px; padding: 18px 16px 22px; }
.wp-cam { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #e9edef; color: #667781; flex: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; padding: 0; }
.wp-cam img { width: 100%; height: 100%; object-fit: cover; }
.wp-name-input { flex: 1; min-width: 0; border: 2px solid #1daa61; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1.0625rem; outline: none; color: #111b21; background: #ffffff; }
.wp-members { flex: 1; background: #f6f5f3; padding: 16px; overflow-y: auto; }
.wp-members-title { font-size: 0.875rem; color: #667781; margin-bottom: 14px; }
.wp-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 16px 8px; }
.wp-member { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8125rem; color: #667781; text-align: center; }
/* בתוך הצ'אט: הודעת מערכת, וכרטיס "יצרת את הקבוצה הזו" */
.wa-sys { align-self: center; margin: 6px auto; padding: 5px 12px; border-radius: 8px; background: #ffffff; color: #54656f; font-size: 0.8125rem; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); max-width: 86%; text-align: center; }
.wa-intro { align-self: center; margin: 10px auto 8px; width: min(320px, 86%); padding: 20px 18px 16px; border-radius: 16px; background: #ffffff; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: #111b21; }
.wa-intro .chat-avatar { width: 56px; height: 56px; margin-bottom: 8px; }
.wa-intro strong { font-size: 1rem; font-weight: 600; }
.wa-intro-sub { font-size: 0.875rem; color: #667781; }
.wa-intro p { font-size: 0.875rem; color: #54656f; margin: 8px 0 10px; }
.wa-intro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; border-radius: 999px; border: 1px solid #d1d7db; background: #ffffff; color: #008069; font: inherit; font-weight: 500; font-size: 0.9375rem; cursor: pointer; }
.wa-intro-btn svg.ic { width: 18px; height: 18px; }
.wa-intro p { background: none !important; padding: 0 !important; width: auto !important; box-shadow: none !important; border-radius: 0; color: #54656f; }
.wp-fab[aria-label='המשך'] svg.ic { transform: scaleX(-1); }

/* יומן: סנכרון עם יומן גוגל, ואירועים אישיים מגוגל */
.sync-box { background: #ffffff; border: 1px solid #e6d3a8; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sync-box h3 { margin: 0; font-size: 1.0625rem; color: #59381c; }
.sync-box .row { gap: 8px; align-items: center; }
.sync-box .row .input { flex: 1; min-width: 0; }
.sync-steps { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; color: #59381c; }
.dot.google { background: #ffffff; box-shadow: inset 0 0 0 2px #a0783d; border-radius: 2px; }
.gcal-event.google, .gcal-pill.google { background: #ffffff !important; border: 1.5px dashed #c9a878; }

/* ===== מי שמדבר, שלב 2: תפריטים, הודעה קופצת ומסכי עריכה כמו בוואטסאפ ===== */
.wa-toast { position: fixed; z-index: 90; bottom: 96px; left: 50%; transform: translateX(-50%); max-width: min(86vw, 420px); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 22px; background: #54656f; color: #ffffff; font-size: 0.9375rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); animation: wa-toast-in 0.18s ease; }
.wa-toast.out { opacity: 0; transition: opacity 0.35s ease; }
.wa-toast-ic { width: 22px; height: 22px; border-radius: 50%; background: #25d366; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wa-toast-ic svg.ic { width: 14px; height: 14px; }
@keyframes wa-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.wa-pop-veil { position: fixed; inset: 0; z-index: 80; background: rgba(11, 20, 26, 0.35); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wa-pop-veil.corner { background: transparent; align-items: flex-start; justify-content: flex-end; padding: 8px; }
.wa-pop { background: #ffffff; color: #111b21; border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28); min-width: 240px; max-width: 320px; padding: 8px 0; display: flex; flex-direction: column; }
.wa-pop-title { padding: 10px 22px 8px; font-size: 0.875rem; color: #667781; }
.wa-pop-item { border: 0; background: none; font: inherit; font-size: 1.0625rem; color: inherit; text-align: start; padding: 13px 22px; cursor: pointer; }
.wa-pop-item:hover { background: #f5f6f6; }
.wa-pop-line { height: 1px; background: #e9edef; margin: 6px 0; }
.gi-top { display: flex; align-items: center; }
.gi-dots { border: 0; background: none; width: 44px; height: 44px; border-radius: 50%; color: #54656f; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gi-dots svg.ic { width: 24px; height: 24px; }
.gi-count.row { display: flex; align-items: center; }
.gi-count-search { border: 0; background: none; width: 40px; height: 40px; border-radius: 50%; color: #667781; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gi-count-search svg.ic { width: 20px; height: 20px; }
.gi-member-search { width: 100%; border: 0; border-radius: 999px; background: #f6f5f3; padding: 10px 16px; font: inherit; color: #111b21; outline: none; margin-bottom: 6px; }
.gi-leave strong { color: #ea0038; }
.gi-leave svg.ic { color: #ea0038; }
.wp-edit-row { display: flex; align-items: center; gap: 10px; padding: 18px 16px 10px; }
.wp-area { resize: none; line-height: 1.5; }
.wp-count { color: #667781; font-size: 0.875rem; min-width: 24px; text-align: center; }
.wp-hint { padding: 4px 18px 16px; margin: 0; color: #667781; font-size: 0.875rem; }
.wp-save { margin: 0 16px; min-height: 44px; border: 0; border-radius: 999px; background: #1daa61; color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }
.wp-split { display: flex; margin-top: auto; border-top: 1px solid #e9edef; }
.wp-split-btn { flex: 1; min-height: 52px; border: 0; background: none; font: inherit; font-size: 1rem; color: #008069; font-weight: 500; cursor: pointer; }
.wp-split-btn + .wp-split-btn { border-inline-start: 1px solid #e9edef; }

/* ===== מי שמדבר, שלב 3: עריכה והעברה כמו בוואטסאפ ===== */
.wa-edited { font-size: 0.6875rem; color: #667781; margin-inline-end: 4px; }
.wa-actions .grow { flex: 1; }
.wp-fwd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; background: #f0f2f5; border-top: 1px solid #e9edef; flex: none; }
.wp-fwd-bar[hidden] { display: none; }
.wp-fwd-names { color: #111b21; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wp-fwd-send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #1daa61; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.wp-fwd-send svg.ic { width: 22px; height: 22px; }
.wa-toast { width: max-content; }
.wa-bubble.edited .wa-text::after { width: 86px; }
.wa-msg.out .wa-bubble.edited .wa-text::after { width: 106px; }

/* ===== מי שמדבר: הקלטה קולית כמו בוואטסאפ ===== */
.wa-composer { position: relative; flex-wrap: wrap; }
.wa-composer.recording .wa-send { background: #1daa61; animation: none; }
.wa-composer.recording .wa-box::after { content: none; }
/* לחיצה ארוכה: השעון ו"החלק/י לביטול" בתוך שורת הכתיבה, המיקרופון גדל, ומעליו מנעול */
.wa-hold { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: #ffffff; border-radius: inherit; color: #54656f; z-index: 2; }
.wa-hold[hidden], .wa-lock[hidden], .wa-rec[hidden] { display: none; }
.wa-box { position: relative; }
.wa-hold-time { font-size: 1.0625rem; color: #111b21; }
.wa-hold-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 0.9375rem; animation: wa-slide 1.4s ease-in-out infinite; }
.wa-hold-hint svg.ic { width: 16px; height: 16px; }
@keyframes wa-slide { 50% { transform: translateX(-6px); opacity: 0.6; } }
.wa-composer.rec-hold .wa-send { transform: scale(1.7); transition: transform 0.15s ease; z-index: 3; }
.wa-lock { position: absolute; bottom: 74px; inset-inline-end: 12px; width: 40px; padding: 10px 0 6px; border-radius: 20px; background: #ffffff; color: #54656f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 3; }
.wa-lock svg.ic { width: 18px; height: 18px; }
.wa-lock svg.ic + svg.ic { width: 14px; height: 14px; opacity: 0.6; animation: wa-up 1.2s ease-in-out infinite; }
@keyframes wa-up { 50% { transform: translateY(-3px); } }
/* מצב נעול: לוח הקלטה במקום שורת הכתיבה */
.wa-composer.rec-locked > .wa-box, .wa-composer.rec-locked > .wa-send { display: none; }
.wa-rec { flex: 1 1 100%; background: #ffffff; border-radius: 22px 22px 0 0; margin: 0 -8px -8px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -1px 3px rgba(11, 20, 26, 0.08); }
.wa-rec-top { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.wa-rec.paused .wa-rec-play { order: -1; }
.wa-rec.paused .wa-rec-time { order: 3; }
.wa-rec-time { font-size: 1.125rem; color: #111b21; min-width: 44px; }
.wa-rec-wave { flex: 1; height: 30px; display: flex; align-items: center; justify-content: flex-start; gap: 2px; overflow: hidden; }
.wa-rec-wave i { width: 3px; min-height: 3px; border-radius: 2px; background: #54656f; flex: none; }
.wa-rec.paused .wa-rec-wave i { background: #aebac1; }
.wa-rec-play { border: 0; background: none; width: 36px; height: 36px; color: #111b21; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wa-rec-play[hidden] { display: none; }
.wa-rec-play svg.ic { width: 26px; height: 26px; }
.wa-rec-bottom { display: flex; align-items: center; gap: 12px; }
.wa-rec-trash { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fde8ec; color: #ea0038; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.wa-rec-toggle { flex: 1; min-height: 44px; border-radius: 999px; border: 0; background: #f5f6f6; color: #111b21; font: inherit; font-size: 0.9375rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.wa-rec-toggle.resume { background: #d9fdd3; color: #008069; }
.wa-rec-toggle svg.ic { width: 20px; height: 20px; }
.wa-rec-send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #1daa61; color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.wa-rec-send svg.ic { width: 22px; height: 22px; }
/* בועת הודעה קולית */
.wa-voice { display: flex; align-items: center; gap: 8px; width: 250px; max-width: 100%; padding: 2px 2px 0; direction: ltr; }
.wa-voice-play { width: 36px; height: 36px; border: 0; background: none; color: #54656f; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.wa-voice-play svg.ic { width: 30px; height: 30px; }
.wa-voice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-voice-wave { position: relative; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; direction: ltr; }
.wa-voice-wave i { flex: 1; min-width: 2px; max-width: 3px; border-radius: 2px; background: #aebac1; }
.wa-voice-wave i.done { background: #54656f; }
.wa-msg.out .wa-voice-wave i { background: #9bc79a; }
.wa-msg.out .wa-voice-wave i.done { background: #54656f; }
.wa-voice-dot { position: absolute; top: 50%; inset-inline-start: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #54656f; }
.wa-voice-time { font-size: 0.6875rem; color: #667781; }

/* ===== מי שמדבר: נעיצת קבוצות בראש הרשימה, כמו בוואטסאפ ===== */
.wl-face { position: relative; display: inline-flex; flex: none; }
.wl-item.picked { background: #d9fdd3 !important; }
.wl-picked { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 20px; height: 20px; border-radius: 50%; background: #1daa61; color: #ffffff; border: 2px solid #d9fdd3; display: inline-flex; align-items: center; justify-content: center; }
.wl-picked svg.ic { width: 12px; height: 12px; stroke-width: 3; }
.wl-pin { color: #8696a0; display: inline-flex; flex: none; }
.wl-pin svg.ic { width: 16px; height: 16px; }
.wl-pickbar[hidden] { display: none; }
.wl-pickbar .wl-title strong { font-size: 1.25rem; font-weight: 500; padding-inline-start: 6px; }
.wl-pickbar .wa-tool:disabled { opacity: 0.3; }

/* ===== מי שמדבר: שיחות אישיות והודעות שמורות ===== */
.chat-avatar.saved { background: linear-gradient(180deg, #7dbcf5, #4a94dc) !important; color: #ffffff !important; }
.chat-avatar.saved svg.ic { width: 46%; height: 46%; }
.chat-avatar.initial { color: #ffffff; font-weight: 500; font-size: 1.25rem; }
.chat-avatar.initial.xl { font-size: 3rem; }
.wp-face.green { background: #1daa61; color: #ffffff; }
.wp-face.green svg.ic, .wp-face.saved svg.ic { width: 22px; height: 22px; }
/* הודעה שנמחקה נעלמת מהמסך */
.wa-msg.gone { opacity: 0; transform: scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease; }
.wa-pop-title + .wa-pop-item, .wa-pop .wa-pop-item { color: #008069; }
.wa-pop-veil.corner .wa-pop .wa-pop-item { color: #111b21; }

/* ===== מי שמדבר: שיתוף מהטלפון והדבקת תמונה ===== */
.wp-share-strip { display: flex; gap: 8px; padding: 4px 16px 12px; overflow-x: auto; flex: none; align-items: center; }
.wp-share-strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.wp-share-file { width: 96px; min-height: 72px; border-radius: 10px; background: #f0f2f5; color: #54656f; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; flex: none; text-align: center; }
.wp-share-file small { font-size: 0.6875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wp-share-text { background: #f0f2f5; color: #111b21; border-radius: 10px; padding: 8px 12px; font-size: 0.875rem; max-width: 100%; }
.wa-paste { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wa-paste img { max-width: 100%; max-height: 52vh; border-radius: 12px; }

.wa-sheet-icon.video { color: #ec407a; }
.wa-sheet-icon.audio { color: #f57c00; }

/* מי שמדבר: החלקת בועה ימינה כדי להגיב */
.wa-msg { position: relative; transition: transform 0.18s ease; }
.wa-msg.swiping { transition: none; }
.wa-swipe-hint { position: absolute; top: 50%; left: -44px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(11, 20, 26, 0.18); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; opacity: 0; }
.wa-swipe-hint.ready { background: #1daa61; }
.wa-swipe-hint svg.ic { width: 18px; height: 18px; }

/* שורת ההקלדה ב"מי שמדבר": גודל כתב, גובה שורה ושוליים לפי מדידה מצילום של וואטסאפ (17px, שורה של 23.7px, עד שבע שורות) */
.wa-input { font-size: 17px; line-height: 23.7px; padding: 10.6px 3px 10.7px; max-height: 188px; }
.wa-box > .wa-input { margin-inline-start: -7px; }

/* כותרת השיחה ב"מי שמדבר", לפי מדידה מצילום של וואטסאפ (אותו טקסט, אותו רוחב בפיקסלים): גופן המערכת, לא מודגש */
.wa-head { min-height: 50px; padding: 4px 8px; }
.wa-head .chat-avatar { width: 31px; height: 31px; }
.wa-head .chat-avatar svg.ic { width: 60%; height: 60%; }
.wa-head-text strong { font-family: Roboto, 'Noto Sans Hebrew', system-ui, sans-serif; font-size: 16px; line-height: 22px; font-weight: 400; letter-spacing: 0; }
.wa-head-text .chat-preview { font-family: Roboto, 'Noto Sans Hebrew', system-ui, sans-serif; font-size: 10.7px; line-height: 17px; }
.wa-head .wa-back svg.ic { width: 22px; height: 22px; }

/* מכתבי השעיה */
.letters-page { max-width: 760px; }
.letter-step h2 { font-size: 1.0625rem; }
.letter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.letter-chip { border: 1px solid var(--brown-soft, #d9c59a); background: #fff; color: #59381c; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 500; cursor: pointer; min-height: 40px; }
.letter-chip[aria-pressed='true'] { background: #a0783d; border-color: #a0783d; color: #fff; }
.letter-area { width: 100%; min-height: 0; resize: vertical; line-height: 1.6; padding: 10px 12px; font: inherit; }
.letter-results { display: flex; flex-direction: column; gap: 6px; }
.letter-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--acc-soft); background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; cursor: pointer; text-align: start; color: var(--ink); }
.letter-result:hover { border-color: #a0783d; }
.letter-export { display: flex; justify-content: center; }
.letter-export .btn { min-width: 220px; min-height: 48px; font-size: 1.0625rem; }
.letter-done { border-color: #a0783d; }

/* כפתור השליחה ב"מי שמדבר", לפי מדידה מצילום של וואטסאפ: עיגול 42px, חץ ברוחב 15.3px ובגובה 12.7px עם פינות מעוגלות */
.wa-send { width: 42px; height: 42px; }
.wa-send.sending svg.ic.solid, .wa-fab svg.ic.solid { width: 24px; height: 24px; stroke: currentColor !important; stroke-width: 1.1; stroke-linejoin: round; }

/* הסרגל התחתון בנייד: בצבע המערכת של הטלפון (בהיר במצב בהיר, כהה במצב כהה), כדי שיתמזג עם סרגל הניווט של הטלפון עצמו */
.bottom { color-scheme: light dark; background: Canvas !important; border-top: 0 !important; box-shadow: none !important; }
@media (prefers-color-scheme: dark) {
  .bottom a, .bottom .nav-label, .bottom .bottom-more { color: #f3e7cf !important; }
  .bottom .nav-ic svg.ic { color: #f3e7cf !important; }
  .bottom .nav-ic svg.ic:not(.solid) { stroke: #f3e7cf !important; }
  .bottom .nav-ic svg.ic.solid, .bottom a[aria-current='page'] .nav-ic svg.ic.solid { fill: #f3e7cf !important; }
  .bottom .nav-ic svg.day-ic text { fill: #f3e7cf !important; }
  .bottom a[aria-current='page'] .nav-ic { background: #6b5633 !important; }
}

/* הכותרת הראשית של "מי שמדבר" בגווני ירוק */
.wl-head { background: #cfeadd; }
.main .wl-head h1, .wl-head .wl-title strong { color: #2f5244; }
.wl-head .wa-tool { color: #2f5244; }

/* סמליל "הודעות שמורות": צבע אחיד, בדיוק הירוק של כפתור ה-+ לשיחה חדשה (.wl-fab) */
.chat-avatar.saved { background: #1daa61 !important; color: #ffffff !important; }

/* סמליל תמונת הפרופיל בכותרת "מי שמדבר" (כשאין תמונה): הירוק הכהה של אבני בזלת */
.wl-me span.chat-avatar { background: #5d7c6f !important; color: #ffffff !important; }

/* "מי שמדבר": כל המסכים בגופן Noto Sans Hebrew (רישיון פתוח, OFL). שאר האפליקציה, כולל סרגלי הניווט, נשארת ב-Google Sans */
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/NotoSansHebrew-hebrew-400.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: 'Noto Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/NotoSansHebrew-latin-400.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; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/NotoSansHebrew-hebrew-500.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: 'Noto Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/NotoSansHebrew-latin-500.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; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/NotoSansHebrew-hebrew-600.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: 'Noto Sans Hebrew'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/NotoSansHebrew-latin-600.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; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/NotoSansHebrew-hebrew-700.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: 'Noto Sans Hebrew'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/NotoSansHebrew-latin-700.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; }
body.chat-font, body.chat-font .chat-room.wa, body.chat-font .wl, body.chat-font .vcall, body.chat-font .chat-info.gi, body.chat-font .wa-head-text strong, body.chat-font .wa-head-text .chat-preview, .vcall { font-family: 'Noto Sans Hebrew', 'Google Sans', system-ui, sans-serif; }
body.chat-font .side, body.chat-font .bottom, body.chat-font .topbar { font-family: 'Google Sans', 'Google Sans Flex', Heebo, system-ui, sans-serif; }

/* "מי שמדבר": גודל הכתב ברשימת השיחות ובבועות ההודעות, לפי מדידה מול וואטסאפ בטלפון של המנהל (אותו טקסט, אותו רוחב בפיקסלים) */
.wl-item { gap: 12px; padding: 0 16px; padding-inline-start: 10px; min-height: 67px; }
.wl-item .chat-avatar { width: 41.5px; height: 41.5px; }
.wl-main { gap: 2px; }
.wl-name { font-size: 16px; line-height: 21px; }
.wl-time { font-size: 11.25px; }
.wl-preview { font-size: 13.2px; line-height: 19px; }
.wl-preview svg.ic { width: 15px; height: 15px; }
.wl-item + .wl-item::before { inset-inline-start: 64px; }
.wl-search input { font-size: 15.6px; }
.wa-text { font-size: 14.85px; line-height: 19px; }
.wa-bubble { line-height: 19px; padding: 7px 11px; }
.wa-quote-name { font-size: 13.55px; }
.wa-quote-text { font-size: 13.78px; }
.wa-text::after { width: 40px; }
.wa-msg.out .wa-text::after { width: 57px; }
.wa-bubble.edited .wa-text::after { width: 76px; }
.wa-msg.out .wa-bubble.edited .wa-text::after { width: 93px; }

/* הסרגל התחתון בנייד: נמוך יותר (65px במקום 82px) */
@media (max-width: 899px) {
  .bottom, .shell > .bottom { padding-top: 5px; padding-bottom: 6px; }
  .bottom a, .bottom .bottom-more { min-height: 54px; gap: 3px; }
  .wl-fab { bottom: calc(var(--nav-h) + 23px); }
}

/* אתר ההדגמה: פס קבוע בתחתית המסך */
.demo-ribbon { position: fixed; z-index: 300; top: 0; left: 50%; transform: translateX(-50%); background: #59381c; color: #ffffff; font-size: 0.75rem; font-weight: 500; padding: 3px 14px 4px; border-radius: 0 0 12px 12px; white-space: nowrap; pointer-events: none; opacity: 0.94; }
@media print { .demo-ribbon { display: none; } }
body.demo .wl-push { display: none !important; }
@media (max-width: 899px) { .demo-ribbon { font-size: 0.625rem; padding: 1px 10px 2px; border-radius: 0 0 8px 8px; } .demo-ribbon span { display: none; } }
/* הרווח לאזור המחוות של הטלפון רק באפליקציה המותקנת. בדפדפן רגיל (במיוחד פיירפוקס) הוא הוסיף סתם רווח לבן מתחת לסרגל */
@media (max-width: 899px) and (display-mode: standalone) {
  .bottom, .shell > .bottom { padding-bottom: calc(6px + min(env(safe-area-inset-bottom, 0px), 34px)); }
}
