:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #eef2e7;
  background: #151a17;
}
body { margin: 0; }
main { max-width: 44rem; margin: auto; padding: 1.5rem 1rem 2rem; }
h1 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.6rem); line-height: 1.15; }
h2 { font-size: 1.15rem; margin: 0; }
.status { min-height: 3em; color: #c1cbbf; }
.actions, .toolbar { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions button { flex: 1 1 12rem; }
.toolbar { align-items: center; margin-top: 1.5rem; }
.toolbar h2 { flex: 1 0 6rem; }
button {
  padding: .6rem .9rem;
  min-height: 44px;
  border: 1px solid #576559;
  border-radius: .5rem;
  background: #232d26;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.actions button:first-child { background: #c8f58a; color: #172311; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #c8f58a; outline-offset: 3px; }
pre {
  min-height: 12rem;
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: .8rem;
  border: 1px solid #404f44;
  border-radius: .5rem;
  background: #101512;
  font: .82rem/1.55 ui-monospace, monospace;
}
pre:empty::before { content: "Журнал пуст"; color: #c1cbbf; }
