:root {
  color-scheme: light;
  --ink: #14201c;
  --muted: #60746d;
  --line: #d9e4df;
  --panel: #ffffff;
  --field: #f6faf8;
  --accent: #16725e;
  --accent-2: #d85832;
  --soft: #e8f5ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f7f4;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.status-card,
.panel,
.timeline {
  border: 1px solid var(--line);
  background: var(--panel);
}

.status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.status-card span,
.packet-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 2rem;
}

.workspace {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.panel {
  padding: 22px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea,
button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

input,
select,
textarea {
  background: var(--field);
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

button {
  min-height: 44px;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  filter: brightness(0.95);
}

.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.output-head button {
  width: auto;
  min-width: 118px;
  background: #233832;
}

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

.packet-grid article {
  min-height: 138px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid #cfe3da;
}

.packet-grid p {
  margin: 8px 0 0;
  line-height: 1.5;
}

pre {
  overflow: auto;
  margin: 18px 0 0;
  padding: 16px;
  background: #10211d;
  color: #dff8ee;
  border-radius: 6px;
  line-height: 1.5;
}

.timeline {
  margin-top: 22px;
  padding: 22px;
}

ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  padding: 14px;
  background: #fff8f4;
  border-left: 4px solid var(--accent-2);
  line-height: 1.5;
}

@media (max-width: 850px) {
  .hero,
  .workspace,
  .packet-grid,
  ol {
    grid-template-columns: 1fr;
  }
}
