:root {
  --bg-0: #0f1012;
  --bg-1: #090909;
  --bg-2: #040404;
  --fg-0: #f5f5f2;
  --fg-1: #cfceca;
  --fg-2: #8f8f8b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --prompt: #97e2bb;
  --hint: #d58a42;
  --accent: #efefec;
  --cursor: #ffffff;
  --danger: #df7b72;
}

body[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #f8f8f7;
  --bg-2: #efefee;
  --fg-0: #121212;
  --fg-1: #272727;
  --fg-2: #686868;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --prompt: #0b7a4c;
  --hint: #9d5813;
  --accent: #111111;
  --cursor: #111111;
  --danger: #a82f24;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.028), transparent 28%),
    radial-gradient(circle at 65% 0%, rgba(255, 255, 255, 0.018), transparent 22%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  color: var(--fg-0);
  font-family: "SFMonoTerminal-Regular", "SF Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}

body[data-theme="dark"] {
  color-scheme: dark;
}

body[data-theme="light"] {
  color-scheme: light;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.composer {
  border: 0;
}

.viewport {
  flex: 1 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 22px 22px 6px;
}

.entry {
  margin-bottom: 14px;
}

.promptline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}

.prompt {
  color: var(--prompt);
  font-weight: 400;
}

.cmd {
  color: var(--fg-0);
  font-weight: 400;
}

.output pre,
.overlay-shell pre,
.output-html {
  margin: 0;
  color: var(--fg-1);
  line-height: 1.58;
  font: inherit;
  font-weight: 300;
}

.output pre,
.overlay-shell pre {
  white-space: pre-wrap;
}

.output-html {
  white-space: normal;
}

.ascii {
  color: var(--accent);
}

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

.lock-note {
  color: var(--hint);
  margin-top: 6px;
  font-weight: 400;
}

body.is-locked .maskable {
  filter: blur(4.6px);
  opacity: 0.5;
  user-select: none;
}

.composer {
  position: static;
  background: none;
  backdrop-filter: none;
  padding: 0 22px 22px;
}

body[data-theme="light"] .composer {
  background: none;
}

.overlay-shell {
  margin-bottom: 8px;
  padding-top: 0;
  border-top: 0;
}

.overlay-shell.is-hidden {
  display: none;
}

.overlay-shell .selected {
  color: var(--fg-0);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}

.composer-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75ch;
  min-height: 1.5em;
}

.input-mirror {
  display: inline-block;
  position: relative;
  min-height: 0;
  min-width: 0.72ch;
  padding-right: 0.72ch;
  color: var(--fg-0);
  line-height: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.cursor {
  position: absolute;
  right: 0;
  top: 0;
  width: 0.72ch;
  height: 1.5em;
  background: var(--cursor);
}

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.suggestionline {
  margin-top: 8px;
  white-space: pre-wrap;
  color: var(--fg-2);
}

.suggestionline:empty {
  display: none;
}

.suggestion {
  display: inline-block;
  margin-right: 14px;
}

.suggestion.selected {
  color: var(--fg-0);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}

.skills-shell {
  display: grid;
  gap: 10px;
  max-width: 112ch;
}

.skill-group {
  display: grid;
  gap: 2px;
}

.skill-heading {
  color: var(--fg-0);
  display: flex;
  align-items: baseline;
  gap: 0.7ch;
}

.skill-heading-mark {
  color: var(--hint);
}

.skill-count {
  color: var(--fg-2);
}

.skill-caption {
  color: var(--fg-2);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 2ch;
  max-width: 112ch;
}

.skill-item {
  color: var(--fg-1);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .viewport,
  .composer {
    padding-left: 12px;
    padding-right: 12px;
  }
}
