/* Dar v2 — design system. Logical properties everywhere so Arabic (RTL) and English/French (LTR) share one sheet.
   Brand colours and radius are CSS variables the developer changes from the panel. */
:root {
  /* identity: Dar blue — the original blue (a shade deeper so white text reads 4.5:1) and cyan; offices can change both */
  --brand: #2F6FEB; --accent: #00D2FF; --violet: #7B61FF; --radius: 14px; --on-brand: #FFFFFF;
  --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  --side: 264px; --top: 60px;
  --r-control: 12px; --r-card: 18px; --r-sheet: 26px;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-spring: cubic-bezier(.34, 1.4, .64, 1); --d1: 120ms; --d2: 220ms; --d3: 420ms;
  --grad: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--violet)));
  --grad-glow: linear-gradient(90deg, var(--brand), var(--accent));
}
:root, [data-theme="dark"] {
  --bg: #070B18; --bg2: #0A1122; --card: #0E162C; --card2: #131D38; --line: rgba(140, 165, 230, .12); --line2: rgba(140, 165, 230, .22);
  --text: #EAF0FF; --muted: #8F9CBB; --soft: color-mix(in srgb, var(--brand) 16%, transparent); --brand-text: #6F9BFF; --accent-text: #3FDCFF;
  --ok: #34D399; --warn: #FBBF24; --bad: #F87171; --info: #60A5FA; --scrim: rgba(3, 6, 15, .62);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --glow: 0 18px 50px -20px color-mix(in srgb, var(--brand) 60%, transparent); color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F7FC; --bg2: #FFFFFF; --card: #FFFFFF; --card2: #F1F5FC; --line: rgba(20, 40, 90, .09); --line2: rgba(20, 40, 90, .16);
  --text: #0A1226; --muted: #55627F; --soft: color-mix(in srgb, var(--brand) 12%, transparent); --brand-text: #2257C9; --accent-text: #0A7FA0;
  --ok: #047857; --warn: #B45309; --bad: #C81E1E; --info: #2563EB; --scrim: rgba(10, 18, 38, .45);
  --shadow: 0 1px 2px rgba(10, 18, 38, .06), 0 18px 40px -24px rgba(10, 18, 38, .28);
  --glow: 0 16px 40px -20px color-mix(in srgb, var(--brand) 45%, transparent); color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { margin: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); } body { margin: 0; padding: 0; } /* v2.8: every page uses viewport-fit=cover, so keep clear of the notch and the home bar */
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; min-height: 100vh; }
body.noscroll { overflow: hidden; }
a { color: var(--brand-text); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; } h4 { font-size: .98rem; } h6 { font-size: .8rem; font-weight: 700; color: var(--muted); }
p { margin: 0 0 .8em; } code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
code { background: var(--card2); padding: .1em .35em; border-radius: 6px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .nowrap { white-space: nowrap; } .grow { flex: 1; }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); } .warn-text { color: var(--warn); }
.row { display: flex; align-items: center; } .row.gap { gap: .5rem; } .row.wrap, .wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.stack { display: grid; gap: .5rem; }
.clip { display: inline-block; max-width: min(38ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; } .row > .clip { min-width: 0; }
.lead { font-size: 1.08rem; color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ic.lg { width: 1.8em; height: 1.8em; } .ic.xl { width: 2.6em; height: 2.6em; stroke-width: 1.5; }
[dir="rtl"] .ic.flip, [dir="rtl"] .nav-item .ic.end.chev { transform: scaleX(-1); }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; background: var(--card2); color: var(--text); padding: .55rem 1rem; border-radius: calc(var(--radius) - 4px); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); } .btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--brand); color: var(--on-brand); } .btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line2); } .btn.ghost:hover { background: var(--soft); }
.btn.soft { background: var(--soft); color: var(--brand-text); } 
.btn.danger { background: var(--bad); color: #fff; } .btn.danger.ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.sm { padding: .32rem .7rem; font-size: .85rem; } .btn.lg { padding: .8rem 1.4rem; font-size: 1.02rem; } .btn.block { width: 100%; }
.btn small { font-weight: 500; font-size: .7rem; opacity: .75; border: 1px solid currentColor; border-radius: 99px; padding: 0 .4em; }
.btn.is-busy { position: relative; color: transparent !important; } .btn.is-busy::after { content: ""; position: absolute; width: 1em; height: 1em; border: 2px solid #fff; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.ghost.is-busy::after, .icon-btn.is-busy::after { border-color: var(--brand); border-inline-end-color: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { background: var(--soft); } .icon-btn.xs { width: 26px; height: 26px; border-radius: 7px; font-size: .75rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: .55rem .75rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input[type="color"] { padding: 2px; height: 40px; width: 64px; } input[type="range"] { padding: 0; accent-color: var(--brand); }
select.sm, input.sm, textarea.sm { padding: .3rem .55rem; font-size: .88rem; width: auto; }
textarea { resize: vertical; min-height: 42px; }
label { font-size: .88rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); cursor: pointer; }
.check > input[type=checkbox], .check > input[type=radio] { flex: none; } /* v3.5.1: a long label that wraps never squeezes its box */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; inset-block-start: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--brand); } .switch input:checked + span::before { transform: translateX(18px); } [dir="rtl"] .switch input:checked + span::before { transform: translateX(-18px); }
.affix { display: flex; align-items: stretch; } .affix input { border-start-end-radius: 0; border-end-end-radius: 0; } .affix span { display: grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--line2); border-inline-start: 0; border-radius: 0 10px 10px 0; background: var(--card2); color: var(--muted); font-size: .85rem; }
[dir="rtl"] .affix span { border-radius: 10px 0 0 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.field { display: grid; gap: .3rem; align-content: start; } .field.wide { grid-column: 1 / -1; }
.field .err { color: var(--bad); font-size: .8rem; } .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); } .req { color: var(--bad); }
.form-foot { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .6rem; } .three label { display: grid; gap: .2rem; } .three span { font-size: .75rem; }
.imgs-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; } .img-item { position: relative; } .img-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.img-item .icon-btn { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; }
.onefile { display: flex; align-items: center; gap: .6rem; }

/* ---------- badges, chips, bars ---------- */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--card2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.badge.info { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); border-color: color-mix(in srgb, var(--info) 28%, transparent); }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .6rem; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); font-size: .8rem; }
.chip.ok { border-color: var(--ok); } .chip.warn { border-color: var(--warn); } .chip.bad { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; } .btn-chip { cursor: pointer; font: inherit; font-size: .82rem; color: var(--text); text-align: start; }
.btn-chip:hover { border-color: var(--brand); }
.stars { color: #f5b301; letter-spacing: 1px; } .stars i { color: var(--line2); font-style: normal; }
.bar, .score { position: relative; display: inline-flex; align-items: center; min-width: 110px; height: 22px; background: var(--card2); border-radius: 6px; overflow: hidden; }
.bar i, .score i { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 6px; }
.bar b, .score b { position: relative; padding-inline: .5rem; font-size: .8rem; }
.score.ok i { background: color-mix(in srgb, var(--ok) 38%, transparent); } .score.warn i { background: color-mix(in srgb, var(--warn) 38%, transparent); } .score.bad i { background: color-mix(in srgb, var(--bad) 38%, transparent); }
.score.big { width: 100%; height: 30px; margin: .6rem 0; }
.stackbar { display: flex; height: 12px; width: 100%; background: var(--card2); border-radius: 6px; overflow: hidden; } .stackbar i.ok { background: var(--ok); } .stackbar i.warn { background: var(--warn); }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; border: 1px solid var(--line); }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; } .thumbs { display: inline-flex; gap: 3px; align-items: center; } .thumbs img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg2); border-inline-end: 1px solid var(--line); z-index: 40; }
.side-head { padding: 1rem 1rem .6rem; border-block-end: 1px solid var(--line); } .side-head small { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.15rem; text-decoration: none !important; } .brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.nav { flex: 1; overflow-y: auto; padding: .5rem .5rem 1rem; scrollbar-width: thin; }
.nav-group h6 { margin: 1rem .6rem .3rem; }
.nav-item { display: flex; align-items: center; gap: .6rem; padding: .48rem .65rem; border-radius: 10px; color: var(--text); font-size: .92rem; text-decoration: none !important; }
.nav-item:hover { background: var(--soft); } .nav-item.on { background: var(--brand); color: var(--on-brand); } .nav-item.dim { opacity: .62; }
.nav-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nav-item .end { margin-inline-start: auto; opacity: .7; } .nav-item small.soon { font-size: .68rem; border: 1px solid currentColor; border-radius: 99px; padding: 0 .35rem; }
.side-foot { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-block-start: 1px solid var(--line); font-size: .85rem; } .side-foot b { display: block; } .side-foot small { color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .5rem; height: var(--top); padding: 0 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.search-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: .45rem .8rem; cursor: pointer; font: inherit; min-width: 220px; }
.search-btn kbd { margin-inline-start: auto; font-size: .7rem; border: 1px solid var(--line2); border-radius: 5px; padding: 0 .35rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); font-weight: 700; cursor: pointer; font: inherit; }
.jobs-btn b { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; background: var(--warn); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 3px; }
.lang-sel { width: auto; }
.view { padding: 1.2rem 1.4rem 3rem; outline: none; max-width: 1400px; width: 100%; }
.only-mobile { display: none; } .scrim { display: none; }
.top .ai-top { display: none; } /* v3.5.1: on a phone the AI button sits in the top bar (the floating one covered the last buttons of short screens) */
#banners .banner { margin: .6rem 1.4rem 0; }
.banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .9rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.banner.info { border-color: color-mix(in srgb, var(--info) 40%, transparent); color: var(--text); } .banner.warn { border-color: var(--warn); color: var(--text); } .banner.bad { border-color: var(--bad); color: var(--text); }
.banner.floating { position: fixed; inset-block-end: 12px; inset-inline-start: 12px; max-width: 420px; z-index: 50; box-shadow: var(--shadow); }
.boot { min-height: 60vh; display: grid; place-items: center; }

/* ---------- service screen ---------- */
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.svc-title { display: flex; gap: .9rem; align-items: flex-start; } .svc-title .ic { color: var(--brand-text); margin-top: .2rem; } .svc-title h1 { margin: 0; font-size: 1.45rem; } .svc-title p { margin: .15rem 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; display: grid; gap: .15rem; position: relative; }
.kpi > .ic { position: absolute; inset-block-start: .8rem; inset-inline-end: .8rem; color: var(--brand-text); opacity: .8; } .kpi span { color: var(--muted); font-size: .82rem; } .kpi b { font-size: 1.3rem; font-weight: 700; } .kpi b small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.kpi.skel { min-height: 76px; background: linear-gradient(90deg, var(--card), var(--card2), var(--card)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.sub-title { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin-bottom: .7rem; } .sub-title .count, .count { font-size: .75rem; background: var(--card2); border: 1px solid var(--line); border-radius: 99px; padding: 0 .5rem; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid2 > .panel, .grid3 > .panel { margin-bottom: 0; } .grid2, .grid3 { margin-bottom: 1rem; }
.note { display: flex; gap: .5rem; align-items: flex-start; color: var(--muted); font-size: .88rem; background: var(--card2); border: 1px dashed var(--line2); padding: .55rem .75rem; border-radius: 10px; margin: .6rem 0; }
.note .ic { margin-top: .15rem; color: var(--info); }
.result { background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.result.queued { display: flex; gap: .8rem; border-inline-start-color: var(--warn); } .result.queued > .ic { color: var(--warn); width: 1.6em; height: 1.6em; } .result.ok { border-inline-start-color: var(--ok); }
.result.multi .result { border: 0; padding: 0; margin: .8rem 0; } .result h4 { margin-bottom: .6rem; }
.locked { text-align: center; padding: 3rem 1rem; background: var(--card); border: 1px dashed var(--line2); border-radius: var(--radius); display: grid; gap: .6rem; justify-items: center; } .locked .ic { color: var(--muted); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); display: grid; justify-items: center; gap: .6rem; } .empty .ic { width: 2.4em; height: 2.4em; opacity: .6; }
.spin { width: 32px; height: 32px; border: 3px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; background: var(--card2); padding: .25rem; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: .45rem .9rem; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; } .tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.tabs.line { background: transparent; border-block-end: 1px solid var(--line); border-radius: 0; width: 100%; padding: 0; } .tabs.line button { border-radius: 0; border-block-end: 2px solid transparent; } .tabs.line button.on { box-shadow: none; background: transparent; border-block-end-color: var(--brand); color: var(--text); }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: .32rem .65rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem; } .seg button.on { background: var(--brand); color: var(--on-brand); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.search-box { position: relative; display: flex; align-items: center; min-width: 200px; flex: 0 1 280px; } .search-box .ic { position: absolute; inset-inline-start: .65rem; color: var(--muted); } .search-box input { padding-inline-start: 2.1rem; }
.search-box.big { flex: 1 1 auto; } .search-box.big input { padding-block: .75rem; font-size: 1.05rem; }
.bulkbar { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: var(--soft); border-radius: 10px; margin-bottom: .6rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th, .tbl td { padding: .6rem .75rem; text-align: start; border-block-end: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { background: var(--card2); color: var(--muted); font-weight: 600; font-size: .82rem; position: sticky; top: 0; z-index: 1; } .tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-block-end: 0; }
.tbl.hover tbody tr { cursor: pointer; } .tbl.hover tbody tr:hover { background: var(--soft); } .tbl tr.on { background: var(--soft); }
.tbl .chk { width: 36px; } .th-sort { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: .3rem; text-align: start; }
.matrix .tbl th:first-child, .matrix .tbl td:first-child { position: sticky; inset-inline-start: 0; background: var(--card); z-index: 2; min-width: 190px; } .matrix .tbl td { text-align: center; } .matrix input.num { width: 90px; text-align: center; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 1rem; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }

/* board / cards */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.lane { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 180px; transition: border-color .15s; } .lane.drop { border-color: var(--brand); background: var(--soft); }
.lane header { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .6rem .7rem; font-size: .82rem; } .lane-body { display: grid; gap: .5rem; padding: 0 .5rem .6rem; align-content: start; } .lane-empty { text-align: center; color: var(--muted); }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; display: grid; gap: .15rem; cursor: grab; font-size: .88rem; } .bcard:hover { border-color: var(--brand); } .bcard small { color: var(--muted); font-size: .78rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.card-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .12s, border-color .12s; } .card-item:hover { transform: translateY(-2px); border-color: var(--brand); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--soft), var(--card2)); display: grid; place-items: center; color: var(--muted); } .card-img img { width: 100%; height: 100%; object-fit: cover; } .card-img .ic { width: 2.4em; height: 2.4em; }
.card-badge { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; } .card-body { padding: .7rem .85rem .85rem; } .card-body h4 { margin-bottom: .2rem; } .card-body p { margin: .2rem 0; font-size: .84rem; }
.price { color: var(--brand-text); font-weight: 700; } 

/* lists, timeline, checklists */
.list { list-style: none; margin: 0; padding: 0; display: grid; } .li { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem .2rem; border-block-end: 1px solid var(--line); cursor: pointer; } .list .li:last-child { border-block-end: 0; }
.li:hover { background: var(--soft); border-radius: 8px; } .li b { display: block; font-weight: 600; } .li small { color: var(--muted); font-size: .8rem; } .li time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.steps, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; } .steps li, .checks li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; background: var(--card2); }
.steps li span, .checks li span { flex: 1; } .steps li.done, .checks li.ok { opacity: .7; } .steps li.done .ic, .checks li.ok .ic { color: var(--ok); } .checks li:not(.ok) .ic { color: var(--warn); }
.meters { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; } .meters li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: .8rem; align-items: center; } .meters .score { width: 100%; }
.timeline h4 { color: var(--muted); font-size: .85rem; margin: 1rem 0 .4rem; } .timeline ul { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: start; padding: .5rem .8rem; margin-inline-start: -11px; } .timeline li > .ic { background: var(--card); border: 1px solid var(--line); border-radius: 50%; padding: 3px; width: 22px; height: 22px; color: var(--brand-text); }
.timeline li small { display: block; color: var(--muted); font-size: .8rem; } .timeline time { font-size: .76rem; color: var(--muted); }
.hello h2 { margin: 0; } .hello { margin-bottom: .8rem; }
.cmd-inline { display: flex; gap: .5rem; align-items: stretch; margin-bottom: .8rem; } .cmd-inline textarea { flex: 1; min-height: 46px; }
.cmd-big textarea { font-size: 1.05rem; margin-bottom: .6rem; } .cmd-form textarea { margin-bottom: .6rem; }
[data-voice].rec { color: var(--bad); border-color: var(--bad); animation: pulse 1s infinite; }
.gauge { --deg: 0deg; width: 190px; height: 190px; margin: .5rem auto 1rem; border-radius: 50%; background: conic-gradient(var(--brand) var(--deg), var(--card2) 0); display: grid; place-items: center; position: relative; }
.gauge::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--card); } .gauge b, .gauge small { position: relative; } .gauge b { font-size: 2.6rem; line-height: 1; } .gauge small { color: var(--muted); margin-top: -2.4rem; }
.gauge { grid-template-rows: 1fr; } .gauge b { grid-area: 1 / 1; } .gauge small { grid-area: 1 / 1; margin-top: 3.4rem; }
.twin-head { display: flex; gap: 1rem; align-items: center; } .twin-img { width: 160px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--card2); display: grid; place-items: center; flex: none; } .twin-img img { width: 100%; height: 100%; object-fit: cover; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0; } .copyline code { padding: .45rem .7rem; overflow-wrap: anywhere; flex: 1 1 260px; }
.qr { display: grid; place-items: center; min-height: 120px; } .qr svg { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 12px; }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin-bottom: 1rem; } .channel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: grid; gap: .3rem; justify-items: start; } .channel .ic { color: var(--brand-text); } .channel small { color: var(--muted); }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; } .roles li { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: var(--card2); border-radius: 9px; } .roles li span { flex: 1; }
.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; } .addon { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: grid; gap: .3rem; }
.floors { display: grid; gap: .35rem; } .floor { display: flex; gap: .35rem; align-items: stretch; flex-wrap: wrap; } .fl { width: 34px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.unit { border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; min-width: 74px; background: var(--card2); color: var(--text); cursor: pointer; font: inherit; font-size: .82rem; display: grid; } .unit small { color: var(--muted); font-size: .7rem; }
.unit.available { border-color: var(--ok); } .unit.reserved { background: color-mix(in srgb, var(--warn) 18%, var(--card2)); border-color: var(--warn); } .unit.sold { background: color-mix(in srgb, var(--bad) 16%, var(--card2)); border-color: var(--bad); } .unit.handed_over { background: color-mix(in srgb, var(--info) 16%, var(--card2)); border-color: var(--info); }
.pre, pre.code { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-word; margin: .4rem 0 .8rem; }
.price-preview { padding: .6rem .8rem; background: var(--card2); border-radius: 10px; margin-bottom: .6rem; }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .5rem; background: var(--card); } .faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: .6rem 0 0; color: var(--muted); }
.palette { display: grid; gap: .25rem; margin-top: .6rem; max-height: 55vh; overflow-y: auto; } .pal-item { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.pal-item:hover, .pal-item.on { background: var(--soft); } .pal-item b { display: block; } .pal-item small { color: var(--muted); font-size: .8rem; }
.chat { display: flex; flex-direction: column; gap: .5rem; max-height: 52vh; overflow-y: auto; padding: .8rem; background: var(--card2); border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: .6rem; }
.msg { max-width: 82%; padding: .55rem .8rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: .3rem; } .msg time { font-size: .7rem; color: var(--muted); }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-color: transparent; } .msg.me time { color: rgba(255, 255, 255, .75); } .msg.bot { align-self: flex-start; }
.chat.wa { background: #0b3d2e; } [data-theme="light"] .chat.wa { background: #e7f3ee; } .chat.wa .msg.me { background: #1f8f5f; }
.editor h4 { margin: 1rem 0 .4rem; } .checks-row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; } .roles-pick { max-height: 180px; overflow-y: auto; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; }
.act-row { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)) 2fr auto; gap: .35rem; margin-bottom: .35rem; align-items: center; }
.tbl.fb td { padding: .3rem; } .tbl.texts textarea { min-height: 34px; font-size: .86rem; padding: .3rem .5rem; }
.nav-cat .three { margin: .4rem 0 .8rem; } .nav-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .nav-svcs li { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; background: var(--card2); border-radius: 9px; flex-wrap: wrap; } .nav-svcs li span { flex: 1; min-width: 140px; }
.logo-prev { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: var(--card2); border: 1px solid var(--line); }
.quote-form { margin-top: 1rem; padding-top: 1rem; border-block-start: 1px solid var(--line); }

/* ---------- modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 100; padding: 1rem; animation: fade .15s; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); width: min(560px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .15s; }
.modal.wide { width: min(980px, 100%); } .modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-block-end: 1px solid var(--line); } .modal-head h3 { margin: 0; }
.modal-body { padding: 1rem 1.1rem 1.2rem; overflow-y: auto; }
#toasts { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; display: grid; gap: .5rem; z-index: 200; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--bg2); border: 1px solid var(--line); border-inline-start: 4px solid var(--ok); padding: .65rem .9rem; border-radius: 12px; box-shadow: var(--shadow); animation: pop .18s; }
.toast.bad { border-inline-start-color: var(--bad); } .toast.info { border-inline-start-color: var(--info); } .toast span { flex: 1; } .toast.out { opacity: 0; transform: translateY(8px); transition: .4s; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.plan.rec { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); } .plan-badge { position: absolute; inset-block-start: -11px; inset-inline-start: 1rem; background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 700; padding: .1rem .6rem; border-radius: 99px; }
.plan .price b { font-size: 1.7rem; } .plan .price span { color: var(--muted); margin-inline-start: .3rem; } .plan .tax { color: var(--muted); font-size: .8rem; margin: 0; } .plan .gain { color: var(--ok); font-size: .85rem; margin: 0; }
.feat { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .3rem; font-size: .88rem; flex: 1; } .feat .ic { color: var(--ok); }
.plans.compact .plan { padding: .9rem; } .plans.compact .plan .price b { font-size: 1.35rem; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); min-height: 100vh; }
.auth-side { padding: 1.2rem 2rem 2rem; background: radial-gradient(1200px 500px at 20% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent), var(--bg2); border-inline-end: 1px solid var(--line); overflow-y: auto; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.auth-hero .ic { color: var(--brand-text); } .auth-hero h1 { font-size: 2rem; margin: .5rem 0; } .auth-hero p { color: var(--muted); font-size: 1.05rem; }
.vp { list-style: none; padding: 0; display: grid; gap: .45rem; margin: 1rem 0 1.6rem; } .vp .ic { color: var(--ok); }
.auth-main { display: grid; place-items: center; padding: 2rem 1rem; } .auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 1.6rem; box-shadow: var(--shadow); }
.auth-card form { display: grid; gap: .7rem; } .auth-card .form-grid { grid-template-columns: 1fr; } .auth-card .tabs { width: 100%; } .auth-card .tabs button { flex: 1; }
.or { display: flex; align-items: center; gap: .6rem; color: var(--muted); margin: 1rem 0 .6rem; font-size: .85rem; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- public site ---------- */
body.site { background: var(--bg); }
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.4rem; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); flex-wrap: wrap; }
.site-nav { display: flex; gap: 1.1rem; } .site-nav a { color: var(--muted); font-weight: 600; } .site-nav a:hover { color: var(--text); text-decoration: none; }
.hero { padding: 5rem 1.4rem 4rem; text-align: center; background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent), radial-gradient(700px 300px at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent); }
.hero-in { max-width: 860px; margin: 0 auto; display: grid; gap: 1rem; justify-items: center; } .hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.2; margin: 0; } .hero .lead { max-width: 680px; }
.pill { display: inline-flex; gap: .4rem; align-items: center; padding: .25rem .8rem; border: 1px solid var(--line2); border-radius: 99px; color: var(--muted); font-size: .88rem; background: var(--card); }
.sec { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.4rem; } .sec > h2 { text-align: center; font-size: 1.7rem; margin-bottom: 1.2rem; }
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; } .app-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 1.3rem; display: grid; gap: .5rem; align-content: start; } .app-card .ic { color: var(--brand-text); } .app-card p { color: var(--muted); }
.app-card.alt { background: linear-gradient(135deg, var(--soft), var(--card)); }
.how { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } .how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .4rem; }
.how b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.svc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; } .svc-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.svc-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; } .svc-group li { display: flex; gap: .6rem; align-items: flex-start; } .svc-group li .ic { color: var(--brand-text); margin-top: .25rem; } .svc-group li small { display: block; color: var(--muted); font-size: .82rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: center; } .trust-grid > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; } .trust-grid .ic { color: var(--ok); }
.suggest { display: grid; gap: .6rem; max-width: 640px; margin: 0 auto; }
.ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; } .ad { display: flex; gap: .6rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem; color: var(--text); } .ad img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.site-foot { border-block-start: 1px solid var(--line); padding: 2rem 1.4rem 1rem; background: var(--bg2); } .foot-grid { max-width: 1180px; margin: 0 auto 1rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; } .foot-grid a { display: block; color: var(--muted); margin: .2rem 0; } .foot-grid .brand { color: var(--text); }
.doc-page { max-width: 860px; margin: 0 auto; padding: 2rem 1.4rem 4rem; } .doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; line-height: 1.9; }
.card-page { display: grid; place-items: start center; padding: 2rem 1rem 4rem; } .pcard { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); display: grid; gap: 1rem; text-align: center; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto .6rem; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.pcard.offer { text-align: start; } .price-box { background: var(--card2); border-radius: 14px; padding: 1rem; } .price-lg { font-size: 1.9rem; font-weight: 800; color: var(--brand-text); }
.listing { max-width: 1180px; margin: 0 auto; padding: 1.4rem; } .gallery { position: relative; aspect-ratio: 16 / 7; border-radius: 18px; overflow: hidden; background: var(--card2); display: grid; place-items: center; margin-bottom: 1.2rem; } .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gprev, .gnext { position: absolute; inset-block-start: 50%; transform: translateY(-50%); } .gprev { inset-inline-start: .8rem; } .gnext { inset-inline-end: .8rem; }
.listing-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; } .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 1rem 0; } .facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; } .facts dt { color: var(--muted); font-size: .8rem; } .facts dd { margin: 0; font-weight: 600; }
.license { display: flex; gap: .8rem; align-items: center; background: color-mix(in srgb, var(--ok) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 14px; padding: .8rem 1rem; } .license .ic { color: var(--ok); width: 2em; height: 2em; } .license b, .license span, .license small { display: block; } .license small { color: var(--muted); }
.office-card { position: sticky; top: 80px; display: grid; gap: .5rem; }
.status-big { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 1rem; } .status-big.ok .ic { color: var(--ok); } .status-big.warn .ic { color: var(--warn); } .status-big b { display: block; font-size: 1.2rem; } .status-big small { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .listing-body { grid-template-columns: 1fr; } .office-card { position: static; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .22s; box-shadow: var(--shadow); }
  [dir="rtl"] .side { transform: translateX(105%); } body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(2, 6, 23, .5); z-index: 35; }
  .only-mobile { display: inline-grid; } .search-btn { min-width: 0; } .search-btn span, .search-btn kbd { display: none; } .cmd-btn span { display: none; }
  .view { padding: 1rem 1rem 3rem; } #banners .banner { margin: .6rem 1rem 0; }
  .auth { grid-template-columns: 1fr; } .auth-side { border: 0; padding: 1rem; } .auth-main { padding: 1rem 1rem 3rem; order: -1; } .auth-top { margin-bottom: 1rem; }
  .auth-hero h1 { font-size: 1.5rem; }
  .grid2 { grid-template-columns: 1fr; } .how, .trust-grid { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr; } .site-nav { display: none; }
  .meters li { grid-template-columns: 1fr; gap: .3rem; } .act-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; } .form-grid, .three { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top { padding: 0 .6rem; gap: .35rem; } .lang-sel { max-width: 92px; } .hero { padding: 3rem 1rem 2.5rem; } .sec { padding: 2.4rem 1rem; } .site-head { padding: .6rem 1rem; }
  .toolbar .search-box { flex: 1 1 100%; } .svc-title h1 { font-size: 1.2rem; } .twin-head { flex-direction: column; align-items: flex-start; } .modal-wrap { padding: .4rem; } .dl { grid-template-columns: 1fr; } .dl dt { margin-top: .3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
@keyframes shimmer { to { background-position: -200% 0; } } @keyframes pulse { 50% { opacity: .55; } }

.feat .feat-head { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.svc-group details.more summary { cursor: pointer; color: var(--brand-text); font-size: .88rem; margin-top: .6rem; } .svc-group details.more ul { margin-top: .6rem; }
.banner.floating .icon-btn { margin-inline-start: auto; }
.panel.tool form { display: grid; gap: .8rem; } .panel.tool form > .btn { justify-self: start; }
@media (max-width: 640px) { .cmd-inline { flex-wrap: wrap; } .cmd-inline textarea { flex: 1 1 100%; min-height: 74px; } .cmd-inline [data-voice] { flex: 1; } }
.toolbar select, .toolbar input:not([type=search]) { width: auto; max-width: 100%; }
.field.row { display: flex; }
.gallery:not(:has(img)) { aspect-ratio: 16 / 4; }

/* =====================================================================================================
   v2.1 — navigation rail, larger logo, type landing pages, new subscriber screens, client pages, printing
   ===================================================================================================== */
:root { --rail: 66px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand.big img { width: 46px; height: 46px; border-radius: 12px; }
.brand span small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.side-head { display: flex; align-items: center; gap: .4rem; } .side-head .brand { flex: 1; min-width: 0; } .side-head .brand img { width: 46px; height: 46px; }
.side-head .rail-toggle { width: 32px; height: 32px; border-radius: 9px; }
.hero-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; box-shadow: var(--shadow); background: var(--card); padding: 6px; }
.auth-top .brand img { width: 50px; height: 50px; }
.shell > .side { grid-column: 1; grid-row: 1; } .shell > .main { grid-column: 2; grid-row: 1; }
/* icon rail: always on phones (icons only), optional on desktop; the menu button expands it with names */
@media (min-width: 901px) {
  body.rail .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
  body.rail .side .brand span, body.rail .side-foot, body.rail .nav-group h6, body.rail .nav-item span, body.rail .nav-item .end { display: none; }
  body.rail .side-head { flex-direction: column; padding: .6rem .3rem; }
  body.rail .nav { padding: .4rem .35rem 1rem; } body.rail .nav-item { justify-content: center; padding: .62rem 0; }
  body.rail .nav-group + .nav-group { border-block-start: 1px solid var(--line); margin-block-start: .35rem; padding-block-start: .35rem; }
  body.rail .nav-item .ic { width: 1.35em; height: 1.35em; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .side, [dir="rtl"] .side { position: sticky; top: 0; height: 100vh; width: auto; transform: none; box-shadow: none; transition: none; }
  .side .brand span, .side-head .rail-toggle, .side-foot, .nav-group h6, .nav-item span, .nav-item .end { display: none; }
  .side-head { justify-content: center; padding: .55rem .3rem; } .side-head .brand { flex: none; } .side-head .brand img { width: 44px; height: 44px; }
  .nav { padding: .35rem .3rem 1rem; } .nav-item { justify-content: center; padding: .62rem 0; } .nav-item .ic { width: 1.4em; height: 1.4em; }
  .nav-group + .nav-group { border-block-start: 1px solid var(--line); margin-block-start: .35rem; padding-block-start: .35rem; }
  body.nav-open .side, body.nav-open [dir="rtl"] .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); box-shadow: var(--shadow); z-index: 45; }
  body.nav-open .side .brand span { display: inline; } body.nav-open .nav-group h6 { display: block; } body.nav-open .nav-item span { display: inline; } body.nav-open .nav-item .end { display: inline-block; } body.nav-open .side-foot { display: flex; }
  body.nav-open .nav-item { justify-content: flex-start; padding: .48rem .65rem; } body.nav-open .side-head { justify-content: flex-start; padding: 1rem 1rem .6rem; }
  .view { padding: .9rem .8rem 3rem; } .top { padding: 0 .5rem; }
}
@media (max-width: 380px) { :root { --rail: 56px; } .nav-item .ic { width: 1.25em; height: 1.25em; } }

/* ---------- landing pages ---------- */
.site-head .brand span { display: grid; } .head-tools select { max-width: 130px; }
.type-hero { padding-block: 4.2rem 3.4rem; } .strong { font-weight: 700; color: var(--text) !important; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 1.25rem; display: grid; gap: .45rem; align-content: start; } .value .ic { color: var(--brand-text); } .value p { color: var(--muted); margin: 0; }
.compare { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr; } .cmp-head span { padding: .7rem 1rem; font-weight: 800; background: var(--card2); } .cmp-head span + span { color: var(--brand-text); }
.cmp-row span { padding: .75rem 1rem; border-block-start: 1px solid var(--line); display: flex; gap: .5rem; align-items: flex-start; } .cmp-row span:first-child { color: var(--muted); } .cmp-row span:first-child .ic { color: var(--bad); } .cmp-row span:last-child { background: color-mix(in srgb, var(--ok) 6%, var(--card)); } .cmp-row span:last-child .ic { color: var(--ok); }
.calc { max-width: 900px; margin: 0 auto; display: grid; gap: 1rem; } .calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.calc-in { display: grid; gap: .3rem; } .calc-in > span:first-child { font-weight: 600; color: var(--text); } .affix { display: flex; align-items: center; gap: .4rem; } .affix span { color: var(--muted); font-size: .85rem; }
.calc-out { text-align: center; } .calc-big { display: block; font-size: 2rem; font-weight: 800; color: var(--brand-text); margin-bottom: .3rem; }
.cta-band { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--card)), var(--card)); border-radius: 24px; margin-block: 2rem; }
.back-link { display: inline-flex; gap: .4rem; align-items: center; margin-bottom: .6rem; color: var(--muted); }
.ic.back { transform: scaleX(-1); } [dir="rtl"] .ic.back { transform: none; }
.seg.wrap { flex-wrap: wrap; margin-bottom: .8rem; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; } .link-card { display: grid; gap: .5rem; align-content: start; text-align: center; } .link-card .qr svg { width: 150px; height: 150px; }

/* ---------- HR, obligations, documents ---------- */
.clock { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; } .clock-now { display: grid; text-align: center; min-width: 140px; } .clock-now b { font-size: 2.4rem; font-weight: 800; letter-spacing: .02em; } .clock-now span { color: var(--muted); font-size: .85rem; }
.clock-me { flex: 1; display: grid; gap: .5rem; }
.warn-panel { border-color: color-mix(in srgb, var(--warn) 45%, transparent); } .month-h { margin: 1rem 0 .4rem; }
.doc-preview { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; background: #fff; }
.doc-sheet { background: #fff; color: #111; padding: 28px 34px; font-size: 14px; line-height: 1.9; }
.doc-head { display: flex; gap: 14px; align-items: center; border-block-end: 2px solid #222; padding-bottom: 12px; margin-bottom: 16px; } .doc-head img { width: 64px; height: 64px; object-fit: contain; } .doc-head h2 { margin: 0; font-size: 18px; } .doc-head p { margin: 0; font-size: 12px; color: #444; }
.doc-logo { width: 56px; height: 56px; border-radius: 12px; background: #1f3b6e; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.doc-meta { margin-inline-start: auto; display: grid; text-align: end; font-size: 12px; color: #333; } .doc-title { text-align: center; font-size: 20px; margin: 8px 0 18px; }
.doc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; } .doc-dl dt { font-weight: 700; } .doc-dl dd { margin: 0; }
.doc-tbl { width: 100%; border-collapse: collapse; margin: 14px 0; } .doc-tbl td { border: 1px solid #bbb; padding: 6px 10px; } .doc-tbl tr.total td { font-weight: 800; background: #f1f4f9; }
.doc-sign { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; flex-wrap: wrap; } .doc-qr svg { width: 110px; height: 110px; } .doc-foot { border-block-start: 1px solid #aaa; margin-top: 28px; padding-top: 8px; font-size: 11px; color: #555; text-align: center; }
.sig-img { max-width: 320px; background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; margin: .8rem 0; } .pick { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; cursor: pointer; background: var(--card); } .pick:has(input:checked) { border-color: var(--brand); background: var(--soft); } .pick small { display: block; color: var(--muted); }
.qr-img { background: #fff !important; } .qr-img svg { width: 100%; height: 100%; max-height: 180px; }
.chip.ok { border-color: var(--ok); color: var(--ok); } .chip.warn, .btn-chip.warn { border-color: var(--warn); color: var(--warn); } .btn-chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.value-row { border: 1px dashed var(--line2); border-radius: 12px; padding: .6rem; margin-bottom: .6rem; display: grid; gap: .4rem; }
.recipes .card-body h4 { display: flex; gap: .4rem; align-items: center; }
.steps.plain { padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
/* inbox & WhatsApp simulator */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; min-height: 60vh; }
.inbox-list { display: grid; gap: .3rem; align-content: start; max-height: 72vh; overflow: auto; }
.conv { display: flex; gap: .6rem; align-items: center; text-align: start; width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; padding: .6rem .7rem; cursor: pointer; font: inherit; } .conv.on { border-color: var(--brand); background: var(--soft); } .conv span { flex: 1; min-width: 0; } .conv small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dotn { font-style: normal; background: var(--brand); color: var(--on-brand); border-radius: 99px; font-size: .7rem; min-width: 20px; text-align: center; padding: 0 .3rem; }
.thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; min-height: 60vh; }
.thread-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.bubbles { display: flex; flex-direction: column; gap: .5rem; overflow: auto; max-height: 52vh; padding: .3rem; }
.bubble { max-width: 78%; border-radius: 14px; padding: .5rem .75rem; background: var(--card2); border: 1px solid var(--line); } .bubble p { margin: 0; white-space: pre-wrap; } .bubble small { display: block; color: var(--muted); font-size: .72rem; margin-top: .2rem; }
.bubble.in { align-self: flex-start; } .bubble.out { align-self: flex-end; background: color-mix(in srgb, var(--ok) 16%, var(--card)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.composer { display: grid; gap: .4rem; }
.wa-screen { border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--ok) 5%, var(--bg2)); padding: .6rem; display: grid; gap: .6rem; } .wa-screen .bubbles { min-height: 280px; max-height: 420px; }
.wa-input { display: flex; gap: .4rem; } .wa-input .btn { flex: none; }
/* ---------- no-login client pages ---------- */
.pub { max-width: 820px; margin: 0 auto; padding: 1rem; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; }
.pub-head { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-block-end: 1px solid var(--line); } .pub-head img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; } .pub-head small { display: block; color: var(--muted); } .pub-head .lang-sel { width: auto; }
.pub-main { display: grid; gap: 1rem; align-content: start; } .pub-foot { text-align: center; padding: 1rem 0; }
.sign-doc .doc-text { background: var(--card2); border-radius: 12px; padding: 1rem; max-height: 50vh; overflow: auto; line-height: 1.9; }
.sig-wrap { display: grid; gap: .4rem; justify-items: end; } .sig-wrap canvas { width: 100%; height: 190px; border: 2px dashed var(--line2); border-radius: 14px; background: var(--bg2); touch-action: none; display: block; }
.up-list { list-style: none; padding: 0; display: grid; gap: .5rem; } .up-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: var(--card); } .up-item.done { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; } .day { flex: none; display: grid; justify-items: center; width: 62px; padding: .4rem 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: inherit; } .day b { font-size: 1.2rem; } .day small { color: var(--muted); } .day.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); } .day.on small { color: #fff; } .day[disabled] { opacity: .4; cursor: default; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; } .slot { border: 1px solid var(--line2); background: var(--card); color: var(--text); border-radius: 10px; padding: .45rem 0; cursor: pointer; font: inherit; } .slot.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.lead-form { border-block-start: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; } .lead-form h4 { margin: 0; }
.btn.on { outline: 2px solid var(--brand); }
/* ---------- printing ---------- */
#print-area { display: none; }
.sign-sheet { text-align: center; } .sign-sheet h1 { font-size: 64px; margin: 10px 0; } .sign-sheet h2 { font-size: 30px; } .sign-sheet .sign-qr svg { width: 340px; height: 340px; } .sign-sheet .big { font-size: 22px; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; } body.printing { background: #fff; }
  .doc-sheet { padding: 0; } @page { margin: 14mm; }
}
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: 30vh; } .bubble { max-width: 92%; } }
@media (max-width: 640px) { .cmp-head, .cmp-row { grid-template-columns: 1fr; } .cmp-head span:first-child { display: none; } .cmp-row span:first-child { font-size: .85rem; border-block-start: 1px solid var(--line); } .clock-now b { font-size: 2rem; } .doc-sheet { padding: 16px; } .head-tools .btn.ghost { display: none; } }

/* ---------- first-run questions, services store, translation notes ---------- */
.onb-host { position: fixed; inset: 0; z-index: 90; }
.onb { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; grid-template-rows: auto 4px 1fr auto; }
.onb-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.2rem; border-block-end: 1px solid var(--line); } .onb-head img { width: 46px; height: 46px; border-radius: 12px; } .onb-head small { display: block; color: var(--muted); } .onb-head select { width: auto; }
.onb-progress { background: var(--line); } .onb-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .25s; }
.onb-body { overflow: auto; display: grid; place-items: start center; padding: 2rem 1rem; }
.onb-q { width: min(820px, 100%); display: grid; gap: .6rem; } .onb-q h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); outline: none; } .onb-step { color: var(--brand-text); font-weight: 700; font-size: .9rem; }
.onb-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin-top: .6rem; } .onb-opts.many { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.onb-opt { display: flex; align-items: center; gap: .7rem; text-align: start; padding: 1rem 1.1rem; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; min-height: 64px; transition: border-color .15s, background .15s, transform .1s; }
.onb-opt:hover { border-color: var(--brand); } .onb-opt:active { transform: scale(.99); } .onb-opt .ic.lg { color: var(--brand-text); } .onb-opt span { flex: 1; } .onb-opt.on { border-color: var(--brand); background: var(--soft); box-shadow: 0 0 0 3px var(--soft); } .onb-opt .ic.end { color: var(--brand-text); }
.onb-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; } .onb-menu h6 { margin: .3rem 0; } .onb-menu .chip { display: inline-flex; gap: .3rem; align-items: center; margin: 0 0 .35rem .35rem; }
.onb-sug { margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: 12px; } .onb-sug h6 { margin: 0 0 .2rem; display: flex; gap: .35rem; align-items: center; } .onb-sug .chip { display: inline-flex; gap: .3rem; align-items: center; margin: .35rem 0 0 .35rem; opacity: .8; }
.onb-foot { display: flex; align-items: center; gap: .8rem; justify-content: space-between; padding: .8rem 1.2rem; border-block-start: 1px solid var(--line); background: var(--bg2); }
.store-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .store-top h3 { margin: 0; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.store-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-content: start; gap: .4rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; } .store-card.mine { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.store-ic { color: var(--brand-text); } .store-body { display: grid; gap: .25rem; min-width: 0; } .store-body small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-act { grid-column: 1 / -1; display: flex; gap: .4rem; justify-content: flex-end; align-items: center; align-self: end; flex-wrap: wrap; }
.warn-note { border-color: color-mix(in srgb, var(--warn) 45%, transparent) !important; } .svc-pick summary { cursor: pointer; color: var(--brand-text); font-size: .88rem; } .svc-pick .checks-row { max-height: 220px; overflow: auto; padding: .4rem 0; }
body.brief .svc-head p { display: none; } body.brief .onb-q .muted { display: none; }
.pal-item .badge { margin-inline-start: auto; }
@media (max-width: 640px) { .onb-body { padding: 1.2rem .8rem; } .onb-opts, .onb-opts.many { grid-template-columns: 1fr 1fr; } .onb-opt { padding: .8rem; min-height: 58px; font-size: .92rem; } .onb-head { padding: .6rem .8rem; } .onb-foot { padding: .6rem .8rem; } .onb-foot .muted { display: none; } }

body.simple .nav-group h6 { display: none; } body.simple .nav-group + .nav-group { border-block-start: 1px solid var(--line); margin-block-start: .35rem; padding-block-start: .35rem; }

/* v2.2 — migration wizard, mapping table, market radar intelligence */
.wiz { display: flex; gap: .35rem; flex-wrap: wrap; margin: .2rem 0 1rem; padding: 0; list-style: none; counter-reset: wz; }
.wiz li { counter-increment: wz; display: flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 99px; background: var(--card2); color: var(--muted); font-size: .85rem; }
.wiz li::before { content: counter(wz); display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--line2); color: var(--text); font-size: .75rem; }
.wiz li.on { background: var(--soft); color: var(--text); font-weight: 600; } .wiz li.on::before { background: var(--brand); color: var(--on-brand); } .wiz li.done::before { background: var(--ok); color: #fff; content: "✓"; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; } .src-grid .onb-opt[disabled] { opacity: .55; cursor: not-allowed; }
.map-tbl select { min-width: 11rem; max-width: 100%; } .map-tbl .smp { color: var(--muted); font-size: .8rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intel { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.insight { border: 1px solid var(--line); border-inline-start: 4px solid var(--info); border-radius: 12px; padding: .75rem .85rem; background: var(--card); display: grid; gap: .4rem; align-content: start; }
.insight.alert { border-inline-start-color: var(--bad); } .insight.watch { border-inline-start-color: var(--warn); } .insight.good { border-inline-start-color: var(--ok); }
.insight .chip { justify-self: start; } .insight h4 { margin: 0; font-size: .98rem; line-height: 1.5; } .insight p { margin: 0; } .insight .ev { font-size: .78rem; color: var(--muted); }
.src-strip { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .3rem 0; }
@media (max-width: 640px) { .map-tbl .smp { max-width: 8rem; } .map-tbl select { min-width: 8rem; } }
details.panel > summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
details.panel:not([open]) > summary::after { transform: rotate(-90deg); } [dir="rtl"] details.panel:not([open]) > summary::after { transform: rotate(90deg); }
details.panel[open] > summary { margin-bottom: .7rem; }
/* v2.3 — results from the AI team, notices, readiness */
.pre-line { white-space: pre-line; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; } .media-grid figure { margin: 0; } .media-grid img, .media-grid video { width: 100%; height: auto; object-fit: contain; border-radius: 10px; display: block; background: var(--card2); border: 0; } .media-grid figcaption { font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; gap: .4rem; padding: .2rem 0; }
.bell-btn, .jobs-btn { position: relative; } #notice-count { position: absolute; inset-block-start: -2px; inset-inline-end: -2px; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.notice { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: start; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.notice.unread { border-inline-start: 3px solid var(--brand); } .notice .ic { margin-top: .15rem; } .notice.good .ic { color: var(--ok); } .notice.warn .ic { color: var(--warn); } .notice.bad .ic { color: var(--bad); }
.notice-list { display: grid; gap: .5rem; } .notice small { color: var(--muted); display: block; }
#upgrade-banner { position: sticky; top: 0; z-index: 90; margin: 0; border-radius: 0; }
.oauth-btns { display: grid; gap: .5rem; margin: .6rem 0; }
.maint { max-width: 560px; margin: 12vh auto; text-align: center; padding: 1.5rem; } .maint .ic.xl { color: var(--warn); }
.cov-grid { display: flex; flex-wrap: wrap; gap: .3rem; max-height: 220px; overflow: auto; }
/* v2.3 — consent bar, office page */
.consent-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 95; max-width: 680px; margin-inline: auto; display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .8rem 1rem; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.consent-bar p { margin: 0; flex: 1 1 260px; font-size: .92rem; } .consent-bar a { color: inherit; text-decoration: underline; }
.office-filters { flex-wrap: wrap; gap: .5rem; margin-block: .9rem .4rem; } .office-filters .search-box { flex: 1 1 220px; } .office-filters select { max-width: 100%; }
a.card-img { display: grid; text-decoration: none; } .card-item h4 a { color: inherit; text-decoration: none; } .card-item h4 a:hover { text-decoration: underline; }
/* v2.6 — the AI team's memory and learning */
.mem-list .li > svg:first-child { color: var(--brand-text); flex: none; }
.steps-list { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; line-height: 1.6; }
.chips .btn-chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.feedback-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.lrn-table td:first-child { white-space: normal; }

/* =====================================================================================================
   v2.8 — interaction & motion (the v2.8 brass identity was replaced by the original blue in v2.9, below).
   Desktop and phone interact differently: sidebar + ink + peeks ↔ tab bar + arch button + sheets.
   Motion answers what the person did; prefers-reduced-motion turns all of it off (rule above).
   ===================================================================================================== */
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.35rem; font-weight: 800; } h3 { font-weight: 700; }
.kpi b, .price, .tbl td, .calc-big, .price-lg, .kpi-mini b { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }

/* buttons: weight, press, ripple */
.btn { border-radius: var(--r-control); position: relative; overflow: hidden; isolation: isolate; transition: transform var(--d1) var(--ease-out), background var(--d2), box-shadow var(--d2), border-color var(--d2), color var(--d2); }
.btn:active { transform: scale(.97); }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 18px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn.primary:hover { filter: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 26px -12px color-mix(in srgb, var(--brand) 95%, transparent); }
.btn.primary:active { transform: scale(.97); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.btn.is-busy::after { border-color: var(--on-brand); border-inline-end-color: transparent; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); pointer-events: none; z-index: -1; animation: ripple .55s var(--ease-out) forwards; }
.icon-btn { border-radius: 12px; transition: background var(--d2), transform var(--d1) var(--ease-out), border-color var(--d2); } .icon-btn:active { transform: scale(.92); }
.avatar { transition: transform var(--d2) var(--ease-spring); } .avatar:hover { transform: scale(1.06); }

/* sidebar: an ink slides to the active service */
.side { background: var(--bg2); } .side-head { border-block-end-color: var(--line); }
.nav { position: relative; }
.nav-ink { position: absolute; inset-inline-start: .15rem; top: 0; width: 3px; height: 0; border-radius: 3px; background: var(--brand); opacity: 0; pointer-events: none; transition: transform var(--d3) var(--ease-spring), height var(--d3) var(--ease-out), opacity var(--d2); }
.nav-item { transition: background var(--d2), color var(--d2); }
.nav-item .ic { transition: transform var(--d2) var(--ease-spring), color var(--d2); } .nav-item:hover .ic { transform: scale(1.12); }
.nav-item.on { background: var(--soft); color: var(--text); font-weight: 700; } .nav-item.on .ic { color: var(--brand-text); }
.nav-group h6 { font-weight: 700; }

/* service peek (desk): a pop-out beside the menu with live numbers and quick actions */
.peek { position: fixed; z-index: 90; width: 320px; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); padding: .95rem 1rem 1rem; display: grid; gap: .6rem; opacity: 0; pointer-events: none; transform: translateX(10px) scale(.97); transform-origin: right center; transition: opacity var(--d2), transform var(--d3) var(--ease-spring); }
[dir="ltr"] .peek { transform: translateX(-10px) scale(.97); transform-origin: left center; }
.peek.on { opacity: 1; pointer-events: auto; transform: none; }
.peek-head { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; } .peek-head .ic { color: var(--brand-text); }
.peek p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.peek-kpis { display: flex; flex-wrap: wrap; gap: .4rem; } .peek-kpis .kpi-mini { flex: 1 1 auto; min-width: 64px; }
.kpi-mini { display: grid; gap: 0; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .6rem; min-height: 54px; }
.kpi-mini { min-width: 0; } .kpi-mini b { font-size: 1.1rem; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kpi-mini small { color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-mini.skel { background: linear-gradient(90deg, var(--card2), var(--card), var(--card2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.peek-acts { display: flex; flex-wrap: wrap; gap: .35rem; }

/* surfaces: hierarchy by radius and line, shadows only on things that float */
.panel, .kpi, .table-wrap, .result, .app-card, .value, .svc-group, .card-item, .lane { border-radius: var(--r-card); }
.kpi { overflow: hidden; padding: 1rem 1.05rem .9rem; }
.kpi::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 1.05rem; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.kpi b { font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.result { border-inline-start-color: var(--brand); }
.card-item { transition: transform var(--d3) var(--ease-out), border-color var(--d2), box-shadow var(--d3); }
.card-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: var(--shadow); }
/* the property photo sits in an arched window */
.card-img { margin: .55rem .55rem 0; aspect-ratio: 4 / 3; border-radius: 0 0 12px 12px; background: var(--card2); overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 V40 A62 62 0 0 1 50 0 A62 62 0 0 1 100 40 V100 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 V40 A62 62 0 0 1 50 0 A62 62 0 0 1 100 40 V100 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.card-img img, .card-img canvas { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.card-item:hover .card-img img, .card-item:hover .card-img canvas { transform: scale(1.05); }
.card-badge { inset-block-start: auto; inset-block-end: .5rem; }

/* arrival: new screens and fresh items come in once, in order */
.view-enter { animation: viewIn var(--d3) var(--ease-out); }
.arrive { animation: arrive .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }

/* tabs & segmented controls answer the press */
.tabs button, .seg button { transition: background var(--d2), color var(--d2), box-shadow var(--d2); }
.tabs.line button.on { border-block-end-color: var(--brand); }

/* dialogs: pop from where you clicked (desk); close animates */
.modal-wrap { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade var(--d2) ease-out; }
.modal { border-radius: 22px; transform-origin: var(--ox, 50%) var(--oy, 30%); animation: modalIn var(--d3) var(--ease-spring); }
.modal-wrap.closing { animation: fadeOut var(--d2) ease-in forwards; } .modal-wrap.closing .modal { animation: modalOut var(--d2) ease-in forwards; }
.sheet-grip { display: none; }
.toast { border-radius: 14px; animation: toastIn var(--d3) var(--ease-spring); }

/* theme switch: the new theme opens as a circle from the button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeIn .55s var(--ease-out); }

/* phone navigation is hidden on larger screens */
.tabbar, .fab-menu, .fab-scrim, .top-brand { display: none; }
.banner.demo .short { display: none; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; } .shell > .main { grid-column: 1; } .side, .scrim { display: none !important; }
  .top { padding: 0 .75rem; gap: .4rem; height: 56px; }
  .top .only-mobile, .top .lang-sel, .top [data-on="click:theme"], .top .jobs-btn, .top .cmd-btn, .top a.icon-btn { display: none; }
  .top .ai-top { display: inline-grid; place-items: center; background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px var(--accent); } .top .ai-top .dar-star { width: 20px; height: 20px; }
  .ai-fab { display: none !important; }
  .top-brand { display: inline-flex; flex: none; } .top-brand svg, .top-brand img { width: 34px; height: 34px; border-radius: 9px; }
  .search-btn { min-width: 0; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; } .search-btn span, .search-btn kbd { display: none; }
  .view { padding: .9rem .9rem calc(150px + env(safe-area-inset-bottom)); } /* v3.5.1: the last controls scroll clear of the tab bar AND the AI button */
  #banners .banner { margin: .5rem .9rem 0; }
  .banner.demo { flex-wrap: nowrap; padding: .35rem .5rem .35rem .75rem; font-size: .82rem; } .banner.demo .long { display: none; } .banner.demo .short { display: inline; flex: 1; } .banner.demo .btn { padding: .25rem .6rem; }
  #toasts { inset-block-end: calc(84px + env(safe-area-inset-bottom)); inset-inline: 12px; max-width: none; }

  /* bottom tab bar with the arch button in the middle */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60; height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg2) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-block-start: 1px solid var(--line); }
  .tab { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; padding-top: 10px; height: 66px; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none !important; -webkit-tap-highlight-color: transparent; overflow: hidden; isolation: isolate; }
  .tab span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab .ic { width: 1.5em; height: 1.5em; transition: transform var(--d3) var(--ease-spring); }
  .tab.on { color: var(--brand-text); } .tab.on .ic { transform: translateY(-2px); } .tab:active .ic { transform: scale(.86); }
  .tab-ink { position: absolute; inset-block-end: calc(6px + env(safe-area-inset-bottom)); inset-inline-start: 0; left: 0; right: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0; transition: transform var(--d3) var(--ease-spring), opacity var(--d2); }
  .fab-slot { display: grid; justify-items: center; position: relative; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
  .fab { width: 60px; height: 66px; margin-top: -20px; border: 0; padding: 14px 0 0; background: var(--brand); color: var(--on-brand); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; transition: transform var(--d3) var(--ease-spring);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 66'%3E%3Cpath d='M4 66 V30 A30 30 0 0 1 30 2 A30 30 0 0 1 56 30 V66 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 66'%3E%3Cpath d='M4 66 V30 A30 30 0 0 1 30 2 A30 30 0 0 1 56 30 V66 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .fab .ic { width: 1.7em; height: 1.7em; stroke-width: 2.4; transition: transform var(--d3) var(--ease-spring); }
  .fab:active { transform: scale(.93); } body.fab-open .fab .ic { transform: rotate(135deg); }
  .fab-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--d2); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  body.fab-open .fab-scrim { opacity: 1; pointer-events: auto; }
  .fab-menu { display: grid; justify-items: center; gap: .55rem; position: fixed; inset-inline: 0; inset-block-end: calc(84px + env(safe-area-inset-bottom)); z-index: 59; pointer-events: none; }
  .fab-menu button { display: inline-flex; align-items: center; gap: .6rem; min-width: 210px; padding: .78rem 1.15rem; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font: inherit; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
    opacity: 0; transform: translateY(26px) scale(.86); transition: transform .38s var(--ease-spring), opacity var(--d2); transition-delay: calc((3 - var(--i)) * 30ms); }
  .fab-menu button .ic { color: var(--brand-text); width: 1.3em; height: 1.3em; }
  body.fab-open .fab-menu { pointer-events: auto; } body.fab-open .fab-menu button { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms); }

  /* dialogs become sheets: slide up, grip to drag, drag down to close */
  .modal-wrap { place-items: end stretch; padding: 0; backdrop-filter: blur(2px); background: color-mix(in srgb, var(--scrim) calc((1 - var(--drag, 0)) * 100%), transparent); }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-inline: 0; border-block-end: 0; padding-bottom: env(safe-area-inset-bottom); animation: sheetIn var(--d3) var(--ease-out); transition: transform var(--d3) var(--ease-out); touch-action: pan-y; }
  .modal.dragging { transition: none; }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line2); margin: .6rem auto -.2rem; flex: none; }
  .modal-head { padding: .7rem 1.1rem .8rem; } .modal-head h3 { font-size: 1.05rem; }
  .modal-wrap.closing .modal { animation: sheetOut var(--d2) ease-in forwards; }
  .modal-wrap.flick .modal { animation-duration: 160ms; }
  .more-sheet .modal-body { display: grid; gap: .8rem; }
  .more-nav { padding: 0; overflow: visible; } .more-nav .nav-ink { display: none; }
  .more-nav .nav-item { justify-content: flex-start; padding: .72rem .75rem; font-size: .98rem; } .more-nav .nav-item span, .more-nav .nav-item .end { display: inline; } .more-nav .nav-group h6 { display: block; margin: .9rem .6rem .3rem; } .more-nav .nav-group + .nav-group { border: 0; margin: 0; padding: 0; } .more-nav .nav-item[hidden], .more-nav .nav-group[hidden] { display: none; }
  .more-tools { display: flex; flex-wrap: wrap; gap: .5rem; padding-block-start: .4rem; border-block-start: 1px solid var(--line); } .more-tools .lang-sel { width: auto; }
  .more-sheet .search-box { flex: none; min-width: 0; } .more-sheet .search-box input { height: 46px; }
  input, select, textarea, .btn { min-height: 42px; } .btn.sm { min-height: 34px; } select.sm, input.sm { min-height: 34px; }
  .peek { display: none; }
}

@keyframes ripple { to { transform: scale(1); opacity: 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.92); } }
@keyframes modalOut { to { opacity: 0; transform: scale(.96); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes themeIn { from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); } to { clip-path: circle(150vmax at var(--tx, 50%) var(--ty, 0)); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* try it: a real command parser and the real ad studio, in the browser */
.try .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3.2rem); margin: .4rem 0 2rem; }
.stat { display: grid; justify-items: center; gap: .1rem; min-width: 110px; } .stat b { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand-text); line-height: 1.1; font-variant-numeric: tabular-nums; } .stat span { color: var(--muted); font-size: .88rem; text-align: center; }
.try-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.try-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.3rem 1.35rem; display: grid; gap: .7rem; position: relative; overflow: hidden; }
.try-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 1.3rem; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.try-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.12rem; } .try-card h3 .ic { color: var(--brand-text); } .try-card > p { margin: 0; }
.try-cmd { display: flex; gap: .5rem; align-items: stretch; } .try-cmd textarea { min-height: 52px; } .try-cmd .btn { flex: none; }
.try-out:empty { display: none; } .try-out.show > * { animation: arrive .4s var(--ease-out) both; }
.try-ok { background: color-mix(in srgb, var(--ok) 9%, var(--card2)); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-radius: 14px; padding: .8rem .95rem; display: grid; gap: .35rem; }
.try-ok small { color: var(--muted); } .try-ok b { display: flex; gap: .45rem; align-items: center; } .try-ok b .ic { color: var(--ok); }
.try-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem .8rem; margin: .2rem 0 0; } .try-fields div { display: grid; } .try-fields dt { color: var(--muted); font-size: .76rem; } .try-fields dd { margin: 0; font-weight: 600; }
.try-miss { display: flex; gap: .45rem; align-items: flex-start; color: var(--muted); background: var(--card2); border-radius: 12px; padding: .7rem .85rem; margin: 0; }
.try-ads { margin-top: .2rem; } .try-ads:empty { display: none; }
.site-menu { display: none; }

@media (max-width: 860px) {
  .try-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-head { padding: .55rem .9rem; gap: .5rem; flex-wrap: nowrap; } .site-head .brand span small { display: none; }
  .head-tools > select, .head-tools > .lang-sel, .head-tools > [data-on="click:theme"], .head-tools > .btn.ghost { display: none; }
  .site-menu { display: inline-grid; }
  .try-cmd { flex-direction: column; } .try-cmd .btn { width: 100%; }
  .try .stats { gap: 1rem 1.6rem; } .stat { min-width: 120px; }
}

/* v2.8: sticky bars sit below the status bar on notched phones (0 everywhere else) */
.top, .site-head { top: env(safe-area-inset-top, 0px); }

/* =====================================================================================================
   v2.9 — Dar blue, alive. The original logo and blue identity are back (the blue a shade deeper so white text reads
   4.5:1). Glass surfaces over a slow aurora; a living product preview on the landing; cards lit where the pointer is;
   sections rise in as they arrive; the assistant lives in a pop-up. prefers-reduced-motion stills all of it.
   ===================================================================================================== */
::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }
/* the aurora: three slow lights and a fading grid behind the public pages (a calmer glow behind the app) */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 90%, transparent), transparent 62%); top: -32vmax; inset-inline-end: -18vmax; animation: drift1 28s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent), transparent 62%); top: 18vh; inset-inline-start: -32vmax; opacity: .28; animation: drift2 34s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, color-mix(in srgb, var(--violet) 75%, transparent), transparent 62%); bottom: -38vmax; inset-inline-end: 6vw; opacity: .32; animation: drift3 40s ease-in-out infinite alternate; }
.aurora b { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 72%); opacity: .55; }
[data-theme="light"] .aurora i { opacity: .2; } [data-theme="light"] .aurora i:nth-child(2) { opacity: .14; } [data-theme="light"] .aurora i:nth-child(3) { opacity: .12; }
.aurora.calm i { opacity: .2; } .aurora.calm i:nth-child(2), .aurora.calm i:nth-child(3) { opacity: .12; } .aurora.calm b { display: none; } [data-theme="light"] .aurora.calm i { opacity: .08; }
@keyframes drift1 { to { transform: translate3d(-14vw, 12vh, 0) scale(1.18); } }
@keyframes drift2 { to { transform: translate3d(18vw, -8vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-10vw, -14vh, 0) scale(1.12); } }

/* surfaces: a touch of glass so the light behind shows through */
.panel, .kpi, .app-card, .value, .svc-group, .try-card, .plan, .faq, .table-wrap, .lane, .card-item, .channel, .addon, .status-big, .doc, .pcard, .auth-card, .compare, .trust-grid > div, .how li, .link-card { background: color-mix(in srgb, var(--card) 86%, transparent); border-color: var(--line); }
.panel { border-radius: 20px; padding: 1.1rem 1.2rem; } .table-wrap { border-radius: 16px; } .tbl thead th { background: color-mix(in srgb, var(--card2) 85%, transparent); }
.result { background: color-mix(in srgb, var(--card) 86%, transparent); }
.brand img { object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 8px 20px -10px color-mix(in srgb, var(--brand) 80%, transparent); }

/* buttons: the brand gradient with a passing sheen; ghost buttons are glass */
.btn { font-weight: 700; max-width: 100%; }
.btn.primary { background: var(--grad); color: var(--on-brand); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 12px 28px -14px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn.primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .3) 50%, transparent 75%); transform: translateX(-130%); transition: transform .8s var(--ease-out); }
.btn.primary:hover::before { transform: translateX(130%); }
.btn.primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 36px -14px var(--brand); }
.btn.ghost { background: color-mix(in srgb, var(--card) 55%, transparent); border-color: var(--line2); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: var(--soft); }
.btn.lg { padding: .85rem 1.5rem; border-radius: 14px; }
.btn.soft, .btn.lg, .sec .btn, .cta-band .btn { white-space: normal; text-align: center; line-height: 1.35; }
.avatar { background: var(--grad); color: #fff; }
.chip.btn-chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* the preview note sits under the header, never over a button */
.preview-bar { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .35rem 1rem; font-size: .82rem; color: var(--muted); background: color-mix(in srgb, var(--brand) 8%, transparent); border-block-end: 1px solid var(--line); text-align: center; }
.preview-bar .icon-btn { width: 26px; height: 26px; border-radius: 8px; background: transparent; border-color: transparent; }

/* ---------- the landing hero: words arrive one by one; a living preview of Dar works beside them ---------- */
.hero-live { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) 1.4rem clamp(2rem, 5vw, 3.5rem); text-align: start; background: none; }
.hero-live .hero-text { display: grid; gap: 1.1rem; justify-items: start; }
.hero-h { font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.16; margin: 0; font-weight: 800; text-wrap: balance; }
.hero-h .w { display: inline-block; animation: wordIn .9s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } }
.hero-live .lead { max-width: 34em; margin: 0; font-size: 1.14rem; }
.hero .pill { background: color-mix(in srgb, var(--card) 60%, transparent); border-color: color-mix(in srgb, var(--brand) 35%, var(--line2)); color: var(--text); }
.pill .dar-star { width: 1em; height: 1em; color: var(--accent-text); }
.hero-ctas { justify-content: flex-start; }
.type-hero h1 { font-weight: 800; text-wrap: balance; }

.live { position: relative; margin: 0; perspective: 1400px; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; justify-items: center; min-width: 0; }
.live-glow { position: absolute; inset: 6% 2% 14%; border-radius: 40px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); filter: blur(30px); opacity: .7; animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.96); } }
.live-stage { position: relative; width: min(470px, 100%); max-width: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); }
.live-card { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; padding: 1.1rem 1.15rem 1.15rem; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--card2) 92%, transparent), color-mix(in srgb, var(--card) 94%, transparent)); border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line2)); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .05) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: cardIn 1s var(--ease-out) .25s both; }
[data-theme="light"] .live-card { box-shadow: 0 30px 70px -34px rgba(20, 40, 90, .38); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.live-head { display: flex; align-items: center; gap: .6rem; } .live-head img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; } .live-head b { display: block; font-size: .95rem; line-height: 1.3; } .live-head small { color: var(--muted); font-size: .76rem; }
.live-dot { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); padding: .1rem .6rem; border-radius: 99px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.live-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.lk { position: relative; padding: .6rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--bg2) 70%, transparent); border: 1px solid var(--line); display: grid; overflow: hidden; transition: border-color .8s; }
.lk small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 1.6rem; }
.lk b { font-size: 1.45rem; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; display: inline-block; justify-self: start; }
.lk em { position: absolute; inset-block-start: .5rem; inset-inline-end: .6rem; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ok); }
.lk.bump { border-color: color-mix(in srgb, var(--accent) 55%, transparent); } .lk.bump b { animation: bump .6s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.2); color: var(--accent-text); } }
.live-chart { padding: .65rem .75rem .45rem; border-radius: 16px; background: color-mix(in srgb, var(--bg2) 70%, transparent); border: 1px solid var(--line); }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; } .lc-head small { color: var(--muted); font-size: .74rem; } .lc-head b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.live-chart svg { display: block; width: 100%; height: 88px; overflow: visible; }
.lc-line { stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) .6s forwards; }
.lc-area { opacity: 0; animation: fadeIn 1s ease-out 1.4s forwards; }
.lc-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fadeIn .4s ease-out 2s forwards, dotPulse 2.4s ease-in-out 2.4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes fadeIn { to { opacity: 1; } } @keyframes dotPulse { 50% { transform: scale(1.5); } }
.lc-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .66rem; margin-top: .2rem; }
.live-cmd { display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: .5rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent); }
.lc-star { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #fff; flex: none; } .lc-star .dar-star { width: 15px; height: 15px; animation: spinSlow 9s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.lc-typed { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lc-caret { width: 2px; height: 1.15em; background: var(--accent); animation: caret 1s steps(1) infinite; flex: none; } @keyframes caret { 50% { opacity: 0; } }
.live-out { min-height: 32px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease-out); }
.live-out.on { opacity: 1; transform: none; }
.lo { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .3rem .75rem; border-radius: 99px; font-size: .8rem; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); line-height: 1.5; } .lo .ic { flex: none; }
.live-toasts { position: absolute; inset-inline-end: -3rem; inset-block-start: 9.4rem; display: flex; flex-direction: column; gap: .5rem; width: min(268px, 64%); transform: translateZ(60px); pointer-events: none; }
.lt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--card2) 97%, transparent); border: 1px solid var(--line2); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transform: translateX(24px) scale(.94); transition: opacity .45s, transform .6s var(--ease-spring); }
[dir="rtl"] .lt { transform: translateX(-24px) scale(.94); }
[data-theme="light"] .lt { box-shadow: 0 14px 30px -16px rgba(20, 40, 90, .35); }
.lt.on { opacity: 1; transform: none; } .lt.gone { opacity: 0; transform: translateY(10px) scale(.96); }
.lt-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-text); flex: none; }
.lt[data-k="pay"] .lt-ic, .lt[data-k="deal"] .lt-ic { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.lt[data-k="ad"] .lt-ic { background: color-mix(in srgb, var(--violet) 22%, transparent); color: color-mix(in srgb, var(--violet) 65%, var(--text)); }
.lt div { min-width: 0; } .lt b { display: block; font-size: .8rem; line-height: 1.35; } .lt small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lt time { margin-inline-start: auto; font-size: .66rem; color: var(--muted); white-space: nowrap; align-self: flex-start; }
.live figcaption { color: var(--muted); font-size: .8rem; text-align: center; }

/* the countries Dar works in, drifting under the hero */
.marquee { display: flex; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: .3rem 1.4rem 1rem; color: var(--muted); }
.mq-label { flex: none; font-size: .85rem; font-weight: 700; color: var(--text); }
.mq-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
[dir="rtl"] .mq-track { animation-name: marqueeR; }
.mq-track span { white-space: nowrap; font-size: .95rem; display: inline-flex; align-items: center; gap: 1.1rem; padding-inline-end: 1.1rem; }
.mq-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 70%, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } } @keyframes marqueeR { to { transform: translateX(50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* sections */
.sec > h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; text-wrap: balance; }
.sec > .lead { max-width: 40em; margin-inline: auto; }
/* cards lit where the pointer is (motion.js sets --mx/--my on the card under the pointer) */
:is(.app-card, .value, .svc-group, .try-card, .plan, .kpi, .who, .how li, .trust-grid > div, .card-item, .link-card) { position: relative; isolation: isolate; }
:is(.app-card, .value, .svc-group, .try-card, .plan, .kpi, .who, .how li, .trust-grid > div, .card-item, .link-card)::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
:is(.app-card, .value, .svc-group, .try-card, .plan, .kpi, .who, .how li, .trust-grid > div, .card-item, .link-card):hover::after { opacity: 1; }
.app-cards { gap: 1.1rem; } .app-card { padding: 1.5rem; border-radius: 22px; transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s; }
.app-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line2)); box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--brand) 70%, transparent); }
.app-card > .ic, .value > .ic { width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--grad); color: #fff; stroke-width: 1.7; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--brand) 90%, transparent); }
.app-card.alt { background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 14%, var(--card)), color-mix(in srgb, var(--card) 86%, transparent)); }
.value, .svc-group, .try-card { border-radius: 20px; transition: border-color .3s, transform .5s var(--ease-out); } .value:hover, .svc-group:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line2)); }
.how { position: relative; } .how::before { content: ""; position: absolute; top: 2.6rem; inset-inline: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent); opacity: .75; }
.how li { z-index: 1; text-align: center; justify-items: center; padding: 1.5rem 1.2rem; border-radius: 20px; }
.how b { width: 46px; height: 46px; font-size: 1.1rem; background: var(--grad); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 92%, transparent), 0 12px 24px -10px color-mix(in srgb, var(--brand) 90%, transparent); }
.trust-grid > div { border-radius: 20px; } .trust-grid .ic { color: var(--accent-text); }
.stat b { background: linear-gradient(120deg, var(--text) 10%, var(--brand-text) 60%, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.try-card::before, .kpi::before { background: var(--grad-glow); }
details.faq { border-radius: 16px; transition: border-color .25s, background .25s; } details.faq[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line2)); }
details.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; } details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--brand-text); transition: transform .3s var(--ease-out); } details.faq[open] summary::after { transform: rotate(45deg); }
.cta-band { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, var(--card)), color-mix(in srgb, var(--violet) 14%, var(--card))); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line2)); }
.plan { border-radius: 20px; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s; } .plan:hover { transform: translateY(-3px); }
.plan.rec { border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent), var(--glow); }
.plan.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--glow); }
.plan-badge { background: var(--grad); color: #fff; }
.site-foot { background: color-mix(in srgb, var(--bg2) 82%, transparent); }
.site-head { background: color-mix(in srgb, var(--bg) 66%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }

/* rise-in on scroll (motion.js marks only what starts below the first screen) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), border-color .3s, box-shadow .5s; transition-delay: calc(var(--ri, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* who are you? — sign-in and examples for every subscriber type */
.who-pop .modal { width: min(560px, 100%); }
.who-sub { margin: 0 0 .9rem; }
.who-grid { display: grid; gap: .55rem; }
.who { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 16px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--text); text-decoration: none !important; transition: transform .3s var(--ease-out), border-color .25s, background .25s; animation: arrive .45s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.who:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.who-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; flex: none; } .who-ic .ic { width: 1.35em; height: 1.35em; }
.who-t { flex: 1; min-width: 0; } .who-t b { display: block; } .who-t small { display: block; color: var(--muted); font-size: .82rem; }
.who-go { color: var(--muted); }
.who.minor { padding-block: .6rem; } .who.minor .who-ic { width: 34px; height: 34px; background: var(--card2); color: var(--muted); }

/* sign-up: the chosen plan sits at the top of the form; the phone box shows the country's dialling code */
.plan-pick { display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; margin-bottom: 1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line2)); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.pp-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; flex: none; }
.pp-main { flex: 1; min-width: 0; display: grid; } .pp-main small { color: var(--muted); font-size: .76rem; } .pp-main b { font-size: 1.05rem; } .pp-main span { color: var(--muted); font-size: .84rem; }
.plan-pick.flash { animation: flash 1s var(--ease-out); } @keyframes flash { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }
.plan-pop .plans { margin-top: .8rem; }
details.coupon { margin: .1rem 0 .3rem; } details.coupon summary { cursor: pointer; color: var(--brand-text); font-size: .88rem; font-weight: 600; width: fit-content; } details.coupon .field { margin-top: .5rem; }
.tel { display: flex; align-items: stretch; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tel:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--soft); }
.tel-cc { display: grid; place-items: center; padding-inline: .8rem .65rem; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; background: var(--card2); border-inline-end: 1px solid var(--line); white-space: nowrap; }
.tel input { border: 0; border-radius: 0; background: transparent; box-shadow: none !important; } .tel.intl .tel-cc, .tel-cc:empty { display: none; }
.auth-card { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.auth-side { background: transparent; }
.onb-city { display: grid; gap: .8rem; max-width: 520px; margin-top: .6rem; } .onb-city input { font-size: 1.15rem; padding: .85rem 1rem; border-radius: 14px; }

/* ---------- the app shell: glass bars, a lit active item, KPI rows that fill their lines ---------- */
.side { background: color-mix(in srgb, var(--bg2) 80%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.top { background: color-mix(in srgb, var(--bg) 68%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.nav-item { border-radius: 12px; }
.nav-item.on { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--brand) 6%, transparent)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
[dir="rtl"] .nav-item.on { background: linear-gradient(270deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--brand) 6%, transparent)); }
.nav-ink { background: var(--grad-glow); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.search-btn { background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 12px; }
.kpis { grid-template-columns: repeat(var(--kc, 4), minmax(0, 1fr)); }
.kpi { padding: 1rem 1.1rem; border-radius: 18px; transition: transform .4s var(--ease-out), border-color .3s; } .kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line2)); }
.kpi span { padding-inline-end: 2.3rem; }
.kpi > .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--soft); color: var(--brand-text); opacity: 1; inset-block-start: .7rem; inset-inline-end: .75rem; }
.kpi b { font-size: clamp(1.2rem, .85rem + 1vw, 1.7rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* v3.5.1: on a phone a long amount («9,710,000 ر.س») wraps inside its card instead of losing its currency to «…» */
@media (max-width: 760px) { .kpi b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: clamp(1.05rem, .7rem + 2.2vw, 1.35rem); } }
/* v3.5.1: a value never ends in «…»: a long amount takes a second line, and a breakdown under a number has its own line */
.kpi b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; } .kpi b small { display: block; white-space: normal; margin-top: .15rem; line-height: 1.5; }
.card-img { margin: 0; aspect-ratio: 16 / 11; border-radius: 0; -webkit-mask: none; mask: none; }
.card-item { border-radius: 18px; }
body:has(.ai-fab) #toasts { inset-block-end: calc(92px + env(safe-area-inset-bottom)); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* ---------- the assistant pop-up ---------- */
.dar-star { display: block; }
.ai-fab { position: fixed; z-index: 70; inset-block-end: calc(22px + env(safe-area-inset-bottom)); inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--brand) 95%, transparent), 0 0 0 1px rgba(255, 255, 255, .14) inset; transition: transform .35s var(--ease-spring); isolation: isolate; -webkit-tap-highlight-color: transparent; }
.ai-fab:hover { transform: scale(1.07); } .ai-fab:active { transform: scale(.94); }
.ai-fab .dar-star { width: 24px; height: 24px; transition: transform .6s var(--ease-spring); } .ai-fab:hover .dar-star { transform: rotate(90deg); }
.ai-ring { position: absolute; inset: -4px; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, var(--accent), var(--brand), var(--violet), var(--accent)); filter: blur(7px); opacity: .7; animation: spinSlow 6s linear infinite; }
.ai-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: aiPulse 3.2s ease-out infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
.ai-tip { position: absolute; inset-inline-end: calc(100% + 10px); white-space: nowrap; padding: .35rem .7rem; border-radius: 10px; font-size: .82rem; font-weight: 700; background: var(--card2); color: var(--text); border: 1px solid var(--line2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.ai-fab:hover .ai-tip, .ai-fab:focus-visible .ai-tip { opacity: 1; }
body.ai-open .ai-fab { transform: scale(.88); } body.ai-open .ai-fab::after, body.ai-open .ai-tip { display: none; }
.ai-pop { position: fixed; z-index: 80; inset-block-end: calc(92px + env(safe-area-inset-bottom)); inset-inline-end: 22px; width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 24px; background: color-mix(in srgb, var(--bg2) 90%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line2)); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05) inset; backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); overflow: hidden; transform-origin: bottom right; }
[dir="rtl"] .ai-pop { transform-origin: bottom left; }
[data-theme="light"] .ai-pop { box-shadow: 0 40px 80px -34px rgba(20, 40, 90, .4); }
.ai-pop.in { animation: aiIn .45s var(--ease-spring); } .ai-pop.out { animation: aiOut .24s ease-in forwards; }
@keyframes aiIn { from { opacity: 0; transform: translateY(16px) scale(.9); } } @keyframes aiOut { to { opacity: 0; transform: translateY(12px) scale(.94); } }
.ai-pop .sheet-grip { display: none; }
.ai-head { display: flex; align-items: center; gap: .65rem; padding: .8rem .85rem; border-block-end: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
.ai-head b { display: block; line-height: 1.3; } .ai-head small { display: block; color: var(--muted); font-size: .76rem; } .ai-head .icon-btn { width: 34px; height: 34px; background: transparent; border-color: transparent; }
.ai-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; flex: none; } .ai-av .dar-star { width: 18px; height: 18px; }
.ai-av.sm { width: 28px; height: 28px; border-radius: 9px; } .ai-av.sm .dar-star { width: 14px; height: 14px; }
.ai-av.lg { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto .4rem; box-shadow: var(--glow); } .ai-av.lg .dar-star { width: 28px; height: 28px; animation: spinSlow 14s linear infinite; }
.ai-log { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; }
.ai-hello { margin: auto 0; text-align: center; display: grid; gap: .3rem; } .ai-hello h4 { margin: 0; font-size: 1.1rem; } .ai-hello p { margin: 0 0 .5rem; font-size: .88rem; }
.ai-sugs { display: grid; gap: .45rem; } .ai-sug { text-align: start; padding: .6rem .8rem; border-radius: 14px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--text); font: inherit; font-size: .86rem; cursor: pointer; transition: border-color .2s, transform .25s var(--ease-out), background .2s; animation: arrive .45s var(--ease-out) both; }
.ai-sug:nth-child(2) { animation-delay: 60ms; } .ai-sug:nth-child(3) { animation-delay: 120ms; } .ai-sug:nth-child(4) { animation-delay: 180ms; }
.ai-sug:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--soft); transform: translateY(-1px); }
.ai-msg { display: flex; gap: .5rem; align-items: flex-end; animation: msgIn .35s var(--ease-out); } .ai-msg.me { justify-content: flex-end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.ai-bubble { max-width: 86%; padding: .6rem .8rem; border-radius: 16px; font-size: .9rem; line-height: 1.65; min-width: 0; overflow-wrap: anywhere; }
.ai-msg.me .ai-bubble { background: var(--grad); color: #fff; border-end-end-radius: 6px; }
.ai-msg.bot .ai-bubble { background: color-mix(in srgb, var(--card2) 88%, transparent); border: 1px solid var(--line); border-end-start-radius: 6px; }
.ai-bubble .result { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; } .ai-bubble .result p:last-child { margin-bottom: 0; } .ai-bubble .btn { margin-top: .35rem; } .ai-bubble .tbl { font-size: .8rem; } .ai-bubble .kpis { --kc: 2; }
.ai-typing { display: inline-flex; gap: 4px; padding: .3rem 0; } .ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; } .ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.ai-form { display: flex; align-items: flex-end; gap: .45rem; padding: .7rem; border-block-start: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.ai-form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border-radius: 14px; padding: .6rem .8rem; line-height: 1.5; }
.ai-send { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .25s var(--ease-spring); } .ai-send:active { transform: scale(.9); }
[dir="rtl"] .ai-send .ic { transform: scaleX(-1); }
.ai-mic { width: 44px; height: 44px; border-radius: 14px; }
.ai-attach { width: 44px; height: 44px; border-radius: 14px; flex: none; }
/* v3.10 — the chips of what is attached to an assistant's message, and the drop target */
.att-tray { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .7rem 0; }
.att-chip { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .2rem .3rem .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface, var(--bg)); font-size: .82rem; }
.att-chip img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.att-chip.bad { border-color: var(--bad, #c0392b); }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.att-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand, currentColor); animation: attspin .8s linear infinite; }
@keyframes attspin { to { transform: rotate(360deg); } }
.ai-form.drop, form.drop { outline: 2px dashed var(--brand, currentColor); outline-offset: -4px; }
.onefile.is-busy { opacity: .6; pointer-events: none; }
.apply-file { margin-block: .4rem; } .apply-file .code-diff { max-height: 22rem; overflow: auto; }
.ai-issues { margin-block-start: .35rem; } .ai-issues ul { margin: .3rem 0 0; padding-inline-start: 1.1rem; }

@media (max-width: 980px) {
  .hero-live { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}
@media (max-width: 900px) { .how::before { display: none; } }
@media (max-width: 760px) {
  .hero-h { font-size: clamp(2rem, 8.6vw, 2.5rem); } .hero-live .lead { font-size: 1.02rem; }
  .live-stage { transform: none; } .live-card { padding: .9rem; border-radius: 20px; } .lk b { font-size: 1.25rem; } .lk small { white-space: normal; line-height: 1.3; padding-inline-end: 0; } .lk em { position: static; font-size: .66rem; }
  .live-toasts { inset-inline: .8rem; inset-block-end: 5.2rem; width: auto; transform: none; } .lt:nth-child(n + 3) { display: none; } .lt { transform: translateY(14px) scale(.96); } [dir="rtl"] .lt { transform: translateY(14px) scale(.96); }
  .marquee { flex-direction: column; align-items: stretch; gap: .5rem; text-align: center; }
  .fab { width: 58px; height: 58px; margin-top: -22px; padding: 0; border-radius: 50%; -webkit-mask: none; mask: none; background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--bg), 0 12px 26px -8px color-mix(in srgb, var(--brand) 95%, transparent); }
  .fab-slot { filter: none; }
  .tabbar { background: color-mix(in srgb, var(--bg2) 82%, transparent); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
  .tab-ink { background: var(--grad-glow); box-shadow: 0 0 10px var(--accent); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-fab { width: 50px; height: 50px; inset-block-end: calc(82px + env(safe-area-inset-bottom)); inset-inline-end: 14px; } .ai-tip { display: none; }
  .ai-pop { inset: auto 0 0 0; width: 100%; height: min(88vh, 100%); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding-bottom: env(safe-area-inset-bottom); border-inline: 0; border-block-end: 0; transition: transform var(--d3) var(--ease-out); }
  .ai-pop.in { animation: sheetIn .38s var(--ease-out); } .ai-pop.out { animation: sheetOut .22s ease-in forwards; } .ai-pop.dragging { transition: none; }
  .ai-pop .sheet-grip { display: block; position: absolute; top: 7px; left: 50%; margin-left: -22px; width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }
  .ai-head { padding-top: 1.15rem; }
  body.ai-open .tabbar, body.ai-open .ai-fab, body.ai-open .fab-menu { visibility: hidden; }
  .chip, .btn-chip { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-line { stroke-dashoffset: 0; } .lc-area, .lc-dot { opacity: 1; } .reveal { opacity: 1; transform: none; } .live-stage { transform: none; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } .aurora, .ai-fab, .ai-pop { display: none !important; } }
.li { align-items: center; } .li .badge, .status-big .badge { align-self: center; }
/* v3.5: a row of a list wraps on a phone instead of pushing the page sideways (date, amount and its button) */
.li { flex-wrap: wrap; } .li > * { min-width: 0; } .li > .row { flex-wrap: wrap; }
@media (max-width: 640px) {
  .onb-head { gap: .5rem; padding: .7rem .8rem; flex-wrap: wrap; } .onb-head img { width: 38px; height: 38px; } .onb-head .lang-sel { display: none; } .onb-head .btn.sm { padding: .3rem .6rem; font-size: .8rem; }
  .foot-grid a { padding-block: .35rem; }
}

/* v3.1: city and district suggestions appear only while typing — no new arrow inside the boxes */
input[list^="geo-"]::-webkit-calendar-picker-indicator { display: none !important; }

/* v3.2: what the activated actions show inside their result cards (same tokens, radius and buttons as the rest) */
.send-item { align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.send-item .grow { min-width: 0; flex: 1 1 220px; } .send-item details summary { cursor: pointer; list-style: none; } .send-item details summary::-webkit-details-marker { display: none; }
.send-item.done { opacity: .78; } .ch-btns { align-items: center; } .sent-mark .badge { margin-inline-start: .2rem; }
.share-card { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: .9rem; align-items: start; }
.share-media img { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line); display: block; }
.share-media:empty { display: none; } .share-card:has(.share-media:empty) { grid-template-columns: minmax(0, 1fr); }
.share-body { min-width: 0; display: grid; gap: .5rem; } .share-body .copyline code { overflow-wrap: anywhere; }
.qr-fig { margin: .4rem auto; max-width: 260px; display: grid; gap: .4rem; }
.wl-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; } .wl-bar { background: var(--wl, var(--brand)); color: #fff; padding: .9rem 1rem; font-size: 1.05rem; } .wl-preview p { padding: .6rem 1rem; margin: 0; }
.relay-send .stack { max-width: 360px; margin: .6rem auto; }
.agent-fab { position: fixed; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 16px; z-index: 40; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); border-radius: 999px; }
[data-mic].on { color: var(--brand-text); border-color: var(--brand); }
@media (max-width: 600px) { .share-card { grid-template-columns: minmax(0, 1fr); } }

/* v3.4 — the developer's code editor (Code) and the server panels (Monitoring) */
.code-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: .75rem; align-items: start; }
.code-tree { max-height: 72vh; overflow: auto; padding: .4rem; font-size: .86rem; }
.code-dir summary { cursor: pointer; padding: .3rem .4rem; border-radius: 8px; color: var(--muted); list-style: none; display: flex; gap: .35rem; align-items: center; } .code-dir summary::-webkit-details-marker { display: none; } .code-dir summary small { margin-inline-start: auto; }
.code-dir summary:hover, .code-file:hover { background: var(--card2); }
.code-file { display: flex; gap: .4rem; align-items: center; padding: .28rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none; direction: ltr; text-align: left; }
.code-dir:not(.root) .code-file { padding-inline-start: 1.4rem; }
.code-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .code-file small { color: var(--muted); font-size: .72rem; }
.code-file.on { background: var(--card2); box-shadow: inset 3px 0 0 var(--brand); } .code-file.bin { color: var(--muted); }
.code-ed { min-width: 0; padding: .6rem; display: grid; gap: .5rem; }
.code-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .code-head b { word-break: break-all; }
.code-wrap { direction: ltr; display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg2); height: 64vh; min-height: 320px; }
.code-gutter, .code-ta { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; margin: 0; padding: .6rem .5rem; }
.code-gutter { color: var(--muted); text-align: right; user-select: none; overflow: hidden; border-inline-end: 1px solid var(--line); min-width: 3.2rem; background: var(--card2); direction: ltr; }
.code-ta { width: 100%; height: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); white-space: pre; overflow: auto; tab-size: 2; }
.code-ta:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.code-img { display: grid; place-items: center; padding: 1rem; background: var(--bg2); border-radius: 10px; } .code-img img { max-width: 100%; max-height: 60vh; }
.code-diff { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; max-height: 65vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; white-space: pre; direction: ltr; text-align: left; }
.code-diff .add, .code-k.add { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .code-diff .del, .code-k.del { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.note.code-bad { border-style: solid; border-color: var(--bad); color: var(--bad); } .note.code-bad .ic { color: var(--bad); } .note.code-bad ul { margin: .3rem 0 0; padding-inline-start: 1.1rem; }
.note.code-ok { border-style: solid; border-color: var(--ok); color: var(--ok); } .note.code-ok .ic { color: var(--ok); }
.sv-reasons { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .35rem; }
@media (max-width: 860px) { .code-grid { grid-template-columns: minmax(0, 1fr); } .code-tree { max-height: 34vh; } .code-wrap { height: 58vh; } }

/* v3.5 — pickers: a list to choose from instead of typing (currencies, countries, payment methods, services…) */
.pick-multi { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.pick-head { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.pick-head .pick-find { flex: 1; min-width: 0; padding: .4rem .6rem; }
.pick-count { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.pick-list { max-height: 210px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .1rem .6rem; padding: .4rem .6rem; }
.pick-opt { display: flex; align-items: center; gap: .45rem; padding: .3rem .2rem; border-radius: 8px; cursor: pointer; min-width: 0; }
.pick-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-opt:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.pick-opt input { width: auto; flex: none; }
.pick-prices, .pick-limits { display: grid; gap: .5rem; }
.pp-rows { display: grid; gap: .4rem; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) 9rem auto; gap: .4rem; align-items: center; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.pl-item { display: grid; gap: .2rem; font-size: .85rem; }
@media (max-width: 560px) { .pp-row { grid-template-columns: minmax(0, 1fr) 6.5rem auto; } .pick-list { grid-template-columns: 1fr; } }

/* v3.5 — the steps the assistant proposes (run only after «Run»), and the AI connection screen */
.btn.xs { padding: .16rem .5rem; font-size: .78rem; min-height: 28px; border-radius: 8px; gap: .25rem; }
.ic.flip-v { transform: scaleY(-1); }
.ai-answer > p { margin: 0 0 .3rem; }
.ai-plan { margin-top: .5rem; display: grid; gap: .5rem; min-width: 0; }
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; counter-reset: st; min-width: 0; }
.ai-steps > li { counter-increment: st; display: flex; gap: .5rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.ai-steps > li::before { content: counter(st); flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-text); font-variant-numeric: tabular-nums; }
.ai-step-t { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.6; }
.ai-step-t b { font-weight: 600; } .ai-step-t small { display: block; color: var(--muted); margin-top: .1rem; } .ai-step-t > .ic { width: 1.05em; height: 1.05em; vertical-align: -.18em; margin-inline-end: .3rem; color: var(--brand-text); }
.ai-swatch { display: inline-block; width: .95em; height: .95em; border-radius: 4px; vertical-align: -.12em; border: 1px solid var(--line2); }
.ai-step-t details pre { max-height: 220px; margin: .3rem 0 0; white-space: pre-wrap; }
.ai-step-st { flex: none; display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.ai-steps.done > li { opacity: .8; }
.ai-step-note { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; font-size: .8rem; }
.spin.xs { width: 16px; height: 16px; border-width: 2px; margin: 0; }
.ai-mini { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: .82rem; width: 100%; }
.ail-add { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: .5rem; margin: .6rem 0; }
.ail-models { min-width: 14rem; gap: .4rem; }
.num-sm { width: 6rem; }
@media (max-width: 640px) { .ail-add { grid-template-columns: 1fr; } .ail-models { min-width: 0; } }
/* v3.5.1: on a phone each AI provider is one card (name, switch, keys, models, test) instead of a six-column table */
@media (max-width: 640px) {
  .ail-tbl thead { display: none; }
  .ail-tbl, .ail-tbl tbody { display: block; width: 100%; }
  .ail-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .7rem; align-items: center; padding: .75rem .85rem; border-bottom: 1px solid var(--line); }
  .ail-tbl tr:last-child { border-bottom: 0; }
  .ail-tbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .ail-tbl td:nth-child(1) { grid-column: 2; grid-row: 1; } .ail-tbl td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .ail-tbl td:nth-child(3) { grid-column: 2; grid-row: 2; } .ail-tbl td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .ail-tbl td:nth-child(5), .ail-tbl td:nth-child(6) { grid-column: 1 / -1; } .ail-tbl td:empty { display: none; }
  /* v3.5.1: the interfaces' links — one card per interface, each field under its own label */
  .lnk-tbl thead { display: none; }
  .lnk-tbl, .lnk-tbl tbody { display: block; width: 100%; }
  .lnk-tbl tr { display: grid; gap: .55rem; padding: .8rem .85rem; border-bottom: 1px solid var(--line); }
  .lnk-tbl tr:last-child { border-bottom: 0; }
  .lnk-tbl td { display: block; padding: 0; border: 0; min-width: 0; }
  .lnk-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
  .lnk-tbl td code { overflow-wrap: anywhere; }
}
/* v3.5.1: an AI key connected from inside an answer (same look as the AI connection form) */
.aik { gap: .45rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); min-width: 0; }
.note.aik-note { flex-wrap: wrap; } .note.aik-note > span { flex: 1 1 0; min-width: 0; } .note.aik-note > .aik { flex: 1 1 100%; }
.aik-row { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto; gap: .45rem; min-width: 0; }
.aik-row > * { min-width: 0; }
@media (max-width: 640px) { .aik-row { grid-template-columns: 1fr; } }
.ai-open-note { margin-top: .5rem; } .ai-open-note > summary { cursor: pointer; color: var(--muted); }
.ro-val { display: block; padding: .55rem .2rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 42px; }
.pick-icons .pi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .25rem; max-height: 168px; overflow: auto; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.pick-icons .pi { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); cursor: pointer; padding: 0; min-height: 0; }
.pick-icons .pi:hover { background: var(--soft); } .pick-icons .pi.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-text); }
.pick-icons .pi .ic { width: 20px; height: 20px; }
details.icon-pick { position: relative; } details.icon-pick > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
details.icon-pick > summary::-webkit-details-marker { display: none; } details.icon-pick[open] > .pick-icons { position: absolute; z-index: 30; inset-inline-start: 0; top: 38px; width: min(320px, 80vw); box-shadow: var(--shadow); }

/* v3.5.1: on a computer the last controls of a page scroll clear of the AI button (it floats at the bottom corner) */
@media (min-width: 761px) { .view { padding-bottom: 6.5rem; } }
/* v3.5.2: the page that cannot reach its server says why (the technical detail folded, readable left to right) */
.srv-down .srv-detail { white-space: pre-wrap; text-align: left; overflow-wrap: anywhere; max-height: 220px; overflow: auto; margin: .4rem 0 0; }

/* ===== v3.7 — «محرك الأتمتة» (assets/flows.js): the canvas, its nodes and links, the panel, the runs ===== */
.fl-tabs { margin-bottom: .8rem; } .fl-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--warn); vertical-align: middle; }
.fl-kpis { --kc: 4; } .fl-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 .8rem; }
.fl-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); }
.fl-chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); } .fl-chip.off { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .fl-chip.info { color: var(--brand-text); }
.fl-chip .ic { width: .9rem; height: .9rem; }
.fl-ai-box textarea, .fl-ai-form textarea { width: 100%; min-height: 76px; }
.fl-ai-form { display: grid; gap: .5rem; }
.fl-explain { margin: .3rem 0; padding-inline-start: 1.2rem; display: grid; gap: .15rem; } .fl-explain li { font-size: .9rem; }
.fl-aires { margin-top: .6rem; } .fl-needs { margin-top: .4rem; } .fl-needs ul { margin: .2rem 0; padding-inline-start: 1.1rem; }
.fl-issues { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .3rem; }
.fl-issues li { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .88rem; padding: .3rem .55rem; border-radius: 8px; background: var(--card2); }
.fl-issues li.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--card)); } .fl-issues li.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--card)); }
.fl-switch { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; cursor: pointer; }
.fl-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fl-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line2); transition: background .2s; }
.fl-switch span::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.fl-switch input:checked + span { background: var(--ok); } .fl-switch input:checked + span::after { transform: translateX(16px); } [dir="rtl"] .fl-switch input:checked + span::after { transform: translateX(-16px); }
.fl-switch input:disabled + span { opacity: .45; } .fl-switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* the editor */
.fl-ed { display: grid; gap: .6rem; min-width: 0; }
.fl-bar { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.fl-name { flex: 1 1 220px; min-width: 0; font-weight: 700; font-size: 1.05rem; } .fl-bar-sp { flex: 1 1 0; }
.fl-dirty { font-size: .78rem; color: var(--warn); } .fl-tsel { max-width: 190px; }
.fl-more { position: relative; } .fl-more > summary { list-style: none; } .fl-more > summary::-webkit-details-marker { display: none; }
.fl-menu { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 4px); min-width: 200px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); padding: .3rem; display: grid; }
.fl-menu button { display: flex; align-items: center; gap: .45rem; background: none; border: 0; color: inherit; font: inherit; text-align: start; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; } .fl-menu button:hover { background: var(--soft); }
.fl-ai-strip { display: flex; gap: .45rem; align-items: flex-start; } .fl-ai-strip textarea { flex: 1 1 auto; min-height: 40px; resize: vertical; }
.fl-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px; gap: .6rem; align-items: start; min-height: 460px; }
.fl-stage-wrap { position: relative; min-width: 0; }
.fl-pal { display: grid; gap: .6rem; align-content: start; max-height: 640px; overflow: auto; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fl-pal-g { display: grid; gap: .25rem; } .fl-pal-g > b { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.fl-pal-i { display: flex; align-items: center; gap: .4rem; text-align: start; font: inherit; font-size: .85rem; padding: .38rem .5rem; border-radius: 9px; border: 1px solid var(--line); background: var(--card2); color: var(--text); cursor: grab; }
.fl-pal-i:hover { border-color: var(--brand); background: var(--soft); } .fl-pal-i .ic { width: 1rem; height: 1rem; flex: none; }
.fl-stage { position: relative; overflow: auto; height: 640px; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--radius);
  background-color: var(--card2); background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 28%, transparent) 1px, transparent 1.2px); background-size: 20px 20px; touch-action: pan-x pan-y; }
.fl-sizer { position: relative; } .fl-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.fl-links { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.fl-link .ln { fill: none; stroke: color-mix(in srgb, var(--brand) 70%, var(--muted)); stroke-width: 2; }
.fl-link.alt .ln { stroke: var(--muted); stroke-dasharray: 6 4; } .fl-link.err .ln { stroke: var(--bad); stroke-dasharray: 3 3; } .fl-link.on .ln { stroke: var(--warn); stroke-width: 3; }
.fl-link .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.fl-temp { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 4; }
.fl-node { position: absolute; display: grid; align-content: start; gap: .2rem; padding: .5rem .75rem .45rem; line-height: 1.45; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line2); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); cursor: pointer; user-select: none; touch-action: none; }
.fl-node:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fl-node.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent), 0 6px 16px -10px rgba(0, 0, 0, .45); }
.fl-node.bad { border-color: var(--bad); } .fl-node.dis { opacity: .55; border-style: dashed; }
.fl-node.trig { background: color-mix(in srgb, var(--brand) 12%, var(--card)); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.fl-node.k-send { border-inline-start: 4px solid #22a06b; } .fl-node.k-ai { border-inline-start: 4px solid var(--violet); } .fl-node.k-data { border-inline-start: 4px solid var(--accent); } .fl-node.k-logic { border-inline-start: 4px solid var(--warn); }
.fl-node.r-ok { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 45%, transparent); } .fl-node.r-bad { box-shadow: 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent); } .fl-node.r-skip { box-shadow: 0 0 0 2px color-mix(in srgb, var(--muted) 40%, transparent); }
.fl-node-head { display: flex; align-items: center; gap: .35rem; font-size: .74rem; line-height: 1.5; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; min-height: 1.15rem; } .fl-node-head .ic { width: .95rem; height: .95rem; flex: none; }
.fl-node-title { font-size: .86rem; line-height: 1.6; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-block: .05rem; }
.fl-node-sum { font-size: .72rem; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fl-node-id { font-size: .64rem; color: var(--muted); opacity: .7; font-weight: 500; margin-inline-start: auto; }
.fl-run { display: inline-flex; align-items: center; gap: .1rem; font-size: .7rem; } .fl-node.r-ok .fl-run { color: var(--ok); } .fl-node.r-bad .fl-run { color: var(--bad); }
.fl-tag { font-style: normal; font-size: .66rem; color: var(--warn); }
.fl-in, .fl-out { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); transform: translate(-50%, -50%); touch-action: none; }
.fl-in { left: 0; top: 50%; } .fl-out { left: 100%; cursor: crosshair; z-index: 2; } .fl-out:hover { background: var(--brand); }
.fl-out.false, .fl-out.else { border-color: var(--muted); } .fl-out.error { border-color: var(--bad); } .fl-out.done { border-color: var(--accent); }
.fl-out b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .64rem; font-weight: 700; color: var(--muted); white-space: nowrap; background: var(--card2); padding: 0 .25rem; border-radius: 4px; pointer-events: none; }
.fl-zoombar { position: absolute; bottom: .6rem; left: .6rem; display: inline-flex; gap: .2rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .15rem; z-index: 5; box-shadow: var(--shadow); }
.fl-aires > summary { cursor: pointer; } .fl-aires[open] > summary { margin-bottom: .4rem; }
.fl-zoombar .icon-btn { min-width: 2rem; font-size: .8rem; }
/* the panel */
.fl-insp { display: grid; gap: .55rem; align-content: start; max-height: 72vh; overflow: auto; padding: .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.fl-insp h4 { margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.fl-f { display: grid; gap: .25rem; min-width: 0; } .fl-f > span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fl-f input, .fl-f select, .fl-f textarea { width: 100%; min-width: 0; } .fl-f.check { display: flex; align-items: center; gap: .4rem; }
.fl-exp { display: flex; gap: .3rem; align-items: flex-start; min-width: 0; } .fl-exp > input, .fl-exp > textarea { flex: 1 1 auto; min-width: 0; }
.fl-vals { font-family: ui-monospace, monospace; font-size: .75rem; flex: none; }
.fl-conds, .fl-kv { display: grid; gap: .35rem; }
.fl-cond { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; padding: .4rem; border: 1px dashed var(--line2); border-radius: 9px; position: relative; }
.fl-cond > .icon-btn { position: absolute; top: .2rem; inset-inline-end: .2rem; }
.fl-kv-r { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: .25rem; align-items: start; }
.fl-case { display: grid; gap: .35rem; padding: .45rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card2); } .fl-case .row > input { flex: 1 1 auto; min-width: 0; }
.fl-days { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.fl-adv > summary { cursor: pointer; } .fl-adv { display: grid; gap: .45rem; }
.fl-last { display: grid; gap: .25rem; }
.fl-json { margin: 0; max-height: 260px; overflow: auto; font-size: .74rem; line-height: 1.45; padding: .5rem .6rem; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; text-align: left; }
.fl-paths { display: grid; gap: .25rem; } .fl-paths code { font-size: .72rem; background: var(--card2); padding: .05rem .3rem; border-radius: 5px; display: inline-block; margin: .1rem; }
.fl-pathg { display: grid; gap: .3rem; margin-bottom: .6rem; } .fl-pathg > div { display: flex; flex-wrap: wrap; gap: .3rem; }
/* results and runs */
.fl-res .row b { display: inline-flex; align-items: center; gap: .35rem; }
.fl-steps { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .3rem; }
.fl-steps > li { border: 1px solid var(--line); border-radius: 10px; padding: .35rem .55rem; background: var(--card); display: grid; gap: .25rem; }
.fl-steps > li.bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 6%, var(--card)); } .fl-steps > li.skip { opacity: .75; }
.fl-step-h { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: start; }
.fl-step-h small { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; } .fl-step-h em { font-style: normal; font-size: .75rem; color: var(--muted); }
.fl-steps > li.ok .fl-step-h > .ic:first-child { color: var(--ok); } .fl-steps > li.bad .fl-step-h > .ic:first-child { color: var(--bad); }
.fl-filters { margin-bottom: .6rem; } .fl-filters select { max-width: 220px; }
.fl-runhead { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; color: var(--muted); }
.fl-dx { display: grid; gap: .35rem; margin-bottom: .6rem; } .fl-hook .copyline code { word-break: break-all; }
.fl-total th { background: var(--card2); }
/* the assistant's dangerous steps */
.ai-steps > li.ai-step-danger { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 5%, var(--card)); }
.ai-danger-tag { font-style: normal; font-size: .72rem; color: var(--bad); display: inline-flex; align-items: center; gap: .2rem; } .ai-danger-tag .ic { width: .8rem; height: .8rem; }
.ai-confirm { display: flex; align-items: center; gap: .45rem; margin: .45rem 0; font-size: .86rem; font-weight: 600; color: var(--bad); }
@media (max-width: 1100px) { .fl-grid { grid-template-columns: 150px minmax(0, 1fr); } .fl-insp { grid-column: 1 / -1; max-height: none; } }
@media (max-width: 700px) { .fl-grid { grid-template-columns: minmax(0, 1fr); } .fl-pal { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-height: none; } .fl-pal-g { grid-auto-flow: column; align-items: center; } .fl-stage { height: 460px; } .fl-tsel { max-width: 140px; } }
/* v3.7 — مكتبة العقد ومطوّر دار الذكي */
.nd-modal .nd-sec { border-top: 1px solid var(--line); padding-block: .7rem .2rem; display: grid; gap: .45rem; }
.nd-modal .nd-sec > h4, .nd-modal .nd-sec > summary { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; }
.nd-modal details.nd-sec > summary { cursor: pointer; list-style: none; }
.nd-ops { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.nd-ops li { line-height: 1.7; overflow-wrap: anywhere; }
.nd-m { font-weight: 700; padding: 0 .35rem; border-radius: 6px; background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.nd-m.write { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.nd-key input { flex: 1 1 220px; } .nd-key select { flex: 0 1 220px; width: auto; }
.nd-json { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.5; min-height: 340px; white-space: pre; overflow: auto; }
.nd-actions { border-top: 1px solid var(--line); padding-top: .7rem; }
.fl-ai-form input[name="docs"] { margin-block: .4rem; }
.dv-pol { display: grid; gap: .6rem; }
.dv-pol .check { align-items: flex-start; gap: .55rem; } .dv-pol .check input { margin-top: .3rem; flex: none; width: auto; }
.dv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dv-item { border: 1px solid var(--line); border-inline-start: 3px solid var(--info); border-radius: 12px; padding: .7rem .85rem; display: grid; gap: .4rem; background: var(--card); }
.dv-item.k-fix { border-inline-start-color: var(--bad); } .dv-item.k-node { border-inline-start-color: var(--brand); } .dv-item.k-limit, .dv-item.k-setup { border-inline-start-color: var(--warn); } .dv-item.k-optimize { border-inline-start-color: var(--ok); }
.dv-item p { margin: 0; line-height: 1.7; }
.dv-head { display: flex; align-items: center; gap: .45rem; }
.dv-score { margin-inline-start: auto; width: 72px; height: 6px; border-radius: 99px; background: var(--card2); overflow: hidden; flex: none; }
.dv-score i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.fl-pal-i.muted { color: var(--muted); }
.dv-pol > .btn { justify-self: start; min-width: 140px; }
/* v3.8: a service imported from its own description; OAuth 2 for nodes */
.nd-imp-file { cursor: pointer; }
.nd-imp-pv { display: grid; gap: .55rem; }
.nd-imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.nd-imp-bar input[type=search] { width: auto; min-width: 0; flex: 1 1 180px; }
.nd-imp-ops { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .4rem .6rem; display: grid; gap: .3rem; }
.nd-imp-ops ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.nd-imp-ops details > summary { cursor: pointer; padding-block: .25rem; }
.nd-imp-op .check { align-items: flex-start; gap: .5rem; line-height: 1.7; } .nd-imp-op .check > input { margin-top: .35rem; }
.nd-imp-op .check > span { min-width: 0; overflow-wrap: anywhere; }
.nd-imp-op.off { opacity: .55; }
.nd-oa { display: grid; gap: .45rem; } .nd-oa details > summary { cursor: pointer; }
/* v3.8: the last test's real data in the values picker */
.fl-real { display: grid; gap: .3rem; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .6rem; margin-bottom: .6rem; }
.fl-tree { max-height: 300px; overflow: auto; display: grid; gap: .15rem; font-size: .82rem; }
.fl-tree details > summary { list-style: none; cursor: pointer; } .fl-tree details > summary::-webkit-details-marker { display: none; }
.fl-tree-in { padding-inline-start: 1rem; display: grid; gap: .15rem; border-inline-start: 1px dashed var(--line); margin-inline-start: .35rem; }
.fl-leaf { display: inline-flex; gap: .45rem; align-items: baseline; max-width: 100%; border: 0; background: none; color: inherit; padding: .1rem .3rem; border-radius: 6px; cursor: pointer; text-align: start; font: inherit; }
.fl-leaf:hover, .fl-leaf:focus-visible { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.fl-leaf code { color: var(--brand); } .fl-leaf span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fl-leaf.obj span { font-style: italic; }
.fl-ins { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0 .2rem; display: inline-flex; align-items: center; } .fl-ins .ic { width: 14px; height: 14px; }
/* v3.8: ready templates */
.fl-tpl-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; }
.fl-tpl-box > summary::-webkit-details-marker { display: none; }
.fl-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .7rem; }
.fl-tpl { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--card2); min-width: 0; }
.fl-tpl p { margin: 0; } .fl-tpl-head { align-items: center; } .fl-tpl-head b { line-height: 1.35; }
.fl-tpl-meta { color: var(--muted); display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.fl-tpl .btn { margin-top: auto; align-self: flex-start; }
/* v3.8: a service designed by the AI */
.svc-ai { display: grid; gap: .55rem; margin-top: .8rem; }
.svc-ai h4 { margin: .5rem 0 0; display: flex; align-items: center; gap: .4rem; }
.svc-ai-head { display: flex; gap: .7rem; align-items: flex-start; } .svc-ai-head > .ic { color: var(--brand-text); width: 1.6rem; height: 1.6rem; flex: none; margin-top: .15rem; }
.svc-ai-head b { font-size: 1.1rem; } .svc-ai-head p { margin: .15rem 0 0; }
.svc-ai-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; margin: 0; color: var(--muted); }
.svc-ai-acts { display: grid; gap: .5rem; }
.svc-ai-act { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; background: var(--card2); display: grid; gap: .35rem; min-width: 0; }
.svc-ai-act details p { margin: .3rem 0 0; }
.svc-ai-flows { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; } .svc-ai-flows li { border-inline-start: 3px solid var(--line); padding-inline-start: .6rem; } .svc-ai-flows p { margin: .1rem 0 0; }
.svc-ai-issues { margin: 0; padding-inline-start: 1.1rem; color: var(--muted); }
.svc-ai-go { margin-top: .3rem; } .svc-ai .cmd-inline { margin-top: .2rem; }
.svc-ai-form .field { margin-bottom: .6rem; } .svc-ai-form textarea { width: 100%; }
/* v3.8 — Dar Mind: what the assistant did at once (with Undo), what it remembered, how it reached its answer; its memory
   and conversations; the site's own assistant and the office page's contact form */
.ai-answer > * + * { margin-top: .55rem; }
.ai-done .ai-steps > li { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 5%, var(--card)); }
.ai-done .ai-steps > li::before { content: '✓'; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ai-step-st { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.ai-mem { display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; margin: 0; padding: .45rem .6rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); line-height: 1.6; overflow-wrap: anywhere; }
.ai-mem > .ic { flex: none; color: var(--accent-text); width: 1.05em; height: 1.05em; align-self: center; }
.ai-mem em { font-style: normal; }
.ai-how { color: var(--muted); } .ai-how summary { cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; } .ai-how summary .ic { width: 1em; height: 1em; }
.ai-how .ai-mini { margin: .35rem 0 0; } .ai-how p { margin: .3rem 0 0; overflow-wrap: anywhere; }
.ai-msg.ai-past .ai-bubble { opacity: .82; }
.ai-sep { text-align: center; margin: .2rem 0 .4rem; display: flex; align-items: center; gap: .6rem; } .ai-sep::before, .ai-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.result.warn { border-inline-start-color: var(--warn); }
.link-btn { all: unset; cursor: pointer; display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; color: var(--text); }
.link-btn:hover b, .link-btn:hover { color: var(--brand-text); } .link-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.cmd-again { font-size: .92rem; }
.mind-modal .modal-body { display: grid; gap: .8rem; grid-auto-rows: max-content; } /* rows keep their height: a scrolling list or tab strip never collapses under the others */
.mind-q { width: 100%; } .mind-foot { gap: .6rem; padding-block-start: .8rem; border-block-start: 1px solid var(--line); }
.mind-prefs { gap: .4rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.mind-tools input[type=search] { flex: 1 1 180px; min-width: 0; }
.mind-list { max-height: min(46vh, 420px); overflow: auto; }
.mind-item { align-items: flex-start; gap: .6rem; } .mind-item .grow { min-width: 0; }
.mind-text { margin: 0 0 .2rem; line-height: 1.6; overflow-wrap: anywhere; } .mind-text .ic.xs { width: .9em; height: .9em; color: var(--accent-text); vertical-align: -.1em; }
.mind-edit { flex: 1; } .mind-edit input { flex: 1; min-width: 0; }
.mind-add textarea { width: 100%; resize: vertical; } .mind-add select { flex: 1 1 140px; }
.site-ask-fab { position: fixed; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 16px; z-index: 40; border-radius: 999px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.site-ask { display: grid; gap: .6rem; } .site-ask .bubbles { max-height: min(56vh, 460px); overflow: auto; display: grid; gap: .5rem; padding: .2rem; }
.site-ask .bubble { max-width: 88%; padding: .55rem .75rem; border-radius: 14px; background: var(--card2); line-height: 1.65; overflow-wrap: anywhere; } .site-ask .bubble p { margin: 0; }
.site-ask .bubble.out { justify-self: end; background: color-mix(in srgb, var(--brand) 16%, var(--card)); } .site-ask .bubble.muted { color: var(--muted); }
.agent-form { margin-top: .6rem; gap: .45rem; } .agent-form input, .agent-form textarea { width: 100%; }
.try-steps { margin: .4rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; } .try-steps > li > b .ic { width: 1em; height: 1em; vertical-align: -.15em; }
a.live-cmd { text-decoration: none; color: inherit; cursor: text; }
/* v3.10.1: why no model answered (the owner's assistant), and a resting key's reason in the AI panel */
.aw-why { margin: .4rem 0 .3rem; padding-inline-start: 1.1rem; display: grid; gap: .15rem; }
.ail-note { display: block; max-width: 36ch; margin-top: .2rem; line-height: 1.4; overflow-wrap: anywhere; }
.ail-problems p { margin: .2rem 0; }
/* v3.11: moving off n8n */
.mv-apply { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line, rgba(127,127,127,.25)); display: grid; gap: .4rem; }
.mv-apply ul { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .2rem; }
.mv-nodes { display: grid; gap: .35rem; padding-inline-start: 1.3rem; }
.mv-nodes pre.code { max-height: 16rem; overflow: auto; margin: .3rem 0 0; }
/* v3.11.1 — keys on the screen: linked in front of the owner, the settings' repair report */
.keys-card { display: grid; gap: .45rem; min-width: 0; }
.keys-head { margin: 0; display: flex; gap: .4rem; align-items: center; }
.keys-busy { margin: 0; display: flex; gap: .55rem; align-items: center; }
.keys-busy .spin, .keys-report .spin { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: middle; margin: 0; }
.keys-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.keys-li { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; min-width: 0; }
.keys-li > small { flex-basis: 100%; }
.keys-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; padding: .05rem .4rem; border-radius: 6px; background: var(--chip, rgba(127,127,127,.12)); overflow-wrap: anywhere; }
.keys-to { display: inline-flex; gap: .25rem; align-items: center; min-width: 0; }
.keys-report { border-inline-start: 3px solid var(--warn, #d97706); }
.keys-report.in-chat { margin: .6rem .8rem 0; padding: .7rem .8rem; }
.ai-keys { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; }

/* v3.12 — what the assistant is doing while you wait: a spinner, what is happening now, and the seconds */
.ai-wait { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .15rem 0; font-size: .86rem; color: var(--muted); }
.ai-wait-spin { flex: none; width: 16px; height: 16px; border: 2px solid var(--line2); border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
.ai-wait-say { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ai-wait-sec { flex: none; margin-inline-start: auto; font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--muted); padding-inline-start: .4rem; }
.msg .ai-wait, .result .ai-wait { padding: .35rem .2rem; }
@media (prefers-reduced-motion: reduce) { .ai-wait-spin { animation-duration: 2.4s; } }
/* the answer, formatted (bold, lists, code, links) */
.md { min-width: 0; overflow-wrap: anywhere; }
.md p { margin: 0 0 .35em; } .md p:last-child { margin-bottom: 0; }
.md .md-gap { height: .25em; margin: 0; } .md .md-h { margin: .4em 0 .2em; }
.md ul, .md ol { margin: .15em 0 .45em; padding-inline-start: 1.25em; } .md li { margin: .1em 0; } .md li::marker { color: var(--muted); }
.md code { font-size: .86em; padding: .05em .35em; border-radius: 6px; background: color-mix(in srgb, var(--line2) 55%, transparent); }
.md a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.md .md-hr { border: 0; border-top: 1px solid var(--line); margin: .5em 0; }
.ai-msg.me .md a { color: #fff; }
/* what a person attached, in his message: photos in full (a tap opens the original), other files by name */
.att-show { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.att-pic { display: block; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, #fff 25%, transparent); background: var(--card2); }
.att-pic img { display: block; max-width: min(100%, 320px); max-height: 360px; width: auto; height: auto; object-fit: contain; }
.att-show .att-pic:only-child img { max-width: min(100%, 420px); }
.att-docs { display: flex; flex-wrap: wrap; gap: .3rem; }
.att-doc { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); color: inherit; text-decoration: none; }
.ai-via { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .72rem; opacity: .8; }
