:root {
  --bg: #05080c;
  --sidebar: #0a0f15;
  --panel: #111820;
  --panel-2: #15202b;
  --panel-3: #071b2a;
  --border: #252c3b;
  --muted: #8a94a8;
  --soft: #667086;
  --text: #f7f8fb;
  --accent: #0047A1;
  --accent-2: #00E5FF;
  --green: #2bdd91;
  --amber: #ffb94b;
  --red: #ff647c;
  --cyan: #00E5FF;
  --sidebar-width: 270px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: radial-gradient(circle at 80% 0%, rgba(0, 229, 255, .12), transparent 35%), var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, .brand, .stat-card strong, .mini-stats b {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}
code {
  font-family: "JetBrains Mono", monospace;
  color: #8eefff;
  font-size: 12px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 229, 255, .18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(0, 71, 161, .35), transparent 36%),
    linear-gradient(135deg, #05080c 0%, #07111b 55%, #020406 100%);
}
.auth-screen.hidden { display: none; }
.auth-card {
  width: min(920px, 100%);
  border: 1px solid rgba(0, 229, 255, .18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 24, 32, .96), rgba(7, 16, 25, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "brand brand"
    "copy tabs"
    "copy form";
  gap: 18px 26px;
  align-items: start;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-area: brand;
}
.auth-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  line-height: 1;
}
.auth-brand span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.auth-copy {
  grid-area: copy;
  align-self: center;
  padding: 18px 10px;
}
.auth-copy p {
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.auth-copy h1 {
  margin: 10px 0;
  max-width: 470px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .95;
  letter-spacing: -2px;
}
.auth-copy span {
  display: block;
  max-width: 440px;
  color: #a9b4c7;
  line-height: 1.65;
}
.auth-support {
  max-width: 440px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 71, 161, .22), rgba(0, 229, 255, .07));
}
.auth-support strong,
.auth-support small {
  display: block;
}
.auth-support strong {
  color: #fff;
  font-size: 14px;
}
.auth-support small {
  margin-top: 5px;
  color: #9eaabe;
  line-height: 1.5;
}
.auth-support div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.auth-support a,
.auth-alt button {
  border: 1px solid #2c3855;
  border-radius: 999px;
  color: var(--accent-2);
  background: #0a1220;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.auth-support a {
  padding: 8px 11px;
}
.auth-tabs {
  grid-area: tabs;
  align-self: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid #253044;
  border-radius: 16px;
  background: #080e16;
}
.auth-tabs button,
.auth-help button {
  border: 0;
  color: #aab5c8;
  background: transparent;
  font-weight: 900;
}
.auth-tabs button {
  padding: 12px;
  border-radius: 12px;
}
.auth-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2668ff);
  box-shadow: 0 10px 24px rgba(0, 71, 161, .32);
}
.auth-form {
  grid-area: form;
  display: none;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid #253044;
  border-radius: 20px;
  background: rgba(5, 8, 12, .62);
}
.auth-form.active { display: flex; }
.auth-form label {
  color: #b9c3d4;
  font-size: 13px;
  font-weight: 800;
}
.auth-form input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #2a3446;
  border-radius: 12px;
  background: #090f18;
  color: #fff;
  padding: 13px 14px;
  outline: none;
}
.auth-form input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .12);
}
.otp-row {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 10px;
  align-items: end;
}
.otp-row button {
  height: 45px;
  border: 1px solid #2c3855;
  border-radius: 12px;
  background: #111827;
  color: var(--accent-2);
  font-weight: 900;
}
.auth-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px dashed #2d3b54;
  border-radius: 14px;
  background: rgba(0, 229, 255, .04);
}
.auth-alt span {
  flex-basis: 100%;
  color: #91a0b8;
  font-size: 12px;
  font-weight: 800;
}
.auth-alt button {
  padding: 8px 10px;
}
.auth-submit {
  border: 0;
  border-radius: 13px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent), #00a6ff);
}
.auth-help {
  margin: 2px 0 0;
  color: #8e99ad;
  text-align: center;
  font-size: 13px;
}
.auth-help button {
  color: var(--accent-2);
  padding: 0;
}

.app-shell { display: flex; min-height: 100vh; }
.app-shell.auth-locked { display: none; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--sidebar);
  border-right: 1px solid #222837;
  padding: 22px 15px 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #9ca7ba transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #9ca7ba; border-radius: 999px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
  padding: 0 10px 28px;
  letter-spacing: -.6px;
}
.brand > span:last-child span { color: var(--accent-2); }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.brand-mark img {
  width: 138px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}
.brand-lockup {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1;
}
.brand-lockup small {
  display: block;
  margin-top: 6px;
  color: var(--accent-2);
  font-family: "Inter", sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.menu-label {
  padding: 0 10px 9px;
  color: #697386;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  position: relative;
  border: 0;
  background: transparent;
  color: #96a0b3;
  height: 43px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-weight: 700;
  text-align: left;
}
.nav-item:hover { background: #151a25; color: #dce1ec; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 71, 161, .35), rgba(0, 229, 255, .08));
  color: var(--accent-2);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.nav-item span { flex: 1; }
.nav-item .nav-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  position: relative;
  color: currentColor;
  opacity: .95;
}
.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.icon-dashboard::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 10px 0 0 -6px currentColor, 0 10px 0 -6px currentColor, 10px 10px 0 -6px currentColor;
}
.icon-routers::before {
  left: 3px;
  right: 3px;
  bottom: 5px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.icon-routers::after {
  left: 10px;
  top: 4px;
  width: 4px;
  height: 8px;
  border-left: 2px solid currentColor;
  transform: rotate(-30deg);
}
.icon-packages::before {
  inset: 3px;
  border: 2px solid currentColor;
  transform: rotate(30deg) skewY(-8deg);
  border-radius: 3px;
}
.icon-portal::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.icon-portal::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  left: 5px;
  top: 8px;
  box-shadow: 7px -3px 0 currentColor, 12px 5px 0 currentColor;
}
.icon-vouchers::before {
  left: 3px;
  right: 3px;
  top: 6px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.icon-vouchers::after {
  left: 10px;
  top: 6px;
  height: 12px;
  border-left: 2px dashed currentColor;
}
.icon-payments::before {
  content: "$";
  inset: 0;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
}
.icon-sessions::before {
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 3px;
  top: 4px;
  box-shadow: 10px 0 0 -1px var(--sidebar), 10px 0 0 0 currentColor;
}
.icon-sessions::after {
  left: 1px;
  top: 15px;
  width: 22px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.icon-complaints::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.icon-complaints::after {
  left: 6px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skewX(-25deg);
}
.icon-pppoe::before {
  left: 2px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
}
.icon-pppoe::after {
  left: 7px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 4px 7px 0 -2px currentColor;
}
.icon-logs::before,
.icon-help::before {
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.icon-logs::after,
.icon-help::after {
  left: 9px;
  top: 8px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}
.icon-settings::before {
  content: "⚙";
  inset: 0;
  font-size: 23px;
  line-height: 24px;
  text-align: center;
}
.icon-billing::before {
  left: 2px;
  right: 2px;
  top: 5px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.icon-billing::after {
  left: 4px;
  right: 4px;
  top: 9px;
  border-top: 2px solid currentColor;
}
.nav-item b {
  background: #242a38;
  color: #aeb6c8;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
}
.nav-item b.live-dot { background: #17382e; color: var(--green); }
.billing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber);
  margin-left: auto;
}
.setup-card {
  margin: 18px 2px 0;
  padding: 14px;
  border: 1px solid #2a3143;
  border-radius: 14px;
  background: linear-gradient(145deg, #111827, #101420);
}
.setup-card span {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 7px;
  margin-bottom: 10px;
}
.setup-card strong { display: block; font-size: 13px; }
.setup-card p { margin: 6px 0 0; color: #788399; font-size: 12px; line-height: 1.45; }
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #222837;
  padding-top: 16px;
}
.profile { display: flex; align-items: center; gap: 11px; padding: 4px 4px 14px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #23283b;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 13px;
}
.profile div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.profile strong { font-size: 13px; }
.profile span { color: #747f93; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.logout {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #2b3345;
  background: #10141d;
  color: #9ea8bb;
  font-weight: 700;
}

.main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  height: 70px;
  border-bottom: 1px solid #222837;
  background: rgba(8, 11, 18, .88);
  backdrop-filter: blur(16px);
  z-index: 20;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.topbar::-webkit-scrollbar { height: 6px; }
.topbar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.top-left { display: flex; align-items: center; gap: 13px; }
.top-left p { margin: 0 0 3px; color: #697386; font-size: 12px; }
.top-left h1 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 23px;
}
.top-left, .top-actions { flex: 0 0 auto; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 70vw;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.top-actions::-webkit-scrollbar { height: 5px; }
.top-actions::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.top-actions > * { flex: 0 0 auto; }
.sms-button, .portal-preview, .router-select {
  height: 38px;
  border: 1px solid #303858;
  background: #121722;
  color: #d7dcf0;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 800;
}
.sms-button {
  color: var(--accent-2);
  border-color: rgba(0, 229, 255, .38);
  background: rgba(0, 71, 161, .18);
}
.sms-button span {
  margin-left: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
}
.portal-preview { color: var(--accent-2); }
.router-select { min-width: 180px; }
.demo-banner {
  margin: 22px 34px 0;
  border: 1px solid #31385a;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 71, 161, .28), rgba(0, 229, 255, .07));
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-banner span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}
.demo-banner p { flex: 1; margin: 0; color: #aab2c3; font-size: 13px; }
.demo-banner button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  height: 34px;
  padding: 0 13px;
  font-weight: 800;
}
.content {
  padding: 30px 34px 54px;
  max-width: 1660px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}
.page-head h2 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -.7px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.primary-button, .secondary-button, .mini-button {
  border: 0;
  height: 40px;
  border-radius: 10px;
  padding: 0 15px;
  font-weight: 800;
}
.primary-button {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #fff;
  box-shadow: 0 14px 34px rgba(109, 93, 252, .24);
}
.secondary-button, .mini-button {
  border: 1px solid #2d3446;
  background: #121722;
  color: #d8deeb;
}
.mini-button { height: 31px; padding: 0 10px; margin-right: 6px; font-size: 12px; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font-weight: 800;
}
.sms-card {
  border: 1px solid rgba(0, 229, 255, .35);
  background: linear-gradient(90deg, rgba(0, 71, 161, .32), rgba(0, 229, 255, .08));
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.sms-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 26px;
}
.sms-card div:nth-child(2) { flex: 1; }
.sms-card strong { font-size: 20px; }
.sms-card p { margin: 6px 0 0; color: #a6aec7; }
.sms-card button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  height: 38px;
  padding: 0 16px;
  font-weight: 900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  min-height: 182px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, #10141d, #0d1119);
  padding: 28px 30px;
}
.stat-card.featured {
  border-color: rgba(0, 229, 255, .32);
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, .18), transparent 38%), #111820;
}
.stat-card span {
  display: block;
  color: #7080a0;
  letter-spacing: 1.7px;
  font-size: 13px;
  font-weight: 800;
}
.stat-card strong {
  display: block;
  margin: 13px 0 12px;
  font-size: 42px;
  letter-spacing: -1.4px;
}
.stat-card small { color: #74809a; font-size: 22px; }
.stat-card p { margin: 0; color: #7d8798; }
.green-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  box-shadow: 0 0 12px var(--green);
}

.dashboard-grid, .lower-grid, .designer-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.dashboard-grid { grid-template-columns: minmax(0, 1.7fr) minmax(340px, .8fr); }
.lower-grid { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); }
.designer-grid { grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); }
.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0e121a;
  overflow: hidden;
}
.panel-head {
  padding: 22px 26px;
  border-bottom: 1px solid #222837;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-head h3 { margin: 0 0 5px; font-size: 18px; }
.panel-head p { margin: 0; color: #7d8798; font-size: 13px; }
.period-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: #0a0d13;
}
.period-tabs button {
  border: 0;
  background: transparent;
  color: #7b8496;
  border-radius: 7px;
  padding: 7px 11px;
  font-weight: 800;
}
.period-tabs button.active { background: var(--accent); color: #fff; }
.chart-summary {
  display: flex;
  justify-content: space-between;
  padding: 18px 26px 6px;
  color: var(--green);
  font-weight: 800;
}
.chart-summary span { color: #7c879c; }
.chart-wrap {
  height: 280px;
  position: relative;
  padding: 22px 34px 38px 72px;
}
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.grid-lines line { stroke: #222837; stroke-dasharray: 7 8; }
.area { fill: url(#chartFill); }
.main-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(113, 113, 255, .65));
}
.y-axis {
  position: absolute;
  left: 28px;
  top: 22px;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #62708a;
  font-weight: 800;
}
.x-axis {
  position: absolute;
  left: 72px;
  right: 34px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  color: #62708a;
  font-size: 12px;
}
.router-health-list { padding: 12px 22px; }
.health-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #1f2532;
}
.health-row:last-child { border-bottom: 0; }
.health-row div { flex: 1; }
.health-row strong { display: block; font-size: 14px; }
.health-row p { margin: 4px 0 0; color: #798398; font-size: 12px; }
.router-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #566072;
}
.router-dot.online { background: var(--green); box-shadow: 0 0 16px var(--green); }
.router-dot.offline { background: var(--red); }
.system-status { border-top: 1px solid #222837; padding: 20px 24px; }
.system-status h3 { margin: 0 0 12px; }
.system-status p { display: flex; justify-content: space-between; margin: 10px 0; color: #8c96a8; }
.system-status b.ok { color: var(--green); }
.system-status b.warn { color: var(--amber); }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th {
  text-align: left;
  padding: 13px 24px;
  color: #64718a;
  font-size: 11px;
  letter-spacing: .9px;
  text-transform: uppercase;
  border-bottom: 1px solid #222837;
}
td {
  padding: 16px 24px;
  border-bottom: 1px solid #1d2330;
  color: #c3c9d5;
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: #747f93; }
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.status.online, .status.active, .status.completed, .status.unused {
  color: var(--green);
  background: rgba(43, 221, 145, .12);
}
.status.offline, .status.failed, .status.expired {
  color: var(--red);
  background: rgba(255, 100, 124, .12);
}
.status.pending, .status.used {
  color: var(--amber);
  background: rgba(255, 185, 75, .12);
}
.package-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #202736;
}
.package-row span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 71, 161, .28);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.package-row div { flex: 1; }
.package-row strong, .package-row small { display: block; }
.package-row small { color: #7d8798; margin-top: 3px; }
.package-row b { color: #fff; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.info-grid.wide { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 24px; }
.info-card h3 { margin: 0 0 8px; }
.info-card p { margin: 0; color: #8791a4; line-height: 1.55; }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.mini-stats article {
  border: 1px solid var(--border);
  background: #0e121a;
  border-radius: 14px;
  padding: 18px 20px;
}
.mini-stats span { display: block; color: #73809a; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.mini-stats b { display: block; margin-top: 8px; font-size: 26px; }
.search-row {
  padding: 18px 24px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #222837;
}
.search-row input, .form-grid input, .form-grid select {
  width: 100%;
  height: 42px;
  border: 1px solid #2b3345;
  background: #0b0f17;
  color: #fff;
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
}
.search-row input:focus, .form-grid input:focus, .form-grid select:focus { border-color: var(--accent); }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.integration-form, .integration-guide {
  min-width: 0;
}
.team-access-panel {
  grid-column: 1 / -1;
}
.team-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 26px;
}
.team-access-card {
  border: 1px solid #2b3345;
  background: #0b0f17;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.team-access-card h4 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 17px;
}
.team-access-card label {
  color: #dce1ec;
  font-weight: 800;
  font-size: 13px;
}
.team-access-card input,
.team-access-card select {
  width: 100%;
  height: 42px;
  border: 1px solid #2b3345;
  background: #080c13;
  color: #fff;
  border-radius: 10px;
  padding: 0 12px;
  margin-top: 8px;
  outline: 0;
}
.team-access-card input:focus,
.team-access-card select:focus {
  border-color: var(--accent);
}
.team-access-card .deploy-wide {
  width: 100%;
  margin: 6px 0 0;
}
.muted-copy {
  color: #8791a4;
  line-height: 1.55;
}
.integration-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(0, 229, 255, .1);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.integration-pill.sandbox {
  background: rgba(255, 185, 75, .12);
  color: var(--amber);
}
.integration-pill.draft {
  background: rgba(138, 148, 168, .14);
  color: #b6bfce;
}
.integration-pill.managed {
  background: rgba(43, 221, 145, .12);
  color: var(--green);
}
.payment-card {
  grid-column: 1 / -1;
}
.payment-approval-panel {
  grid-column: 1 / -1;
}
.approval-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 26px 10px;
}
.approval-summary span {
  border: 1px solid #293143;
  background: #0b0f17;
  border-radius: 12px;
  padding: 14px;
  color: #dce1ec;
  font-weight: 800;
}
.approval-summary strong {
  display: block;
  margin-bottom: 7px;
  color: #73809a;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px 24px;
}
.approval-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.approval-note {
  padding: 0 26px 24px;
  margin: -8px 0 0;
}
.payment-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 26px 26px;
}
.payment-mode {
  position: relative;
  min-height: 166px;
  border: 1px solid #2b3345;
  border-radius: 14px;
  background: #0b0f17;
  padding: 18px;
  display: grid;
  gap: 9px;
}
.payment-mode.selected {
  border-color: rgba(0, 229, 255, .5);
  background: linear-gradient(145deg, rgba(0, 71, 161, .22), rgba(0, 229, 255, .06));
}
.payment-mode input {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.payment-mode strong {
  max-width: calc(100% - 34px);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
}
.payment-mode span {
  color: #8791a4;
  line-height: 1.5;
}
.payment-mode em {
  align-self: end;
  color: var(--accent-2);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.integration-form .form-grid {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .wide-field {
  grid-column: 1 / -1;
}
.form-grid textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #2b3345;
  background: #0b0f17;
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  margin-top: 8px;
  outline: 0;
  line-height: 1.45;
}
.form-grid textarea:focus { border-color: var(--accent); }
.check-list {
  list-style: none;
  margin: 0;
  padding: 18px 24px 24px;
}
.check-list li {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #1f2532;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li > span {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(0, 71, 161, .24);
  color: var(--accent-2);
  font-weight: 900;
}
.check-list strong { display: block; margin-bottom: 4px; }
.check-list p { margin: 0; color: #8791a4; line-height: 1.5; }
.env-list {
  display: grid;
  gap: 10px;
  padding: 24px 26px 26px;
}
.env-list code {
  display: block;
  white-space: normal;
  word-break: break-all;
  border: 1px solid #263143;
  border-radius: 10px;
  background: #0b0f17;
  padding: 12px;
}
.router-console-card {
  grid-column: 1 / -1;
}
.console-body {
  padding: 24px 26px 26px;
}
.claim-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.claim-row > div {
  border: 1px solid #263143;
  border-radius: 12px;
  background: #0b0f17;
  padding: 14px 16px;
}
.claim-row span {
  display: block;
  color: #73809a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.claim-row strong {
  display: block;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-2);
}
.waiting-status {
  color: var(--amber) !important;
}
.command-box {
  border: 1px solid rgba(0, 229, 255, .26);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 229, 255, .06), transparent),
    #05080c;
  overflow: hidden;
}
.command-box pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
}
.command-box code {
  color: #dffcff;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}
.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.console-note {
  margin: 14px 0 0;
  color: #8791a4;
  line-height: 1.5;
  font-size: 13px;
}

.designer-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.mini-phone {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, .14), transparent 45%);
}
.mini-phone-screen {
  width: min(310px, 100%);
  min-height: 520px;
  border: 1px solid #363f54;
  border-radius: 32px;
  background: linear-gradient(160deg, #0b0d18, #090c12);
  padding: 32px 22px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.38);
}
.mini-logo {
  margin: 0 auto 18px;
  width: 86px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}
.mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.mini-phone-screen h3 { margin: 0 0 8px; font-size: 24px; }
.mini-phone-screen p { color: #8791a4; line-height: 1.5; }
.mini-plan {
  margin-top: 12px;
  border: 1px solid #2d3446;
  background: #111723;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
}
.mini-phone-screen button {
  width: 100%;
  height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}
.designer-form .form-grid {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid label {
  color: #dce1ec;
  font-weight: 800;
  font-size: 13px;
}
.form-grid label small {
  display: block;
  color: #7d8798;
  margin-top: 7px;
  font-weight: 500;
}
.form-grid input, .form-grid select, .color-row { margin-top: 8px; }
.upload-button {
  display: block;
  margin-top: 8px;
  height: 42px;
  border: 1px dashed #454e65;
  background: #101723;
  color: var(--accent-2);
  border-radius: 10px;
  width: 100%;
  font-weight: 900;
}
.color-row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; }
.color-row input[type="color"] { padding: 4px; }
.switch-row {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #293143;
  border-radius: 12px;
  padding: 14px;
  background: #10151f;
}
.switch-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.deploy-wide {
  margin: 0 26px 26px;
  width: calc(100% - 52px);
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #fff;
  font-weight: 900;
}
.deploy-wide + .deploy-wide { margin-top: -16px; }
.secondary-deploy {
  border: 1px solid #2b3450;
  background: #111827;
  color: #cfd8ff;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: #080a10;
}
.portal-modal.open { display: flex; }
.portal-toolbar {
  height: 64px;
  flex: none;
  border-bottom: 1px solid #272e3b;
  background: #10141d;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.portal-toolbar::-webkit-scrollbar { height: 6px; }
.portal-toolbar::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.portal-toolbar > div:first-child { display: flex; align-items: center; gap: 13px; }
.portal-toolbar > * { min-width: max-content; }
.live-pill {
  border: 1px solid #32394a;
  border-radius: 999px;
  color: #98a1b3;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
}
.live-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}
.device-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #090c12;
  border: 1px solid #282f3e;
  border-radius: 10px;
}
.device-switcher button {
  border: 0;
  background: transparent;
  color: #808aa0;
  border-radius: 7px;
  padding: 7px 11px;
  font-weight: 800;
}
.device-switcher button.active { background: rgba(0, 71, 161, .35); color: var(--accent-2); }
.close-portal {
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid #2c3344;
  background: #171c26;
  color: #a7b0c1;
  border-radius: 10px;
  font-size: 22px;
}
.portal-stage {
  flex: 1;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 20%, rgba(0, 71, 161, .25), #090c12 50%);
}
.portal-device {
  height: min(812px, calc(100vh - 116px));
  border: 1px solid #2d3547;
  background: #080b13;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.7);
  transition: width .25s ease, border-radius .25s ease;
}
.portal-device.mobile { width: 390px; border-radius: 34px; }
.portal-device.tablet { width: 720px; border-radius: 24px; }
.portal-device.desktop { width: min(1100px, calc(100vw - 70px)); border-radius: 14px; }
.portal-screen {
  height: 100%;
  overflow: auto;
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, #0b0d18, #080b12 55%, #0c1018);
}
.portal-screen.light-theme {
  background: linear-gradient(160deg, #f9fbff, #eef2ff);
  color: #111827;
}
.portal-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}
.glow-one { width: 270px; height: 270px; background: color-mix(in srgb, var(--accent), transparent 72%); top: -100px; right: -100px; }
.glow-two { width: 220px; height: 220px; background: rgba(49, 200, 232, .12); top: 390px; left: -130px; }
.portal-header {
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.portal-brand { padding: 0; font-size: 17px; }
.portal-brand .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
.secure { color: #7b8496; font-size: 11px; font-weight: 800; }
.portal-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 25px;
  text-align: center;
}
.wifi-orb {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid color-mix(in srgb, var(--accent), white 18%);
  border-radius: 22px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent), #111827 70%), #15152b);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 45px color-mix(in srgb, var(--accent), transparent 70%);
}
.wifi-orb span { font-size: 36px; color: #fff; }
.wifi-orb i { position: absolute; inset: -8px; border: 1px solid color-mix(in srgb, var(--accent), transparent 70%); border-radius: 28px; }
.welcome-tag {
  color: var(--accent-2);
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 900;
}
.portal-content h1 {
  margin: 11px 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -1.5px;
}
.portal-content h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-2), #5cd9ec);
  background-clip: text;
}
.portal-lead { color: #8993a6; line-height: 1.55; margin: 0 auto 22px; max-width: 380px; }
.portal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #0d111a;
  border: 1px solid #222938;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 15px;
}
.portal-tabs button {
  border: 0;
  background: transparent;
  color: #7f899d;
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 900;
}
.portal-tabs button.active { background: rgba(0, 71, 161, .35); color: var(--accent-2); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.portal-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}
.portal-package {
  min-height: 124px;
  border: 1px solid #293143;
  border-radius: 13px;
  background: #10151f;
  color: #fff;
  position: relative;
  padding: 19px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portal-package.selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent), #10151f 78%), #111723);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent), transparent 84%);
}
.popular-label {
  position: absolute;
  top: -8px;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.portal-package strong { font-size: 13px; }
.portal-package b { margin: 8px 0 5px; font-size: 22px; }
.portal-package small { color: var(--accent-2); font-size: 10px; }
.portal-package > span:not(.popular-label) { color: #798399; font-size: 10px; }
.portal-package i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}
.portal-package.selected i { display: grid; }
.phone-label {
  display: block;
  text-align: left;
  color: #a7afbd;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}
.phone-input, .voucher-input {
  height: 48px;
  border: 1px solid #2a3140;
  border-radius: 12px;
  background: #0c1018;
  display: flex;
  align-items: center;
  margin-bottom: 11px;
}
.phone-input span {
  padding: 0 12px;
  border-right: 1px solid #2a3140;
  color: #cbd2df;
  font-weight: 800;
}
.phone-input input, .voucher-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  outline: 0;
  padding: 0 13px;
}
.connect-button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
}
.payment-note { color: #6f7a8e; font-size: 12px; margin: 10px 0 0; }
.device-help {
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 20px;
  background: #0f141e;
  text-align: left;
}
.device-help strong { font-size: 18px; }
.device-help p { color: #8c96a8; line-height: 1.55; }
.portal-footer {
  height: 50px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #6f7a8e;
  font-size: 12px;
}
.portal-footer strong { color: var(--accent-2); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  border: 1px solid #303849;
  border-radius: 14px;
  background: #151b25;
  padding: 14px 17px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  transform: translateY(120px);
  opacity: 0;
  transition: .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(43, 221, 145, .16);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.toast strong { display: block; font-size: 13px; }
.toast p { margin: 3px 0 0; color: #8993a6; font-size: 12px; }

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.package-editor-panel {
  margin-bottom: 20px;
}

.package-editor-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.client-admin-panel,
.integration-test-log {
  grid-column: 1 / -1;
}

.test-log-load-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid #293246;
  border-radius: 12px;
  background: rgba(15, 21, 34, .8);
}

.test-log-load-state > span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.test-log-load-state strong,
.test-log-load-state small {
  display: block;
}

.test-log-load-state small {
  margin-top: 2px;
  color: #8f9ab0;
}

.test-log-load-state.error {
  border-color: rgba(255, 105, 105, .42);
  background: rgba(115, 29, 43, .15);
}

.loading-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(0, 207, 255, .22);
  border-top-color: #00cfff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.subscription-summary {
  margin-bottom: 20px;
}

.subscription-summary.attention,
.subscription-lock .panel {
  border-color: rgba(0, 207, 255, .4);
  background: linear-gradient(145deg, rgba(0, 71, 161, .16), rgba(12, 17, 28, .96));
}

.subscription-lock {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
  padding: 30px;
}

.subscription-lock > .panel {
  width: min(760px, 100%);
  padding: 32px;
  text-align: center;
}

.subscription-lock-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #0047a1, #00cfff);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.subscription-lock h2 {
  margin: 5px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(25px, 4vw, 38px);
}

.subscription-lock > .panel > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 22px;
  color: #9ca7ba;
  line-height: 1.6;
}

.subscription-lock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.training-case-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.training-case-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #273147;
  border-radius: 12px;
  background: rgba(10, 15, 25, .64);
}

.training-case-list strong,
.training-case-list small {
  display: block;
}

.training-case-list small {
  margin-top: 3px;
  color: #8e99ad;
}

.client-business-line {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
}

.client-business-line:last-child {
  margin-bottom: 0;
}

.client-business-line .mini-button {
  width: max-content;
  margin-top: 4px;
}

.production-warning {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 171, 64, .35);
  border-radius: 12px;
  background: rgba(255, 171, 64, .08);
  color: #d9a85e;
}

.production-warning strong,
.production-warning span {
  display: block;
}

.production-warning strong {
  margin-bottom: 4px;
  color: #ffc36b;
}

.production-warning span {
  font-size: 12px;
  line-height: 1.5;
}

.empty-state {
  padding: 38px 20px;
  border: 1px dashed #303849;
  border-radius: 14px;
  text-align: center;
  color: #8c96aa;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: #f5f7fb;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
}

.reconciliation-panel {
  margin-bottom: 24px;
}

.reconciliation-panel .reconciliation-stats {
  padding: 20px 24px 0;
}

.reconciliation-panel .reconciliation-stats article {
  background: #111722;
}

.reconciliation-panel .maintenance-time {
  font-size: 14px;
  line-height: 1.45;
}

.reconciliation-actions {
  white-space: nowrap;
}

.compact-button,
.quiet-button.compact-button {
  min-width: 64px;
  height: 31px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.quiet-button {
  border: 0;
  background: transparent;
  color: #8994a8;
}

.empty-operational-state,
.secure-configuration-note {
  margin: 20px 24px 24px;
  padding: 20px;
  border: 1px dashed #303849;
  border-radius: 12px;
  color: #8791a4;
}

.empty-operational-state strong,
.secure-configuration-note strong {
  color: #edf2fb;
}

.empty-operational-state p,
.secure-configuration-note p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.auth-form-intro {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 181, 255, .3);
  border-radius: 12px;
  background: rgba(0, 71, 161, .12);
}

.auth-form-intro strong { color: #f4f7fc; }
.auth-form-intro span { color: #9ba6b9; font-size: 13px; line-height: 1.5; }

.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.settings-category-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0e121a;
}

.settings-category-nav button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #c8d0de;
  text-align: left;
}

.settings-category-nav button span {
  color: #707c91;
  font-size: 11px;
}

.settings-category-nav button.active {
  border-color: rgba(0, 181, 255, .35);
  background: linear-gradient(90deg, rgba(0, 71, 161, .28), rgba(0, 181, 255, .08));
  color: #fff;
}

.settings-category-content {
  min-width: 0;
}

.settings-action-bar {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #2b374a;
  border-radius: 12px;
  background: rgba(11, 16, 23, .96);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.settings-action-bar label { display:grid; flex:1; gap:4px; color:var(--muted); font-size:10px; font-weight:800; }
.settings-action-bar input { width:100%; min-height:38px; border:1px solid #344258; border-radius:9px; background:#101722; color:#fff; padding:8px 11px; }
.settings-action-bar .hidden { display:none; }
.settings-unsaved { color:#7cdba8; font-size:11px; white-space:nowrap; }
.settings-unsaved.active { color:#ffc36a; }
.settings-subnav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.settings-subnav button { display:grid; gap:3px; padding:11px 12px; border:1px solid var(--border); border-radius:10px; background:#0e121a; color:var(--text); text-align:left; cursor:pointer; }
.settings-subnav button span { color:var(--muted); font-size:10px; }
.settings-subnav button.active { border-color:rgba(0,181,255,.46); background:rgba(0,181,255,.09); }
.settings-advanced { border:1px solid #2d394c; border-radius:10px; padding:11px 12px; background:rgba(255,255,255,.018); }
.settings-advanced summary { cursor:pointer; color:#d7e3f2; font-size:12px; font-weight:800; }
.settings-advanced .form-grid { margin-top:12px; }
.settings-search-hidden { display:none!important; }

.settings-category-content .integration-grid {
  margin-top: 0;
}

.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-overview-card {
  display: grid;
  gap: 7px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0e121a;
  color: #eef3fb;
  text-align: left;
}

.settings-overview-card span { color: #8792a6; line-height: 1.45; }
.settings-overview-card em { color: var(--cyan); font-size: 12px; font-style: normal; font-weight: 800; }

.router-authorization-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #293142;
  border-radius: 10px;
  background: #0b0f16;
}

.router-authorization-list > span {
  color: #8390a5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.router-authorization-option,
.authorization-confirmation {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 10px;
  border: 1px solid #252d3d;
  border-radius: 9px;
  background: #10151f;
}

.router-authorization-option input,
.authorization-confirmation input {
  width: auto !important;
  margin-top: 3px;
}

.router-authorization-option span { display: grid; gap: 2px; }
.router-authorization-option small { color: #758197; }
.authorization-confirmation { grid-column: 1 / -1; color: #c9d2e2; line-height: 1.45; }

.action-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 12, .78);
  backdrop-filter: blur(8px);
}

.action-dialog {
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid #2d3b50;
  border-radius: 16px;
  background: #0c121b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .65);
}

.action-dialog h3 { margin: 5px 0 8px; color: #f5f8fc; }
.action-dialog p { margin: 0; color: #9ca9bd; line-height: 1.55; }
.action-dialog label { display: grid; gap: 7px; color: #c9d2e2; font-size: 12px; font-weight: 800; }
.action-dialog input { width: 100%; }
.action-dialog-buttons { display: flex; justify-content: flex-end; gap: 9px; }
.action-dialog .danger-button { min-height: 38px; padding: 8px 14px; border: 1px solid #8a3640; border-radius: 9px; background: #6d222c; color: #fff; font-weight: 800; cursor: pointer; }

.settings-provider-list {
  display: grid;
  gap: 10px;
  padding: 20px 24px 24px;
}

.settings-provider-list div {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid #252d3d;
  border-radius: 10px;
  background: #10151f;
}

.settings-provider-list span { color: #7f8ba0; font-size: 12px; }

@media (max-width: 1180px) {
  .stat-grid, .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .lower-grid, .designer-grid, .integration-grid, .team-access-grid, .approval-summary, .info-grid, .info-grid.wide { grid-template-columns: 1fr; }
  .payment-mode-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-category-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .auth-screen { padding: 18px; }
  .auth-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "tabs"
      "form";
    padding: 22px;
  }
  :root { --sidebar-width: 260px; }
  .sidebar { transform: translateX(-100%); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 25px 0 70px rgba(0,0,0,.7); }
  .main { margin-left: 0; width: 100%; }
  .menu-toggle { display: block; }
  .topbar { padding: 0 16px; }
  .top-left p { display: none; }
  .top-actions .sms-button, .top-actions .router-select { display: none; }
  .demo-banner { margin: 16px 16px 0; align-items: flex-start; flex-direction: column; }
  .content { padding: 24px 16px 44px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .hero-actions { justify-content: flex-start; }
  .sms-card { align-items: flex-start; flex-direction: column; padding: 20px; }
  .designer-form .form-grid { grid-template-columns: 1fr; }
  .integration-form .form-grid { grid-template-columns: 1fr; }
  .package-editor-form { grid-template-columns: 1fr; }
  .package-editor-actions { grid-column: auto; }
  .settings-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-overview-grid { grid-template-columns: 1fr; }
  .switch-row { grid-column: auto; }
  .portal-toolbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .portal-toolbar > div:first-child strong, .device-switcher { display: none; }
  .portal-stage { padding: 0; }
  .portal-device.mobile, .portal-device.tablet, .portal-device.desktop {
    width: 100%;
    height: calc(100vh - 64px);
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 540px) {
  .stat-grid, .mini-stats { grid-template-columns: 1fr; }
  .claim-row { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 24px; }
  .portal-preview { width: 40px; overflow: hidden; padding: 0; }
  .portal-packages { grid-template-columns: 1fr; }
  .portal-content h1 { font-size: 30px; }
  .chart-summary, .x-axis { display: none; }
  .chart-wrap { padding-left: 44px; }
  .settings-category-nav { grid-template-columns: 1fr; }
}

.remember-login { display:flex!important; align-items:center; gap:9px; font-size:13px; color:#aeb8ca; }
.remember-login input { width:16px!important; height:16px; margin:0; }
.account-security-hub { grid-column:1/-1; }
.account-security-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0 24px; }
.security-card { display:grid; align-content:start; gap:12px; padding:18px; border:1px solid #263041; border-radius:14px; background:#0d121a; }
.security-card h4 { margin:0 0 2px; color:#f8fafc; }
.security-card label { display:grid; gap:6px; color:#aeb8ca; font-size:12px; font-weight:700; }
.security-card input,.security-card select { width:100%; }
.security-verification-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.security-status-list { display:grid; gap:8px; margin-top:8px; }
.security-status-list span { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-radius:8px; background:#111925; color:#9eabc0; font-size:12px; }
.security-status-list strong { color:#e6edf7; }
.account-session-heading { margin-top:8px; }
.team-row-actions { display:flex; flex-wrap:wrap; gap:6px; }
.mini-button.danger { color:#ff9e9e; border-color:#6d3037; }
.help-contact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.help-contact-card>span { color:var(--cyan); font-size:11px; font-weight:800; letter-spacing:.12em; }
.help-contact-card h3 { margin:10px 0 8px; overflow-wrap:anywhere; }
.help-contact-card p { color:#9eabc0; }
.help-contact-card div { display:flex; flex-wrap:wrap; gap:8px; }
.help-contact-card a,.help-contact-card button { display:inline-flex; align-items:center; min-height:36px; padding:8px 12px; border:1px solid #2e3a4d; border-radius:9px; background:#111925; color:#e6edf7; text-decoration:none; cursor:pointer; }
.support-chat-launcher { position:fixed; right:22px; bottom:22px; z-index:1200; width:54px; height:54px; border:1px solid #00b5ff; border-radius:50%; background:linear-gradient(145deg,#0047a1,#00b5ff); color:#fff; box-shadow:0 14px 38px rgba(0,71,161,.45); cursor:pointer; }
.support-chat-launcher svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.support-chat { position:fixed; right:22px; bottom:88px; z-index:1201; display:none; width:min(390px,calc(100vw - 28px)); max-height:min(680px,calc(100vh - 110px)); overflow:hidden; border:1px solid #2b3950; border-radius:18px; background:#0b1017; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.support-chat.open { display:flex; flex-direction:column; }
.support-chat>header { display:flex; align-items:center; justify-content:space-between; padding:15px 16px; background:linear-gradient(120deg,#05224c,#073a54); }
.support-chat>header div { display:grid; gap:3px; }
.support-chat>header span { color:#a9bad0; font-size:11px; }
.support-chat>header button { border:0; background:transparent; color:#fff; font-size:23px; cursor:pointer; }
.support-chat-messages { display:flex; flex-direction:column; gap:9px; min-height:180px; padding:14px; overflow-y:auto; }
.support-chat-message { max-width:88%; padding:10px 12px; border-radius:12px; color:#dbe5f2; font-size:13px; line-height:1.45; }
.support-chat-message.bot { align-self:flex-start; background:#152033; }
.support-chat-message.user { align-self:flex-end; background:#0047a1; }
.support-chat-input { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px 14px; border-top:1px solid #202a39; }
.support-chat-input input { width:100%; border:1px solid #2b374a; border-radius:9px; background:#111925; color:#fff; padding:10px; }
.support-chat-input button { border:0; border-radius:9px; background:#0068d9; color:#fff; font-weight:800; padding:9px 13px; cursor:pointer; }
.support-chat-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 14px 13px; }
.support-chat-actions.hidden,.support-chat-input.hidden { display:none; }
.support-chat-actions .hidden { display:none; }
.support-chat-actions button,.support-chat-actions a { flex:1 1 42%; padding:9px 10px; border:1px solid #2c3a50; border-radius:9px; background:#101824; color:#dce7f5; text-align:center; text-decoration:none; font-size:12px; cursor:pointer; }
.support-chat-choices { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.support-chat-choices button { border:1px solid rgba(0,181,255,.48); border-radius:999px; background:rgba(0,181,255,.09); color:#eaf8ff; padding:7px 11px; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.support-chat-choices button:hover { border-color:var(--cyan); background:rgba(0,181,255,.18); }
.support-chat-choices button:disabled { opacity:.48; cursor:default; }
.support-topic-label { display:block; margin-bottom:6px; color:var(--cyan); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.support-feedback { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:9px; padding-top:8px; border-top:1px solid rgba(255,255,255,.09); color:#94a4ba; font-size:10px; }
.support-feedback button { border:1px solid #35455c; border-radius:999px; background:transparent; color:#cad7e7; padding:4px 8px; cursor:pointer; }
.support-feedback button:disabled { opacity:.5; cursor:default; }
.support-feedback em { color:#7cdba8; font-style:normal; }
.nav-group-label { padding:17px 15px 6px; color:#687386; font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.nav-group-label:first-child { padding-top:4px; }
.nav-item.permission-hidden,.nav-group-label.permission-hidden { display:none; }
.filter-tabs { display:flex; gap:7px; flex-wrap:wrap; margin:0 0 16px; }
.filter-tabs button { border:1px solid var(--border); background:transparent; color:var(--muted); border-radius:999px; padding:8px 12px; cursor:pointer; font:inherit; font-size:12px; font-weight:700; }
.filter-tabs button.active { background:rgba(0,181,255,.12); border-color:rgba(0,181,255,.45); color:var(--cyan); }
.log-detail { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.span-two { grid-column:1 / -1; }
.support-chat-message.support { background:rgba(0,181,255,.12); border:1px solid rgba(0,181,255,.28); }
.support-chat-message.system { align-self:center; max-width:96%; background:rgba(148,163,184,.09); border:1px dashed rgba(148,163,184,.35); color:#b8c6d8; text-align:center; font-size:11px; }
.support-chat-ticket { margin:10px 0 0; border:1px solid rgba(0,181,255,.35); color:var(--cyan); border-radius:10px; padding:10px 12px; font-size:12px; font-weight:800; }
.ticket-assignment-label { display:grid; gap:5px; color:#9fb0c7; font-size:11px; }
.ticket-assignment-label select { min-width:220px; max-width:100%; border:1px solid #2b374a; border-radius:7px; background:#111925; color:#fff; padding:7px; }
.hotspot-router-group { border-left:3px solid rgba(0,181,255,.45); }
.action-disclosure,.support-workspace-disclosure,.expense-card { border:1px solid var(--border); border-radius:12px; background:#0e131c; }
.action-disclosure { margin-bottom:16px; padding:0!important; }
.action-disclosure>summary,.support-workspace-disclosure>summary,.expense-card>summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 17px; cursor:pointer; list-style:none; }
.action-disclosure>summary::-webkit-details-marker,.support-workspace-disclosure>summary::-webkit-details-marker,.expense-card>summary::-webkit-details-marker { display:none; }
.action-disclosure>summary span,.support-workspace-disclosure>summary small,.expense-card>summary small { display:block; margin-top:4px; color:var(--muted); font-size:11px; font-weight:500; }
.action-disclosure>form,.action-disclosure>.recurring-list { margin:0 16px 16px; padding-top:16px; border-top:1px solid var(--border); }
.compact-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
.support-workspace-disclosure { margin-bottom:16px; }
.support-workspace-disclosure>summary em { color:var(--cyan); font-size:11px; font-style:normal; font-weight:800; }
.support-workspace-disclosure .support-live-workspace { margin:0; padding:0 14px 14px; }
.ticket-action-menu { position:relative; }
.ticket-action-menu>summary { display:inline-flex; min-height:32px; align-items:center; border:1px solid #344258; border-radius:8px; padding:6px 10px; color:#dbe6f5; cursor:pointer; font-size:11px; font-weight:800; list-style:none; }
.ticket-action-menu>div { position:absolute; right:0; z-index:30; display:grid; gap:6px; min-width:170px; padding:9px; border:1px solid #354258; border-radius:10px; background:#101722; box-shadow:0 16px 34px rgba(0,0,0,.45); }
.ticket-action-menu .mini-button { width:100%; text-align:left; }
.expense-list { display:grid; gap:10px; margin-bottom:16px; }
.expense-card>summary { display:grid; grid-template-columns:minmax(0,1fr) auto auto; }
.expense-card>summary span { min-width:0; }
.expense-card>summary b { white-space:nowrap; }
.expense-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 17px 15px; }
.expense-detail-grid span { display:grid; gap:4px; padding:10px; border-radius:8px; background:#111925; color:#aeb8ca; font-size:12px; }
.expense-detail-grid strong { color:#e8eef7; font-size:10px; text-transform:uppercase; }
.expense-actions { padding:0 17px 16px; }
.recurring-list { display:grid; gap:8px; }
.recurring-list>div { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:11px; border:1px solid var(--border); border-radius:9px; background:#101722; }
.recurring-list small { display:block; margin-top:3px; color:var(--muted); }
.support-contact-intro { color:var(--muted); font-size:12px; line-height:1.5; }
.support-live-workspace { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(420px,1.4fr); gap:16px; margin-bottom:16px; }
.support-conversation-list { display:grid; gap:8px; max-height:640px; overflow:auto; }
.support-conversation-list button { text-align:left; display:grid; gap:5px; width:100%; border:1px solid var(--border); background:rgba(255,255,255,.02); color:var(--text); padding:12px; border-radius:10px; cursor:pointer; font:inherit; }
.support-conversation-list button.active { border-color:rgba(0,181,255,.55); background:rgba(0,181,255,.08); }
.support-conversation-list span,.support-conversation-list small { color:var(--muted); font-size:11px; }
.support-origin-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.support-origin-summary span { padding:10px; border:1px solid var(--border); border-radius:9px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.support-origin-summary strong { display:block; color:var(--text); margin-bottom:4px; }
.support-agent-messages { display:flex; flex-direction:column; gap:9px; max-height:420px; overflow:auto; padding:4px; }
.support-agent-message { max-width:86%; border:1px solid var(--border); border-radius:11px; padding:10px 12px; background:rgba(255,255,255,.025); }
.support-agent-message.user { align-self:flex-end; background:rgba(0,71,161,.16); }
.support-agent-message.support { align-self:flex-start; background:rgba(0,181,255,.09); }
.support-agent-message.internal { border-style:dashed; background:rgba(255,168,0,.08); }
.support-agent-message strong,.support-agent-message small { font-size:10px; color:var(--muted); }
.support-agent-message p { margin:5px 0; white-space:pre-wrap; line-height:1.5; }
.support-agent-reply { display:grid; gap:9px; border-top:1px solid var(--border); margin-top:14px; padding-top:14px; }
.support-agent-reply textarea { min-height:90px; }
.support-agent-reply label { color:var(--muted); font-size:11px; display:flex; align-items:center; gap:7px; }
.knowledge-editor,.knowledge-list details { border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:9px; }
.knowledge-editor summary,.knowledge-list summary { cursor:pointer; display:flex; justify-content:space-between; gap:12px; color:var(--text); }
.knowledge-list summary span { color:var(--muted); font-size:11px; }
.knowledge-list form,.knowledge-editor form { margin-top:14px; }

@media (max-width:1050px) {
  .account-security-grid,.help-contact-grid { grid-template-columns:1fr; }
  .support-live-workspace { grid-template-columns:1fr; }
  .settings-subnav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .compact-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:620px) {
  .support-chat-launcher { right:14px; bottom:14px; }
  .support-chat { right:14px; bottom:78px; }
  .security-verification-row { grid-template-columns:1fr; }
  .support-origin-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-action-bar { top:8px; align-items:stretch; flex-wrap:wrap; }
  .settings-action-bar label { flex-basis:100%; }
  .settings-subnav { grid-template-columns:1fr 1fr; }
  .compact-form,.expense-detail-grid { grid-template-columns:1fr; }
  .expense-card>summary,.recurring-list>div { grid-template-columns:1fr; align-items:start; }
  .ticket-action-menu>div { position:static; margin-top:6px; }
}
