@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200;300;400;500&display=swap");

:root {
  color-scheme: light;
  font-family: "Source Sans 3", system-ui, sans-serif;
  --ink: #101214;
  --muted: #6b7280;
  --panel: #ffffff;
  --line: rgba(148, 163, 184, 0.6);
  --accent: #111827;
  --accent-strong: #0f172a;
  --warm: #b91c1c;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6f7;
  color: var(--ink);
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

.app {
  width: min(2200px, 100%);
  margin: 0 auto;
  padding: 32px clamp(24px, 3vw, 64px) 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-shell {
  display: grid;
  gap: 28px;
  align-items: start;
}

.side-rail {
  display: grid;
  gap: 24px;
  align-content: start;
}

.brand {
  padding: 8px 6px;
}

.brand-title {
  font-size: clamp(64px, 8.4vw, 128px);
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--accent);
}

.brand-subtitle {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: none;
  width: 100%;
  min-width: 0;
}

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

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.status-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status-value {
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
}

.status-accent {
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

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

.app-button {
  all: unset;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 12px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 200;
  line-height: 1.2;
  padding: 7px 12px;
  transition: color 120ms ease, border-color 120ms ease;
}

.app-button--small {
  font-size: 0.75rem;
  padding: 5px 10px;
}

.app-button--default:hover {
  border-color: #111827;
  color: #111827;
}

.app-button--stop:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.app-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.list-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.code-area {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.terminal-shell .MuiDialogTitle-root {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.terminal-shell .terminal-body {
  background: #ffffff;
  color: #111827;
}

.terminal-shell .terminal-input .MuiInputBase-root {
  background: #ffffff;
}

.terminal-shell .terminal-input {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 12.5px;
  color: #111827;
  line-height: 1.5;
  background: transparent;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  overflow: auto;
  max-height: 60vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.terminal-shell .terminal-controls {
  justify-content: space-between;
}

.terminal-shell .terminal-input::-webkit-scrollbar {
  width: 8px;
}

.terminal-shell .terminal-input::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-shell .terminal-input::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.MuiButton-root.MuiButton-outlined.MuiButton-outlinedInherit:hover {
  color: #334155 !important;
  border-color: #334155 !important;
  background-color: transparent !important;
}

@media (min-width: 1100px) {
  .app-shell {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  }
}
