:root {
  color-scheme: dark;
  --ink: #edf2ff;
  --muted: #92a0bd;
  --panel: rgba(18, 28, 57, .7);
  --line: rgba(152, 175, 255, .18);
  --blue: #5a89ff;
  --mint: #79f3c7;
  --gold: #f7c96e;
  --danger: #ff7f92;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: #071022;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 54vw;
  height: 54vw;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .21;
  pointer-events: none;
}
body::before { top: -28vw; left: -14vw; background: #3b5ed3; }
body::after { right: -18vw; bottom: -38vw; background: #0fba86; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; }
.login-view {
  min-height: 100vh;
  max-width: 650px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  padding: 56px 0;
}
.vault-mark { display: flex; gap: 7px; height: 30px; align-items: end; }
.vault-mark span { width: 6px; border-radius: 8px; background: var(--mint); animation: beam 1.7s ease-in-out infinite; }
.vault-mark span:nth-child(1) { height: 16px; animation-delay: -.36s; }
.vault-mark span:nth-child(2) { height: 29px; }
.vault-mark span:nth-child(3) { height: 21px; animation-delay: .36s; }
@keyframes beam { 50% { transform: translateY(-7px); opacity: .55; } }
.eyebrow { margin: 0; color: var(--mint); font-size: 11px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: .96; letter-spacing: -.065em; }
h1 em { color: #a9bfff; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.08em; }
.lede { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 470px; }
.pin-card {
  width: min(100%, 490px);
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
  border-radius: 20px;
}
label, .metric-top, .detail-card > span { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pin-row { display: flex; gap: 10px; margin-top: 12px; }
input {
  min-width: 0;
  flex: 1;
  border-radius: 12px;
  border: 1px solid #334778;
  background: #0b1630;
  color: var(--ink);
  padding: 14px 15px;
  font-size: 20px;
  letter-spacing: .24em;
  outline: none;
}
input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(121,243,199,.13); }
button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--mint);
  color: #06251d;
  font-weight: 850;
  font-size: 14px;
}
button:hover { filter: brightness(1.07); }
.form-message { height: 16px; margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.quiet-note { max-width: 470px; margin: 0; color: #6d7c9d; font-size: 13px; line-height: 1.5; }
.dashboard-view { padding: 44px 0 64px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.topbar h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 8px; }
.top-actions { text-align: right; padding-top: 7px; }
.top-actions p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.text-button { padding: 0; background: transparent; color: var(--ink); border-radius: 0; text-decoration: underline; font-size: 12px; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 99px; background: var(--mint); box-shadow: 0 0 0 0 rgba(121,243,199,.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(121,243,199,0); } 100% { box-shadow: 0 0 0 0 rgba(121,243,199,0); } }
.health-strip { display: flex; justify-content: space-between; gap: 14px; margin: 34px 0 18px; padding: 14px 16px; border-radius: 13px; background: rgba(121,243,199,.07); border: 1px solid rgba(121,243,199,.18); color: #b7c5e7; font-size: 13px; }
.health-strip div { color: var(--mint); }
.health-strip p { margin: 0; }
.pulse { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mint); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric-card, .detail-card {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(31,47,90,.78), rgba(11,20,44,.78));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 24px 50px rgba(0,0,0,.15);
}
.metric-card { min-height: 325px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-top { display: flex; justify-content: space-between; }
.metric-top span:last-child { color: #7990c4; font-size: 10px; }
.meter {
  --value: 0%;
  --meter-color: var(--blue);
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  width: 164px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--meter-color) var(--value), rgba(255,255,255,.08) 0);
}
.meter::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: #0c1731; box-shadow: inset 0 0 24px rgba(0,0,0,.4); }
.meter > div { position: relative; text-align: center; }
.meter strong { display: block; font-size: 37px; line-height: 1; letter-spacing: -.07em; }
.meter small { color: var(--muted); font-size: 11px; }
.cpu-card .meter { --meter-color: var(--blue); }
.memory-card .meter { --meter-color: var(--mint); }
.storage-card .meter { --meter-color: var(--gold); }
.metric-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.history-card {
  position: relative;
  min-height: 236px;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(29,45,85,.78), rgba(10,19,42,.78));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 24px 50px rgba(0,0,0,.15);
}
.history-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.metric-label { margin: 0 0 5px; color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.history-heading strong { font-size: 15px; letter-spacing: -.025em; }
.history-controls { display: flex; gap: 5px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.range-button { min-height: 27px; padding: 0 9px; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }
.range-button.active { background: rgba(121,243,199,.15); color: var(--mint); }
.chart-wrap { position: relative; height: 145px; margin-top: 8px; }
#history-chart { width: 100%; height: 100%; display: block; }
#history-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.cpu-key { background: var(--blue); }
.memory-key { background: var(--mint); }
.storage-key { background: var(--gold); }
.chart-legend small { margin-left: auto; color: #6d7c9d; }
.secondary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.detail-card { min-height: 150px; padding: 20px; display: flex; flex-direction: column; }
.detail-card strong { margin-top: auto; font-size: 21px; letter-spacing: -.05em; }
.detail-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
@media (min-width: 900px) and (min-height: 650px) {
  html, body { height: 100%; overflow: hidden; }
  .shell { height: 100vh; }
  .dashboard-view {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(175px, 1fr) minmax(150px, .8fr) minmax(65px, .42fr);
    gap: 10px;
    padding: 14px 0 16px;
  }
  .topbar h1 { font-size: clamp(36px, 4vw, 54px); margin-top: 4px; }
  .health-strip { margin: 0; padding: 10px 13px; }
  .metric-grid { gap: 10px; min-height: 0; }
  .metric-card { min-height: 0; padding: 14px; }
  .meter { width: clamp(100px, 10vw, 130px); }
  .meter strong { font-size: 30px; }
  .metric-card > p { font-size: 12px; }
  .history-card { min-height: 0; padding: 13px 16px 10px; }
  .history-heading strong { font-size: 13px; }
  .chart-wrap { height: calc(100% - 46px); min-height: 85px; margin-top: 3px; }
  .chart-legend { position: absolute; left: 16px; bottom: 9px; right: 16px; font-size: 10px; }
  .chart-wrap { padding-bottom: 18px; }
  .secondary-grid { min-height: 0; gap: 10px; margin-top: 0; }
  .detail-card { min-height: 0; padding: 11px 14px; }
  .detail-card strong { font-size: 17px; }
  .detail-card p { font-size: 10px; }
}
@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 620px); }
  .metric-grid, .secondary-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 280px; }
  .storage-card { grid-column: span 2; }
  .history-card { min-height: 220px; }
  .chart-legend { flex-wrap: wrap; }
  .chart-legend small { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .login-view { padding: 36px 0; }
  .dashboard-view { padding-top: 28px; }
  .topbar, .health-strip { flex-direction: column; }
  .top-actions { text-align: left; padding: 0; }
  .metric-grid, .secondary-grid { grid-template-columns: 1fr; }
  .storage-card { grid-column: auto; }
  .pin-row { flex-direction: column; }
  button { min-height: 48px; }
}
