:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef4ff;
  color: #14172e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 5%, rgba(118, 93, 255, .22), transparent 38%),
    radial-gradient(circle at 95% 20%, rgba(53, 168, 255, .23), transparent 40%),
    #eef4ff;
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 65px rgba(47, 52, 105, .14);
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: #6757df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1;
  letter-spacing: -.045em;
}

.intro, #detail, details p {
  color: #676d8d;
  font-size: 16px;
  line-height: 1.5;
}

.shell {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: #fff4d8;
  color: #8a5a00;
}

.shell.ready { background: #e4f8e9; color: #14823b; }
.shell.error { background: #ffe9ec; color: #b22b45; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.status-box {
  padding: 18px;
  border: 1px solid #e1e5f3;
  border-radius: 18px;
  background: rgba(249,250,255,.9);
}

.status-row { display: flex; justify-content: space-between; gap: 16px; }
.status-row span { color: #747a99; }
.status-row strong { text-align: right; }
#detail { margin: 12px 0 0; }
.metadata { margin: 8px 0 0; font-size: 13px; color: #7b819f; }

.actions { display: grid; gap: 11px; margin-top: 18px; }

button {
  min-height: 54px;
  border: 1px solid #dfe3f0;
  border-radius: 16px;
  background: #fff;
  color: #171a31;
  font: inherit;
  font-weight: 750;
}

button.primary { border: 0; color: #fff; background: linear-gradient(135deg, #6959f5, #339cf5); }
button.danger { color: #b22b45; }
button:disabled { opacity: .45; }
button:not(:disabled):active { transform: scale(.985); }

details { margin-top: 20px; color: #565d80; }
summary { font-weight: 750; cursor: pointer; }

@media (max-width: 420px) {
  .card { padding: 23px 19px; border-radius: 25px; }
}
