/* ============ Fonts ============
   Heebo – SIL Open Font License (free for commercial use), fonts/Heebo-OFL.txt */
@font-face { font-family: "Heebo"; font-weight: 100 900; font-display: swap; src: url("fonts/Heebo-var.woff") format("woff"); }

:root {
  --ink: #16191d;
  --ink-2: #4a5160;
  --muted: #7a8291;
  --line: #e3e6eb;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --bar: #14171c;
  --bar-2: #232830;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #e8efff;
  --danger: #d92d20;
  --ok: #12a150;
  --radius: 10px;
  --font: "Heebo", "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: #c9ced6; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { opacity: .5; cursor: default; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.wide { width: 100%; justify-content: center; padding: 11px; }
.btn.ghost-light { background: transparent; border-color: transparent; color: #d8dce3; }
.btn.ghost-light:hover { background: var(--bar-2); color: #fff; }
.btn.icon { font-size: 17px; padding: 5px 10px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.badge { background: #fff; color: var(--accent); border-radius: 20px; padding: 0 7px; font-size: 12px; min-width: 20px; text-align: center; }

/* ============ Forms ============ */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: #fff; }
.field input[type=checkbox], .field input[type=radio] { width: auto; padding: 0; flex: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 0 0 14px; cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.muted-light { color: #9aa2b1; font-size: 13px; }
.error { color: var(--danger); font-size: 13px; }
code, .mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: embed; }

/* ============ Brand ============ */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1e3a8a); box-shadow: 0 6px 16px -6px rgba(37,99,235,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 15px; }
.brand-txt span { font-size: 11px; font-weight: 400; opacity: .7; }
.topbar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.topbar .brand-mark svg { width: 17px; height: 17px; }

/* ============ Login ============ */
#screen-login { min-height: 100%; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* form side */
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 24px;
  background: radial-gradient(700px 400px at 100% 0%, #eef3ff, transparent 60%), #fff; }
.login-card { width: min(400px, 100%); margin: auto 0; }
.login-brand { margin-bottom: 44px; }
.login-brand .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
.login-brand .brand-mark svg { width: 24px; height: 24px; }
.login-brand .brand-txt b { font-size: 18px; }
.login-brand .brand-txt span { font-size: 13px; color: var(--ink-2); opacity: 1; }
.login-card h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -.01em; }
.login-card > p.muted { margin: 0 0 30px; line-height: 1.6; font-size: 15px; }
.login-card .field > span { font-size: 13px; }
.login-card .field input { padding: 13px 14px; border-radius: 12px; background: #f8fafc; border-color: #e2e7ef; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-card .field input:focus { background: #fff; outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.login-go { padding: 14px; border-radius: 12px; font-size: 16px; margin-top: 6px; gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb 50%, #1d4ed8); box-shadow: 0 14px 28px -14px rgba(37,99,235,.9); transition: transform .15s, box-shadow .15s; }
.login-go:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(37,99,235,.95); }
.login-go span { transition: transform .2s; }
.login-go:hover span { transform: translateX(-4px); }
.login-help { font-size: 13px; color: var(--muted); margin: 22px 0 0; text-align: center; }
.login-foot { font-size: 12px; color: #a3abb8; margin: 28px 0 0; }
#login-error { background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }

/* showcase side */
.login-show { order: 2; position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; gap: 30px;
  background: linear-gradient(155deg, #0b1020 0%, #121a36 45%, #1b2f74 100%); }
.login-show::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.show-glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.show-glow.g1 { width: 420px; height: 420px; background: #2563eb; opacity: .45; top: -120px; left: -80px; animation: drift 14s ease-in-out infinite alternate; }
.show-glow.g2 { width: 360px; height: 360px; background: #7c3aed; opacity: .28; bottom: -120px; right: -60px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.login-show > :not(.show-glow) { position: relative; z-index: 1; }
.show-brand { display: flex; align-items: center; gap: 12px; }
.show-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.show-brand .brand-mark svg { width: 22px; height: 22px; }
.show-brand b { display: block; font-size: 17px; }
.show-brand span { display: block; font-size: 12.5px; color: #a9b8e0; }
.show-copy h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 700; }
.show-copy h2 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.show-copy p { margin: 0; font-size: 16px; line-height: 1.65; color: #c3cde6; max-width: 460px; }
/* mock browser */
.mock { flex: 1; min-height: 260px; max-height: 380px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08); display: flex; flex-direction: column; overflow: hidden;
  backdrop-filter: blur(6px); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-url { flex: 1; height: 16px; margin-inline-start: 10px; border-radius: 8px; background: rgba(255,255,255,.08); max-width: 220px; }
.mock-page { position: relative; flex: 1; background: #f8fafc; margin: 0; padding: 14px 18px; color: #0f172a; overflow: hidden; }
.mock-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mock-nav span { height: 7px; width: 36px; border-radius: 4px; background: #cbd5e1; }
.mock-nav .mock-logo { width: 54px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #7c3aed); margin-inline-end: auto; }
.mock-hero { padding: 6px 0 12px; }
.mock-sel { position: relative; display: inline-block; padding: 4px 6px; margin: 0 -6px 10px; border-radius: 4px; outline: 2px solid #2563eb; box-shadow: 0 0 0 5px rgba(37,99,235,.15); animation: selpulse 2.6s ease-in-out infinite; }
@keyframes selpulse { 50% { box-shadow: 0 0 0 9px rgba(37,99,235,.08); } }
.mock-tag { position: absolute; top: -19px; right: -2px; background: #2563eb; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px 4px 0 0; }
.mock-h1 { font-size: clamp(16px, 1.7vw, 22px); font-weight: 700; white-space: nowrap; }
.mock-h1 .type { display: inline-block; overflow: hidden; vertical-align: bottom; border-inline-start: 2px solid #2563eb; padding-inline-start: 2px; animation: typing 6s steps(18) infinite, caret .8s step-end infinite; }
@keyframes typing { 0% { max-width: 0; } 45%, 80% { max-width: 14em; } 100% { max-width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
.mock-line { height: 8px; border-radius: 4px; background: #dbe2ec; margin: 8px 0; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 58%; }
.mock-btn { width: 92px; height: 26px; border-radius: 8px; background: #0f172a; margin-top: 14px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards span { height: 58px; border-radius: 10px; background: linear-gradient(160deg, #e2e8f0, #f1f5f9); border: 1px solid #e2e8f0; }
.mock-cards span:nth-child(2) { background: linear-gradient(160deg, #dbeafe, #eff6ff); }
.mock-tool { position: absolute; top: 46px; left: 22px; display: flex; align-items: center; gap: 2px; background: #14171c; color: #e5e7eb; border-radius: 8px; padding: 4px;
  font-size: 11px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); animation: toolin 6s ease-in-out infinite; }
.mock-tool > * { min-width: 22px; height: 20px; display: grid; place-items: center; border-radius: 5px; font-style: normal; }
.mock-tool > *:first-child { background: #2563eb; }
.mock-tool .sep { min-width: 1px; width: 1px; background: #374151; margin: 0 3px; }
@keyframes toolin { 0%, 8% { opacity: 0; transform: translateY(6px); } 14%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mock-cursor { position: absolute; width: 22px; height: 22px; top: 54px; right: 40%; animation: cur 6s ease-in-out infinite;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.6L10 18.5z' fill='%230f172a' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
@keyframes cur { 0% { transform: translate(-60px, 90px); } 10% { transform: translate(0, 0) scale(.85); } 14% { transform: translate(0, 0); } 55% { transform: translate(-30px, 70px); } 75% { transform: translate(40px, 120px); } 100% { transform: translate(-60px, 90px); } }
.show-feats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.show-feats li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #dbe4fb; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px 8px 12px; border-radius: 30px; }
.show-feats li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(147,197,253,.18); color: #bfdbfe; }
@media (min-width: 901px) { .login-brand { display: none; } }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-show { display: none; }
  .login-side { min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .show-glow, .mock, .mock-sel, .mock-h1 .type, .mock-tool, .mock-cursor { animation: none; }
  .mock-h1 .type { max-width: none; }
}

/* ============ Top bar ============ */
.topbar { height: 54px; background: var(--bar); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; position: relative; z-index: 5; }
.topbar .brand { color: #fff; }
.topbar .spacer, .spacer { flex: 1; }
.topbar select { background: var(--bar-2); color: #fff; border: 1px solid #343a44; border-radius: 8px; padding: 6px 10px; max-width: 260px; }
.site-name { font-weight: 700; padding: 0 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: inline-flex; background: var(--bar-2); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #aeb5c1; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.seg button.on { background: #3a414d; color: #fff; }

/* ============ Repos ============ */
#screen-repos { min-height: 100%; }
.repos-main { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.repos-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.repos-head h2 { margin: 0; font-size: 24px; }
.repos-head .check { margin: 0; }
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.repo-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; text-align: start;
  display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, border-color .15s, transform .15s; }
.repo-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px -16px rgba(37,99,235,.45); transform: translateY(-2px); }
.repo-card h3 { margin: 0; font-size: 16px; direction: ltr; text-align: right; }
.repo-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--bg); color: var(--ink-2); }
.pill.ok { background: #e6f6ec; color: var(--ok); }
.pill.warn { background: #fff4e5; color: #b54708; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; grid-column: 1/-1; }

/* ============ Site cards ============ */
#screen-repos { background: radial-gradient(1100px 520px at 85% -12%, #e3ebff 0, transparent 60%), var(--bg); }
.repos-main { padding: 44px 24px 60px; }
.repos-head { align-items: flex-end; margin-bottom: 26px; }
.repos-head h2 { font-size: 30px; }
.repos-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
#repo-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.site-card { --site: #2563eb; --site-btn: #2563eb; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column; text-align: start; box-shadow: 0 1px 2px rgba(16,24,40,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; outline: none; }
.site-card:hover, .site-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--site) 40%, var(--line));
  box-shadow: 0 24px 46px -24px color-mix(in srgb, var(--site) 70%, transparent); }
.site-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--site) 35%, transparent); }
.site-cover { height: 136px; position: relative; overflow: hidden;
  background: radial-gradient(260px 160px at 15% 0%, color-mix(in srgb, var(--site) 45%, #fff), transparent 70%), linear-gradient(135deg, var(--site), color-mix(in srgb, var(--site) 55%, #000)); }
.site-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.site-card:hover .site-cover img { transform: scale(1.05); }
.site-cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, color-mix(in srgb, var(--site) 60%, transparent)); }
.site-logo { position: absolute; top: 94px; right: 20px; width: 86px; height: 86px; border-radius: 20px; background: #fff; z-index: 1; padding: 12px;
  display: grid; place-items: center; border: 1px solid rgba(16,24,40,.06); box-shadow: 0 10px 24px -10px rgba(16,24,40,.35); }
.site-logo.wide { width: 168px; padding: 14px 16px; }
.site-logo.on-dark { background: color-mix(in srgb, var(--site) 80%, #0b0d10); }
.site-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.site-mono { font-size: 36px; font-weight: 700; color: var(--site); line-height: 1; }
.site-body { padding: 56px 20px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.site-title { margin: 0; font-size: 21px; line-height: 1.25; }
.site-tag { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.site-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 2px; }
.site-domain { direction: ltr; color: var(--ink-2); font-weight: 700; }
.site-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.site-actions .site-edit { flex: 1; justify-content: center; padding: 10px 14px; background: var(--site-btn); border-color: var(--site-btn); }
.site-card:hover .site-edit { filter: brightness(1.08); }
.site-actions .site-view { padding: 10px 14px; }
.site-tech { font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 12px; }
.site-card.loading { cursor: progress; }
.site-card.loading .site-cover { background: #eceff3; }
.site-card.loading .site-logo { background: #f3f4f6; box-shadow: none; }
.sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eceff3 25%, #f6f7f9 50%, #eceff3 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk.w60 { width: 60%; height: 18px; } .sk.w90 { width: 90%; } .sk.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.site-name { display: flex; align-items: center; gap: 8px; }
.site-name-logo { height: 26px; max-width: 64px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
@media (prefers-reduced-motion: reduce) { .site-card, .site-cover img { transition: none; } .sk { animation: none; } }

/* ============ Editor ============ */
.screen.editor { height: 100%; display: flex; flex-direction: column; }
.editor-body { flex: 1; display: flex; min-height: 0; }
.canvas { flex: 1; position: relative; overflow: hidden; background: #e9ebef; }
.frame-wrap { position: absolute; inset: 0; display: flex; justify-content: center; padding: 0; transition: padding .2s; }
.frame-wrap.framed { padding: 16px; }
#frame { border: 0; background: #fff; width: 100%; height: 100%; display: block; transition: width .2s; }
.frame-wrap.framed #frame { border-radius: 12px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.25); }
.overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.box { position: absolute; display: none; pointer-events: none; border-radius: 2px; }
.box.hover { outline: 1.5px dashed rgba(37,99,235,.8); }
.box.sel { outline: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.box .tag { position: absolute; top: -20px; right: -2px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px 4px 0 0; white-space: nowrap; }
.toolbar { position: absolute; pointer-events: auto; background: var(--bar); color: #fff; border-radius: 8px; display: flex; align-items: center;
  gap: 2px; padding: 3px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.45); white-space: nowrap; z-index: 3; }
.toolbar button { background: transparent; border: 0; color: #e7eaf0; min-width: 30px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.toolbar button:hover { background: #2e343d; }
.toolbar button.danger:hover { background: var(--danger); }
.toolbar .tb-label { font-size: 12px; padding: 0 8px; color: #aeb5c1; }
.tb-group { display: inline-flex; gap: 2px; border-inline-start: 1px solid #343a44; padding-inline-start: 4px; margin-inline-start: 2px; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(233,235,239,.7); z-index: 4; }
.spinner { width: 34px; height: 34px; border: 3px solid #c8cdd6; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Inspector ============ */
.inspector { width: 320px; flex: none; background: var(--panel); border-inline-start: 1px solid var(--line); overflow-y: auto; }
.insp-sec { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.insp-sec h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; }
.insp-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.crumb { font-size: 11px; border: 1px solid var(--line); background: var(--bg); border-radius: 20px; padding: 2px 8px; cursor: pointer; direction: ltr; }
.crumb:hover { border-color: var(--accent); color: var(--accent); }
.crumb.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions-grid .btn { justify-content: center; }
.img-preview { width: 100%; max-height: 180px; object-fit: contain; background: repeating-conic-gradient(#f0f1f3 0 25%, #fff 0 50%) 0 0/16px 16px;
  border: 1px solid var(--line); border-radius: 8px; display: block; margin-bottom: 10px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.page-list { list-style: none; margin: 0; padding: 0; }
.page-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.page-list li:hover { background: var(--bg); }
.page-list li.cur { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.page-list .mono { font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #f79009; display: inline-block; }
.tip { font-size: 12px; color: var(--muted); line-height: 1.6; }
.tip kbd { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 11px; }

/* ============ Welcome banner (nothing selected) ============ */
.welcome { position: relative; overflow: hidden; margin: 14px; border-radius: 16px; padding: 20px 18px 18px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(420px 260px at 85% -10%, rgba(96,165,250,.55), transparent 65%),
    radial-gradient(360px 260px at 0% 110%, rgba(37,99,235,.65), transparent 60%),
    linear-gradient(160deg, #14171c 0%, #1b2440 55%, #1d3a8a 100%);
  box-shadow: 0 18px 40px -22px rgba(29,58,138,.8); }
.welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.welcome > * { position: relative; z-index: 1; }
.welcome-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; margin-bottom: 12px; position: relative; }
.welcome-cursor { width: 22px; height: 22px; display: block; animation: wtap 2.4s ease-in-out infinite;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.6L10 18.5z' fill='%23fff' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.welcome-ring { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(147,197,253,.8); animation: wring 2.4s ease-out infinite; }
.welcome-ring.r2 { animation-delay: 1.2s; }
@keyframes wring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wtap { 0%, 100% { transform: translate(2px, 2px); } 45% { transform: translate(-3px, -3px); } 55% { transform: translate(0, 0) scale(.88); } }
.welcome-kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #93c5fd; font-weight: 700; margin-bottom: 6px; }
.welcome-title { font-size: 18px; line-height: 1.3; margin: 0 0 8px; font-weight: 700; text-wrap: balance; }
.welcome-name { display: inline-block; background: linear-gradient(90deg, #93c5fd, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-text { font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; color: #dbe4f5; text-wrap: balance; }
.welcome-page { font-size: 12px; color: #b9c4d8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 4px 12px; margin-bottom: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-page .mono { color: #fff; }
.welcome-keys { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: #b9c4d8; }
.welcome-keys kbd { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 5px; padding: 1px 6px; font-size: 11px; font-family: inherit; }
.welcome-more { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.welcome-more > summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); list-style: none; }
.welcome-more > summary::-webkit-details-marker { display: none; }
.welcome-more > summary::after { content: "▾"; float: left; color: var(--muted); transition: transform .15s; }
.welcome-more[open] > summary::after { transform: rotate(180deg); }
.welcome-more > summary:hover { background: var(--bg); }
.welcome-more .insp-sec { padding: 14px; }
.welcome-more .insp-sec:last-child { border-bottom: 0; }
.welcome-more[open] > summary { border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .welcome-cursor, .welcome-ring { animation: none; } }

/* ============ Page navigator (top bar) ============ */
.page-nav { position: relative; }
.page-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bar-2); color: #fff; border: 1px solid #343a44; border-radius: 8px;
  padding: 6px 10px; cursor: pointer; max-width: 300px; min-width: 170px; }
.page-btn:hover, .page-btn[aria-expanded="true"] { border-color: #5b6575; background: #2b313b; }
.page-btn-ico { color: #93c5fd; font-size: 13px; }
.page-btn-name { flex: 1; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.page-btn .caret { color: #9aa2b1; font-size: 11px; }
.page-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-width: calc(100vw - 24px); background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); z-index: 30; display: flex; flex-direction: column; overflow: hidden; }
.page-pop input[type=search] { margin: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.page-pop input[type=search]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.page-tree { max-height: min(62vh, 560px); overflow-y: auto; padding: 0 6px 6px; }
.pt-row { display: flex; align-items: center; gap: 6px; padding-block: 7px; padding-inline-end: 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pt-row:hover { background: var(--bg); }
.pt-row.cur { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.pt-tog { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; }
button.pt-tog:hover { background: #e3e7ee; color: var(--ink); }
.pt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-sub { font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pt-count { font-size: 11px; color: var(--ink-2); background: var(--bg); border-radius: 20px; padding: 1px 7px; }
.pt-empty { padding: 20px; text-align: center; color: var(--muted); }
.page-pop-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fafbfc; }
.toolbar button.go { background: var(--accent); color: #fff; padding: 0 10px; font-size: 12.5px; font-weight: 700; }
.toolbar button.go:hover { background: var(--accent-2); }

/* ============ Link → page card (inspector) ============ */
.go-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.go-txt { font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.go-txt b { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Jobs ============ */
.job-card { margin: 14px 14px 0; border: 1px solid #cfdcff; background: linear-gradient(180deg, #f4f7ff, #fff); border-radius: 14px; padding: 16px; }
.job-card-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.job-card-t { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
.job-card-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.job-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.job-form .span2 { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px; font-size: 13px; cursor: pointer; background: #fff; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.chip input { margin: 0; }
@media (max-width: 700px) { .job-form .form-grid { grid-template-columns: 1fr; } }

/* ============ Modal ============ */
.modal-back { position: fixed; inset: 0; background: rgba(15,18,24,.5); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.4); }
.modal.wide { width: min(900px, 100%); }
.modal h3 { margin: 0 0 16px; font-size: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 18px; }
.change-list { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; max-height: 240px; overflow: auto; }
.change-list li { padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.change-list li:last-child { border-bottom: 0; }
.code-area { width: 100%; min-height: 360px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; direction: ltr; text-align: left;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre; tab-size: 2; }

/* ============ Toasts ============ */
.toasts { position: fixed; bottom: 18px; left: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--bar); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  max-width: 380px; animation: tin .2s ease-out; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 900px) {
  .inspector { width: 260px; }
  #device-seg, #live-link, #new-page-btn { display: none; }
  .page-btn { min-width: 0; max-width: 200px; }
}

/* ---------- font picker ---------- */
.font-label { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.insp-sec > .font-label:first-of-type { margin-top: 0; }
.color-row + .font-label { margin-top: 14px; }
.font-picker { position: relative; }
.font-pick { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 8px 11px; cursor: pointer; text-align: start; }
.font-pick:hover { border-color: #c9ced6; }
.font-pick.open { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.font-pick .fp-name { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-pick .fp-def { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 20px; padding: 1px 8px; }
.font-pick .caret { color: var(--muted); font-size: 11px; }
.fp-list { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(20,23,28,.08); overflow: hidden; }
.fp-search { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; outline: 0; background: #fafbfc; }
.fp-items { max-height: 300px; overflow-y: auto; padding: 4px; }
.fp-group { font-size: 11px; font-weight: 700; color: var(--muted); padding: 10px 8px 4px; }
.fp-item { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 0; background: none;
  padding: 7px 8px; border-radius: 6px; cursor: pointer; text-align: start; }
.fp-item:hover, .fp-item:focus-visible { background: var(--accent-soft); outline: 0; }
.fp-item.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.fp-item-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-sample { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fp-empty { padding: 14px 8px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- products manager (ניהול מוצרים) */
.pm-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pm-bar input, .pm-bar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: #fff; }
.pm-bar input { flex: 1 1 220px; min-width: 0; }
.pm-bar input:focus, .pm-bar select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pm-count { color: var(--muted); font-size: 13px; margin-inline-end: auto; }
.pm-list { max-height: min(56vh, 560px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pm-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pm-row:last-child { border-bottom: 0; }
.pm-row:hover { background: var(--bg); }
.pm-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--bg); flex: none; }
.pm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-info small { color: var(--muted); }
.pm-empty { padding: 28px; text-align: center; color: var(--muted); }
.pm > .tip { margin-top: 10px; }
.pf-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-thumb { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.pf-thumb.main { border: 2px solid var(--accent); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb button { position: absolute; top: 4px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(22, 25, 29, .72); color: #fff; font-size: 14px; line-height: 24px; cursor: pointer; }
.pf-thumb button:hover { background: rgba(22, 25, 29, .9); }
.pf-rm { left: 4px; }
.pf-mk { right: 4px; }
.pf-badge { position: absolute; bottom: 4px; right: 4px; padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.pf-add { width: 92px; height: 92px; border: 2px dashed var(--line); border-radius: 10px; background: #fff; color: var(--accent); font-weight: 700; cursor: pointer; }
.pf-add:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ============ "מבית LAITS" branding ============ */
.laits-ico .b { fill: #0f1f45; }
.laits-ico .f { fill: #2c6fd8; opacity: .95; }
.topbar .laits-ico .b, .login-show .laits-ico .b { fill: #bcd3ff; }
.topbar .laits-ico .f, .login-show .laits-ico .f { fill: #3b82f6; }
.brand-txt .by, .show-brand .by { display: flex !important; align-items: center; gap: 6px; opacity: 1 !important; }
.laits { display: inline-flex; align-items: center; gap: 6px; direction: ltr; }
.laits .laits-ico { width: 14px; height: 16px; flex: none; margin-top: -1px; }
.laits b { font-weight: 900; letter-spacing: .14em; font-size: 1.02em; display: inline !important;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 30%, #60a5fa 50%, #2563eb 70%, #1e3a8a 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: laitsShine 5s linear infinite; }
.topbar .laits b, .login-show .laits b { background-image: linear-gradient(90deg, #dbeafe 0%, #93c5fd 30%, #fff 50%, #93c5fd 70%, #dbeafe 100%); }
@keyframes laitsShine { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.login-brand .laits .laits-ico { width: 16px; height: 18px; }
.show-brand .by { font-size: 13.5px !important; }
.show-brand .laits .laits-ico { width: 17px; height: 19px; }
.topbar .brand-txt .by { font-size: 11.5px; }

/* footer signature */
.by-laits { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; padding: 8px 14px 8px 16px;
  border-radius: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #60a5fa, #2563eb, #1e3a8a) border-box;
  border: 1.5px solid transparent; box-shadow: 0 10px 26px -18px rgba(37,99,235,.7); transition: transform .2s, box-shadow .2s; }
.by-laits:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(37,99,235,.75); }
.by-laits::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(96,165,250,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.by-laits:hover::after { transform: translateX(120%); }
.by-laits__ico .laits-ico { width: 24px; height: 28px; display: block; }
.by-laits__txt { display: flex; flex-direction: column; line-height: 1.05; direction: rtl; }
.by-laits__txt small { font-size: 11px; color: var(--muted); }
.by-laits__txt b { font-size: 19px; font-weight: 900; letter-spacing: .14em; direction: ltr; color: #0f1f45; }
.by-laits__sub { font-size: 9.5px; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); direction: ltr; text-align: left;
  border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }

/* big floating mark on the dark showcase */
.show-laits { position: absolute !important; z-index: 0 !important; left: -30px; bottom: -40px; width: 260px; opacity: .09; pointer-events: none; animation: laitsFloat 12s ease-in-out infinite; }
.show-laits .laits-ico { width: 100%; height: auto; display: block; }
.show-laits .laits-ico .b { fill: #fff; } .show-laits .laits-ico .f { fill: #93c5fd; opacity: 1; }
@keyframes laitsFloat { 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .laits b, .show-laits { animation: none; } .by-laits::after { display: none; } }
