:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fa;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(760px, calc(100% - 28px)); margin: 28px auto 60px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.badge {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: #173b67; color: white; font-weight: 800; font-size: 20px;
}
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #617089; }
h1 { margin: 1px 0 0; font-size: 28px; }
.subtitle { margin: 1px 0 0; color: #617089; }
.card {
  background: white; border: 1px solid #dce4ee; border-radius: 18px;
  padding: 20px; margin: 14px 0; box-shadow: 0 8px 28px rgba(20, 40, 70, .06);
}
.card h2 { margin-top: 0; }
.hidden { display: none !important; }
.status-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #eef3f9;
  font-size: 12px; font-weight: 800;
}
.muted { color: #6d7890; }
.small { font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.metric { border: 1px solid #e1e7ef; border-radius: 12px; padding: 12px; }
.metric .k { color: #6d7890; font-size: 12px; }
.metric .v { font-weight: 800; font-size: 18px; margin-top: 3px; }
.notice { background: #fff8e8; border: 1px solid #f0d895; border-radius: 14px; padding: 14px; margin-top: 14px; }
.notice ul { padding-left: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
button {
  appearance: none; border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  font: inherit; font-weight: 800;
}
button:disabled { opacity: .55; cursor: wait; }
.primary { background: #173b67; color: white; }
.secondary { background: #e8eef6; color: #173b67; }
.danger { background: #7e2734; color: white; }
.option {
  border: 1px solid #e1e7ef; border-radius: 12px; padding: 12px; margin: 8px 0;
}
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 28px)); }
dialog::backdrop { background: rgba(10, 20, 35, .45); }
.dialog-card { padding: 20px; }
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .status-row { align-items: flex-start; flex-direction: column; }
  button { width: 100%; }
}
