/* Command interface shares the terminal's session accent and graphite shell. */
.shell-workspace{display:flex;height:100dvh;min-height:350px;width:100%;padding:26px 34px;overflow:hidden}
.shell-mode .toast,.lock-shell-mode .toast{display:none}
.shell-workspace .shell-terminal{animation:shell-session-in 220ms ease-out}
.shell-terminal{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;border:1px solid var(--line);border-top:2px solid var(--crimson);background:#141517;color-scheme:dark}
.shell-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line);background:linear-gradient(105deg,color-mix(in srgb,var(--crimson) 5%,transparent),transparent)}
.shell-heading h1{font:18px/1.4 var(--mono);font-weight:400;letter-spacing:-.5px;margin:6px 0 0}
.shell-heading .eyebrow{color:var(--crimson);font-size:8px}
.shell-heading>div:last-child{display:flex;align-items:flex-end;gap:9px;flex-direction:column}
.shell-heading .text-link{font:10px var(--mono);white-space:nowrap;background:none;border:0;padding:0;cursor:pointer}
.shell-heading .text-link:disabled{opacity:.4;cursor:default}
.shell-output{flex:1;min-height:0;overflow:auto;padding:24px;scrollbar-width:thin;scrollbar-color:var(--line) #141517}
.shell-entry{font:12px/1.85 var(--mono);color:#babcc0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;margin:0 0 17px}
.shell-command{color:var(--ink);border-top:1px solid #ffffff08;padding-top:16px}
.shell-banner,.shell-record-heading{color:var(--ink)}
.shell-question{color:var(--crimson)}
.shell-error{color:var(--crimson);border-left:2px solid var(--crimson);padding-left:12px}
.shell-note,.shell-answer{color:var(--muted);font-size:10px}
.shell-status{padding:8px 24px;border-top:1px solid var(--line);color:var(--muted);font:8px/1.5 var(--mono);letter-spacing:.7px}
.shell-form{display:flex;align-items:center;gap:14px;padding:12px 24px;border-top:1px solid var(--line);background:#18191c}
.shell-prompt{color:var(--crimson);font:12px/1.7 var(--mono);align-self:flex-start;padding-top:6px;max-width:60%;white-space:normal;overflow-wrap:anywhere}
.shell-form .shell-input{min-width:0;flex:1;font:12px/1.7 var(--mono);color:var(--ink);background:none;border:0!important;outline:none;padding:6px 0;margin:0}
.shell-form .shell-body-input{min-width:0;flex:1;height:clamp(150px,28dvh,310px);resize:vertical;font:12px/1.7 var(--mono);color:var(--ink);background:#111214;margin:0;white-space:pre;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) #111214}
.shell-file-input{min-width:0;flex:1;font:11px var(--mono);color:var(--ink);background:none;border:0;margin:0;padding:6px 0}
.shell-form input:disabled{opacity:.45}
.shell-hint{font:8px/1.7 var(--mono);color:var(--muted);padding:0 24px 12px;background:#18191c}
.shell-terminal:focus-within{border-color:color-mix(in srgb,var(--crimson) 35%,var(--line))}
.shell-pdf{display:block;width:100%;height:440px;margin-top:15px;border:1px solid var(--line);background:#ecebe5}
#locked-shell{width:min(1080px,100%);height:clamp(350px,68dvh,760px);display:flex}
.lock-shell-toggle{font:10px var(--mono);margin-top:20px}
.lock-shell-mode .locked-terminal{justify-content:flex-start;padding-top:30px}
.lock-shell-mode .lock-brand{margin-bottom:25px}
@media(max-width:760px){.shell-heading{padding:15px}.shell-heading h1{font-size:14px}.shell-heading>div:last-child{gap:7px}.shell-output{padding:17px}.shell-entry{font-size:11px}.shell-status{padding:8px 17px}.shell-form{display:grid;grid-template-columns:minmax(0,1fr) 28px;padding:10px 17px;gap:5px 9px}.shell-prompt{grid-column:1/-1;max-width:none;white-space:normal;overflow-wrap:anywhere;padding:0;font-size:10px}.shell-form .shell-input,.shell-form .shell-body-input{font-size:11px}.shell-hint{padding:0 17px 10px}.shell-heading .eyebrow{font-size:7px}.lock-shell-mode .locked-terminal{padding:25px 14px}.shell-form .shell-body-input{height:25dvh}}
@media(max-width:480px){.shell-heading{gap:10px}.shell-heading h1{font-size:12px}.shell-entry{font-size:10px}.shell-hint{font-size:7px}}

.shell-brand{display:flex;align-items:center;gap:17px;min-width:0}.shell-brand>div{min-width:0}
.shell-emblem{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;color:var(--crimson);font:34px Georgia,serif}
.shell-emblem img{width:44px;height:44px;opacity:.86;filter:invert(1)}
.shell-identity{color:var(--muted);font:8px/1.7 var(--mono);margin:7px 0 0;overflow-wrap:anywhere}
.shell-link-state{display:flex;align-items:center;gap:6px;font:8px var(--mono);color:var(--muted)}
.shell-link-state .link-activity{margin-left:5px}
.lock-shell-mode .shell-emblem{display:none}
.shell-prompt:empty{display:none}
@media(max-width:760px){.shell-brand{gap:11px}.shell-emblem,.shell-emblem img{width:34px;height:34px}.shell-emblem{font-size:28px}.shell-identity{font-size:7px}.shell-link-state{font-size:7px}.shell-workspace{padding:12px}}
@media(max-width:480px){.shell-heading .terminal-clock{font-size:9px}.shell-heading .text-link{font-size:8px}.shell-link-state .link-activity{display:none}.shell-brand{gap:9px}.shell-emblem,.shell-emblem img{width:28px;height:28px}.shell-identity{max-width:170px}.shell-heading{gap:12px;align-items:flex-start}.shell-workspace{padding:8px}.shell-heading .eyebrow{font-size:6px;letter-spacing:.5px}.shell-workspace .shell-output{padding:15px}.shell-link-state{font-size:6px}}
@keyframes shell-session-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.shell-workspace .shell-terminal{animation:none}}
