/* VS Code Modern UI workbench shell for the EmberProbe mock (matches microsoft/vscode/main). */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    color: var(--vscode-foreground);
    background: var(--vscode-modernUI-shellBackground, var(--vscode-titleBar-activeBackground));
    font-family: var(--vscode-font-family);
    font-size: var(--vscode-fontSize-body1, var(--vscode-font-size));
}

button {
    color: inherit;
    font: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-scrollbarSlider-background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vscode-scrollbarSlider-hoverBackground);
}

::-webkit-scrollbar-thumb:active {
    background: var(--vscode-scrollbarSlider-activeBackground, var(--vscode-scrollbarSlider-hoverBackground));
}

::-webkit-scrollbar-corner {
    background: transparent;
}

#workbench {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--vscode-modernUI-shellBackground, var(--vscode-titleBar-activeBackground));
}

/* ---------------------------------------------------------------- title bar */

#titlebar {
    display: flex;
    align-items: center;
    height: 35px;
    flex: 0 0 35px;
    background: var(--vscode-titleBar-activeBackground);
    color: var(--vscode-titleBar-activeForeground);
    user-select: none;
}

.titlebar-left {
    display: flex;
    align-items: center;
    width: 20%;
    flex: 2 1 0;
    min-width: 0;
    overflow: hidden;
}

.app-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
}

.app-icon img {
    width: 16px;
    height: 16px;
}

.menubar {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.menubar button {
    height: 22px;
    line-height: 22px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: var(--vscode-fontSize-body1, 13px);
    color: var(--vscode-titleBar-activeForeground);
    white-space: nowrap;
}

.menubar button:hover {
    color: var(--vscode-menubar-selectionForeground, var(--vscode-titleBar-activeForeground));
    background: var(--vscode-menubar-selectionBackground, var(--vscode-toolbar-hoverBackground));
}

.titlebar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60%;
    max-width: fit-content;
    min-width: 0;
    margin: 0 10px;
}

.title-action {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    color: var(--vscode-titleBar-activeForeground);
    flex: 0 0 22px;
}

.title-action .codicon {
    font-size: 16px;
    line-height: 16px;
}

.title-action:disabled {
    opacity: 0.4;
    cursor: default;
}

.title-action:not(:disabled):hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.command-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 22px;
    width: 38vw;
    max-width: 600px;
    min-width: 180px;
    margin: 0 2px;
    padding: 0 8px;
    border: 1px solid var(--vscode-commandCenter-border);
    border-radius: var(--vscode-cornerRadius-medium, 6px);
    background: var(--vscode-commandCenter-background);
    color: var(--vscode-commandCenter-foreground);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.command-center:hover {
    background: var(--vscode-commandCenter-activeBackground);
    border-color: var(--vscode-commandCenter-activeBorder);
    color: var(--vscode-commandCenter-activeForeground);
}

.command-center .search-icon {
    font-size: 14px;
    opacity: 0.8;
}

.titlebar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 20%;
    min-width: min-content;
    flex: 2 1 0;
}

.window-controls {
    display: flex;
    flex: 0 0 138px;
    height: 35px;
    margin-left: 8px;
}

.window-controls .wc {
    display: grid;
    place-items: center;
    width: 46px;
    height: 35px;
    color: var(--vscode-titleBar-activeForeground);
}

.window-controls .wc .codicon {
    font-size: 16px;
}

.window-controls .wc:hover {
    background: rgba(255, 255, 255, 0.1);
}

:root[data-mock-theme="light"] .window-controls .wc:hover {
    background: rgba(0, 0, 0, 0.1);
}

.window-controls .wc.close:hover {
    background: rgba(232, 17, 35, 0.9);
    color: #ffffff;
}

/* ----------------------------------------------------- floating rail + cards */

#workbench-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--vscode-modernUI-shellBackground, var(--vscode-titleBar-activeBackground));
}

#activitybar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    flex: 0 0 44px;
    margin: 0 0 4px 4px;
    padding: 3px 0;
    background: var(--vscode-activityBar-background);
    border: 1px solid var(--vscode-modernActivityBar-border, var(--vscode-surface-border));
    border-radius: var(--vscode-cornerRadius-large, 8px) 0 0 var(--vscode-cornerRadius-large, 8px);
}

#workbench.nosidebar #activitybar {
    border-radius: var(--vscode-cornerRadius-large, 8px);
}

.activity-top,
.activity-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.activity-item {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--vscode-activityBar-inactiveForeground);
}

.activity-item::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: transparent;
    z-index: 0;
}

.activity-item svg,
.activity-item > .codicon {
    position: relative;
    z-index: 1;
}

.activity-item svg {
    width: 24px;
    height: 24px;
}

.activity-item > .codicon {
    font-size: 24px;
    line-height: 24px;
}

.activity-item:not(.active):hover {
    color: var(--vscode-modernActivityBarItem-hoverForeground, var(--vscode-activityBar-foreground));
}

.activity-item:not(.active):hover::before {
    background: var(--vscode-modernActivityBarItem-hoverBackground);
}

.activity-item.active {
    color: var(--vscode-modernActivityBarItem-activeForeground, var(--vscode-activityBar-foreground));
}

.activity-item.active::before {
    background: var(--vscode-modernActivityBarItem-activeBackground);
}

.activity-item .badge {
    position: absolute;
    top: 18px;
    right: 3px;
    z-index: 2;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 20px;
    background: var(--vscode-activityBarBadge-background);
    color: var(--vscode-activityBarBadge-foreground);
    font-size: var(--vscode-fontSize-label3, 10px);
    font-weight: var(--vscode-fontWeight-regular, 400);
    line-height: 16px;
    text-align: center;
}

/* ------------------------------------------------------------------ sidebar */

#sidebar {
    position: relative;
    width: var(--sidebar-width, 340px);
    flex: 0 0 auto;
    min-width: 170px;
    max-width: 640px;
    margin: 0 0 4px 0;
    background: var(--vscode-sideBar-background);
    color: var(--vscode-sideBar-foreground);
    border: 1px solid var(--vscode-surface-border);
    border-left: 0;
    border-radius: 0 var(--vscode-cornerRadius-large, 8px) var(--vscode-cornerRadius-large, 8px) 0;
    overflow: hidden;
    user-select: none;
}

#sidebar.hidden {
    display: none;
}

#sidebar-views {
    height: 100%;
}

.view {
    display: none;
    flex-direction: column;
    height: 100%;
}

.view.active {
    display: flex;
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 35px;
    flex: 0 0 35px;
    padding: 0 8px 0 12px;
    font-size: var(--vscode-fontSize-label1, 12px);
    font-weight: var(--vscode-fontWeight-semiBold, 600);
    text-transform: none;
    color: var(--vscode-sideBarTitle-foreground);
}

.view-actions {
    display: flex;
    gap: 2px;
    opacity: 0.9;
}

[data-view="emberprobe"] > .view-header .view-actions {
    visibility: hidden;
}

[data-view="emberprobe"] > .view-header:hover .view-actions {
    visibility: visible;
}

.view-actions button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 14px;
    color: var(--vscode-icon-foreground, var(--vscode-foreground));
}

.view-actions button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.view-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.section-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    margin: 0 4px;
    padding: 0 6px 0 4px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-sideBar-background);
    font-size: var(--vscode-fontSize-label1, 12px);
    font-weight: var(--vscode-fontWeight-semiBold, 600);
    text-transform: none;
    color: var(--vscode-sideBarSectionHeader-foreground);
    cursor: pointer;
}

.section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--vscode-sideBarSectionHeader-border, var(--vscode-surface-border));
    pointer-events: none;
}

.view-body > .section-header:first-child::before {
    display: none;
}

.section-header:hover {
    background: var(--vscode-list-hoverBackground);
}

.section-header .chevron {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
}

.section-header .count-badge,
.count-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--vscode-cornerRadius-circle, 9999px);
    background: var(--vscode-badge-background);
    color: var(--vscode-badge-foreground);
    font-size: var(--vscode-fontSize-label3, 10px);
    font-weight: var(--vscode-fontWeight-regular, 400);
    line-height: 18px;
    text-align: center;
    text-transform: none;
}

.section-actions {
    display: flex;
    margin-left: auto;
    gap: 2px;
}

.section-actions button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 12px;
}

.section-actions button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.tree {
    padding-bottom: 4px;
}

.tree-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    margin: 0 4px;
    padding: 0 6px 0 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    white-space: nowrap;
    cursor: pointer;
}

.tree-row:hover {
    background: var(--vscode-list-hoverBackground);
}

.tree-row.selected {
    background: var(--vscode-list-inactiveSelectionBackground);
}

.tree-row .chevron {
    width: 16px;
    flex: 0 0 16px;
    font-size: 9px;
    color: var(--vscode-foreground);
    text-align: center;
}

.tree-row .file-icon {
    width: 16px;
    flex: 0 0 16px;
    font-size: 12px;
    text-align: center;
}

.tree-row .label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-row.modified .label {
    color: var(--vscode-gitDecoration-modifiedResourceForeground);
}

.tree-row.untracked .label {
    color: var(--vscode-gitDecoration-untrackedResourceForeground);
}

.tree-row.indent-1 {
    padding-left: 24px;
}

.tree-row.indent-2 {
    padding-left: 40px;
}

.tree-row.indent-3 {
    padding-left: 56px;
}

.outline-tree .tree-row,
.timeline .tree-row {
    color: var(--vscode-foreground);
}

.timeline {
    padding: 0 8px 12px 20px;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
    line-height: 1.7;
}

.search-box {
    display: flex;
    gap: 4px;
    padding: 6px 8px 2px;
}

.search-box input {
    flex: 1;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--vscode-input-border);
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-input-background);
    color: var(--vscode-input-foreground);
    font: inherit;
    font-size: 12px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--vscode-focusBorder);
}

.search-box button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    color: var(--vscode-foreground);
}

.search-box button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.search-meta {
    padding: 4px 10px 6px;
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
}

.search-file {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    margin: 0 4px;
    padding: 0 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 12px;
    cursor: pointer;
}

.search-file:hover {
    background: var(--vscode-list-hoverBackground);
}

.search-match {
    display: flex;
    gap: 6px;
    margin: 0 4px;
    padding: 1px 8px 1px 26px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 12px;
    font-family: var(--vscode-editor-font-family);
    white-space: pre;
    cursor: pointer;
}

.search-match:hover {
    background: var(--vscode-list-hoverBackground);
}

.search-match .line-no {
    color: var(--vscode-editorLineNumber-foreground);
    min-width: 24px;
    text-align: right;
}

.search-match mark {
    background: rgba(234, 92, 0, 0.33);
    color: inherit;
}

.scm-input {
    width: calc(100% - 16px);
    margin: 6px 8px;
    padding: 4px 6px;
    border: 1px solid var(--vscode-input-border);
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-input-background);
    color: var(--vscode-input-foreground);
    font: inherit;
    font-size: 12px;
    resize: none;
    outline: none;
}

.scm-input:focus {
    border-color: var(--vscode-focusBorder);
}

.scm-commit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 16px);
    height: 26px;
    margin: 0 8px 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-button-secondaryBackground);
    color: var(--vscode-button-secondaryForeground);
    font-size: 12px;
}

.scm-commit:hover {
    background: var(--vscode-button-secondaryHoverBackground);
}

.scm-graph {
    padding: 4px 12px 12px 20px;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
    line-height: 1.8;
}

/* ------------------------------------------------------------ debug sidebar */

.debug-config-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 8px;
}

.debug-config-name {
    flex: 1;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.debug-config-row button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
}

.debug-config-row button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.debug-config-row .debug-start {
    color: var(--vscode-testing-iconPassed);
}

.debug-tree .tree-row {
    height: 20px;
    padding-left: 10px;
    font-size: 12px;
    font-family: var(--vscode-editor-font-family);
}

.debug-tree .tree-row .label {
    font-family: var(--vscode-font-family);
}

.debug-tree .var-name {
    color: var(--vscode-symbolIcon-variableForeground);
}

.debug-tree .var-value {
    color: var(--vscode-foreground);
}

.debug-tree .var-type {
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
}

.stack-row.active {
    background: var(--vscode-list-inactiveSelectionBackground);
}

.stack-row .stack-line {
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
}

.breakpoint-row {
    font-family: var(--vscode-editor-font-family);
    font-size: 12px;
}

.breakpoint-row .dot {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    font-size: 16px;
    color: var(--vscode-debugIcon-breakpointForeground);
}

.breakpoint-row.disabled .dot {
    color: var(--vscode-disabledForeground);
}

.breakpoint-row input {
    accent-color: var(--vscode-focusBorder);
    margin: 0 4px 0 0;
}

.breakpoint-row.disabled .label {
    color: var(--vscode-descriptionForeground);
}

.breakpoint-row .file {
    color: var(--vscode-descriptionForeground);
}

.data-breakpoint-row .file {
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-breakpoint-row.unverified .dot {
    color: var(--vscode-debugIcon-breakpointUnverifiedForeground, var(--vscode-disabledForeground));
}

.rtt-pane iframe {
    background: var(--vscode-panel-background);
}

/* --------------------------------------------------------------- extensions */

.extension-card {
    display: flex;
    gap: 10px;
    margin: 4px 8px 10px;
    padding: 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
}

.extension-card:hover {
    background: var(--vscode-list-hoverBackground);
}

.extension-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 6px;
    background: linear-gradient(145deg, #0e4d92, #03234b);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.extension-icon.cpp {
    background: linear-gradient(145deg, #5c2d91, #2b0f4d);
    font-size: 13px;
}

.extension-copy {
    min-width: 0;
}

.extension-name {
    font-size: 13px;
    font-weight: 600;
}

.extension-desc,
.extension-meta {
    margin-top: 2px;
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
    line-height: 1.4;
}

.extension-meta {
    display: flex;
    gap: 8px;
}

.extension-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.mini-button {
    height: 22px;
    padding: 0 10px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-button-secondaryBackground);
    color: var(--vscode-button-secondaryForeground);
    font-size: 11px;
}

.mini-button:hover {
    background: var(--vscode-button-secondaryHoverBackground);
}

/* ------------------------------------------------------- plugin frame views */

.plugin-frame-wrap {
    overflow: hidden;
    user-select: auto;
}

.plugin-frame-wrap iframe,
.editor-pane iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--vscode-sideBar-background);
}

.editor-pane[data-pane="livewatch"] iframe {
    background: var(--vscode-editor-background);
}

/* -------------------------------------------------------------- sash handles */

#sidebar-resizer {
    position: relative;
    width: 4px;
    flex: 0 0 4px;
    margin-bottom: 4px;
    cursor: col-resize;
    z-index: 5;
}

#sidebar-resizer::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: transparent;
    transition: background-color 0.1s ease-out;
}

#sidebar-resizer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--vscode-modernSash-gripForeground);
    color: var(--vscode-modernSash-gripForeground);
    box-shadow:
        0 -5px currentColor,
        0 5px currentColor;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

#sidebar-resizer:hover::before,
#sidebar-resizer.active::before {
    background: var(--vscode-sash-hoverBorder);
}

#sidebar-resizer:hover::after,
#sidebar-resizer.active::after {
    opacity: 0;
}

#workbench.nosidebar #sidebar-resizer {
    display: none;
}

#panel-resizer {
    position: relative;
    height: 4px;
    flex: 0 0 4px;
    cursor: row-resize;
    z-index: 5;
}

#panel-resizer::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 0;
    height: 4px;
    border-radius: 2px;
    background: transparent;
    transition: background-color 0.1s ease-out;
}

#panel-resizer::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--vscode-modernSash-gripForeground);
    color: var(--vscode-modernSash-gripForeground);
    box-shadow:
        -5px 0 currentColor,
        5px 0 currentColor;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

#panel-resizer:hover::before,
#panel-resizer.active::before {
    background: var(--vscode-sash-hoverBorder);
}

#panel-resizer:hover::after,
#panel-resizer.active::after {
    opacity: 0;
}

#workbench.nopanel #panel-resizer {
    display: none;
}

/* -------------------------------------------------------------- editor area */

#main-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    margin: 0 4px 4px 0;
}

#workbench.nosidebar #main-column {
    margin-left: 4px;
}

#editor-area {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--vscode-editor-background);
    border: 1px solid var(--vscode-editor-border, var(--vscode-surface-border));
    border-radius: var(--vscode-cornerRadius-large, 8px);
    overflow: hidden;
}

#tabs {
    display: flex;
    align-items: stretch;
    height: 35px;
    flex: 0 0 35px;
    padding-top: 3px;
    background: var(--vscode-editorGroupHeader-connectedTabsBackground, var(--vscode-editorGroupHeader-tabsBackground));
    box-shadow: inset 0 -1px var(--vscode-surface-border);
}

.tab-list {
    display: flex;
    align-items: stretch;
    height: 32px;
    padding: 0 8px 0 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    height: 32px;
    padding: 0 10px 1px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: var(--vscode-cornerRadius-medium, 6px) var(--vscode-cornerRadius-medium, 6px) 0 0;
    background: transparent;
    color: var(--vscode-tab-inactiveForeground);
    font-size: var(--vscode-fontSize-body1, 13px);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    z-index: 0;
}

.tab:not(.active) + .tab:not(.active)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    background: var(--vscode-tab-divider);
    transform: translateY(-50%);
    pointer-events: none;
}

.tab:not(.active):hover::before,
.tab:not(.active):hover + .tab:not(.active)::before {
    opacity: 0;
}

.tab:not(.active):hover {
    background: color-mix(
        in srgb,
        var(--vscode-foreground) 6%,
        var(--vscode-editorGroupHeader-connectedTabsBackground, var(--vscode-editorGroupHeader-tabsBackground))
    );
    color: var(--vscode-tab-activeForeground);
    box-shadow: inset 0 -1px var(--vscode-surface-border);
}

.tab.active {
    z-index: 2;
    padding-bottom: 0;
    background: var(--vscode-editor-background);
    color: var(--vscode-tab-activeForeground);
    border-color: var(--vscode-surface-border);
}

.tab.active::before,
.tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--vscode-surface-border);
    clip-path: inset(0);
    pointer-events: none;
}

.tab.active::before {
    right: 100%;
    border-right: 1px solid var(--vscode-surface-border);
    border-bottom-right-radius: 7px;
    box-shadow: 3.5px 3.5px 0 3.5px var(--vscode-editor-background);
}

.tab.active::after {
    left: 100%;
    border-left: 1px solid var(--vscode-surface-border);
    border-bottom-left-radius: 7px;
    box-shadow: -3.5px 3.5px 0 3.5px var(--vscode-editor-background);
}

.tab.git-modified .tab-label,
.tab .git-decoration {
    color: var(--vscode-gitDecoration-modifiedResourceForeground);
}

.tab .git-decoration {
    margin-left: 2px;
}

.tab.git-modified:not(.active):not(:hover) .tab-close {
    display: none;
}

.tab .tab-icon {
    display: flex;
    align-items: center;
    width: 16px;
    font-size: 12px;
    text-align: center;
}

.tab .tab-close {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 2px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 12px;
    opacity: 0;
}

.tab:hover .tab-close,
.tab.active .tab-close {
    opacity: 0.9;
}

.tab .tab-close:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

.tab .modified-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.tab .modified-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.tab .modified-dot + .tab-close,
.tab:hover .modified-dot {
    display: none;
}

.tab:hover .modified-dot + .tab-close {
    display: grid;
}

.tab-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 0 6px 3px;
}

.tab-actions button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 14px;
    color: var(--vscode-icon-foreground, var(--vscode-foreground));
}

.tab-actions button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

#editor-body {
    order: 2;
    position: relative;
    flex: 1;
    min-height: 0;
}

.editor-pane {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    min-height: 0;
}

.editor-pane.active {
    display: flex;
}

#breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0;
    height: 22px;
    flex: 0 0 22px;
    padding: 0 12px;
    color: var(--vscode-breadcrumb-foreground, var(--vscode-descriptionForeground));
    font-size: 13px;
}

#breadcrumbs .crumb:hover {
    color: var(--vscode-breadcrumb-focusForeground, var(--vscode-foreground));
    cursor: pointer;
}

#editor-scroll {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: auto;
    font-family: var(--vscode-editor-font-family);
    font-size: 14px;
    line-height: 19px;
}

#gutter {
    position: sticky;
    left: 0;
    flex: 0 0 74px;
    padding: 4px 0;
    background: var(--vscode-editorGutter-background);
    color: var(--vscode-editorLineNumber-foreground);
    text-align: right;
    user-select: none;
    z-index: 2;
}

.gutter-line {
    position: relative;
    padding-right: 12px;
    font-size: 14px;
    height: 19px;
    line-height: 19px;
    cursor: pointer;
}

.gutter-line.active {
    color: var(--vscode-editorLineNumber-activeForeground);
}

.gutter-line .glyph-margin {
    position: absolute;
    left: 3px;
    top: 0;
    width: 19px;
    height: 19px;
}

.glyph-margin > .codicon {
    position: absolute;
    inset: 0;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
}

.glyph-margin .breakpoint,
.glyph-margin .breakpoint-hint {
    z-index: 2;
    color: var(--vscode-debugIcon-breakpointForeground);
}

.glyph-margin .breakpoint.disabled {
    opacity: 0.35;
}

.glyph-margin .breakpoint-hint {
    opacity: 0;
}

.gutter-line:hover .breakpoint-hint {
    opacity: 0.4;
}

.glyph-margin .current-arrow {
    color: var(--vscode-editor-stackFrameHighlightForeground);
}

#code-wrap {
    flex: 1;
    min-width: 0;
}

#code {
    margin: 0;
    padding: 4px 12px 40px 8px;
    color: var(--vscode-editor-foreground);
    font: inherit;
    line-height: inherit;
    white-space: pre;
    tab-size: 4;
}

.code-line {
    display: block;
    min-height: 19px;
}

.code-line.active-line {
    background: var(--vscode-editor-stackFrameHighlightBackground);
    box-shadow: -8px 0 0 var(--vscode-editor-stackFrameHighlightBackground);
}

.tok-comment {
    color: var(--mock-comment);
}

.tok-string {
    color: var(--mock-string);
}

.tok-pre {
    color: var(--mock-control);
}

.tok-number {
    color: var(--mock-number);
}

.tok-keyword {
    color: var(--mock-keyword);
}

.tok-control {
    color: var(--mock-control);
}

.tok-function {
    color: var(--mock-function);
}

.tok-type {
    color: var(--mock-type);
}

.tok-constant {
    color: var(--mock-constant);
}

#minimap {
    position: sticky;
    right: 0;
    flex: 0 0 86px;
    padding: 4px 6px;
    background: var(--vscode-editor-background);
    user-select: none;
}

.minimap-line {
    position: relative;
    display: block;
    height: 2px;
    margin-bottom: 1px;
}

.minimap-line i {
    position: absolute;
    top: 0;
    height: 2px;
    background: #6a737d;
}

.minimap-line .mm-comment {
    background: #4b5632;
}

.minimap-line .mm-string {
    background: #7a5c45;
}

.minimap-line .mm-kw {
    background: #3d5a73;
}

.minimap-line .mm-cur {
    background: #e5c07b;
}

/* ------------------------------------------------------------- debug toolbar */

#debug-toolbar {
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    padding: 0 4px 0 2px;
    border: 1px solid var(--vscode-debugToolBar-border, var(--vscode-widget-border));
    border-radius: var(--vscode-cornerRadius-large, 8px);
    background: var(--vscode-debugToolBar-background);
    box-shadow: var(--vscode-shadow-lg, 0 0 12px rgba(0, 0, 0, 0.14));
}

#debug-toolbar.hidden {
    display: none;
}

#debug-toolbar button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
}

#debug-toolbar button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

#debug-toolbar .debug-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 26px;
    color: var(--vscode-descriptionForeground);
    opacity: 0.5;
    cursor: grab;
    touch-action: none;
}

#debug-toolbar .debug-label {
    display: none;
    max-width: 260px;
    margin-left: 6px;
    overflow: hidden;
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------------- panel */

#panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: var(--panel-height, 190px);
    flex: 0 0 auto;
    border: 1px solid var(--vscode-modernPanel-border, var(--vscode-surface-border));
    border-radius: var(--vscode-cornerRadius-large, 8px);
    background: var(--vscode-panel-background);
    overflow: hidden;
}

#panel.collapsed {
    display: none;
}

#panel-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 35px;
    flex: 0 0 35px;
    padding: 3px 6px 0 0;
    background: var(--vscode-editorGroupHeader-connectedTabsBackground, var(--vscode-editorGroupHeader-tabsBackground));
    box-shadow: inset 0 -1px var(--vscode-surface-border);
}

.panel-tabs {
    display: flex;
    align-items: stretch;
    height: 32px;
    padding: 0 8px 0 4px;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.panel-tabs button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px 1px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: var(--vscode-cornerRadius-medium, 6px) var(--vscode-cornerRadius-medium, 6px) 0 0;
    color: var(--vscode-panelTitle-inactiveForeground);
    font-size: var(--vscode-fontSize-label1, 12px);
    font-weight: var(--vscode-fontWeight-regular, 400);
    text-transform: none;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 0;
}

.panel-tabs button[hidden] {
    display: none;
}

.panel-tabs button:not(.active):not([hidden]) + button:not(.active):not([hidden])::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    background: var(--vscode-tab-divider);
    transform: translateY(-50%);
    pointer-events: none;
}

.panel-tabs button:not(.active):hover::before,
.panel-tabs button:not(.active):hover + button:not(.active)::before {
    opacity: 0;
}

.panel-tabs button:not(.active):hover {
    color: var(--vscode-panelTitle-activeForeground);
    background: color-mix(
        in srgb,
        var(--vscode-foreground) 6%,
        var(--vscode-editorGroupHeader-connectedTabsBackground, var(--vscode-editorGroupHeader-tabsBackground))
    );
    box-shadow: inset 0 -1px var(--vscode-surface-border);
}

.panel-tabs button.active {
    z-index: 2;
    padding-bottom: 0;
    color: var(--vscode-panelTitle-activeForeground);
    background: var(--vscode-panel-background);
    border-color: var(--vscode-surface-border);
}

.panel-tabs button.active::before,
.panel-tabs button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--vscode-surface-border);
    clip-path: inset(0);
    pointer-events: none;
}

.panel-tabs button.active::before {
    right: 100%;
    border-right: 1px solid var(--vscode-surface-border);
    border-bottom-right-radius: 7px;
    box-shadow: 3.5px 3.5px 0 3.5px var(--vscode-panel-background);
}

.panel-tabs button.active::after {
    left: 100%;
    border-left: 1px solid var(--vscode-surface-border);
    border-bottom-left-radius: 7px;
    box-shadow: -3.5px 3.5px 0 3.5px var(--vscode-panel-background);
}

.panel-tabs .count-badge {
    margin-left: 2px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-bottom: 3px;
}

.panel-actions button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 14px;
    color: var(--vscode-icon-foreground, var(--vscode-foreground));
}

.panel-actions button:hover {
    background: var(--vscode-toolbar-hoverBackground);
}

#panel-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--vscode-panel-background);
}

.panel-pane {
    position: absolute;
    inset: 0;
    display: none;
    overflow: auto;
}

.panel-pane.active {
    display: block;
}

.panel-pane-header {
    padding: 4px 12px;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
}

.panel-pane-header select {
    height: 22px;
    border: 1px solid var(--vscode-dropdown-border);
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-dropdown-background);
    color: var(--vscode-dropdown-foreground);
    font: inherit;
    font-size: 11px;
}

.problem-row {
    display: flex;
    gap: 8px;
    margin: 0 4px;
    padding: 3px 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 12px;
    cursor: pointer;
}

.problem-row:hover {
    background: var(--vscode-list-hoverBackground);
}

.problem-row .severity {
    width: 14px;
    text-align: center;
}

.problem-row .severity.warning {
    color: var(--vscode-editorWarning-foreground);
}

.problem-row .severity.error {
    color: var(--vscode-editorError-foreground);
}

.problem-row .location {
    color: var(--vscode-descriptionForeground);
}

.problem-row .source {
    margin-left: auto;
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
}

.terminal-body {
    margin: 0;
    padding: 6px 12px 16px;
    color: var(--vscode-terminal-foreground);
    font-family: var(--vscode-editor-font-family);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.terminal-session-layout {
    display: flex;
    height: 100%;
}

#terminalSessionOutput {
    flex: 1;
    min-width: 0;
    overflow: auto;
}

.terminal-session-list {
    width: clamp(112px, 17%, 170px);
    padding: 4px;
    border-left: 1px solid var(--vscode-panel-border);
    background: var(--vscode-panel-background);
}

.terminal-session-list button {
    display: flex;
    width: 100%;
    gap: 4px;
    align-items: center;
    text-align: left;
    padding: 4px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 11px;
}

.terminal-session-list button:hover {
    background: var(--vscode-list-hoverBackground);
}

.terminal-session-list button[aria-pressed="true"] {
    background: var(--vscode-list-inactiveSelectionBackground);
}

#terminalPrompt[hidden] {
    display: none;
}

:root[data-mock-theme="light"] #debugConsoleBody {
    color: #9a6700;
}

.terminal-body .dim {
    color: #8a8a8a;
}

.terminal-body .info {
    color: var(--vscode-terminal-ansiCyan);
}

.terminal-body .warn {
    color: var(--vscode-terminal-ansiYellow);
}

.terminal-body .ok {
    color: var(--vscode-terminal-ansiGreen);
}

.terminal-body .err {
    color: var(--vscode-terminal-ansiRed);
}

.terminal-body .title {
    color: var(--vscode-terminal-ansiBlue);
    font-weight: 600;
}

.terminal-body .prompt {
    color: var(--vscode-terminal-ansiGreen);
}

.terminal-body .dim-line {
    color: #8a8a8a;
}

.terminal-input-line {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
    font-family: var(--vscode-editor-font-family);
    font-size: 12px;
}

.terminal-input-line .prompt {
    color: var(--vscode-terminal-ansiGreen);
}

.terminal-input-line .cmd {
    color: var(--vscode-terminal-foreground);
}

.terminal-cursor {
    width: 7px;
    height: 14px;
    background: var(--vscode-terminal-foreground);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* -------------------------------------------------------- auxiliary sidebar */

#auxiliarybar {
    width: 260px;
    flex: 0 0 auto;
    margin: 0 4px 4px 0;
    border: 1px solid var(--vscode-surface-border);
    border-radius: var(--vscode-cornerRadius-large, 8px);
    background: var(--vscode-sideBar-background);
    color: var(--vscode-sideBar-foreground);
    overflow: hidden;
}

#auxiliarybar[hidden] {
    display: none;
}

.auxiliary-empty {
    padding: 12px;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
}

/* --------------------------------------------------------------- status bar */

#statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    flex: 0 0 22px;
    padding: 0 4px;
    background: var(--vscode-statusBar-background);
    color: var(--vscode-statusBar-foreground);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    user-select: none;
    transition: background-color 0.15s ease-out;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    color: inherit;
    font-size: 12px;
}

.status-item:hover {
    background: var(--vscode-statusBarItem-hoverBackground);
    color: var(--vscode-statusBarItem-hoverForeground, inherit);
}

.status-item.hidden {
    display: none;
}

body:not(.file-editor) #cursorStatus {
    display: none;
}

.status-item.remote {
    background: var(--vscode-statusBarItem-remoteBackground);
    color: var(--vscode-statusBarItem-remoteForeground);
}

body.debugging .status-item.remote {
    background: transparent;
    color: inherit;
}

/* ---------------------------------------------------------- command palette */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
}

.overlay.hidden {
    display: none;
}

.palette {
    width: 600px;
    max-width: calc(100vw - 40px);
    margin-top: 6px;
    padding-bottom: 6px;
    border: 1px solid var(--vscode-widget-border);
    border-radius: var(--vscode-cornerRadius-large, 8px);
    background: color-mix(in srgb, var(--vscode-quickInput-background) 92%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: var(--vscode-shadow-xl, 0 0 20px rgba(0, 0, 0, 0.25));
    overflow: hidden;
}

.palette-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    margin: 6px 6px 4px;
    padding: 0 8px;
    border: 1px solid var(--vscode-focusBorder);
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-input-background);
}

.palette-prefix {
    color: var(--vscode-descriptionForeground);
    font-size: 13px;
}

#paletteInput {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--vscode-quickInput-foreground);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.palette-list {
    max-height: 380px;
    overflow: auto;
    padding: 0 6px;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    font-size: 13px;
    cursor: pointer;
}

.palette-item:hover:not(.selected) {
    background: var(--vscode-list-hoverBackground);
}

.palette-item .p-category {
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
}

.palette-item .p-key {
    margin-left: auto;
    color: var(--vscode-descriptionForeground);
    font-size: 11px;
}

.palette-item.selected {
    background: var(--vscode-quickInputList-focusBackground);
    color: var(--vscode-quickInputList-focusForeground);
}

.palette-item.selected .p-category,
.palette-item.selected .p-key {
    color: inherit;
}

.quick-input-title {
    padding: 6px 12px 0;
    color: var(--vscode-quickInputTitle-foreground, var(--vscode-foreground));
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.quick-input .palette-input-wrap {
    margin: 6px 6px 4px;
    height: 26px;
    padding: 0 0 0 6px;
    border: 1px solid var(--vscode-input-border, var(--vscode-widget-border));
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-input-background);
}

.quick-input .palette-input-wrap:focus-within {
    border-color: var(--vscode-focusBorder);
}

#quickInputText {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--vscode-input-foreground);
    font: inherit;
    font-size: 13px;
    outline: none;
}

.quick-input-ok {
    height: 100%;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid var(--vscode-widget-border);
    border-radius: 0 3px 3px 0;
    background: var(--vscode-button-background);
    color: var(--vscode-button-foreground);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.quick-input-ok:hover {
    background: var(--vscode-button-hoverBackground);
}

.quick-input-message {
    margin: -2px 6px 6px;
    padding: 4px 8px;
    border: 1px solid var(--vscode-inputValidation-errorBorder);
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-inputValidation-errorBackground);
    color: var(--vscode-foreground);
    font-size: 12px;
}

.quick-item input {
    margin: 0;
    accent-color: var(--vscode-focusBorder);
    pointer-events: none;
}

.palette-empty {
    padding: 10px 12px;
    color: var(--vscode-descriptionForeground);
    font-size: 12px;
}

/* ----------------------------------------------------------- menus + toasts */

#layout-menu {
    position: fixed;
    top: 35px;
    right: 8px;
    z-index: 90;
    width: 220px;
    padding: 4px;
    border: 1px solid var(--vscode-menu-border, var(--vscode-widget-border));
    border-radius: var(--vscode-cornerRadius-large, 8px);
    color: var(--vscode-menu-foreground);
    background: color-mix(in srgb, var(--vscode-menu-background, var(--vscode-editor-background)) 92%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: var(--vscode-shadow-lg, 0 0 12px rgba(0, 0, 0, 0.14));
}

#layout-menu[hidden] {
    display: none;
}

#layout-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    text-align: left;
}

#layout-menu button:hover,
#layout-menu button:focus-visible {
    outline: none;
    color: var(--vscode-menu-selectionForeground);
    background: var(--vscode-menu-selectionBackground);
}

#layout-menu [aria-checked="false"] .codicon-check {
    visibility: hidden;
}

#theme-menu {
    position: fixed;
    z-index: 100;
    left: 52px;
    bottom: 32px;
    min-width: 260px;
    padding: 4px;
    border: 1px solid var(--vscode-menu-border);
    border-radius: var(--vscode-cornerRadius-large, 8px);
    color: var(--vscode-menu-foreground);
    background: color-mix(in srgb, var(--vscode-menu-background) 92%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: var(--vscode-shadow-lg, 0 0 12px rgba(0, 0, 0, 0.14));
}

#theme-menu[hidden] {
    display: none;
}

.theme-menu-title {
    padding: 4px 28px 6px;
    font-size: 12px;
    color: var(--vscode-descriptionForeground);
}

#theme-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 8px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    text-align: left;
}

#theme-menu button:hover,
#theme-menu button:focus {
    color: var(--vscode-menu-selectionForeground);
    background: var(--vscode-menu-selectionBackground);
}

#theme-menu button[aria-checked="false"] .codicon {
    visibility: hidden;
}

#toasts {
    position: fixed;
    right: 8px;
    bottom: 32px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 420px;
    max-width: calc(100vw - 28px);
}

.toast {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--vscode-notifications-border);
    border-radius: var(--vscode-cornerRadius-large, 8px);
    background: color-mix(in srgb, var(--vscode-notifications-background) 92%, transparent);
    backdrop-filter: blur(12px);
    color: var(--vscode-notifications-foreground);
    box-shadow: var(--vscode-shadow-lg, 0 0 12px rgba(0, 0, 0, 0.14));
    font-size: 12px;
    animation: toast-in 0.18s ease-out;
}

.toast .toast-icon {
    color: var(--vscode-testing-iconPassed);
}

.toast.error .toast-icon {
    color: var(--vscode-errorForeground);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ---------------------------------------------------------------- markdown */

.codicon {
    flex-shrink: 0;
}

button:focus-visible,
[role="menuitemradio"]:focus-visible {
    outline: 1px solid var(--vscode-focusBorder);
    outline-offset: -1px;
}

#debug-toolbar button:disabled {
    opacity: 0.4;
    cursor: default;
}

#dbgContinue {
    color: var(--vscode-debugIcon-continueForeground);
}

#dbgStepOver {
    color: var(--vscode-debugIcon-stepOverForeground);
}

#dbgStepInto {
    color: var(--vscode-debugIcon-stepIntoForeground);
}

#dbgStepOut {
    color: var(--vscode-debugIcon-stepOutForeground);
}

#dbgRestart {
    color: var(--vscode-debugIcon-restartForeground);
}

#dbgStop {
    color: var(--vscode-debugIcon-stopForeground);
}

body.debugging #statusbar {
    background: var(--vscode-statusBar-debuggingBackground);
    color: var(--vscode-statusBar-debuggingForeground);
}

:root[data-mock-theme="light"] .minimap-line i {
    background: #aaa;
}

:root[data-mock-theme="light"] .minimap-line .mm-comment {
    background: #6f9c6c;
}

:root[data-mock-theme="light"] .minimap-line .mm-string {
    background: #be8c8c;
}

:root[data-mock-theme="light"] .minimap-line .mm-kw {
    background: #7f89c1;
}

.markdown-body {
    padding: 20px 48px;
    max-width: 900px;
    overflow: auto;
    line-height: 1.65;
}

.markdown-body h1 {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--vscode-panel-border);
    font-size: 24px;
}

.markdown-body h2 {
    font-size: 18px;
}

.markdown-body code {
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--vscode-textCodeBlock-background);
    font-family: var(--vscode-editor-font-family);
    font-size: 12px;
}

.markdown-body pre {
    padding: 10px 12px;
    border-radius: var(--vscode-cornerRadius-small, 4px);
    background: var(--vscode-textCodeBlock-background);
    overflow: auto;
}

.markdown-body blockquote {
    margin: 0;
    padding: 4px 12px;
    border-left: 3px solid var(--vscode-focusBorder);
    background: rgba(0, 120, 212, 0.08);
}

@media (max-width: 960px) {
    .menubar {
        display: none;
    }
}

@media (max-width: 680px) {
    .window-controls {
        display: none;
    }
    #auxiliarybar {
        width: 180px;
    }
}
