:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #191d20;
  --panel-2: #20262a;
  --text: #e8edf0;
  --muted: #9aa7ad;
  --line: #334047;
  --accent: #68d8c1;
  --warn: #e8c468;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(104, 216, 193, 0.06), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100%;
  padding: 18px;
  gap: 12px;
}

.topbar,
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow,
.meta,
.statusbar {
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 3px;
}

.meta {
  color: var(--accent);
  text-align: right;
}

.terminal-frame {
  width: min(1280px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

#terminal {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 138px);
}

.xterm {
  height: 100%;
}

.statusbar {
  min-height: 22px;
}

.statusbar span:first-child {
  color: var(--warn);
}

.statusbar.is-ready span:first-child {
  color: var(--accent);
}

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .statusbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .meta {
    text-align: left;
  }

  #terminal {
    min-height: calc(100vh - 166px);
  }
}
