:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: block;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.12), transparent 32%),
    #0b1020;
}

.shell {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding: 8px;
  display: grid;
  gap: 10px;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 9px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 4px;
  color: #5eead4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: .9rem;
}

.status {
  min-height: 22px;
  margin: 0 0 7px;
  font-size: 0.7rem;
  color: #cbd5e1;
  line-height: 1.3;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 0.68rem;
}

input {
  width: 100%;
  min-height: 29px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 6px;
  padding: 0 9px;
  background: #111827;
  color: #f8fafc;
  font: inherit;
}

.setup-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

button {
  min-height: 29px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #14b8a6;
  color: #042f2e;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

button:nth-child(2) {
  background: #f59e0b;
  color: #1f1300;
}

button:nth-child(3) {
  background: #334155;
  color: #f8fafc;
}

button:nth-child(4) {
  background: #2563eb;
  color: #eff6ff;
}

button:nth-child(5) {
  background: #e11d48;
  color: #fff1f2;
}

.terminal-panel {
  min-height: calc(100dvh - 16px);
  display: flex;
  flex-direction: column;
}

.terminal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.terminal-heading .eyebrow {
  margin-bottom: 4px;
}

button.new-terminal {
  background: #14b8a6;
  color: #042f2e;
}

.terminal-tabs {
  display: flex;
  gap: 4px;
  min-height: 27px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.terminal-tab {
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #111827;
}

.terminal-tab.active {
  border-color: #14b8a6;
  background: #172033;
}

.terminal-tab button {
  min-height: 26px;
  border-radius: 0;
  background: transparent;
  color: #cbd5e1;
  padding: 0 7px;
  font-size: 0.68rem;
  font-weight: 650;
}

.terminal-tab-select {
  min-width: 92px;
}

.terminal-tab.active .terminal-tab-select {
  color: #5eead4;
}

.terminal-tab button.terminal-tab-close {
  min-width: 26px;
  padding: 0;
  color: #94a3b8;
  font-size: 1.25rem;
}

.terminal-empty {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 330px;
  border: 1px dashed #334155;
  border-radius: 6px;
  color: #94a3b8;
}

.terminal-workspace {
  flex: 1;
  min-height: 0;
}

.terminal-screen {
  height: calc(100dvh - 92px);
  border: 1px solid #253047;
  border-radius: 5px;
  padding: 5px 4px;
  background: #050914;
}

.terminal-screen .xterm {
  height: 100%;
}

@media (min-width: 520px) {
  .setup-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 5px;
  }

  .terminal-screen {
    height: calc(100dvh - 130px);
  }
}
