* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

@media (min-width: 600px) {
  body {
    font-size: 14px;
    padding: 24px;
  }
}

#terminal {
  max-width: 100%;
}

#output {
  white-space: pre-wrap;
  word-wrap: break-word;
}

#output .command-line {
  margin-top: 8px;
}

#output .response {
  color: #8b949e;
  margin-bottom: 16px;
  padding-left: 4px;
}

/* Prompt styling - Powerlevel10k inspired */
.prompt {
  display: inline;
}

.prompt-user {
  color: #7ee787;
  font-weight: 500;
}

.prompt-at {
  color: #8b949e;
}

.prompt-host {
  color: #79c0ff;
  font-weight: 500;
}

.prompt-separator {
  color: #8b949e;
}

.prompt-path {
  color: #a371f7;
  font-weight: 500;
}

.prompt-git {
  color: #ffa657;
}

.prompt-arrow {
  color: #7ee787;
  font-weight: bold;
}

.prompt-arrow.error {
  color: #f85149;
}

#input-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  padding-bottom: 60vh;
}

#input-line .prompt-line {
  width: 100%;
  margin-bottom: 4px;
}

#input-line .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

#command-input {
  background: transparent;
  border: none;
  color: #c9d1d9;
  font-family: inherit;
  font-size: 16px; /* Prevents iOS zoom on focus */
  transform: scale(0.8125); /* Visually 13px */
  transform-origin: left center;
  outline: none;
  flex: 1;
  caret-color: #58a6ff;
}

#command-input::placeholder {
  color: #6e7681;
  opacity: 1;
}

@media (min-width: 600px) {
  #command-input {
    transform: scale(0.875); /* Visually 14px */
  }
}

/* Command highlighting */
.cmd-text {
  color: #c9d1d9;
}

/* Response styling */
.response .label {
  color: #79c0ff;
}

.response .value {
  color: #c9d1d9;
}

.response .highlight {
  color: #7ee787;
}

.response .muted {
  color: #8b949e;
}

.clickable-cmd {
  cursor: pointer;
}

.link-action,
.email-action {
  cursor: pointer;
  color: #7ee787;
}

.link-action:hover,
.email-action:hover {
  text-decoration: underline;
}

.copyable {
  color: #58a6ff;
  cursor: pointer;
}

.copyable:hover {
  text-decoration: underline;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Welcome banner */
.banner {
  color: #7ee787;
  margin-bottom: 8px;
}

.welcome-text {
  color: #8b949e;
  margin-bottom: 16px;
}

/* Cursor blink */
#command-input:focus {
  animation: none;
}

::selection {
  background: #264f78;
}
