  .page-head { padding: clamp(56px, 8vw, 96px) 0 40px; }
  .page-head > * + * { margin-top: 22px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .chip { font-family: var(--mono); font-size: 13px; color: var(--text-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
  .chip:hover { border-color: var(--accent); color: var(--text); }

  /* Terminal window: always dark, in both themes */
  .term {
    --accent: var(--accent-on-dark);
    --t-bg: #0A0A09; --t-bar: #121211; --t-line: #262622; --t-text: #EDEAE2; --t-dim: #A29E94;
    background: var(--t-bg); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
    font-family: var(--mono); color: var(--t-text);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
  }
  .term:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); }
  .term-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); font-size: 12px; color: var(--t-dim); }
  .term-bar .dots { display: flex; gap: 7px; }
  .term-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3A3934; display: block; }
  .term-bar .clock { margin-left: auto; }
  .term-out { padding: 22px 24px; min-height: 440px; max-height: 60vh; overflow-y: auto; font-size: 14px; line-height: 1.8; scrollbar-width: thin; scrollbar-color: #3A3934 transparent; }
  .term-out .dim { color: var(--t-dim); }
  .term-out .ok { color: var(--ok); }
  .term-out .err { color: var(--err); }
  .term-out .acc { color: var(--accent); }
  .term-out .echo { color: var(--t-text); margin-top: 6px; }
  .term-out .echo::before { content: '$ '; color: var(--accent); }
  .term-out a { color: var(--accent); text-underline-offset: 3px; }
  .ai { margin: 8px 0 4px; padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(255,255,255,.025); border-radius: 0 8px 8px 0; color: #D9D5CB; }
  .ai .who { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--t-dim); margin-bottom: 6px; }
  .suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
  .suggest button { font-family: var(--mono); font-size: 12px; color: var(--t-dim); background: transparent; border: 1px solid var(--t-line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
  .suggest button:hover { color: var(--t-text); border-color: var(--accent); }
  @keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }
  .thinking::after { content: '.'; animation: dots 1s steps(1) infinite; }
  @keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .in { animation: lineIn .3s ease both; }

  .term-status { display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-top: 1px solid var(--t-line); font-size: 11px; color: var(--t-dim); }
  .term-status .count { margin-left: auto; }
  .term-status .sdot.thinking { background: var(--warn); }
  .term-status .sdot.error { background: var(--err); }
  .term-in { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 24px; border-top: 1px solid var(--t-line); background: var(--t-bar); }
  .term-in .prompt { color: var(--accent); font-weight: 500; }
  .term-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--t-text); font-family: var(--mono); font-size: 15px; caret-color: var(--accent); }
  .term-in input::placeholder { color: #6B675E; }
  .send { min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #0D0D0C; font-family: var(--mono); font-size: 13px; cursor: pointer; }
  .send:disabled { opacity: .5; cursor: progress; }

  .hints { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-top: 24px; }
  .hints p { margin: 0; font-size: 14px; color: var(--muted); }
  .hints b { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
  @media (max-width: 640px) { .term-out { font-size: 13px; padding: 18px; min-height: 360px; } }
