/* Built on the Clalit Design System tokens: Heebo, square corners, flat solid fields, hairlines, pill CTAs only. */

:root {
  --green: #00a651; --blue: #00aeef; --lime: #96d600; --cyan: #29d1de; --sky: #17a1ba; --teal: #00667d; --deep: #05454f; --navy: #0a1e8c;
  --g50: #f7f7f7; --g100: #eeeeee; --g200: #d9d9d9; --g400: #a6a6a6; --g600: #6b6b6b; --g900: #1a1a1a;
  --warn: #e8a400; --danger: #d1343a;
  --tint: #eef6f8; --tint-2: #dcedf1;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --font: "Heebo", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-family: var(--font); font-size: 16px; color: var(--g900); background: #fff; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; line-height: 1.45; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.num { direction: ltr; unicode-bidi: isolate; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.flip { transform: scaleX(-1); }
.muted { color: var(--g600); }
.small { font-size: 14px; }
.xs { font-size: 12px; }

/* five-band stripe: the brand signature */
.stripe { display: flex; direction: ltr; height: 6px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--lime); } .stripe i:nth-child(2) { background: var(--cyan); } .stripe i:nth-child(3) { background: var(--sky); }
.stripe i:nth-child(4) { background: var(--teal); } .stripe i:nth-child(5) { background: var(--deep); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 120ms var(--ease), transform 120ms var(--ease); white-space: nowrap; }
.btn:hover { background: var(--deep); } .btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--g200); color: var(--g600); cursor: default; transform: none; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.ghost:hover { background: var(--tint); }
.btn.lime { background: var(--lime); color: var(--deep); } .btn.lime:hover { background: #86c000; }
.link { color: var(--teal); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: minmax(420px, 5fr) 7fr; min-height: 100vh; }
.login-form { display: flex; flex-direction: column; padding: 40px 64px; }
.login-form .logo { height: 44px; align-self: flex-start; }
.login-body { margin: auto 0; max-width: 380px; width: 100%; }
.login-body h1 { font-size: 36px; line-height: 1.15; color: var(--deep); font-weight: 700; }
.login-body .lead { margin-top: 12px; color: var(--g600); font-size: 18px; }
.field { display: block; margin-top: 20px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--g400); border-radius: 0; background: #fff; transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.input:hover { border-color: var(--g600); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.pw { position: relative; } .pw .input { padding-inline-end: 44px; }
.pw button { position: absolute; inset-inline-end: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; color: var(--g600); cursor: pointer; display: grid; place-items: center; }
.login .btn { width: 100%; justify-content: center; margin-top: 28px; height: 48px; font-size: 16px; }
.login-err { margin-top: 16px; padding: 10px 14px; border-inline-start: 3px solid var(--danger); background: #fbeeee; font-size: 14px; display: none; }
.login-err.on { display: block; }
.login-foot { font-size: 12px; color: var(--g600); font-weight: 400; display: flex; gap: 8px; align-items: center; }
.login-art { background: var(--teal); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 64px 72px; }
.login-art h2 { font-size: 56px; line-height: 1.05; font-weight: 700; max-width: 11em; position: relative; z-index: 1; letter-spacing: -.01em; }
.login-art h2 em { font-style: normal; color: var(--lime); }
.login-art .points { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 420px; font-size: 18px; }
.login-art .points div { display: flex; gap: 12px; align-items: baseline; }
.login-art .points b { font-weight: 400; font-size: 14px; color: var(--cyan); min-width: 20px; }
.login-art svg.arcs { position: absolute; left: 0; bottom: 0; width: 46%; max-width: 440px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } .login-form { padding: 32px 24px; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--deep); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 24px 24px 20px; }
.side .brand img { height: 34px; display: block; }
.side .brand div { margin-top: 14px; font-size: 14px; font-weight: 400; color: #b9d5da; line-height: 1.3; }
.nav { flex: 1; overflow: auto; padding: 8px 0; }
.nav h6 { margin: 18px 24px 6px; font-size: 12px; font-weight: 400; color: #8fb7be; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 24px; font-size: 15px; color: #d6e6e9; border-inline-start: 3px solid transparent; transition: background 120ms var(--ease), color 120ms var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: var(--teal); color: #fff; font-weight: 600; border-inline-start-color: var(--lime); }
.side .me { padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.side .me b { display: block; font-weight: 600; } .side .me span { color: #b9d5da; font-weight: 400; font-size: 12px; }
.side .me button { margin-inline-start: auto; background: none; border: 0; color: #b9d5da; cursor: pointer; padding: 8px; display: grid; }
.side .me button:hover { color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { padding: 36px 48px 64px; max-width: 1360px; width: 100%; animation: in 200ms var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } * { transition: none !important; } }
.head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.head h1 { font-size: 36px; line-height: 1.15; font-weight: 700; color: var(--deep); }
.head p { margin-top: 6px; color: var(--g600); max-width: 62ch; }
.head .actions { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.crumb:hover { color: var(--deep); }
.demo-note { display: flex; gap: 10px; align-items: center; background: var(--g50); border-inline-start: 3px solid var(--sky); padding: 10px 14px; font-size: 14px; margin-bottom: 24px; }
.demo-note .ico { color: var(--sky); }

/* ---------- surfaces ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g21 { grid-template-columns: 2fr 1fr; } .g12 { grid-template-columns: 1fr 2fr; } .g32 { grid-template-columns: 3fr 2fr; }
@media (max-width: 1100px) { .g2, .g3, .g21, .g12, .g32 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--g200); background: #fff; }
.card > header { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px 0; }
.card > header h3 { font-size: 18px; font-weight: 600; color: var(--deep); }
.card > header .more { margin-inline-start: auto; font-size: 14px; }
.card > .body { padding: 16px 24px 24px; }
.card > .body.flush { padding: 8px 0 0; }
.card.field-teal { background: var(--teal); color: #fff; border-color: var(--teal); } .card.field-teal header h3 { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--g200); }
.kpi { padding: 20px 24px 22px; border-inline-start: 1px solid var(--g200); position: relative; }
.kpi:first-child { border-inline-start: 0; }
.kpi::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 4px; background: var(--c, var(--teal)); }
.kpi .v { font-size: 48px; line-height: 1; font-weight: 300; color: var(--deep); letter-spacing: -.01em; }
.kpi .v small { font-size: 22px; font-weight: 300; margin-inline-start: 2px; }
.kpi .l { margin-top: 10px; font-size: 14px; font-weight: 600; } .kpi .s { font-size: 13px; color: var(--g600); margin-top: 2px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: start; font-size: 12.5px; font-weight: 600; color: var(--g600); padding: 10px 12px; border-bottom: 1px solid var(--g400); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
th:first-child, td:first-child { padding-inline-start: 24px; } th:last-child, td:last-child { padding-inline-end: 24px; }
tr:last-child td { border-bottom: 0; }
tbody tr.go { cursor: pointer; transition: background 120ms var(--ease); } tbody tr.go:hover { background: var(--g50); }
td .t { font-weight: 600; color: var(--g900); } td .d { font-size: 13px; color: var(--g600); }
.rank { width: 28px; color: var(--g400); font-weight: 300; font-size: 18px; }

/* ---------- small parts ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--g100); color: var(--g900); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g400); }
.chip.ok::before { background: var(--green); } .chip.warn::before { background: var(--warn); } .chip.bad::before { background: var(--danger); } .chip.info::before { background: var(--sky); }
.chip.plain::before { display: none; }
.chip.new { background: var(--tint-2); color: var(--deep); } .chip.new::before { background: var(--cyan); }
.bar { height: 6px; background: var(--g100); position: relative; min-width: 60px; }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--teal); }
.score { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.score .bar { flex: 1; } .score b { font-weight: 600; width: 34px; text-align: end; }
.score.blocked .bar i { background: var(--g400); } .score.blocked b { color: var(--g600); }
.stack { display: flex; height: 8px; direction: rtl; background: var(--g100); min-width: 80px; }
.stack i { display: block; height: 100%; }
.s-verified { background: var(--teal); } .s-inferred { background: var(--cyan); } .s-partial { background: var(--warn); } .s-missing { background: var(--g200); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--g600); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; display: block; }
.lvl { display: inline-flex; gap: 3px; direction: rtl; vertical-align: middle; }
.lvl i { width: 14px; height: 8px; background: var(--g200); } .lvl i.on { background: var(--teal); } .lvl i.req { box-shadow: inset 0 0 0 1.5px var(--deep); background: #fff; } .lvl i.low { background: var(--warn); }
.imp { letter-spacing: 2px; color: var(--teal); font-size: 10px; } .imp s { color: var(--g200); text-decoration: none; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 360px; } .search .ico { position: absolute; inset-inline-start: 12px; top: 13px; color: var(--g600); }
.search input { width: 100%; height: 44px; border: 1px solid var(--g400); padding-inline: 40px 12px; }
.search input:focus, .select:focus { outline: none; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.select { height: 44px; border: 1px solid var(--g400); background: #fff; padding: 0 12px; border-radius: 0; min-width: 180px; max-width: 320px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--g400); margin-bottom: 24px; }
.tabs button { background: none; border: 0; padding: 10px 16px 12px; font-weight: 600; color: var(--g600); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--deep); } .tabs button.on { color: var(--deep); border-bottom-color: var(--teal); }
.seg { display: inline-flex; border: 1px solid var(--teal); } .seg button { border: 0; background: #fff; padding: 0 16px; height: 42px; cursor: pointer; font-weight: 600; color: var(--teal); font-size: 14px; }
.seg button + button { border-inline-start: 1px solid var(--teal); } .seg button.on { background: var(--teal); color: #fff; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14.5px; } .dl dt { color: var(--g600); } .dl dd { margin: 0; font-weight: 600; }
.gate { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--g100); font-size: 14.5px; } .gate:last-child { border: 0; }
.gate .ico { margin-top: 2px; } .gate.ok .ico { color: var(--green); } .gate.no .ico { color: var(--danger); } .gate .d { font-size: 13px; color: var(--g600); }
.explain { background: var(--tint); border-inline-start: 4px solid var(--teal); padding: 18px 22px; } .explain p + p { margin-top: 8px; }
.explain h4 { font-size: 14px; color: var(--teal); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.big-score { font-size: 72px; font-weight: 300; line-height: 1; color: var(--deep); } .big-score small { font-size: 24px; color: var(--g600); }
.empty { padding: 48px 24px; text-align: center; color: var(--g600); }
.skel { height: 180px; background: linear-gradient(90deg, var(--g50), var(--g100), var(--g50)); background-size: 200% 100%; animation: sk 1.2s linear infinite; } @keyframes sk { to { background-position: -200% 0; } }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding: 14px 24px; font-size: 14px; color: var(--g600); border-top: 1px solid var(--g100); }
.pager button { width: 36px; height: 36px; border: 1px solid var(--g400); background: #fff; cursor: pointer; display: grid; place-items: center; } .pager button[disabled] { opacity: .35; cursor: default; }
.heat td, .heat th { text-align: center; padding: 0; border: 0; } .heat th { padding: 8px 6px; white-space: normal; font-size: 12.5px; line-height: 1.2; vertical-align: bottom; }
.heat td:first-child, .heat th:first-child { text-align: start; padding: 10px 24px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.heat td.c { height: 46px; border: 2px solid #fff; font-size: 14px; font-weight: 600; cursor: default; }
.avatar { width: 56px; height: 56px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; flex: none; }
.hero { display: flex; gap: 20px; align-items: center; }
.hero h1 { font-size: 32px; color: var(--deep); line-height: 1.15; } .hero p { color: var(--g600); margin-top: 2px; }
.callout { background: var(--deep); color: #fff; padding: 22px 24px; position: relative; overflow: hidden; }
.callout .v { font-size: 44px; font-weight: 300; line-height: 1; } .callout .l { margin-top: 8px; font-size: 14px; color: #cfe3e7; }
.drop { border: 1.5px dashed var(--sky); background: var(--tint); padding: 36px 24px; text-align: center; cursor: pointer; transition: background 120ms var(--ease); } .drop:hover, .drop.over { background: var(--tint-2); }
.drop .ico { width: 32px; height: 32px; color: var(--teal); margin-bottom: 8px; }
.steps { display: flex; gap: 0; margin-bottom: 24px; counter-reset: s; } .steps div { flex: 1; padding: 12px 16px; background: var(--g50); font-size: 14px; font-weight: 600; color: var(--g600); border-inline-start: 2px solid #fff; counter-increment: s; }
.steps div::before { content: counter(s) "  "; font-weight: 300; } .steps div.on { background: var(--teal); color: #fff; } .steps div.done { background: var(--tint-2); color: var(--deep); }
.toast { position: fixed; bottom: 24px; inset-inline-start: 24px; background: var(--deep); color: #fff; padding: 14px 20px; font-size: 14.5px; z-index: 200; box-shadow: 0 12px 32px rgba(5, 69, 79, .18); animation: in 200ms var(--ease); display: flex; gap: 10px; align-items: center; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 69, 79, .45); z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal { background: #fff; border-radius: 8px; width: min(920px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 12px 32px rgba(5, 69, 79, .18); }
.modal > header { display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px 0; } .modal > header h2 { font-size: 22px; color: var(--deep); } .modal > header button { margin-inline-start: auto; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--g600); }
.modal > .body { padding: 20px 28px 28px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--g400); } .stepper button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--teal); } .stepper span { min-width: 64px; text-align: center; font-size: 13.5px; font-weight: 600; }
.path { display: flex; align-items: stretch; gap: 0; } .path > div { flex: 1; padding: 16px 20px; border: 1px solid var(--g200); } .path > div + div { border-inline-start: 0; } .path .now { background: var(--tint); }
.trend-up { color: var(--green); } .trend-down { color: var(--danger); }
/* help page */
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.help-toc { position: sticky; top: 24px; display: grid; gap: 2px; }
.help-toc .search { max-width: none; margin-bottom: 12px; }
.help-toc a { display: block; padding: 10px 12px; min-height: 44px; color: var(--deep); text-decoration: none; border-inline-start: 2px solid var(--g200); font-size: 15px; }
.help-toc a:hover { background: var(--tint); border-color: var(--teal); }
.help-block { scroll-margin-top: 24px; }
.help-h2 { font-size: 22px; font-weight: 700; color: var(--deep); margin: 8px 0 12px; }
.help-h4 { font-size: 14px; font-weight: 600; color: var(--deep); margin: 18px 0 6px; } .help-terms .help-h4:first-child { margin-top: 0; }
.help-acc { border: 1px solid var(--g200); background: #fff; } .help-acc + .help-acc { border-top: 0; }
.help-acc > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; cursor: pointer; font-weight: 600; color: var(--deep); list-style: none; }
.help-acc > summary::-webkit-details-marker { display: none; }
.help-acc > summary::after { content: "+"; margin-inline-start: auto; font-size: 20px; font-weight: 400; color: var(--teal); }
.help-acc[open] > summary::after { content: "−"; }
.help-acc > summary .ico { color: var(--teal); }
.help-acc > summary:hover { background: var(--g50); }
.help-body { padding: 4px 20px 20px; line-height: 1.6; }
.help-steps, .help-start, .help-list { padding-inline-start: 22px; display: grid; gap: 6px; }
.help-start { padding: 0; list-style: none; counter-reset: hs; gap: 0; }
.help-start li { counter-increment: hs; display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--g100); }
.help-start li:last-child { border-bottom: 0; }
.help-start li::before { content: counter(hs); font-size: 24px; font-weight: 300; color: var(--teal); min-width: 24px; }
.help-start li > div { flex: 1; } .help-start li .link { min-height: 44px; }
.help-tbl { width: 100%; } .help-tbl th, .help-tbl td { text-align: start; padding: 8px 0; border-bottom: 1px solid var(--g100); font-size: 14.5px; vertical-align: top; } .help-tbl th { width: 40%; font-weight: 600; padding-inline-end: 16px; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; } }
