:root {
  --bg: #f4f7f6;
  --panel: #ffffff;
  --ink: #14231f;
  --muted: #6c7c76;
  --line: #dfe8e4;
  --nav: #10221d;
  --nav-soft: #1b332c;
  --accent: #16a36a;
  --accent-dark: #0b764a;
  --accent-pale: #e7f7f0;
  --warning: #d58a13;
  --warning-pale: #fff5dc;
  --danger: #c64049;
  --danger-pale: #fff0f1;
  --blue: #3478c9;
  --shadow: 0 12px 32px rgba(18, 39, 32, .07);
  --radius: 16px;
  font-family: Inter, "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
code, pre { direction: ltr; text-align: left; font-family: "SFMono-Regular", Consolas, monospace; }
code { font-size: .88em; }
.sidebar { position: fixed; inset: 0 0 0 auto; width: 268px; min-height: 100vh; background: linear-gradient(180deg, #10251f, #0d1d19); color: #dbe9e3; padding: 26px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand small { color: #87a49a; font-size: 10px; letter-spacing: .04em; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #2ed48c, #0b8a58); color: #fff; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 8px 18px rgba(22,163,106,.25); }
.brand-mark.large { width: 58px; height: 58px; font-size: 21px; border-radius: 17px; }
.sidebar nav { display: grid; gap: 4px; padding: 22px 0; }
.sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #b9cdc5; transition: .15s ease; }
.sidebar nav a span { width: 20px; text-align: center; color: #78968b; direction: ltr; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.045); }
.sidebar nav a.active { color: #fff; background: var(--nav-soft); box-shadow: inset -3px 0 var(--accent); }
.sidebar nav a.active span { color: #32d995; }
.sidebar-foot { margin-top: auto; color: #829e94; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.online-dot, .status-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: #2ed48c; box-shadow: 0 0 0 3px rgba(46,212,140,.13); }
.status-dot.off { background: #9babaa; box-shadow: none; }
.status-dot.good { background: #20b876; }
.link-button { border: 0; background: transparent; color: #9cb6ac; cursor: pointer; text-decoration: underline; padding: 0; }
.main { margin-right: 268px; min-height: 100vh; padding: 32px clamp(24px, 4vw, 58px) 64px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.eyebrow { color: var(--accent-dark); font-size: 10px; letter-spacing: .16em; font-weight: 800; margin: 0 0 4px; direction: ltr; text-align: inherit; }
.owner-chip { text-align: left; background: var(--panel); border: 1px solid var(--line); padding: 9px 13px; border-radius: 10px; box-shadow: var(--shadow); }
.owner-chip span, .owner-chip strong { display: block; }
.owner-chip span { font-size: 10px; color: var(--muted); }
.owner-chip strong { font-size: 13px; direction: ltr; }
.hero-strip { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: linear-gradient(100deg, #15362c, #10251f); color: #eaf7f2; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.hero-strip > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 9px; }
.hero-strip small { grid-column: 2; color: #a9c7bc; }
.hero-strip p { color: #bcd2ca; max-width: 580px; margin: 0; font-size: 13px; }
.pulse { width: 10px; height: 10px; border-radius: 99px; background: #31dc98; box-shadow: 0 0 0 7px rgba(49,220,152,.13); grid-row: span 2; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric-grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.metric-grid article::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: .6; }
.metric-grid article.warning::before { background: var(--warning); }
.metric-grid article.danger::before { background: var(--danger); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; font-size: 29px; line-height: 1.25; margin: 7px 0 3px; letter-spacing: -.04em; }
.metric-grid small { font-size: 11px; }
.metric-grid.compact strong { font-size: 20px; }
.code-value { font-family: monospace; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel.accent { border-color: #b7dfcf; background: linear-gradient(135deg, #fff, #f4fcf8); }
.panel h2 { margin: 2px 0 12px; font-size: 20px; letter-spacing: -.02em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.panel-head h2 { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th { color: #73817c; font-size: 11px; font-weight: 700; text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid #edf2f0; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfa; }
.project-link { font-weight: 700; text-decoration: none; }
.project-link small, td small { display: block; color: var(--muted); font-weight: 400; }
.badge { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #48605a; background: #edf3f1; direction: ltr; }
.badge.current, .badge.pass, .badge.active, .badge.compatible, .badge.succeeded { color: #087247; background: #e1f7ed; }
.badge.pass_with_warnings, .badge.warning, .badge.medium, .badge.unverified_change { color: #936008; background: var(--warning-pale); }
.badge.fail, .badge.danger, .badge.critical, .badge.high, .badge.incompatible, .badge.revoked { color: #a72d38; background: var(--danger-pale); }
.badge.unknown, .badge.stale, .badge.last_known, .badge.offline { color: #5c6f69; background: #edf1f0; }
.secondary, .primary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 700; }
.primary { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.primary:hover { background: #075f3c; }
.secondary:hover { background: #f4f8f6; }
.wide { width: 100%; }
.empty { padding: 42px; text-align: center; color: var(--muted); border: 1px dashed #cad8d3; border-radius: 12px; }
.empty > span { font-size: 30px; color: #9ab3aa; }
.empty h3 { color: var(--ink); margin: 8px 0 3px; }
.empty.small { padding: 18px; }
.wide-empty { grid-column: 1 / -1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.flow-list { display: flex; gap: 14px; align-items: center; }
.flow-list div { flex: 1; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.flow-list b, .flow-list span { display: block; }
.flow-list span { color: var(--muted); font-size: 12px; }
.flow-list i { color: var(--accent); font-style: normal; direction: ltr; }
.page-intro { max-width: 900px; color: var(--muted); margin: -9px 0 22px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-decoration: none; transition: .15s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #aad6c5; }
.project-card h2 { margin: 13px 0 4px; }
.project-card p { color: var(--muted); min-height: 47px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.project-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.project-card dl div, .settings-list div { background: #f6f9f8; padding: 9px; border-radius: 8px; }
dt { color: var(--muted); font-size: 10px; }
dd { margin: 2px 0 0; font-weight: 700; }
.project-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); padding: 20px 22px; border-radius: var(--radius); margin-bottom: 16px; }
.project-hero p { margin: 4px 0; color: var(--muted); }
.gate-block { min-width: 160px; text-align: left; border-right: 1px solid var(--line); padding-right: 24px; }
.gate-block strong, .gate-block small { display: block; direction: ltr; }
.gate-block strong { font-size: 20px; margin-top: 7px; }
.gate-block small { color: var(--muted); }
.tabs { display: flex; overflow-x: auto; gap: 4px; margin: 0 0 17px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.tabs a { flex: 0 0 auto; text-decoration: none; color: var(--muted); border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.tabs a:hover { color: var(--ink); background: var(--accent-pale); }
.architecture-copy { font-size: 17px; line-height: 1.75; max-width: 950px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; }
.finding { display: flex; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.finding.blocking { border-color: #efc2c6; background: #fff9f9; }
.finding p { margin: 3px 0; }
.finding small { color: var(--muted); direction: ltr; display: block; text-align: left; }
pre { overflow-x: auto; padding: 16px; background: #10251f; color: #d9f2e8; border-radius: 11px; font-size: 12px; }
.ltr { direction: ltr; text-align: left; }
.inline-form { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr auto; gap: 10px; align-items: end; }
label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
input, select { width: 100%; min-height: 41px; border: 1px solid #cddad5; background: #fff; border-radius: 9px; padding: 8px 10px; color: var(--ink); outline: 0; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,106,.12); }
.secret-result { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; background: #10251f; color: #fff; border-radius: 10px; direction: rtl; }
.secret-result code { flex: 1; word-break: break-all; color: #8ff1c7; }
.secret-result button { border: 0; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.hidden { display: none !important; }
.actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.actions button, .danger-button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 8px; cursor: pointer; font-size: 11px; }
.actions .danger-button { color: var(--danger); border-color: #ecc4c8; }
dialog { border: 0; border-radius: 14px; padding: 24px; box-shadow: 0 25px 80px rgba(0,0,0,.25); min-width: min(420px, 90vw); }
dialog::backdrop { background: rgba(8,24,19,.55); }
.dialog-actions { display: flex; justify-content: flex-start; gap: 8px; margin-top: 18px; }
.dialog-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.steps { display: grid; gap: 8px; padding-right: 22px; }
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-left: 8px; }
.client-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent-dark); background: var(--accent-pale); border-radius: 12px; font-size: 20px; font-weight: 800; }
.agent-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.agent-grid .panel { margin-bottom: 0; }
.workflow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; direction: ltr; }
.workflow span { border: 1px solid #b7dfcf; background: #fff; border-radius: 8px; padding: 6px 9px; font-family: monospace; }
.workflow i { color: var(--accent); font-style: normal; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 18px; align-items: start; }
.docs-nav { position: sticky; top: 20px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; max-height: calc(100vh - 40px); overflow-y: auto; }
.docs-nav a { padding: 7px 9px; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: 11px; direction: ltr; text-align: left; }
.docs-nav a:hover, .docs-nav a.selected { background: var(--accent-pale); color: var(--accent-dark); }
.docs-content { min-width: 0; }
.docs-content h1, .docs-content h2, .docs-content h3 { margin-top: 1.6em; scroll-margin-top: 20px; }
.docs-content h1 { font-size: 29px; }
.docs-content h2 { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.docs-content p, .docs-content li { max-width: 900px; }
.settings-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-list div { display: flex; justify-content: space-between; gap: 10px; }
.alert { border-radius: 11px; padding: 12px 15px; margin-bottom: 16px; }
.alert.warning { color: #7d540e; background: var(--warning-pale); border: 1px solid #efd28f; }
.alert.danger { color: #982c35; background: var(--danger-pale); border: 1px solid #efc1c5; }
.alert.info { color: #245a8f; background: #eaf4ff; border: 1px solid #bfd9f2; }
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 50; transform: translateY(140%); opacity: 0; background: #143b2e; color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.bad { background: #9c3039; }
.login-body { min-height: 100vh; background: #0d1e19; color: #fff; display: grid; place-items: center; padding: 28px; }
.login-shell { width: min(1040px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #15392d, #0d241d); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.login-copy { padding: clamp(36px, 7vw, 84px); position: relative; overflow: hidden; }
.login-copy::after { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(93,238,179,.16); border-radius: 50%; left: -130px; bottom: -150px; box-shadow: 0 0 0 55px rgba(93,238,179,.035), 0 0 0 110px rgba(93,238,179,.025); }
.login-copy .eyebrow { margin-top: 38px; color: #55dfa9; }
.login-copy h1 { font-size: clamp(40px, 6vw, 67px); line-height: 1.03; margin: 8px 0 18px; letter-spacing: -.05em; }
.login-copy > p { color: #a9c4ba; max-width: 520px; font-size: 17px; }
.trust-list { list-style: none; padding: 0; margin-top: 35px; display: grid; gap: 8px; color: #c8dcd4; }
.trust-list li::before { content: "•"; color: #42d99f; margin-left: 10px; }
.login-card { background: #f8fbfa; color: var(--ink); padding: clamp(34px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { font-size: 29px; margin: 2px 0; }
.login-card .muted { color: var(--muted); margin: 0 0 24px; }
.login-card form { display: grid; gap: 15px; }
.login-card input { min-height: 46px; }
.login-card .primary { margin-top: 5px; min-height: 46px; }
.fine { color: var(--muted); font-size: 10px; margin-top: 20px; }
@media (max-width: 1100px) {
  .metric-grid, .agent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inline-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .sidebar { position: static; width: auto; min-height: auto; padding: 16px; }
  .sidebar nav { display: flex; overflow-x: auto; padding: 13px 0 4px; }
  .sidebar nav a { flex: 0 0 auto; }
  .sidebar-foot { display: none; }
  .main { margin: 0; padding: 22px 15px 44px; }
  .topbar { align-items: center; }
  .hero-strip, .project-hero { align-items: flex-start; flex-direction: column; }
  .gate-block { border-right: 0; border-top: 1px solid var(--line); padding: 13px 0 0; width: 100%; text-align: right; }
  .two-col, .docs-layout, .login-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: 220px; }
  .login-copy { display: none; }
}
@media (max-width: 560px) {
  .metric-grid, .cards-grid, .agent-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .owner-chip { display: none; }
  .flow-list { align-items: stretch; flex-direction: column; }
  .flow-list i { transform: rotate(90deg); align-self: center; }
}

