:root {
  --bg: #0f1210;
  --ink: #d5dbd4;
  --muted: #7a847c;
  --line: #2a312c;
  --accent: #8fa392;
  --num: #e8efe6;
  --soft: #171c19;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, #1a2420 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, #161c18 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.45 "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.app {
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.top {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

h1 { font-size: 22px; }
h2 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.control {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  text-transform: lowercase;
  cursor: pointer;
}

.switch-row input {
  width: 42px;
  height: 24px;
  accent-color: var(--accent);
  cursor: pointer;
}

.inbound {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  min-height: 1.4em;
}

textarea#draft {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--num);
  font: inherit;
  border-radius: 0;
}

textarea#draft:focus {
  outline: 1px solid var(--accent);
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

button {
  font: inherit;
  text-transform: lowercase;
  background: var(--accent);
  color: #101411;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.35;
  cursor: default;
}

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

.queue {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.hint {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 12px;
}

.stock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.row.hero .label,
.row.hero .value {
  font-size: 18px;
  color: var(--num);
}

.label {
  color: var(--muted);
  text-transform: lowercase;
}

.value {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  white-space: nowrap;
}

.dispenses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.recent ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.recent .what {
  color: var(--ink);
}
