  :root {
    --bg: #000000;
    --text: #ffffff;    /* main text; try #e6e6e6 for a softer white */
    --dim: #888888;     /* secondary text */
    --command: #bbbbbb; /* typed commands */
    --link: #aaaaaa;
    --border: #333333;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { background: var(--bg); }
  body {
    color: var(--text);
    font-family: Menlo, Monaco, "Courier New", Courier, ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
    font-size: 15px;
    overflow-x: hidden;
  }
  ::selection { background: var(--border); }
  a { color: var(--link); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
  a:hover { border-bottom-color: var(--link); }

  #terminal { max-width: 90ch; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
  #output { padding: 40px 40px 0; overflow-x: hidden; }

  .logo { font-family: inherit; font-size: 13px; line-height: 1.15; font-weight: 700; color: var(--text); white-space: pre; overflow-x: auto; }
  .ln { margin: 4px 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
  .blank { height: 1.5em; margin: 4px 0; }
  .strong { font-weight: 700; color: var(--text); }
  .dim { color: var(--dim); }
  .cmd { color: var(--command); }
  .lnk { color: var(--link); }
  .block { margin-top: 20px; }

  .cmdrow {
    all: unset; display: grid; grid-template-columns: 2ch 16ch minmax(0, 1fr);
    margin: 4px 0; line-height: 1.5; cursor: default; width: 100%;
  }
  .cmdrow:focus-visible { outline: 1px dashed var(--dim); outline-offset: 2px; }
  .cmdrow .name { font-weight: 700; }
  .cmdrow .desc { color: var(--dim); }

  .kv { display: grid; grid-template-columns: 2ch 16ch minmax(0, 1fr); margin: 4px 0; line-height: 1.5; }

  .tablewrap { overflow-x: auto; }
  table { border-collapse: collapse; margin: 10px 0; width: 100%; min-width: 560px; table-layout: fixed; }
  td { padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
  td.dim { color: var(--dim); }
  td.right { text-align: right; }

  #input-line {
    display: flex; align-items: center; gap: 10px; padding: 16px 40px 40px;
    background: var(--bg); flex-shrink: 0; min-height: 44px;
  }
  #prompt-symbol { font-weight: 600; margin-right: 10px; user-select: none; }
  #input-wrapper { flex: 1; position: relative; overflow: hidden; }
  #input {
    position: relative; z-index: 2; width: 100%; background: transparent; border: none; outline: none;
    color: var(--text); caret-color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.5;
  }
  #suggestion {
    position: absolute; left: 0; top: 0; z-index: 1; color: var(--dim); opacity: .4;
    font-family: inherit; font-size: 15px; line-height: 1.5; white-space: pre; pointer-events: none;
  }

  @media (max-width: 600px) {
    #output { padding: 24px 20px 0; }
    #input-line { padding: 16px 20px 24px; }
    .logo { font-size: 10px; }
    .cmdrow, .kv { grid-template-columns: 1ch 12ch minmax(0, 1fr); }
  }
  /* Typing animation on page load (see typeIntro in script.js) */
  .typing-hidden { display: none !important; }
  #input-line { transition: opacity .3s; }
  #input-line.typing-wait { opacity: 0; }
  .caret {
    display: inline-block; width: .6em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom;
    background: var(--text); animation: blink 1s step-end infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }
