:root {
  --ink: #1b1b1b;
  --accent: #264653;
  --accent-2: #f4a261;
  --panel: #fff;
  --stroke: #d8d2c8;
  --bg: #f7f2ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
  background: linear-gradient(120deg, #f7f2ea, #eef5f3);
  color: var(--ink);
}

header {
  padding: 24px 32px 0;
}

h1 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
}

main {
  display: grid;
  gap: 20px;
  padding: 24px 32px 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(27, 27, 27, 0.08);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

label {
  font-weight: 600;
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--ink);
}

button.primary {
  background: var(--accent-2);
  color: #1b1b1b;
}

.note {
  background: #fcf5ea;
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 12px;
  white-space: pre-line;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #f3eee6;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.label {
  font-size: 12px;
  color: #5a564d;
  text-transform: uppercase;
}

.value {
  font-size: 20px;
  font-weight: 700;
}

.log {
  max-height: 260px;
  overflow: auto;
  background: #fcf8f2;
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 12px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  white-space: pre-line;
}

@media (max-width: 720px) {
  header {
    padding: 16px 20px 0;
  }
  main {
    padding: 20px;
  }
}
