:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --ink: #22211f;
  --muted: #69645d;
  --line: #d9cec0;
  --panel: #fffaf1;
  --accent: #1c6b64;
  --accent-strong: #0f4b45;
  --blue: #315f9f;
  --red: #a33b2d;
  --amber: #9b6a1f;
  --shadow: 0 18px 38px rgba(42, 32, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(28, 107, 100, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(163, 59, 45, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: "Avenir Next", "Gill Sans", Verdana, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.mast {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 24px;
  border-bottom: 2px solid var(--ink);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 0.98;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  background: #f2d36b;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(28, 107, 100, 0.16);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin-top: 22px;
}

.panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.composer {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.composer .panel-head {
  padding: 0 0 16px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9ab9a;
  border-radius: 6px;
  background: #fffcf6;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 107, 100, 0.18);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  min-height: 44px;
  margin-top: 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--accent);
  color: #fffaf1;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 130ms ease, background-color 130ms ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.secondary {
  min-height: 34px;
  margin: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 11px;
}

.secondary:hover {
  background: #eadfce;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 78px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.neutral {
  color: var(--blue);
}

.ready {
  color: var(--accent);
}

.blocked {
  color: var(--amber);
}

.failed {
  color: var(--red);
}

.channel-list {
  display: grid;
}

.channel {
  display: grid;
  grid-template-columns: 160px 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.channel:last-child {
  border-bottom: 0;
}

.channel strong {
  font-size: 15px;
}

.channel p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ledger {
  margin-top: 18px;
}

.task-zone {
  margin-top: 18px;
}

.task-note {
  align-self: start;
}

.note-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.note-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.note-body code {
  color: var(--ink);
  font-size: 0.94em;
  font-weight: 800;
}

.hint {
  min-height: 22px;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.setup-actions .secondary,
.button-link {
  min-height: 38px;
  margin: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--accent);
  color: #fffaf1;
  padding: 8px 12px;
  font-weight: 900;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent-strong);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td:last-child {
  max-width: 420px;
}

.empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .mast {
    align-items: start;
    flex-direction: column;
  }

  h1 {
    font-size: 38px;
  }

  .workspace,
  .split {
    grid-template-columns: 1fr;
  }

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