/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */

/**
 *  Default styles for xterm.js
 */

.xterm {
    cursor: text;
    position: relative;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
}

.xterm.focus,
.xterm:focus {
    outline: none;
}

.xterm .xterm-helpers {
    position: absolute;
    top: 0;
    /**
     * The z-index of the helpers must be higher than the canvases in order for
     * IMEs to appear on top.
     */
    z-index: 5;
}

.xterm .xterm-helper-textarea {
    padding: 0;
    border: 0;
    margin: 0;
    /* Move textarea out of the screen to the far left, so that the cursor is not visible */
    position: absolute;
    opacity: 0;
    left: -9999em;
    top: 0;
    width: 0;
    height: 0;
    z-index: -5;
    /** Prevent wrapping so the IME appears against the textarea at the correct position */
    white-space: nowrap;
    overflow: hidden;
    resize: none;
}

.xterm .composition-view {
    /* TODO: Composition position got messed up somewhere */
    background: #000;
    color: #FFF;
    display: none;
    position: absolute;
    white-space: nowrap;
    z-index: 1;
}

.xterm .composition-view.active {
    display: block;
}

.xterm .xterm-viewport {
    /* On OS X this is required in order for the scroll bar to appear fully opaque */
    background-color: #000;
    overflow-y: scroll;
    cursor: default;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.xterm .xterm-screen {
    position: relative;
}

.xterm .xterm-screen canvas {
    position: absolute;
    left: 0;
    top: 0;
}

.xterm-char-measure-element {
    display: inline-block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: -9999em;
    line-height: normal;
}

.xterm.enable-mouse-events {
    /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
    cursor: default;
}

.xterm.xterm-cursor-pointer,
.xterm .xterm-cursor-pointer {
    cursor: pointer;
}

.xterm.column-select.focus {
    /* Column selection mode */
    cursor: crosshair;
}

.xterm .xterm-accessibility:not(.debug),
.xterm .xterm-message {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    color: transparent;
    pointer-events: none;
}

.xterm .xterm-accessibility-tree:not(.debug) *::selection {
  color: transparent;
}

.xterm .xterm-accessibility-tree {
  font-family: monospace;
  user-select: text;
  white-space: pre;
}

.xterm .xterm-accessibility-tree > div {
  transform-origin: left;
  width: fit-content;
}

.xterm .live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.xterm-dim {
    /* Dim should not apply to background, so the opacity of the foreground color is applied
     * explicitly in the generated class and reset to 1 here */
    opacity: 1 !important;
}

.xterm-underline-1 { text-decoration: underline; }
.xterm-underline-2 { text-decoration: double underline; }
.xterm-underline-3 { text-decoration: wavy underline; }
.xterm-underline-4 { text-decoration: dotted underline; }
.xterm-underline-5 { text-decoration: dashed underline; }

.xterm-overline {
    text-decoration: overline;
}

.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }

.xterm-strikethrough {
    text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
	z-index: 6;
	position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
	z-index: 7;
}

.xterm-decoration-overview-ruler {
    z-index: 8;
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
}

.xterm-decoration-top {
    z-index: 2;
    position: relative;
}



/* Derived from vs/base/browser/ui/scrollbar/media/scrollbar.css */

/* xterm.js customization: Override xterm's cursor style */
.xterm .xterm-scrollable-element > .scrollbar {
    cursor: default;
}

/* Arrows */
.xterm .xterm-scrollable-element > .scrollbar > .scra {
	cursor: pointer;
	font-size: 11px !important;
}

.xterm .xterm-scrollable-element > .visible {
	opacity: 1;

	/* Background rule added for IE9 - to allow clicks on dom node */
	background:rgba(0,0,0,0);

	transition: opacity 100ms linear;
	/* In front of peek view */
	z-index: 11;
}
.xterm .xterm-scrollable-element > .invisible {
	opacity: 0;
	pointer-events: none;
}
.xterm .xterm-scrollable-element > .invisible.fade {
	transition: opacity 800ms linear;
}

/* Scrollable Content Inset Shadow */
.xterm .xterm-scrollable-element > .shadow {
	position: absolute;
	display: none;
}
.xterm .xterm-scrollable-element > .shadow.top {
	display: block;
	top: 0;
	left: 3px;
	height: 3px;
	width: 100%;
	box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.left {
	display: block;
	top: 3px;
	left: 0;
	height: 100%;
	width: 3px;
	box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}
.xterm .xterm-scrollable-element > .shadow.top-left-corner {
	display: block;
	top: 0;
	left: 0;
	height: 3px;
	width: 3px;
}
.xterm .xterm-scrollable-element > .shadow.top.left {
	box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

#central-terminal {
  position: fixed;
  z-index: 31;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-background);
  color: var(--text);
  box-shadow: 0 18px 55px rgb(0 0 0 / 40%);
}
#central-terminal[hidden] {
  display: none;
}
.terminal-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--input-background);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.terminal-heading:active {
  cursor: grabbing;
}
.terminal-heading:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}
.terminal-heading-copy {
  min-width: 0;
}
.terminal-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.terminal-heading h2 {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-actions.block-tools {
  position: static;
  flex: 0 0 auto;
  gap: 0;
  background: var(--control-background);
  color: var(--control-text);
}
.terminal-actions.block-tools > button {
  flex-basis: var(--toolbar-height);
  width: var(--toolbar-height);
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
}
.terminal-clipboard.block-tools {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-self: flex-start;
  gap: 0;
  margin: 6px 10px;
  background: var(--control-background);
  color: var(--control-text);
}
.terminal-clipboard.block-tools > button {
  width: var(--toolbar-height);
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
}
.terminal-clipboard-fallback {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 36px;
  left: 10px;
  box-sizing: border-box;
  min-height: 0;
  max-height: 50%;
  padding: 8px 10px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-background);
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}
.terminal-clipboard-fallback[hidden] {
  display: none;
}
.terminal-clipboard-note {
  margin: 0 0 6px;
  font-size: 12px;
}
.terminal-clipboard-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  max-height: 120px;
  margin: 0;
  resize: vertical;
  color: var(--text);
  background: var(--input-background);
  font:
    12px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.terminal-clipboard-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.terminal-clipboard-fallback-actions > button {
  min-height: var(--toolbar-height);
  margin: 0;
  font-size: 12px;
}
.terminal-restore {
  position: fixed;
  z-index: 31;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: min(360px, calc(100vw - 24px));
  min-height: var(--toolbar-height);
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--control-background);
  color: var(--control-text);
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}
.terminal-restore[hidden] {
  display: none;
}
.terminal-restore svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.terminal-restore span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-status {
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-status[data-state='active'] {
  color: var(--accent);
}
.terminal-status[data-state='error'] {
  color: var(--warning);
}
.terminal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px;
  background: #0d1117;
}
.terminal-tab-strip {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.terminal-tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.terminal-tab {
  display: flex;
  flex: 0 0 auto;
  max-width: min(228px, 100%);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.terminal-tab-choice,
.terminal-tab-close {
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--control-background);
  color: var(--muted-text);
}
.terminal-tab-choice {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-tab-choice > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-tab-choice::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-text);
  content: '';
}
.terminal-tab[data-state='active'] .terminal-tab-choice::before {
  background: var(--accent);
}
.terminal-tab[data-state='error'] .terminal-tab-choice::before {
  background: var(--warning);
}
.terminal-tab-choice[aria-selected='true'] {
  background: var(--control-active-surface);
  color: var(--control-text);
  box-shadow: inset 0 -2px var(--accent);
}
.terminal-tab-close {
  flex: 0 0 28px;
  width: 28px;
  padding: 4px;
}
.terminal-tab-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.terminal-shell {
  flex: 0 0 auto;
  width: 122px;
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--control-background);
  color: var(--control-text);
  font-size: 12px;
}
.terminal-shell:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.terminal-pane {
  position: relative;
  width: 100%;
  height: 100%;
}
.terminal-pane[hidden],
.terminal-shell[hidden] {
  display: none;
}
.terminal-host {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.terminal-host .xterm {
  height: 100%;
}
.terminal-message {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #e6edf3;
  background: #0d1117f2;
  inset: 0;
}
.terminal-message[hidden] {
  display: none;
}
.terminal-message p {
  max-width: 55ch;
  margin: 0;
  line-height: 1.5;
}
.terminal-message a {
  color: #79c0ff;
}
.terminal-resize {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 0 0 13px;
  background: transparent;
  cursor: nwse-resize;
  touch-action: none;
}
.terminal-resize::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted-text);
  border-bottom: 2px solid var(--muted-text);
  content: '';
}

.connection-group,
#page-navigation,
.page-split {
  display: contents;
}
#session-source {
  display: flex;
  align-items: stretch;
}
.source-controls {
  display: grid;
  grid-template-columns: repeat(2, 34px);
}
#session-source .source-controls {
  grid-template-columns: repeat(3, 34px);
}
.source-controls button {
  display: grid;
  place-items: center;
  min-height: var(--control-height);
  padding-inline: 0;
}
.source-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#cli-version:disabled {
  cursor: default;
  opacity: 1;
}

.control-controls {
  grid-template-columns: 60px;
  flex: 0 0 auto;
}
.page-split > .session-split {
  min-width: 0;
}
.page-split > .workspace-controls {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}
.page-split > [aria-label='Appearance'] {
  grid-template-columns: repeat(3, 34px);
  flex: 0 0 auto;
}
.page-split > [aria-label='Accounts and settings'] {
  grid-template-columns: repeat(2, minmax(max-content, 1fr));
  flex: 1 1 auto;
}
.workspace-controls svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.workspace-controls button {
  display: grid;
  place-items: center;
}
#session-jump,
#open-workspace {
  contain: inline-size;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
#session-jump {
  min-width: 0;
  padding-inline: 8px;
}
.control-controls #disconnect,
#session-source button {
  grid-template-rows: 17px 10px;
  gap: 2px;
  align-content: center;
  padding-block: 5px;
}
.toolbar-caption {
  font-size: 9px;
  line-height: 10px;
  font-weight: 600;
  white-space: nowrap;
}
#open-workspace {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1lh 10px;
  gap: 2px;
  align-content: center;
  min-height: var(--control-height);
  padding-block: 4px;
}
#workspace-label,
#workspace-caption {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-controls [aria-pressed] .toolbar-caption::after {
  content: 'Off';
}
.source-controls [aria-pressed='true'] .toolbar-caption::after {
  content: 'On';
}
#disconnect[data-control-state='controlled'] {
  box-shadow: inset 0 0 0 1px var(--accent);
}
#disconnect[aria-busy='true'] svg {
  animation: control-connecting 1s linear infinite;
}
@keyframes control-connecting {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #disconnect[aria-busy='true'] svg {
    animation: none;
  }
}
#workspace-menu {
  max-height: min(840px, calc(100dvh - 16px));
}
#session-menu {
  width: min(600px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  scrollbar-width: none;
}
#session-menu::-webkit-scrollbar {
  display: none;
}
.workspace-choice,
.session-choice {
  position: relative;
  min-width: 0;
}
.jump-menu .workspace-choice > .jump-choice {
  padding-right: 12px;
}
.jump-menu .workspace-choice > .jump-choice > span:first-child {
  min-height: var(--toolbar-height);
  padding-right: calc(4 * 34px + 14px);
}
.jump-menu .workspace-choice > .jump-row-actions.block-tools {
  top: 5px;
  transform: none;
}
.jump-menu .session-choice > .jump-choice {
  padding-right: calc(34px + 14px);
}
.jump-menu .session-choice > .jump-choice[data-project-name]:not([data-project-name=''])::after {
  content: attr(data-project-name);
  color: var(--accent);
  font-size: 12px;
}
.session-projects {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.session-projects > select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.session-projects .block-tools {
  position: static;
  flex-shrink: 0;
}
.session-project-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--card-background);
}
.session-project-dialog::backdrop {
  background: #0008;
}
.session-project-dialog label {
  display: grid;
  gap: 6px;
  margin-block: 12px;
}
.session-project-dialog input,
.session-project-dialog select {
  min-width: 0;
  width: 100%;
}
.session-project-dialog p {
  color: var(--muted-text);
}
.session-project-dialog button {
  margin-right: 8px;
}
.workspace-choice > [data-workspace-recent='true']:not([aria-current='true']) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.jump-menu .jump-row-actions.block-tools {
  --toolbar-selection: var(--control-active-surface);

  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}
.jump-menu .jump-row-actions.block-tools > button {
  flex-basis: 34px;
  width: 34px;
  height: var(--toolbar-height);
  min-height: var(--toolbar-height);
  padding: 0;
}
.jump-menu .workspace-pin[aria-pressed='true'],
.jump-menu .session-pin[aria-pressed='true'] {
  color: var(--accent);
}
.workspace-pin[aria-pressed='true'] svg,
.session-pin[aria-pressed='true'] svg {
  fill: currentColor;
}
.workspace-choice[data-workspace-hidden='true'] .jump-choice > .session-meta::after {
  content: 'Hidden';
  color: var(--accent);
  font-size: 12px;
}
.jump-menu-items > span {
  padding: 10px 12px;
  color: var(--muted-text);
  font-size: 12px;
}
.workspace-settings form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--component-gap);
}
.workspace-settings input {
  width: 100%;
  margin-top: 6px;
  min-width: 0;
}
.workspace-connections {
  display: grid;
  gap: var(--component-gap);
  margin-top: var(--component-gap);
}
.workspace-connection {
  grid-template-columns: minmax(0, 1fr) auto;
}
.workspace-connection > span {
  padding: 10px 16px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--control-text);
}
.workspace-connection > button {
  border-left: 1px solid var(--control-divider);
  border-radius: 0 7px 7px 0;
}
.workspace-settings form > button {
  margin: 0;
  grid-column: 1 / -1;
}
.workspace-settings [role='status']:empty {
  display: none;
}
.workspace-settings [role='status'] {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .workspace-settings form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.session-split button:only-child {
  border-radius: inherit;
}

.page-split > .history-controls {
  flex: 1 1 206px;
  min-width: min(100%, 206px);
}

.session-status {
  display: block;
}
.session-age {
  margin: 0;
  color: var(--muted-text);
  font-size: 12px;
}
.session-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.session-attachments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  white-space: nowrap;
}
.session-attachments svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 700px) and (max-width: 900px) {
  main > nav {
    font-size: 15px;
  }
  .page-split > .history-controls {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    flex-basis: 173px;
    min-width: 173px;
  }
  .page-split > .workspace-controls {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    flex-basis: 184px;
    min-width: 184px;
  }
  .source-controls {
    grid-template-columns: repeat(2, 32px);
  }
  .page-split > [aria-label='Appearance'] {
    grid-template-columns: repeat(3, 32px);
  }
  #session-source .source-controls {
    grid-template-columns: repeat(3, 32px);
  }
  .page-split > [aria-label='Accounts and settings'] button {
    padding-inline: 4px;
  }
  .history-controls #session-jump {
    padding-inline: 6px;
  }
}

.jump-menu .request-preview-heading {
  justify-content: center;
  padding-left: 0;
}
.jump-toolbar.block-tools {
  --toolbar-selection: var(--control-active-surface);

  position: static;
  flex-shrink: 0;
  max-width: 100%;
  border-color: var(--border);
  background: var(--card-background);
  color: var(--muted-text);
}
.jump-toolbar button {
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
}
.jump-toolbar .jump-age {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.jump-toolbar button[aria-pressed='true']:not(:disabled) {
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.jump-toolbar-note {
  padding: 0 8px 8px;
  color: var(--muted-text);
  font-size: 12px;
}
.workspace-alphabet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 3px;
  padding: 0 0 8px;
}
.workspace-alphabet button {
  --control-height: 28px;

  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted-text);
  font-size: 12px;
}
.workspace-alphabet button:hover:not(:disabled) {
  background: var(--control-hover-surface);
}
.workspace-alphabet button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--control-active-surface);
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.jump-menu [hidden] {
  display: none;
}

#workspace-welcome {
  flex-shrink: 0;
  margin-bottom: var(--component-gap);
  padding: 14px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--control-background);
}
.workspace-welcome-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workspace-welcome-heading h2 {
  margin: 0;
  font-size: 1rem;
}
#workspace-welcome-message {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.waiting-replies {
  max-width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.waiting-reply-items {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.waiting-reply-items button {
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.jump-menu .list-status-toolbar.block-tools {
  --toolbar-selection: var(--control-active-surface);

  position: static;
  display: inline-flex;
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  background: var(--card-background);
  color: var(--muted-text);
}
.list-status-toolbar::-webkit-scrollbar {
  display: none;
}
.list-status-cell {
  position: relative;
}
.list-status-cell[data-active='true'] {
  color: var(--accent);
  background: var(--control-active-surface);
  box-shadow: inset 0 -2px var(--accent);
}
.list-status-cell[data-status='stopped'][data-active='true'] {
  color: var(--workspace-stopped-text);
  background: var(--workspace-stopped-background);
  box-shadow: inset 0 -2px var(--workspace-stopped-text);
}
.list-status-cell[data-status='stopped'] > svg {
  fill: currentcolor;
}
.list-status-cell[data-active='false'] > svg {
  opacity: 0.45;
}
.list-status-cell[data-unknown='true'] > svg {
  stroke-dasharray: 3 1;
}
.list-status-cell:not([data-count='0']) > svg {
  transform: translateY(-4px);
}
.list-status-count {
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  font-size: 9px;
  line-height: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.jump-menu .session-meta {
  min-width: 0;
  align-items: center;
}
.jump-menu .jump-choice:disabled {
  opacity: 1;
}
.jump-menu .jump-choice:disabled > span:first-child,
.jump-menu .jump-choice:disabled .session-age,
.jump-menu .jump-choice:disabled .session-attachments {
  opacity: 0.4;
}
.jump-menu .session-choice > .jump-choice {
  padding-right: 12px;
}
.jump-menu .session-choice > .jump-choice > span:first-child {
  min-height: var(--toolbar-height);
  padding-right: calc(2 * 34px + 14px);
}
.jump-menu .session-choice > .jump-row-actions.block-tools {
  top: 5px;
  transform: none;
}
