:root {
  --bg: #0c0d0f;
  --sidebar: #262626;
  --sidebar-text: #c9ced6;
  --top: #121316;
  --line: #2a2c31;
  --card: #141518;
  --text: #f3f4f6;
  --muted: #9aa3af;
  --input: #101114;
  --accent: #a1a1aa;
  --radius: 0.5rem;
  --green: #22c55e;
  --red: #ef5b5b;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --mint: #2fbf8f;
  --shadow: 0 16px 50px rgba(0,0,0,.45);
  color-scheme: dark;
}
body.theme-light {
  --bg: #f4f5f7;
  --sidebar: #1f2933;
  --top: #ffffff;
  --line: #e5e7eb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --input: #ffffff;
  --shadow: 0 16px 40px rgba(15,23,42,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI", Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.app { display: flex; height: 100%; min-height: 0; overflow: hidden; }
.sidebar {
  width: 248px; background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { padding: 14px 12px 10px; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.brand .logo-mark { display: none; }
.brand-login { width: min(380px, 100%); margin: 0 auto 8px; }
.brand-login img { width: 100%; height: auto; }
.nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; flex: 1; min-height: 0; overflow: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--sidebar-text);
}
.nav a:hover { background: color-mix(in srgb, var(--accent) 28%, transparent); color: #fff; }
.nav a.active { background: var(--accent); color: var(--accent-ink); }
.side-foot { margin-top: auto; padding: 12px; position: relative; }
.user-chip {
  width: 100%; display: flex; gap: 10px; align-items: center; background: transparent;
  border: 0; color: #fff; text-align: left; cursor: pointer; padding: 8px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #111;
  display: grid; place-items: center; font-weight: 700; flex: 0 0 auto;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta b, .user-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #b7bec8; }
.user-menu, .pop {
  position: absolute; background: #1b1c20; border: 1px solid #333; border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 30; padding: 6px;
}
.side-foot .user-menu.pop,
.user-menu.pop.map-user-pop {
  position: fixed; top: auto; bottom: 12px; left: 260px; right: auto;
  min-width: 210px; z-index: 5000; pointer-events: auto;
}
body.collapsed .side-foot .user-menu.pop,
body.collapsed .user-menu.pop.map-user-pop { left: 92px; }
.user-menu a, .menu-item {
  display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius);
  text-decoration: none; background: transparent; border: 0; color: var(--text); width: 100%; cursor: pointer;
}
.user-menu a:hover, .menu-item:hover { background: rgba(255,255,255,.06); }
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid #1f1f1f; background: #262626; position: sticky; top: 0; z-index: 20;
  color: #fff;
}
.topbar .icon-btn, .topbar .lang-btn, .topbar .credits-pill { color: #fff; }
.icon-btn, .btn, .btn-green, .btn-white, .btn-ghost {
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.icon-btn { width: 36px; height: 36px; background: transparent; color: var(--text); }
.icon-btn:hover { background: rgba(127,127,127,.15); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.btn-green { background: #16A286; color: #fff; font-weight: 650; height: 36px; padding: 0 14px; border-radius: var(--radius); }
.btn-green .ico { width: 16px; height: 16px; }
.credits-pill { color: #fff; font-weight: 500; padding: 0 8px; }
.badge { position: relative; }
.badge i {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  background: #e11d2e; color: #fff; border-radius: 99px; font-style: normal; font-size: 10px;
  display: grid; place-items: center; line-height: 16px;
}
.lang-btn {
  height: 36px; padding: 0 8px; border: 0; background: transparent; color: #fff;
  display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px;
  cursor: pointer; border-radius: var(--radius); white-space: nowrap;
}
.lang-btn:hover, .lang-item:hover { background: rgba(255,255,255,.08); }
.flag {
  width: 22px; height: 16px; min-width: 22px; max-width: 22px; flex: 0 0 22px;
  object-fit: cover; border-radius: 2px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lang-pop { min-width: 190px; padding: 6px; background: #1b1e22; }
.lang-item { color: #fff; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; }
.lang-item.on { background: var(--accent); color: var(--accent-ink); }
.content { flex: 1; min-height: 0; overflow: auto; padding: 22px 24px 40px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
h1 { font-size: 22px; margin: 0 0 16px; font-weight: 700; }
.welcome { font-size: 22px; margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
a.stat, .stat {
  border-radius: var(--radius); padding: 14px 14px 12px; min-height: 108px; color: #fff; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
}
a.stat:hover { filter: brightness(1.08); }
.stat b { font-size: 28px; line-height: 1; }
.stat span { font-size: 14px; font-weight: 700; }
.stat small { opacity: .9; display: block; margin-top: 4px; }
.stat .mark {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: var(--radius);
  display: grid; place-items: center; background: rgba(0,0,0,.15);
}
.stat.red, .stat.blue, .stat.green, .stat.teal {
  background-image:
    linear-gradient(145deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.05) 38%, rgba(0,0,0,.18) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  background-blend-mode: soft-light, multiply;
}
.stat.red { background-color: #f06a64; }
.stat.blue { background-color: #4d90f2; }
.stat.green { background-color: #2aad66; }
.stat.teal { background-color: #1aada6; }
.fast { max-width: 220px; margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.panel {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 180px;
}
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-extra { margin-top: 16px; }
.empty-block { min-height: 120px; display: grid; place-items: center; color: var(--muted); }
.country-list { list-style: none; margin: 12px 0 0; padding: 0; }
.country-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.session-card { background: #152033; border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.session-card b { font-size: 18px; }
.session-card p { margin: 6px 0; color: #c5d0dc; word-break: break-word; white-space: normal; }
.session-card small { color: #9fb0c3; }
.pill { display: inline-flex; margin-top: 10px; background: #16a34a; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.logout-all { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn-danger { background: #dc3b3b; color: #fff; border: 0; border-radius: var(--radius); height: 36px; padding: 0 14px; cursor: pointer; font-weight: 700; }
.activity-panel { margin-top: 16px; }
.timeline { margin-top: 8px; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0 10px 4px; }
.timeline-item .dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 99px; background: #60a5fa; flex: 0 0 auto; }
.timeline-item small, .timeline-item p { display: block; color: var(--muted); margin: 2px 0 0; white-space: normal; }
.panel p, .panel pre { margin: 0; white-space: pre-wrap; color: var(--text); line-height: 1.5; font-family: inherit; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.input, .select, textarea.input {
  background: var(--input); border: 1px solid #3a3a3a; border-radius: var(--radius); height: 38px; padding: 0 10px; min-width: 0;
}
textarea.input { height: auto; padding: 8px 10px; width: 100%; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
body.theme-light .input, body.theme-light .select { border-color: #d1d5db; }
.grow { width: 220px; }
.btn-white { background: #fff; color: #111; height: 36px; padding: 0 14px; font-weight: 700; }
.btn-ghost { background: #2a2a2a; color: #fff; height: 36px; padding: 0 12px; border-color: #3a3a3a; }
body.theme-light .btn-ghost { background: #f3f4f6; color: #111; border-color: #e5e7eb; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td.empty { text-align: center; color: var(--muted); padding: 28px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; color: var(--muted); flex-wrap: wrap; }
.pager-pages { display: flex; gap: 6px; align-items: center; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 7px 12px; border-radius: var(--radius); text-decoration: none; color: var(--muted); background: transparent; border: 0; cursor: pointer; font: inherit; }
.tabs a.on, .tabs button.on { background: var(--accent); color: var(--accent-ink); }
.m3u-choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.m3u-choice button { padding: 8px 12px; border-radius: var(--radius); border: 1px solid #3a3a3a; background: transparent; color: var(--text); cursor: pointer; }
.m3u-choice button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.62); display: none; align-items: center; justify-content: center;
  padding: 24px 16px; z-index: 50; overflow: auto;
}
.modal-back.open { display: flex; }
.modal-back.stacked { z-index: 60; }
.view-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid #2e2e2e; display: flex; flex-direction: column; gap: 10px; }
.view-foot-row { display: flex; flex-direction: column; gap: 4px; }
.view-foot-row span { color: #a1a1aa; font-size: 12px; }
.view-foot-row b { font-size: 14px; word-break: break-all; font-weight: 600; }
.view-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.view-foot-actions form { margin: 0; }
.portal-list { margin: 8px 0 0; padding-left: 22px; }
.portal-list li { margin: 8px 0; word-break: break-all; font-size: 14px; }
.modal {
  width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: #17181b; color: #f3f4f6; border: 1px solid #2e2e2e;
  border-radius: var(--radius); padding: 16px 16px 18px; box-shadow: var(--shadow);
}
.modal h3 { margin: 0; font-size: 16px; }
.modal .sub { color: #a1a1aa; margin: 2px 0 12px; font-size: 13px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.bulk-m3u-title { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14px; }
.bulk-device { border: 1px solid #2a2c31; border-radius: 10px; padding: 12px; margin: 0 0 12px; background: rgba(255,255,255,.02); }
.bulk-device-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bulk-device-head strong { color: #d4af37; }
.bulk-add-row { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; }
#device-bulk-modal .modal { width: min(760px, 100%); }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hint { color: #9ca3af; font-size: 12px; margin: 4px 0 0; }
.row-actions { display: flex; gap: 6px; }
.sn-note { display: block; color: #22c55e; font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; background: #6b7280; }
.dot.ok { background: #22c55e; }
.dot.wait { background: #f59e0b; }
.dot.bad { background: #ef4444; }
.dot-btn { background: none; border: 0; padding: 4px; cursor: pointer; }
.lic { display: flex; flex-direction: column; font-size: 13px; }
.lic small { font-size: 11px; }
.lic.ok { color: #22c55e; }
.lic.wait { color: #f59e0b; }
.lic.bad { color: #ef4444; }
.row-menu { position: fixed; z-index: 70; min-width: 180px; background: #1b1c20; border: 1px solid #333; border-radius: 8px; padding: 6px; box-shadow: var(--shadow); }
.row-menu button, .row-menu a { display: block; width: 100%; text-align: left; background: none; border: 0; color: #fff; padding: 8px 10px; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px; }
.row-menu button:hover, .row-menu a:hover { background: rgba(255,255,255,.06); }
.row-menu [data-go="delete"] { color: #f87171; }
.modal-wide { width: min(920px, calc(100vw - 32px)); }
.modal .table-wrap { overflow: visible; }
.modal table { width: 100%; table-layout: fixed; }
.modal th, .modal td { white-space: normal; word-break: break-word; }
.modal h4 { margin: 16px 0 8px; font-size: 15px; }
.modal .tabs { flex-wrap: wrap; }
.epg-progress-card { width: min(420px, 100%); text-align: center; }
.epg-progress-bar { height: 14px; border-radius: 99px; background: #2a2b31; overflow: hidden; margin: 16px 0 10px; }
.epg-progress-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.epg-progress-pct { font-size: 28px; font-weight: 800; letter-spacing: .04em; }
.epg-progress-card.done .epg-progress-pct { color: #22c55e; }
.confirm-card { width: min(460px, 100%); position: relative; }
.confirm-card h3 { font-size: 16px; margin-bottom: 6px; }
.confirm-card p { color: #a1a1aa; margin: 0 0 16px; }
.confirm-x { position: absolute; top: 10px; right: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.btn-blue { background: #2563eb; color: #fff; border: 0; border-radius: 8px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.btn-danger { background: #9f1239; color: #fff; border: 0; border-radius: 8px; height: 34px; padding: 0 14px; cursor: pointer; }
.warn { background: #c2410c; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; margin: 8px 0 0; }
.kv dt { color: #a1a1aa; font-size: 12px; }
.kv dd { margin: 0; font-size: 14px; }
.kv dd.ok { color: #22c55e; font-weight: 700; }
.link-form { margin-top: 16px; }
.link-form h4 { margin: 0 0 10px; }
.switch { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box h2 { margin: 0 0 6px; font-size: 18px; }
.box p { color: var(--muted); margin-top: 0; }
.login-shell { height: 100%; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: #111; }
.login-pane { display: grid; place-items: center; padding: 32px; background: #0b0b0b; }
.login-side { position: relative; overflow: hidden; background: #111; min-height: 100%; }
.login-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.login-card { width: min(380px, 100%); }
.login-card h1 { text-align: center; margin-bottom: 4px; }
.login-card .login-sub { text-align: center; color: #9ca3af; margin-bottom: 18px; }
.login-card .field { margin-bottom: 12px; }
.login-card .btn-white { width: 100%; height: 40px; }
.login-links { text-align: center; margin-top: 14px; color: #9ca3af; }
.login-links a { color: #fff; }
.flash { padding: 10px 12px; border-radius: var(--radius); margin-bottom: 12px; }
.flash.ok { background: #14532d; color: #dcfce7; }
.flash.error { background: #7f1d1d; color: #fee2e2; }
.pop-wrap { position: relative; }
.pop { display: none; min-width: 220px; right: 0; top: 42px; }
.pop.open { display: block; }
.theme-pop { position: fixed; top: 62px; right: 18px; width: 348px; padding: 16px; background: #111; border: 1px solid #2a2a2a; border-radius: 12px; color: #fff; }
.theme-pop h3 { margin: 0; font-size: 14px; font-weight: 600; }
.theme-pop .hint { margin: 6px 0 0; color: #a1a1aa; font-size: 12px; line-height: 1.45; }
.theme-sec { margin-top: 16px; }
.theme-sec > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { display: flex; align-items: center; gap: 8px; width: auto; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid #3f3f46; background: transparent; color: #fff; font-size: 12px; cursor: pointer; }
.swatch i { width: 16px; height: 16px; border-radius: 99px; flex: 0 0 16px; border: 1px solid rgba(255,255,255,.25); }
.swatch.on { border: 2px solid var(--accent); }
.radii { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radii button, .themes button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: #fff; border: 1px solid #3f3f46; border-radius: 8px; height: 34px; padding: 0 4px; cursor: pointer; font-size: 13px; }
.themes button .ico { width: 14px; height: 14px; }
.radii button.on, .themes button.on { background: #fafafa; color: #111; border-color: #fafafa; }
.plan { border: 1px solid #333; border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.save { background: #22c55e; color: #052e16; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.was { color: #9ca3af; text-decoration: line-through; }
.price { font-size: 28px; font-weight: 800; }
.lang-pop { min-width: 180px; }
.lang-pop button { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 8px; white-space: nowrap; }
.check-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; }
.check-list label { display: flex; gap: 8px; align-items: center; padding: 4px; }
.forbidden { min-height: 50vh; display: grid; place-items: center; color: #dbe4f0; letter-spacing: .04em; }
.tag { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #fff; }
.tag.feature, .tag.medium { background: #2563eb; }
.tag.high { background: #b91c1c; }
.tag.low { background: #52525b; }
.tag.open { background: #3f3f46; }
.tag.replied { background: #0f766e; }
.tag.progress { background: #c2410c; }
.tag.closed { background: #3f3f46; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.bubble { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.bubble.support { background: #152033; border-color: #1d4ed8; }
.ticket-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.ticket-side { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ticket-side p { margin: 8px 0; }
.calendar { display: flex; gap: 16px; }
.cal { min-width: 220px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid button, .cal-grid span { height: 28px; border: 0; background: transparent; color: inherit; border-radius: 6px; }
.cal-grid button:hover, .cal-grid button.on { background: #333; }
.buy-modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: #0e0f12; }
.buy-note { border: 1px solid #2a2a2a; border-radius: var(--radius); padding: 10px 12px; color: #d4d4d8; font-size: 13px; margin-bottom: 12px; }
.buy-note a, .buy-note span { color: #22c55e; font-weight: 700; }
.buy-card { border: 1px solid #16a34a; border-radius: var(--radius); padding: 14px; margin-bottom: 14px; background: #090a0c; }
.buy-card .save { background: #16a34a; color: #fff; }
.buy-lines { margin: 10px 0; font-size: 14px; }
.buy-lines div { display: flex; justify-content: space-between; padding: 4px 0; }
.buy-note-box { background: #1a1c20; border-radius: var(--radius); padding: 10px; color: #d4d4d8; font-size: 13px; line-height: 1.45; }
.buy-note-box button { background: none; border: 0; color: #22c55e; font-weight: 700; cursor: pointer; padding: 0; }
.plan-change { width: 100%; margin-top: 10px; background: #2a2d33; color: #fff; border: 0; border-radius: var(--radius); height: 40px; cursor: pointer; }
.buy-block { border: 1px solid #2a2a2a; border-radius: var(--radius); padding: 14px; margin-top: 12px; background: #121316; }
.buy-block h4 { margin: 0 0 12px; }
.buy-card .buy-next { margin-top: 12px; }
.buy-card .buy-next { margin-top: 12px; }
.buy-next, .pay-go { width: 100%; height: 42px; margin-top: 14px; border-radius: var(--radius); }
.pay-go { background: #3a3a3a; color: #fff; border: 0; font-weight: 700; cursor: pointer; }
.pay-go:not(:disabled) { background: #f4f4f5; color: #111; }
.pay-go:disabled { cursor: not-allowed; }
.pay-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pay-switch button { height: 74px; border-radius: var(--radius); border: 1px solid #333; background: #16181d; color: #635bff; font-size: 28px; font-weight: 800; cursor: pointer; }
.pay-switch button[data-gateway="paypal"] { color: #fff; font-size: 22px; }
.pay-switch button[data-gateway="paypal"] i { color: #60a5fa; font-style: normal; }
.pay-switch button.on { outline: 2px solid #635bff; }
.pay-switch button.on[data-gateway="paypal"] { outline-color: #60a5fa; }
.link-row { color: #4ade80; font-size: 13px; margin: 8px 0; }
.bell-pop { width: 380px; padding: 0; background: #111; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; color: #fff; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.bell-head strong { font-size: 16px; }
.bell-head form { margin: 0; }
.bell-read { background: none; border: 0; color: #a1a1aa; cursor: pointer; font-size: 13px; padding: 0; white-space: nowrap; }
.bell-item { display: block; padding: 10px 16px 12px; text-decoration: none; color: #fff; }
.bell-title { display: flex; align-items: center; gap: 8px; }
.bell-title b { font-size: 15px; }
.bell-dot { width: 8px; height: 8px; border-radius: 99px; background: #fff; flex: 0 0 auto; }
.bell-dot.off { background: transparent; }
.bell-item small { display: block; margin: 4px 0 0 32px; color: #9ca3af; font-size: 13px; }
.bell-all { display: block; text-align: center; padding: 14px 16px; border-top: 1px solid #2a2a2a; color: #fff; text-decoration: none; font-weight: 650; }
.bell-all:hover, .bell-item:hover { background: rgba(255,255,255,.04); }
.ctx-menu { position: fixed; z-index: 90; min-width: 180px; background: #1c1e22; border: 1px solid #333; border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); }
.ctx-menu a { display: block; padding: 8px 10px; border-radius: var(--radius); color: #f3f4f6; text-decoration: none; }
.ctx-menu a:hover { background: var(--accent); color: var(--accent-ink); }
.cal-grid button.on { background: var(--accent); color: var(--accent-ink); }
.fake-input { display: flex; align-items: center; height: 40px; border: 1px solid #3a3a3a; border-radius: var(--radius); padding: 0 10px; color: #a1a1aa; background: #0c0d10; }
.terms-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: #d4d4d8; }
.terms-row a { color: #60a5fa; }
.pick-plan { width: 100%; text-align: left; margin-bottom: 8px; background: #111; color: inherit; border: 1px solid #333; border-radius: var(--radius); padding: 10px; cursor: pointer; }
#stripe-mount { min-height: 180px; }
body.collapsed .sidebar { width: 76px; }
body.collapsed .brand { display: flex; justify-content: center; padding: 14px 8px 10px; }
body.collapsed .brand .logo-full { display: none; }
body.collapsed .brand .logo-mark { display: block; width: 48px; height: 48px; margin: 0 auto; object-fit: contain; }
body.collapsed .nav { align-items: center; padding: 6px 8px; }
body.collapsed .nav a { justify-content: center; width: 44px; height: 44px; padding: 0; gap: 0; }
body.collapsed .nav a span, body.collapsed .user-meta, body.collapsed .user-chip .ico { display: none; }
body.collapsed .side-foot { display: flex; justify-content: center; padding: 12px 8px; }
body.collapsed .user-chip { width: 44px; height: 44px; justify-content: center; padding: 0; gap: 0; }
.view-dash { width: min(1360px, calc(100vw - 16px)); max-height: calc(100vh - 16px); background: #0a0a0d; color: #f3f4f6; border: 1px solid #2a2418; border-radius: 14px; padding: 16px 20px 18px; overflow: auto; }
.view-dash .ico { width: 15px; height: 15px; flex: 0 0 auto; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.dash-head h3 { font-size: 22px; font-weight: 600; }
.dash-head .sub { margin: 2px 0 0; color: #8b8b93; }
.dash-hero { display: grid; grid-template-columns: 150px 168px minmax(0, 1fr); gap: 18px 22px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #242018; }
.dash-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dash-box strong { font-size: 13px; color: #e5e7eb; font-weight: 600; }
.stb { width: 128px; height: 78px; border-radius: 16px; background: radial-gradient(120% 80% at 30% 20%, #3a3a40, #141416 55%, #0b0b0d); border: 1px solid #4a4a50; box-shadow: 0 10px 18px rgba(0,0,0,.45), inset 0 -14px 0 #070708; position: relative; }
.stb-led { position: absolute; left: 16px; bottom: 16px; width: 8px; height: 8px; border-radius: 99px; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.stb-slot { position: absolute; right: 18px; bottom: 18px; width: 28px; height: 6px; border-radius: 2px; background: #2a2a30; box-shadow: inset 0 0 0 1px #111; }
.dash-status .live, .dash-panel .live { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.dash-status p { margin: 10px 0 0; color: #8b8b93; font-size: 12px; }
.dash-status p b { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-top: 2px; }
.live i { width: 9px; height: 9px; border-radius: 99px; background: #6b7280; }
.live.ok, .tone.ok, .dash-log .ok, .bar-legend .ok { color: #22c55e; }
.live.ok i, .bars i.ok { background: #22c55e; }
.live.bad, .tone.bad, .dash-log .bad, .bar-legend .bad { color: #ef4444; }
.live.bad i, .bars i.bad { background: #ef4444; }
.tone.wait { color: #f59e0b; }
.dash-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; }
.dash-meta > div { display: flex; align-items: flex-start; gap: 10px; }
.meta-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #d6b25a; }
.meta-ico .ico { width: 16px; height: 16px; }
.dash-meta dt { color: #8b8b93; font-size: 11px; }
.dash-meta dd { margin: 2px 0 0; font-size: 13px; color: #f8fafc; word-break: break-all; }
.dash-meta em { margin-left: 8px; color: #22c55e; font-style: normal; font-size: 11px; font-weight: 700; }
.dash-meta small { color: #a1a1aa; }
.flag-mark { margin-right: 4px; }
.dash-tabs { display: flex; gap: 4px 14px; overflow-x: auto; padding: 12px 0 0; border-bottom: 1px solid #242018; }
.dash-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: #8b8b93; padding: 9px 2px 10px; cursor: pointer; white-space: nowrap; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.dash-tabs button .ico { width: 14px; height: 14px; }
.dash-tabs button.on { color: #e8c15a; border-bottom-color: #e8c15a; }
.dash-body { padding-top: 14px; }
.view-dash [data-view-pane][hidden] { display: none !important; }
.vpn-pane .hint { color: #9ca3af; margin: 0 0 16px; line-height: 1.45; }
.vpn-status { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.vpn-status i { width: 12px; height: 12px; border-radius: 99px; display: inline-block; background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.vpn-status i.ok { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.vpn-status i.wait { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.vpn-status i.bad { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.vpn-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vpn-actions form { margin: 0; }
.vpn-actions .btn-blue.on, .vpn-actions .btn-ghost.on { opacity: .7; }
.dash-epg:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-remote { max-width: 760px; }
.dash-panel { background: #101014; border: 1px solid #2c261a; border-radius: 14px; padding: 16px; }
.dash-panel.wide { grid-column: 1 / -1; }
.epg-url-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.epg-url-form .input { flex: 1; min-width: 0; }
.epg-url-form select.input { flex: 0 1 280px; min-width: 200px; }
.dash-panel h4, .panel-title h4 { margin: 0 0 14px; color: #e8c15a; font-size: 13px; letter-spacing: .03em; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dash-panel h5 { margin: 18px 0 10px; color: #9ca3af; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.dash-panel h5:before, .dash-panel h5:after { content: ""; flex: 1; height: 1px; background: #2a261c; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-title h4 { margin: 0; }
.see-all { background: none; border: 0; color: #e8c15a; cursor: pointer; font-size: 12px; font-weight: 600; }
.epg-stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.epg-stats dt { color: #8b8b93; font-size: 11px; }
.epg-stats dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.epg-stats small { display: block; margin-top: 4px; color: #8b8b93; font-size: 11px; }
.epg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.epg-split .dash-kv { grid-template-columns: 150px 1fr; }
.epg-split .dash-kv > div { display: contents; }
.dash-log td i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-right: 6px; vertical-align: middle; background: #6b7280; }
.dash-log td.ok i { background: #22c55e; }
.dash-log td.bad i { background: #ef4444; }
.dash-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; }
.dash-kv > div { display: flex; flex-direction: column; gap: 3px; }
.dash-kv dt { color: #8b8b93; font-size: 11px; }
.dash-kv dd { margin: 0; font-size: 13px; color: #f3f4f6; word-break: break-word; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px 4px; margin-top: 16px; }
.dash-actions .cmd-form button { width: auto; background: none; border: 0; color: #e8c15a; min-height: 36px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.dash-actions .cmd-form button small { display: none; }
.cmd-form { margin: 0; }
.cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmd-card { background: #121214; border: 1px solid #2e291c; border-radius: 12px; }
.cmd-card .cmd-form button { width: 100%; background: transparent; border: 0; color: #f8fafc; min-height: 72px; padding: 12px 14px; cursor: pointer; text-align: left; font-weight: 700; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: start; }
.cmd-card .ico { color: #ececec; width: 20px; height: 20px; grid-row: 1 / span 2; margin-top: 2px; }
.cmd-card span { font-size: 13px; }
.cmd-card small { grid-column: 2; color: #9ca3af; font-weight: 400; font-size: 11px; line-height: 1.35; margin-top: 2px; }
.q-wrap { display: grid; grid-template-columns: minmax(280px, 1fr) 220px; gap: 16px; align-items: center; }
.q-chart { background: #121214; border: 1px solid #2e291c; border-radius: 12px; padding: 8px 8px 2px; }
.q-svg { width: 100%; height: 168px; display: block; }
.q-svg .q-grid { stroke: #2a261c; stroke-width: 1; }
.q-svg .q-base { stroke: #3a3424; stroke-width: 1.2; }
.q-svg .q-line { stroke: #e8c15a; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.q-svg .q-axis { fill: #8b8b93; font-size: 10px; }
.q-stats { margin: 0; display: grid; gap: 10px; }
.q-stats div { background: #121214; border: 1px solid #2e291c; border-radius: 10px; padding: 10px 12px; }
.q-stats dt { color: #9ca3af; font-size: 11px; }
.q-stats dd { margin: 4px 0 0; color: #f8fafc; font-size: 18px; font-weight: 800; }
.watch-now { text-align: center; }
.watch-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 12px 0 8px; }
.watch-mark { font-size: 28px; line-height: 1; }
.watch-hero strong { color: #e8c15a; font-size: 22px; }
.watch-progress { color: #f8fafc; font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.watch-meta { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: center; gap: 16px; color: #d1d5db; font-weight: 700; }
.watch-line { color: #9ca3af; margin: 4px 0; }
.watch-line b { color: #f8fafc; }
.notify-card { grid-column: 1 / -1; }
.notify-form { display: grid; gap: 8px; padding: 14px; }
.notify-form label { display: flex; align-items: center; gap: 8px; color: #f8fafc; font-weight: 700; font-size: 13px; }
.notify-form label .ico { color: #ececec; width: 20px; height: 20px; }
.notify-form .hint { margin: 0; color: #9ca3af; font-size: 12px; }
.notify-form textarea { width: 100%; min-height: 88px; resize: vertical; background: #0c0c10; color: #f8fafc; border: 1px solid #3a3424; border-radius: 8px; padding: 10px 12px; font: inherit; }
.notify-form textarea:focus { outline: 0; border-color: #e8c15a; }
.notify-form .btn-blue { justify-self: start; }
.portal-active { margin-bottom: 12px; }
.portal-active dt { color: #8b8b93; font-size: 11px; }
.portal-active dd { margin: 4px 0 0; word-break: break-all; }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 72px; align-items: end; }
.bars i { display: block; height: 28%; background: #2f2f36; border-radius: 3px; }
.bars i.ok { height: 100%; }
.bars i.bad { height: 70%; }
.bar-axis { display: flex; justify-content: space-between; color: #6b7280; font-size: 11px; margin-top: 6px; }
.bar-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #9ca3af; }
.dash-log { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-log td, .dash-log th { padding: 8px 8px; border-bottom: 1px solid #222; text-align: left; color: #d4d4d8; }
.dash-log th { color: #8b8b93; font-size: 11px; font-weight: 600; }
@media (max-width: 1100px) {
  .dash-hero, .dash-epg, .dash-meta, .cmd-grid, .epg-stats, .epg-split, .q-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .cards-2, .login-shell { grid-template-columns: 1fr; }
  .login-side { min-height: 120px; }
}
.nav-scrim { display: none; }
@media (max-width: 860px) {
  .content { padding: 14px 12px 28px; }
  .topbar { height: auto; min-height: 56px; padding: 8px 10px; gap: 8px; }
  .top-actions { flex: 1; min-width: 0; justify-content: flex-end; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .credits-pill { font-size: 12px; white-space: nowrap; }
  .lang-btn span, .lang-btn .ico { display: none; }
  .btn-green { padding: 0 10px; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 80; width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform .2s ease;
    height: 100%; max-height: 100%;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-scrim {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70;
  }
  body.collapsed .sidebar { width: min(300px, 86vw); }
  body.collapsed .brand { display: block; padding: 14px 12px 10px; }
  body.collapsed .brand .logo-full { display: block; width: 100%; }
  body.collapsed .brand .logo-mark { display: none; }
  body.collapsed .nav { align-items: stretch; padding: 6px 10px; }
  body.collapsed .nav a { justify-content: flex-start; width: auto; height: auto; padding: 10px 12px; gap: 10px; }
  body.collapsed .nav a span, body.collapsed .user-meta, body.collapsed .user-chip .ico { display: initial; }
  body.collapsed .user-meta { display: flex; }
  body.collapsed .side-foot { display: block; padding: 12px; }
  body.collapsed .user-chip { width: 100%; height: auto; justify-content: flex-start; padding: 8px; gap: 10px; }
  .side-foot .user-menu.pop, body.collapsed .side-foot .user-menu.pop,
  .user-menu.pop.map-user-pop, body.collapsed .user-menu.pop.map-user-pop {
    left: 12px; right: 12px; bottom: 72px; width: auto; min-width: 0;
  }
  .welcome, h1 { font-size: 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 92px; }
  .toolbar, .filters, .pager, .panel-head { flex-direction: column; align-items: stretch; }
  .filters .input, .filters .select, .grow, .fast { width: 100%; max-width: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .form-grid, .kv, .ticket-layout, .calendar, .pay-switch { grid-template-columns: 1fr; }
  .calendar { flex-direction: column; }
  .cal { min-width: 0; width: 100%; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 720px; }
  .input, .select, textarea.input { font-size: 16px; }
  .modal-back { padding: 8px; align-items: flex-start; }
  .modal, .modal-wide, .view-dash, .confirm-card, .buy-modal { width: 100%; max-height: calc(100vh - 16px); }
  .theme-pop, .bell-pop, .lang-pop, .pop {
    left: 10px; right: 10px; width: auto; min-width: 0; max-width: none;
  }
  .theme-pop { top: 62px; }
  .swatches, .themes, .radii { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr; min-height: 100%; }
  .login-side { min-height: 140px; }
  .login-pane { padding: 20px 16px 32px; align-items: start; }
  .login-card { width: 100%; }
  .dash-hero, .dash-epg, .dash-meta, .dash-kv, .cmd-grid, .epg-stats, .epg-split, .q-wrap { grid-template-columns: 1fr; }
  .dash-actions { flex-direction: column; }
  .dash-actions .cmd-form button { width: 100%; justify-content: flex-start; }
  .cmd-card .cmd-form button { min-height: 64px; }
  .q-wrap { grid-template-columns: 1fr; }
  .watch-meta { flex-wrap: wrap; justify-content: center; }
  .row-menu { left: 8px !important; right: 8px; min-width: 0; width: auto; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.tester-fold { margin-bottom: 14px; }
.tester-fold > .tester-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.tester-fold > .tester-summary::-webkit-details-marker { display: none; }
.tester-chevron {
  display: inline-flex;
  transition: transform .16s ease;
}
.tester-fold[open] .tester-chevron { transform: rotate(180deg); }
.tester-counts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tester-count { color: var(--muted); font-weight: 600; }
.tester-count b { color: var(--text); }
.tester-body { margin-top: 10px; }
.tester-table-wrap table.tester-table { min-width: 0; }
.tester-actions { display: flex; align-items: center; gap: 4px; }
.tester-del { display: inline-flex; margin: 0; }
.icon-btn.danger { color: #ef5b5b; }
.icon-btn.danger:hover { background: rgba(239,91,91,.16); }
.content.device-map-page { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.device-map {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #071224;
}
.device-map-canvas { width: 100%; height: 100%; background: #071224; }
.device-map .leaflet-container {
  background:
    radial-gradient(ellipse at 48% 42%, #163a63 0%, #0d2748 38%, #08172c 72%, #06101e 100%);
  font-family: inherit;
  cursor: grab;
}
.device-map .leaflet-interactive { cursor: pointer; }
.device-map .leaflet-control-zoom {
  border: 0;
  margin: 14px 0 0 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.device-map .leaflet-control-zoom a {
  background: #252a32;
  color: #e5e7eb;
  border: 1px solid #3a4148;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 16px;
}
.device-map .leaflet-control-zoom a:hover { background: #323944; color: #d4af37; }
.device-map .leaflet-bar { border: 0; }
.device-map .leaflet-control-attribution { display: none !important; }
.device-map-head {
  position: absolute;
  top: 12px;
  left: 58px;
  z-index: 500;
  background: rgba(20,22,26,.92);
  border: 1px solid #2a2c31;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  letter-spacing: .02em;
  max-width: min(760px, calc(100% - 80px));
}
.device-map-head small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9aa3af;
  font-weight: 500;
  font-size: 12px;
}
.device-map-counts { display: flex; gap: 14px; margin-left: 12px; white-space: nowrap; }
.device-map-counts b { color: #f3f4f6; margin-left: 4px; }
.device-map-counts .on { color: #4ade80; }
.device-map-counts .off { color: #f0a8a8; }
.device-map-panel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  width: min(680px, calc(100% - 36px));
  max-height: min(74vh, 820px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  background: rgba(18,20,24,.96);
  border: 1px solid #2a2c31;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
  overflow: hidden;
}
.device-map-panel[hidden] { display: none !important; }
.device-map-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2c31;
}
.device-map-panel-head strong { flex: 1; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.device-map-panel-head .device-map-total { color: #d4af37; font-weight: 800; }
.device-map-flag { font-style: normal; }
.device-map-panel .table-wrap { overflow: auto; flex: 1; min-height: 0; }
.device-map-panel table { width: 100%; border-collapse: collapse; font-size: 12px; }
.device-map-panel th, .device-map-panel td { padding: 8px 10px; border-bottom: 1px solid #22262c; text-align: left; }
.device-map-panel th { color: #8b8b93; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: #16181d; }
.device-map-panel td.ok { color: #4ade80; }
.device-map-panel td.muted { color: #9aa3af; }
.device-map-tip {
  background: #12141a;
  color: #f3f4f6;
  border: 1px solid #d4af37;
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: none;
}
.device-map-tip::before { display: none; }
@media (max-width: 860px) {
  .device-map-head { left: 12px; top: auto; bottom: 12px; right: 12px; max-width: none; }
  .device-map-head small { flex-wrap: wrap; }
  .device-map-panel { max-height: 62vh; min-height: 240px; width: calc(100% - 24px); }
}
