:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --ink: #1c2430;
  --muted: #667085;
  --line: #d9dee7;
  --panel: #ffffff;
  --green: #147d64;
  --green-strong: #0f6b55;
  --red: #b42318;
  --red-soft: #fff1f0;
  --amber: #a15c07;
  --blue-soft: #e8f0ff;
  --shadow: 0 18px 60px rgba(27, 36, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef3f8 0, transparent 260px),
    radial-gradient(circle at 10% 0%, rgba(20, 125, 100, 0.08), transparent 32rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.workspace {
  width: min(960px, 100%);
}

.mast {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.panel {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.tile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #c8cfda;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 125, 100, 0.16);
}

.actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c8cfda;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover:not(:disabled) {
  border-color: #98a2b3;
  background: #f9fafb;
}

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

button.primary {
  color: #fff;
  border-color: var(--green-strong);
  background: var(--green);
}

button.primary:hover:not(:disabled) {
  border-color: #0a5845;
  background: var(--green-strong);
}

button.danger {
  color: var(--red);
  border-color: #ffc9c2;
  background: var(--red-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.tile {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.code-tile {
  background: var(--blue-soft);
  border-color: #c7d7fe;
}

.code-tile strong {
  font-size: 34px;
}

.notes {
  margin-top: 12px;
  padding: 16px 18px;
  color: var(--ink);
  background: #f9fbfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notes h2 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
}

.notes ol {
  margin: 0;
  padding-left: 22px;
}

.notes li {
  padding: 3px 0;
  color: #344054;
  line-height: 1.55;
}

.notes strong {
  font-weight: 800;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #513b12;
  background: #fff7e6;
  border: 1px solid #f2d088;
  overflow-wrap: anywhere;
}

.notice.error {
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffc9c2;
}

@media (max-width: 720px) {
  .shell {
    align-items: start;
    padding-top: 22px;
  }

  .mast {
    align-items: center;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 721px) and (max-width: 980px) {
  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
