:root {
  color-scheme: dark;
  --shell-bg: #050a13;
  --shell-panel: #0a1728;
  --shell-line: rgba(98, 197, 255, .28);
  --shell-text: #edf9ff;
  --shell-muted: #91aec0;
  --shell-accent: #45ccff;
  --shell-danger: #ff6c7f;
  --shell-success: #56efbd;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--shell-bg); color: var(--shell-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; background: radial-gradient(circle at 70% 20%, rgba(25, 126, 222, .22), transparent 35%), linear-gradient(150deg, #040812, #071425 55%, #06101c); }
.activity-shell, .shell-fallback { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.shell-card { width: min(620px, 94vw); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--shell-line); border-radius: 26px; background: rgba(8, 22, 39, .92); box-shadow: 0 28px 90px rgba(0,0,0,.42); text-align: center; }
.shell-mark { width: 88px; height: 88px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(74, 203, 255, .48); border-radius: 25px; background: rgba(10, 38, 67, .78); font-size: 42px; box-shadow: 0 0 55px rgba(36, 182, 255, .2); }
.shell-eyebrow { color: var(--shell-accent); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.shell-copy h1 { margin: 5px 0 8px; font-size: clamp(30px, 6vw, 54px); letter-spacing: -.04em; }
.shell-copy p { margin: 0; color: var(--shell-muted); line-height: 1.5; }
.shell-progress { width: min(360px, 78vw); height: 5px; margin: 24px auto 0; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 9px; }
.shell-progress span { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, var(--shell-accent), transparent); animation: shell-scan 1.15s linear infinite; }
@keyframes shell-scan { from { transform: translateX(-120%); } to { transform: translateX(380%); } }
.shell-detail { margin: 20px 0 0; max-height: 180px; overflow: auto; padding: 12px; border: 1px solid rgba(255,108,127,.3); border-radius: 12px; background: rgba(40, 7, 15, .38); color: #ffd9df; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: left; white-space: pre-wrap; word-break: break-word; }
.shell-retry { margin-top: 18px; border: 0; border-radius: 12px; padding: 12px 18px; color: white; background: #167ed8; font-weight: 800; cursor: pointer; }
.activity-shell.error .shell-mark { border-color: rgba(255,108,127,.55); box-shadow: 0 0 55px rgba(255,108,127,.12); }
.activity-shell.error .shell-progress { display: none; }
.activity-shell.offline .shell-progress span { background: linear-gradient(90deg, transparent, #ffbd57, transparent); }
.activity-root { min-height: 100vh; }
.activity-root[hidden], .activity-shell[hidden] { display: none !important; }
