:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: rgba(13, 20, 32, .9);
  --panel-strong: rgba(18, 28, 43, .96);
  --text: #f7f9ff;
  --muted: #9ba9bf;
  --line: rgba(255,255,255,.1);
  --green: #55d18f;
  --blue: #79a8ff;
  --yellow: #ffd66e;
  --red: #ff7d8a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(121,168,255,.22), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(85,209,143,.14), transparent 28%),
    linear-gradient(180deg, #101b2d 0%, var(--bg) 48%, #03070d 100%);
}
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,214,110,.45);
  outline-offset: 3px;
}
.page { width: min(760px, 100%); margin: 0 auto; padding: 18px 16px 42px; }
.topbar, .brand-row { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.brand-row { gap: 10px; font-weight: 900; letter-spacing: -.01em; }
.brand-star {
  display: grid; width: 38px; height: 38px; place-items: center;
  color: #071018; background: linear-gradient(135deg, var(--yellow), var(--green));
  border-radius: 14px; box-shadow: 0 12px 24px rgba(85,209,143,.22);
}
.gear, .sheet-close {
  display: grid; width: 42px; height: 42px; place-items: center;
  border: 1px solid var(--line); border-radius: 15px;
  color: var(--text); background: rgba(255,255,255,.06); cursor: pointer;
}
.hero-card, .timeline, .history, .auth-panel, .bottom-sheet {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}
.hero-card { padding: 24px; border-radius: 28px; }
.eyebrow {
  margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .12em;
}
h1 { margin: 0; font-size: clamp(40px, 12vw, 70px); line-height: .96; letter-spacing: -.055em; }
h2 { margin: 0 0 14px; font-size: 20px; }
.muted { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.main-action { display: grid; gap: 12px; margin-top: 26px; }
.main-action span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.power-button, .primary {
  min-height: 58px; border: 0; border-radius: 19px; cursor: pointer;
  color: #071018; background: linear-gradient(135deg, var(--green), var(--yellow));
  font-weight: 950; font-size: 18px; box-shadow: 0 16px 35px rgba(85,209,143,.18);
}
.power-button:disabled, .primary:disabled {
  cursor: wait; color: var(--muted); background: rgba(255,255,255,.08); box-shadow: none;
}
.timeline, .history { margin-top: 16px; padding: 18px; border-radius: 24px; }
.step {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07);
}
.step:first-of-type { border-top: 0; }
.step strong { display: block; }
.step p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.step > span, .history-row b {
  min-width: 74px; padding: 7px 9px; border-radius: 999px; text-align: center;
  color: var(--muted); background: rgba(255,255,255,.06); font-size: 12px; font-weight: 950;
}
.step.ok > span, .history-row b.ok { color: #052514; background: var(--green); }
.step.running > span { color: #061428; background: var(--blue); }
.step.error > span, .history-row b.error { color: #2d0508; background: var(--red); }
.history-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07);
}
.notice {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px;
  color: #061428; background: var(--blue); font-weight: 800;
}
.notice.error { color: #2d0508; background: var(--red); }
.auth-body { display: grid; place-items: center; padding: 20px; }
.auth-panel {
  position: relative; overflow: hidden;
  width: min(440px, 100%); padding: 28px; border-radius: 28px;
}
.auth-panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--blue));
}
.auth-panel h1 { margin-top: 22px; font-size: 46px; }
.auth-panel p { color: var(--muted); line-height: 1.55; }
.stack { display: grid; gap: 9px; }
label { color: var(--muted); font-size: 13px; font-weight: 800; }
input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 16px; color: var(--text); background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
input:focus {
  border-color: rgba(255,214,110,.56);
  background: rgba(255,255,255,.09);
}
.sheet-backdrop {
  position: fixed; inset: 0; display: grid; align-items: end;
  background: rgba(0,0,0,.48); opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  width: min(560px, 100%); margin: 0 auto; padding: 22px 18px 20px;
  border-radius: 28px 28px 0 0; background: var(--panel-strong);
  transform: translateY(16px); transition: transform .18s ease;
}
.sheet-backdrop.open .bottom-sheet { transform: translateY(0); }
.sheet-close { margin-left: auto; }
.logout {
  display: block; margin-top: 16px; padding: 13px; border: 1px solid var(--line);
  border-radius: 16px; color: var(--text); text-align: center; text-decoration: none;
  background: rgba(255,255,255,.05); font-weight: 800;
}
@media (max-width: 520px) {
  .hero-card { padding: 20px; }
  .step { align-items: flex-start; flex-direction: column; }
  .step > span { text-align: left; }
}
