
:root{
  --bg:#020713; --bg2:#061126; --card:rgba(9,20,44,.68); --card2:rgba(255,255,255,.045);
  --line:rgba(38,242,214,.18); --line2:rgba(255,255,255,.09);
  --text:#f6fbff; --muted:#aab7cc; --cyan:#19f6d2; --blue:#4d8dff; --violet:#b767ff; --yellow:#ffd34d;
  --shadow:0 24px 80px rgba(0,0,0,.42);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;background:
radial-gradient(circle at 75% 3%,rgba(25,246,210,.18),transparent 28%),
radial-gradient(circle at 12% 22%,rgba(77,141,255,.14),transparent 32%),
linear-gradient(180deg,#020713 0%,#040a18 45%,#020713 100%);z-index:-3}
body:after{content:"";position:fixed;inset:0;background-image:linear-gradient(rgba(25,246,210,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(25,246,210,.028) 1px,transparent 1px);background-size:90px 90px;mask-image:radial-gradient(circle at 60% 20%,#000 0%,transparent 72%);z-index:-2;pointer-events:none}
a{color:inherit}.container{width:min(1280px,calc(100% - 44px));margin:0 auto}.topbar{position:sticky;top:0;z-index:50;background:rgba(2,7,19,.72);backdrop-filter:blur(22px);border-bottom:1px solid rgba(255,255,255,.07)}
.navbar{height:82px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;text-decoration:none}.brand img{width:196px;height:auto}.nav{display:flex;align-items:center;gap:30px}.nav a{text-decoration:none;color:#eef7ff;font-size:14px;opacity:.88;position:relative}.nav a:hover,.nav a.active{color:var(--cyan);opacity:1}.nav a.active:after,.nav a:hover:after{content:"";position:absolute;left:0;right:0;bottom:-12px;height:2px;background:var(--cyan);box-shadow:0 0 14px var(--cyan)}.nav .login-pill{padding:12px 18px;border:1px solid var(--line);border-radius:12px;color:var(--cyan);box-shadow:inset 0 0 24px rgba(25,246,210,.045)}.menu{display:none;background:transparent;border:0;color:#fff;font-size:28px}
.hero{min-height:760px;position:relative;display:grid;align-items:center;padding:42px 0 24px;overflow:hidden}.hero-inner{position:relative;z-index:2}.hero-copy{width:min(520px,100%);padding-top:20px}.eyebrow{display:inline-flex;gap:10px;align-items:center;color:var(--cyan);font-weight:800;letter-spacing:.13em;text-transform:uppercase;font-size:12px;margin-bottom:14px}.eyebrow:before{content:"";width:8px;height:8px;border-radius:999px;background:var(--cyan);box-shadow:0 0 18px var(--cyan)}
h1{font-size:clamp(54px,7vw,86px);line-height:.95;margin:0 0 18px;letter-spacing:-.055em}.gradient{display:block;background:linear-gradient(90deg,var(--cyan),var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent}.lead{font-size:20px;line-height:1.42;color:#f4f8ff;margin:0 0 14px;font-weight:650}.muted{color:var(--muted);line-height:1.7}.actions{display:flex;gap:16px;flex-wrap:wrap;margin:30px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid rgba(255,255,255,.12);transition:.25s;cursor:pointer}.btn.primary{background:linear-gradient(135deg,#23f8d7,#0fbba4);color:#001410;box-shadow:0 0 34px rgba(25,246,210,.25)}.btn.secondary{background:rgba(255,255,255,.035);color:#fff}.btn.violet{border-color:rgba(183,103,255,.45);color:#dfb5ff}.btn:hover{transform:translateY(-2px);filter:brightness(1.12)}.hero-badges{display:flex;gap:28px;flex-wrap:wrap;margin-top:24px}.badge{display:flex;align-items:center;gap:10px;color:#eaf7ff;font-size:14px}.badge i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);color:var(--cyan);font-style:normal}
.hero-art{position:absolute;right:-4vw;top:60px;width:min(930px,64vw);height:560px;z-index:1;pointer-events:none}.earth{position:absolute;right:10px;top:20px;width:850px;height:470px;border-radius:50%;background:
radial-gradient(circle at 44% 40%,rgba(255,210,120,.72),transparent 6%),
radial-gradient(circle at 48% 45%,rgba(255,190,90,.55),transparent 5%),
radial-gradient(circle at 57% 34%,rgba(255,210,130,.65),transparent 4%),
radial-gradient(ellipse at 42% 55%,rgba(73,152,255,.75) 0%,rgba(16,90,170,.72) 24%,rgba(12,34,74,.95) 53%,rgba(2,7,19,0) 70%);filter:drop-shadow(0 0 70px rgba(77,141,255,.3));transform:rotate(-9deg);opacity:.96}.earth:before{content:"";position:absolute;inset:0;border-radius:50%;background:linear-gradient(110deg,transparent 0 36%,rgba(255,255,255,.28) 38%,transparent 42%),radial-gradient(circle at 56% 38%,transparent 0 36%,rgba(25,246,210,.22) 37%,transparent 70%);mix-blend-mode:screen}.network{position:absolute;inset:0}.network span{position:absolute;width:7px;height:7px;background:var(--cyan);border-radius:50%;box-shadow:0 0 20px var(--cyan)}.network svg{position:absolute;inset:0;overflow:visible}.pi-board{position:absolute;right:155px;bottom:65px;width:360px;height:190px;background:linear-gradient(145deg,#082b24,#064035);border:1px solid rgba(25,246,210,.5);border-radius:22px;box-shadow:0 35px 70px rgba(0,0,0,.55),0 0 44px rgba(25,246,210,.2);transform:perspective(780px) rotateX(52deg) rotateZ(-12deg);animation:float 5s ease-in-out infinite}.pi-board:before{content:"";position:absolute;inset:24px;border:1px solid rgba(255,255,255,.18);border-radius:14px}.pi-chip{position:absolute;left:125px;top:62px;width:82px;height:58px;background:#02140f;border:1px solid var(--cyan);border-radius:8px;box-shadow:0 0 22px rgba(25,246,210,.35)}.port{position:absolute;background:#cfd9e8;border-radius:6px;border:2px solid #6b7585}.p1{right:28px;top:40px;width:62px;height:42px}.p2{right:26px;top:92px;width:58px;height:48px}.p3{left:34px;bottom:36px;width:60px;height:30px}.section{padding:34px 0}.section-title{text-align:center;margin:0 auto 22px}.section-title h2{font-size:28px;margin:0 0 8px}.section-title:after{content:"";display:block;width:34px;height:2px;background:var(--cyan);margin:12px auto 0;box-shadow:0 0 14px var(--cyan)}.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.project-card{min-height:190px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:linear-gradient(145deg,rgba(13,31,68,.74),rgba(3,10,25,.72));box-shadow:var(--shadow);padding:28px 22px;transition:.28s}.project-card:before{content:"";position:absolute;inset:0;background-image:var(--img);background-size:cover;background-position:center;opacity:.32;transition:.35s}.project-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,7,19,.86),rgba(2,7,19,.42))}.project-card:hover{transform:translateY(-7px);border-color:var(--accent);box-shadow:0 24px 100px rgba(25,246,210,.12)}.project-card:hover:before{opacity:.44;transform:scale(1.05)}.project-card>*{position:relative;z-index:2}.icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:rgba(25,246,210,.13);border:1px solid var(--accent);color:var(--accent);font-size:25px;box-shadow:0 0 30px rgba(25,246,210,.14);margin-bottom:16px}.project-card h3{color:var(--accent);margin:0 0 8px}.project-card p{font-size:13px;line-height:1.55;color:#edf6ff;margin:0 0 18px}.learn{display:inline-flex;padding:10px 18px;border:1px solid var(--accent);border-radius:8px;text-decoration:none;color:var(--accent);font-size:13px;font-weight:800}
.what{padding-top:10px}.what-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.05)}.what-item{display:grid;grid-template-columns:54px 1fr;gap:14px;padding:24px;border-right:1px solid rgba(255,255,255,.08)}.what-item:last-child{border-right:0}.what-icon{font-size:32px;color:var(--cyan);filter:drop-shadow(0 0 14px rgba(25,246,210,.28))}.what-item h4{margin:0 0 8px;color:var(--cyan)}.what-item p{margin:0;color:#bec9dd;font-size:13px;line-height:1.55}.road-wrap{display:grid;grid-template-columns:1fr 340px;gap:16px}.roadmap{border:1px solid rgba(255,255,255,.09);border-radius:17px;background:rgba(8,18,42,.72);padding:26px;box-shadow:var(--shadow)}.road-title{text-align:center;margin:0 0 22px;font-size:22px}.road-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.road-col h4{margin:0 0 12px;color:var(--color)}.road-col ul{margin:0;padding-left:18px;color:#d5deef;font-size:13px;line-height:1.9}.vision-card{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:17px;padding:30px;background:#061126;box-shadow:var(--shadow);min-height:210px}.vision-card:before{content:"";position:absolute;inset:0;background:url('../assets/mountain-vision.svg') center/cover;opacity:.48}.vision-card>*{position:relative}.vision-card h3{font-size:26px;margin:0 0 10px}.stack{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;color:#dce7f6;padding:18px 0 28px}.stack b{color:#fff}.stack span{display:inline-flex;align-items:center;gap:8px}.footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.07);padding:24px 0 30px;color:#7f8ca5;font-size:13px}.socials{display:flex;gap:18px;color:#aab7cc}.page-hero{padding:88px 0 36px}.page-hero h1{max-width:920px}.wide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.info-card,.dash-card,.auth-card,.contact-card{border:1px solid rgba(255,255,255,.09);background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));border-radius:22px;padding:28px;box-shadow:var(--shadow)}.info-card h3,.dash-card h3{margin-top:0;color:var(--cyan)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:30px}.auth-card{width:min(460px,100%);background:rgba(8,18,42,.86);backdrop-filter:blur(24px)}.auth-logo{display:block;margin:0 auto 20px;width:210px}.auth-card h1{font-size:42px;margin:0 0 8px}.form{display:grid;gap:13px;margin-top:22px}input,textarea{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.055);color:white;padding:15px 16px;outline:none}textarea{min-height:130px}.tiny{font-size:12px;color:#8d9ab2;line-height:1.6}.dashboard-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;width:100%}.sidebar{border-right:1px solid rgba(255,255,255,.08);background:rgba(2,7,19,.78);padding:22px 16px;position:sticky;top:0;height:100vh}.sidebar img{width:170px;margin-bottom:28px}.side-link{display:flex;padding:12px 13px;border-radius:12px;text-decoration:none;color:#ccd8ea;margin-bottom:7px;font-size:14px}.side-link.active,.side-link:hover{background:rgba(25,246,210,.1);color:var(--cyan)}.dash-main{width:100%;display:flex;justify-content:center;align-items:flex-start;overflow-x:hidden;padding:0}.dash-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.dash-card h2{font-size:34px;margin:8px 0;color:var(--cyan)}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--cyan);box-shadow:0 0 14px var(--cyan);margin-right:8px}.chart-fake{height:280px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:linear-gradient(180deg,rgba(25,246,210,.08),rgba(25,246,210,.015));margin-top:18px;position:relative;overflow:hidden}.chart-fake:before{content:"";position:absolute;inset:30px;background:linear-gradient(135deg,transparent 0 10%,rgba(25,246,210,.4) 11%,transparent 12% 25%,rgba(77,141,255,.5) 26%,transparent 27% 42%,rgba(25,246,210,.38) 43%,transparent 44%);filter:drop-shadow(0 0 8px rgba(25,246,210,.45))}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}.reveal.visible{opacity:1;transform:none}@keyframes float{0%,100%{transform:perspective(780px) rotateX(52deg) rotateZ(-12deg) translateY(0)}50%{transform:perspective(780px) rotateX(52deg) rotateZ(-12deg) translateY(-16px)}}@media(max-width:1100px){.project-grid,.what-grid,.road-cols,.dash-grid{grid-template-columns:repeat(2,1fr)}.road-wrap,.dashboard-layout{grid-template-columns:1fr}.sidebar{height:auto;position:relative}.hero-art{opacity:.38;right:-220px;width:900px}.hero-copy{width:min(560px,100%)}}@media(max-width:760px){.container{width:min(100% - 28px,1280px)}.navbar{height:74px}.brand img{width:168px}.menu{display:block}.nav{display:none;position:absolute;top:74px;left:14px;right:14px;padding:18px;background:rgba(2,7,19,.96);border:1px solid rgba(255,255,255,.1);border-radius:16px;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.hero{min-height:auto;padding:54px 0}.hero-art{display:none}h1{font-size:48px}.project-grid,.what-grid,.road-cols,.wide-grid,.dash-grid{grid-template-columns:1fr}.what-item{border-right:0;border-bottom:1px solid rgba(255,255,255,.07)}.road-wrap{grid-template-columns:1fr}.footer,.dash-top{flex-direction:column;align-items:flex-start}.stack{justify-content:flex-start}.actions{flex-direction:column}.btn{width:100%}}

/* ==========================================================
   AtmosBoost Owner System Health module
========================================================== */

.system-kpis .dash-card {
  min-height: 190px;
}

.system-two-col {
  padding-top: 18px;
}

.system-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.system-row span {
  color: var(--muted);
  font-size: 14px;
}

.system-row b,
.system-row code {
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  text-align: right;
}

.system-meters {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.meter-top span {
  color: var(--muted);
  font-size: 14px;
}

.meter-top b {
  color: var(--cyan);
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 22px rgba(25,246,210,.32);
}

.meter-fill.warm {
  background: linear-gradient(90deg, var(--blue), var(--yellow), #ff5f6d);
}

.system-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.system-summary-grid > div {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}

.summary-ok {
  display: block;
  color: var(--cyan);
  font-size: 22px;
  margin-bottom: 8px;
}

@media(max-width:760px){
  .system-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   AtmosBoost System Charts UI
========================================================== */

.system-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.chart-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(8,18,42,.72);
  box-shadow: var(--shadow);
}

.chart-card h3 {
  margin: 0 0 18px;
  color: var(--text);
}

.chart-card h2 {
  margin: 0;
  font-size: 34px;
  color: var(--cyan);
}

.chart-card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.good-dot {
  color: #75ff63 !important;
  font-weight: 800;
}

.good-dot:before {
  content: "● ";
  color: #75ff63;
}

.mini-chart {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  width: calc(100% - 48px);
  height: 120px;
}

.mini-chart polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(25,246,210,.65));
}

.mini-chart polygon {
  fill: rgba(25,246,210,.12);
}

.chart-card.purple h2,
.chart-card.purple .mini-chart polyline {
  color: #b767ff;
  stroke: #b767ff;
}

.chart-card.purple .mini-chart polygon {
  fill: rgba(183,103,255,.16);
}

.chart-card.yellow h2,
.chart-card.yellow .mini-chart polyline {
  color: var(--yellow);
  stroke: var(--yellow);
}

.chart-card.yellow .mini-chart polygon {
  fill: rgba(255,211,77,.14);
}

.chart-card.green h2,
.chart-card.green .mini-chart polyline {
  color: #75ff63;
  stroke: #75ff63;
}

.chart-card.green .mini-chart polygon {
  fill: rgba(117,255,99,.14);
}

.system-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.system-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.system-row span {
  color: var(--muted);
}

.system-row b,
.system-row code {
  color: var(--text);
  font-weight: 800;
}

.rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.ring {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 5px solid #75ff63;
  box-shadow: 0 0 28px rgba(117,255,99,.25);
}

.ring div {
  font-size: 24px;
  font-weight: 900;
  color: #75ff63;
}

.ring b {
  color: var(--text);
}

.ring span {
  font-size: 12px;
  color: var(--muted);
}

.ring.cyan {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(25,246,210,.25);
}

.ring.cyan div {
  color: var(--cyan);
}

.ring.purple {
  border-color: #b767ff;
  box-shadow: 0 0 28px rgba(183,103,255,.25);
}

.ring.purple div {
  color: #b767ff;
}

.ring.yellow {
  border-color: var(--yellow);
  box-shadow: 0 0 28px rgba(255,211,77,.22);
}

.ring.yellow div {
  color: var(--yellow);
}

@media(max-width:1100px){
  .system-chart-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:760px){
  .system-chart-grid,
  .rings {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   AtmosBoost System History Charts
========================================================== */

.history-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.history-card {
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,18,42,.72);
  box-shadow: var(--shadow);
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.history-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.legend span::before {
  content: "● ";
}

.l-cyan { color: var(--cyan); }
.l-purple { color: #b767ff; }
.l-yellow { color: var(--yellow); }

.history-value {
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.history-value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.history-value.cyan { color: var(--cyan); }
.history-value.purple { color: #b767ff; }

.big-chart {
  width: 100%;
  height: 220px;
}

.grid-lines line {
  stroke: rgba(25,246,210,.12);
  stroke-width: 1;
}

.big-chart .line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.big-chart .line.cyan {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(25,246,210,.55));
}

.big-chart .line.purple {
  stroke: #b767ff;
  filter: drop-shadow(0 0 8px rgba(183,103,255,.5));
}

.big-chart .line.yellow {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 8px rgba(255,211,77,.45));
}

.big-chart .area.cyan {
  fill: rgba(25,246,210,.12);
}

.big-chart .area.purple {
  fill: rgba(183,103,255,.16);
}

@media(max-width:1200px){
  .history-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   AtmosBoost System Final Visual Layout
========================================================== */

.clean-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.clean-kpi {
  min-height: 210px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(8,18,42,.72);
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(25,246,210,.08);
  border: 1px solid rgba(25,246,210,.12);
  color: var(--cyan);
  font-size: 28px;
}

.clean-kpi h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 17px;
}

.clean-kpi h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 34px;
  line-height: 1.15;
}

.clean-kpi p {
  margin: 14px 0 0;
  color: var(--muted);
}

.clean-kpi.purple h2,
.clean-kpi.purple .kpi-icon { color: #b767ff; }

.clean-kpi.yellow h2,
.clean-kpi.yellow .kpi-icon { color: var(--yellow); }

.clean-kpi.green h2,
.clean-kpi.green .kpi-icon { color: #75ff63; }

.good-dot {
  color: #75ff63 !important;
  font-weight: 800;
}

.good-dot:before {
  content: "● ";
  color: #75ff63;
}

.history-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.history-card {
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,18,42,.72);
  box-shadow: var(--shadow);
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.history-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
}

.legend span::before { content: "● "; }
.l-cyan { color: var(--cyan); }
.l-purple { color: #b767ff; }
.l-yellow { color: var(--yellow); }

.history-value {
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.history-value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.history-value.cyan { color: var(--cyan); }
.history-value.purple { color: #b767ff; }

.big-chart {
  width: 100%;
  height: 220px;
}

.grid-lines line {
  stroke: rgba(25,246,210,.12);
  stroke-width: 1;
}

.big-chart .line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.big-chart .line.cyan {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(25,246,210,.55));
}

.big-chart .line.purple {
  stroke: #b767ff;
  filter: drop-shadow(0 0 8px rgba(183,103,255,.5));
}

.big-chart .line.yellow {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 8px rgba(255,211,77,.45));
}

.big-chart .area.cyan { fill: rgba(25,246,210,.12); }
.big-chart .area.purple { fill: rgba(183,103,255,.16); }

.system-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.system-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.system-row span { color: var(--muted); }

.system-row b,
.system-row code {
  color: var(--text);
  font-weight: 800;
}

.rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.ring {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 5px solid #75ff63;
  box-shadow: 0 0 28px rgba(117,255,99,.25);
}

.ring div {
  font-size: 24px;
  font-weight: 900;
  color: #75ff63;
}

.ring b { color: var(--text); }

.ring span {
  font-size: 12px;
  color: var(--muted);
}

.ring.cyan {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(25,246,210,.25);
}

.ring.cyan div { color: var(--cyan); }

.ring.purple {
  border-color: #b767ff;
  box-shadow: 0 0 28px rgba(183,103,255,.25);
}

.ring.purple div { color: #b767ff; }

.ring.yellow {
  border-color: var(--yellow);
  box-shadow: 0 0 28px rgba(255,211,77,.22);
}

.ring.yellow div { color: var(--yellow); }

@media(max-width:1200px){
  .clean-kpi-grid,
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:760px){
  .clean-kpi-grid,
  .history-grid,
  .rings {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   AtmosBoost Premium System Health Simple Layout
========================================================== */

.premium-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.premium-kpi {
  min-height: 178px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,18,42,.76);
  box-shadow: var(--shadow);
}

.premium-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 30px;
  background: rgba(25,246,210,.08);
  border: 1px solid rgba(25,246,210,.15);
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(25,246,210,.12);
}

.premium-kpi h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
}

.premium-kpi h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  color: var(--cyan);
}

.premium-kpi p {
  margin: 14px 0 0;
  color: var(--muted);
}

.premium-kpi.purple h2,
.premium-kpi.purple .premium-icon {
  color: #b767ff;
}

.premium-kpi.yellow h2,
.premium-kpi.yellow .premium-icon {
  color: var(--yellow);
}

.premium-kpi.green h2,
.premium-kpi.green .premium-icon {
  color: #75ff63;
}

.good-dot {
  color: #75ff63 !important;
  font-weight: 800;
}

.good-dot:before {
  content: "● ";
}

.premium-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  margin-top: 22px;
}

.premium-panel {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(8,18,42,.76);
  box-shadow: var(--shadow);
}

.premium-panel h3 {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: 18px;
}

.premium-table {
  display: grid;
  gap: 10px;
}

.premium-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.premium-row span {
  color: var(--muted);
}

.premium-row b {
  color: var(--text);
  font-weight: 800;
}

.premium-load {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}

.premium-load-row {
  display: grid;
  grid-template-columns: 160px 1fr 64px;
  align-items: center;
  gap: 18px;
}

.premium-load-row span {
  color: var(--muted);
}

.premium-load-row b {
  text-align: right;
  color: var(--text);
}

.premium-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}

.premium-fill{height:100%;border-radius:999px;transition:width .35s ease,background .35s ease,box-shadow .35s ease}





@media(max-width:1200px){
  .premium-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:760px){
  .premium-kpi-grid {
    grid-template-columns: 1fr;
  }

  .premium-load-row,
  .premium-row {
    grid-template-columns: 1fr;
  }

  .premium-load-row b {
    text-align: left;
  }
}

/* ==========================================================
   AtmosBoost System Health Compact Premium Polish
========================================================== */

.system-page{width:100%;max-width:1680px;margin:0 auto;padding:34px 34px 60px;box-sizing:border-box}

.system-page .system-top {
  margin-bottom: 22px;
}

.system-page .dash-top h1 {
  font-size: clamp(44px, 4.6vw, 68px) !important;
  letter-spacing: -0.055em;
}

.system-page .dash-top .muted {
  font-size: 15px;
}

.system-back {
  min-width: 190px;
}

.premium-kpi-grid.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 16px;width:100%}

.premium-kpi-grid.compact .premium-kpi{display:grid;grid-template-columns:54px 1fr;grid-template-rows:22px 38px 18px;column-gap:16px;row-gap:6px;align-items:start;min-height:112px;padding:18px 22px;border-radius:18px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(24,33,58,.98),rgba(19,28,49,.98))}

.premium-kpi-grid.compact .premium-icon{grid-column:1;grid-row:1 / span 3;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:13px;margin-top:1px;justify-self:start;align-self:start}

.premium-icon svg{width:27px;height:27px;display:block;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}

.premium-kpi-grid.compact .premium-kpi h3{grid-column:2;grid-row:1;margin:0;font-size:15px;font-weight:700;line-height:22px;color:#eef3fb}

.premium-kpi-grid.compact .premium-kpi h2{grid-column:2;grid-row:2;margin:0;font-size:24px;font-weight:800;line-height:38px}

.premium-kpi-grid.compact .premium-kpi p{grid-column:2;grid-row:3;display:flex;align-items:center;gap:6px;margin:0;font-size:13px;font-weight:600;color:#97a5bb}

.premium-bottom-grid.compact{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px;width:100%}

.premium-bottom-grid.compact .premium-panel{min-height:250px;padding:26px;width:100%}

.premium-bottom-grid.compact .premium-panel h3 {
  font-size: 17px;
  margin-bottom: 22px;
}

.premium-bottom-grid.compact .premium-row {
  grid-template-columns: 160px 1fr;
  padding: 12px 16px;
  min-height: 48px;
}

.premium-bottom-grid.compact .premium-load{gap:20px;margin-top:14px}

.premium-bottom-grid.compact .premium-load-row{grid-template-columns:150px 1fr 58px}

.premium-progress {
  height: 9px;
}

@media(max-width:1300px){
  .premium-kpi-grid.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 16px;width:100%}

  .premium-bottom-grid.compact {
    grid-template-columns: 1fr;
  }
}

@media(max-width:760px){
  .system-page .dash-top h1 {
    font-size: 42px !important;
  }

  .premium-kpi-grid.compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 16px;width:100%}

  .premium-kpi-grid.compact .premium-kpi,
  .premium-bottom-grid.compact .premium-row,
  .premium-bottom-grid.compact .premium-load-row{grid-template-columns:150px 1fr 58px}

  .premium-bottom-grid.compact .premium-load-row b {
    text-align: left;
  }
}




/* Unified KPI icon sizing */
.premium-icon .temp-svg{width:25px;height:25px;display:block;transform:translateX(1px) translateY(1px)}


/* AtmosBoost Live Load Colors */
.premium-fill.is-cyan{
  background:linear-gradient(90deg,#19f6d2,#27d7ff);
  box-shadow:0 0 18px rgba(25,246,210,.35);
}
.premium-fill.is-green{
  background:linear-gradient(90deg,#19f6d2,#75ff63);
  box-shadow:0 0 18px rgba(117,255,99,.32);
}
.premium-fill.is-yellow{
  background:linear-gradient(90deg,#19f6d2,#ffd34d);
  box-shadow:0 0 18px rgba(255,211,77,.32);
}
.premium-fill.is-orange{
  background:linear-gradient(90deg,#ffd34d,#ff8a3d);
  box-shadow:0 0 18px rgba(255,138,61,.32);
}
.premium-fill.is-red{
  background:linear-gradient(90deg,#ff6b6b,#ff2d55);
  box-shadow:0 0 18px rgba(255,45,85,.36);
}


/* AtmosBoost Live Load Colors */
.premium-fill{
  height:100%;
  border-radius:999px;
  transition:width .35s ease, background .35s ease, box-shadow .35s ease;
}
.premium-fill.is-cyan{
  background:linear-gradient(90deg,#19f6d2,#27d7ff);
  box-shadow:0 0 18px rgba(25,246,210,.35);
}
.premium-fill.is-green{
  background:linear-gradient(90deg,#19f6d2,#75ff63);
  box-shadow:0 0 18px rgba(117,255,99,.32);
}
.premium-fill.is-yellow{
  background:linear-gradient(90deg,#19f6d2,#ffd34d);
  box-shadow:0 0 18px rgba(255,211,77,.32);
}
.premium-fill.is-orange{
  background:linear-gradient(90deg,#ffd34d,#ff8a3d);
  box-shadow:0 0 18px rgba(255,138,61,.32);
}
.premium-fill.is-red{
  background:linear-gradient(90deg,#ff6b6b,#ff2d55);
  box-shadow:0 0 18px rgba(255,45,85,.36);
}

/* =========================================================
   OWNER DASHBOARD LAYOUT FIX v1.0
   Correct file: app/static/site-css/styles.css
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.dashboard-body {
  margin: 0;
  background: #050812;
}

.dashboard-layout {
  width: 100%;
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  overflow-x: hidden !important;
}

.sidebar {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
}

.dash-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: calc(100vw - 260px) !important;
  overflow-x: hidden !important;
  padding: 28px 30px 42px !important;
}

.dash-top {
  max-width: 1280px !important;
  margin: 0 auto 24px auto !important;
}

.dash-top h1 {
  font-size: clamp(36px, 4vw, 56px) !important;
  line-height: .95 !important;
  letter-spacing: -0.05em !important;
  margin-bottom: 12px !important;
}

.dash-grid {
  max-width: 1280px !important;
  margin: 0 auto 24px auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

.dash-card,
.info-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.wide-grid {
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

.section {
  width: 100% !important;
}

.chart-fake {
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 1200px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wide-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 820px) {
  .dashboard-layout {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .dash-main {
    max-width: 100vw !important;
    padding: 20px 16px 34px !important;
  }

  .dash-grid {
    grid-template-columns: 1fr !important;
  }
}

/* AB CONTROL CENTER v2 */
.ab-page{max-width:1580px;margin:0 auto;padding:28px 32px 44px;color:#f4f7fb}
.ab-topbar{display:flex;justify-content:space-between;gap:24px;margin-bottom:24px}
.ab-eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.18em;font-weight:900;color:#22f0cf}
.ab-topbar h1{margin:0;font-size:clamp(34px,4vw,58px);line-height:.96;letter-spacing:-.05em}
.ab-subtitle{margin:12px 0 0;max-width:680px;color:#9caabd;font-size:16px;line-height:1.6}
.ab-status-pill{min-width:220px;padding:16px 20px;border:1px solid rgba(170,210,255,.12);border-radius:999px;background:rgba(8,17,31,.78);display:flex;align-items:center;gap:12px}
.ab-status-pill small{display:block;color:#9caabd;font-size:12px}
.ab-status-pill strong{color:#22f0cf;font-size:18px}
.ab-dot{width:10px;height:10px;display:inline-block;border-radius:50%;background:#22f0cf;box-shadow:0 0 18px rgba(34,240,207,.8);margin-right:8px}
.ab-dot.purple{background:#8a5cff}.ab-dot.yellow{background:#ffc84a}
.ab-grid{display:grid;gap:18px;margin-bottom:22px}
.ab-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ab-card,.ab-panel{border:1px solid rgba(170,210,255,.12);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),rgba(15,25,42,.82);box-shadow:0 24px 70px rgba(0,0,0,.32);backdrop-filter:blur(18px)}
.ab-card{padding:22px;min-width:0}
.ab-panel{padding:24px;margin-bottom:22px}
.ab-card-head,.ab-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ab-section-head{margin-bottom:18px}
.ab-section-head h2{margin:0;font-size:22px;letter-spacing:-.03em}
.ab-section-head a{color:#1fb6ff;text-decoration:none;font-weight:800;font-size:14px}
.ab-icon{color:#22f0cf;font-size:24px}
.ab-kpi h2{margin:24px 0 8px;color:#22f0cf;font-size:clamp(28px,3vw,42px);letter-spacing:-.04em}
.ab-kpi p{margin:0;color:#9caabd;line-height:1.55}
.ab-kpi-row{margin-top:24px;padding-top:16px;border-top:1px solid rgba(170,210,255,.12);display:flex;justify-content:space-between;color:#9caabd}
.ab-kpi-row strong{color:#f4f7fb}.ab-warn{color:#ffc84a!important}
.ab-progress{height:8px;background:rgba(255,255,255,.07);border-radius:999px;overflow:hidden;margin-top:26px}
.ab-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22f0cf,#4cffdf)}
.ab-progress.blue span{background:linear-gradient(90deg,#1fb6ff,#59d6ff)}
.ab-load{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px}
.ab-load>div:first-child{min-width:118px}.ab-load p{margin:14px 0;color:#9caabd;display:flex;align-items:center;width:100%}.ab-load p strong{margin-left:auto;min-width:42px;color:#f4f7fb;text-align:right;font-variant-numeric:tabular-nums}
.ab-ring{width:116px;height:116px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#22f0cf calc(var(--value)*1%),rgba(255,255,255,.08) 0)}
.ab-ring:after{content:"";position:absolute;inset:11px;border-radius:50%;background:#0b1423}
.ab-ring strong,.ab-ring small{position:relative;z-index:1;text-align:center}
.ab-ring strong{font-size:26px}.ab-ring small{position:absolute;margin-top:34px;color:#9caabd}

.ab-service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.ab-service-card{min-width:0;min-height:250px;padding:18px;border-radius:18px;border:1px solid rgba(170,210,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015));display:flex;flex-direction:column;justify-content:space-between}
.ab-service-top{display:flex;gap:12px;align-items:flex-start}
.ab-service-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(34,240,207,.13);border:1px solid rgba(34,240,207,.18);font-size:23px}
.purple-bg{background:rgba(138,92,255,.16);border-color:rgba(138,92,255,.25)}
.gold-bg{background:rgba(255,200,74,.14);border-color:rgba(255,200,74,.25)}
.blue-bg{background:rgba(31,182,255,.15);border-color:rgba(31,182,255,.25)}
.ab-service-card h3{margin:2px 0 8px;font-size:17px;letter-spacing:-.03em}
.ab-service-card p{margin:0;color:#49ffb7;font-weight:800;font-size:13px}
.ab-service-card p.dev{color:#ffc84a}
.ab-service-card small{color:#9caabd;line-height:1.5}
.ab-mini-chart{height:44px;margin:8px 0;border-radius:10px;background:linear-gradient(135deg,transparent 0 18%,rgba(34,240,207,.8) 19% 21%,transparent 22% 38%,rgba(34,240,207,.65) 39% 41%,transparent 42% 58%,rgba(34,240,207,.75) 59% 61%,transparent 62%),linear-gradient(180deg,transparent,rgba(34,240,207,.09))}
.ab-mini-chart.purple{background:linear-gradient(135deg,transparent 0 18%,rgba(138,92,255,.8) 19% 21%,transparent 22% 38%,rgba(138,92,255,.65) 39% 41%,transparent 42% 58%,rgba(138,92,255,.75) 59% 61%,transparent 62%),linear-gradient(180deg,transparent,rgba(138,92,255,.09))}
.ab-mini-chart.gold{background:linear-gradient(135deg,transparent 0 18%,rgba(255,200,74,.8) 19% 21%,transparent 22% 38%,rgba(255,200,74,.65) 39% 41%,transparent 42% 58%,rgba(255,200,74,.75) 59% 61%,transparent 62%),linear-gradient(180deg,transparent,rgba(255,200,74,.09))}
.ab-button{display:block;width:100%;text-align:center;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(170,210,255,.12);color:#f4f7fb;text-decoration:none;font-weight:900}

.ab-bottom-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:18px}
.ab-event{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid rgba(170,210,255,.12)}
.ab-event p{margin:0;color:#f4f7fb}.ab-event time{color:#9caabd;font-size:13px}
.ab-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ab-actions a{min-height:74px;padding:18px;border-radius:16px;border:1px solid rgba(170,210,255,.12);background:rgba(255,255,255,.035);color:#f4f7fb;text-decoration:none;display:flex;align-items:center;gap:14px;font-weight:900}

@media(max-width:1450px){.ab-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1180px){.ab-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.ab-bottom-grid{grid-template-columns:1fr}}
@media(max-width:760px){.ab-page{padding:22px 16px 36px}.ab-topbar{flex-direction:column}.ab-status-pill{width:100%}.ab-grid-4,.ab-service-grid,.ab-actions{grid-template-columns:1fr}}


/* PRO ICONS FIX v1 */
.ab-service-icon{
  font-size:0!important;
  position:relative;
  overflow:hidden;
}

.pro-icon{
  width:24px;
  height:24px;
  display:block;
  position:relative;
}

.pro-icon:before,
.pro-icon:after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}

/* AI icon */
.pro-icon.ai:before{
  inset:3px;
  border:2px solid #22f0cf;
  border-radius:8px;
}
.pro-icon.ai:after{
  width:8px;
  height:8px;
  left:8px;
  top:8px;
  border-radius:50%;
  background:#22f0cf;
  box-shadow:0 0 14px rgba(34,240,207,.8);
}

/* Trader icon */
.pro-icon.trader:before{
  left:3px;
  right:3px;
  bottom:4px;
  height:14px;
  border-left:2px solid #58a6ff;
  border-bottom:2px solid #58a6ff;
}
.pro-icon.trader:after{
  width:18px;
  height:12px;
  left:4px;
  top:5px;
  border-top:2px solid #58a6ff;
  border-right:2px solid #58a6ff;
  transform:skew(-22deg);
}

/* StateDesk icon */
.pro-icon.desk:before{
  inset:3px 5px;
  border:2px solid #ffc84a;
  border-radius:4px;
}
.pro-icon.desk:after{
  width:10px;
  height:2px;
  left:7px;
  top:10px;
  background:#ffc84a;
  box-shadow:0 5px 0 #ffc84a;
}

/* Wallet icon */
.pro-icon.wallet:before{
  left:2px;
  top:6px;
  width:20px;
  height:13px;
  border:2px solid #9b6cff;
  border-radius:5px;
}
.pro-icon.wallet:after{
  right:2px;
  top:10px;
  width:8px;
  height:6px;
  border:2px solid #9b6cff;
  border-radius:4px;
}

/* Terminal icon */
.pro-icon.terminal:before{
  inset:4px 3px 7px;
  border:2px solid #22f0cf;
  border-radius:4px;
}
.pro-icon.terminal:after{
  left:8px;
  bottom:3px;
  width:9px;
  height:2px;
  background:#22f0cf;
}

/* Backup icon */
.pro-icon.backup:before{
  left:4px;
  top:8px;
  width:16px;
  height:10px;
  border:2px solid #58a6ff;
  border-radius:8px;
}
.pro-icon.backup:after{
  left:10px;
  top:4px;
  width:6px;
  height:12px;
  border-left:2px solid #58a6ff;
  border-top:2px solid #58a6ff;
  transform:rotate(45deg);
}

/* Event dots */
.event-dot{
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  position:relative;
}
.event-dot.ok{background:rgba(34,240,207,.16);border:1px solid rgba(34,240,207,.45)}
.event-dot.info{background:rgba(88,166,255,.16);border:1px solid rgba(88,166,255,.45)}
.event-dot.warn{background:rgba(255,200,74,.16);border:1px solid rgba(255,200,74,.45)}
.event-dot.ok:after{content:"";width:8px;height:4px;border-left:2px solid #22f0cf;border-bottom:2px solid #22f0cf;transform:rotate(-45deg)}
.event-dot.info:after{content:"";width:2px;height:8px;background:#58a6ff;box-shadow:0 -5px 0 #58a6ff}
.event-dot.warn:after{content:"";width:2px;height:9px;background:#ffc84a;box-shadow:0 6px 0 #ffc84a}

/* Quick action icons */
.pro-line{
  width:22px;
  height:22px;
  display:inline-block;
  position:relative;
  flex:0 0 22px;
}
.pro-line:before,
.pro-line:after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}
.pro-line.pulse:before{
  left:1px;
  top:10px;
  width:20px;
  height:2px;
  background:#d8e7ff;
}
.pro-line.pulse:after{
  left:5px;
  top:5px;
  width:12px;
  height:12px;
  border-left:2px solid #22f0cf;
  border-bottom:2px solid #22f0cf;
  transform:rotate(-45deg);
}
.pro-line.doc:before{
  inset:3px 5px;
  border:2px solid #d8e7ff;
  border-radius:4px;
}
.pro-line.doc:after{
  left:8px;
  top:9px;
  width:8px;
  height:2px;
  background:#d8e7ff;
  box-shadow:0 5px 0 #d8e7ff;
}
.pro-line.gear:before{
  inset:3px;
  border:2px solid #d8e7ff;
  border-radius:50%;
}
.pro-line.gear:after{
  left:9px;
  top:9px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#22f0cf;
}

.ab-actions a{
  font-size:15px;
  letter-spacing:-.01em;
}

.ab-service-card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.018)),rgba(12,20,34,.88)!important;
}

.ab-service-card:hover,
.ab-card:hover{
  border-color:rgba(34,240,207,.28);
}


/* PRO ICONS FIX v1 */
.ab-service-icon{
  font-size:0!important;
  position:relative;
  overflow:hidden;
}

.pro-icon{
  width:24px;
  height:24px;
  display:block;
  position:relative;
}

.pro-icon:before,
.pro-icon:after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}

/* AI icon */
.pro-icon.ai:before{
  inset:3px;
  border:2px solid #22f0cf;
  border-radius:8px;
}
.pro-icon.ai:after{
  width:8px;
  height:8px;
  left:8px;
  top:8px;
  border-radius:50%;
  background:#22f0cf;
  box-shadow:0 0 14px rgba(34,240,207,.8);
}

/* Trader icon */
.pro-icon.trader:before{
  left:3px;
  right:3px;
  bottom:4px;
  height:14px;
  border-left:2px solid #58a6ff;
  border-bottom:2px solid #58a6ff;
}
.pro-icon.trader:after{
  width:18px;
  height:12px;
  left:4px;
  top:5px;
  border-top:2px solid #58a6ff;
  border-right:2px solid #58a6ff;
  transform:skew(-22deg);
}

/* StateDesk icon */
.pro-icon.desk:before{
  inset:3px 5px;
  border:2px solid #ffc84a;
  border-radius:4px;
}
.pro-icon.desk:after{
  width:10px;
  height:2px;
  left:7px;
  top:10px;
  background:#ffc84a;
  box-shadow:0 5px 0 #ffc84a;
}

/* Wallet icon */
.pro-icon.wallet:before{
  left:2px;
  top:6px;
  width:20px;
  height:13px;
  border:2px solid #9b6cff;
  border-radius:5px;
}
.pro-icon.wallet:after{
  right:2px;
  top:10px;
  width:8px;
  height:6px;
  border:2px solid #9b6cff;
  border-radius:4px;
}

/* Terminal icon */
.pro-icon.terminal:before{
  inset:4px 3px 7px;
  border:2px solid #22f0cf;
  border-radius:4px;
}
.pro-icon.terminal:after{
  left:8px;
  bottom:3px;
  width:9px;
  height:2px;
  background:#22f0cf;
}

/* Backup icon */
.pro-icon.backup:before{
  left:4px;
  top:8px;
  width:16px;
  height:10px;
  border:2px solid #58a6ff;
  border-radius:8px;
}
.pro-icon.backup:after{
  left:10px;
  top:4px;
  width:6px;
  height:12px;
  border-left:2px solid #58a6ff;
  border-top:2px solid #58a6ff;
  transform:rotate(45deg);
}

/* Event dots */
.event-dot{
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  position:relative;
}
.event-dot.ok{background:rgba(34,240,207,.16);border:1px solid rgba(34,240,207,.45)}
.event-dot.info{background:rgba(88,166,255,.16);border:1px solid rgba(88,166,255,.45)}
.event-dot.warn{background:rgba(255,200,74,.16);border:1px solid rgba(255,200,74,.45)}
.event-dot.ok:after{content:"";width:8px;height:4px;border-left:2px solid #22f0cf;border-bottom:2px solid #22f0cf;transform:rotate(-45deg)}
.event-dot.info:after{content:"";width:2px;height:8px;background:#58a6ff;box-shadow:0 -5px 0 #58a6ff}
.event-dot.warn:after{content:"";width:2px;height:9px;background:#ffc84a;box-shadow:0 6px 0 #ffc84a}

/* Quick action icons */
.pro-line{
  width:22px;
  height:22px;
  display:inline-block;
  position:relative;
  flex:0 0 22px;
}
.pro-line:before,
.pro-line:after{
  content:"";
  position:absolute;
  box-sizing:border-box;
}
.pro-line.pulse:before{
  left:1px;
  top:10px;
  width:20px;
  height:2px;
  background:#d8e7ff;
}
.pro-line.pulse:after{
  left:5px;
  top:5px;
  width:12px;
  height:12px;
  border-left:2px solid #22f0cf;
  border-bottom:2px solid #22f0cf;
  transform:rotate(-45deg);
}
.pro-line.doc:before{
  inset:3px 5px;
  border:2px solid #d8e7ff;
  border-radius:4px;
}
.pro-line.doc:after{
  left:8px;
  top:9px;
  width:8px;
  height:2px;
  background:#d8e7ff;
  box-shadow:0 5px 0 #d8e7ff;
}
.pro-line.gear:before{
  inset:3px;
  border:2px solid #d8e7ff;
  border-radius:50%;
}
.pro-line.gear:after{
  left:9px;
  top:9px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#22f0cf;
}

.ab-actions a{
  font-size:15px;
  letter-spacing:-.01em;
}

.ab-service-card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.018)),rgba(12,20,34,.88)!important;
}

.ab-service-card:hover,
.ab-card:hover{
  border-color:rgba(34,240,207,.28);
}


/* CLEAN SVG ICONS v2 */
.pro-icon,
.pro-line,
.pro-icon:before,
.pro-icon:after,
.pro-line:before,
.pro-line:after{
  display:none!important;
  content:none!important;
}

.ab-service-icon{
  font-size:0!important;
  display:grid!important;
  place-items:center!important;
}

.svg-icon{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:#22f0cf;
}

.purple-bg .svg-icon{color:#8a5cff}
.gold-bg .svg-icon{color:#ffc84a}
.blue-bg .svg-icon{color:#1fb6ff}

.svg-line{
  width:22px;
  height:22px;
  fill:none;
  stroke:#d8e7ff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 22px;
}

.ab-icon{
  font-size:18px!important;
  line-height:1!important;
}


/* KPI ICON UNIFY v1 */
.ab-card-head{
  align-items:flex-start!important;
}

.kpi-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(34,240,207,.10);
  border:1px solid rgba(34,240,207,.22);
  color:#22f0cf;
  box-shadow:inset 0 0 18px rgba(34,240,207,.05);
}

.kpi-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.kpi-icon.alert{
  background:rgba(255,200,74,.10);
  border-color:rgba(255,200,74,.24);
  color:#ffc84a;
}

.ab-card-head span:first-child{
  font-size:15px;
  font-weight:850;
  letter-spacing:-.02em;
}

.ab-kpi h2{
  display:flex;
  align-items:center;
  gap:4px;
}

.ab-load-card .ab-card-head{
  margin-bottom:8px;
}


/* KPI ICON POSITION CLEANUP v2 */
.ab-card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}

.kpi-icon{
  margin-left:auto!important;
}

.ab-card-head .ab-icon{
  display:none!important;
}

.ab-card-head .kpi-icon + .ab-icon{
  display:none!important;
}


/* ===== Premium KPI Typography ===== */

.ab-card-head span:first-child{
    font-size:17px !important;
    font-weight:600 !important;
    letter-spacing:-0.02em !important;
    color:#EEF4FF !important;
    font-family:
        Inter,
        "SF Pro Display",
        "Segoe UI",
        Roboto,
        sans-serif !important;
}

.ab-kpi h2{
    font-size:54px !important;
    font-weight:700 !important;
    letter-spacing:-0.05em !important;
    color:#2EF2D2 !important;
    margin-top:26px !important;
}

.ab-kpi p{
    font-size:18px !important;
    line-height:1.55 !important;
    color:#9AA8BB !important;
}

.ab-kpi-row{
    font-size:15px !important;
}

.ab-kpi-row strong{
    font-size:18px !important;
    font-weight:600 !important;
}


/* ===== KPI WIDTH TUNING ===== */

.ab-grid-4{
    display:grid !important;
    grid-template-columns:repeat(4, minmax(240px, 300px)) !important;
    justify-content:space-between !important;
    gap:28px !important;
}

.ab-card{
    width:100% !important;
    min-height:315px !important;
}

.ab-kpi{
    max-width:300px !important;
}


/* ===== KPI COMPACT HEIGHT ===== */

.ab-card{
    min-height:auto !important;
}

.ab-kpi{
    min-height:245px !important;
    padding:22px 22px 18px !important;
}

.ab-load-card{
    min-height:245px !important;
    padding:22px !important;
}

.ab-kpi h2{
    margin-top:18px !important;
    margin-bottom:10px !important;
    font-size:42px !important;
}

.ab-kpi p{
    margin-bottom:16px !important;
}

.ab-kpi-row{
    margin-top:16px !important;
    padding-top:12px !important;
}

.ab-progress{
    margin-top:18px !important;
}

.ab-load{
    margin-top:10px !important;
}

.ab-ring{
    width:94px !important;
    height:94px !important;
}

.ab-ring::after{
    inset:9px !important;
}

.ab-ring strong{
    font-size:22px !important;
}


/* ===== RESTORE ORIGINAL KPI WIDTH ===== */

.ab-grid-4{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
    justify-content:unset !important;
}

.ab-kpi{
    max-width:none !important;
    width:100% !important;
}

.ab-card{
    width:100% !important;
}


/* ===== KPI HEIGHT COMPACT v2 ===== */

.ab-kpi,
.ab-load-card{
    min-height:205px !important;
    padding:18px 20px 16px !important;
}

.ab-card-head{
    margin-bottom:8px !important;
}

.ab-kpi h2{
    margin:12px 0 8px !important;
    font-size:38px !important;
    line-height:1 !important;
}

.ab-kpi p{
    margin:0 0 10px !important;
    font-size:15px !important;
    line-height:1.45 !important;
}

.ab-kpi-row{
    margin-top:12px !important;
    padding-top:10px !important;
}

.ab-progress{
    margin-top:14px !important;
}

.ab-load{
    margin-top:6px !important;
    gap:12px !important;
}

.ab-load p{
    margin:8px 0 !important;
}

.ab-ring{
    width:82px !important;
    height:82px !important;
}

.ab-ring::after{
    inset:8px !important;
}

.ab-ring strong{
    font-size:20px !important;
}

.ab-ring small{
    font-size:10px !important;
}


/* ===== ROLLBACK KPI HEIGHT FIX ===== */

.ab-kpi,
.ab-load-card{
    min-height:245px !important;
    padding:22px !important;
}

.ab-ring{
    width:94px !important;
    height:94px !important;
}

.ab-ring::after{
    inset:9px !important;
}

.ab-kpi h2{
    font-size:42px !important;
}


/* ===== RESTORE ORIGINAL KPI WIDTH ===== */

.ab-grid-4{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
    justify-content:unset !important;
}

.ab-kpi{
    max-width:none !important;
    width:100% !important;
}

.ab-card{
    width:100% !important;
}


/* ===== RESTORE ORIGINAL KPI WIDTH ===== */

.ab-grid-4{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:18px !important;
    justify-content:unset !important;
}

.ab-kpi{
    max-width:none !important;
    width:100% !important;
}

.ab-card{
    width:100% !important;
}


/* ===== ROLLBACK KPI HEIGHT FIX ===== */

.ab-kpi,
.ab-load-card{
    min-height:245px !important;
    padding:22px !important;
}

.ab-ring{
    width:94px !important;
    height:94px !important;
}

.ab-ring::after{
    inset:9px !important;
}

.ab-kpi h2{
    font-size:42px !important;
}


/* ===== HARD RESTORE DASHBOARD WIDTH v3 ===== */

.dash-main{
  padding:28px 30px 42px !important;
}

.ab-page{
  width:100% !important;
  max-width:1580px !important;
  margin:0 auto !important;
  padding:28px 32px 44px !important;
}

.ab-grid-4{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  width:100% !important;
  max-width:none !important;
  justify-content:stretch !important;
}

.ab-grid-4 > .ab-card{
  width:100% !important;
  max-width:none !important;
}

.ab-kpi,
.ab-load-card{
  width:100% !important;
  max-width:none !important;
}

.ab-panel{
  width:100% !important;
  max-width:none !important;
}

.ab-service-grid{
  grid-template-columns:repeat(6,minmax(0,1fr)) !important;
}

@media(max-width:1450px){
  .ab-service-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:1180px){
  .ab-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* ===== KPI RECTANGLE SHAPE v1 ===== */

.ab-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
}

.ab-kpi,
.ab-load-card{
  min-height:185px !important;
  padding:20px 22px 18px !important;
  border-radius:20px !important;
}

.ab-kpi h2{
  font-size:38px !important;
  margin:16px 0 8px !important;
  line-height:1 !important;
}

.ab-kpi p{
  font-size:15px !important;
  line-height:1.4 !important;
  margin:0 0 10px !important;
}

.ab-kpi-row{
  margin-top:10px !important;
  padding-top:10px !important;
}

.ab-progress{
  margin-top:14px !important;
}

.ab-load{
  margin-top:8px !important;
}

.ab-load p{
  margin:7px 0 !important;
  font-size:15px !important;
}

.ab-ring{
  width:82px !important;
  height:82px !important;
}

.ab-ring::after{
  inset:8px !important;
}

.ab-ring strong{
  font-size:20px !important;
}

.ab-ring small{
  font-size:10px !important;
}

.kpi-icon{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
}

.kpi-icon svg{
  width:18px !important;
  height:18px !important;
}


/* ===== FIX TOP SYSTEM STATUS PILL ===== */

.ab-status-pill{
  width:220px !important;
  min-width:220px !important;
  height:72px !important;
  padding:0 22px !important;
  border-radius:28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  background:rgba(7,15,28,.82) !important;
  border:1px solid rgba(170,210,255,.14) !important;
  box-shadow:none !important;
}

.ab-status-pill .ab-dot{
  width:10px !important;
  height:10px !important;
  margin:0 !important;
  flex:0 0 10px !important;
}

.ab-status-pill div{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  line-height:1.15 !important;
}

.ab-status-pill small{
  font-size:12px !important;
  font-weight:500 !important;
  color:#9CAABD !important;
  margin-bottom:4px !important;
}

.ab-status-pill strong{
  font-size:18px !important;
  font-weight:700 !important;
  color:#22F0CF !important;
  letter-spacing:-.02em !important;
}


/* ===== CLEAN HERO MODULE v1 ===== */

.ab-topbar,
.ab-status-pill{
  display:none !important;
}

.ab-hero-clean{
  width:100%;
  min-height:190px;
  margin:0 0 28px;
  padding:34px 0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:34px;
  border-bottom:1px solid rgba(170,210,255,.08);
}

.ab-hero-clean .ab-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  font-size:13px;
  letter-spacing:.16em;
  font-weight:900;
  color:#22f0cf;
}

.ab-hero-clean .ab-eyebrow .ab-dot{
  margin:0;
  width:9px;
  height:9px;
}

.ab-hero-clean h1{
  margin:0;
  max-width:980px;
  font-size:clamp(48px,5vw,82px);
  line-height:.94;
  letter-spacing:-.065em;
  color:#f4f7fb;
}

.ab-hero-clean .ab-subtitle{
  margin:18px 0 0;
  max-width:780px;
  font-size:17px;
  line-height:1.65;
  color:#9caabd;
}

.ab-hero-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

.ab-hero-btn{
  min-width:150px;
  height:52px;
  padding:0 22px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.02em;
  border:1px solid rgba(170,210,255,.14);
}

.ab-hero-btn.primary{
  color:#04101f;
  background:linear-gradient(135deg,#22f0cf,#35d8ff);
  box-shadow:0 18px 45px rgba(34,240,207,.18);
}

.ab-hero-btn.ghost{
  color:#eef4ff;
  background:rgba(255,255,255,.045);
}

@media(max-width:1100px){
  .ab-hero-clean{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* ===== REQUESTED HERO STYLE ===== */

.requested-hero{
  min-height:205px !important;
  padding:34px 0 30px !important;
  margin:0 0 30px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  border-bottom:0 !important;
}

.requested-hero .ab-eyebrow{
  margin:0 0 20px !important;
  font-size:13px !important;
  letter-spacing:.16em !important;
  font-weight:900 !important;
}

.requested-hero h1{
  margin:0 !important;
  font-size:clamp(58px,6vw,88px) !important;
  line-height:.92 !important;
  letter-spacing:-.075em !important;
  color:#f6f8ff !important;
  max-width:1120px !important;
}

.requested-hero .ab-subtitle{
  margin:22px 0 0 !important;
  max-width:780px !important;
  font-size:17px !important;
  line-height:1.55 !important;
  color:#a8b4c7 !important;
}

.requested-hero .ab-hero-actions{
  margin-top:34px !important;
  align-self:flex-start !important;
}

.requested-hero .ab-hero-btn.primary{
  min-width:170px !important;
  height:54px !important;
  border-radius:13px !important;
  padding:0 26px !important;
  font-size:16px !important;
  color:#031019 !important;
  background:linear-gradient(135deg,#22f0cf,#35d8ff) !important;
  box-shadow:0 18px 42px rgba(34,240,207,.22) !important;
}

@media(max-width:1100px){
  .requested-hero{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
}

/* =========================================================
   HERO FINAL TUNING
========================================================= */

.requested-hero{
    min-height:165px !important;
    padding-top:6px !important;
    padding-bottom:12px !important;
    margin-bottom:24px !important;
    align-items:flex-start !important;
}

.requested-hero .ab-eyebrow{
    margin:0 0 10px !important;
}

.requested-hero h1{
    margin:0 !important;

    font-size:72px !important;
    font-weight:800 !important;

    letter-spacing:-0.045em !important;
    line-height:1.02 !important;

    max-width:980px !important;
}

.requested-hero .ab-subtitle{
    margin-top:16px !important;

    max-width:720px !important;

    font-size:16px !important;
    line-height:1.65 !important;

    color:#a6b3c5 !important;
}

.requested-hero .ab-hero-actions{
    margin-top:18px !important;
    align-self:flex-start !important;
}


/* =========================================================
   SYSTEM HEALTH HEADER ALIGN WITH OWNER DASHBOARD
========================================================= */

.system-page{
  width:100% !important;
  max-width:1540px !important;
  margin:0 auto !important;
  padding:44px 34px 70px !important;
}

.system-top{
  min-height:205px !important;
  padding:34px 0 30px !important;
  margin:0 0 30px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:32px !important;
  border-bottom:0 !important;
}

.system-top .eyebrow{
  margin:0 0 20px !important;
  color:#22f0cf !important;
  font-size:13px !important;
  letter-spacing:.16em !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
}

.system-top .eyebrow::before{
  content:"";
  width:9px;
  height:9px;
  display:inline-block;
  margin-right:9px;
  border-radius:50%;
  background:#22f0cf;
  box-shadow:0 0 18px rgba(34,240,207,.8);
  vertical-align:middle;
}

.system-top h1{
  margin:0 !important;
  font-size:72px !important;
  font-weight:800 !important;
  letter-spacing:-0.045em !important;
  line-height:1.02 !important;
  color:#f6f8ff !important;
  max-width:980px !important;
}

.system-top .muted{
  margin-top:16px !important;
  max-width:720px !important;
  font-size:16px !important;
  line-height:1.65 !important;
  color:#a6b3c5 !important;
}

.system-back{
  min-width:170px !important;
  height:54px !important;
  border-radius:13px !important;
  padding:0 26px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:16px !important;
  font-weight:900 !important;
  letter-spacing:-.02em !important;
  color:#031019 !important;
  background:linear-gradient(135deg,#22f0cf,#35d8ff) !important;
  box-shadow:0 18px 42px rgba(34,240,207,.22) !important;
}

@media(max-width:1100px){
  .system-top{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
}


/* ===== SYSTEM HEALTH POSITION FIX ===== */

.system-page{
  padding-top:18px !important;
}

.system-top{
  padding-top:8px !important;
  min-height:170px !important;
  margin-bottom:22px !important;
}

.system-back{
  margin-right:-80px !important;
  margin-top:6px !important;
}

.premium-kpi-grid.compact{
  margin-top:0 !important;
}


/* =========================================================
   SYSTEM BACK BUTTON FINAL
========================================================= */

.system-back{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin-left:auto !important;
    margin-right:0 !important;
    width:172px !important;
    height:46px !important;
    padding:0 24px !important;
    border-radius:14px !important;
    border:none !important;
    background:linear-gradient(135deg,#22f0cf 0%,#35d8ff 100%) !important;
    color:#03131d !important;
    font-size:16px !important;
    font-weight:800 !important;
    letter-spacing:-0.02em !important;
    text-decoration:none !important;
    box-shadow:0 0 35px rgba(34,240,207,.28),0 12px 28px rgba(34,240,207,.18) !important;
}

.system-back:hover{
    transform:translateY(-2px) !important;
    filter:brightness(1.03) !important;
}


/* =========================================================
   FIX SYSTEM BACK BUTTON — NO WRAP / RIGHT POSITION
========================================================= */

.system-top{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  width:100% !important;
}

.system-top > div{
  flex:1 1 auto !important;
}

.system-back{
  width:auto !important;
  min-width:190px !important;
  height:54px !important;

  padding:0 28px !important;
  margin-left:auto !important;
  margin-right:0 !important;
  margin-top:6px !important;

  white-space:nowrap !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius:14px !important;
  border:none !important;

  background:linear-gradient(135deg,#22f0cf,#35d8ff) !important;
  color:#03131d !important;

  font-size:16px !important;
  font-weight:900 !important;
  letter-spacing:-0.02em !important;
  text-decoration:none !important;

  box-shadow:0 18px 42px rgba(34,240,207,.22) !important;
}


/* =========================================================
   OWNER BOTTOM PANELS PREMIUM FIX
========================================================= */

.ab-bottom-grid{
  margin-top:18px !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:18px !important;
}

.ab-events,
.ab-bottom-grid > .ab-card{
  min-height:260px !important;
  padding:24px !important;
  border-radius:22px !important;
}

.ab-event{
  min-height:44px !important;
  padding:10px 0 !important;
  grid-template-columns:26px 1fr auto !important;
}

.ab-event p{
  font-size:15px !important;
  line-height:1.35 !important;
}

.ab-event time{
  font-size:13px !important;
}

.ab-actions{
  gap:12px !important;
}

.ab-actions a{
  min-height:58px !important;
  padding:14px 18px !important;
  border-radius:14px !important;
  font-size:15px !important;
}

.ab-actions .svg-line{
  width:20px !important;
  height:20px !important;
}


/* ===== RECENT EVENTS SVG ICONS ===== */

.event-icon{
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  flex:0 0 22px !important;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(170,210,255,.12) !important;
}

.event-icon svg{
  width:14px !important;
  height:14px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.1 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.event-icon.success{
  color:#22f0cf !important;
  border-color:rgba(34,240,207,.26) !important;
  background:rgba(34,240,207,.08) !important;
}

.event-icon.info{
  color:#58a6ff !important;
  border-color:rgba(88,166,255,.28) !important;
  background:rgba(88,166,255,.08) !important;
}

.event-icon.warning{
  color:#ffc84a !important;
  border-color:rgba(255,200,74,.30) !important;
  background:rgba(255,200,74,.08) !important;
}

.event-dot{
  display:none !important;
}


/* ===== QUICK ACTIONS PREMIUM ICONS ===== */

.qa-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}

.qa-actions a{
  min-height:58px !important;
  padding:14px 18px !important;
  border-radius:14px !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(170,210,255,.12) !important;
  color:#f4f7fb !important;
  text-decoration:none !important;
  font-size:15px !important;
  font-weight:850 !important;
  letter-spacing:-.02em !important;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.qa-actions a:hover{
  transform:translateY(-1px);
  border-color:rgba(34,240,207,.32) !important;
  background:rgba(34,240,207,.055) !important;
}

.qa-icon{
  width:28px !important;
  height:28px !important;
  flex:0 0 28px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.035) !important;
  border:1px solid rgba(170,210,255,.12) !important;
}

.qa-icon svg{
  width:17px !important;
  height:17px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.9 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.qa-icon.cyan{
  color:#22f0cf !important;
  background:rgba(34,240,207,.08) !important;
  border-color:rgba(34,240,207,.24) !important;
}

.qa-icon.blue{
  color:#58a6ff !important;
  background:rgba(88,166,255,.08) !important;
  border-color:rgba(88,166,255,.24) !important;
}

.qa-icon.purple{
  color:#8a5cff !important;
  background:rgba(138,92,255,.10) !important;
  border-color:rgba(138,92,255,.28) !important;
}

.qa-icon.gold{
  color:#ffc84a !important;
  background:rgba(255,200,74,.08) !important;
  border-color:rgba(255,200,74,.26) !important;
}

.qa-icon.muted{
  color:#d8e7ff !important;
  background:rgba(216,231,255,.05) !important;
  border-color:rgba(216,231,255,.14) !important;
}


/* =========================================================
   CORE SERVICES POLISH v1
========================================================= */

.ab-panel{
  padding:26px 28px !important;
}

.ab-service-grid{
  gap:16px !important;
}

.ab-service-card{
  min-height:235px !important;
  padding:20px !important;
  border-radius:18px !important;
  border:1px solid rgba(170,210,255,.12) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012)),
    rgba(12,20,34,.82) !important;
  box-shadow:none !important;
}

.ab-service-card:hover{
  transform:translateY(-2px);
  border-color:rgba(34,240,207,.28) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.018)),
    rgba(12,20,34,.90) !important;
}

.ab-service-card h3{
  font-size:17px !important;
  font-weight:800 !important;
  letter-spacing:-.03em !important;
}

.ab-service-card small{
  font-size:13px !important;
  color:#9caabd !important;
}

.ab-service-icon{
  width:44px !important;
  height:44px !important;
  border-radius:14px !important;
}

.ab-mini-chart{
  height:42px !important;
  margin:10px 0 12px !important;
  opacity:.95 !important;
}

.ab-button{
  height:44px !important;
  padding:0 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:12px !important;
  font-size:15px !important;
  font-weight:850 !important;
  background:rgba(255,255,255,.055) !important;
}

.ab-button:hover{
  background:rgba(34,240,207,.10) !important;
  border-color:rgba(34,240,207,.30) !important;
}

.ab-section-head h2{
  font-size:22px !important;
  font-weight:850 !important;
}


/* ==========================================================
   ATMOSBOOST FINAL TYPOGRAPHY
========================================================== */

.ab-section-head h2{
    font-size:22px !important;
    font-weight:700 !important;
    letter-spacing:-0.03em;
    line-height:1.2;
    color:#F4F7FB;
    font-family:Inter,sans-serif;
}

.ab-section-head a{
    font-size:14px !important;
    font-weight:700 !important;
}

.ab-service-card h3{
    font-size:18px !important;
    font-weight:700 !important;
    letter-spacing:-0.02em;
    line-height:1.25;
    color:#F5F8FD;
    font-family:Inter,sans-serif;
}

.ab-service-card p{
    font-size:15px !important;
    font-weight:600 !important;
    line-height:1.35;
    font-family:Inter,sans-serif;
}

.ab-service-card p.dev{
    font-size:15px !important;
    font-weight:600 !important;
}

.ab-service-card small{
    font-size:14px !important;
    font-weight:500 !important;
    line-height:1.55;
    color:#97A5BB !important;
    font-family:Inter,sans-serif;
}

.ab-button{
    font-size:16px !important;
    font-weight:700 !important;
    letter-spacing:-0.02em;
    font-family:Inter,sans-serif;
}

.ab-event p{
    font-size:16px !important;
    font-weight:500 !important;
    line-height:1.45;
    color:#F4F7FB;
    font-family:Inter,sans-serif;
}

.ab-event time{
    font-size:13px !important;
    font-weight:500 !important;
    color:#97A5BB !important;
    font-family:Inter,sans-serif;
}

.ab-actions a{
    font-size:16px !important;
    font-weight:700 !important;
    letter-spacing:-0.02em;
    font-family:Inter,sans-serif;
}


/* =========================================================
   ATMOSBOOST TYPOGRAPHY FINAL OVERRIDE v2
========================================================= */

.dashboard-body,
.dash-main,
.ab-page,
.ab-card,
.ab-panel,
.ab-service-card,
.ab-bottom-grid,
.qa-actions,
.ab-event{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  -webkit-font-smoothing:antialiased !important;
  text-rendering:geometricPrecision !important;
}

.ab-section-head h2,
.ab-service-card h3,
.ab-card-head span:first-child,
.qa-actions a span,
.ab-button,
.ab-event p{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
  text-shadow:none !important;
}

.ab-section-head h2{
  font-size:22px !important;
  font-weight:650 !important;
  letter-spacing:-0.035em !important;
  line-height:1.15 !important;
}

.ab-service-card h3{
  font-size:18px !important;
  font-weight:650 !important;
  letter-spacing:-0.035em !important;
  line-height:1.2 !important;
}

.ab-service-card p{
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.35 !important;
}

.ab-service-card small{
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1.45 !important;
  color:#9caabd !important;
}

.ab-button{
  font-size:15px !important;
  font-weight:650 !important;
  letter-spacing:-0.025em !important;
}

.ab-event p{
  font-size:15px !important;
  font-weight:500 !important;
  letter-spacing:-0.015em !important;
}

.qa-actions a span{
  font-size:15px !important;
  font-weight:650 !important;
  letter-spacing:-0.025em !important;
}


/* =========================================================
   CORE SERVICES REAL SPARKLINES
========================================================= */

.ab-mini-chart{
  display:none !important;
}

.ab-sparkline{
  height:42px !important;
  margin:12px 0 14px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01)),
    rgba(255,255,255,.02) !important;
  border:1px solid rgba(170,210,255,.06) !important;
}

.ab-sparkline svg{
  width:100% !important;
  height:100% !important;
  display:block !important;
}

.ab-sparkline .area{
  opacity:.20;
  fill:currentColor;
}

.ab-sparkline .line{
  fill:none;
  stroke:currentColor;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 7px currentColor);
}

.ab-sparkline.cyan{
  color:#22f0cf;
  background:
    linear-gradient(180deg,rgba(34,240,207,.09),rgba(34,240,207,.018)),
    rgba(255,255,255,.02) !important;
}

.ab-sparkline.purple{
  color:#8a5cff;
  background:
    linear-gradient(180deg,rgba(138,92,255,.10),rgba(138,92,255,.018)),
    rgba(255,255,255,.02) !important;
}

.ab-sparkline.gold{
  color:#ffc84a;
  background:
    linear-gradient(180deg,rgba(255,200,74,.10),rgba(255,200,74,.018)),
    rgba(255,255,255,.02) !important;
}

.ab-service-card:hover .ab-sparkline .line{
  stroke-width:3.6;
}


/* =========================================================
   CORE SERVICES UNIFIED PREMIUM SPARKLINES
========================================================= */

.ab-sparkline,
.ab-sparkline.cyan,
.ab-sparkline.purple,
.ab-sparkline.gold{
  height:50px !important;
  margin:8px 0 10px !important;
  color:#22f0cf !important;
  border-radius:14px !important;
  border:1px solid rgba(34,240,207,.10) !important;
  background:
    radial-gradient(circle at 12% 45%,rgba(34,240,207,.16),transparent 35%),
    linear-gradient(180deg,rgba(34,240,207,.085),rgba(34,240,207,.018)),
    rgba(255,255,255,.018) !important;
}

.ab-sparkline .area{
  opacity:.16 !important;
  fill:currentColor !important;
}

.ab-sparkline .line{
  stroke:#22f0cf !important;
  stroke-width:3 !important;
  filter:
    drop-shadow(0 0 5px rgba(34,240,207,.55))
    drop-shadow(0 0 12px rgba(34,240,207,.18)) !important;
}

.ab-service-card{
  overflow:hidden !important;
}

.ab-service-card:hover .ab-sparkline{
  border-color:rgba(34,240,207,.22) !important;
  background:
    radial-gradient(circle at 12% 45%,rgba(34,240,207,.22),transparent 35%),
    linear-gradient(180deg,rgba(34,240,207,.105),rgba(34,240,207,.02)),
    rgba(255,255,255,.025) !important;
}

.ab-service-card:hover .ab-sparkline .line{
  stroke-width:3.3 !important;
}


/* =========================================================
   CORE SERVICES PREMIUM GRAPH STYLE v2
========================================================= */

.ab-sparkline,
.ab-sparkline.cyan,
.ab-sparkline.purple,
.ab-sparkline.gold{
  height:52px !important;
  margin:14px 0 14px !important;
  color:#22f0cf !important;
  border-radius:14px !important;
  border:1px solid rgba(170,210,255,.08) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)),
    linear-gradient(90deg,rgba(170,210,255,.055) 1px,transparent 1px),
    linear-gradient(180deg,rgba(170,210,255,.045) 1px,transparent 1px),
    rgba(8,16,30,.68) !important;
  background-size:auto,32px 100%,100% 16px,auto !important;
  position:relative !important;
}

.ab-sparkline::after{
  content:"";
  position:absolute;
  right:10px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22f0cf;
  box-shadow:0 0 14px rgba(34,240,207,.8);
  transform:translateY(-50%);
  opacity:.9;
}

.ab-sparkline .area{
  opacity:.08 !important;
  fill:#22f0cf !important;
}

.ab-sparkline .line{
  stroke:#22f0cf !important;
  stroke-width:2.4 !important;
  filter:
    drop-shadow(0 0 4px rgba(34,240,207,.55))
    drop-shadow(0 0 10px rgba(34,240,207,.16)) !important;
}

.ab-service-card:hover .ab-sparkline{
  border-color:rgba(34,240,207,.18) !important;
  background:
    linear-gradient(180deg,rgba(34,240,207,.055),rgba(255,255,255,.012)),
    linear-gradient(90deg,rgba(34,240,207,.07) 1px,transparent 1px),
    linear-gradient(180deg,rgba(34,240,207,.055) 1px,transparent 1px),
    rgba(8,16,30,.74) !important;
  background-size:auto,32px 100%,100% 16px,auto !important;
}

.ab-service-card:hover .ab-sparkline .line{
  stroke-width:2.7 !important;
}


/* =========================================================
   ATMOSBOOST PREMIUM SPARKLINES v3 FINAL
   Apple / TradingView inspired
========================================================= */

.ab-sparkline,
.ab-sparkline.cyan,
.ab-sparkline.purple,
.ab-sparkline.gold{
  height:52px !important;
  margin:14px 0 14px !important;
  border-radius:14px !important;
  overflow:hidden !important;

  color:#22F0CF !important;

  border:1px solid rgba(34,240,207,.08) !important;

  background:
    radial-gradient(circle at 18% 85%, rgba(34,240,207,.16), transparent 42%),
    linear-gradient(180deg, rgba(34,240,207,.075), rgba(34,240,207,.018)),
    rgba(8,16,30,.72) !important;

  background-size:auto !important;
  position:relative !important;
}

/* remove old dot and any decorative pseudo grid */
.ab-sparkline::before,
.ab-sparkline::after{
  content:none !important;
  display:none !important;
}

/* SVG base */
.ab-sparkline svg{
  width:100% !important;
  height:100% !important;
  display:block !important;
}

/* soft area fill */
.ab-sparkline .area{
  fill:#22F0CF !important;
  opacity:.13 !important;
}

/* premium neon line */
.ab-sparkline .line{
  fill:none !important;
  stroke:#22F0CF !important;
  stroke-width:2.35 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;

  filter:
    drop-shadow(0 0 4px rgba(34,240,207,.50))
    drop-shadow(0 0 11px rgba(34,240,207,.18)) !important;

  animation:sparklineEnter .85s ease both;
}

/* hover: calm, not toy-like */
.ab-service-card:hover .ab-sparkline{
  border-color:rgba(34,240,207,.18) !important;
  background:
    radial-gradient(circle at 18% 85%, rgba(34,240,207,.22), transparent 42%),
    linear-gradient(180deg, rgba(34,240,207,.095), rgba(34,240,207,.02)),
    rgba(8,16,30,.82) !important;
}

.ab-service-card:hover .ab-sparkline .line{
  stroke-width:2.65 !important;
}

/* presentation animation */
@keyframes sparklineEnter{
  from{
    opacity:0;
    transform:translateY(7px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* AtmosBoost System Health hard spacing fix */
.system-page .node-heading {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.system-page .node-heading + .premium-kpi-grid.compact {
  margin-top: -120px !important;
  padding-top: 0 !important;
}

.system-page .premium-bottom-grid.compact {
  margin-top: 18px !important;
}

/* FINAL System Health node spacing fix */
.system-page .node-label {
  display: block !important;
  margin-top: 34px !important;
  margin-bottom: 18px !important;
}

.system-page .guardian-label {
  margin-top: 30px !important;
}

.system-page .node-label + .premium-kpi-grid.compact {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.system-page .premium-kpi-grid.compact {
  margin-top: 0 !important;
}

.system-page .premium-bottom-grid.compact {
  margin-top: 18px !important;
}

/* Core service graphs: one color */
.ab-service-card .ab-sparkline,
.ab-service-card .ab-sparkline.cyan,
.ab-service-card .ab-sparkline.purple,
.ab-service-card .ab-sparkline.gold {
  color:#22F0CF !important;
}

.ab-service-card .ab-sparkline .area {
  fill:#22F0CF !important;
}

.ab-service-card .ab-sparkline .line {
  stroke:#22F0CF !important;
}


/* Recent Events Backup icon purple */
.event-icon.backup{
  background: rgba(138,92,255,.16) !important;
  border-color: rgba(138,92,255,.30) !important;
  color: #8A5CFF !important;
}

.event-icon.backup svg,
.event-icon.backup path{
  stroke: #8A5CFF !important;
  fill: none !important;
}


/* =========================================================
   OWNER SIDEBAR FIX
   - sidebar scrolls with page
   - logo is not cropped
========================================================= */

.dashboard-layout{
  align-items: stretch !important;
}

.sidebar{
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

.sidebar img{
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 0 30px 0 !important;
}


/* OWNER SIDEBAR STICKY RESTORE */
.sidebar{
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

.sidebar img{
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}


/* =========================================================
   OWNER SIDEBAR FIXED FULL VIEW
   Menu always stays visible while page scrolls
========================================================= */

.dashboard-layout{
  display: block !important;
}

.sidebar{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;

  width: 220px !important;
  height: 100vh !important;
  min-height: 100vh !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  z-index: 1000 !important;
}

.sidebar img{
  width: 190px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 0 30px 0 !important;
}

.dash-main{
  margin-left: 220px !important;
  width: calc(100% - 220px) !important;
}


/* OWNER SIDEBAR LOGO FIT */
.sidebar img{
  width: 175px !important;
  max-width: 175px !important;
  height: auto !important;
  object-fit: contain !important;
}


/* OWNER SIDEBAR LOGO SIZE UP */
.sidebar img{
  width: 205px !important;
  max-width: 205px !important;
  height: auto !important;
}


/* =========================================================
   SYSTEM HEALTH — COMPACT CARD HEIGHT
========================================================= */

.premium-kpi-grid.compact .premium-kpi{
    min-height:108px !important;
    padding-top:14px !important;
    padding-bottom:14px !important;
}


/* =========================================================
   SYSTEM HEALTH — COMPACT CARD HEIGHT V2
========================================================= */

.premium-kpi-grid.compact .premium-kpi{
    min-height:96px !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
}


/* =========================================================
   OWNER ACCOUNT ISOLATED
   Only sidebar bottom account card
========================================================= */

.sidebar .sidebar-account--owner{
  margin-top:auto !important;
  margin-bottom:22px !important;
  padding:14px !important;
  min-height:76px !important;

  border-radius:17px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(255,255,255,.035) !important;

  display:grid !important;
  grid-template-columns:42px minmax(82px,1fr) 70px !important;
  align-items:center !important;
  gap:10px !important;
}

.sidebar .sidebar-account--owner .owner-avatar{
  width:42px !important;
  height:42px !important;
  border-radius:12px !important;

  background:rgba(34,240,207,.13) !important;
  border:1px solid rgba(34,240,207,.22) !important;
  color:#22F0CF !important;

  display:grid !important;
  place-items:center !important;

  font-size:18px !important;
  font-weight:900 !important;
}

.sidebar .sidebar-account--owner .owner-meta{
  min-width:0 !important;
  overflow:hidden !important;
  line-height:1.15 !important;
}

.sidebar .sidebar-account--owner .owner-meta strong{
  display:block !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

.sidebar .sidebar-account--owner .owner-meta span{
  display:block !important;
  color:#aab7cc !important;
  font-size:11px !important;
  white-space:nowrap !important;
}

.sidebar .sidebar-account--owner .owner-logout{
  width:70px !important;
  height:40px !important;
  padding:0 !important;

  color:#dce7f6 !important;
  text-decoration:none !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:6px !important;

  font-size:12px !important;
  font-weight:900 !important;
}

.sidebar .sidebar-account--owner .owner-logout svg{
  width:17px !important;
  height:17px !important;
  flex:0 0 auto !important;

  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

.sidebar .sidebar-account--owner .owner-logout:hover{
  color:#22F0CF !important;
}



/* =========================================================
   OWNER ACCOUNT FINAL TWEAK
========================================================= */

.sidebar .sidebar-account--owner{
    margin-top:auto !important;
    margin-bottom:2px !important;

    display:grid !important;
    grid-template-columns:42px minmax(95px,1fr) 38px !important;
    align-items:center !important;
    gap:10px !important;
}

.sidebar .sidebar-account--owner .owner-avatar{
    width:42px !important;
    height:42px !important;
}

.sidebar .sidebar-account--owner .owner-meta{
    min-width:0 !important;
}

.sidebar .sidebar-account--owner .owner-meta strong{
    font-size:13px !important;
}

.sidebar .sidebar-account--owner .owner-meta span{
    font-size:11px !important;
}

.sidebar .sidebar-account--owner .owner-logout{
    width:38px !important;
    height:42px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.sidebar .sidebar-account--owner .owner-logout span{
    display:none !important;
}

.sidebar .sidebar-account--owner .owner-logout svg{
    width:23px !important;
    height:23px !important;
}

.sidebar{
    padding-bottom:2px !important;
}

/* OWNER ACCOUNT — FORCE BOTTOM */
.sidebar{
  position:fixed !important;
  padding-bottom:0 !important;
}

.sidebar .sidebar-account--owner{
  position:absolute !important;
  left:14px !important;
  right:14px !important;
  bottom:8px !important;
  margin:0 !important;
  width:auto !important;
}


/* ===== Owner Account FINAL Settings + Logout ===== */
.sidebar .sidebar-account--owner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.sidebar .sidebar-account--owner .owner-account-main {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.sidebar .sidebar-account--owner .owner-account-main:hover {
  opacity: .82 !important;
}

.sidebar .sidebar-account--owner .owner-logout {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  font-size: 25px !important;
  line-height: 1 !important;
  color: rgba(255,255,255,.95) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.sidebar .sidebar-account--owner .owner-logout svg,
.sidebar .sidebar-account--owner .owner-logout span {
  display: none !important;
}

.sidebar .sidebar-account--owner .owner-logout:hover {
  color: #ff6b6b !important;
}

/* ===== Event Category Icons Final ===== */
.event-icon.icon-backup {
  background: rgba(138, 92, 255, .16);
  border-color: rgba(138, 92, 255, .34);
  color: #8a5cff;
}

.event-icon.icon-trader {
  background: rgba(88, 166, 255, .16);
  border-color: rgba(88, 166, 255, .34);
  color: #58a6ff;
}

.event-icon.icon-statedesk {
  background: rgba(255, 205, 65, .15);
  border-color: rgba(255, 205, 65, .34);
  color: #ffcd41;
}

.event-icon.icon-terminal {
  background: rgba(25, 246, 210, .13);
  border-color: rgba(25, 246, 210, .34);
  color: #19f6d2;
}

.event-icon.icon-ai {
  background: rgba(25, 246, 150, .13);
  border-color: rgba(25, 246, 150, .34);
  color: #19f696;
}

.event-icon.icon-guardian {
  background: rgba(255, 176, 32, .14);
  border-color: rgba(255, 176, 32, .34);
  color: #ffb020;
}

.event-icon.icon-ide {
  background: rgba(120, 145, 255, .14);
  border-color: rgba(120, 145, 255, .32);
  color: #7891ff;
}

.event-icon.icon-default {
  background: rgba(160, 174, 192, .13);
  border-color: rgba(160, 174, 192, .28);
  color: #a0aec0;
}

.event-icon svg,
.event-icon path,
.event-icon rect,
.event-icon circle {
  stroke: currentColor;
}

/* ===== Services Page v1 Read Only ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border: 1px solid rgba(170,210,255,.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  padding: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-card h3 {
  margin: 0 0 6px;
  color: #f4f7fb;
}

.service-card p {
  margin: 0;
}

.service-card .online {
  color: #19f6d2;
}

.service-card .dev {
  color: #ffcd41;
}

.service-card .offline {
  color: #ff6b6b;
}

.service-subtitle {
  margin-top: 14px !important;
  color: #9caabd;
  font-size: 14px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(170,210,255,.12);
  color: #9caabd;
  font-size: 13px;
}

.service-meta b {
  color: #f4f7fb;
}

.service-latest {
  margin-top: 16px;
  min-height: 70px;
}

.service-latest span {
  color: #9caabd;
  font-size: 13px;
}

.service-latest p {
  margin-top: 6px;
  color: #f4f7fb;
  font-weight: 700;
  line-height: 1.35;
}

.service-latest time {
  display: block;
  margin-top: 6px;
  color: #9caabd;
  font-size: 13px;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.service-actions .muted,
.service-actions button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.event-icon.icon-wallet {
  background: rgba(0, 185, 255, .14);
  border-color: rgba(0, 185, 255, .34);
  color: #00b9ff;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Trader Dashboard v1 Read Only ===== */
.trader-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.trader-kpi {
  border: 1px solid rgba(170,210,255,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  padding: 20px;
}

.trader-kpi span,
.trader-status-list span,
.service-latest span {
  color: #9caabd;
  font-size: 13px;
}

.trader-kpi strong {
  display: block;
  margin-top: 8px;
  color: #19f6d2;
  font-size: 30px;
  line-height: 1;
}

.trader-kpi small {
  display: block;
  margin-top: 10px;
  color: #9caabd;
}

.trader-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.trader-actions .locked {
  opacity: .48;
  cursor: not-allowed;
}

.trader-actions .danger {
  border-color: rgba(255, 90, 90, .35);
}

.trader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.trader-panel {
  padding: 22px;
}

.trader-status-list {
  display: grid;
  gap: 12px;
}

.trader-status-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(170,210,255,.12);
}

.trader-status-list b {
  color: #f4f7fb;
  text-align: right;
  max-width: 70%;
  overflow-wrap: anywhere;
}

.trader-code-list,
.trader-log-box {
  display: grid;
  gap: 8px;
}

.trader-code-list code,
.trader-log-box code {
  display: block;
  border: 1px solid rgba(170,210,255,.12);
  background: rgba(2,7,19,.35);
  color: #dce7f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.trader-outlook-list {
  display: grid;
  gap: 8px;
}

.trader-outlook-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  border: 1px solid rgba(170,210,255,.12);
  background: rgba(2,7,19,.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}

.trader-outlook-base {
  color: #f4f7fb;
  min-width: 44px;
}

.trader-outlook-bias {
  white-space: nowrap;
}

.trader-outlook-reason {
  color: #dce7f6;
  overflow-wrap: anywhere;
}

.trader-outlook-nodata {
  color: #95a4ba;
}

.trader-outlook-market {
  margin: 12px 0 0;
  color: #dce7f6;
  font-size: 12px;
}

.trader-table-wrap {
  overflow-x: auto;
}

.trader-table {
  width: 100%;
  border-collapse: collapse;
  color: #dce7f6;
}

.trader-table th,
.trader-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(170,210,255,.12);
  text-align: left;
  white-space: nowrap;
}

.trader-table th {
  color: #9caabd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.trader-mini-event {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(170,210,255,.12);
}

.trader-mini-event p {
  margin: 0;
  color: #f4f7fb;
  font-weight: 700;
}

.trader-mini-event time {
  color: #9caabd;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .trader-kpis,
  .trader-actions,
  .trader-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Trader spacing fix ===== */
.trader-grid {
  gap: 32px !important;
  margin-top: 24px !important;
  margin-bottom: 32px !important;
  align-items: start !important;
}

.trader-panel {
  margin-bottom: 18px;
}

/* AtmosBoost Services Control Center */
.services-page{display:grid;gap:18px;width:100%}
.svc-health-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.svc-health-card{border:1px solid rgba(255,255,255,.09);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025));padding:18px;box-shadow:0 16px 50px rgba(0,0,0,.22)}
.svc-health-card span{display:block;color:#91a1b8;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.svc-health-card strong{display:block;font-size:28px;color:#fff;margin-top:8px}
.svc-health-card small{color:#8b9ab0}
.svc-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.svc-module-card{border:1px solid rgba(255,255,255,.09);border-radius:22px;background:rgba(8,18,42,.78);padding:22px;box-shadow:0 16px 55px rgba(0,0,0,.24);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.svc-module-card:hover{border-color:rgba(34,240,207,.22);background:rgba(8,18,42,.82);}
.svc-card-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.svc-card-top h2{margin:0 0 7px;color:#fff;font-size:22px}
.svc-card-top p{margin:0;color:#9eacc2;font-size:13px;line-height:1.5}
.svc-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:700}
.svc-status.online{color:#19f6d2;background:rgba(25,246,210,.1);border:1px solid rgba(25,246,210,.28)}
.svc-status.offline{color:#ff6b6b;background:rgba(255,107,107,.11);border:1px solid rgba(255,107,107,.3)}
.svc-status.planned{color:#ffd166;background:rgba(255,209,102,.11);border:1px solid rgba(255,209,102,.28)}
.svc-status.unknown{color:#9fb0c9;background:rgba(159,176,201,.11);border:1px solid rgba(159,176,201,.22)}
.svc-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}
.svc-meta div{border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);border-radius:14px;padding:12px}
.svc-meta span{display:block;color:#7f8fa8;font-size:11px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}
.svc-meta strong{color:#eff5ff;font-size:13px}
.svc-path{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#8290a8;background:rgba(0,0,0,.2);border-radius:12px;padding:10px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.ab-button.small{padding:9px 12px;font-size:13px;border-radius:11px}
.ab-button.ghost{background:rgba(255,255,255,.05);color:#d8e3f2}
.ab-button.disabled{opacity:.42;cursor:not-allowed}
.log-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 20px}
.log-filter{display:inline-flex;text-decoration:none;color:#aebbd0;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:999px;padding:9px 12px;font-size:13px}
.log-filter.active,.log-filter:hover{color:#19f6d2;border-color:rgba(25,246,210,.35);background:rgba(25,246,210,.1)}
.event-icon.trader{background:rgba(25,246,210,.12);border-color:rgba(25,246,210,.35);color:#19f6d2}
.event-icon.statedesk{background:rgba(255,209,102,.12);border-color:rgba(255,209,102,.35);color:#ffd166}
.event-icon.terminal{background:rgba(88,166,255,.12);border-color:rgba(88,166,255,.35);color:#58a6ff}
.event-icon.ai{background:rgba(138,92,255,.13);border-color:rgba(138,92,255,.35);color:#8a5cff}
.event-icon.guardian{background:rgba(120,255,170,.12);border-color:rgba(120,255,170,.35);color:#78ffaa}
.empty-state{padding:26px;border:1px solid rgba(255,255,255,.08);border-radius:18px;color:#9eacc2;text-align:center}
@media(max-width:980px){.svc-health-grid{grid-template-columns:repeat(2,1fr)}.svc-module-grid{grid-template-columns:1fr}}

/* Services Control Center layout fix */
.services-page{
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.services-page > .ab-section-head{
  display:block !important;
  margin-bottom:18px !important;
}

.services-page > .ab-section-head h1{
  max-width:760px !important;
  line-height:.95 !important;
}

.svc-health-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:22px !important;
}

.svc-module-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:16px !important;
}

.svc-module-card{
  padding:18px !important;
  border-radius:18px !important;
}

.svc-card-top{
  min-height:92px !important;
}

.svc-card-top h2{
  font-size:20px !important;
}

.svc-card-top p{
  font-size:12px !important;
}

.svc-meta{
  grid-template-columns:repeat(2,1fr) !important;
  gap:10px !important;
  margin:14px 0 !important;
}

.svc-meta div{
  padding:10px !important;
}

.svc-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  gap:10px !important;
}

.svc-actions .ab-button{
  width:100% !important;
  text-align:center !important;
  justify-content:center !important;
}

@media(max-width:1450px){
  .svc-module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:980px){
  .services-page{
    padding-left:14px !important;
    padding-right:14px !important;
  }

  .svc-health-grid{
    grid-template-columns:repeat(2,1fr) !important;
  }

  .svc-module-grid{
    grid-template-columns:1fr !important;
  }
}

/* Services Control Center layout fix */
.services-page{
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.services-page > .ab-section-head{
  display:block !important;
  margin-bottom:18px !important;
}

.services-page > .ab-section-head h1{
  max-width:760px !important;
  line-height:.95 !important;
}

.svc-health-grid{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:22px !important;
}

.svc-module-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin-top:16px !important;
}

.svc-module-card{
  padding:18px !important;
  border-radius:18px !important;
}

.svc-card-top{
  min-height:92px !important;
}

.svc-card-top h2{
  font-size:20px !important;
}

.svc-card-top p{
  font-size:12px !important;
}

.svc-meta{
  grid-template-columns:repeat(2,1fr) !important;
  gap:10px !important;
  margin:14px 0 !important;
}

.svc-meta div{
  padding:10px !important;
}

.svc-actions{
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  gap:10px !important;
}

.svc-actions .ab-button{
  width:100% !important;
  text-align:center !important;
  justify-content:center !important;
}

@media(max-width:1450px){
  .svc-module-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:980px){
  .services-page{
    padding-left:14px !important;
    padding-right:14px !important;
  }

  .svc-health-grid{
    grid-template-columns:repeat(2,1fr) !important;
  }

  .svc-module-grid{
    grid-template-columns:1fr !important;
  }
}

/* FINAL Logs page unique classes */
.logs-page-final{
  width:100% !important;
  max-width:1500px !important;
  margin:0 auto !important;
  padding:10px 22px 40px !important;
  display:grid !important;
  gap:24px !important;
}

.logs-final-hero{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:24px !important;
}

.logs-eyebrow{
  display:block !important;
  color:#18f5d2 !important;
  font-size:12px !important;
  font-weight:900 !important;
  letter-spacing:.16em !important;
  margin-bottom:14px !important;
}

.logs-final-hero h1{
  margin:0 !important;
  font-size:clamp(54px,7vw,86px) !important;
  line-height:.9 !important;
  letter-spacing:-.06em !important;
  color:#f5f7ff !important;
}

.logs-final-hero p{
  margin:18px 0 0 !important;
  color:#aeb9ca !important;
  font-size:16px !important;
}

.logs-final-back{
  color:#18f5d2 !important;
  text-decoration:none !important;
  font-weight:900 !important;
  border:1px solid rgba(24,245,210,.22) !important;
  background:rgba(24,245,210,.07) !important;
  padding:10px 14px !important;
  border-radius:12px !important;
}

.logs-final-panel{
  border:1px solid rgba(255,255,255,.09) !important;
  border-radius:24px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)) !important;
  padding:22px !important;
  box-shadow:0 18px 60px rgba(0,0,0,.25) !important;
}

.logs-final-head{
  display:flex !important;
  justify-content:space-between !important;
  align-items:flex-start !important;
  gap:16px !important;
  margin-bottom:16px !important;
}

.logs-final-head h2{
  margin:0 0 6px !important;
  color:#fff !important;
  font-size:24px !important;
}

.logs-final-head p{
  margin:0 !important;
  color:#8f9db2 !important;
}

.logs-final-head span{
  color:#9fb0c8 !important;
  font-weight:800 !important;
}

.logs-filter-row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:16px 0 18px !important;
}

.logs-filter-pill{
  display:inline-flex !important;
  align-items:center !important;
  color:#aebbd0 !important;
  text-decoration:none !important;
  border:1px solid rgba(255,255,255,.09) !important;
  background:rgba(255,255,255,.035) !important;
  border-radius:999px !important;
  padding:8px 11px !important;
  font-size:12px !important;
}

.logs-filter-pill.active,
.logs-filter-pill:hover{
  color:#18f5d2 !important;
  border-color:rgba(24,245,210,.35) !important;
  background:rgba(24,245,210,.1) !important;
}

.logs-final-list{
  display:grid !important;
}

.logs-final-event{
  display:grid !important;
  grid-template-columns:30px 1fr auto !important;
  gap:14px !important;
  align-items:center !important;
  min-height:46px !important;
  padding:12px 0 !important;
  border-bottom:1px solid rgba(255,255,255,.075) !important;
}

.logs-final-event:last-child{
  border-bottom:none !important;
}

.logs-final-icon{
  width:24px !important;
  height:24px !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#18f5d2 !important;
  background:rgba(24,245,210,.09) !important;
  border:1px solid rgba(24,245,210,.24) !important;
  font-size:11px !important;
  font-weight:900 !important;
}

.logs-final-text{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
  min-width:0 !important;
}

.logs-final-text strong{
  color:#f5f7ff !important;
  white-space:nowrap !important;
}

.logs-final-text span{
  color:#dce5f3 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.logs-final-event time{
  color:#8ea0b8 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

@media(max-width:980px){
  .logs-page-final{padding-left:14px !important;padding-right:14px !important}
  .logs-final-hero{display:block !important}
  .logs-final-back{display:inline-flex !important;margin-top:18px !important}
  .logs-final-event{grid-template-columns:30px 1fr !important}
  .logs-final-event time{grid-column:2 !important;font-size:12px !important}
}

/* Logs view-more small control */
.logs-view-more-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:12px 0 16px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  color:#9fb0c8;
  font-size:13px;
}
.logs-view-more-row a{
  color:#18f5d2;
  text-decoration:none;
  font-weight:800;
}

/* Logs filter bar v2 */
.log-filter-bar-v2{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 18px;
}

.log-filter-v2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#aebbd0;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.035);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
}

.log-filter-v2.active,
.log-filter-v2:hover{
  color:#18f5d2;
  border-color:rgba(24,245,210,.35);
  background:rgba(24,245,210,.1);
}

.log-filter-v2.view-more{
  margin-left:auto;
  color:#101828;
  background:#22e6f3;
  border-color:#22e6f3;
}

/* Logs filters top-only cleanup */
.log-filter-bar-v2.top{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  margin:14px 0 18px !important;
  padding-bottom:10px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}

.log-filter-v2.view-more{
  margin-left:auto !important;
}

.ab-card .ab-section-head a[href*="alerts"],
.ab-card a[href*="alerts"]{
  display:none !important;
}

/* ATMOSBOOST SYSTEM INFRASTRUCTURE V1.1 START */

.system-infrastructure-section {
  width: 100%;
  margin-top: 38px;
  padding-bottom: 42px;
}

.system-infrastructure-section .infrastructure-label {
  margin: 0 0 20px;
}

.system-infrastructure-section .infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.system-infrastructure-section .infrastructure-card {
  --infra-accent: #22ead1;

  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;

  min-width: 0;
  min-height: 154px;
  padding: 22px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--infra-accent) 5%, transparent),
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(24, 33, 58, 0.98),
      rgba(19, 28, 49, 0.98)
    );

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.system-infrastructure-section .infrastructure-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--infra-accent) 32%,
    rgba(255, 255, 255, 0.07)
  );
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.system-infrastructure-section .infrastructure-card--cyan {
  --infra-accent: #21ead1;
}

.system-infrastructure-section .infrastructure-card--purple {
  --infra-accent: #b95cff;
}

.system-infrastructure-section .infrastructure-card--yellow {
  --infra-accent: #ffd438;
}

.system-infrastructure-section .infrastructure-card--green {
  --infra-accent: #5cff74;
}

.system-infrastructure-section .infrastructure-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  border: 1px solid color-mix(
    in srgb,
    var(--infra-accent) 28%,
    transparent
  );
  border-radius: 14px;

  background: color-mix(
    in srgb,
    var(--infra-accent) 7%,
    rgba(6, 27, 40, 0.8)
  );

  color: var(--infra-accent);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.system-infrastructure-section .infrastructure-card-content {
  min-width: 0;
}

.system-infrastructure-section .infrastructure-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.system-infrastructure-section .infrastructure-card h3 {
  margin: 0;

  color: #eef3fb;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.system-infrastructure-section .infrastructure-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 4px 9px;

  border: 1px solid rgba(151, 165, 187, 0.2);
  border-radius: 999px;

  background: rgba(151, 165, 187, 0.07);
  color: #97a5bb;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.system-infrastructure-section .infrastructure-status::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;

  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.system-infrastructure-section .infrastructure-value {
  margin: 14px 0 8px;

  color: var(--infra-accent);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
}

.system-infrastructure-section .infrastructure-source {
  margin: 0;

  overflow: hidden;
  color: #97a5bb;

  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;

  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .system-infrastructure-section .infrastructure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .system-infrastructure-section {
    margin-top: 30px;
  }

  .system-infrastructure-section .infrastructure-grid {
    grid-template-columns: 1fr;
  }

  .system-infrastructure-section .infrastructure-card {
    min-height: 142px;
  }
}

.system-infrastructure-section .infrastructure-icon svg {
  width: 28px;
  height: 28px;
  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-infrastructure-section .infrastructure-status--online {
  border-color: rgba(92, 255, 116, 0.28);
  background: rgba(92, 255, 116, 0.08);
  color: #5cff74;
}

.system-infrastructure-section .infrastructure-status--offline {
  border-color: rgba(255, 91, 91, 0.28);
  background: rgba(255, 91, 91, 0.08);
  color: #ff6b6b;
}

/* ATMOSBOOST SYSTEM INFRASTRUCTURE V1.1 END */

/* ==========================================================
   ATMOSBOOST TRADER PHASE 3F4 UI START
   Isolated Trader Dashboard v1 presentation overrides.
   Added after Phase 3F3 template integration.
   ========================================================== */

.trader-kpis-expanded {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.trader-kpis-expanded .trader-kpi {
  min-width: 0;
  min-height: 142px;
  padding: 20px;
  overflow: hidden;
}

.trader-kpis-expanded .trader-kpi strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.08;
}

.trader-kpi-primary {
  border-color: rgba(25, 246, 210, .34);
  background:
    linear-gradient(
      145deg,
      rgba(25, 246, 210, .11),
      rgba(255, 255, 255, .025)
    );
  box-shadow:
    0 18px 55px rgba(0, 0, 0, .26),
    0 0 30px rgba(25, 246, 210, .08);
}

.trader-overview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.trader-overview-grid > .trader-panel {
  min-width: 0;
  height: 100%;
}

.trader-runtime-panel {
  overflow: hidden;
}

.trader-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trader-runtime-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(170, 210, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .028);
}

.trader-runtime-item span {
  display: block;
  margin-bottom: 7px;
  color: #8798af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.trader-runtime-item b {
  display: block;
  min-width: 0;
  color: #f3f7ff;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.trader-empty-state {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(170, 210, 255, .16);
  border-radius: 14px;
  color: #95a4ba;
  text-align: center;
}

.pnl-positive {
  color: #25e7ae !important;
}

.pnl-negative {
  color: #ff747f !important;
}

.pnl-neutral {
  color: #a9b6c8 !important;
}

.signal-buy,
.trade-buy {
  color: #25e7ae !important;
}

.signal-sell,
.trade-sell {
  color: #ff747f !important;
}

.signal-neutral {
  color: #a9b6c8 !important;
}

.trader-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.trader-table {
  width: 100%;
  min-width: 1180px;
}

.trader-table th,
.trader-table td {
  white-space: nowrap;
}

.trader-table td:nth-child(7),
.trader-table td:nth-child(8) {
  font-weight: 900;
}

.trader-activity-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.trader-trade-event {
  min-width: 0;
}

.trader-trade-details {
  min-width: 0;
}

.trader-trade-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trader-trade-main strong {
  overflow-wrap: anywhere;
}

.trader-trade-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 6px;
  color: #9caabd;
  font-size: 12px;
}

.trader-trade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
}

.trader-trade-badge.trade-buy {
  background: rgba(37, 231, 174, .09);
}

.trader-trade-badge.trade-sell {
  background: rgba(255, 116, 127, .09);
}

.trader-config-panel {
  margin-top: 0;
}

@media (max-width: 1450px) {
  .trader-kpis-expanded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .trader-kpis-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trader-overview-grid,
  .trader-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .trader-kpis-expanded {
    grid-template-columns: 1fr;
  }

  .trader-kpis-expanded .trader-kpi {
    min-height: 118px;
  }

  .trader-runtime-grid {
    grid-template-columns: 1fr;
  }

  .trader-mini-event {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .trader-mini-event time {
    grid-column: 2;
    justify-self: start;
  }

  .trader-trade-main {
    flex-wrap: wrap;
  }

  .trader-trade-meta {
    flex-direction: column;
    gap: 4px;
  }

  .trader-table {
    min-width: 1080px;
  }
}

/* ==========================================================
   ATMOSBOOST TRADER PHASE 3F4 UI END
   ========================================================== */

/* ATMOSBOOST BATCH B LOGOUT BUTTON RESET — OWNER DASHBOARD */
.sidebar .sidebar-account--owner button.owner-logout {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  cursor: pointer !important;
}

/* ==========================================================
   MOBILE SHELL FIX 2026-10-03 (W0)
   Phones: sidebar becomes a compact top bar, content full width.
   Appended last so it wins over the earlier fixed-sidebar blocks.
   Desktop layout is untouched.
   ========================================================== */
@media (max-width: 860px) {
  .dashboard-layout {
    display: block !important;
  }

  .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: auto !important;
    padding: 12px 14px 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 8px !important;
  }

  .sidebar img {
    width: 118px !important;
    max-width: 118px !important;
    margin: 0 8px 4px 0 !important;
  }

  .side-link {
    margin-bottom: 0 !important;
    padding: 9px 11px !important;
    font-size: 13px !important;
  }

  .sidebar .sidebar-account--owner {
    margin: 4px 0 2px auto !important;
  }

  .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px 34px !important;
    overflow-x: hidden !important;
  }

  .dash-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}


/* ==========================================================
   MOBILE SHELL + DASHBOARD 2026-10-06 (final override layer)
   Phones get a sticky chips top-bar, in-flow account card and
   one/two-column dashboard grids. Desktop (>860px) is byte-for-
   byte the previous design; only the logout internals below
   restore what earlier layers hid (icon glyph on desktop,
   icon+text on phones).
   ========================================================== */

/* Logout internals: desktop keeps the power glyph only. */
.sidebar .sidebar-account--owner .owner-logout .logout-glyph {
  display: inline !important;
}
.sidebar .sidebar-account--owner .owner-logout .logout-icon,
.sidebar .sidebar-account--owner .owner-logout .logout-label {
  display: none !important;
}

@media (max-width: 860px) {
  /* The page itself never scrolls sideways; only dedicated
     strips (nav chips, table wrappers) scroll horizontally. */
  .dashboard-body {
    overflow-x: hidden !important;
    -webkit-tap-highlight-color: rgba(34, 240, 207, .18);
  }

  .dashboard-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* --- Sticky top bar: logo + account row, chips row below --- */
  .sidebar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 900 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    background: rgba(2, 7, 19, .94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  .sidebar img {
    order: 1;
    flex: 0 0 auto;
    width: 128px !important;
    max-width: 128px !important;
    margin: 0 !important;
  }

  /* Account card lives in the flow of the bar — never absolute,
     never on top of navigation. */
  .sidebar .sidebar-account--owner {
    order: 2;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 52px !important;
    margin: 0 0 0 auto !important;
    padding: 8px 10px !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .sidebar .sidebar-account--owner .owner-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .sidebar .sidebar-account--owner .owner-meta strong {
    font-size: 13px !important;
  }

  .sidebar .sidebar-account--owner .owner-meta span {
    font-size: 10.5px !important;
  }

  /* Logout on phones: crisp SVG icon + visible text. */
  .sidebar .sidebar-account--owner .owner-logout {
    width: auto !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .sidebar .sidebar-account--owner .owner-logout .logout-glyph {
    display: none !important;
  }

  .sidebar .sidebar-account--owner .owner-logout .logout-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 auto;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .sidebar .sidebar-account--owner .owner-logout .logout-label {
    display: inline !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* Navigation: one horizontally scrollable strip of chips,
     active section highlighted, no wrapped "sheet" of links. */
  .sidebar-nav {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar .side-link {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 14px !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: 999px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }

  .sidebar .side-link:active {
    background: rgba(25, 246, 210, .22) !important;
    color: #ffffff !important;
  }

  /* --- Content column --- */
  .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 16px 16px calc(34px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
  }

  .dash-main img,
  .dash-main canvas {
    max-width: 100%;
  }

  .dash-main pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .guardian-table-wrap,
  .trader-table-wrap,
  .trader-config-table-wrap,
  .wallet-table-wrap,
  .payment-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ab-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px 40px !important;
  }

  /* --- Dashboard hero --- */
  .ab-hero-clean {
    min-height: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding: 24px 0 20px !important;
    margin-bottom: 20px !important;
  }

  .ab-hero-clean h1 {
    font-size: 36px !important;
    line-height: 1.02 !important;
  }

  .ab-hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ab-hero-btn {
    min-height: 48px;
    flex: 1 1 auto;
  }

  .ab-section-head {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  /* --- Dashboard KPI: two calm columns, nothing clipped --- */
  .ab-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .ab-grid-4 > *,
  .ab-service-grid > *,
  .ab-bottom-grid > * {
    min-width: 0 !important;
  }

  .ab-kpi,
  .ab-load-card {
    min-height: 0 !important;
    padding: 18px !important;
  }

  .ab-kpi h2 {
    font-size: 30px !important;
  }

  .ab-kpi p {
    font-size: 14px !important;
  }

  .ab-kpi-row {
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .ab-kpi-row strong {
    overflow-wrap: anywhere;
    text-align: right;
  }

  .ab-load {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .ab-ring {
    width: 76px !important;
    height: 76px !important;
    flex: 0 0 auto;
  }

  /* --- Core Services: one full-width column --- */
  .ab-service-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .ab-service-card {
    min-height: 0 !important;
    padding: 18px !important;
  }

  .ab-service-card h3,
  .ab-service-card small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* --- Recent Events + Quick Actions stacked --- */
  .ab-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }

  .ab-events,
  .ab-bottom-grid > .ab-card {
    min-height: 0 !important;
    padding: 18px !important;
  }

  .ab-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .ab-actions a {
    min-height: 52px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  .ab-actions a > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ab-actions .qa-icon {
    flex: 0 0 auto;
  }

  .ab-actions a:active,
  .ab-button:active,
  .ab-hero-btn:active {
    transform: scale(.985);
    filter: brightness(1.18);
  }

  .ab-event {
    grid-template-columns: 26px minmax(0, 1fr) auto !important;
  }

  .ab-event p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ab-event time {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .sidebar img {
    width: 112px !important;
    max-width: 112px !important;
  }

  .dash-main {
    padding: 14px 12px calc(32px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .ab-page {
    padding: 16px 12px 34px !important;
  }

  .ab-hero-clean h1 {
    font-size: 31px !important;
  }

  /* KPI: strictly one column on small phones. */
  .ab-grid-4 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ab-actions a {
    min-height: 56px !important;
  }

  .ab-event {
    grid-template-columns: 26px minmax(0, 1fr) !important;
  }

  .ab-event time {
    grid-column: 2;
    white-space: normal;
  }
}
/* ==========================================================
   TABS MOBILE STANDARD 2026-10-06 (Trader / System / Logs)
   Same standard as the Mobile Shell Fix: <=860 calm two-or-one
   columns, <=480 strictly one column, full labels, tables and
   log strips scroll only inside their own wrappers, taps >=44px.
   Desktop rules above are untouched.
   ========================================================== */

@media (max-width: 860px) {
  /* --- Trader --- */
  .trader-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .trader-kpi {
    min-width: 0;
    padding: 16px !important;
  }

  .trader-kpi strong {
    font-size: 26px !important;
    overflow-wrap: anywhere;
  }

  .trader-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .trader-actions .ab-button {
    min-height: 48px;
  }

  .trader-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .trader-panel {
    min-width: 0;
    padding: 18px !important;
  }

  .trader-status-list div {
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .trader-status-list b {
    max-width: 100%;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .trader-runtime-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .trader-log-box code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  /* --- System (premium blocks) --- */
  .premium-kpi-grid,
  .premium-kpi-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .premium-kpi,
  .premium-kpi-grid.compact .premium-kpi {
    min-width: 0;
    min-height: 0 !important;
  }

  .premium-kpi h2 {
    overflow-wrap: anywhere;
  }

  .premium-bottom-grid,
  .premium-bottom-grid.compact {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .premium-bottom-grid.compact .premium-panel {
    min-height: 0 !important;
    padding: 18px !important;
  }

  .premium-row,
  .premium-bottom-grid.compact .premium-row {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 44px;
  }

  .premium-row b {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .premium-load-row {
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr) minmax(44px, auto) !important;
    gap: 10px !important;
  }

  .system-page .dash-top {
    flex-wrap: wrap;
    min-width: 0;
  }

  .system-infrastructure-section .infrastructure-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  /* --- Logs: filters become one touch-scroll strip of chips --- */
  .log-filter-bar-v2,
  .log-filter-bar-v2.top {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px !important;
  }

  .log-filter-bar-v2::-webkit-scrollbar {
    display: none;
  }

  .log-filter-v2 {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px !important;
  }

  .log-filter-v2.view-more {
    margin-left: 0 !important;
  }

  .logs-view-more-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

@media (max-width: 480px) {
  .trader-kpis,
  .trader-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .premium-kpi-grid,
  .premium-kpi-grid.compact {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .premium-row,
  .premium-bottom-grid.compact .premium-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2px !important;
  }

  .premium-row b {
    text-align: left;
  }

  .premium-load-row {
    grid-template-columns: minmax(0, 1fr) minmax(44px, auto) !important;
  }

  .premium-load-row .premium-progress {
    grid-column: 1 / -1;
    order: 3;
  }
}


/* ==========================================================
   SYSTEM METRIC CARD CONTAINMENT 2026-10-06
   Metric values ("756Mi / 2.0G", "44Gb / 469Gb", "707 hours")
   wrapped to a second line inside the fixed 38px value row
   (base: grid-template-rows:22px 38px 18px) and the extra
   line painted below the card border. Mobile only: the
   value row grows with its content, the value column gets
   the card's own 54px icon track back (the <=760 legacy
   150px/1fr/58px track starved it), and wrapping happens
   at spaces instead of mid-number. Desktop untouched.
   ========================================================== */

@media (max-width: 860px) {
  .premium-kpi-grid.compact .premium-kpi {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(38px, auto) auto !important;
  }

  .premium-kpi-grid.compact .premium-kpi h2 {
    line-height: 1.2;
    overflow-wrap: break-word;
  }
}


/* === LIVEPASS 2026-10-06 evening: live fragments, stamps, mobile segments === */
.ab-events-scroll{max-height:400px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.ab-events-scroll::-webkit-scrollbar{width:6px}
.ab-events-scroll::-webkit-scrollbar-thumb{background:rgba(120,200,255,.28);border-radius:3px}
@media (max-width:860px){.ab-events-scroll{max-height:320px}}
.ab-live-stamp{font-size:11px;color:#69d9c0;opacity:.8;letter-spacing:.05em;white-space:nowrap}
[data-card-link]{cursor:pointer}
.ab-segment-bar{display:none;gap:8px;margin:0 0 14px}
.ab-segment-bar button{flex:1;font:inherit;font-weight:600;padding:12px 10px;border-radius:12px;border:1px solid rgba(120,200,255,.18);background:rgba(20,34,54,.85);color:#cfe3f5;cursor:pointer;min-height:48px}
.ab-segment-bar button.active{border-color:rgba(47,255,211,.55);color:#2fffd3}
@media (max-width:860px){
  .ab-segment-bar{display:flex}
  [data-segment-panel].segment-hidden{display:none}
}
.sys-sparkline{width:100%;max-width:340px;height:36px;display:block}
.premium-spark-wrap{margin-top:10px}
.premium-spark-label{font-size:11px;color:#7f8ea3;letter-spacing:.06em}


/* === SYSTEM BLOCKSTYLE 2026-10-07: compact block layout for /system.
   Same standard as Wallet Blockstyle (2026-10-07): one big health
   card on top, a grid of tappable node cards whose details open
   inside the card, and collapsible blocks below. AtmosBoost branding
   unchanged; live ids and the 3s /api/status poll are untouched, and
   SystemMetricContainment rules above stay in force. === */
.sys-total-card {
  position: relative;
  overflow: hidden;
  margin: 20px 0 16px;
  padding: 22px 24px;
  border: 1px solid rgba(80, 202, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(34, 211, 238, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(18, 31, 52, 0.96), rgba(10, 18, 32, 0.9));
}

.sys-total-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sys-total-label {
  color: #97a5bb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sys-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(25, 246, 210, 0.12);
  color: #19f6d2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.sys-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19f6d2;
  box-shadow: 0 0 10px rgba(25, 246, 210, 0.8);
  animation: sys-live-pulse 2s ease-in-out infinite;
}

@keyframes sys-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sys-health-line {
  display: block;
  margin-top: 12px;
  color: #eef3fb;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sys-health-sep { color: #19f6d2; }

.sys-total-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  color: #97a5bb;
  font-size: 12.5px;
  font-weight: 600;
}

.sys-mini-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
}

.sys-mini {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sys-mini > span {
  color: #97a5bb;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sys-mini > b {
  color: #eef3fb;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.sys-mini-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.sys-mini-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #19f6d2, #27d7ff);
  transition: width 0.35s ease, background 0.35s ease;
}

.sys-mini-fill.is-cyan { background: linear-gradient(90deg, #19f6d2, #27d7ff); }
.sys-mini-fill.is-green { background: linear-gradient(90deg, #19f6d2, #75ff63); }
.sys-mini-fill.is-yellow { background: linear-gradient(90deg, #19f6d2, #ffd34d); }
.sys-mini-fill.is-orange { background: linear-gradient(90deg, #ffd34d, #ff8a3d); }
.sys-mini-fill.is-red { background: linear-gradient(90deg, #ff6b6b, #ff2d55); }

.sys-node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.sys-node-card {
  min-width: 0;
  border: 1px solid rgba(170, 210, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(15, 25, 42, 0.82);
  overflow: hidden;
}

.sys-node-face {
  display: block;
  padding: 16px 18px 14px;
  cursor: pointer;
  list-style: none;
}

.sys-node-face::-webkit-details-marker { display: none; }

.sys-node-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sys-node-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #19f6d2;
  background: rgba(25, 246, 210, 0.09);
}

.sys-node-icon.purple { color: #b767ff; background: rgba(183, 103, 255, 0.1); }

.sys-node-icon svg {
  width: 27px;
  height: 27px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.sys-node-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sys-node-names strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
}

.sys-node-names small {
  color: #97a5bb;
  font-size: 11.5px;
  font-weight: 600;
}

.sys-status-pill {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.sys-status-pill.is-on {
  background: rgba(117, 255, 99, 0.13);
  color: #75ff63;
}

.sys-status-pill.is-off {
  background: rgba(255, 102, 133, 0.14);
  color: #ff6b8a;
}

.sys-node-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sys-metric {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(10, 17, 30, 0.45);
}

.sys-metric h3 {
  margin: 0;
  color: #c8d4e6;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.sys-metric h2 {
  margin: 5px 0 0;
  color: #19f6d2;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.sys-metric.purple h2 { color: #b767ff; }
.sys-metric.yellow h2 { color: #ffd34d; }
.sys-metric.green h2 { color: #75ff63; }

.sys-metric p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0;
  color: #97a5bb;
  font-size: 12px;
  font-weight: 600;
}

.sys-card-hint {
  display: block;
  margin-top: 12px;
  color: #5f718c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.sys-node-card[open ] .sys-card-hint { color: #19f6d2; }

.sys-node-detail {
  padding: 2px 16px 16px;
}

.sys-node-detail .premium-panel {
  margin-top: 12px;
  min-height: 0;
}

.sys-node-detail .premium-panel:first-child { margin-top: 2px; }

.sys-block {
  margin: 0 0 16px;
  border: 1px solid rgba(170, 210, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(15, 25, 42, 0.82);
  overflow: hidden;
}

.sys-block-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: #eef3fb;
  font-size: 15px;
  font-weight: 800;
}

.sys-block-summary::-webkit-details-marker { display: none; }

.sys-block-hint {
  color: #5f718c;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sys-block[open ] .sys-block-summary { color: #19f6d2; }

.sys-block .system-infrastructure-section { padding: 0 16px 16px; }

.sys-block .infrastructure-label { margin-top: 0; }

@media (max-width: 860px) {
  .sys-node-grid { grid-template-columns: minmax(0, 1fr); }

  .sys-mini-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sys-total-card { padding: 18px; }

  .sys-node-detail .premium-panel { padding: 18px; }
}

@media (max-width: 480px) {
  .sys-node-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

  .sys-metric { padding: 10px 11px; }

  .sys-metric h2 { font-size: 18px; }

  .sys-mini-bars { gap: 10px 12px; }

  .sys-node-face { padding: 14px 14px 12px; }

  .sys-node-detail { padding: 2px 12px 12px; }

  .sys-block-summary { padding: 14px; }
}


/* === SYSTEM DESKTOP ROLLBACK 2026-10-07 ===
   Vadym keeps the compact Blockstyle System on mobile, while the
   pre-Blockstyle desktop System is restored on wide screens. The
   current Blockstyle markup is the mobile layout (canonical live ids);
   the restored desktop panels are mirrors with data-live-bind, so
   both layouts share one live data path without duplicate ids. */
.sys-layout--mobile { display: block; }
.sys-layout--desktop { display: none; }

@media (min-width: 861px) {
  .system-page .sys-layout--mobile { display: none; }
  .system-page .sys-layout--desktop { display: block; }
}


/* Site messages (owner inbox) */
.side-badge{margin-left:auto;background:#19f6d2;color:#03211c;font-size:11px;font-weight:800;line-height:1;padding:3px 7px;border-radius:999px;align-self:center}
.msg-list{display:grid;gap:14px}
.msg-item .msg-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.msg-item .msg-from{font-weight:700;color:#fff;font-size:16px}
.msg-item .msg-time{color:#8d9ab2;font-size:12px}
.msg-item .msg-mail{color:var(--cyan);font-size:13px;text-decoration:none}
.msg-item .msg-body{color:#d5deef;white-space:pre-wrap;line-height:1.6;margin:10px 0 0}
.msg-item.is-new{border-color:rgba(25,246,210,.5)}
.msg-new-tag{background:#19f6d2;color:#03211c;font-size:10px;font-weight:800;padding:2px 6px;border-radius:999px;vertical-align:2px}
