:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: #334155;
  --green: #16a34a;
  --yellow: #ca8a04;
  --orange: #ea580c;
  --red: #dc2626;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(320px, 1fr) 340px;
  gap: 16px;
  min-height: 100vh;
  padding: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

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

p,
label,
.status-row,
.score,
li {
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 8px;
}

select,
button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
}

select {
  margin-bottom: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

button {
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary {
  margin-top: 10px;
  background: var(--blue);
}

.workspace {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.eyebrow {
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 12px;
}

.post {
  min-height: 160px;
  padding: 24px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 28px;
  line-height: 1.35;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.allow {
  background: var(--green);
}

.warn {
  background: var(--yellow);
}

.flag {
  background: var(--orange);
}

.delete {
  background: var(--red);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--panel-soft);
  border-radius: 8px;
}

.logs {
  overflow: hidden;
}

#log-list {
  height: calc(100vh - 125px);
  margin: 16px 0 0;
  padding-left: 22px;
  overflow: auto;
}

li {
  margin-bottom: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .post {
    font-size: 22px;
  }

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

  #log-list {
    height: auto;
    max-height: 320px;
  }
}

