.terminal-shell{height:calc(100dvh - 87px);min-height:430px;display:flex;flex-direction:column;min-width:0;background:hsl(calc(212 + var(--th-hue)) calc(40.54% * var(--th-sat)) calc(7.255% + var(--th-inv) * 85.49%));color:hsl(calc(207.3 + var(--th-hue)) calc(39.29% * var(--th-sat)) calc(89.02% + var(--th-inv) * -78.04%))}
.term-header{padding:26px 30px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid hsl(calc(210 + var(--th-hue)) calc(28.3% * var(--th-sat)) calc(20.78% + var(--th-inv) * 58.43%))}.term-eyebrow{font:9px "SFMono-Regular",monospace;letter-spacing:2px;color:hsl(calc(207.1 + var(--th-hue)) calc(24.64% * var(--th-sat)) calc(59.41% + var(--th-inv) * -18.82%))}.term-header h1{font-size:25px;letter-spacing:-.8px;margin-top:8px}.term-header h1 span{font-size:14px;letter-spacing:0;font-weight:400;color:hsl(calc(209.2 + var(--th-hue)) calc(18.31% * var(--th-sat)) calc(58.24% + var(--th-inv) * -16.47%));margin-left:10px}.term-header .button{background:hsl(calc(209 + var(--th-hue)) calc(42.03% * var(--th-sat)) calc(13.53% + var(--th-inv) * 72.94%));border-color:hsl(calc(208 + var(--th-hue)) calc(30.61% * var(--th-sat)) calc(28.82% + var(--th-inv) * 42.35%));color:hsl(202.6 calc(59.55% * var(--th-asat)) calc(82.55% + var(--th-inv) * -65.1%))}
.term-tabs{display:flex;gap:3px;padding:0 20px;border-bottom:1px solid hsl(calc(210 + var(--th-hue)) calc(28.3% * var(--th-sat)) calc(20.78% + var(--th-inv) * 58.43%));background:hsl(calc(210 + var(--th-hue)) calc(41.67% * var(--th-sat)) calc(9.412% + var(--th-inv) * 81.18%));overflow-x:auto;flex-shrink:0;min-height:44px}.term-tabs:empty{display:none}.term-tabs button{display:flex;align-items:center;gap:9px;min-width:130px;max-width:280px;padding:13px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:hsl(calc(208.7 + var(--th-hue)) calc(23.71% * var(--th-sat)) calc(61.96% + var(--th-inv) * -23.92%));font-size:11px;white-space:nowrap}.term-tabs button span{overflow:hidden;text-overflow:ellipsis}.term-tabs button small{font:9px monospace;color:hsl(calc(207.2 + var(--th-hue)) calc(22.18% * var(--th-sat)) calc(46.86% + var(--th-inv) * 6.275%))}.term-tabs button.selected{background:hsl(calc(210 + var(--th-hue)) calc(40% * var(--th-sat)) calc(13.73% + var(--th-inv) * 72.55%));color:hsl(calc(207.3 + var(--th-hue)) calc(39.29% * var(--th-sat)) calc(89.02% + var(--th-inv) * -78.04%));border-bottom-color:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%))}.term-tabs i{width:6px;height:6px;border-radius:50%;background:hsl(calc(209.3 + var(--th-hue)) calc(20.57% * var(--th-sat)) calc(40.98% + var(--th-inv) * 18.04%));flex-shrink:0}.term-tabs i.running{background:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%))}
.term-toolbar{display:flex;align-items:center;gap:13px;padding:10px 26px;min-height:49px;border-bottom:1px solid hsl(calc(208.9 + var(--th-hue)) calc(31.03% * var(--th-sat)) calc(17.06% + var(--th-inv) * 65.88%));flex-shrink:0}.term-status{font-size:10px;color:hsl(calc(208.6 + var(--th-hue)) calc(18.92% * var(--th-sat)) calc(56.47% + var(--th-inv) * -12.94%));white-space:nowrap}.term-status.running{color:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%))}.term-path{font:10px monospace;color:hsl(calc(207.2 + var(--th-hue)) calc(24.88% * var(--th-sat)) calc(58.24% + var(--th-inv) * -16.47%));flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.term-toolbar .button{font-size:10px;padding:5px 9px;background:transparent;border-color:hsl(calc(208.2 + var(--th-hue)) calc(29.31% * var(--th-sat)) calc(22.75% + var(--th-inv) * 54.51%));color:hsl(calc(208.7 + var(--th-hue)) calc(26.44% * var(--th-sat)) calc(65.88% + var(--th-inv) * -31.76%))}.term-error{padding:8px 26px;margin:0;font-size:11px;line-height:1.6}.term-views{flex:1;position:relative;min-height:0;min-width:0;margin:15px 22px 8px}.term-screen{position:absolute;inset:0;min-width:0;overflow:hidden}.term-screen .xterm{height:100%;padding:0}.term-screen .xterm-viewport{scrollbar-width:thin;scrollbar-color:hsl(calc(208.6 + var(--th-hue)) calc(29.58% * var(--th-sat)) calc(27.84% + var(--th-inv) * 44.31%)) transparent}.term-screen .xterm textarea{min-height:0!important;width:0!important;padding:0!important;border:0!important;resize:none!important;box-shadow:none!important}
.term-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;gap:16px}.term-symbol{font:45px monospace;color:hsl(calc(203.6 + var(--th-hue)) calc(28.87% * var(--th-sat)) calc(38.04% + var(--th-inv) * 23.92%))}.term-empty h2{font-size:23px;letter-spacing:-.6px}.term-empty p{color:hsl(calc(208.6 + var(--th-hue)) calc(20.95% * var(--th-sat)) calc(58.82% + var(--th-inv) * -17.65%));font-size:12px;max-width:420px;line-height:1.8}.term-footer{display:flex;gap:18px;justify-content:space-between;align-items:center;border-top:1px solid hsl(calc(208.9 + var(--th-hue)) calc(31.76% * var(--th-sat)) calc(16.67% + var(--th-inv) * 66.67%));color:hsl(calc(207.7 + var(--th-hue)) calc(22.61% * var(--th-sat)) calc(45.1% + var(--th-inv) * 9.804%));font-size:9px;padding:12px 24px;flex-shrink:0;line-height:1.5}.term-footer>div{display:flex;gap:5px}.term-footer button{color:hsl(calc(206.3 + var(--th-hue)) calc(22.91% * var(--th-sat)) calc(64.9% + var(--th-inv) * -29.8%));background:hsl(calc(208.7 + var(--th-hue)) calc(41.82% * var(--th-sat)) calc(10.78% + var(--th-inv) * 78.43%));border:1px solid hsl(calc(207.3 + var(--th-hue)) calc(28.21% * var(--th-sat)) calc(22.94% + var(--th-inv) * 54.12%));border-radius:5px;padding:5px 8px;font:10px monospace}
.term-dialog{width:min(560px,calc(100vw - 32px));border:1px solid hsl(calc(208 + var(--th-hue)) calc(30.61% * var(--th-sat)) calc(28.82% + var(--th-inv) * 42.35%));border-radius:14px;background:hsl(calc(211.3 + var(--th-hue)) calc(41.82% * var(--th-sat)) calc(10.78% + var(--th-inv) * 78.43%));color:hsl(calc(207.3 + var(--th-hue)) calc(39.29% * var(--th-sat)) calc(89.02% + var(--th-inv) * -78.04%));padding:25px}.term-dialog::backdrop{background:hsl(212.7 calc(52.38% * var(--th-asat)) calc(4.118% + var(--th-inv) * 91.76%) / 0.749);backdrop-filter:blur(4px)}.term-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.term-dialog h2{font-size:21px;letter-spacing:-.6px}.term-dialog header button{font-size:23px;background:none;border:0;color:hsl(calc(208.1 + var(--th-hue)) calc(23.15% * var(--th-sat)) calc(60.2% + var(--th-inv) * -20.39%))}.term-dialog label{display:block;font-size:12px;margin-bottom:9px;color:hsl(calc(207.1 + var(--th-hue)) calc(29.17% * var(--th-sat)) calc(71.76% + var(--th-inv) * -43.53%))}.term-dialog input{background:hsl(210 calc(50% * var(--th-asat)) calc(7.843% + var(--th-inv) * 84.31%));border:1px solid hsl(calc(208.7 + var(--th-hue)) calc(32.39% * var(--th-sat)) calc(27.84% + var(--th-inv) * 44.31%));font:12px monospace;color:hsl(calc(207.3 + var(--th-hue)) calc(39.29% * var(--th-sat)) calc(89.02% + var(--th-inv) * -78.04%));border-radius:7px;padding:12px;width:100%}.term-dialog p{font-size:11px;line-height:1.8;color:hsl(calc(208.6 + var(--th-hue)) calc(20.95% * var(--th-sat)) calc(58.82% + var(--th-inv) * -17.65%));margin-top:14px}.term-dialog p.error{color:hsl(4.444 calc(63.78% * var(--th-asat)) calc(75.1% + var(--th-inv) * -50.2%))}.term-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}.terminal-shell [hidden]{display:none!important}
@media(max-width:640px){.terminal-shell{height:calc(100dvh - 129px)}}
@media(max-width:700px){.term-header{padding:20px 15px;gap:8px}.term-header h1{font-size:20px}.term-header h1 span{display:block;font-size:11px;margin:5px 0 0}.term-eyebrow{font-size:8px;letter-spacing:1px}.term-header .button{font-size:11px}.term-toolbar{padding:8px 12px;gap:7px;flex-wrap:wrap}.term-path{font-size:9px;min-width:140px}.term-toolbar .button{font-size:9px}.term-tabs{padding:0 5px}.term-tabs button{padding:11px 9px;min-width:110px}.term-views{margin:10px 8px 6px}.term-footer{padding:8px 10px;gap:8px;flex-wrap:wrap}.term-footer>span:last-child{font-size:8px}.term-dialog{padding:20px}.terminal-shell{min-height:380px}}

/* Finished shells remain readable, but are visibly distinct from live input. */
.term-history-notice{display:flex;align-items:center;gap:14px;margin:15px 22px 0;padding:16px 18px;border:1px solid hsl(calc(29.09 + var(--th-hue)) calc(19.53% * var(--th-sat)) calc(33.14% + var(--th-inv) * 33.73%));border-radius:10px;background:linear-gradient(110deg,hsl(calc(28.24 + var(--th-hue)) calc(21.52% * var(--th-sat)) calc(15.49% + var(--th-inv) * 69.02%)),hsl(calc(207.7 + var(--th-hue)) calc(19.4% * var(--th-sat)) calc(13.14% + var(--th-inv) * 73.73%)));flex-shrink:0}.term-history-symbol{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border:1px solid hsl(calc(32 + var(--th-hue)) calc(23.08% * var(--th-sat)) calc(38.24% + var(--th-inv) * 23.53%));border-radius:9px;color:hsl(33.49 calc(61.43% * var(--th-asat)) calc(72.55% + var(--th-inv) * -45.1%));background:hsl(calc(32.5 + var(--th-hue)) calc(25.53% * var(--th-sat)) calc(18.43% + var(--th-inv) * 63.14%));font-size:23px}.term-history-notice>div{flex:1;min-width:0}.term-history-notice h2{font-size:14px;letter-spacing:-.15px;color:hsl(34.55 calc(63.46% * var(--th-asat)) calc(79.61% + var(--th-inv) * -59.22%));margin:0 0 6px}.term-history-notice p{font-size:11px;line-height:1.7;color:hsl(calc(35.62 + var(--th-hue)) calc(18.39% * var(--th-sat)) calc(65.88% + var(--th-inv) * -31.76%));max-width:620px}.term-history-notice>.button{font-size:11px;padding:10px 13px;white-space:nowrap;background:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%));border-color:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%));color:hsl(calc(164.4 + var(--th-hue)) calc(36% * var(--th-sat)) calc(14.71% + var(--th-inv) * 70.59%))}.term-history-notice>.button:hover{background:hsl(calc(153.8 + var(--th-acc)) calc(75.34% * var(--th-asat)) calc(85.69% + var(--th-inv) * -71.37%))}.term-tabs .term-tab-ended{color:hsl(calc(208.1 + var(--th-hue)) calc(14.81% * var(--th-sat)) calc(57.65% + var(--th-inv) * -15.29%))}.term-tabs .term-tab-ended.selected{border-bottom-color:hsl(calc(33.1 + var(--th-hue)) calc(29.59% * var(--th-sat)) calc(61.57% + var(--th-inv) * -23.14%));background:hsl(calc(60 + var(--th-hue)) calc(7.246% * var(--th-sat)) calc(13.53% + var(--th-inv) * 72.94%))}.term-tabs button em{font-size:8px;font-style:normal;padding:3px 5px;border:1px solid hsl(calc(60 + var(--th-hue)) calc(6.383% * var(--th-sat)) calc(27.65% + var(--th-inv) * 44.71%));border-radius:4px;color:hsl(calc(38.33 + var(--th-hue)) calc(19.15% * var(--th-sat)) calc(63.14% + var(--th-inv) * -26.27%));background:hsl(calc(84 + var(--th-hue)) calc(6.494% * var(--th-sat)) calc(15.1% + var(--th-inv) * 69.8%));line-height:1.2}#view .term-is-history .term-screen .xterm-cursor{background-color:transparent!important;color:inherit!important;outline:0!important;box-shadow:none!important;border:0!important;animation:none!important}#view .term-is-history .term-screen .xterm-cursor:before,#view .term-is-history .term-screen .xterm-cursor:after{display:none!important}.term-is-history .term-screen{cursor:text}.term-is-history .term-status{color:hsl(calc(33.33 + var(--th-hue)) calc(34.05% * var(--th-sat)) calc(63.73% + var(--th-inv) * -27.45%))}.term-input-focused:not(.term-is-history) .term-views{outline:1px solid hsl(calc(157.5 + var(--th-hue)) calc(24.69% * var(--th-sat)) calc(31.76% + var(--th-inv) * 36.47%) / 0.3333);outline-offset:4px;border-radius:3px}.term-input-focused .term-input-hint{color:hsl(calc(156.5 + var(--th-hue)) calc(24.47% * var(--th-sat)) calc(63.14% + var(--th-inv) * -26.27%))}.term-is-history .term-input-hint{color:hsl(calc(36.28 + var(--th-hue)) calc(21.83% * var(--th-sat)) calc(61.37% + var(--th-inv) * -22.75%))}
@media(max-width:700px){.term-history-notice{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;margin:11px 10px 0;padding:13px;gap:10px}.term-history-symbol{height:30px;width:30px;font-size:20px}.term-history-notice h2{font-size:12px}.term-history-notice p{font-size:10px}.term-history-notice>.button{grid-column:2;justify-self:start;margin-left:0;font-size:10px;min-height:36px;padding:8px 11px}.term-tabs button em{font-size:7px}.term-tabs .term-tab-ended{min-width:150px}.term-input-focused:not(.term-is-history) .term-views{outline-offset:2px}}

/* Selecting a terminal and closing its tab are separate, always visible actions. */
.term-tab{display:flex;align-items:stretch;flex:0 0 auto;max-width:340px;border-bottom:2px solid transparent}.term-tab.selected{background:hsl(calc(210 + var(--th-hue)) calc(40% * var(--th-sat)) calc(13.73% + var(--th-inv) * 72.55%));border-bottom-color:hsl(calc(152.6 + var(--th-acc)) calc(64.15% * var(--th-asat)) calc(79.22% + var(--th-inv) * -58.43%))}.term-tab.term-tab-ended.selected{background:hsl(calc(60 + var(--th-hue)) calc(7.246% * var(--th-sat)) calc(13.53% + var(--th-inv) * 72.94%));border-bottom-color:hsl(calc(33.1 + var(--th-hue)) calc(29.59% * var(--th-sat)) calc(61.57% + var(--th-inv) * -23.14%))}.term-tabs .term-tab>[data-term="select"]{flex:1;min-width:95px;max-width:295px;border-bottom:0;background:transparent;padding-right:7px}.term-tabs .term-tab>.term-tab-close{flex:0 0 31px;min-width:31px;max-width:31px;align-self:center;justify-content:center;padding:5px 0;margin:0 5px 0 0;height:30px;border:0;border-radius:5px;background:transparent;color:hsl(calc(205.3 + var(--th-hue)) calc(21.95% * var(--th-sat)) calc(59.8% + var(--th-inv) * -19.61%));font-size:18px;line-height:1}.term-tabs .term-tab>.term-tab-close:hover{color:hsl(10.82 calc(62.89% * var(--th-asat)) calc(80.98% + var(--th-inv) * -61.96%));background:hsl(calc(5 + var(--th-hue)) calc(20.69% * var(--th-sat)) calc(22.75% + var(--th-inv) * 54.51%))}.term-tabs .term-tab>.term-tab-close:focus-visible{outline-offset:-2px}.term-tabs .term-tab-dismissing>.term-tab-close{font-size:19px;color:hsl(calc(167.3 + var(--th-hue)) calc(23.4% * var(--th-sat)) calc(72.35% + var(--th-inv) * -44.71%));animation:term-close-pulse 1.4s ease-in-out infinite}.term-tab-errors{padding:10px 26px;margin:0;background:hsl(calc(0 + var(--th-hue)) calc(14.67% * var(--th-sat)) calc(14.71% + var(--th-inv) * 70.59%));border-bottom:1px solid hsl(calc(6.207 + var(--th-hue)) calc(20.86% * var(--th-sat)) calc(27.25% + var(--th-inv) * 45.49%));color:hsl(11.25 calc(59.26% * var(--th-asat)) calc(78.82% + var(--th-inv) * -57.65%));font-size:11px;line-height:1.7;white-space:pre-wrap}.term-tab-errors:empty{display:none}
@keyframes term-close-pulse{50%{opacity:.5}}
@media(max-width:700px){.term-tab{max-width:300px}.term-tabs .term-tab>[data-term="select"]{min-width:100px;padding:11px 6px 11px 9px}.term-tabs .term-tab>.term-tab-close{height:44px;flex-basis:44px;min-width:44px;max-width:44px;margin-right:2px;font-size:21px}.term-tab-errors{padding:9px 13px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.term-tabs .term-tab-dismissing>.term-tab-close{animation:none}}
.term-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.term-header-actions [data-term="cleanup"]{font-size:10px;color:hsl(calc(206 + var(--th-hue)) calc(17.65% * var(--th-sat)) calc(66.67% + var(--th-inv) * -33.33%));background:transparent;border-color:hsl(calc(204.4 + var(--th-hue)) calc(25.81% * var(--th-sat)) calc(24.31% + var(--th-inv) * 51.37%))}.term-header-actions [data-term="cleanup"]:hover{color:hsl(calc(203.1 + var(--th-hue)) calc(33.33% * var(--th-sat)) calc(84.71% + var(--th-inv) * -69.41%));background:hsl(calc(203.6 + var(--th-hue)) calc(35% * var(--th-sat)) calc(15.69% + var(--th-inv) * 68.63%))}.term-header-actions [aria-busy="true"]{opacity:.6}
@media(max-width:700px){.term-header-actions{gap:6px;max-width:180px}.term-header-actions [data-term="cleanup"]{font-size:9px;padding:6px 8px}}
