:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c4ceca;
  background: #111516;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1120px, 100%); margin: 0 auto; padding: 40px 32px 24px; }
header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.wordmark { color: #e2eae5; text-decoration: none; font-size: 28px; letter-spacing: -4px; padding-right: 5px; }
.wordmark span { color: #a8d8ad; }
.title { display: flex; align-items: baseline; gap: 18px; }
h1 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
.title > span { font-size: 13px; color: #8c9b94; }
#connection { margin-left: auto; font-size: 12px; color: #8c9b94; }
#connection[data-state="live"] { color: #a8d8ad; }
.terminal-window { position: relative; border: 1px solid #34423d; border-radius: 9px; overflow: hidden; background: #151b19; box-shadow: 0 20px 70px #0003; }
.toolbar { height: 47px; display: flex; justify-content: space-between; align-items: stretch; border-bottom: 1px solid #34423d; background: #1b221f; }
.tab { display: flex; align-items: center; gap: 12px; padding: 0 19px; border-right: 1px solid #34423d; color: #d3ddd7; font-size: 13px; }
.prompt { color: #a8d8ad; }
.actions { display: flex; align-items: center; padding: 0 8px; gap: 2px; }
button { border: 1px solid transparent; border-radius: 4px; padding: 7px 10px; background: transparent; color: #aebbb3; font: inherit; font-size: 12px; cursor: pointer; }
button:hover { background: #2a352f; color: #edf4ef; }
button:focus-visible, a:focus-visible { outline: 2px solid #a8d8ad; outline-offset: -2px; }
button:disabled { opacity: .4; cursor: default; }
.terminal-scroll { overflow-x: auto; }
#terminal { height: clamp(480px, calc(100dvh - 230px), 800px); min-width: 570px; padding: 16px 14px; }
.xterm { height: 100%; }
.xterm .xterm-viewport { scrollbar-width: thin; scrollbar-color: #34423d transparent; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: #8c9b94; font-size: 12px; line-height: 1.8; }
kbd { color: #b9c7be; font: inherit; }
.separator { margin: 0 8px; color: #526058; }
@media (max-width: 720px) {
  main { padding: 20px 12px; }
  header { gap: 12px; margin-bottom: 20px; }
  .title > span { display: none; }
  .tab { padding: 0 12px; gap: 8px; }
  .actions { padding: 0 3px; }
  button { padding: 7px; font-size: 11px; }
  #terminal { height: max(480px, calc(100dvh - 200px)); }
  footer { font-size: 11px; }
}
