*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: none !important;
  animation: none !important;
}

:root {
  --bg: #09090b;
  --panel: #111113;
  --border: #222226;
  --text: #fafafa;
  --muted: #71717a;
  --dim: #3f3f46;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.5;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.clickable {
  cursor: pointer;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
}

.state-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: var(--mono);
}

.state-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.state-detail {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--dim);
  margin-bottom: 24px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--text);
}

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

button.btn {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-transform: lowercase;
}

button.btn:disabled {
  background: var(--dim);
  border-color: var(--dim);
  color: var(--muted);
  cursor: not-allowed;
}

.subtext {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.log-section {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.log-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-transform: lowercase;
}

.log-toggle:hover {
  color: var(--text);
}

.log-box {
  display: none;
  margin-top: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  max-height: 160px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-all;
}

.log-box.open {
  display: block;
}

.log-line {
  margin-bottom: 3px;
}

footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.hints {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
}
