:root{
  --bg:#020712;
  --panel:#061426;
  --card:#0b1e34;
  --card2:#071527;
  --line:#255b86;
  --line2:rgba(100,216,255,.38);
  --text:#f0f8ff;
  --muted:#9ab2ca;
  --accent:#69d9ff;
  --accent2:#5cffaa;
  --danger:#ff6170;
  --warn:#ffd36a;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(circle at 14% 8%,rgba(58,154,218,.34),transparent 28%),
    radial-gradient(circle at 82% 90%,rgba(92,255,170,.08),transparent 28%),
    linear-gradient(135deg,#06182c 0%,#020712 42%,#01030a 100%);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

button,input,select,textarea{
  font:inherit;
}

button{
  border:0;
  cursor:pointer;
  font-weight:900;
}

#app{
  min-height:100vh;
}

/* ===== LOGIN ===== */

.loginwrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px;
  position:relative;
  overflow:hidden;
}

.loginwrap::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 20% 20%,rgba(105,217,255,.24),transparent 23%),
    radial-gradient(circle at 75% 80%,rgba(92,255,170,.12),transparent 24%),
    conic-gradient(from 210deg at 30% 20%,transparent,rgba(105,217,255,.10),transparent,rgba(92,255,170,.08),transparent);
  filter:blur(14px);
  opacity:.95;
}

.loginwrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(105,217,255,.06) 1px,transparent 1px),
    linear-gradient(180deg,rgba(105,217,255,.04) 1px,transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(circle at center,black,transparent 72%);
  opacity:.35;
}

.loginbox{
  position:relative;
  z-index:1;
  width:min(920px,100%);
  min-height:560px;
  display:grid;
  grid-template-columns:1fr 1.05fr;
  overflow:hidden;
  border-radius:38px;
  border:1px solid rgba(105,217,255,.35);
  background:
    linear-gradient(145deg,rgba(12,35,60,.88),rgba(3,10,22,.94)),
    radial-gradient(circle at top left,rgba(105,217,255,.18),transparent 42%);
  box-shadow:
    0 34px 110px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.loginbox::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 22%,rgba(105,217,255,.20),transparent 22%),
    radial-gradient(circle at 80% 80%,rgba(92,255,170,.08),transparent 28%);
}

.loginbox h1,
.loginbox h2,
.loginbox p,
.loginbox label,
.loginbox input,
.loginbox .row{
  position:relative;
  z-index:1;
}

.loginbox h1{
  margin:0;
  padding:56px 48px 0;
  font-size:86px;
  line-height:.9;
  letter-spacing:-5px;
  background:linear-gradient(180deg,#ffffff,#bdeeff 78%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.loginbox h2{
  margin:0;
  padding:0 48px;
  align-self:end;
  font-size:40px;
  line-height:1.08;
  max-width:390px;
}

.loginbox .muted{
  margin:0;
  padding:0 48px;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

.loginbox label{
  display:block;
  margin:0 48px 10px;
  font-size:14px;
  font-weight:1000;
  letter-spacing:.12em;
  color:#dff7ff;
}

.loginbox input{
  display:block;
  width:calc(100% - 96px);
  height:62px;
  margin:0 48px 22px;
  padding:0 18px;
  border-radius:20px;
  color:var(--text);
  background:rgba(2,8,18,.76);
  border:1px solid rgba(105,217,255,.42);
  outline:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}

.loginbox input:focus{
  border-color:var(--accent);
  box-shadow:
    0 0 0 4px rgba(105,217,255,.13),
    0 0 34px rgba(105,217,255,.16);
}

.loginbox .row{
  padding:0 48px 56px;
  margin:0;
}

.loginbox .btn{
  min-width:168px;
  height:62px;
  border-radius:22px;
  color:#02111f;
  background:linear-gradient(180deg,#97e8ff,#5ccfff);
  box-shadow:0 18px 38px rgba(92,207,255,.26);
}

.loginbox .btn:hover{
  transform:translateY(-1px);
}

/* ===== APP LAYOUT ===== */

#app:not(:has(.loginwrap)){
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  min-height:100vh;
}

aside{
  padding:34px 28px;
  background:rgba(5,15,29,.82);
  border-right:1px solid var(--line);
}

aside h1{
  font-size:44px;
  margin:0 0 8px;
}

aside p{
  margin:0 0 36px;
  color:var(--muted);
  font-size:20px;
}

aside button{
  display:block;
  width:100%;
  text-align:left;
  color:var(--text);
  background:transparent;
  padding:14px 16px;
  margin:6px 0;
  border-radius:16px;
}

aside button:hover{
  background:#102c47;
}

main{
  min-width:0;
  padding:46px;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:26px;
}

.top h2{
  margin:0;
  font-size:clamp(34px,4vw,48px);
}

.badge{
  border:1px solid #2a638f;
  border-radius:22px;
  padding:11px 18px;
  color:#8ee4ff;
  white-space:nowrap;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:20px;
}

.card{
  min-width:0;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(14,36,60,.94),rgba(5,14,27,.94));
  border:1px solid #244f75;
  border-radius:28px;
  padding:26px;
  margin-bottom:20px;
}

.card h3{
  font-size:clamp(30px,3vw,46px);
  line-height:1.05;
  margin:10px 0;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.muted{color:var(--muted)}

.item,.client{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  border:1px solid #2a5579;
  background:rgba(255,255,255,.035);
  padding:18px;
  border-radius:18px;
  margin:12px 0;
  min-width:0;
}

.client-main{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.client-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  background:linear-gradient(180deg,#8ee4ff,#55c8ff);
  color:#02111f;
  border-radius:17px;
  padding:14px 18px;
}

.ghost{
  background:#112b45;
  color:var(--text);
  border:1px solid #295d88;
  border-radius:17px;
  padding:14px 18px;
}

.danger{
  background:var(--danger);
  color:white;
  border-radius:17px;
  padding:14px 18px;
}

.ok{color:var(--accent2);font-weight:900}
.warn{color:var(--warn);font-weight:900}
.bad{color:var(--danger);font-weight:900}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.modal{
  position:fixed;
  inset:0;
  z-index:10;
  background:rgba(0,0,0,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.modalbox{
  width:min(960px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  background:#0b2035;
  border:1px solid #386994;
  border-radius:30px;
  padding:30px;
}

input,select{
  width:100%;
  border:1px solid #2a5579;
  border-radius:16px;
  background:#061225;
  color:var(--text);
  padding:14px;
  margin:8px 0 16px;
}

textarea{
  width:100%;
  min-height:420px;
  border:1px solid #2a5579;
  border-radius:18px;
  background:#030914;
  color:#dff7ff;
  padding:16px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:13px;
  line-height:1.45;
  resize:vertical;
  margin:10px 0 18px;
}

.checks label{
  display:block;
  padding:10px 0;
}

.checks input{
  width:auto;
  margin-right:10px;
}

.mini-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:12px;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){
  .loginbox{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .loginbox h1{
    padding:42px 34px 0;
    font-size:68px;
  }

  .loginbox h2,
  .loginbox .muted{
    padding-left:34px;
    padding-right:34px;
  }

  .loginbox label{
    margin-left:34px;
    margin-right:34px;
  }

  .loginbox input{
    width:calc(100% - 68px);
    margin-left:34px;
    margin-right:34px;
  }

  .loginbox .row{
    padding-left:34px;
    padding-right:34px;
    padding-bottom:42px;
  }

  #app:not(:has(.loginwrap)){
    grid-template-columns:260px minmax(0,1fr);
  }

  main{padding:34px}
  aside h1{font-size:38px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .loginwrap{
    padding:18px;
  }

  .loginbox{
    border-radius:30px;
  }

  .loginbox h1{
    font-size:58px;
    letter-spacing:-3px;
  }

  #app:not(:has(.loginwrap)){
    grid-template-columns:1fr;
  }

  aside{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  main{
    padding:22px 14px;
  }

  .grid,.mini-grid{
    grid-template-columns:1fr;
  }

  .top{
    align-items:flex-start;
    flex-direction:column;
  }

  .item,.client{
    align-items:flex-start;
    flex-direction:column;
  }

  .client-actions{
    justify-content:flex-start;
  }
}

/* === v5.4 subscriptions UI === */

.sub-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:18px;
  align-items:center;
  border:1px solid #2a638f;
  border-radius:24px;
  padding:20px;
  margin:18px 0 22px;
  background:linear-gradient(145deg,rgba(100,216,255,.10),rgba(92,255,170,.045));
}

.sub-hero h3{
  margin:0 0 8px;
  font-size:clamp(24px,3vw,36px);
}

.qrbox{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.qrbox img{
  width:180px;
  height:180px;
  border-radius:18px;
  background:white;
  padding:10px;
}

.subcards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
  margin:18px 0;
}

.subcard{
  border:1px solid #2a5579;
  border-radius:22px;
  padding:18px;
  background:rgba(255,255,255,.035);
}

.subhead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.subhead h3{
  margin:0;
  font-size:22px;
}

.subhead span{
  border:1px solid #2a638f;
  color:#8ee4ff;
  border-radius:999px;
  padding:7px 10px;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}

.copyline{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0;
}

.copyline input{
  margin:0;
  min-width:0;
}

@media(max-width:760px){
  .sub-hero{
    grid-template-columns:1fr;
  }
  .copyline{
    flex-direction:column;
    align-items:stretch;
  }
  .qrbox img{
    width:220px;
    height:220px;
  }
}

/* === v5.5 nodes UI === */

.node-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:18px;
  margin:18px 0;
}

.node-card{
  border:1px solid #244f75;
  border-radius:28px;
  padding:22px;
  background:
    radial-gradient(circle at top left,rgba(100,216,255,.12),transparent 38%),
    linear-gradient(145deg,rgba(14,36,60,.94),rgba(5,14,27,.94));
  overflow:hidden;
}

.node-topline{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:16px;
}

.node-title{
  display:flex;
  gap:10px;
  align-items:center;
}

.node-title h3{
  margin:0;
  font-size:clamp(28px,3vw,42px);
  line-height:1;
}

.node-dot{
  width:13px;
  height:13px;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 18px currentColor;
}

.node-dot.online{
  color:var(--ok);
  background:var(--ok);
}

.node-dot.offline{
  color:var(--danger);
  background:var(--danger);
}

.node-status{
  border:1px solid #2a638f;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  white-space:nowrap;
}

.node-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}

.node-metrics div{
  border:1px solid #2a5579;
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.035);
  min-width:0;
}

.node-metrics b{
  display:block;
  margin-bottom:6px;
}

.node-metrics span{
  color:var(--muted);
  font-size:13px;
}

.node-protocols{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:14px 0;
}

.node-protocols span{
  border:1px solid #2a5579;
  border-radius:999px;
  padding:8px 10px;
  color:#b9d8f4;
  background:rgba(255,255,255,.035);
  font-weight:800;
  font-size:13px;
}

.node-protocols span.good{
  border-color:rgba(92,255,170,.55);
  color:var(--ok);
}

.node-secrets-safe{
  display:grid;
  gap:10px;
  margin:16px 0;
}

.node-secrets-safe label{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:4px;
}

.node-secrets-safe code{
  display:block;
  width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:1px solid #2a5579;
  border-radius:14px;
  padding:10px;
  background:#030914;
  color:#dff7ff;
}

.node-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

@media(max-width:760px){
  .node-grid{
    grid-template-columns:1fr;
  }
  .node-topline{
    flex-direction:column;
  }
  .node-metrics{
    grid-template-columns:1fr;
  }
}

/* === v5.6 quick client QR === */

.quickqr{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:22px;
  align-items:center;
  border:1px solid #2a638f;
  border-radius:26px;
  padding:22px;
  margin:18px 0;
  background:linear-gradient(145deg,rgba(100,216,255,.10),rgba(92,255,170,.045));
}

.quickqr img{
  width:240px;
  height:240px;
  border-radius:22px;
  background:white;
  padding:12px;
}

.quickqr h3{
  margin:0 0 8px;
  font-size:clamp(26px,3vw,40px);
}

@media(max-width:760px){
  .quickqr{
    grid-template-columns:1fr;
    text-align:center;
  }
  .quickqr img{
    margin:0 auto;
  }
}

/* === v5.7 node check UI === */

.check-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}

.check-summary div{
  border:1px solid #2a5579;
  border-radius:18px;
  padding:16px;
  background:rgba(255,255,255,.035);
}

.check-summary b{
  display:block;
  font-size:24px;
  margin-bottom:6px;
}

.check-summary span{
  color:var(--muted);
  font-size:13px;
}

.check-list{
  display:grid;
  gap:10px;
  margin:18px 0;
}

.check-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #2a5579;
  border-radius:18px;
  padding:14px 16px;
  background:rgba(255,255,255,.035);
}

.check-row b{
  display:block;
  margin-bottom:4px;
}

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

.check-row.good strong{
  color:var(--ok);
}

.check-row.fail strong{
  color:var(--danger);
}

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

/* === v6.0 beta dashboard === */

.hero-status{
  border:1px solid #2a638f;
  border-radius:32px;
  padding:28px;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:
    radial-gradient(circle at top left,rgba(100,216,255,.18),transparent 42%),
    radial-gradient(circle at bottom right,rgba(92,255,170,.10),transparent 42%),
    linear-gradient(145deg,rgba(14,36,60,.95),rgba(5,14,27,.95));
}

.hero-status h3{
  margin:10px 0;
  font-size:clamp(34px,5vw,64px);
  line-height:1;
}

.mini-badge{
  display:inline-flex;
  border:1px solid #2a638f;
  border-radius:999px;
  padding:8px 12px;
  color:#8ee8ff;
  font-weight:900;
  background:rgba(100,216,255,.08);
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.status-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}

.status-card{
  border:1px solid #2a5579;
  border-radius:26px;
  padding:20px;
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:rgba(255,255,255,.035);
}

.status-card h3{
  margin:6px 0;
  font-size:clamp(28px,3vw,44px);
  line-height:1;
}

.status-card p{
  margin:0;
  color:var(--muted);
}

.status-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border:1px solid currentColor;
  flex:0 0 auto;
}

.status-card.good{
  border-color:rgba(92,255,170,.55);
}

.status-card.good .status-icon{
  color:var(--ok);
}

.status-card.warn .status-icon{
  color:#ffd166;
}

.status-card.fail .status-icon{
  color:var(--danger);
}

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

  .hero-actions{
    justify-content:flex-start;
  }

  .status-grid{
    grid-template-columns:1fr;
  }
}

/* === v6.1 audit feed === */

.audit-panel,
.audit-page{
  border:1px solid #2a638f;
  border-radius:28px;
  padding:24px;
  background:
    radial-gradient(circle at top right,rgba(100,216,255,.12),transparent 40%),
    linear-gradient(145deg,rgba(14,36,60,.88),rgba(5,14,27,.92));
  margin:18px 0;
}

.audit-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.audit-head h3{
  margin:0 0 6px;
  font-size:clamp(28px,3vw,44px);
}

.audit-list{
  display:grid;
  gap:10px;
}

.audit-row{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  align-items:center;
  border:1px solid rgba(100,216,255,.20);
  border-radius:18px;
  padding:13px 14px;
  background:rgba(255,255,255,.035);
}

.audit-row b{
  display:block;
  font-size:16px;
}

.audit-row span{
  display:block;
  color:var(--muted);
  margin-top:3px;
  font-size:14px;
}

.audit-ico{
  width:36px;
  height:36px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background:rgba(100,216,255,.10);
  border:1px solid rgba(100,216,255,.25);
}

.audit-row.good .audit-ico{
  color:var(--ok);
  border-color:rgba(92,255,170,.45);
  background:rgba(92,255,170,.08);
}

.audit-row.danger .audit-ico{
  color:var(--danger);
  border-color:rgba(255,92,122,.45);
  background:rgba(255,92,122,.08);
}

.audit-row.warn .audit-ico{
  color:#ffd166;
  border-color:rgba(255,209,102,.45);
  background:rgba(255,209,102,.08);
}

.audit-row.node .audit-ico{
  color:#8ee8ff;
}

.audit-list.big .audit-row{
  padding:16px;
}

@media(max-width:760px){
  .audit-head{
    flex-direction:column;
  }
}

/* === v6.2 live status === */

.live-strip{
  border:1px solid rgba(100,216,255,.28);
  border-radius:24px;
  padding:16px 18px;
  margin:16px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:
    radial-gradient(circle at left,rgba(92,255,170,.10),transparent 36%),
    rgba(255,255,255,.035);
}

.live-strip b{
  display:block;
  font-size:18px;
  margin-bottom:4px;
}

.live-strip span{
  color:var(--muted);
}

.live-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.live-pills span{
  border:1px solid rgba(100,216,255,.25);
  border-radius:999px;
  padding:8px 12px;
  background:rgba(100,216,255,.07);
  color:#dff6ff;
  font-weight:800;
  white-space:nowrap;
}

.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translateX(-50%) translateY(20px);
  z-index:9999;
  opacity:0;
  pointer-events:none;
  border:1px solid rgba(100,216,255,.35);
  border-radius:999px;
  padding:14px 20px;
  background:rgba(7,18,34,.94);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
  color:#eaf8ff;
  font-weight:900;
  transition:.22s ease;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media(max-width:760px){
  .live-strip{
    flex-direction:column;
    align-items:flex-start;
  }

  .live-pills{
    justify-content:flex-start;
  }
}

/* === v6.4 protocol health === */

.protocol-health-panel{
  border:1px solid rgba(100,216,255,.28);
  border-radius:24px;
  padding:18px;
  margin:18px 0;
  background:
    radial-gradient(circle at top left,rgba(100,216,255,.10),transparent 38%),
    rgba(255,255,255,.035);
}

.protocol-health-panel h3{
  margin:0 0 6px;
  font-size:28px;
}

.protocol-health-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px;
  margin-top:14px;
}

.proto-health{
  border:1px solid rgba(100,216,255,.22);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:8px;
  background:rgba(255,255,255,.03);
}

.proto-health b{
  display:block;
  font-size:16px;
}

.proto-health span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
}

.proto-health strong{
  font-size:18px;
}

.proto-health em{
  color:var(--muted);
  font-style:normal;
  font-size:13px;
}

.proto-health.good{
  border-color:rgba(92,255,170,.55);
}

.proto-health.good strong{
  color:var(--ok);
}

.proto-health.warn{
  border-color:rgba(255,209,102,.55);
}

.proto-health.warn strong{
  color:#ffd166;
}

.proto-health.off{
  opacity:.65;
}

/* === v6.5 smart subscription UI === */

.smart-sub-box{
  border:1px solid rgba(92,255,170,.42);
  border-radius:28px;
  padding:22px;
  margin:18px 0;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  background:
    radial-gradient(circle at top left,rgba(92,255,170,.13),transparent 38%),
    radial-gradient(circle at bottom right,rgba(100,216,255,.10),transparent 40%),
    rgba(255,255,255,.035);
}

.smart-sub-box h3{
  margin:10px 0 4px;
  font-size:clamp(30px,4vw,48px);
  line-height:1;
}

.smart-sub-box p{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.smart-sub-box small{
  display:block;
  margin-top:8px;
  color:var(--muted);
}

.smart-sub-steps{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.smart-sub-steps span{
  border:1px solid rgba(92,255,170,.42);
  border-radius:999px;
  padding:10px 14px;
  background:rgba(92,255,170,.08);
  color:#dffff0;
  font-weight:900;
  white-space:nowrap;
}

@media(max-width:760px){
  .smart-sub-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .smart-sub-steps{
    justify-content:flex-start;
  }
}

/* === v6.6 failover modes === */

.failover-help{
  border:1px solid rgba(100,216,255,.28);
  border-radius:18px;
  padding:14px;
  margin:12px 0;
  background:rgba(255,255,255,.035);
}

.failover-help b{
  display:block;
  margin-bottom:6px;
  color:#dffff0;
}

.failover-help span{
  color:var(--muted);
}

/* === v6.7 health history === */

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

.health-row{
  border:1px solid rgba(100,216,255,.24);
  border-radius:22px;
  padding:16px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  background:rgba(255,255,255,.035);
}

.health-row.good{
  border-color:rgba(92,255,170,.45);
}

.health-row.warn{
  border-color:rgba(255,209,102,.45);
}

.health-row b{
  display:block;
  font-size:17px;
}

.health-row small{
  display:block;
  margin-top:6px;
  color:var(--muted);
}

.health-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.health-pills span{
  border-radius:999px;
  padding:8px 10px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
}

@media(max-width:760px){
  .health-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .health-pills{
    justify-content:flex-start;
  }
}

/* === v6.8 auto health refresh === */

.latest-health .top{
  margin-bottom:12px;
}

.latest-health h3{
  margin:0;
}

.latest-health .health-pills span{
  color:#dffff0;
}

.row .ghost{
  white-space:nowrap;
}
