/* SHABAB BIO CLOUD 1.0 — look. Same layout as SHABAB TIME ATTENDANCE (side menu with sections, top bar, cards), colours from the BIO CLOUD icon.
   NIGHT (default): deep navy, glass cards, teal / emerald accent, gold highlights · DAY: white / light grey, slate side menu, emerald accent. */
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/NotoKufiArabic-Regular.woff2") format("woff2"); font-weight: 100 500; 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: "Noto Kufi Arabic"; src: url("/fonts/NotoKufiArabic-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
:root, [data-theme="night"] {
  --bg1: #06121f; --bg2: #0a1b2e; --side: #07182a; --sideText: #cfe6ee; --sideMute: #6f93a6; --sideLine: rgba(31, 209, 179, .35);
  --card: rgba(14, 34, 56, .78); --cardSolid: #0e2238; --card2: rgba(18, 44, 70, .65); --line: rgba(31, 209, 179, .22); --line2: rgba(143, 177, 194, .16);
  --text: #e8f3f8; --muted: #8fb1c2; --faint: #5f8396;
  --accent: #1fd1b3; --accent2: #10b981; --accentText: #04261f; --gold: #e3b552; --gold2: #f3d38a;
  --ok: #12a372; --info: #2f8fd0; --warn: #cc810a; --violet: #9a7cf0; --bad: #ef4466; --off: #6b7d90;
  --okBg: rgba(18, 163, 114, .16); --warnBg: rgba(204, 129, 10, .18); --badBg: rgba(239, 68, 102, .16); --infoBg: rgba(47, 143, 208, .16); --violetBg: rgba(154, 124, 240, .16);
  --input: rgba(7, 24, 42, .7); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --glow: 0 0 18px rgba(31, 209, 179, .28); --radius: 16px;
  --pageBg: radial-gradient(1200px 700px at 85% -10%, rgba(31, 209, 179, .08), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(227, 181, 82, .05), transparent 60%), linear-gradient(160deg, var(--bg1), var(--bg2));
  color-scheme: dark;
}
[data-theme="day"] {
  --bg1: #f5f7fa; --bg2: #ffffff; --side: #3d4650; --sideText: #ffffff; --sideMute: #b8c3cd; --sideLine: rgba(255, 255, 255, .12);
  --card: #ffffff; --cardSolid: #ffffff; --card2: #f5f7fa; --line: #e2e8f0; --line2: #edf1f5;
  --text: #0f172a; --muted: #5b6878; --faint: #8794a3;
  --accent: #0fa58a; --accent2: #0c8a73; --accentText: #ffffff; --gold: #c9a14a; --gold2: #a9842f;
  --ok: #0f9d77; --info: #0284c7; --warn: #d97706; --violet: #7c3aed; --bad: #e11d48; --off: #64748b;
  --okBg: #e6f6f0; --warnBg: #fdf2e1; --badBg: #fde8ec; --infoBg: #e2f1fa; --violetBg: #efe8fd;
  --input: #ffffff; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .07); --glow: none;
  --pageBg: #f5f7fa; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--pageBg); background-attachment: fixed; color: var(--text); font: 14.5px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Kufi Arabic", Tahoma, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body, [dir="rtl"] { font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
a { color: var(--accent); } [data-theme="day"] a { color: var(--accent2); }
h1, h2, h3 { margin: 0; line-height: 1.25; } h2 { font-size: 21px; } h3 { font-size: 15.5px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); } .okc { color: var(--ok); } .badc { color: var(--bad); } .warnc { color: var(--warn); }
.hide { display: none !important; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout (TIME ATTENDANCE) */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; } .app > main { min-width: 0; }
.side { background: var(--side); color: var(--sideText); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; border-inline-end: 1px solid var(--sideLine); }
[data-theme="night"] .side { box-shadow: inset -1px 0 0 rgba(31, 209, 179, .25), 4px 0 30px rgba(31, 209, 179, .05); }
[dir="rtl"][data-theme="night"] .side { box-shadow: inset 1px 0 0 rgba(31, 209, 179, .25); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; text-decoration: none; color: inherit; }
.side .brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(227, 181, 82, .55), 0 0 16px rgba(227, 181, 82, .18); }
.side .brand b { display: block; font-size: 14px; letter-spacing: .5px; color: var(--gold); } .side .brand span { display: block; font-size: 10.5px; letter-spacing: 1.4px; color: var(--sideMute); }
.side .sec { font-size: 10.5px; letter-spacing: 1.6px; color: var(--sideMute); font-weight: 800; margin: 14px 10px 6px; text-transform: uppercase; }
.side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; color: var(--sideText); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 2px; position: relative; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); }
.side a.nav.on { background: linear-gradient(90deg, rgba(31, 209, 179, .22), rgba(16, 185, 129, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--gold), var(--glow); }
[dir="rtl"] .side a.nav.on { box-shadow: inset -3px 0 0 var(--gold), var(--glow); }
[data-theme="day"] .side a.nav.on { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 var(--gold); }
.side a.nav svg { width: 19px; height: 19px; flex: none; opacity: .95; } .side a.nav .cnt { margin-inline-start: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.side a.nav .soon { margin-inline-start: auto; font-size: 10px; border: 1px solid var(--sideMute); color: var(--sideMute); border-radius: 99px; padding: 0 6px; }
.side .foot { margin-top: auto; padding: 14px 8px 0; font-size: 11px; color: var(--sideMute); }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cardSolid) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .clogo { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--gold); flex: none; }
.top h1 { font-size: 17px; } .top .sub { font-size: 12px; color: var(--muted); } .top .grow { flex: 1; min-width: 0; } .top .grow > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .topq { width: 230px; } @media (max-width: 900px) { .top .topq { display: none; } }
.content { padding: 20px 24px 48px; max-width: 1560px; }
.menu-btn { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .lang button { border: 0; background: transparent; color: var(--muted); padding: 7px 11px; font-weight: 800; cursor: pointer; font-family: inherit; } .lang button.on { background: var(--accent); color: var(--accentText); }
.trial { background: linear-gradient(90deg, rgba(227, 181, 82, .2), rgba(227, 181, 82, .06)); color: var(--text); padding: 6px 24px; font-size: 12.5px; border-bottom: 1px solid rgba(227, 181, 82, .35); }
.demo-bar { background: rgba(47, 143, 208, .14); border-bottom: 1px solid rgba(47, 143, 208, .35); padding: 7px 24px; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--text); padding: 8px 14px; border-radius: 12px; font: 700 13.5px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; min-height: 38px; }
.btn:hover { border-color: var(--accent); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: default; }
.btn.pri { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: var(--accentText); box-shadow: var(--glow); }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: transparent; color: #2a1c00; }
.btn.bad { color: var(--bad); } .btn.bad:hover { border-color: var(--bad); } .btn.sm { padding: 5px 10px; font-size: 12.5px; min-height: 30px; border-radius: 10px; } .btn.icon { padding: 7px; min-width: 38px; } .btn svg { width: 17px; height: 17px; }
.btn.ghost { background: transparent; }
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; min-height: 38px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 209, 179, .18); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
label.f { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .fgrid .full { grid-column: 1 / -1; } @media (max-width: 600px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; } .switch span { position: absolute; inset: 0; background: var(--line2); border: 1px solid var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span:before { content: ""; position: absolute; width: 18px; height: 18px; top: 2px; inset-inline-start: 2px; background: #fff; border-radius: 50%; transition: .2s; } .switch input:checked + span { background: var(--accent); } .switch input:checked + span:before { transform: translateX(20px); } [dir="rtl"] .switch input:checked + span:before { transform: translateX(-20px); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; } .toolbar h2 { flex: 1; min-width: 180px; } .toolbar .flt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .toolbar .flt > * { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; } .chip.on { background: var(--accent); color: var(--accentText); border-color: transparent; }

/* ---------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
[data-theme="night"] .card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card > .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card > .hd h3 { flex: 1; } .card > .hd .muted { font-size: 12px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1150px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 760px) { .g2e { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; } @media (max-width: 1250px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi { position: relative; overflow: hidden; cursor: pointer; padding: 14px 14px 10px; } .kpi .l { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .3px; display: flex; align-items: center; gap: 7px; }
.kpi .l i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); flex: none; } .kpi .n { font-size: 32px; font-weight: 800; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
[data-theme="night"] .kpi .n { text-shadow: 0 0 14px color-mix(in srgb, var(--k) 45%, transparent); } .kpi svg.sp { display: block; width: 100%; height: 30px; margin-top: 4px; } .kpi:hover { border-color: var(--k); }
.kpi .bar { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--k); opacity: .8; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.b-ok { background: var(--okBg); color: var(--ok); } .b-warn { background: var(--warnBg); color: var(--warn); } .b-bad { background: var(--badBg); color: var(--bad); } .b-info { background: var(--infoBg); color: var(--info); } .b-vio { background: var(--violetBg); color: var(--violet); } .b-off { background: var(--line2); color: var(--muted); } .b-gold { background: rgba(227, 181, 82, .16); color: var(--gold); } .b-demo { background: rgba(47, 143, 208, .16); color: var(--info); border-color: rgba(47, 143, 208, .4); }
[data-theme="night"] .b-ok { color: #4ade9e; } [data-theme="night"] .b-bad { color: #ff7d97; } [data-theme="night"] .b-warn { color: #f6b44a; } [data-theme="night"] .b-info { color: #72b9ec; } [data-theme="night"] .b-vio { color: #b9a5f7; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; } .dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--okBg); } .dot.off { background: var(--bad); box-shadow: 0 0 0 3px var(--badBg); } .dot.wait { background: var(--warn); }
.av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accentText); background: linear-gradient(135deg, var(--accent), var(--info)); flex: none; }
.src { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line); color: var(--accent); flex: none; } .src svg { width: 15px; height: 15px; }

/* ---------- tables */
.tw { overflow: auto; border-radius: 12px; border: 1px solid var(--line2); max-height: calc(100vh - 240px); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.t th { text-align: start; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 9px 10px; position: sticky; top: 0; background: var(--cardSolid); z-index: 2; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; } table.t tr:hover td { background: rgba(31, 209, 179, .04); } table.t td.n, table.t th.n { text-align: end; font-variant-numeric: tabular-nums; } table.t tr.tot td { font-weight: 800; color: var(--gold); border-top: 1px solid var(--line); }
table.t tr.click { cursor: pointer; }
.mgrid td, .mgrid th { padding: 5px 3px !important; text-align: center !important; font-size: 12px; } .mgrid td.nm, .mgrid th.nm { text-align: start !important; white-space: nowrap; padding-inline: 10px !important; position: sticky; inset-inline-start: 0; background: var(--cardSolid); z-index: 1; }
.mc { display: inline-flex; width: 26px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; }
.mc.P { background: var(--okBg); color: var(--ok); } .mc.L { background: var(--warnBg); color: var(--warn); } .mc.A { background: var(--badBg); color: var(--bad); } .mc.M { background: var(--warnBg); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); } .mc.O, .mc.H { background: var(--line2); color: var(--muted); } .mc.LV { background: var(--violetBg); color: var(--violet); } .mc.OW { background: var(--infoBg); color: var(--info); }

/* ---------- dashboard pieces */
.live { max-height: 430px; overflow: auto; } .lrow { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--line2); } .lrow:last-child { border-bottom: 0; } .lrow .g { flex: 1; min-width: 0; } .lrow .g b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow.new { animation: flash 1.6s ease-out; } @keyframes flash { from { background: rgba(31, 209, 179, .22); } to { background: transparent; } }
.mstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } .mcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--card2); display: flex; flex-direction: column; gap: 4px; cursor: pointer; } .mcard:hover { border-color: var(--accent); }
.mcard .nm { display: flex; align-items: center; gap: 8px; font-weight: 800; } .mcard .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl { position: relative; } .tlrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; } .tlrow .nm { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tltrack { position: relative; height: 18px; border-radius: 6px; background: var(--line2); } .tlseg { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 35%, transparent); border: 1px solid var(--accent); }
.tlseg.ok { background: color-mix(in srgb, var(--ok) 55%, transparent); border-color: var(--ok); } .tlseg.miss { background: color-mix(in srgb, var(--bad) 35%, transparent); border-color: var(--bad); } .tlseg.duty { background: color-mix(in srgb, var(--info) 45%, transparent); border-color: var(--info); }
.tlnow { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold); z-index: 3; } .tlaxis { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; font-size: 10.5px; color: var(--faint); } .tlaxis div:last-child { position: relative; height: 14px; } .tlaxis span { position: absolute; transform: translateX(-50%); }
[dir="rtl"] .tlaxis span { transform: translateX(50%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.alist { display: flex; flex-direction: column; gap: 8px; } .aitem { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); } .aitem .g { flex: 1; min-width: 0; }
.livedots { position: relative; } .livedots:before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background-image: radial-gradient(rgba(31, 209, 179, .35) 1px, transparent 1.2px); background-size: 22px 22px; opacity: .25; animation: drift 18s linear infinite; }
[data-theme="day"] .livedots:before { display: none; } @keyframes drift { to { background-position: 22px 44px; } }
.pulse { animation: pulse 2.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .45; } }
.chart svg { display: block; width: 100%; overflow: visible; } .tip { position: fixed; z-index: 3000; pointer-events: none; background: var(--cardSolid); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* ---------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .cal .wd { font-size: 11px; color: var(--muted); font-weight: 800; text-align: center; }
.cday { border-radius: 12px; border: 1px solid var(--line2); padding: 7px; min-height: 74px; cursor: pointer; background: var(--card2); display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; } .cday .d { font-weight: 800; font-size: 13px; display: flex; justify-content: space-between; }
.cday.g { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 13%, transparent); } .cday.y { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 13%, transparent); } .cday.r { border-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.cday.o { opacity: .7; } .cday.sel { box-shadow: 0 0 0 2px var(--gold); } .cday.blank { visibility: hidden; } @media (max-width: 560px) { .cday { min-height: 54px; padding: 4px; font-size: 10px; } .cday .x { display: none; } }
.segline { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); margin-bottom: 8px; flex-wrap: wrap; }

/* ---------- reports centre */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } .tile { cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 18px; text-decoration: none; color: var(--text); }
.tile .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31, 209, 179, .22), rgba(227, 181, 82, .14)); color: var(--accent); border: 1px solid var(--line); } .tile .ic svg { width: 22px; height: 22px; }
.tile b { font-size: 15px; } .tile:hover { border-color: var(--accent); box-shadow: var(--glow), var(--shadow); transform: translateY(-1px); } .tile { transition: transform .12s, box-shadow .2s; }
.soon-card { opacity: .92; } .soon-card .badge { align-self: flex-start; }

/* ---------- maps */
.map { height: 420px; border-radius: 14px; overflow: hidden; background: var(--card2); z-index: 1; } .map.sm { height: 260px; }
.leaflet-container { font-family: inherit; } [data-theme="night"] .leaflet-tile-pane { filter: brightness(.72) contrast(1.1) saturate(.75) hue-rotate(160deg) invert(.9); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); } .pin b { transform: rotate(45deg); color: #fff; font-size: 11px; }

/* ---------- modal, toast */
.modal-back { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 10, 18, .62); display: flex; align-items: center; justify-content: center; padding: 14px; backdrop-filter: blur(3px); }
.modal { background: var(--cardSolid); border: 1px solid var(--line); border-radius: 18px; width: 560px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal .mh h3 { flex: 1; } .modal .mh .x { border: 0; background: var(--card2); color: var(--text); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.modal .mb { padding: 16px 18px; overflow: auto; } .modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--cardSolid); border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); max-width: 360px; font-weight: 600; }
.toast.bad { border-inline-start-color: var(--bad); } .toast.ok { border-inline-start-color: var(--ok); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; } .tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 12px; font: 700 13.5px inherit; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; } .tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.setrow { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line2); } .setrow:last-child { border-bottom: 0; } .setrow .grow { flex: 1; min-width: 0; } .setrow .grow b { display: block; font-size: 14px; } .setrow .grow span { font-size: 12.5px; color: var(--muted); }
.steps div > * { min-width: 0; } .steps div { overflow-wrap: anywhere; min-width: 0; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 8px; } .steps div { display: flex; gap: 10px; align-items: flex-start; } .steps div:before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accentText); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
code, .mono { font-family: Consolas, Menlo, monospace; font-size: 12.5px; } code { background: var(--card2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }

/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login .art { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; overflow: hidden; background: radial-gradient(900px 600px at 70% 10%, rgba(31, 209, 179, .14), transparent 60%), linear-gradient(160deg, #06121f, #0a1b2e); color: #e8f3f8; }
.login .art img { width: min(320px, 70%); border-radius: 24px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); } .login .art p { max-width: 470px; opacity: .88; font-size: 15px; }
.login .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; max-width: 480px; } .login .feat div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(31, 209, 179, .22); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 28px; } .login .form .card { width: 410px; max-width: 100%; padding: 24px; }

/* ---------- phone */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); } .side { position: fixed; z-index: 300; width: 276px; transform: translateX(-105%); transition: transform .2s; } .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  [dir="rtl"] .side { right: 0; transform: translateX(105%); } [dir="rtl"] .side.open { transform: none; }
  .menu-btn { display: inline-flex; } .content { padding: 14px 12px 44px; } .top { padding: 10px 12px; gap: 8px; } .top .hide-s { display: none; } .trial, .demo-bar { padding: 6px 12px; }
  .login { grid-template-columns: minmax(0, 1fr); } .login .art { padding: 26px 18px; align-items: center; text-align: center; } .login .art img { width: 190px; } .login .feat { display: none; }
  .tlrow, .tlaxis { grid-template-columns: 92px minmax(0, 1fr); } .kpi .n { font-size: 26px; } .map { height: 320px; } .modal { border-radius: 16px; }
}
@media (max-width: 560px) { .top .hide-xs, .top .clogo { display: none; } .side .only-s { display: flex !important; } .tlaxis span.odd { display: none; } .top h1 { font-size: 15px; } }
@media print { .side, .top, .noprint, .toasts, .trial, .demo-bar { display: none !important; } .app { display: block; } .content { padding: 0; max-width: none; } body { background: #fff; color: #000; } .card { box-shadow: none; border: 0; background: #fff; } .tw { max-height: none; overflow: visible; border: 0; } table.t th { background: #eee; color: #000; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
