
:root{
  --bg:#0b1020;
  --panel:#121a2d;
  --panel-2:#0f172a;
  --line:#223152;
  --text:#e8eefc;
  --muted:#9db0d3;
  --brand:#4f46e5;
  --brand-2:#2563eb;
  --success:#16a34a;
  --warning:#f59e0b;
  --shadow:0 20px 60px rgba(2,6,23,.35);
  --radius:20px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  background:
    radial-gradient(circle at top left, rgba(79,70,229,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(37,99,235,.14), transparent 24%),
    linear-gradient(180deg, #09101f 0%, #0b1020 100%);
  color:var(--text);
}
html.auth-pending body{visibility:hidden}
.shell{min-height:100vh;display:flex;flex-direction:column}
.shell-header{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:18px 24px;border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(9,16,31,.76);backdrop-filter:blur(18px);position:sticky;top:0;z-index:50;
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand-badge{
  width:46px;height:46px;border-radius:16px;display:grid;place-items:center;
  font-weight:800;background:linear-gradient(180deg,var(--brand),var(--brand-2));color:#fff;
  box-shadow:0 14px 32px rgba(79,70,229,.32);
}
.brand strong{display:block;font-size:16px;letter-spacing:-.02em}
.brand span{display:block;font-size:13px;color:var(--muted)}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:0 14px;border-radius:999px;
  background:rgba(79,70,229,.14);border:1px solid rgba(79,70,229,.3);
  color:#c7d2fe;font-weight:700;font-size:13px
}
.user-email{
  min-height:34px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);font-size:13px;color:var(--muted);
  display:inline-flex;align-items:center;justify-content:center;line-height:1;white-space:nowrap;
}
.button{
  min-height:42px;padding:0 16px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);color:var(--text);font:inherit;font-weight:700;cursor:pointer;
  text-decoration:none;display:inline-flex;align-items:center;justify-content:center;transition:.2s ease
}
.button:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.22)}
.button.primary{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));border-color:transparent;color:#fff;
}
.button.ghost{background:rgba(255,255,255,.06)}
.shell-main{flex:1;display:grid;place-items:center;padding:0}
.state-card{
  width:min(720px,100%);padding:34px;border-radius:28px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg, rgba(18,26,45,.9), rgba(15,23,42,.9));
  box-shadow:var(--shadow);text-align:center
}
.state-card h1{margin:0 0 10px;font-size:30px;letter-spacing:-.04em}
.state-card p{margin:0;color:var(--muted);line-height:1.65}
.state-actions{margin-top:18px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.spinner{
  width:52px;height:52px;border-radius:999px;margin:0 auto 18px;
  border:4px solid rgba(255,255,255,.12);border-top-color:#fff;animation:spin 1s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}
.frame-wrap{
  position:relative;width:100%;height:calc(100vh - 82px);overflow:hidden;
  border:none;box-shadow:none;background:#fff;
}
.frame-wrap iframe{width:100%;height:100%;border:none;background:#fff;display:block}
.hidden{display:none!important}
@media (max-width: 720px){
  .shell-header{padding:16px;align-items:flex-start;flex-direction:column}
  .header-actions{width:100%;justify-content:flex-start}
  .frame-wrap{height:calc(100vh - 132px)}
}
