/* Same system as kaibo: near-black, neutral grays, hairlines, Geist Mono, lowercase. One accent: the brand clay orange. */
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap");
:root {
  color-scheme: dark light;
  --background: #050505; --foreground: #f5f5f5; --card: #101010; --muted: #171717;
  --muted-foreground: #a3a3a3; --border: #262626; --ring: #737373; --accent: #d97757;
  /* vesper, the editor theme, for code */
  --c-fg: #ffffff; --c-comment: #8b8b8b; --c-punct: #a0a0a0; --c-string: #99ffe4; --c-name: #ffc799; --c-flag: #a0a0a0; --c-err: #ff8080;
}
@media (prefers-color-scheme: light) {
  :root { --background: #fff; --foreground: #171717; --card: #fafafa; --muted: #f5f5f5; --muted-foreground: #525252; --border: #d4d4d4; --ring: #a3a3a3; --accent: #c2410c;
    --c-fg: #171717; --c-comment: #737373; --c-punct: #525252; --c-string: #0f766e; --c-name: #b45309; --c-flag: #525252; --c-err: #b91c1c; }
}
* { box-sizing: border-box; border-color: var(--border); }
html { background: var(--background); font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
body { margin: 0; background: var(--background); color: var(--foreground); line-height: 1.5; font-size: 12px; text-transform: lowercase; -webkit-font-smoothing: antialiased; }
code, pre, kbd, samp, input { text-transform: none; font-family: inherit; }
::selection { background: var(--accent); color: #101010; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.shell { max-width: 38.75rem; min-height: 100dvh; margin: 0 auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 640px) { .shell { padding: 2.5rem 2rem; } }
header { padding-bottom: 2rem; }
.mark { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--accent); }
.mark::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
main { flex: 1; padding-bottom: 2rem; }
footer { padding-top: 2rem; color: var(--muted-foreground); display: flex; gap: 1rem; }
footer a { color: var(--muted-foreground); text-decoration: none; transition: color 0.15s; }
footer a:hover, footer a:focus-visible { color: var(--accent); }
h1 { font-size: 14px; line-height: 20px; font-weight: 600; margin: 0; }
h2 { font-size: 14px; line-height: 20px; font-weight: 600; margin: 2.25rem 0 0; }
h2::before { content: "# "; color: var(--accent); }
p { margin: 0.25rem 0 0; color: var(--muted-foreground); }
ul { margin: 0.5rem 0 0; padding: 0; list-style: none; color: var(--muted-foreground); }
li { padding-left: 1.25rem; position: relative; }
li + li { margin-top: 0.25rem; }
li::before { content: "›"; position: absolute; left: 0.25rem; color: var(--accent); }
:not(pre) > code { color: var(--foreground); background: var(--muted); padding: 0 0.3em; border-radius: 3px; }
/* code blocks: tight, vesper colors */
pre, .term { margin: 0.5rem 0 0; padding: 0.4rem 0.65rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; overflow-x: auto; color: var(--c-fg); font-size: 11px; line-height: 1.5; text-transform: none; }
pre code { background: none; padding: 0; color: inherit; }
.sh-p { color: var(--accent); user-select: none; }
.sh-n { color: var(--c-name); } .sh-f { color: var(--c-flag); } .sh-s { color: var(--c-string); } .sh-c { color: var(--c-comment); } .sh-o { color: var(--c-punct); }
.install { display: flex; align-items: stretch; gap: 0.4rem; margin-top: 0.5rem; }
.install pre { flex: 1; min-width: 0; margin: 0; }
button { font: inherit; }
.copy { font-size: 10px; color: var(--muted-foreground); background: transparent; border: 1px solid var(--border); border-radius: 3px; padding: 0 0.55rem; cursor: pointer; }
.copy:hover, .copy:focus-visible { color: var(--accent); border-color: var(--accent); }
.or { margin-top: 0.4rem; }
/* inline prompt, as on kaibo: it opens the side workspace */
.prompt { display: flex; align-items: center; gap: 0.5rem; height: 2rem; margin-top: 0.5rem; padding: 0 0.65rem; border: 1px solid var(--border); border-radius: 4px; transition: border-color 0.15s; }
.prompt:focus-within { border-color: var(--accent); }
.prompt label { color: var(--accent); user-select: none; }
.prompt input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--foreground); font-size: 12px; caret-color: var(--accent); padding: 0; }
.prompt input::placeholder { color: var(--muted-foreground); }
.install-copy { display: block; width: 100%; text-align: left; margin-top: 0.5rem; padding: 0.4rem 0.65rem; background: transparent; border: 1px solid var(--border); border-radius: 4px; color: var(--c-fg); font-size: 11px; line-height: 1.5; cursor: copy; text-transform: none; overflow-x: auto; white-space: nowrap; transition: background 0.15s; }
.install-copy:hover, .install-copy:focus-visible { background: var(--muted); }
.note { font-size: 11px; }
body { transition: margin-right 360ms cubic-bezier(.2, .75, .25, 1); }
body.no-anim { transition: none; }
/* side workspace, resized from its left edge (as on kaibo and ibx) */
.panel { position: fixed; inset: 0 0 0 auto; z-index: 50; width: var(--panel-width, 50vw); display: flex; flex-direction: column; background: var(--background); color: var(--foreground); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 360ms cubic-bezier(.2, .75, .25, 1), border-color 180ms ease; visibility: hidden; text-transform: none; }
.panel[data-open="true"] { transform: translateX(0); visibility: visible; }
.panel[data-ready="false"] { transition: none; }
.panel:has(.resizer:hover), .panel:has(.resizer:focus-visible) { border-left-color: var(--accent); }
.resizer { position: absolute; z-index: 2; inset: 0 auto 0 -0.5rem; width: 1rem; cursor: col-resize; touch-action: none; background: transparent; outline: none; }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none !important; }
.panel-head { display: flex; align-items: center; justify-content: space-between; height: 3rem; flex-shrink: 0; padding: 0 1.25rem; border-bottom: 1px solid var(--border); font-size: 12px; }
.panel-head .tab { display: flex; align-items: center; height: 100%; padding: 0 0.25rem; border-bottom: 1px solid var(--accent); color: var(--foreground); }
.ghost { background: transparent; border: 0; color: var(--muted-foreground); font-size: 12px; padding: 0.25rem 0.5rem; border-radius: 3px; cursor: pointer; }
.ghost:hover, .ghost:focus-visible { color: var(--accent); }
.transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem; font-size: 12px; }
@media (min-width: 640px) { .transcript, .panel-foot { padding-left: 1.75rem; padding-right: 1.75rem; } }
.transcript .meta { color: var(--muted-foreground); line-height: 20px; margin: 0 0 1.25rem; }
.entry + .entry { margin-top: 1rem; }
.entry .cmd { line-height: 20px; margin: 0; color: var(--foreground); }
.entry .cmd::before { content: "$ "; color: var(--accent); }
.entry pre { margin: 0; padding: 0; border: 0; background: none; font-size: 12px; line-height: 1.3; white-space: pre-wrap; word-break: break-word; }
.entry .dim { color: var(--c-comment); } .entry .ok { color: var(--c-string); } .entry .acc { color: var(--accent); } .entry .name { color: var(--c-name); } .entry .bad { color: var(--c-err); }
.panel-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.panel-foot .prompt { margin-top: 0; height: 2.25rem; }
.panel-foot p { margin: 0; font-size: 11px; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
kbd { font-size: 10px; color: var(--muted-foreground); background: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: 0 0.3rem; }
@media (max-width: 640px) { .panel { width: 100vw !important; } .resizer { display: none; } }
@media (prefers-reduced-motion: reduce) { body, .panel { transition-duration: .01ms; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.enter { opacity: 0; animation: rise 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: var(--delay, 0ms); }
@media (prefers-reduced-motion: reduce) { .enter { opacity: 1; animation: none; } }
