/* Hadar Core UI kit — shared by every HADAR SYSTEMS app. RTL, mobile-first, light/dark.
   Per-app accent: hc.js sets --accent / --accent-2 from the app's brand. No inline styles (CSP style-src 'self'). */
:root {
  --accent: #2563eb; --accent-2: #1e40af; --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f4f6fb; --card: #ffffff; --chip: #eef2f7;
  --ok: #16a34a; --ok-soft: #dcfce7; --warn: #d97706; --warn-soft: #fef3c7; --bad: #dc2626; --bad-soft: #fee2e2;
  --info: #0284c7; --info-soft: #e0f2fe; --violet: #7c3aed; --violet-soft: #ede9fe;
  --navy: #0b1530; --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .18); --top-h: 58px; --nav-h: 64px;
  /* iPhone: home indicator / status bar (viewport-fit=cover); 0 elsewhere */
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --font: system-ui, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.rtl { direction: rtl; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.svg-ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-ico.sm { width: 16px; height: 16px; } .svg-ico.lg { width: 28px; height: 28px; } .svg-ico.xl { width: 40px; height: 40px; }

/* ---------- app shell */
.hc-top { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + var(--safe-t)); display: flex; align-items: center; gap: 10px; padding: var(--safe-t) 14px 0;
  background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.hc-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; min-width: 0; }
.hc-top .brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.hc-top .brand small { display: block; font-weight: 500; opacity: .7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-top .spacer { flex: 1; }
.hc-top .who { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 999px;
  padding: 5px 6px 5px 12px; cursor: pointer; max-width: 60vw; }
.hc-top .who .av { width: 28px; height: 28px; }
.hc-top .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.demo-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 14px; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 13px; }
.demo-bar b { font-weight: 700; }
.demo-bar .sp { flex: 1; }
.demo-bar button { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 3px 11px; cursor: pointer; font-size: 13px; }
.demo-bar button.want { background: #fff; color: var(--accent-2); font-weight: 700; border-color: #fff; }
.hc-body { display: flex; min-height: calc(100vh - var(--top-h)); min-height: calc(100dvh - var(--top-h) - var(--safe-t)); }
.hc-side { display: none; }
.hc-main { flex: 1; min-width: 0; padding: 16px 14px calc(var(--nav-h) + 24px); max-width: 1100px; margin: 0 auto; width: 100%; }
.hc-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); }
.hc-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.hc-nav a.on { color: var(--accent); }
.hc-nav a.on .svg-ico { stroke-width: 2.4; }
@media (min-width: 900px) {
  .hc-nav { display: none; }
  .hc-side { display: flex; flex-direction: column; gap: 4px; width: 230px; flex: none; padding: 16px 10px; border-inline-end: 1px solid var(--line); background: var(--card);
    position: sticky; top: calc(var(--top-h) + var(--safe-t)); height: calc(100vh - var(--top-h) - var(--safe-t)); }
  .hc-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; }
  .hc-side a:hover { background: var(--chip); }
  .hc-side a.on { background: var(--accent-soft); color: var(--accent); }
  .hc-side .foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px 12px; }
  .hc-main { padding: 24px 28px 40px; }
}

/* ---------- page header */
.ph { display: flex; align-items: flex-end; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.ph h1 { font-size: 22px; margin: 0; line-height: 1.25; }
.ph p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ph .grow { flex: 1; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 6px; cursor: pointer; background: none; border: 0; padding: 0; min-height: 40px; }
.link, .linkbtn { min-height: 40px; }

/* ---------- cards, lists */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card h2, .card h3 { margin: 0 0 10px; font-size: 16px; }
.card .sub { color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.list .item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; background: none; width: 100%; text-align: start; border-inline: 0; border-top: 0; }
.list .item:last-child { border-bottom: 0; }
.list .item:hover { background: color-mix(in srgb, var(--chip) 60%, transparent); }
.list .item .main { flex: 1; min-width: 0; }
.list .item .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .s { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.list .head { padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--chip); letter-spacing: .3px; }
.ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ic.ok { background: var(--ok-soft); color: var(--ok); } .ic.warn { background: var(--warn-soft); color: var(--warn); }
.ic.bad { background: var(--bad-soft); color: var(--bad); } .ic.info { background: var(--info-soft); color: var(--info); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--line); margin: 12px 0; border: 0; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- badges, chips */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { opacity: .7; margin-inline-start: 4px; }

/* ---------- buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font-weight: 700;
  cursor: pointer; background: var(--accent); color: #fff; transition: transform .05s, filter .15s; text-align: center; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ok { background: var(--ok); } .btn.bad { background: var(--bad); } .btn.warn { background: var(--warn); }
.btn.wa { background: #1da851; color: #fff; } .btn.wa.ghost { background: var(--card); color: #15803d; border-color: #86efac; }
.btn.big { padding: 15px 18px; font-size: 16.5px; border-radius: 14px; width: 100%; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; } .btns > .btn { flex: 1; min-width: 130px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 11px 12px; outline: none; }
.field textarea { min-height: 86px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search { position: relative; margin-bottom: 12px; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 11px; padding: 11px 12px; padding-inline-start: 38px; outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .svg-ico { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.seg { display: inline-flex; background: var(--chip); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; font-weight: 650; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--card); }
.stepper button { border: 0; background: var(--chip); width: 38px; height: 38px; font-size: 20px; cursor: pointer; }
.stepper input { width: 54px; border: 0; text-align: center; height: 38px; background: transparent; }

/* ---------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
@media (min-width: 800px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.kpi .l { color: var(--muted); font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--muted); }
.kpi.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; }
.kpi.accent .l, .kpi.accent .d { color: rgba(255, 255, 255, .8); }
.bar { height: 8px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- timeline, steps */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 22px 14px 0; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; right: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; right: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: 12px; }
.flow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.flow .st { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 650; color: var(--muted); }
.flow .st.done { background: var(--ok-soft); color: var(--ok); }
.flow .st.now { background: var(--accent); color: #fff; }
.flow .arr { color: var(--muted); font-size: 12px; }

/* ---------- Priority strip */
.prio { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--card); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  margin-bottom: 14px; font-size: 13.5px; }
.prio .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.prio .dot.wait { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.prio .grow { flex: 1; min-width: 0; }

/* ---------- overlays */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: up .2s ease-out; }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: -6px auto 12px; }
.sheet h2 { margin: 0 0 12px; font-size: 18px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; } .sheet .grab { display: none; } }
@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; z-index: 80; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px;
  border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; max-width: 92vw; animation: up .2s; display: flex; gap: 8px; align-items: center; }
.toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); }
.toast.notice { cursor: pointer; display: flex; align-items: center; gap: 8px; max-width: min(92vw, 520px); }
.toast.notice .tiny { opacity: .85; }
@media (min-width: 900px) { .toast { bottom: calc(26px + var(--safe-b)); } }
.empty { text-align: center; color: var(--muted); padding: 34px 14px; }
.empty .svg-ico { width: 44px; height: 44px; opacity: .5; margin-bottom: 6px; }
.spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .7s linear infinite; margin: 30px auto; }
@keyframes rot { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- signature, photos, scanner */
.sigpad { border: 2px dashed var(--line); border-radius: 14px; background: #fff; touch-action: none; width: 100%; height: 180px; display: block; cursor: crosshair; }
.sig-img { background: #fff; border-radius: 12px; border: 1px solid var(--line); max-height: 140px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.photos .ph-it { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--chip); }
.photos .ph-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph-add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; background: none; }
.scan-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-box .frame { position: absolute; inset: 22% 12%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scan-box .laser { position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: pulse 1.2s infinite; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: start; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.t tr:last-child td { border-bottom: 0; }

/* ---------- landing */
.land { min-height: 100vh; }
.land .hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), var(--navy); color: #fff; padding: 22px 18px 54px; }
.land .hero .in { max-width: 1060px; margin: 0 auto; }
.land .top { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.land .top .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; }
.land .top .hs { font-weight: 800; letter-spacing: 1.5px; font-size: 13px; opacity: .85; }
.land .top .sp { flex: 1; }
.land .live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: 1px; background: rgba(255, 255, 255, .12); padding: 5px 11px; border-radius: 999px; }
.land .live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.land .kicker { color: color-mix(in srgb, var(--accent) 40%, #fff); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.land h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.12; margin: 0 0 14px; max-width: 760px; }
.land .lead { font-size: clamp(16px, 2.4vw, 19px); opacity: .85; max-width: 680px; margin: 0 0 22px; }
.land .pain { display: inline-block; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 10px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 26px; max-width: 680px; }
.land .who-title { font-weight: 800; margin: 0 0 10px; font-size: 15px; opacity: .9; }
.land .people { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 900px; }
@media (min-width: 640px) { .land .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .land .people { grid-template-columns: repeat(3, 1fr); } }
.land .person { display: flex; gap: 12px; align-items: center; text-align: start; background: #fff; color: var(--navy); border: 0; border-radius: 16px; padding: 14px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); transition: transform .12s; }
.land .person:hover { transform: translateY(-2px); }
.land .person .av { width: 46px; height: 46px; font-size: 17px; }
.land .person b { display: block; font-size: 15.5px; }
.land .person span { display: block; font-size: 13px; color: #475569; line-height: 1.35; }
.land .person .go { margin-inline-start: auto; color: var(--accent); }
.land .sec { max-width: 1060px; margin: 0 auto; padding: 30px 18px 10px; }
.land .sec h2 { font-size: 22px; margin: 0 0 14px; }
.land .steps { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .land .steps { grid-template-columns: repeat(var(--n, 5), 1fr); } }
.land .step { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); position: relative; counter-increment: s; }
.land .step::before { content: counter(s); position: absolute; top: 12px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.land .step b { display: block; margin: 8px 0 4px; }
.land .step span { color: var(--muted); font-size: 13.5px; }
.land .pr { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .land .pr { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.land .pr .box { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.land .pr .box ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--ink-2); }
.land .pr .mid { text-align: center; color: var(--accent); font-weight: 800; }
.land .cta { margin: 26px auto 10px; max-width: 1060px; padding: 0 18px; }
.land .cta .in { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 20px; padding: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.land .cta h3 { margin: 0; font-size: 21px; } .land .cta p { margin: 4px 0 0; opacity: .85; }
.land .cta .btn { background: #fff; color: var(--accent-2); }
.land .foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 18px 40px; }
.land .login-link { color: rgba(255, 255, 255, .75); font-size: 13px; background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* Offline: the sync state in the top bar and the line under it (web-core/offline.js) */
.hc-sync { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border-radius: 999px; background: rgba(128, 128, 128, .16); color: inherit; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hc-sync i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.hc-sync.ok i { background: #4ade80; } .hc-sync.info i { background: #60a5fa; } .hc-sync.warn i { background: #fbbf24; } .hc-sync.bad i { background: #f87171; }
.hc-offbar { display: block; padding: 7px 14px; background: #fef3c7; color: #78350f; font-size: 13px; text-decoration: none; }
.hc-offbar[hidden] { display: none; }
@media (max-width: 420px) { .hc-top .brand small { display: none; } .hc-top .who span { display: none; } }
