* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-width: 0;
  margin: 0;
  background: #101418;
  color: #f8fafc;
}

main {
  display: grid;
  gap: 14px;
  padding: 18px;
}

header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

#status {
  margin: 4px 0 0;
  color: #aab3c2;
}

.badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #2b6cff;
  border-radius: 4px;
  color: #9ec5ff;
  font-size: 12px;
}

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

.summary div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #29313d;
  background: #151b23;
}

.summary span {
  display: block;
  margin-bottom: 3px;
  color: #9ca3af;
  font-size: 12px;
}

.summary strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

label {
  display: grid;
  gap: 6px;
  color: #dbeafe;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #0b0f14;
  color: #e5f4ff;
  caret-color: #7dd3fc;
  font: inherit;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

button {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid #3b4858;
  border-radius: 4px;
  background: #151b23;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button.primary {
  border-color: #2b6cff;
  background: #0b5cff;
}

button:disabled {
  cursor: default;
  opacity: .48;
}

@media (max-width: 520px) {
  main {
    padding: 14px;
  }

  header,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .badge {
    align-self: flex-start;
  }

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

  button {
    width: 100%;
  }
}
