:root { color-scheme: dark; --bg: #101111; --cyan: #22d3ee; --text: #dbdedf; --muted: #a0a4a5; --rule: #64696a; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; line-height: 1.6; color: var(--text); background: var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; padding: 0; background: transparent; text-align: left; }
button:hover, a:hover { color: var(--cyan); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 1px; }
button:focus-visible { position: relative; z-index: 1; }
a { color: var(--cyan); text-underline-offset: 4px; overflow-wrap: anywhere; }
p, h1, h2, h3 { margin: 0; }
.terminal { padding: clamp(18px, 4.5vh, 52px) 20px 10px; width: 100%; min-height: 100svh; display: flex; flex-direction: column; }
.welcome { border: 1px solid var(--cyan); border-radius: 5px; margin: 0 0 22px; min-width: 0; padding: 0 12px 10px; }
legend { padding: 0 8px; margin-left: 12px; font-size: 16px; line-height: 1.2; }
.brand { font-weight: 700; color: var(--cyan); }
.secondary { color: var(--muted); margin-left: 5px; }
.welcome-grid { display: grid; grid-template-columns: 46% 54%; padding-top: 5px; }
.identity { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px 6px; text-align: center; }
h1 { font-size: 15px; font-weight: 600; }
.lightning { width: 48px; height: 48px; margin: 18px 0 12px; image-rendering: pixelated; }
.identity p { color: var(--muted); }
.guide { border-left: 1px solid var(--cyan); padding: 0 8px 0 18px; }
h2 { color: var(--cyan); font-size: 15px; font-weight: 600; }
.guide p { margin-top: 1px; }
.guide .question-guide { color: var(--muted); font-size: 12px; margin-top: 5px; }
.guide hr { border: 0; border-top: 1px solid var(--cyan); margin: 12px 0 14px; }
.products { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 1px; }
.guide nav { display: flex; flex-wrap: wrap; column-gap: 18px; margin-top: 18px; color: var(--muted); }
.output { padding: 0 9px; flex: 1; }
.entry { padding: 2px 0 16px; max-width: 1120px; }
.entry-command { color: var(--text); font-size: 12px; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry { border-bottom: 1px solid #252929; margin-bottom: 16px; }
.response { padding-left: 14px; color: var(--muted); overflow-wrap: anywhere; }
.response p + p { margin-top: 12px; }
.response h2, .response h3 { font-size: 13px; color: var(--text); margin-bottom: 5px; }
.response h2 { color: var(--cyan); }
.response ul { margin: 8px 0 0; padding-left: 22px; }
.response .project { padding-bottom: 18px; }
.project:last-child { padding-bottom: 0; }
.project-title { color: var(--text); font-weight: 600; }
.project-meta { font-size: 12px; margin-top: 5px; color: var(--muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 5px; font-size: 12px; color: var(--cyan); }
.response .description { margin: 10px 0; }
.command-list { display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 6px 16px; }
.command-list button { color: var(--cyan); }
.skill-group { margin-bottom: 14px; }
.command-hint { color: var(--muted); padding: 0 9px 16px; }
.command-hint button { color: var(--text); }
.command-hint button:hover { color: var(--cyan); }
.answer-text { white-space: pre-wrap; }
.answer-state { color: var(--muted); font-size: 13px; }
.composer { position: sticky; bottom: 0; background: var(--bg); padding-bottom: max(8px, env(safe-area-inset-bottom)); z-index: 2; flex-shrink: 0; }
#prompt { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 6px 5px; }
.prompt-symbol { font-weight: 700; font-size: 16px; }
.prompt-input { position: relative; min-width: 0; flex: 1; }
#command { display: block; border: none; border-radius: 0; padding: 3px; min-width: 0; width: 100%; color: var(--text); background: transparent; caret-color: var(--text); font-size: 14px; line-height: 1.5; resize: none; overflow-y: auto; max-height: 144px; }
.prompt-input[data-caret="block"] #command { caret-color: transparent; }
.prompt-input[data-caret="block"] #command[data-empty="true"] { text-indent: 1ch; }
#caret-mirror { position: absolute; top: 0; left: 0; z-index: 1; padding: 3px; color: transparent; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; font: inherit; font-size: 14px; line-height: 1.5; pointer-events: none; }
#block-caret { color: var(--bg); background: var(--text); animation: caret-blink 1.2s steps(1, end) infinite; }
@keyframes caret-blink { 0%, 65% { opacity: 1; } 66%, 100% { opacity: 0; } }
#cancel-answer { font-size: 11px; color: var(--muted); min-height: 32px; white-space: nowrap; }
#command::placeholder { color: var(--muted); opacity: 1; }
#command:focus-visible { outline: none; }
#prompt:focus-within { border-color: var(--cyan); }
.submit { color: var(--muted); min-width: 36px; min-height: 34px; text-align: center; }
.keyboard-hint { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 11px; padding: 8px 9px 0; }
.keyboard-hint span { font-size: 11px; }
.suggestions { border: 0; padding: 8px 0; max-height: min(250px, 28svh); overflow-y: auto; background: var(--bg); scrollbar-width: thin; }
.suggestions button { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 8px 20px; width: 100%; padding: 7px 12px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.suggestion-name { color: var(--text); }
.suggestions button.selected .suggestion-name { color: var(--cyan); }
.suggestions button.selected { color: var(--cyan); background: #1a2426; }
.suggestion-description { color: var(--muted); }
.prompt-note { color: var(--muted); font-size: 12px; text-align: right; padding: 0 8px 4px; min-height: 0; }
.prompt-note:empty { padding: 0; }
.shortcut-panel { padding: 12px 9px 0; max-height: 35svh; overflow-y: auto; color: var(--muted); font-size: 12px; }
.shortcut-panel p { margin-top: 12px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 24px; }
kbd { color: var(--text); font: inherit; }
.history-search { padding: 10px 9px 12px; border-top: 1px solid var(--rule); }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.panel-heading h2 { font-size: 14px; }
.panel-heading button, #history-guidance { font-size: 11px; color: var(--muted); }
#history-query { display: block; width: 100%; background: var(--bg); color: var(--text); border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 7px 3px; font-size: 14px; margin-top: 5px; }
#history-query:focus-visible { outline-offset: 0; }
#history-results { max-height: min(220px, 25svh); overflow-y: auto; margin: 7px 0; scrollbar-width: thin; }
#history-results button { display: block; width: 100%; padding: 7px; font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
#history-results button.selected { background: #1a2426; color: var(--cyan); }
#history-empty { padding: 8px 0; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) { .suggestions button { grid-template-columns: 1fr; gap: 1px; } .suggestion-description { font-size: 11px; } .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; } .keyboard-hint { column-gap: 14px; } .keyboard-hint button { font-size: 11px; } .shortcut-panel { padding-bottom: 4px; } .suggestions { max-height: 26svh; } }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; top: 5px; left: 24px; transform: translateY(-200%); background: var(--bg); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 680px) { :root { font-size: 13px; } .terminal { padding: 18px 12px 8px; } legend { font-size: 16px; margin-left: 2px; } .welcome { padding: 0 12px 14px; margin-bottom: 24px; } .welcome-grid { grid-template-columns: 1fr; } .identity { padding: 12px 0; } h1 { font-size: 14px; } .lightning { width: 44px; height: 44px; margin: 14px 0 10px; } .guide { border-left: 0; border-top: 1px solid var(--cyan); padding: 14px 1px 0; } h2 { font-size: 14px; } #command, #caret-mirror, #history-query { font-size: 16px; } .guide nav { margin-top: 15px; gap: 4px 19px; } .guide button, .keyboard-hint button, .project-actions button, .project-actions a { padding-top: 6px; padding-bottom: 6px; } .guide p button { padding: 0; } .products { gap: 7px; align-items: center; } .command-list { grid-template-columns: 1fr; gap: 2px; } .command-list span { margin-bottom: 10px; } .response { padding-left: 6px; } .output { padding: 0 3px; } .keyboard-hint { gap: 0; justify-content: space-between; padding: 6px 3px 0; } .keyboard-hint span { font-size: 10px; } .command-hint { padding-left: 3px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (forced-colors: active) { #caret-mirror { display: none; } .prompt-input[data-caret="block"] #command { caret-color: auto; } }

.answer-loading { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--muted); }
.thinking-spinner { display: inline-block; color: var(--cyan); font-size: 18px; line-height: 1; animation: terminal-spin 1.2s steps(8, end) infinite; }
@keyframes terminal-spin { to { transform: rotate(360deg); } }
.answer-revealing::after { content: ''; display: inline-block; width: .65ch; height: 1em; margin-left: 2px; vertical-align: -.13em; background: var(--cyan); animation: caret-blink 1.2s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .thinking-spinner, .answer-revealing::after { animation: none; } }
