:root {
  --bg: #050705;
  --fg: #62ff79;
  --dim: rgba(98, 255, 121, 0.65);
  --faint: rgba(98, 255, 121, 0.35);
  --border: rgba(98, 255, 121, 0.25);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
}

.terminal {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terminal__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.terminal__title { letter-spacing: 0.08em; font-size: 14px; }
.terminal__hint { color: var(--dim); font-size: 12px; text-align: right; }

.terminal__screen {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  line-height: 1.45;
}

.line { margin: 0 0 10px; }
.line.dim { color: var(--dim); }
.line.faint { color: var(--faint); }
.line strong { color: var(--fg); }

.terminal__input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.prompt { color: var(--dim); }

#cmd {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
}

#cmd::placeholder { color: var(--faint); }

.terminal__footer {
  color: var(--dim);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.linklike {
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.linklike:focus-visible, #cmd:focus-visible, button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: 6px;
}

.sep { color: var(--faint); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.modal {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  width: min(680px, calc(100% - 24px));
}

.modal::backdrop { background: rgba(0,0,0,0.7); }
.modal__inner { padding: 18px; }
.modal__actions { display: flex; justify-content: flex-end; margin-top: 16px; }
/* Clickable in-text keywords (preserve terminal feel) */
button.kw {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

button.kw:hover {
  text-decoration-style: solid;
}

button.kw:focus-visible {
  outline: 1px solid var(--border);
  outline-offset: 2px;
  border-radius: 6px;
}

.modal button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
