
:root{
  --bg:#eef3f7;
  --text:#0f172a;
  --muted:rgba(15,23,42,.70);
  --border:rgba(15,23,42,.16);
  --shadow:0 10px 28px rgba(15,23,42,.10);
  --shadow2:0 6px 16px rgba(15,23,42,.14);
  --accent1:#214a73;
  --accent2:#0f2d4d;
  --max:1100px;
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial;
}

.moztech-vitals-shell, .moztech-vitals-shell *{ box-sizing:border-box; font-family:var(--font); }
.moztech-vitals-shell{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px;
  color: var(--text);
}
.moztech-vitals-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  margin-bottom: 14px;
}
.moztech-vitals-title{ display:flex; align-items:center; gap:14px; }
.moztech-vitals-badge{
  width:48px;height:48px;border-radius:18px;
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:900; letter-spacing:.6px;
  box-shadow: var(--shadow);
}
.moztech-vitals-title h1{ margin:0; font-size:28px; }
.moztech-vitals-sub{ margin:4px 0 0; color:var(--muted); }

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

.moztech-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
  color: var(--text);
  font-weight:800;
  cursor:pointer;
}
.moztech-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.moztech-btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }
.moztech-btn-primary{
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
  color:#fff;
  border-color: rgba(255,255,255,.2);
}

.moztech-vitals-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.moztech-card{
  background: rgba(255,255,255,.88);
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.moztech-card h2{ margin: 0 0 10px; font-size: 18px; }

.moztech-camera-wrap{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
}
#mv-video{
  width:100%;
  height: 280px;
  object-fit: cover;
  display:block;
}
#mv-canvas{ display:none; }
.moztech-camera-hint{
  position:absolute; left:10px; right:10px; bottom:10px;
  background: rgba(255,255,255,.88);
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  padding:10px;
  color: rgba(15,23,42,.85);
  font-size:13px;
}

.moztech-row{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.moztech-label{ min-width:70px; color: var(--muted); font-weight:700; }
.moztech-select{
  flex:1;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.94);
}

.moztech-small{ margin-top:10px; font-size: 13px; color: var(--muted); }

.moztech-metrics{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.moztech-metric{
  background: rgba(255,255,255,.94);
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  padding: 12px;
}
.moztech-metric.disabled{ opacity: .65; }
.moztech-metric .k{ color: var(--muted); font-weight:800; font-size: 13px; }
.moztech-metric .v{ font-size: 28px; font-weight: 900; margin-top: 6px; }
.moztech-metric .u{ font-size: 14px; color: var(--muted); font-weight: 800; }
.moztech-metric .c{ margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.moztech-divider{ height:1px; background: rgba(15,23,42,.10); margin: 12px 0; }
.moztech-actions2{ display:flex; gap:10px; flex-wrap:wrap; }
.moztech-last{ margin-top: 10px; color: var(--muted); font-size: 13px; }
.moztech-warn{
  margin-top: 12px;
  background: rgba(255,243,205,.65);
  border: 1px solid rgba(180,140,0,.35);
  border-radius: 14px;
  padding: 10px;
  font-size: 13px;
}

.moztech-profile-vitals{
  border:1px dashed rgba(15,23,42,.20);
  border-radius:16px;
  padding: 12px;
  background: rgba(255,255,255,.70);
}
.moztech-profile-vitals-grid{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;
}
.moztech-profile-pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  font-weight:800;
}

@media (max-width: 980px){
  .moztech-vitals-grid{ grid-template-columns: 1fr; }
  #mv-video{ height: 240px; }
  .moztech-metrics{ grid-template-columns: 1fr; }
  .moztech-vitals-header{ flex-direction:column; align-items:flex-start; }
  .moztech-vitals-actions{ justify-content:flex-start; }
}
