:root {
  color-scheme: dark;
  --bg: #000;
  --text: #eee;
  --muted: #aaa;
  --line: #444;
  --panel: #080808;
  --danger: #ff7777;
  --ok: #79d279;
}

* {
  box-sizing: border-box;
}

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

.shell {
  width: min(860px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0;
}

.patcher {
  padding: 0;
}

.heading {
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dropzone {
  display: block;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--panel);
}

.dropzone.dragging {
  border-color: #fff;
}

.dropzone input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone span {
  margin-top: 4px;
  color: var(--muted);
}

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

.status-grid div {
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--panel);
}

.status-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-grid strong {
  display: block;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

progress {
  width: 100%;
  height: 14px;
  margin-top: 14px;
  accent-color: #fff;
}

.log {
  min-height: 160px;
  margin: 14px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  white-space: pre-wrap;
}

.actions {
  margin-top: 14px;
}

.notice,
.disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.disclaimer {
  margin-top: 8px;
}

button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  color: #777;
  border-color: #555;
}

.error {
  color: var(--danger);
}

.ok {
  color: var(--ok);
}

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

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