/* לוח שערים — סגנונות. ללא סגנונות inline (CSP: style-src 'self'). */
@font-face { font-family: Plex; src: url(../fonts/plex-hebrew-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Plex; src: url(../fonts/plex-latin-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: Plex; src: url(../fonts/plex-hebrew-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Plex; src: url(../fonts/plex-latin-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: Plex; src: url(../fonts/plex-hebrew-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Plex; src: url(../fonts/plex-latin-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: Frank; src: url(../fonts/frank-hebrew-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Frank; src: url(../fonts/frank-latin-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --paper: #EDF1F4;
  --field: #FFFFFF;
  --ink: #13233A;
  --ink-2: #47566B;
  --muted: #687789;
  --rule: #CAD3DC;
  --rule-soft: #DDE3E9;
  --accent: #1E56A0;
  --accent-ink: #FFFFFF;
  --up: #0B7559;
  --down: #B0324A;
  --board: #0F3B33;
  --board-row: rgba(255, 255, 255, .07);
  --board-ink: #D6E5DF;
  --board-dim: #93B5AA;
  --amber: #F4B942;
  --board-up: #8FE0BE;
  --board-down: #FFA3B1;
  --chart-line: #1E56A0;
  --chart-wash: rgba(30, 86, 160, .10);
  --chart-grid: #D3DBE3;
  --focus: #F4B942;
  --f-ui: Plex, "Segoe UI", Arial, sans-serif;
  --f-display: Frank, "Times New Roman", serif;
  --r: 6px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    --paper: #0E1621; --field: #152131; --ink: #E3E9F0; --ink-2: #AAB7C6; --muted: #8796A8;
    --rule: #2A3A4D; --rule-soft: #1F2C3C; --accent: #7EAFF0; --accent-ink: #0E1621;
    --up: #6FD3AE; --down: #FF95A6; --board: #0B2F29; --chart-line: #7EAFF0;
    --chart-wash: rgba(126, 175, 240, .12); --chart-grid: #26364A; color-scheme: dark;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  }
}
/* ערכת נושא שנקבעת במפורש (למשל לפי ערכת הנושא של Teams) גוברת על הגדרת המערכת */
:root.theme-dark {
    --paper: #0E1621; --field: #152131; --ink: #E3E9F0; --ink-2: #AAB7C6; --muted: #8796A8;
    --rule: #2A3A4D; --rule-soft: #1F2C3C; --accent: #7EAFF0; --accent-ink: #0E1621;
    --up: #6FD3AE; --down: #FF95A6; --board: #0B2F29; --chart-line: #7EAFF0;
    --chart-wash: rgba(126, 175, 240, .12); --chart-grid: #26364A; color-scheme: dark;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-ui);
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- מבנה ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.45rem/1 var(--f-display); letter-spacing: .01em; }
.brand-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.channels { display: flex; gap: 4px; }
.channels a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500;
}
.channels a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.layout {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  padding: 24px clamp(16px, 4vw, 40px) 48px; max-width: 1240px; margin: 0 auto;
}
.subnav { position: sticky; top: 16px; align-self: start; min-width: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav a {
  display: block; padding: 9px 12px; border-inline-start: 2px solid transparent; color: var(--ink-2);
  text-decoration: none;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-inline-start-color: var(--amber); font-weight: 600; }
main { min-width: 0; }
.view > h1 { font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.15 var(--f-display); margin: 0 0 6px; }
.lede { color: var(--ink-2); margin: 0 0 22px; max-width: 64ch; }

.bottombar { display: none; }

@media (max-width: 860px) {
  .channels { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); padding-top: 12px; padding-bottom: calc(var(--nav-h) + 32px); }
  .subnav { position: static; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); }
  .subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 4px clamp(16px, 4vw, 40px) 8px; scrollbar-width: none; }
  .subnav ul::-webkit-scrollbar { display: none; }
  .subnav li[hidden] { display: none; }
  .subnav a { white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
  .subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .bottombar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 20;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper); border-top: 1px solid var(--rule);
  }
  .bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: .85rem; font-weight: 500; }
  .bottombar svg { width: 22px; height: 22px; }
  .bottombar a[aria-current="true"] { color: var(--ink); }
  .bottombar a[aria-current="true"] svg { color: var(--accent); }
}

/* ---------- הלוח (הרכיב הבולט) ---------- */
.board {
  background: var(--board); color: var(--board-ink); border-radius: 4px;
  padding: 6px 0 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.board table { width: 100%; border-collapse: collapse; }
.board caption { text-align: start; padding: 10px 18px 8px; color: var(--board-dim); font-size: .85rem; caption-side: top; }
.board th { font-weight: 500; font-size: .8rem; color: var(--board-dim); text-align: start; padding: 6px 18px; border-bottom: 1px solid var(--board-row); }
.board th small { display: block; font-weight: 400; }
.board td { padding: 9px 18px; border-bottom: 1px solid var(--board-row); vertical-align: middle; }
.board tbody tr:last-child td { border-bottom: 0; }
.board .cur b { display: block; font-weight: 500; color: #F2F6F4; white-space: nowrap; }
.board th { white-space: nowrap; }
.board .cur span { font-size: .78rem; color: var(--board-dim); }
.board .val { font-variant-numeric: tabular-nums; color: var(--amber); font-size: 1.32rem; font-weight: 500; direction: ltr; text-align: left; letter-spacing: .02em; }
.board .val.live { color: #FFE2A0; font-size: 1.1rem; }
.board .chg { font-variant-numeric: tabular-nums; direction: ltr; text-align: left; font-size: .9rem; white-space: nowrap; }
.board .chg-inline { display: none; font-size: .74rem; font-weight: 400; letter-spacing: 0; }
.board .up { color: var(--board-up); }
.board .down { color: var(--board-down); }
.board .flat { color: var(--board-dim); }
.board-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); margin-top: 4px; }
.board-rates div { padding: 12px 18px; }
.board-rates div + div { border-inline-start: 1px solid var(--board-row); }
.board-rates dt { font-size: .8rem; color: var(--board-dim); }
.board-rates dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; color: var(--amber); font-size: 1.32rem; font-weight: 500; }
.board-rates dd small { color: var(--board-dim); font-size: .78rem; margin-inline-start: 6px; }
.board th.th-num { text-align: left; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(244, 185, 66, .22); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

@media (max-width: 560px) {
  .board th, .board td { padding-inline: 8px; }
  .board .cur b { font-size: .92rem; }
  .board .val { font-size: 1.08rem; }
  .board .val.live { font-size: .95rem; }
  .board .chg { font-size: .8rem; }
  .board-rates { grid-template-columns: 1fr; }
  .board-rates div + div { border-inline-start: 0; border-top: 1px solid var(--board-row); }
  .board-rates div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; }
  .hide-sm { display: none; }
  .board .chg-inline { display: block; }
}

/* ---------- צג תוצאה במחשבונים (אותה שפה של הלוח) ---------- */
.display {
  background: var(--board); color: var(--board-ink); border-radius: 4px; padding: 18px 20px;
}
.display .big { font-variant-numeric: tabular-nums; color: var(--amber); font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 500; line-height: 1.1; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.display .big-label { color: var(--board-dim); font-size: .85rem; margin: 0 0 4px; }
.display dl { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 16px 0 0; font-size: .92rem; }
.display dt { color: var(--board-dim); }
.display dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; color: #F2F6F4; }
.display .note { color: var(--board-dim); font-size: .82rem; margin: 12px 0 0; }
.display .err { color: var(--board-down); }

/* ---------- טפסים ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
.calc .display { position: sticky; top: 16px; }
@media (max-width: 980px) { .calc .display { position: static; order: -1; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }
label, .label { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
input, select, button { font: inherit; color: inherit; }
input[type="number"], input[type="date"], input[type="text"], select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--field);
}
input[type="number"] { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
input[type="date"] { direction: ltr; text-align: end; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.with-btn { display: flex; gap: 8px; align-items: end; }
.with-btn > div { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .with-btn { flex-wrap: wrap; }
  .with-btn > div { flex: 1 1 100%; }
  .with-btn > .btn.icon { margin: 0 auto; transform: rotate(90deg); }
}

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--field); }
.seg label { margin: 0; font-weight: 500; font-size: .9rem; color: var(--ink-2); position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 14px; border-inline-start: 1px solid var(--rule-soft); }
.seg label:first-child span { border-inline-start: 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--field); color: var(--ink); cursor: pointer; font-weight: 500;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.icon { width: 44px; height: 44px; padding: 0; justify-content: center; }
.btn svg { width: 18px; height: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 18px; }
.toolbar > div { min-width: 160px; }

/* ---------- טקסט, טבלאות, הערות ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 18px; padding: 0; }
.facts div { min-width: 120px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pos { color: var(--up); } .neg { color: var(--down); }
.headline { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.25 var(--f-display); margin: 0 0 4px; }
.meta { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.meta a { color: inherit; }
.status { color: var(--muted); font-size: .9rem; padding: 18px 0; }
.status.error { color: var(--down); }
.stale { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--down); margin-inline-start: 8px; }

.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data caption { text-align: start; font-weight: 600; padding: 0 0 8px; }
.data th { text-align: start; font-weight: 500; color: var(--muted); font-size: .82rem; padding: 6px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.data td { padding: 7px 10px; border-bottom: 1px solid var(--rule-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data td.n, .data th.n { text-align: end; direction: ltr; }
.scroll { overflow-x: auto; max-height: 460px; overflow-y: auto; border-top: 1px solid var(--rule-soft); }
.scroll .data th { position: sticky; top: 0; background: var(--paper); }
details { margin-top: 22px; }
summary { cursor: pointer; font-weight: 500; padding: 8px 0; color: var(--ink); }
details .btn { margin: 4px 0 10px; }
section.block { margin-top: 32px; }
section.block > h2 { font: 700 1.25rem/1.3 var(--f-display); margin: 0 0 12px; }

/* ---------- גרף ---------- */
.chart { position: relative; margin: 6px 0 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--f-ui); }
.chart .grid line { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .zero { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .wash { fill: var(--chart-wash); stroke: none; }
.chart .dot { fill: var(--chart-line); stroke: var(--paper); stroke-width: 2; }
.chart .endlabel { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--f-ui); }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.tip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 4px;
  padding: 6px 10px; font-size: .82rem; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -100%);
  direction: rtl;
}
.tip b { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; direction: ltr; text-align: end; }
.chart-title { font-weight: 600; margin: 0; }
.chart-sub { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }

/* ---------- משכנתא ---------- */
.track { border-top: 1px solid var(--rule); padding: 14px 0 6px; }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.track-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.track .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.track .span2 { grid-column: span 2; }
@media (max-width: 560px) { .track .fields { grid-template-columns: 1fr 1fr; } .track .span2 { grid-column: 1 / -1; } }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 2px; }

footer.foot { border-top: 1px solid var(--rule); color: var(--muted); font-size: .84rem; padding: 18px clamp(16px, 4vw, 40px) 28px; max-width: 1240px; margin: 0 auto; }
footer.foot p { margin: 4px 0; max-width: 90ch; }
@media (max-width: 860px) { footer.foot { padding-bottom: calc(var(--nav-h) + 28px); } }

@media print {
  .top .channels, .subnav, .bottombar, .btn, details > summary { display: none !important; }
  .layout { display: block; }
  details { display: block; }
  .board, .display { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- בחירת מטבעות ---------- */
.board-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.board td.empty { text-align: center; padding: 28px 18px; color: var(--board-ink); }
.link-btn.on-board { color: var(--amber); }
dialog#cur-dialog {
  border: 1px solid var(--rule); border-radius: 8px; padding: 0; background: var(--paper); color: var(--ink);
  width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 860px);
}
dialog#cur-dialog::backdrop { background: rgba(10, 20, 30, .45); }
.dlg { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; max-height: min(86vh, 860px); box-sizing: border-box; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h2 { font: 700 1.35rem/1.2 var(--f-display); margin: 0; }
.dlg .hint { margin: 0; }
#cur-search { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--field); }
.dlg-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.dlg > * { flex: none; }
.dlg > .cur-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-top: 1px solid var(--rule-soft); padding-top: 6px; }
.cur-group { margin: 6px 0 12px; }
.cur-group legend { font-weight: 600; font-size: .92rem; padding: 6px 0; }
.cur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; }
.cur-item { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 6px; border-radius: 4px; font-weight: 400; color: var(--ink); cursor: pointer; }
.cur-item:hover { background: var(--rule-soft); }
.cur-item input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cur-name { flex: 1; }
.cur-code { color: var(--muted); font-size: .8rem; direction: ltr; unicode-bidi: isolate; }

.hist-cur { margin: 0 0 16px; }
.hist-cur-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--field); color: var(--ink-2); cursor: pointer; font: 500 .88rem var(--f-ui);
}
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.chip-name { display: none; }
@media (min-width: 861px) { .chip[aria-pressed="true"] .chip-name { display: inline; } }

/* מקרא ומפתחות צבע — קו קצר בצבע הסדרה, הטקסט נשאר בצבע הטקסט */
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; font-size: .86rem; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
i.key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--chart-line); vertical-align: middle; flex: none; }
i.key.s1 { background: var(--s1); } i.key.s2 { background: var(--s2); } i.key.s3 { background: var(--s3); } i.key.s4 { background: var(--s4); }
i.key.s5 { background: var(--s5); } i.key.s6 { background: var(--s6); } i.key.s7 { background: var(--s7); } i.key.s8 { background: var(--s8); }
.chart .line.s1 { stroke: var(--s1); } .chart .line.s2 { stroke: var(--s2); } .chart .line.s3 { stroke: var(--s3); } .chart .line.s4 { stroke: var(--s4); }
.chart .line.s5 { stroke: var(--s5); } .chart .line.s6 { stroke: var(--s6); } .chart .line.s7 { stroke: var(--s7); } .chart .line.s8 { stroke: var(--s8); }
.chart .dot.s1 { fill: var(--s1); } .chart .dot.s2 { fill: var(--s2); } .chart .dot.s3 { fill: var(--s3); } .chart .dot.s4 { fill: var(--s4); }
.chart .dot.s5 { fill: var(--s5); } .chart .dot.s6 { fill: var(--s6); } .chart .dot.s7 { fill: var(--s7); } .chart .dot.s8 { fill: var(--s8); }
.tip .tip-date { display: block; color: inherit; opacity: .8; font-size: .78rem; }
.tip .tip-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.tip .tip-row b { display: inline; font-size: .86rem; min-width: 0; }
.tip .tip-row span { font-size: .8rem; opacity: .9; }
.facts-table { width: 100%; overflow-x: auto; }
.data.compact td, .data.compact th { padding: 6px 10px; }

/* ---------- מצב מוטמע (iframe בתוך SharePoint) ---------- */
.open-full { flex: none; }
.embedded .top { padding-block: 8px; }
.embedded .brand-sub, .embedded .brand-mark { display: none; }
.embedded .brand-name { font-size: 1.15rem; }
.embedded footer.foot { padding-top: 10px; }
@media (max-width: 860px) {
  .embedded .open-full { height: 34px; padding: 0 10px; font-size: .85rem; }
}

/* ---------- בתוך Teams: ל-Teams יש כותרת וטאבים משלו ---------- */
.in-teams .top, .in-teams .bottombar { display: none !important; }
.in-teams .layout { padding-top: 12px; }
@media (max-width: 860px) { .in-teams .layout, .in-teams footer.foot { padding-bottom: 24px; } }

/* דפי מסמך (פרטיות, תנאים) */
.doc-page article { max-width: 70ch; }
.doc-page li { margin-bottom: 6px; }
