:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6b78;
  --surface: #ffffff;
  --line: #d7dee6;
  --wash: #f4f7f9;
  --accent: #147a8b;
  --accent-ink: #ffffff;
  --danger: #a23a47;
  --danger-wash: #fff1f3;
  --gold: #f2b84b;
  --green: #277451;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 122, 139, 0.12), transparent 34rem),
    linear-gradient(225deg, rgba(242, 184, 75, 0.18), transparent 30rem),
    var(--wash);
}

.shell {
  width: min(960px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 42px;
  padding: 48px 0;
}

.mast h1,
.panel h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.mast h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace {
  min-height: 360px;
}

.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 22px 50px rgba(23, 32, 42, 0.12);
  padding: 28px;
}

.panel h2 {
  font-size: 2rem;
}

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

.hidden {
  display: none;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible {
  outline: 3px solid rgba(20, 122, 139, 0.28);
  outline-offset: 3px;
}

.primary {
  margin-top: 22px;
  color: var(--accent-ink);
  background: var(--accent);
}

.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.danger {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}

.button-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.7rem;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.status-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1720;
}

.status-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  color: #dce7ef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.status-line strong {
  color: var(--gold);
}

pre {
  min-height: 120px;
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  color: #d8f4e5;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e3ea;
}

.bar span {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  animation: load 1.1s ease-in-out infinite alternate;
}

.error {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
}

@keyframes load {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(140%);
  }
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .mast h1 {
    max-width: 12ch;
    font-size: 3.2rem;
  }

  .panel {
    padding: 22px;
  }

  .profile-row {
    align-items: flex-start;
  }
}
