@font-face { font-family: Heebo; font-weight: 400; font-display: swap; src: url(fonts/heebo-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 500; font-display: swap; src: url(fonts/heebo-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 700; font-display: swap; src: url(fonts/heebo-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 400; font-display: swap; src: url(fonts/heebo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713; }
@font-face { font-family: Heebo; font-weight: 500; font-display: swap; src: url(fonts/heebo-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713; }
@font-face { font-family: Heebo; font-weight: 700; font-display: swap; src: url(fonts/heebo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713; }

:root {
  --accent: #ea782e;
  --accent-ink: #a34a12;
  --accent-soft: #fdf0e6;
  --ink: #1d2126;
  --muted: #5f6873;
  --line: #e4e6ea;
  --surface: #ffffff;
  --canvas: #f6f6f4;
  --ok: #1c6b45;
  --ok-soft: #e4f3ea;
  --warn: #8a5a00;
  --warn-soft: #fbf1d9;
  --error: #a32a2a;
  --error-soft: #fbe6e6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.55 Heebo, system-ui, sans-serif; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; }
h2 { font-size: 19px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0; }
h4 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
p { margin: 0 0 8px; }
a { color: var(--accent-ink); }
.ltr { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; padding: 16px; align-items: start; }
.sidebar { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; box-shadow: 0 8px 24px rgb(29 33 38 / 6%); min-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.wordmark { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); padding: 0 8px 14px; }
.wordmark .ltr { font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink); align-self: flex-start; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav { flex: 1; }
.sidebar nav a, .nav-soon { display: block; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.sidebar nav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.nav-soon { color: var(--muted); }
.nav-soon small { font-size: 11px; margin-inline-start: 4px; }
.sidebar-user { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 13px; }

.content { min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 6px 4px 40px; }
.page-head, .section-head, .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-head h2 { margin-bottom: 0; }
.section-head { margin-bottom: 12px; align-items: center; }

.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 13px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; }
.chips li { background: var(--canvas); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.danger-zone { margin-top: 12px; font-size: 13px; }
.danger-zone summary { cursor: pointer; color: var(--muted); }
.fixture-control { margin-top: 8px; }

.button { display: inline-block; font: inherit; font-weight: 500; font-size: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #1c0f05; }
.button.primary:hover { background: #dd6c23; }
.button.danger { color: var(--error); border-color: var(--error); }
.button.small { padding: 4px 10px; font-size: 13px; margin-top: 8px; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.link-button { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }

.badge { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--canvas); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.error { background: var(--error-soft); color: var(--error); }

.notice { padding: 10px 14px; border-radius: 10px; background: var(--canvas); margin: 0; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: var(--error-soft); color: var(--error); }
.demo-banner { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); border-radius: 10px; padding: 9px 14px; margin: 0; }
.demo-tag { display: inline-block; background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); border-radius: 6px; padding: 1px 8px; font-size: 13px; }
.demo-tag.small { font-size: 11px; margin-inline-start: 6px; font-weight: 400; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); margin: 0; }

.gate { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gate li { display: flex; gap: 8px; }
.gate .passed > span:first-child { color: var(--ok); font-weight: 700; }
.gate .pending > span:first-child { color: var(--muted); }
.gate small { color: var(--muted); }
.gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gaps li + li { border-top: 1px solid var(--line); padding-top: 12px; }
.gaps p { margin: 2px 0 0; }
.meta-line { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.owner-review { background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 6px 10px; margin-top: 6px !important; font-size: 13px; }

label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], select { font: inherit; font-size: 14px; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; max-width: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.filters, .inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.inventory { width: 100%; border-collapse: collapse; }
.inventory thead th { text-align: start; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inventory td, .inventory tbody th { padding: 12px; text-align: start; vertical-align: top; font-weight: 400; }
.inventory td > span:not(.meta-line, .badge) { display: block; }
.asset-name { font-weight: 500; display: block; }
.is-linked th[scope="row"] { padding-inline-start: 26px; }
.detail-row td { padding: 0 12px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.next-step { margin: 0 0 4px; }
.detail-row summary { cursor: pointer; color: var(--accent-ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.inactive { color: var(--muted); text-decoration: line-through; }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 18px rgb(29 33 38 / 6%); }

.auth-card { max-width: 400px; margin: 10vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-card h1 { font-size: 22px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .sidebar { position: sticky; top: 0; z-index: 5; min-height: 0; border-radius: 0; border-width: 0 0 1px; padding: 8px 16px; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
  .wordmark { padding: 0; flex-direction: row; gap: 6px; align-items: baseline; }
  .wordmark .ltr { font-size: 17px; }
  .sidebar nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .sidebar nav ul { display: flex; gap: 4px; white-space: nowrap; }
  .sidebar nav li:has(a[aria-current]) { order: -1; }
  .sidebar nav a, .nav-soon { padding: 6px 9px; font-size: 13.5px; }
  .sidebar-user { border: 0; padding: 0; margin-inline-start: auto; }
  .content { padding: 14px 16px 40px; }
  .page-head { flex-direction: column; }
  .facts { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { background: none; border: 0; overflow: visible; }
  .inventory, .inventory tbody, .inventory tr, .inventory td, .inventory tbody th { display: block; width: 100%; }
  .inventory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .asset-row { background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-top: 12px; padding: 6px 0; }
  .detail-row { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .inventory td, .inventory tbody th { padding: 6px 14px; }
  .is-linked th[scope="row"] { padding-inline-start: 14px; }
  .inventory td[data-label]::before, .inventory tbody th[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); }
  .detail-row td { padding: 0 14px 12px; border: 0; }
  select { width: 100%; }
  .filters label, .inline-form label { flex: 1 1 140px; }
  .save-bar { flex-wrap: wrap; }
}

.range-line { font-size: 14px; }
.filters input[type="date"] { font: inherit; font-size: 14px; color: var(--ink); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
textarea { font: inherit; font-size: 14px; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); width: 100%; resize: vertical; }
.change { white-space: nowrap; font-weight: 500; }
.change.up { color: var(--ok); }
.change.down { color: var(--error); }
.change.flat { color: var(--muted); }
.sparkline { display: block; }
.watchlist td, .watchlist tbody th { vertical-align: middle; border-bottom: 1px solid var(--line); }
.client-row th { background: var(--canvas); font-weight: 700; padding: 8px 12px; }
.client-row a, .asset-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.client-row a:hover, .asset-link:hover { color: var(--accent-ink); text-decoration: underline; }
.table-wrap.flat { border: 0; border-radius: 0; }
.metrics tbody th, .metrics td { border-bottom: 1px solid var(--line); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.findings { gap: 14px; }
.finding + .finding { border-top: 1px solid var(--line); padding-top: 14px; }
.finding h4 { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0; }
.finding h4 a { color: inherit; }
.finding p { margin: 3px 0; }
.hypothesis { color: var(--muted); font-style: italic; }
.evidence { font-size: 13px; color: var(--muted); margin-top: 4px; }
.finding summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; }
.trend { margin: 0 0 18px; }
.trend figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.trend-title { font-weight: 500; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.swatch { display: inline-block; width: 20px; height: 0; border-top: 2px solid #c9620f; }
.swatch-previous { border-top: 2px dashed #3f78ad; }
.trend-svg { width: 100%; height: auto; display: block; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--accent-ink); }
.table-scroll { max-height: 240px; overflow-y: auto; font-size: 13px; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { text-align: start; padding: 3px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
.top-content { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.top-content li span { color: var(--muted); font-size: 13px; }
.top-content li strong { margin-inline: 10px; font-weight: 500; }
.panel h3 { margin: 14px 0 6px; font-size: 14px; }
.report-form { display: flex; flex-direction: column; gap: 14px; }
.check-row { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 14px; }
.check-row input { margin-top: 3px; flex: none; }
.internal { background: var(--canvas); border-style: dashed; }
.report-rows { gap: 10px; }
.report-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 800px; }

@media (max-width: 860px) {
  .watchlist tbody { margin-top: 12px; }
  .watch-row, .metrics tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; padding: 6px 0; }
  .watchlist .client-row { background: none; }
  .watchlist .client-row th { background: none; padding: 12px 4px 0; font-size: 16px; }
  .watchlist td, .watchlist tbody th, .metrics tbody th, .metrics td { border-bottom: 0; }
  .report-preview { padding: 14px; }
}

.filter-box > summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; padding: 4px 0 8px; }
@supports selector(::details-content) {
  @media (min-width: 861px) {
    .filter-box::details-content { display: block; content-visibility: visible; }
    .filter-box > summary { display: none; }
  }
}

.top-content li { display: list-item; }
.top-content li > span, .top-content li > strong, .top-content li > a { display: inline-block; margin-inline-end: 14px; }
.top-content li strong { margin-inline: 0 14px; }

.team-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; }
.team-fieldset legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.team-clients { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.invite-link { width: 100%; font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
