.setup-shell,
body {
  overflow: auto;
}

.setup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
}

.setup-panel,
.graph-panel {
  min-height: 100vh;
}

.setup-panel {
  height: 100vh;
  padding: 22px;
  background: rgba(7, 14, 20, 0.92);
  border-right: 1px solid var(--panel-border);
  overflow-y: auto;
}

.setup-panel h1,
.graph-card h2 {
  margin-top: 0;
}

.setup-copy,
.graph-caption,
.setup-status,
.profile-status {
  color: var(--muted);
}

.profile-manager,
.announcement-manager {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-manager h2,
.announcement-manager h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.announcement-manager {
  border-color: rgba(126, 207, 255, 0.24);
  background: rgba(126, 207, 255, 0.055);
}

.collision-setup {
  display: grid;
  gap: 2px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(255, 184, 84, 0.3);
  border-radius: 16px;
  background: rgba(255, 184, 84, 0.045);
}

.collision-setup h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd38b;
}

.collision-setup .field:last-child {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-field {
  margin-bottom: 0;
}

.field input[type="text"],
.field select,
.field textarea {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(6, 10, 15, 0.64);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
}

.field-help {
  color: var(--muted);
  line-height: 1.35;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-actions button,
.button-row button,
.back-link {
  cursor: pointer;
}

.danger-button {
  border-color: rgba(255, 112, 112, 0.44);
  color: #ffb8b8;
}

.profile-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.graph-panel {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 20px;
}

.graph-card {
  width: min(980px, 100%);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(7, 14, 20, 0.5);
}

.graph-card canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #101722;
  border: 1px solid var(--panel-border);
}

@media (max-width: 980px) {
  .setup-shell {
    grid-template-columns: 1fr;
  }

  .setup-panel,
  .graph-panel {
    min-height: auto;
  }

  .graph-panel {
    padding: 18px;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }
}
