:root {
  --bg: #0b0d0e;
  --panel: #141718;
  --panel-2: #1b1f20;
  --text: #f3f0ea;
  --muted: #a9ada7;
  --line: #2f3634;
  --green: #c2ff00;
  --amber: #ffd166;
  --red: #ff7373;
  --blue: #9ec5ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 14, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  font-size: 24px;
}

.brand-e {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
  margin-right: 2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 760;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

p {
  color: #c8ccc4;
  line-height: 1.6;
}

.guardrail,
.step-panel,
.status-panel,
article,
.release {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), #101314);
}

.guardrail {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.guardrail span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.workspace,
.grid-section,
.release {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.workspace {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.grid-section {
  grid-template-columns: 1fr 1fr;
}

.step-panel,
.status-panel,
article,
.release {
  padding: 22px;
}

.step-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border: 1px solid #425611;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.upload-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.dropzone {
  min-height: 132px;
  place-items: center;
  border: 1px dashed #52605b;
  border-radius: 8px;
  background: #0d1011;
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dropzone span {
  color: var(--green);
  font-size: 18px;
}

small,
.muted {
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0c;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #070808;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.status-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.status-grid div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flag.ok {
  border-color: #4f6d14;
  color: var(--green);
}

.flag.warn {
  border-color: #67511a;
  color: var(--amber);
}

.flag.bad {
  border-color: #653030;
  color: var(--red);
}

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

td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td:first-child {
  width: 42%;
  color: var(--muted);
}

.check-list,
.room-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.room-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101314;
  line-height: 1.45;
}

.release {
  grid-template-columns: 1fr auto;
  align-items: center;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .workspace,
  .grid-section,
  .release {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    justify-content: flex-start;
  }
}
