/* cards */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.card-link { font-size: 13px; font-weight: 600; color: var(--volt); }

/* numbers */
.num { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.unit { font-size: 13px; color: var(--text-2); font-weight: 500; margin-left: 3px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  transition: transform 120ms var(--ease), background var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--volt); color: var(--volt-ink); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line-2); }
.btn-small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.06); color: var(--text-2);
}
.chip.volt { background: var(--volt-dim); color: var(--volt); }
.chip.warn { background: var(--warn-dim); color: var(--warn); }
.chip.danger { background: var(--danger-dim); color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* alerts */
.alert {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start;
  padding: 14px; border-radius: var(--r); border: 1px solid;
}
.alert svg { width: 22px; height: 22px; margin-top: 1px; }
.alert strong { display: block; font-size: 14px; margin-bottom: 2px; }
.alert p { font-size: 13px; color: var(--text-2); }
.alert .alert-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.alert.danger { background: var(--danger-dim); border-color: rgba(255,77,79,0.3); color: var(--danger); }
.alert.warn { background: var(--warn-dim); border-color: rgba(255,176,32,0.28); color: var(--warn); }

/* progress ring */
.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,0.08); }
.ring .bar { stroke: var(--volt); stroke-linecap: round; transition: stroke-dashoffset 600ms var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }

/* linear bar */
.bar-line { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-line > span { display: block; height: 100%; background: var(--volt); border-radius: 6px; transition: width 600ms var(--ease); }

/* checklist */
.check-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left;
}
.check-row:first-child { border-top: 0; }
.check-box {
  width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; transition: all var(--dur) var(--ease);
}
.check-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: all var(--dur) var(--ease); color: var(--volt-ink); }
.check-row[aria-checked="true"] .check-box { background: var(--volt); border-color: var(--volt); }
.check-row[aria-checked="true"] .check-box svg { opacity: 1; transform: none; }
.check-row[aria-checked="true"] .check-title { color: var(--text-3); text-decoration: line-through; }
.check-title { font-size: 14px; font-weight: 600; }
.check-sub { font-size: 12px; color: var(--text-3); }
.check-time { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.check-row.locked { opacity: 0.55; }

/* empty value */
.empty-val { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--text-3); line-height: 0.9; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); transform: translate(-50%, 20px);
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all var(--dur) var(--ease); z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* placeholder screens */
.soon { text-align: center; padding: 60px 10px; }
.soon .num { font-size: 40px; margin: 12px 0 8px; }
.soon p { color: var(--text-2); max-width: 300px; margin: 0 auto; }
