:root {
  --bg: #f7f1e8;
  --panel: #fffdf8;
  --ink: #161616;
  --muted: #6d655f;
  --accent: #f05a28;
  --accent-2: #ffd54a;
  --line: #161616;
  --success: #1d8f5f;
  --offline: #9a928b;
  --shadow: 8px 8px 0 0 #161616;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 90, 40, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 213, 74, 0.22), transparent 30%),
    linear-gradient(180deg, #fff8eb 0%, var(--bg) 100%);
}

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow,
.panel-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.command-panel {
  margin-bottom: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 24px;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent-2);
}

.status-pill.online {
  background: #bbf0bf;
}

.status-pill.offline {
  background: #ede6df;
}

.command-box {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #161616;
  color: #f7f1e8;
  font-size: 14px;
  line-height: 1.6;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.command-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.command-note code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 13px;
}

.primary-button,
.ghost-button {
  appearance: none;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.ghost-button {
  background: white;
}

.copy-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 340px;
  max-height: 500px;
  overflow: auto;
  padding-right: 4px;
}

.message {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: white;
}

.system-message {
  background: #fff0ca;
}

.message-header {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.message-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.composer {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.composer-input {
  flex: 1;
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-card {
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: white;
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

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

  .composer {
    flex-direction: column;
  }

  .panel-header {
    flex-direction: column;
  }
}
