:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255,255,255,0.78);
  --panel-strong: rgba(255,255,255,0.92);
  --text: #101828;
  --muted: #667085;
  --line: rgba(15,23,42,0.12);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15,118,110,0.12);
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(15,23,42,0.12);
  font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; color: var(--text);
  background:
    radial-gradient(circle at 20% 0%,rgba(20,184,166,0.22),transparent 32%),
    radial-gradient(circle at 90% 12%,rgba(59,130,246,0.18),transparent 28%),
    linear-gradient(180deg,#f8fbff 0%,var(--bg) 100%);
}
button,input,select { font: inherit; }
.shell { width: min(1080px,calc(100vw - 32px)); margin: 0 auto; padding: 32px 0 56px; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0,1fr) 340px;
  gap: 24px; align-items: end; padding: 36px 0 24px;
}
.eyebrow { margin: 0 0 12px; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(36px,6vw,70px); line-height: 1; }
h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.summary { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* cards & panels */
.status-card, .panel {
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
}
.status-card { border-radius: 24px; padding: 22px; }
.status-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.status-dot {
  display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft);
}
.panel { margin-top: 18px; border-radius: 26px; padding: 22px; }
.panel-head {
  display: flex; gap: 18px; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
}
.panel-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.panel-head.compact { margin-bottom: 10px; }

/* grid */
.grid { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(2,minmax(0,1fr)); }

/* form */
label span { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.required { color: var(--danger); }
input, select {
  width: 100%; height: 46px; border: 1px solid rgba(15,23,42,0.14);
  border-radius: 14px; padding: 0 14px; color: var(--text);
  background: rgba(255,255,255,0.86); outline: none;
}
input[type="file"] {
  height: auto; padding: 10px 14px; cursor: pointer;
}
input:focus, select:focus {
  border-color: rgba(15,118,110,0.72); box-shadow: 0 0 0 4px var(--accent-soft);
}
.file-label { display: block; }
.mt { margin-top: 14px; }

/* buttons */
button {
  min-height: 42px; border: 0; border-radius: 999px; padding: 0 18px;
  cursor: pointer; transition: transform 0.16s,box-shadow 0.16s,background 0.16s;
}
button:active { transform: translateY(1px) scale(0.99); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary {
  min-height: 52px; padding: 0 36px; color: white; background: var(--accent);
  box-shadow: 0 18px 38px rgba(15,118,110,0.24); font-weight: 800; font-size: 1.05rem;
}
.primary:hover:not(:disabled) { background: var(--accent-strong); }
.secondary { color: var(--accent-strong); background: rgba(15,118,110,0.1); font-weight: 700; }
.small { min-height: 34px; padding: 0 14px; }

/* deploy panel */
.deploy-panel { display: flex; gap: 18px; align-items: center; }

/* result */
.result {
  flex: 1; min-height: 52px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; padding: 0 16px;
  color: var(--muted); background: var(--panel-strong); line-height: 1.4;
  word-break: break-all;
}
.result.success { color: var(--accent-strong); background: rgba(15,118,110,0.1); }
.result.error { color: var(--danger); background: rgba(180,35,24,0.08); }

/* logs */
.logs-panel { padding-bottom: 12px; }
pre {
  min-height: 180px; max-height: 380px; overflow: auto;
  margin: 0; border: 1px solid rgba(15,23,42,0.1); border-radius: 18px;
  padding: 16px; color: #d1fadf; background: #101828;
  font: 13px/1.55 ui-monospace,"SF Mono",Menlo,Consolas,monospace; white-space: pre-wrap;
}

@media (max-width: 780px) {
  .hero, .two { grid-template-columns: 1fr; }
  .deploy-panel { flex-direction: column; align-items: stretch; }
  .panel-head { flex-direction: column; align-items: stretch; }
}
