/* ===== Rafiq — base: fonts, tokens, reset, controls ===== */
@font-face { font-family: 'Vazirmatn'; src: url(../fonts/vazir-ar.woff2) format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'DM Sans'; src: url(../fonts/dmsans-la.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
:root {
  --f: 'DM Sans', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #F5F6FA; --bg2: #EEF0F5; --card: #fff; --line: #E6E8EF; --line2: #D5D9E2; --tx: #121826; --tx2: #344054; --mut: #667085; --mut2: #8A93A6;
  --ac: #5146E5; --ac2: #4338CA; --acs: #EEEDFD; --act: #fff;
  --ok: #12805C; --oks: #E3F5EC; --warn: #B45309; --warns: #FEF3C7; --bad: #C2283B; --bads: #FDECEE; --info: #0B6BCB; --infos: #E6F1FC;
  --sh1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); --sh2: 0 4px 10px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05); --sh3: 0 18px 40px -12px rgba(16, 24, 40, .25), 0 6px 14px -6px rgba(16, 24, 40, .12);
  --r: 12px; --r2: 8px; --r3: 18px; --ring: 0 0 0 3px rgba(81, 70, 229, .28);
  --c1: #5146E5; --c2: #0E9F8E; --c3: #F59E0B; --c4: #E1497A; --c5: #0EA5E9; --c6: #8B5CF6;
  color-scheme: light;
}
html[data-theme=dark] {
  --bg: #0C111D; --bg2: #121826; --card: #161B26; --line: #232A38; --line2: #333C4E; --tx: #EEF1F6; --tx2: #CDD3DE; --mut: #98A2B3; --mut2: #7C8699;
  --ac: #8B85FF; --ac2: #A5A0FF; --acs: #26244A; --act: #0C111D;
  --ok: #3CCB8F; --oks: #0F2E22; --warn: #F5B544; --warns: #33260C; --bad: #FF6B7E; --bads: #3A161C; --info: #5AA9F5; --infos: #0E2338;
  --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 4px 12px -2px rgba(0, 0, 0, .45); --sh3: 0 20px 44px -12px rgba(0, 0, 0, .7);
  --ring: 0 0 0 3px rgba(139, 133, 255, .35); --c1: #8B85FF; --c2: #2DD4BF; --c3: #FBBF24; --c4: #F472B6; --c5: #38BDF8; --c6: #A78BFA;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-size: 15px; line-height: 1.55; color: var(--tx); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: anywhere; }
html[lang=ar] body { --f: 'Vazirmatn', 'DM Sans', system-ui, sans-serif; line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 .7em; } a { color: var(--ac); text-decoration: none; } a:hover { text-decoration: underline; }
img, svg { max-width: 100%; } button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
html[dir=rtl] .flipx { transform: scaleX(-1); }
.num, bdi.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--ac) 25%, transparent); }
/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--tx); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; }
.btn:hover { background: var(--bg2); } .btn:active { transform: translateY(1px); }
.btn.pri { background: var(--ac); border-color: var(--ac); color: var(--act); } .btn.pri:hover { background: var(--ac2); border-color: var(--ac2); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--bg2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bads); border-color: var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; } .btn.xs { min-height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn.icon { padding: 0; width: 38px; } .btn.sm.icon { width: 32px; } .btn.xs.icon { width: 26px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* inputs */
.in, select.in, textarea.in { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--tx); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
textarea.in { min-height: 80px; resize: vertical; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--ac); box-shadow: var(--ring); }
.in.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.in[dir=ltr] { text-align: start; } html[dir=rtl] .in[dir=ltr] { text-align: right; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .fld > label, .lab { font-size: 13px; font-weight: 600; color: var(--tx2); }
.fld .hint { font-size: 12px; color: var(--mut); }
.chk { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; } .chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ac); flex: none; }
.switch { position: relative; display: inline-flex; width: 40px; height: 23px; flex: none; } .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; transition: .2s; } .switch i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: .2s; }
.switch input:checked + i { background: var(--ac); } .switch input:checked + i::after { inset-inline-start: 20px; } .switch input:focus-visible + i { box-shadow: var(--ring); }
input[type=range] { accent-color: var(--ac); width: 100%; } input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); cursor: pointer; }
/* misc */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--bg2); color: var(--tx2); white-space: nowrap; line-height: 1.6; }
.pill.ok { background: var(--oks); color: var(--ok); } .pill.warn { background: var(--warns); color: var(--warn); } .pill.bad { background: var(--bads); color: var(--bad); } .pill.info { background: var(--infos); color: var(--info); } .pill.ac { background: var(--acs); color: var(--ac); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); display: inline-block; flex: none; } .dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.mut { color: var(--mut); } .small { font-size: 13px; } .tiny { font-size: 12px; } .b { font-weight: 700; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.nw { flex-wrap: nowrap; } .grow { flex: 1; min-width: 0; } .sp { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; }
.kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; padding: 1px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--card); }
code, .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; direction: ltr; unicode-bidi: isolate; }
.ph { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(127, 127, 127, .08) 6px 12px); }
/* toast + modal */
#toasts { position: fixed; z-index: 1000; inset-inline: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 460px); padding: 10px 16px; border-radius: 12px; background: #1D2433; color: #fff; box-shadow: var(--sh3); font-size: 14px; animation: tIn .2s ease-out; }
html[data-theme=dark] .toast { background: #EEF1F6; color: #121826; }
.toast.ok .ic { color: #3CCB8F; } .toast.bad .ic { color: #FF6B7E; }
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } }
.modal-bg { position: fixed; inset: 0; z-index: 900; background: rgba(12, 17, 29, .5); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fIn .15s; backdrop-filter: blur(2px); }
.modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: var(--sh3); border: 1px solid var(--line); }
.modal.wide { width: min(880px, 100%); }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .modal > header h3 { flex: 1; font-size: 17px; }
.modal > .mb { padding: 18px 20px; overflow: auto; } .modal > footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fIn { from { opacity: 0; } }
html.noanim *, html.noanim *::before, html.noanim *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== demo website (sample company) ===== */
.site { --s1: #0E6E66; --s1d: #0A5650; --s2: #F26B4F; --sbg: #FBF7F1; --sbg2: #F3ECE1; --scard: #fff; --sink: #1B2A2F; --smut: #5D6B70; --sline: #E8E0D4; background: var(--sbg); color: var(--sink); min-height: 100vh; display: flex; flex-direction: column; }
html[data-theme=dark] .site { --s1: #3CC2B3; --s1d: #5ad3c5; --s2: #FF8A70; --sbg: #0E1517; --sbg2: #142023; --scard: #172326; --sink: #E9F0EF; --smut: #9DB0B2; --sline: #24363A; }
.site .mut { color: var(--smut); } .site main { flex: 1; } .site a { color: var(--s1); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 2000; background: #000; color: #fff; padding: 8px 14px; border-radius: 8px; } .skip:focus { top: 8px; }
.s-in { width: min(1160px, 100% - 40px); margin-inline: auto; } .s-in.narrow { width: min(820px, 100% - 40px); }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 7px 16px; font-size: 13px; background: #1B2A2F; color: #E9F0EF; text-align: center; }
.demo-bar a { color: #7FE3D6; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
html[data-theme=dark] .demo-bar { background: #050909; }
.s-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--sbg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--sline); }
.s-top > .s-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.s-logo { display: flex; align-items: center; gap: 10px; color: var(--sink) !important; text-decoration: none !important; min-width: 0; }
.logo-ph { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 7px; border-radius: 11px; background: var(--s1); color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: .03em; flex: none; direction: ltr; outline: 1.5px dashed rgba(255, 255, 255, .55); outline-offset: -5px; }
html[data-theme=dark] .logo-ph { color: #0E1517; }
.s-name { font-weight: 750; font-size: 15px; line-height: 1.2; max-width: 210px; }
.s-nav { display: flex; gap: 4px; margin-inline-start: auto; } .s-nav a { padding: 8px 12px; border-radius: 9px; color: var(--sink); font-weight: 550; font-size: 14.5px; text-decoration: none !important; }
.s-nav a:hover { background: var(--sbg2); } .s-nav a[aria-current] { color: var(--s1); background: color-mix(in srgb, var(--s1) 10%, transparent); }
.s-tools { display: flex; align-items: center; gap: 6px; } .s-burger { display: none !important; }
.s-mnav { display: flex; flex-direction: column; padding: 8px 20px 14px; border-top: 1px solid var(--sline); } .s-mnav a { padding: 11px 4px; color: var(--sink); font-weight: 600; border-bottom: 1px solid var(--sline); } .s-mnav[hidden] { display: none; }
.lsw { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg2); gap: 2px; } .site .lsw { background: var(--sbg2); }
.lsw button { border: 0; background: transparent; min-width: 34px; height: 30px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: inherit; opacity: .7; }
.lsw button[aria-pressed=true] { background: var(--card); opacity: 1; box-shadow: var(--sh1); } .site .lsw button[aria-pressed=true] { background: var(--scard); }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: transform .1s, background .15s, box-shadow .15s; white-space: nowrap; background: var(--scard); color: var(--sink); border-color: var(--sline); }
.sbtn.pri { background: var(--s2); color: #fff; border-color: var(--s2); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--s2) 70%, transparent); } .sbtn.pri:hover { filter: brightness(1.05); transform: translateY(-1px); }
html[data-theme=dark] .sbtn.pri { color: #1B0D08; }
.sbtn.sec { background: transparent; color: var(--s1); border-color: color-mix(in srgb, var(--s1) 45%, transparent); } .sbtn.sec:hover { background: color-mix(in srgb, var(--s1) 8%, transparent); }
.sbtn.ghost { background: transparent; border-color: transparent; } .sbtn.ghost:hover { background: var(--sbg2); } .sbtn.icon { width: 40px; min-height: 40px; padding: 0; }
.sbtn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.hero { padding: 64px 0 56px; background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--s1) 14%, transparent), transparent 70%), radial-gradient(700px 360px at 0% 100%, color-mix(in srgb, var(--s2) 12%, transparent), transparent 70%); }
html[dir=rtl] .hero { background: radial-gradient(900px 400px at 15% 0%, color-mix(in srgb, var(--s1) 14%, transparent), transparent 70%), radial-gradient(700px 360px at 100% 100%, color-mix(in srgb, var(--s2) 12%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--s1) 12%, transparent); color: var(--s1); font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 16px; } html[lang=ar] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.lead { font-size: 18px; color: var(--smut); max-width: 560px; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--smut); } .ticks li { display: flex; align-items: center; gap: 6px; } .ticks .ic { color: var(--s1); }
.hero-v { position: relative; } .hv-card { background: var(--scard); border-radius: 22px; padding: 16px; box-shadow: 0 30px 60px -24px rgba(14, 50, 46, .35), 0 0 0 1px var(--sline); max-width: 360px; margin-inline: auto; display: flex; flex-direction: column; gap: 9px; transform: rotate(-1.5deg); }
html[dir=rtl] .hv-card { transform: rotate(1.5deg); }
.hv-h { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sline); } .hv-h i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-inline-start: auto; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.hv-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--s1); color: #fff; font-weight: 800; }
.hv-b { padding: 9px 13px; border-radius: 15px; font-size: 14px; max-width: 86%; } .hv-b.b { background: var(--sbg2); border-end-start-radius: 5px; } .hv-b.v { background: var(--s1); color: #fff; align-self: flex-end; border-end-end-radius: 5px; }
html[data-theme=dark] .hv-b.v { color: #0E1517; }
.hv-price { background: color-mix(in srgb, var(--s2) 10%, var(--scard)); border: 1px dashed color-mix(in srgb, var(--s2) 50%, transparent); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; } .hv-price b { font-size: 24px; color: var(--s2); direction: ltr; text-align: start; }
html[dir=rtl] .hv-price b { text-align: right; }
.hv-chips { display: flex; gap: 6px; flex-wrap: wrap; } .hv-chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; border: 1.5px solid var(--s1); color: var(--s1); font-weight: 650; }
.hv-badge { position: absolute; bottom: -14px; inset-inline-start: 4%; display: flex; align-items: center; gap: 7px; background: var(--sink); color: var(--sbg); padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; box-shadow: var(--sh3); }
.s-sec { padding: 64px 0; } .s-sec.alt { background: var(--sbg2); } .s-sec h2, .s-page h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }
.s-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .s-h a { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.s-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .s-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.s-card { background: var(--scard); border: 1px solid var(--sline); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.s-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; } .s-card h3 .ic { color: var(--s1); }
.s-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--s1) 11%, transparent); color: var(--s1); margin-bottom: 6px; } .s-ic .ic { width: 24px; height: 24px; }
.s-card p { margin: 0; font-size: 14.5px; flex: 1; } .s-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; } .s-from { font-weight: 750; color: var(--s2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--scard); border-radius: 18px; padding: 22px; border: 1px solid var(--sline); } .steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s1); color: #fff; font-weight: 800; margin-bottom: 10px; }
html[data-theme=dark] .steps li > span { color: #0E1517; } .steps b { display: block; font-size: 17px; margin-bottom: 4px; } .steps p { margin: 0; font-size: 14.5px; }
.s-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.quotes { display: grid; gap: 12px; } .quotes blockquote { margin: 0; background: var(--scard); border: 1px solid var(--sline); border-radius: 16px; padding: 16px 18px; } .quotes p { margin: 4px 0; } .quotes cite { font-size: 13px; color: var(--smut); font-style: normal; font-weight: 600; }
.stars { color: #F5A524; letter-spacing: 2px; } .stars i { color: var(--line2); font-style: normal; }
.s-page { padding: 44px 0 64px; } .s-page .lead { margin-bottom: 28px; }
.ptab { width: 100%; border-collapse: collapse; font-size: 14.5px; } .ptab td { padding: 9px 0; border-bottom: 1px dashed var(--sline); } .ptab td:last-child { text-align: end; font-weight: 700; white-space: nowrap; }
.s-cta { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: color-mix(in srgb, var(--s1) 9%, var(--scard)); border: 1px solid color-mix(in srgb, var(--s1) 25%, transparent); flex-wrap: wrap; }
.s-cta > .ic { width: 30px; height: 30px; color: var(--s1); } .s-cta p { margin: 0; font-size: 14px; }
.faq { display: flex; flex-direction: column; gap: 10px; } .faq details { background: var(--scard); border: 1px solid var(--sline); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; align-items: center; } .faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ic { transform: rotate(180deg); } .faq details > div { padding: 0 18px 16px; color: var(--smut); font-size: 14.5px; }
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 10px; } .s-stats div { background: var(--scard); border: 1px solid var(--sline); border-radius: 16px; padding: 16px; text-align: center; } .s-stats b { display: block; font-size: 26px; color: var(--s1); direction: ltr; } .s-stats span { font-size: 13px; color: var(--smut); }
.clist { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; } .clist li { display: flex; align-items: center; gap: 10px; font-weight: 600; } .clist .ic { color: var(--s1); }
.mapph { align-items: center; justify-content: center; text-align: center; min-height: 260px; } .mapph svg { width: 100%; max-height: 220px; }
.m0 { fill: color-mix(in srgb, var(--s1) 8%, transparent); } .m1 { fill: none; stroke: color-mix(in srgb, var(--s1) 35%, transparent); stroke-width: 9; } .m2 { fill: none; stroke: color-mix(in srgb, currentColor 14%, transparent); stroke-width: 4; } .m3 { fill: color-mix(in srgb, var(--s2) 18%, transparent); } .m4 { fill: var(--s2); }
.prose h3 { margin: 22px 0 6px; font-size: 18px; } .prose p { color: var(--smut); }
.s-foot { background: var(--sbg2); border-top: 1px solid var(--sline); padding: 40px 0 20px; margin-top: auto; } .s-foot .s-in:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; } .s-foot p { font-size: 14px; } .s-copy { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sline); }
.s-chatpage { flex: 1; padding: 20px 0; display: flex; } .s-chatpage .s-in { display: flex; justify-content: center; } .chat-host { width: min(720px, 100%); height: calc(100dvh - 160px); min-height: 480px; }
.nf { text-align: center; padding: 60px 0; } .nf > .ic { width: 54px; height: 54px; color: var(--s1); } .nf h1 { margin: 12px 0; }
html.embedded body { background: transparent; } html.embedded .s-chatpage { padding: 0; } html.embedded .s-chatpage .s-in { max-width: none; padding: 0; width: 100%; } html.embedded .chat-host { width: 100%; height: 100dvh; min-height: 0; } html.embedded .demo-bar, html.embedded .s-demo { display: none; }

/* ===== Rafiq widget ===== */
.rw { --wbg: #fff; --wbg2: #F4F6F7; --wtx: #142024; --wmut: #66757A; --wline: #E4E9EB; --wbub: #F1F4F5; --won: #fff; --w1: #0E6E66; --w2: #F26B4F; --wr: 18px; --woff: 20px;
  font-family: var(--f); color: var(--wtx); font-size: 14.5px; line-height: 1.5; position: fixed; z-index: 800; bottom: calc(var(--woff) + env(safe-area-inset-bottom)); }
html[data-theme=dark] .rw { --wbg: #11191B; --wbg2: #172124; --wtx: #E6EEEE; --wmut: #93A5A8; --wline: #233236; --wbub: #1B272A; }
.rw[lang=ar] { --f: 'Vazirmatn', 'DM Sans', system-ui, sans-serif; line-height: 1.65; }
.rw.right { right: var(--woff); } .rw.left { left: var(--woff); }
.rw .ic { width: 18px; height: 18px; }
/* launcher */
.wl-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--w1); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--w1) 60%, transparent), 0 3px 8px rgba(0, 0, 0, .16); transition: transform .18s; }
.wl-btn:hover { transform: scale(1.06); } .wl-btn .ic { width: 27px; height: 27px; }
.rw.left .wl-btn { margin-inline-end: auto; }
.badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--w2); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--wbg); }
.badge[hidden] { display: none; }
.wteaser { position: absolute; bottom: 74px; width: 270px; background: var(--wbg); border-radius: 16px; padding: 13px 14px; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .28), 0 0 0 1px var(--wline); display: flex; gap: 10px; align-items: flex-start; cursor: pointer; animation: wUp .35s ease-out; }
.wteaser[hidden] { display: none; } .rw.right .wteaser { right: 0; } .rw.left .wteaser { left: 0; }
.wteaser p { margin: 0; font-size: 14px; font-weight: 600; padding-inline-end: 18px; } .wteaser .wib { position: absolute; top: 5px; inset-inline-end: 5px; width: 26px; height: 26px; color: var(--wmut); }
@keyframes wUp { from { opacity: 0; transform: translateY(10px) scale(.97); } }
/* panel */
.wp { position: absolute; bottom: 76px; width: 380px; height: min(640px, calc(100dvh - 120px)); background: var(--wbg); border-radius: var(--wr); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--wline) 80%, transparent); display: flex; flex-direction: column; overflow: hidden; animation: wUp .25s ease-out; transform-origin: bottom right; }
.rw.right .wp { right: 0; } .rw.left .wp { left: 0; } .wp[hidden] { display: none; }
.rw.sz-s .wp { width: 340px; height: min(560px, calc(100dvh - 120px)); } .rw.sz-l .wp { width: 420px; height: min(720px, calc(100dvh - 110px)); }
.rw.m-page { position: relative; bottom: auto; right: auto; left: auto; height: 100%; }
.rw.m-preview { position: absolute; bottom: var(--woff); } .rw.m-preview .wp { animation: none; }
.rw.m-page .wp { position: relative; bottom: 0; width: 100%; height: 100%; animation: none; }
.wh { position: relative; display: flex; align-items: center; gap: 11px; padding: 14px 12px 14px 16px; background: var(--w1); color: #fff; flex: none; }
html[dir=rtl] .wh, .rw[dir=rtl] .wh { padding: 14px 16px 14px 12px; }
.rw.hl .wh { background: var(--wbg); color: var(--wtx); border-bottom: 1px solid var(--wline); }
.wh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } .wh-t b { font-size: 15.5px; } .wh-t span { font-size: 12.5px; opacity: .86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wib { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; } .wib:hover { background: rgba(255, 255, 255, .16); }
.wcomp .wib:hover, .wteaser .wib:hover { background: var(--wbg2); }
.wav { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--w1); color: #fff; font-size: 13px; font-weight: 800; flex: none; overflow: hidden; position: relative; }
.wav img { width: 100%; height: 100%; object-fit: cover; } .wav .emo { font-size: 17px; } .wav .ic { width: 17px; height: 17px; }
.wav.lg { width: 40px; height: 40px; background: rgba(255, 255, 255, .2); font-size: 16px; overflow: visible; } .wav.lg .ic { width: 22px; height: 22px; } .wav.lg img { border-radius: 50%; }
.rw.hl .wav.lg { background: var(--w1); }
.wav .st { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--w1); background: #9AA5A8; } .wav .st.on { background: #34D399; } .wav .st.off { background: #FBBF24; }
.rw.hl .wav .st { border-color: var(--wbg); }
.wav.ag { background: hsl(var(--h) 55% 45%); }
.wmenu { position: absolute; top: 58px; inset-inline-end: 10px; z-index: 5; width: 230px; background: var(--wbg); color: var(--wtx); border-radius: 14px; box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .3), 0 0 0 1px var(--wline); padding: 6px; display: flex; flex-direction: column; animation: wUp .15s; }
.wmenu > button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: start; font-size: 14px; } .wmenu > button:hover { background: var(--wbg2); } .wmenu .ic { color: var(--wmut); }
.wmenu-l { display: flex; gap: 4px; padding: 4px; margin-bottom: 4px; background: var(--wbg2); border-radius: 10px; } .wmenu-l button { flex: 1; border: 0; background: none; padding: 6px 0; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 13px; }
.wmenu-l button[aria-checked=true] { background: var(--wbg); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); color: var(--w1); }
/* messages */
.wl { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--wbg); scroll-behavior: smooth; }
html.noanim .wl { scroll-behavior: auto; }
.wday { text-align: center; margin: 4px 0; } .wday span { font-size: 11.5px; color: var(--wmut); background: var(--wbg2); padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.wm { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; } .wm.cont .wav { visibility: hidden; } .wm.cont { margin-top: -3px; }
.wm .wcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: calc(100% - 38px); align-items: flex-start; }
.wm.v { justify-content: flex-end; } .wm.v .wb { background: var(--w1); color: #fff; border-end-end-radius: 5px; max-width: 82%; }
.wb { background: var(--wbub); padding: 9px 13px 6px; border-radius: 17px; border-end-start-radius: 5px; min-width: 0; max-width: 100%; position: relative; }
.wm.a .wb { background: color-mix(in srgb, hsl(var(--h, 200) 60% 50%) 10%, var(--wbub)); }
.wb time { display: block; font-size: 10.5px; opacity: .6; text-align: end; margin-top: 1px; line-height: 1.2; }
.wtxt { white-space: normal; overflow-wrap: anywhere; } .wtxt.warn { color: #B4231F; } html[data-theme=dark] .wtxt.warn { color: #FF8F87; }
.wtxt + .wc, .wtxt + .wc-car, .wtxt + .wf, .wc + .wtxt, .wtxt + .wbtn { margin-top: 8px; }
.wname { font-size: 11.5px; color: var(--wmut); font-weight: 650; padding-inline-start: 4px; }
.wsys { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--wmut); background: var(--wbg2); padding: 5px 12px; border-radius: 99px; text-align: center; max-width: 92%; } .wsys .ic { width: 15px; height: 15px; } .wsys.warn { color: #9A6100; } html[data-theme=dark] .wsys.warn { color: #F5C36B; }
.typing .wb { padding: 12px 14px; } .dots { display: inline-flex; gap: 4px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--wmut); animation: wDot 1.1s infinite; opacity: .4; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wDot { 30% { opacity: 1; transform: translateY(-3px); } }
.btns { display: flex; flex-wrap: wrap; gap: 6px; } .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--w1) 40%, var(--wline)); background: var(--wbg); color: var(--w1); font-weight: 650; font-size: 13.5px; cursor: pointer; text-align: start; line-height: 1.3; transition: background .12s; }
html[data-theme=dark] .wbtn { color: color-mix(in srgb, var(--w1) 45%, #fff); }
.wbtn:hover:not([disabled]) { background: color-mix(in srgb, var(--w1) 9%, var(--wbg)); } .wbtn[disabled] { opacity: .55; cursor: default; } .wbtn.sel { background: var(--w1); color: #fff; border-color: var(--w1); opacity: 1; }
.wbtn.pri { background: var(--w1); color: #fff; border-color: var(--w1); } .wbtn.pri:hover:not([disabled]) { background: color-mix(in srgb, var(--w1) 85%, #000); }
.wbtn.full { width: 100%; justify-content: center; } .wbtn.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; } .wbtn.ghost { border-color: transparent; padding-inline: 4px; }
.chip { min-height: 32px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--wline); background: var(--wbg); color: var(--wtx); font-size: 13px; font-weight: 600; cursor: pointer; text-align: start; line-height: 1.3; }
.chip:hover { border-color: var(--w1); color: var(--w1); } .chip.pri { background: color-mix(in srgb, var(--w2) 12%, var(--wbg)); border-color: color-mix(in srgb, var(--w2) 45%, transparent); color: color-mix(in srgb, var(--w2) 80%, var(--wtx)); }
.wq { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; flex: none; } .wq::-webkit-scrollbar { display: none; } .wq .chip { white-space: nowrap; flex: none; } .wq[hidden] { display: none; }
/* cards */
.wc { background: var(--wbg); border: 1px solid var(--wline); border-radius: 13px; padding: 10px 12px; font-size: 13.5px; }
.wc-h { display: flex; align-items: center; gap: 7px; font-weight: 750; margin-bottom: 6px; flex-wrap: wrap; } .wc-h .ic { color: var(--w1); } .wc-h .pill { margin-inline-start: auto; font-size: 11px; }
.wc table { width: 100%; border-collapse: collapse; } .wc td { padding: 4px 0; border-bottom: 1px dashed var(--wline); } .wc td:last-child { text-align: end; font-weight: 700; white-space: nowrap; } .wc tr:last-child td { border-bottom: 0; }
.wc tr.sep td { border: 0; padding: 3px; } .wc tr.today td { color: var(--w1); font-weight: 750; } .wc small { color: var(--wmut); font-weight: 500; }
.wc-f { margin-top: 7px; font-size: 12px; color: var(--wmut); display: flex; gap: 5px; align-items: center; } .wc-f .ic { width: 14px; height: 14px; }
.wc-list { display: flex; flex-direction: column; gap: 7px; } .wc-list div { display: flex; align-items: center; gap: 8px; } .wc-list .ic { color: var(--w1); }
.wc-tags { display: flex; flex-wrap: wrap; gap: 5px; } .wc-tags span { padding: 2px 9px; border-radius: 99px; background: var(--wbg2); font-size: 12.5px; }
.wc-score { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .wc-score b { font-size: 24px; } .wc blockquote { margin: 6px 0 0; padding: 7px 10px; background: var(--wbg2); border-radius: 10px; font-size: 13px; }
.wc-map { padding: 0; overflow: hidden; } .wc-map .map { display: block; width: 100%; height: 110px; } .wc-b { padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; } .wc-b .ic { width: 14px; height: 14px; color: var(--w2); }
.rw .m0 { fill: color-mix(in srgb, var(--w1) 9%, var(--wbg)); } .rw .m1 { fill: none; stroke: color-mix(in srgb, var(--w1) 30%, transparent); stroke-width: 8; } .rw .m2 { fill: none; stroke: var(--wline); stroke-width: 4; } .rw .m3 { fill: color-mix(in srgb, var(--w2) 20%, transparent); } .rw .m4 { fill: var(--w2); }
.wc-faq details { border-top: 1px solid var(--wline); } .wc-faq summary { cursor: pointer; padding: 7px 0; font-weight: 600; } .wc-faq p { margin: 0 0 8px; color: var(--wmut); font-size: 13px; }
.wc-quote .qr-range, .fq-sum .qr-range { font-size: 22px; font-weight: 800; color: var(--w2); direction: ltr; unicode-bidi: isolate; text-align: start; }
.rw[dir=rtl] .qr-range { text-align: right; }
.wc-quote details { margin-top: 6px; } .wc-quote summary { cursor: pointer; font-size: 12.5px; font-weight: 650; color: var(--w1); }
.wc-ok { display: flex; gap: 10px; align-items: flex-start; border-color: color-mix(in srgb, #16A34A 35%, var(--wline)); background: color-mix(in srgb, #16A34A 7%, var(--wbg)); } .wc-ok > .ic { color: #16A34A; width: 22px; height: 22px; margin-top: 2px; }
.wc-car { position: relative; margin-inline: -4px; } .car-t { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 4px 4px; } .car-t::-webkit-scrollbar { display: none; }
.car-i { flex: 0 0 150px; scroll-snap-align: start; background: var(--wbg); border: 1px solid var(--wline); border-radius: 13px; padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.car-i b { font-size: 13.5px; line-height: 1.3; } .car-i .mut { color: var(--wmut); font-size: 12px; flex: 1; } .car-i .wbtn { margin-top: 5px; justify-content: center; }
.car-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--w1) 12%, transparent); color: var(--w1); margin-bottom: 4px; }
.car-b { position: absolute; top: 40%; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--wline); background: var(--wbg); color: var(--wtx); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.car-b.prev { inset-inline-start: -6px; } .car-b.next { inset-inline-end: -6px; } .car-b .ic { width: 15px; height: 15px; }
/* forms */
.wf { display: flex; flex-direction: column; gap: 9px; background: var(--wbg); border: 1px solid var(--wline); border-radius: 14px; padding: 12px; margin-top: 4px; font-size: 13.5px; width: 100%; }
.wcol:has(.wf) { width: 100%; } .wm:has(.wf) .wb { width: 100%; }
.wf .in { min-height: 36px; font-size: 14px; border-radius: 9px; background: var(--wbg); border-color: var(--wline); color: var(--wtx); } .wf .in:focus { border-color: var(--w1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w1) 22%, transparent); }
.wf .fld label { font-size: 12.5px; color: var(--wmut); } .wf .chk { font-size: 12.5px; color: var(--wmut); } .wf .chk input { accent-color: var(--w1); }
.wf-h { display: flex; align-items: center; gap: 7px; font-weight: 750; } .wf-h .ic { color: var(--w1); }
.err { color: #C2283B; font-size: 12.5px; font-weight: 600; min-height: 0; } .err:empty { display: none; } html[data-theme=dark] .err { color: #FF8F87; }
.seg { display: flex; background: var(--wbg2); border-radius: 10px; padding: 3px; gap: 2px; } .seg button { flex: 1; border: 0; background: none; padding: 6px 4px; border-radius: 8px; font-weight: 650; font-size: 12.5px; cursor: pointer; color: var(--wmut); line-height: 1.25; }
.seg button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--wbg); color: var(--w1); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg.sm2 { flex-wrap: wrap; } .seg.sm2 button { flex: 1 0 30%; font-size: 12px; }
.fq-mv, .fq-cl { display: flex; flex-direction: column; gap: 8px; } .fq-mv[hidden], .fq-cl[hidden] { display: none; }
.fq-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .fq-row > span:first-child { color: var(--wtx); font-weight: 550; } .fq-row input[type=date] { max-width: 160px; }
.kmv { display: inline-flex; align-items: center; gap: 6px; color: var(--wmut); } .kmv .in { width: 84px; text-align: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--wline); border-radius: 10px; overflow: hidden; flex: none; } .stepper button { width: 32px; height: 32px; border: 0; background: var(--wbg2); color: var(--wtx); cursor: pointer; font-size: 17px; font-weight: 700; } .stepper button:hover { background: color-mix(in srgb, var(--w1) 14%, var(--wbg2)); }
.stepper output { min-width: 34px; text-align: center; font-weight: 750; }
.tgs { display: flex; flex-wrap: wrap; gap: 5px; } .tg { position: relative; } .tg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tg span { display: inline-block; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--wline); font-size: 12px; font-weight: 600; color: var(--wmut); } .tg input:checked + span { background: var(--w1); border-color: var(--w1); color: #fff; } .tg input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--w1) 30%, transparent); }
.fq-sum { background: color-mix(in srgb, var(--w2) 8%, var(--wbg)); border-radius: 11px; padding: 8px 12px; border: 1px dashed color-mix(in srgb, var(--w2) 40%, transparent); } .fq-sum .tiny { color: var(--wmut); }
.days { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { flex: 0 0 50px; display: flex; flex-direction: column; align-items: center; padding: 6px 0 5px; border-radius: 11px; border: 1px solid var(--wline); background: var(--wbg); cursor: pointer; color: var(--wtx); line-height: 1.2; }
.day small { font-size: 11px; color: var(--wmut); } .day b { font-size: 16px; } .day i { font-style: normal; font-size: 10.5px; color: var(--w1); font-weight: 700; }
.day.on { background: var(--w1); border-color: var(--w1); color: #fff; } .day.on small, .day.on i { color: #fff; } .day[disabled] { opacity: .4; cursor: not-allowed; } .day.more { justify-content: center; flex-basis: 36px; color: var(--wmut); }
.slot-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 5px; } .slot { min-height: 34px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--w1) 35%, var(--wline)); background: var(--wbg); color: var(--wtx); font-weight: 650; font-size: 13px; cursor: pointer; }
.slot:hover:not([disabled]) { background: color-mix(in srgb, var(--w1) 10%, var(--wbg)); } .slot.on { background: var(--w1); color: #fff; border-color: var(--w1); } .slot[disabled] { text-decoration: line-through; opacity: .38; cursor: not-allowed; border-style: dashed; }
.wf-c { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--wline); padding-top: 10px; } .wf-c[hidden] { display: none; }
.stars-in { display: flex; gap: 4px; justify-content: center; } .stars-in button { border: 0; background: none; cursor: pointer; padding: 3px; color: var(--wline); } .stars-in .ic { width: 32px; height: 32px; } .stars-in button.on { color: #F5A524; } .stars-in button.on .ic { fill: currentColor; }
.wf-rate .b { text-align: center; }
.wdone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; margin-top: 6px; padding: 5px 11px; border-radius: 99px; background: color-mix(in srgb, #16A34A 10%, var(--wbg)); color: #15803D; } .wdone.mut { background: var(--wbg2); color: var(--wmut); font-weight: 500; }
html[data-theme=dark] .wdone { color: #4ADE80; }
.wfile { display: flex; flex-direction: column; gap: 5px; } .wfile img { max-width: 220px; max-height: 180px; border-radius: 10px; object-fit: cover; background: rgba(0, 0, 0, .1); } .wfile span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .wfile small { opacity: .75; }
/* composer */
.wcomp { display: flex; align-items: flex-end; gap: 4px; padding: 8px 8px 8px; border-top: 1px solid var(--wline); background: var(--wbg); flex: none; }
.wcomp textarea { flex: 1; border: 0; resize: none; background: var(--wbg2); border-radius: 14px; padding: 9px 13px; max-height: 120px; min-height: 40px; line-height: 1.45; color: var(--wtx); font-size: 15px; } .wcomp textarea:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--w1) 40%, transparent); }
.wcomp .wib { color: var(--wmut); height: 40px; }
.wsend { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--w1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; } .wsend:hover { filter: brightness(1.1); }
.wbrand { text-align: center; font-size: 11px; color: var(--wmut); padding: 0 0 7px; display: flex; justify-content: center; align-items: center; gap: 4px; background: var(--wbg); } .wbrand .ic { width: 12px; height: 12px; color: var(--w2); }
@media (max-width: 560px) {
  .rw.m-float.open { inset: 0; bottom: 0; } .rw.m-float.open .wp { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; animation: none; }
  .rw.m-float.open .wl-btn { display: none; } html.w-open body { overflow: hidden; }
  .rw.right { right: 14px; } .rw.left { left: 14px; } .wteaser { width: min(270px, calc(100vw - 28px)); }
}

/* ===== admin console ===== */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.a-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--card); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; z-index: 60; }
.a-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; } .a-brand b { display: block; font-size: 16px; } .a-brand span { display: block; font-size: 12px; color: var(--mut); line-height: 1.3; }
.a-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), #7C3AED); color: #fff; flex: none; } .a-logo .ic { width: 20px; height: 20px; }
.a-g { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; } .a-gl { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); padding: 6px 10px 4px; } html[lang=ar] .a-gl { letter-spacing: 0; font-size: 12px; }
.a-g a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--tx2); font-weight: 560; font-size: 14px; text-decoration: none !important; }
.a-g a:hover { background: var(--bg2); color: var(--tx); } .a-g a[aria-current] { background: var(--acs); color: var(--ac); font-weight: 680; } .a-g a .ic { width: 18px; height: 18px; opacity: .85; }
.cnt { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
.a-side-f { margin-top: auto; padding-top: 10px; } .btn.full { width: 100%; }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 22px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.a-title { font-size: 19px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.a-burger { display: none !important; }
.a-status { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; } .a-status:hover { border-color: var(--ac); }
.a-me { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 55% 48%); color: #fff; font-weight: 750; font-size: 13px; flex: none; }
.a-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.a-tabs { display: none; } .a-scrim { display: none; }
/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; box-shadow: var(--sh1); }
.card > h3, .card-h h3 { font-size: 15.5px; font-weight: 720; } .card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .card-h .sp { flex: 1; } .card-h p { margin: 0; }
.card.flat { box-shadow: none; } .card.pad0 { padding: 0; overflow: hidden; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.g21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; } .g12 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; } .kpi .kl { font-size: 13px; color: var(--mut); font-weight: 600; display: flex; align-items: center; gap: 6px; } .kpi .kl .ic { color: var(--ac); }
.kpi .kv { font-size: 27px; font-weight: 780; letter-spacing: -.02em; line-height: 1.15; } .kpi .kd { font-size: 12.5px; font-weight: 650; } .kpi .kd.up { color: var(--ok); } .kpi .kd.down { color: var(--bad); } .kpi .spark { position: absolute; bottom: 10px; inset-inline-end: 14px; width: 84px; height: 30px; opacity: .9; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .toolbar .in { width: auto; } .toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 360px; } .toolbar .search .ic { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 11px; color: var(--mut); } .toolbar .search .in { width: 100%; padding-inline-start: 36px; }
.seg2 { display: inline-flex; padding: 3px; background: var(--bg2); border-radius: 10px; gap: 2px; flex-wrap: wrap; } .seg2 button, .seg2 a { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--mut); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.seg2 [aria-pressed=true], .seg2 [aria-current] { background: var(--card); color: var(--tx); box-shadow: var(--sh1); }
.tbl-w { overflow-x: auto; } table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: start; font-size: 12px; font-weight: 700; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg2); position: sticky; top: 0; } html[lang=ar] .tbl th { font-size: 12.5px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover td { background: color-mix(in srgb, var(--bg2) 60%, transparent); } .tbl .r { text-align: end; } .tbl tr.click { cursor: pointer; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 16px; color: var(--tx2); } .empty > .ic { width: 38px; height: 38px; color: var(--mut2); margin-bottom: 4px; } .empty p { margin: 0; max-width: 360px; font-size: 14px; }
.chart-w { width: 100%; } .chart { width: 100%; height: auto; display: block; } .chart .gl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .chart .ax { fill: var(--mut); font-size: 11px; font-family: var(--f); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--mut); margin-top: 8px; } .legend.col { flex-direction: column; gap: 7px; margin: 0; } .legend span { display: inline-flex; align-items: center; gap: 7px; } .legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .legend b { color: var(--tx); }
.donut-w { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .donut { width: 150px; height: 150px; flex: none; } .donut .dc { font-size: 15px; font-weight: 800; fill: var(--tx); font-family: var(--f); }
.hbars { display: flex; flex-direction: column; gap: 10px; } .hb-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; } .hb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb-v { font-weight: 700; flex: none; }
.hb-bar { height: 7px; border-radius: 99px; background: var(--bg2); overflow: hidden; } .hb-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ac); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--mut); align-items: center; } .heat i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--ac) calc(var(--a) * 100%), var(--bg2)); } .heat .hh { text-align: center; } .heat .hd { font-weight: 650; }
.spark { display: block; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h) 50% 92%); color: hsl(var(--h) 55% 32%); font-weight: 750; font-size: 13px; flex: none; position: relative; }
html[data-theme=dark] .av { background: hsl(var(--h) 35% 24%); color: hsl(var(--h) 70% 82%); }
.av.sm { width: 28px; height: 28px; font-size: 11px; } .av .dot { position: absolute; bottom: 0; inset-inline-end: 0; border: 2px solid var(--card); width: 11px; height: 11px; }
.flag { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--bg2); color: var(--tx2); letter-spacing: .03em; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .tabs a, .tabs button { padding: 10px 14px; font-weight: 650; font-size: 14px; color: var(--mut); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; margin-bottom: -1px; }
.tabs [aria-selected=true], .tabs [aria-current] { color: var(--ac); border-bottom-color: var(--ac); }
.form-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } .form-g .full { grid-column: 1 / -1; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); } .set-row:last-child { border-bottom: 0; } .set-row .grow b { display: block; font-size: 14px; } .set-row .grow span { font-size: 13px; color: var(--mut); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--infos); color: var(--tx); font-size: 13.5px; } .note > .ic { color: var(--info); margin-top: 2px; } .note.warn { background: var(--warns); } .note.warn > .ic { color: var(--warn); } .note p { margin: 0; }
.scorebar { display: inline-flex; align-items: center; gap: 6px; } .scorebar i { width: 54px; height: 6px; border-radius: 9px; background: var(--bg2); overflow: hidden; display: block; } .scorebar i b { display: block; height: 100%; background: var(--ok); } .scorebar.mid i b { background: var(--warn); } .scorebar.low i b { background: var(--bad); }
.list { display: flex; flex-direction: column; } .li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; } .li:last-child { border-bottom: 0; } .li .grow > b, .li .grow > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; background: hsl(var(--h, 240) 70% 95%); color: hsl(var(--h, 240) 50% 35%); } html[data-theme=dark] .tag { background: hsl(var(--h, 240) 30% 22%); color: hsl(var(--h, 240) 70% 80%); }
.tag button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; display: inline-flex; } .tag .ic { width: 12px; height: 12px; }

/* ===== admin pages ===== */
.a-body.flush { padding: 0; } .tb-pad { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search { position: relative; } .search > .ic, .search > span > .ic { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 11px; color: var(--mut); pointer-events: none; } .search .in { padding-inline-start: 36px; }
.inu { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--card); } .inu .in { border: 0; border-radius: 0; min-width: 0; } .inu .in:focus { box-shadow: none; } .inu:focus-within { border-color: var(--ac); box-shadow: var(--ring); } .inu span { padding: 0 10px; font-size: 12.5px; color: var(--mut); background: var(--bg2); align-self: stretch; display: flex; align-items: center; white-space: nowrap; }
.savebar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin: 0 -22px -22px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky { position: sticky; top: 80px; } .up { color: var(--ok); } .down { color: var(--bad); } .warn-t { color: var(--warn); display: inline-flex; gap: 5px; align-items: center; }
h4 { font-size: 13.5px; margin: 16px 0 8px; color: var(--tx2); }
.d-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .d-row > span:last-child { text-align: end; min-width: 0; }
.pipe { cursor: pointer; text-align: start; font: inherit; color: inherit; } .pipe.on { border-color: var(--ac); box-shadow: var(--ring); }
.li-btn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: start; cursor: pointer; font: inherit; color: inherit; } .li-btn:hover { background: var(--bg2); }
.li-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--tx) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; } .li-card:hover { border-color: var(--ac); background: var(--acs); } .li-card .ic { color: var(--ac); width: 22px; height: 22px; }
.prose-a ol { padding-inline-start: 20px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; } .prose-a h3 { margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; font-size: 15.5px; } .prose-a h3:not(:first-child) { margin-top: 18px; } .prose-a p { font-size: 14px; color: var(--tx2); }
/* inbox */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 290px; height: calc(100vh - 62px); min-height: 520px; }
.inbox:not(.has-sel) { grid-template-columns: 330px minmax(0, 1fr); }
.i-list { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--card); }
.i-filt { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); } .i-filt .seg2 { display: flex; } .i-filt .seg2 button { padding: 5px 8px; font-size: 12px; flex: 1 0 auto; }
.i-items { overflow-y: auto; flex: 1; }
.i-it { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--tx) !important; text-decoration: none !important; position: relative; } .i-it:hover { background: var(--bg2); } .i-it.on { background: var(--acs); } .i-it.on::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--ac); }
.i-it .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .i-r1 { display: flex; align-items: center; gap: 6px; } .i-r1 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .i-r1 time { margin-inline-start: auto; white-space: nowrap; }
.i-r2 { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .i-r3 { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; } .i-r3 .pill { font-size: 11px; padding: 0 7px; } .i-r3 .pill .ic { width: 12px; height: 12px; } .i-r3 .cnt { margin-inline-start: auto; }
.i-it.unread .i-r2 { color: var(--tx); font-weight: 600; }
.i-th { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); } .i-none { align-items: center; justify-content: center; }
.i-th-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; } .i-th-h .grow { min-width: 120px; } .i-back { display: none !important; } .i-nlu { white-space: nowrap; } .i-dtog { display: none !important; }
.i-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ithread { --wbg: var(--bg); --wbg2: var(--bg2); --wtx: var(--tx); --wmut: var(--mut); --wline: var(--line); --wbub: var(--card); font-size: 14px; }
.ithread .wm.v { justify-content: flex-start; } .ithread .wm.v .wb { background: var(--card); color: var(--tx); border: 1px solid var(--line); border-end-end-radius: 17px; border-end-start-radius: 5px; }
.ithread .wm.b, .ithread .wm.a { flex-direction: row-reverse; } .ithread .wm.b .wcol, .ithread .wm.a .wcol { align-items: flex-end; } .ithread .wm.b .wb { background: color-mix(in srgb, var(--w1) 12%, var(--card)); border-end-start-radius: 17px; border-end-end-radius: 5px; } .ithread .wm.a .wb { background: var(--w1); color: #fff; border-end-start-radius: 17px; border-end-end-radius: 5px; }
.ithread .wc, .ithread .wf { background: var(--card); color: var(--tx); } .ithread .wav { width: 28px; height: 28px; }
.nlu-dbg { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--mut); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: ui-monospace, Menlo, monospace; }
.i-peek { padding: 0 18px; min-height: 18px; display: flex; gap: 6px; align-items: center; } .i-peek .ic { width: 14px; height: 14px; }
.i-comp { padding: 10px 14px 12px; border-top: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; position: relative; } .i-comp textarea { min-height: 42px; max-height: 140px; resize: none; }
.i-canned { position: absolute; bottom: 100%; inset-inline: 14px; max-height: 260px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh3); padding: 6px; display: flex; flex-direction: column; } .i-canned[hidden] { display: none; }
.i-canned button { border: 0; background: none; text-align: start; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; display: flex; gap: 8px; } .i-canned button:hover { background: var(--bg2); } .i-canned button[hidden] { display: none; } .i-canned b { color: var(--ac); font-family: ui-monospace, monospace; }
.i-side { border-inline-start: 1px solid var(--line); background: var(--card); overflow-y: auto; } .i-d { padding: 16px; display: flex; flex-direction: column; gap: 4px; } .i-d h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 14px 0 4px; } html[lang=ar] .i-d h3 { letter-spacing: 0; } .i-d h3:first-child { margin-top: 0; }
.d-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--tx) !important; margin-top: 8px; text-decoration: none !important; } .d-card:hover { border-color: var(--ac); } .d-card .ic { color: var(--ac); } .d-card .grow b, .d-card .grow span { display: block; }
.d-note { background: var(--warns); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; } .d-note p { margin: 0 0 2px; font-size: 13.5px; }
/* kb */
.kb-t tr.off td { opacity: .5; } .flag.miss { background: var(--bads); color: var(--bad); text-decoration: line-through; }
.kb-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; } .kb-l { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; } .kb-l legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.kt-res { display: flex; flex-direction: column; gap: 14px; } .kt-res h4 { margin: 0 0 6px; }
.kt-dec { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; } .kt-dec .ic { width: 24px; height: 24px; } .kt-dec .kv { font-size: 26px; font-weight: 800; } .kt-dec.answer { background: var(--oks); color: var(--ok); } .kt-dec.suggest { background: var(--warns); color: var(--warn); } .kt-dec.fallback { background: var(--bads); color: var(--bad); } .kt-dec .tiny { color: var(--tx2); }
.toks { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; } .toks code { padding: 1px 6px; border-radius: 5px; background: var(--acs); color: var(--ac); } .toks code.unk { background: var(--bg2); color: var(--mut); text-decoration: line-through; } .toks code.fz { background: var(--warns); color: var(--warn); }
.kt-prev { background: var(--bg2); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
/* flows */
.fl-card { display: flex; flex-direction: column; gap: 10px; color: var(--tx) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; } .fl-card:hover { border-color: var(--ac); transform: translateY(-1px); }
.fl-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--acs); color: var(--ac); flex: none; }
.fb { display: grid; grid-template-columns: 132px minmax(0, 1fr) 320px; gap: 12px; height: calc(100vh - 230px); min-height: 520px; }
.fb-pal { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; } .fb-add { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: grab; font-size: 13px; font-weight: 600; color: var(--tx); text-align: start; } .fb-add:hover { border-color: var(--c); } .fb-add .ic { color: var(--c); }
.fb-canvas { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background-color: var(--card); background-image: radial-gradient(circle, var(--line2) 1px, transparent 1px); background-size: 20px 20px; touch-action: none; }
.fb-inner { position: relative; direction: ltr; } .fb-svg { position: absolute; top: 0; left: 0; pointer-events: none; } .lk { fill: none; stroke: var(--mut2); stroke-width: 1.8; } .lk.no { stroke-dasharray: 5 4; stroke: var(--bad); } .ahp { fill: var(--mut2); } .lkl { font-size: 11px; fill: var(--tx2); font-family: var(--f); paint-order: stroke; stroke: var(--card); stroke-width: 4px; }
.fb-node { position: absolute; width: 220px; min-height: 76px; background: var(--card); border: 1px solid var(--line2); border-top: 3px solid var(--c); border-radius: 12px; box-shadow: var(--sh2); cursor: grab; user-select: none; touch-action: none; } .fb-node:active { cursor: grabbing; } .fb-node.sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent), var(--sh2); } .fb-node.start { border-top-width: 5px; }
html[dir=rtl] .fb-node { direction: rtl; }
.fb-nh { display: flex; align-items: center; gap: 6px; padding: 7px 10px 2px; font-size: 12.5px; } .fb-nh .ic { color: var(--c); width: 16px; height: 16px; } .fb-nh code { margin-inline-start: auto; color: var(--mut); font-size: 11px; } .fb-nh .pill { font-size: 10px; padding: 0 6px; }
.fb-nb { padding: 2px 10px 9px; font-size: 12.5px; color: var(--tx2); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fb-insp { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; } .fb-insp h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; } .fb-opt { display: grid; grid-template-columns: 1fr 84px 26px; gap: 4px; }
.sim { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bg2); border-radius: 12px; } .sm-b, .sm-v { padding: 7px 11px; border-radius: 12px; font-size: 13.5px; max-width: 80%; } .sm-b { background: var(--card); align-self: flex-start; } .sm-v { background: var(--ac); color: var(--act); align-self: flex-end; } .sm-s { align-self: center; font-size: 12px; color: var(--mut); }
.sm-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; } .sm-opts span { border: 1px solid var(--line2); border-radius: 99px; padding: 1px 8px; font-size: 12px; } .sm-w { display: flex; gap: 5px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--ac); font-weight: 650; }
.sim-in { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
/* calendar */
.cal-w { overflow-x: auto; } .cal { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); grid-template-rows: auto calc(var(--rows) * var(--rh)); min-width: 820px; }
.cal-hd { padding: 8px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 0; font-size: 12px; color: var(--mut); position: sticky; top: 0; background: var(--card); } .cal-hd b { font-size: 18px; color: var(--tx); } .cal-hd.today b { background: var(--ac); color: var(--act); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; } .cal-hd em { font-size: 10px; }
.cal-times { display: flex; flex-direction: column; } .cal-times span { height: var(--rh); font-size: 11px; color: var(--mut); text-align: end; padding: 0 6px; transform: translateY(-7px); }
.cal-col { position: relative; border-inline-start: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--rh); cursor: copy; } .cal-col.closed { background-color: var(--bg2); cursor: not-allowed; } .cal-col.today { background-color: color-mix(in srgb, var(--ac) 4%, transparent); }
.cal-open { position: absolute; inset-inline: 0; background: color-mix(in srgb, var(--ok) 5%, transparent); pointer-events: none; }
.cal-ev { position: absolute; border: 0; border-inline-start: 3px solid var(--c); background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--tx); border-radius: 6px; padding: 2px 6px; font-size: 11.5px; text-align: start; overflow: hidden; cursor: pointer; line-height: 1.3; z-index: 1; } .cal-ev:hover { z-index: 3; box-shadow: var(--sh2); } .cal-ev.done { opacity: .55; } .cal-ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-days { display: flex; gap: 3px; } .mini-days span { width: 26px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; } .mini-days .hi { background: var(--oks); color: var(--ok); } .mini-days .mid { background: var(--warns); color: var(--warn); } .mini-days .no { background: var(--bg2); color: var(--mut); }
/* designer */
.wd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; align-items: start; } .wd-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line2); cursor: pointer; } .swatch.on { box-shadow: 0 0 0 2px var(--tx); }
.lchoice { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--w1); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .55; } .lchoice[aria-pressed=true] { opacity: 1; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--w1); }
.tg2 { position: relative; } .tg2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; } .tg2 span { display: inline-block; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600; } .tg2 input:checked + span { background: var(--acs); border-color: var(--ac); color: var(--ac); } .tg2 input:focus-visible + span { box-shadow: var(--ring); }
.pv-stage { position: relative; height: 660px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #FBF7F1; } .pv-stage.pv-dark { background: #0E1517; }
.pv-site { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; } .pv-site i { display: block; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .07); width: 60%; } .pv-site i:first-child { height: 30px; width: 40%; } .pv-site b { display: block; height: 90px; border-radius: 12px; background: rgba(0, 0, 0, .05); } .pv-dark .pv-site i, .pv-dark .pv-site b { background: rgba(255, 255, 255, .06); }
.pv-host { position: absolute; inset: 0; } .pv-host .rw .wp { max-height: 570px; } .pv-host .rw[data-theme=dark] { --wbg: #11191B; --wbg2: #172124; --wtx: #E6EEEE; --wmut: #93A5A8; --wline: #233236; --wbub: #1B272A; }
.code-b { background: #0C111D; color: #D6E2FF; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; overflow-x: auto; white-space: pre; margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.fb-canvas.panning { cursor: grabbing; } .fb-canvas { cursor: grab; } .fb-node { cursor: pointer; } .zoomc button { min-width: 34px; font-variant-numeric: tabular-nums; }
.pv-host .wp { max-height: calc(100% - 96px); }
.wd .row { flex-wrap: wrap; } .wd .seg2 { flex-wrap: wrap; max-width: 100%; }

/* ===== responsive ===== */
@media (max-width: 1180px) {
  .inbox.has-sel { grid-template-columns: 300px minmax(0, 1fr); } .inbox .i-side { display: none; } .inbox.show-d .i-side { display: block; position: fixed; inset-block: 62px 0; inset-inline-end: 0; width: 300px; z-index: 50; box-shadow: var(--sh3); } .i-dtog { display: inline-flex !important; }
  .fb { grid-template-columns: 120px minmax(0, 1fr); } .fb-insp { grid-column: 1 / -1; max-height: none; } .fb { height: auto; } .fb-canvas { height: 560px; }
  .wd { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .s-nav { display: none; } .s-burger { display: inline-flex !important; } .s-tools { margin-inline-start: auto; }
  .hero-in, .s-split { grid-template-columns: 1fr; } .hero-v { display: none; } .s-grid3 { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr; }
  .admin { grid-template-columns: minmax(0, 1fr); } .a-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--sh3); z-index: 120; } html[dir=rtl] .a-side { transform: translateX(105%); } .a-side.open { transform: none !important; }
  .a-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 110; } .a-burger { display: inline-flex !important; }
  .a-tabs { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 70; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); } .a-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 11px; font-weight: 650; color: var(--mut); position: relative; text-decoration: none !important; min-width: 0; } .a-tabs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .a-tabs a[aria-current] { color: var(--ac); } .a-tabs .ic { width: 21px; height: 21px; } .a-tabs .cnt { position: absolute; top: 3px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; }
  .a-body { padding: 16px 16px 84px; } .savebar { margin: 0 -16px; bottom: 58px; } .g21, .g12, .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .inbox, .inbox.has-sel { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 62px - 58px); } .inbox.has-sel .i-list { display: none; } .i-back { display: inline-flex !important; }
  .kb-langs { grid-template-columns: 1fr; } .a-status span { display: none; } .a-status { padding: 0 10px; }
}
@media (max-width: 640px) {
  .s-grid3, .s-grid2, .s-stats { grid-template-columns: 1fr 1fr; } .s-grid3 { grid-template-columns: 1fr; } .s-foot .s-in:first-child { grid-template-columns: 1fr; } .s-name { max-width: 150px; font-size: 13.5px; }
  .hero { padding: 36px 0; } .lead { font-size: 16px; } .s-sec { padding: 40px 0; } .s-in { width: calc(100% - 28px); } .s-top > .s-in { gap: 8px; } .lsw button { min-width: 30px; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi .kv { font-size: 22px; } .kpi .spark { display: none; } .card { padding: 14px; } .a-top { padding: 0 10px; gap: 6px; } .a-title { font-size: 16px; } .a-me { display: none; }
  .toolbar .search { max-width: none; min-width: 0; flex: 1 1 100%; } .hide-s { display: none; } .fb { grid-template-columns: 1fr; } .fb-pal { flex-direction: row; flex-wrap: wrap; } .fb-add { flex: 1 0 40%; }
  .i-th-h .i-nlu { order: 5; } .form-g { grid-template-columns: 1fr; } .pv-stage { height: 600px; } .heat { grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 2px; } .heat .hh { font-size: 8.5px; }
  .modal-bg { padding: 0; align-items: flex-end; } .modal { border-radius: 16px 16px 0 0; max-height: 92dvh; }
}
@media (max-width: 380px) { .s-stats { grid-template-columns: 1fr; } .lsw button { min-width: 27px; font-size: 11.5px; } .demo-bar { font-size: 12px; } }
@media print { .a-side, .a-top, .a-tabs, .rw, .demo-bar, .savebar { display: none !important; } .admin { display: block; } }
@media (max-width: 760px) { .tbl-w table.tbl { min-width: 640px; } .tbl-w table.tbl.kb-t { min-width: 720px; } .tbl-w { -webkit-overflow-scrolling: touch; } }
@media (max-width: 980px) { .inbox .i-th.i-none { display: none; } }
