:root {
  --ink: #17304a;
  --muted: #687d91;
  --blue: #2d86e5;
  --blue-dark: #176ec8;
  --blue-soft: #eaf5ff;
  --sky: #dff2ff;
  --card: rgba(255,255,255,.94);
  --line: #dce8f2;
  --danger: #b53a42;
  --success: #217a4a;
  --shadow: 0 24px 70px rgba(42, 94, 137, .16);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #eef8ff; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(111,195,255,.35), transparent 27rem),
    radial-gradient(circle at 90% 5%, rgba(188,226,255,.65), transparent 30rem),
    linear-gradient(155deg, #f9fdff 0%, #e5f5ff 48%, #f6fbff 100%);
}
button, input, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 42px; }
.brandbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 34px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-word { font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.beta-pill, .build-badge, .current-pill { border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.beta-pill { padding: 5px 8px; background: var(--blue); color: white; }
footer { color: var(--muted); text-align: center; font-size: 13px; padding-top: 28px; }
.hero-card, .content-card { background: var(--card); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); border-radius: 28px; }
.hero-card { padding: clamp(28px, 5vw, 58px); }
.content-card { padding: 28px; margin-top: 20px; }
.login-card { max-width: 620px; margin: 7vh auto 0; text-align: center; }
.login-card .stack { text-align: left; max-width: 430px; margin: 30px auto 0; }
.progress-mark { width: 72px; height: 72px; border: 8px solid #d9edfc; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; margin: 0 auto 24px; position: relative; transform: rotate(12deg); }
.progress-mark span { position:absolute; inset: 15px; border-radius: 50%; background: linear-gradient(150deg, #eef9ff, #fff); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--blue-dark); }
h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -1.6px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 18px 0 0; }
.lead.small { font-size: 16px; }
.stack { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 14px; }
input[type="password"], input[type="file"], textarea { width: 100%; border: 1px solid #cbdbe8; border-radius: 15px; background: white; color: var(--ink); padding: 14px 15px; outline: none; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,134,229,.11); }
textarea { resize: vertical; line-height: 1.5; }
.button { appearance: none; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.button.primary { background: linear-gradient(180deg, #3495f1, #227bd5); color: white; box-shadow: 0 10px 24px rgba(33,123,213,.23); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--blue-soft); color: var(--blue-dark); }
.button.danger { background: #fff0f1; color: var(--danger); }
.small-button { padding: 9px 12px; font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.alert { margin: 22px 0 0; padding: 13px 15px; border-radius: 14px; text-align: left; font-weight: 650; }
.alert.error { background: #fff0f1; color: var(--danger); border: 1px solid #ffd4d7; }
.alert.success { background: #ebf8f1; color: var(--success); border: 1px solid #cfeedd; }
.status-line { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-weight: 800; font-size: 14px; margin-bottom: 28px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #27a761; box-shadow: 0 0 0 5px rgba(39,167,97,.12); }
.release-heading { display:flex; justify-content: space-between; gap:20px; align-items: center; }
.build-badge { background: var(--blue-soft); color: var(--blue-dark); padding: 9px 12px; white-space: nowrap; }
.meta { color: var(--muted); margin: 20px 0 26px; }
.download { min-width: 250px; }
.small-note { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.release-notes { white-space: pre-line; line-height: 1.65; margin-top: 14px; }
.content-card.compact { box-shadow: none; background: rgba(255,255,255,.7); }
.detail-row { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 8px 0; font-size: 13px; }
.detail-row span { color: var(--muted); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.admin-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.admin-grid .content-card { margin-top: 0; }
.upload-card h1 { font-size: 38px; }
.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap: 16px; margin-bottom: 20px; }
.link-button { color: var(--blue-dark); text-decoration: none; font-weight: 750; font-size: 14px; }
.release-list { display:grid; gap:12px; }
.release-item { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background:#fff; }
.release-item.current { border-color:#9dcef6; box-shadow: inset 0 0 0 1px #cbe6fb; }
.release-item-top { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.release-item-top strong { display:block; }
.release-item-top div span { color:var(--muted); font-size:13px; }
.current-pill { background:#e9f7ef; color:var(--success); padding:6px 9px; }
.release-item > p { color:var(--muted); font-size:13px; margin:8px 0; }
.release-notes.preview { font-size:14px; max-height:4.8em; overflow:hidden; }
.item-actions { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.item-actions form { margin:0; }
.empty { color:var(--muted); }
@media (max-width: 820px) {
  .admin-grid { grid-template-columns: 1fr; }
  .release-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 16px; }
  .brandbar { margin-bottom: 20px; }
  .brand-word { font-size: 24px; }
  .hero-card, .content-card { border-radius: 22px; }
  .hero-card { padding: 26px 20px; }
  .content-card { padding: 20px; }
  h1 { font-size: 36px; }
  .detail-row { grid-template-columns: 1fr; gap: 3px; }
}
