:root {
  --ink: #101010;
  --paper: #f2efe8;
  --accent: #ff5a1f;
  --mint: #1ed8a6;
  --line: #101010;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(130deg, #f2efe8 0%, #efe6d5 40%, #f7ecd9 100%);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.panel {
  width: min(700px, 100%);
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 10px 10px 0 var(--line);
  padding: 1.4rem;
  animation: rise 350ms ease-out;
}

.frame {
  position: relative;
}

.frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

h1 {
  margin: 0.35rem 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.lede {
  margin-top: 0;
  max-width: 40ch;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.hidden {
  display: none;
}

label {
  font-weight: 600;
  margin-top: 0.4rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 2px solid var(--line);
  padding: 0.7rem;
  background: #fff;
}

.btn {
  border: 2px solid var(--line);
  padding: 0.8rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
}

.btn-ghost {
  background: var(--mint);
  box-shadow: 2px 2px 0 var(--line);
  padding: 0.5rem 0.8rem;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mono {
  font-size: 0.85rem;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
}

.status {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  font-weight: 600;
}

.status.ok {
  color: #0b6e4f;
}

.status.err {
  color: #8f1f1f;
}

.progress-wrap {
  width: 100%;
  height: 14px;
  border: 2px solid var(--line);
  background: #fff;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    45deg,
    var(--accent),
    var(--accent) 8px,
    #ff8e5f 8px,
    #ff8e5f 16px
  );
  transition: width 160ms linear;
}

.logs-panel {
  margin-top: 0.8rem;
  border: 2px solid var(--line);
  background: #fff;
}

.logs-panel summary {
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  font-weight: 600;
}

.logs-output {
  margin: 0;
  padding: 0.7rem;
  border-top: 2px solid var(--line);
  min-height: 90px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.4;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
