:root {
  color-scheme: light;
  --ink: #0d2b4a;
  --muted: #60758a;
  --line: #d7e4ef;
  --paper: #f3f8fc;
  --card: #ffffff;
  --primary: #218bd2;
  --primary-dark: #10558f;
  --primary-soft: #e8f4fd;
  --red: #e35454;
  --amber: #d99628;
  --navy: #082b4e;
  --shadow: 0 18px 45px rgba(20, 68, 108, .09);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.eyebrow { margin: 0 0 8px; color: var(--primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.muted { color: var(--muted); }

.login-page { background: var(--navy); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-brand { position: relative; overflow: hidden; padding: clamp(42px, 8vw, 110px); display: flex; flex-direction: column; justify-content: center; color: white; background: radial-gradient(circle at 20% 20%, #218bd2 0, transparent 42%), linear-gradient(145deg, #082b4e, #10558f); }
.login-brand::after { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; left: -180px; bottom: -220px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.brand-logo { display: block; width: 124px; height: auto; object-fit: contain; }
.brand-logo-light { width: 176px; margin-bottom: 60px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 32px rgba(0,25,55,.22); }
.login-brand .eyebrow { color: #a8d9fa; }
.login-brand h1 { max-width: 650px; margin: 0; font-size: clamp(45px, 6vw, 82px); line-height: .98; letter-spacing: -.05em; }
.login-brand > p:not(.eyebrow) { max-width: 520px; color: #b9c8cc; font-size: 19px; line-height: 1.7; }
.signal-row { display: flex; gap: 8px; align-items: end; height: 42px; margin-top: 36px; direction: ltr; }
.signal-row span { display: block; width: 8px; border-radius: 8px; background: #55b7f2; }
.signal-row span:nth-child(1) { height: 12px; opacity: .35; }.signal-row span:nth-child(2) { height: 20px; opacity: .5; }.signal-row span:nth-child(3) { height: 29px; opacity: .7; }.signal-row span:nth-child(4) { height: 38px; }.signal-row span:nth-child(5) { height: 25px; opacity: .7; }
.login-card { padding: clamp(32px, 9vw, 140px); background: white; display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { margin: 0; font-size: 38px; }
.login-card form { margin-top: 42px; display: grid; gap: 11px; }
.login-card label { margin-top: 10px; font-weight: 700; font-size: 14px; }
.login-card input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fbfcfc; direction: ltr; text-align: left; transition: .2s; }
.login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(33,139,210,.12); }
.login-card button { margin-top: 18px; border: 0; border-radius: 10px; padding: 15px; background: linear-gradient(135deg, #2a9be2, #1675bb); color: white; font-weight: 800; box-shadow: 0 10px 24px rgba(33,139,210,.24); }
.login-card button:hover { background: var(--primary-dark); }.login-card button:disabled { opacity: .6; }
.form-error { margin: 4px 0 0; color: #b93434; font-size: 14px; }

.topbar { height: 76px; padding: 0 clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand small { padding-right: 14px; border-right: 1px solid var(--line); color: var(--primary-dark); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }.system-live { display: flex; align-items: center; gap: 7px; color: var(--primary-dark); font-size: 13px; font-weight: 700; }.system-live i { width: 8px; height: 8px; border-radius: 50%; background: #18a875; box-shadow: 0 0 0 5px rgba(24,168,117,.12); }
.tenant-selector { min-height: 44px; max-width: 260px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.icon-button, .text-button { border: 1px solid var(--line); background: white; border-radius: 9px; height: 38px; padding: 0 13px; color: var(--ink); }.icon-button { width: 38px; font-size: 20px; }.spinning { animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(-360deg); } }
.dashboard-shell { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.page-heading, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.page-heading h1 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; }.page-heading p { margin-bottom: 0; }.updated-at { color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 52px; }.summary-card { padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 6px 20px rgba(20,68,108,.04); }.summary-card p { margin: 0; color: var(--muted); font-size: 14px; }.summary-card strong { display: block; margin: 13px 0 7px; font-size: 36px; }.summary-card span { color: var(--muted); font-size: 12px; }.summary-card.positive { border-top: 3px solid var(--primary); }.summary-card.negative { border-top: 3px solid var(--red); }.summary-card.warning { border-top: 3px solid var(--amber); }
.critical-alert { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin: -24px 0 48px; padding: 24px; border: 3px solid #b42318; border-radius: 14px; background: #fff1f0; color: #711b13; box-shadow: 0 12px 35px rgba(180,35,24,.18); }.critical-alert[hidden] { display: none; }.critical-alert-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #b42318; color: white; font-size: 32px; font-weight: 900; }.critical-alert h2 { margin: 0 0 8px; font-size: 26px; }.critical-alert p { margin: 0 0 10px; font-weight: 700; }.critical-alert ul { display: grid; gap: 8px; margin: 0; padding-right: 24px; }.critical-alert li { padding: 6px 0; }.critical-alert li a { display: inline-block; margin-right: 12px; color: #711b13; font-weight: 800; text-decoration: underline; }
.section-heading h2 { margin: 0; font-size: 27px; }.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; }.dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; }.dot.online { background: #18a875; }.dot.offline { background: var(--red); }
.sites-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }.site-card { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }.site-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }.site-identity { display: flex; gap: 12px; min-width: 0; }.site-favicon { flex: 0 0 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; }.site-card h3 { margin: 1px 0 5px; font-size: 18px; }.site-card a { color: var(--muted); font-size: 12px; text-decoration: none; }.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }.status-pill i { width: 7px; height: 7px; border-radius: 50%; }.status-pill.online { color: #087354; background: #e8f8f2; }.status-pill.online i { background: #18a875; }.status-pill.offline { color: #a62f2f; background: #fff0ef; }.status-pill.offline i { background: var(--red); }.status-pill.waiting { color: #8a651c; background: #fff7e5; }.status-pill.waiting i { background: var(--amber); }
.critical-site-card { border: 3px solid #b42318; background: linear-gradient(180deg, #fff8f7, #fff); box-shadow: 0 0 0 5px rgba(180,35,24,.10), 0 18px 45px rgba(180,35,24,.20); animation: critical-pulse 1.8s ease-in-out 2; scroll-margin-top: 100px; }.critical-site-card .status-pill.offline { border: 2px solid #b42318; font-weight: 900; }.critical-site-card:target { outline: 5px solid #711b13; outline-offset: 5px; }
@keyframes critical-pulse { 50% { box-shadow: 0 0 0 10px rgba(180,35,24,.16), 0 22px 52px rgba(180,35,24,.28); } }
@media (prefers-reduced-motion: reduce) { .critical-site-card { animation: none; }.spinning { animation: none; } }
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 24px 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.metrics-row div { padding: 13px; background: #fafcfc; }.metrics-row span, .metrics-row strong { display: block; }.metrics-row span { margin-bottom: 6px; color: var(--muted); font-size: 11px; }.metrics-row strong { font-size: 13px; }
.seo-panel { padding-top: 18px; border-top: 1px solid var(--line); }.seo-heading, .progress-label { display: flex; justify-content: space-between; }.seo-heading { font-size: 13px; font-weight: 800; }.scan-status { color: var(--primary-dark); }.progress-track { height: 7px; margin: 13px 0 8px; overflow: hidden; border-radius: 8px; background: #e2edf6; }.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2a9be2, #176eb0); }.progress-label { color: var(--muted); font-size: 11px; }.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }.issue-chip { padding: 9px; border: 1px solid transparent; border-radius: 8px; background: #f3f7fb; color: var(--muted); font-size: 11px; text-align: right; }.issue-chip:not(:disabled):hover { border-color: #bddbf0; background: var(--primary-soft); }.issue-chip:disabled { cursor: default; }.issue-chip b { color: var(--ink); }.issue-chip small { margin-right: 4px; color: var(--primary-dark); font-size: 9px; }.issue-chip.informational { border-style: dashed; }.empty-copy { margin: 14px 0 0; color: var(--muted); font-size: 12px; }.site-error { margin: 14px 0 0; padding: 10px; border-radius: 8px; background: #fff4f3; color: #a62f2f; font-size: 11px; direction: ltr; text-align: left; overflow-wrap: anywhere; }
.state-card { margin-top: 20px; padding: 36px; border: 1px dashed #bdc9cd; border-radius: 14px; color: var(--muted); text-align: center; }.error-state { color: #a62f2f; background: #fff5f4; }
.site-icon-actions, .admin-site-actions { display: flex; align-items: center; gap: 9px; margin-top: 15px; }.admin-site-actions { justify-content: flex-end; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.site-icon-action { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid #bddbf0; border-radius: 9px; background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }.site-icon-action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.site-icon-action:hover { border-color: var(--primary); background: #dceefb; }.site-icon-action:disabled, .site-icon-action.unavailable { cursor: default; opacity: .42; }.delete-site-button { border-color: #e8b8b8; background: white; color: #9c2929; }.delete-site-button:hover { border-color: #c94a4a; background: #fff5f4; }
.rescan-site-button { background: white; }
.stop-scan-button { border-color: #d9a441; background: #fff8e8; color: #704f0f; }
.resume-scan-button { border-color: #82c6a9; background: #eaf8f1; color: #087354; }
.clear-scan-button { border-color: #e8b8b8; background: #fff5f4; color: #9c2929; }
.scan-date { margin: 12px 0 0; color: var(--muted); }.scan-date strong { color: var(--ink); }.rescan-cooldown { margin: 8px 0 0; color: #8a651c; }
.current-sitemap-url { direction: ltr; text-align: left; overflow-wrap: anywhere; color: var(--primary-dark); }
.pages-filters { display: flex; gap: 7px; padding: 12px 28px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f8fbfd; }.pages-filters button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: 11px; }.pages-filters button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; }
.pages-dialog { width: min(1180px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(7,43,78,.28); }.pages-dialog::backdrop { background: rgba(5,28,51,.62); backdrop-filter: blur(3px); }.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; padding: 24px 28px; border-bottom: 1px solid var(--line); background: white; }.dialog-header h2 { margin: 0; font-size: 25px; }.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 25px; line-height: 1; }.dialog-state { padding: 60px 28px; color: var(--muted); text-align: center; }.pages-table-wrap { overflow: auto; max-height: 570px; }.pages-table { width: 100%; border-collapse: collapse; direction: rtl; }.pages-table th { position: sticky; top: 0; padding: 12px 14px; background: #edf5fb; color: var(--primary-dark); font-size: 11px; text-align: right; white-space: nowrap; }.pages-table td { max-width: 330px; padding: 13px 14px; border-bottom: 1px solid var(--line); color: #314b62; font-size: 12px; vertical-align: top; }.pages-table td a { display: block; max-width: 300px; color: var(--primary-dark); direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }.title-cell { min-width: 220px; }.http-badge { display: inline-block; min-width: 43px; padding: 4px 7px; border-radius: 6px; font-weight: 800; text-align: center; }.status-ok { color: #087354; background: #e8f8f2; }.status-error { color: #a62f2f; background: #fff0ef; }.row-error { display: block; margin-top: 5px; color: #a62f2f; direction: ltr; text-align: left; }.dialog-footer { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }.dialog-footer > div { display: flex; gap: 8px; }.dialog-footer button:disabled { cursor: default; opacity: .4; }
.sort-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: inherit; font-weight: 800; }.sort-button:hover, .sort-button.active { background: #dceefb; }.sort-button span { min-width: 18px; }

@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; }.login-brand { min-height: 38vh; padding: 38px 28px; }.brand-logo-light { margin-bottom: 34px; }.login-card { padding: 48px 28px; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.sites-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .system-live { display: none; }.topbar { padding: 0 16px; }.dashboard-shell { width: min(100% - 24px, 1380px); padding-top: 36px; }.page-heading { align-items: start; flex-direction: column; }.summary-grid { gap: 10px; margin-top: 26px; }.summary-card { padding: 17px; }.summary-card strong { font-size: 29px; }.legend { display: none; }.site-card { padding: 17px; }.metrics-row { grid-template-columns: 1fr; }.issue-grid { grid-template-columns: 1fr 1fr; } }

/* Project accessibility baseline: no user-facing text below 18px. */
body { font-size: 18px; }
button, input, select, label, p, span, small, a, th, td { font-size: 18px !important; }
.metrics-row strong { font-size: 18px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #0b63a5; outline-offset: 3px; }
.users-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(7,43,78,.28); }
.users-dialog::backdrop { background: rgba(5,28,51,.62); }
.users-content { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr); gap: 32px; padding: 28px; overflow: auto; }
.users-content h3 { margin-top: 0; font-size: 22px; }.user-form { display: grid; gap: 12px; align-content: start; }.user-form label { font-weight: 700; }
.user-form input, .user-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; }.user-form input { direction: ltr; text-align: left; }
#new-user-full-name { direction: rtl; text-align: right; }
.password-field { position: relative; direction: ltr; }.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 44px; min-height: 40px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--primary-dark); }
.password-toggle:hover { background: var(--primary-soft); }
.login-card .password-field input { padding-right: 58px; }
.login-card .password-field .password-toggle {
  top: 50%;
  right: 6px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--primary-dark);
  box-shadow: none;
  transform: translateY(-50%);
}
.login-card .password-field .password-toggle:hover { background: var(--primary-soft); }
.user-greeting { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.seo-unavailable-message { padding: 14px; border: 1px solid #d9a441; border-radius: 9px; background: #fff8e8; color: #704f0f; }
.form-help, .form-status { min-height: 27px; margin: 0; color: var(--muted); }.form-status.success { color: #087354; }.form-status.error { color: #a62f2f; }
.primary-button { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 9px; background: var(--primary-dark); color: white; font-weight: 800; }.primary-button:disabled { opacity: .6; }
.users-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }.users-list li { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfd; overflow-wrap: anywhere; }.users-list span { color: var(--muted); }
.users-list .user-email { color: var(--muted); font-weight: 400; direction: ltr; text-align: right; }
.users-list select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }.user-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }.user-actions .danger-button { border-color: #e8b8b8; color: #9c2929; }
.password-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(7,43,78,.28); }.password-dialog::backdrop { background: rgba(5,28,51,.62); }.password-dialog-content { display: grid; gap: 12px; padding: 28px; }.password-dialog-content p { margin-block: 0 8px; }.password-dialog-content label { font-weight: 700; }.password-dialog-content input { width: 100%; min-height: 48px; padding: 12px 58px 12px 14px; border: 1px solid var(--line); border-radius: 9px; direction: ltr; text-align: left; }
.destructive-dialog { border-top: 6px solid #b93434; }.destructive-submit { background: #a62f2f; }.destructive-submit:hover { background: #7f1f1f; }
@media (max-width: 760px) { .users-content { grid-template-columns: 1fr; }.topbar { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }.topbar-actions { flex-wrap: wrap; } }
