* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #38bdf8;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero,
.card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.38);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  margin-bottom: 24px;
}

.card {
  padding: 24px;
}

.login-card {
  max-width: 440px;
  margin: 10vh auto 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(15, 23, 42, 0.9));
}

.eyebrow {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
}

.muted,
.help,
.empty {
  color: #94a3b8;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: #cbd5e1;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: #020617;
  color: #f8fafc;
  padding: 13px 14px;
}

code {
  color: #bae6fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

button {
  border: 0;
  border-radius: 14px;
  background: #06b6d4;
  color: #06202a;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
}

button.secondary {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

button.danger {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.inline-form {
  display: inline-grid;
  margin-right: 8px;
}

.manual-port-edit-button {
  margin-right: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.notice {
  border-radius: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.notice.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.notice.success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.redeploy-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.76);
  padding: 24px;
  z-index: 20;
}

.redeploy-modal[hidden] {
  display: none;
}

.redeploy-dialog {
  width: min(420px, 100%);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.6);
  padding: 24px;
}

.redeploy-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.redeploy-steps li {
  color: #94a3b8;
}

.redeploy-steps li.active {
  color: #67e8f9;
  font-weight: 800;
}

.redeploy-steps li.complete {
  color: #86efac;
}

.workspace-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workspace-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-bottom: 12px;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.status.deployed {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.status.failed {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .shell {
    padding: 24px 0;
  }

  .hero,
  .grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
