* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre {
  font-family: Consolas, Monaco, monospace;
}
pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(460px, 100%);
}
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.topbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.topnav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.layout-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
label span {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
}
input, textarea, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #334155;
  padding: 12px 14px;
  font: inherit;
}
input, textarea, select {
  background: #0b1220;
  color: #e2e8f0;
}
button, .button-link {
  background: #2563eb;
  color: white;
  border: 0;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
}
button.danger {
  background: #dc2626;
}
.muted {
  color: #94a3b8;
}
.small {
  font-size: 0.9rem;
}
.flash {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
}
.flash-success {
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.45);
}
.flash-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.45);
}
.login-help, .token-box {
  margin-top: 16px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
}
.project-card {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.project-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid #1f2937;
  padding: 12px;
  vertical-align: top;
  text-align: left;
}
@media (max-width: 760px) {
  .topbar, .project-head {
    flex-direction: column;
  }
}
