:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #6e7b97;
  --line: rgba(152, 174, 216, .36);
  --glass: rgba(255, 255, 255, .68);
  --blue: #5078ff;
  --violet: #7658f5;
  --red: #ec5264;
  --green: #179b68;
  font-family: Inter, "Microsoft YaHei UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #eef6ff 0%, #f7f3ff 48%, #eaf5ff 100%);
  overflow-x: hidden;
}

.aurora { position: fixed; border-radius: 999px; filter: blur(12px); opacity: .5; pointer-events: none; }
.aurora-a { width: 38rem; height: 38rem; background: radial-gradient(circle, #a9d5ff, transparent 68%); top: -16rem; left: -10rem; }
.aurora-b { width: 42rem; height: 42rem; background: radial-gradient(circle, #d0b8ff, transparent 68%); right: -17rem; bottom: -22rem; }
.shell { width: min(1420px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 64px; position: relative; z-index: 1; }
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(240,247,255,.58));
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(52, 79, 132, .15), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.hidden { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 38px); }
h2 { margin-bottom: 4px; font-size: 20px; }
.eyebrow { margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--blue); }
.muted { color: var(--muted); }
.login-card { width: min(500px, 100%); margin: 8vh auto 0; padding: 42px; border-radius: 30px; text-align: center; }
.brand-mark { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; color: white; font-size: 28px; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 16px 36px rgba(91, 94, 237, .3); }
.stack { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: #44506a; }
input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid rgba(140, 163, 207, .46); border-radius: 13px;
  outline: none; color: var(--ink); background: rgba(255,255,255,.72); font: inherit; transition: .2s;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(80,120,255,.12); }
button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; font: inherit; font-weight: 800; cursor: pointer; transition: .18s; }
button:hover { transform: translateY(-1px); }
.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 24px rgba(84, 101, 239, .22); }
.ghost { color: #344361; background: rgba(255,255,255,.62); border-color: var(--line); }
.danger-ghost { color: #c33d52; background: rgba(255,240,243,.7); border-color: rgba(224,99,119,.25); }
.message { min-height: 20px; margin: 12px 0 0; color: #c23b50; font-size: 13px; }
.message.success { color: var(--green); }
.dashboard { display: grid; gap: 18px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 28px; border-radius: 24px; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.identity { padding: 9px 13px; border-radius: 12px; color: #344361; background: rgba(255,255,255,.58); font-size: 13px; font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { min-height: 120px; padding: 23px; border-radius: 22px; display: grid; align-content: center; gap: 6px; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat strong { font-size: 34px; color: #365fe8; }
.release-card, .create-card, .table-card { padding: 25px; border-radius: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading p { margin-bottom: 0; }
.create-grid { display: grid; grid-template-columns: 1.05fr 1.1fr 1.15fr 1.15fr .65fr auto; gap: 12px; align-items: end; }
.create-button { height: 44px; }
.release-grid { display: grid; grid-template-columns: .7fr 2fr .6fr auto; gap: 12px; align-items: end; }
.release-button { height: 44px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 940px; }
th, td { padding: 15px 12px; border-bottom: 1px solid rgba(145,166,204,.24); text-align: left; font-size: 13px; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.account-name { display: grid; gap: 3px; }
.account-name strong { font-size: 14px; }
.account-name span { color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pill.ok { color: #087a4d; background: rgba(90,222,157,.18); }
.pill.off { color: #b7354a; background: rgba(242,104,123,.15); }
.pill.warn { color: #9a6200; background: rgba(255,191,66,.18); }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.actions button { min-height: 32px; padding: 0 10px; border-radius: 10px; font-size: 11px; background: rgba(255,255,255,.64); border-color: var(--line); color: #3b4967; }
.actions .red { color: #c33d52; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.dialog-card { width: min(480px, calc(100% - 32px)); padding: 28px; border-radius: 24px; color: var(--ink); }
.dialog-card::backdrop { background: rgba(19, 29, 52, .32); backdrop-filter: blur(8px); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .create-grid, .release-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .shell { width: min(100% - 20px, 1420px); padding-top: 16px; }
  .login-card { padding: 28px 22px; }
  .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .stats-grid, .create-grid, .release-grid { grid-template-columns: 1fr; }
}
