/* =====================================================================
   Byte IVR Hosting — design system. Loaded after style.css: re-tokens the
   inherited components and adds the new ones (stat cards, charts, tabs,
   drawers, audio rows, phone simulator, timelines).
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(vendor/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(vendor/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e5e9f2;
    --line-soft: #eef1f7;

    --accent: #2f5bea;
    --accent-600: #2449c7;
    --accent-soft: #edf2ff;
    --accent-ring: #c3d1fb;
    --accent-2: #f97316;          /* warm secondary, used sparingly */

    --ok: #0f9d6b;   --ok-bg: #e8f8f1;   --ok-line: #bfe8d6;
    --warn: #b7690a; --warn-bg: #fff6e5; --warn-line: #f6dcae;
    --err: #d43a2f;  --err-bg: #fdeeec;  --err-line: #f6c9c4;
    --info: #2f5bea; --info-bg: #edf2ff; --info-line: #cfdcfd;
    --violet: #7c3aed; --violet-bg: #f3edff;
    --teal: #0d9488;   --teal-bg: #e6f7f5; --teal-line: #b9e6e0;
    --amber: #d97706;  --amber-bg: #fff4dd;

    --side: #ffffff;
    --side-ink: #475569;
    --side-on: var(--accent-soft);

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);
    --font: "Inter", "Plex Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.ui, body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
.ic { flex: none; vertical-align: -3px; }
a { color: var(--accent); }
::selection { background: var(--accent-ring); }

/* ---------- shell ---------- */
.side { width: 256px; flex: 0 0 256px; background: var(--side); color: var(--side-ink); border-right: 1px solid var(--line); }
.brand, .brand.has-logo { flex-direction: row; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 0; text-decoration: none; }
.brand-logo { height: 34px; width: 34px; border-radius: 9px; }
.brand-tx { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { color: var(--ink); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.side nav { padding: 4px 12px 12px; gap: 1px; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 6px; }
.side nav a { color: var(--side-ink); padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; justify-content: flex-start; gap: 11px; transition: background .12s, color .12s; }
.side nav a .ic { color: var(--faint); transition: color .12s; }
.side nav a .nav-tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav a:hover { background: var(--panel-2); color: var(--ink); }
.side nav a:hover .ic { color: var(--ink-2); }
.side nav a.on { background: var(--side-on); color: var(--accent); font-weight: 600; }
.side nav a.on .ic { color: var(--accent); }
.pill { background: var(--err); font-size: 10.5px; padding: 1px 7px; }
.side-foot { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.tenant-switch { margin-bottom: 12px; }
.ts-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.side .ts-select { width: 100%; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13px; font-weight: 500; }
.me-card { display: flex; align-items: center; gap: 10px; }
.me-name { color: var(--ink) !important; font-weight: 600; font-size: 13px; }
.me-role { color: var(--muted) !important; font-size: 11.5px; }
.me-2fa { color: var(--ok); font-weight: 600; }
.me-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.me-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted) !important; border: 1px solid var(--line); background: var(--panel); }
.me-icon:hover, .me-icon.on { color: var(--accent) !important; border-color: var(--accent-ring); background: var(--accent-soft); }
.me-signout { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted) !important; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.me-signout:hover { color: var(--err) !important; background: var(--err-bg); }

.topbar { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding: 14px 28px; min-height: 66px; gap: 16px; }
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.title-block { min-width: 0; }
.page-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .back { border-radius: 9px; padding: 6px 11px 6px 8px; font-weight: 500; }
.side-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 36px; height: 36px; color: var(--ink-2); cursor: pointer; }
.top-search { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 11px; height: 36px; color: var(--faint); transition: border-color .12s, box-shadow .12s; }
.top-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: #fff; }
.top-search input { border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0 !important; width: 170px; font-size: 13px; }
.gw { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid transparent; }
.gw .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gw.up { border-color: var(--ok-line); } .gw.up .d { box-shadow: 0 0 0 3px rgba(15,157,107,.18); animation: pulse 2s infinite; }
.gw.down { border-color: var(--err-line); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.lang-toggle { border-radius: 9px; }
.content { padding: 26px 28px 70px; max-width: 1560px; width: 100%; margin: 0 auto; }

/* ---------- cards ---------- */
.card, .panel { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--panel); margin-bottom: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.card-head .head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-pad { padding: 18px 20px; }
.card.flush .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 20px; }
.grid > .card, .grid > .panel { margin-bottom: 0; }
.grid + .card, .grid + .grid, .card + .grid { margin-top: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g-2, .g-3, .g-2-1, .g-1-2, .g-3-2 { grid-template-columns: 1fr; } }

/* ---------- KPI stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: var(--accent-ring); }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.t-blue { background: var(--accent-soft); color: var(--accent); } .t-green { background: var(--ok-bg); color: var(--ok); }
.t-amber { background: var(--amber-bg); color: var(--amber); } .t-red { background: var(--err-bg); color: var(--err); }
.t-violet { background: var(--violet-bg); color: var(--violet); } .t-teal { background: var(--teal-bg); color: var(--teal); }
.stat-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat-v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 12px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 20px; font-size: 12px; position: relative; z-index: 1; }
.stat-s { color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; }
.delta.good { background: var(--ok-bg); color: var(--ok); } .delta.bad { background: var(--err-bg); color: var(--err); } .delta.flat { background: var(--line-soft); color: var(--muted); }
.stat-spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 46px; opacity: .9; pointer-events: none; }

/* inherited tiles, refreshed */
.tiles { gap: 16px; }
.tile { border-radius: var(--radius); padding: 16px 18px; }
.tile .k { font-size: 11.5px; letter-spacing: .04em; }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }

/* ---------- tables ---------- */
table { font-size: 13.5px; }
th, td { padding: 12px 18px; }
th { background: transparent; color: var(--muted); font-size: 11.5px; letter-spacing: .04em; border-bottom: 1px solid var(--line); font-weight: 650; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #fafbff; }
tr.rowlink { cursor: pointer; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.code, .sc { display: inline-flex; align-items: center; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); color: var(--accent); padding: 4px 7px; border-radius: 6px; letter-spacing: .02em; }
.num, td.num { font-variant-numeric: tabular-nums; }
.msisdn { font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .01em; }
.empty { padding: 44px 16px; }

/* ---------- badges ---------- */
.badge { padding: 3px 10px; font-size: 12px; font-weight: 600; gap: 6px; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge.violet { background: var(--violet-bg); color: var(--violet); }
.badge.teal { background: var(--teal-bg); color: var(--teal); border-color: var(--teal-line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink-2); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); line-height: 1.2; transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--panel-2); border-color: #cfd6e4; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(47,91,234,.35); }
.btn.primary:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn.success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-soft); }
.btn.danger { color: var(--err); border-color: var(--err-line); }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], input[type=url], input[type=datetime-local], input[type=time], select, textarea {
    padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; transition: border-color .12s, box-shadow .12s; }
textarea { font-family: var(--font); font-size: 13.5px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-grid { gap: 16px 18px; }
.form-section { padding: 20px; border-top: 1px solid var(--line-soft); }
.form-section:first-child { border-top: 0; }
.form-section > h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.form-section > h3 .ic { color: var(--accent); }
.form-section > p.lead { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--ink); }
.switch input { position: absolute; opacity: 0; }
.switch .tr { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { box-shadow: 0 0 0 3px var(--accent-ring); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .12s, background .12s; height: 100%; }
.radio-card .rc b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.radio-card .rc span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.radio-card input:checked + .rc { border-color: var(--accent); background: var(--accent-soft); }
.filters { gap: 10px; align-items: flex-end; }
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.filterbar input, .filterbar select { width: auto; min-width: 150px; padding: 7px 11px; font-size: 13px; }
.filterbar .grow { flex: 1; min-width: 200px; }
.filterbar .spacer { flex: 1; }
.flash { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: 11px; border: 1px solid transparent; font-weight: 500; }
.flash.ok { border-color: var(--ok-line); } .flash.err { border-color: var(--err-line); } .flash.warn { border-color: var(--warn-line); }
.flash.info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.pager { padding: 12px 20px; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-n { font-size: 11px; font-weight: 700; background: var(--line-soft); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.tab.on .tab-n { background: var(--accent-soft); color: var(--accent); }
.chiptabs { display: inline-flex; background: var(--line-soft); padding: 3px; border-radius: 10px; gap: 2px; }
.chiptab { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: transparent; }
.chiptab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- empty state ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; gap: 6px; }
.es-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.es-t { font-size: 15px; font-weight: 650; }
.es-s { font-size: 13px; color: var(--muted); max-width: 46ch; }
.es-a { margin-top: 12px; }

/* ---------- entity header (detail pages) ---------- */
.hero { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; background: linear-gradient(135deg, var(--accent), #6d8bf5); flex: none; }
.hero-tx { flex: 1; min-width: 220px; }
.hero-tx h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* key/value description list */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 22px; }
.kv > div > dt, .kv .k { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.kv > div > dd, .kv .v { margin: 0; font-size: 14px; font-weight: 550; color: var(--ink); }

/* progress */
.meter { height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; min-width: 80px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.meter.ok > span { background: var(--ok); } .meter.warn > span { background: var(--amber); } .meter.err > span { background: var(--err); }
.meter-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.meter-row .meter { flex: 1; }

/* ranked list with bars */
.rank { display: flex; flex-direction: column; gap: 14px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.rank-row .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .val { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rank-row .meter { grid-column: 1 / -1; height: 6px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.tl-dot.ok { background: var(--ok-bg); color: var(--ok); } .tl-dot.err { background: var(--err-bg); color: var(--err); } .tl-dot.warn { background: var(--warn-bg); color: var(--warn); } .tl-dot.mute { background: var(--line-soft); color: var(--muted); }
.tl-t { font-size: 13.5px; font-weight: 600; }
.tl-s { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.tl-time { font-size: 11.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* audio rows & player */
.audio-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background .12s, color .12s, transform .08s; }
.audio-btn:hover { background: var(--accent); color: #fff; }
.audio-btn.playing { background: var(--accent); color: #fff; }
.audio-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.audio-prog { height: 3px; border-radius: 3px; background: var(--line-soft); margin-top: 6px; overflow: hidden; width: 100%; max-width: 220px; }
.audio-prog > span { display: block; height: 100%; width: 0; background: var(--accent); }
.dropzone { border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 34px 20px; text-align: center; color: var(--muted); background: var(--panel-2); transition: border-color .12s, background .12s; cursor: pointer; }
.dropzone.drag, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone b { display: block; color: var(--ink); font-size: 14.5px; margin: 10px 0 3px; }

/* modal / drawer */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 560px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; }
.modal-card.wide { width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-x { border: 0; background: var(--line-soft); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 0 0 18px 18px; }
.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast-msg { background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: center; animation: toastin .2s ease; max-width: 380px; }
.toast-msg.ok { background: #0b7a53; } .toast-msg.err { background: #b3261e; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* charts */
.chart-box { min-height: 260px; }
.chart-box.sm { min-height: 200px; }
.apexcharts-tooltip { border-radius: 10px !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line) !important; font-family: var(--font) !important; }
.apexcharts-legend-text { font-family: var(--font) !important; font-weight: 500 !important; color: var(--ink-2) !important; }
.legend-dots { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend-dots i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

/* live indicators */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(15,157,107,.5); animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(15,157,107,.45); } 100% { box-shadow: 0 0 0 9px rgba(15,157,107,0); } }

/* sign-in */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; padding: 0; align-items: stretch; }
.login-art { position: relative; background: radial-gradient(1200px 600px at 10% 10%, #4f7cff 0%, transparent 60%), linear-gradient(145deg, #1b2a6b 0%, #2f5bea 55%, #5b8cff 100%); color: #fff; padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); }
.login-art::before { content: ""; position: absolute; right: 60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(249,115,22,.22); filter: blur(10px); }
.la-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; position: relative; z-index: 1; }
.la-brand img { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 3px; }
.la-main { position: relative; z-index: 1; max-width: 520px; }
.la-main h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 700; }
.la-main p { font-size: 15.5px; line-height: 1.6; opacity: .88; margin: 0 0 26px; }
.la-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.la-point { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
.la-foot { font-size: 12px; opacity: .7; position: relative; z-index: 1; }
.login-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.login-side .lang-toggle { position: absolute; top: 22px; right: 26px; }
.login-card { width: 400px; max-width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
.login-card h1 { text-align: left; font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.login-card p.sub { text-align: left; color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.login-brand { text-align: left; }
.login-card .field { margin-bottom: 15px; }
.login-card .btn.primary { width: 100%; padding: 11px; font-size: 14.5px; margin-top: 6px; }
.login-logo { display: none; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

/* responsive shell */
@media (max-width: 980px) {
    .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; transform: translateX(-100%); transition: transform .18s; box-shadow: var(--shadow-lg); }
    body.side-open .side { transform: none; }
    .side-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .content { padding: 18px 16px 60px; } .topbar { padding: 12px 16px; }
    .top-search { display: none; }
}

/* small helpers */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.big-num { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.avatar.sq { border-radius: 10px; }
[dir=rtl] .me-signout { margin-left: 0; margin-right: auto; }
[dir=rtl] .stat-spark { right: auto; left: 0; }
.side .ts-select { height: 38px; line-height: 1.3; padding: 0 10px; appearance: auto; }
.stat-foot { max-width: 62%; flex-wrap: wrap; }
.stat-spark { width: 36%; height: 40px; }
.card.flush th, .card.flush td { padding-left: 16px; padding-right: 16px; }
.card.flush th:first-child, .card.flush td:first-child { padding-left: 20px; }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
td .who-cell { min-width: 220px; }
.cell-main { white-space: nowrap; }
td.wrap .cell-main, .cell-main.wrap { white-space: normal; }
table.access-t select, .acc-sel { min-width: 150px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.stat-v { font-size: 26px; }
[hidden] { display: none !important; }
button.chiptab { font-family: inherit; cursor: pointer; }
.btn .ic { margin: 0; }
/* host operator logo */
.brand-sub { display: inline-flex; align-items: center; gap: 6px; }
.brand-sub .op-logo { height: 30px; width: auto; display: inline-block; }
.login-op { position: absolute; top: 22px; left: 28px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.login-op img { height: 46px; width: auto; }
@media (max-width: 900px) { .login-op { position: static; justify-content: center; margin-bottom: 24px; } .login-side { flex-direction: column; } }
