Files
Netcatty/index.css
T
陈大猫 06a42f623e fix(tabs): stop overflowed top tabs from stealing titlebar drag regions (#4221)
* fix(tabs): stop overflowed top tabs from stealing titlebar drag regions

Keep the native no-drag exclusion on the stationary scroll viewport, neutralize scrolled descendant regions, and move the 20 px drag handle outside the viewport. Add a source-level regression for the region policy.

Related #4220. Addresses bug 2 only; the split-pane blanking bug remains unresolved.

* fix(tabs): keep unused tab-strip space draggable when tabs do not overflow

* test(tabs): read source fixtures locally in TopTabs drag-region test
2026-11-23 16:50:47 +08:00

1002 lines
28 KiB
CSS

@import "tailwindcss";
@import "./components/settings/tabs/plugin-marketplace.css";
/* Bundled icon-only fallback so terminals show Nerd Font glyphs (powerline,
devicons, etc.) regardless of which base font the user picks. The font is
referenced near the end of the fontFamily fallback chain composed by
composeFontFamilyStack() in infrastructure/config/cjkFonts.ts — base text
comes from the user's chosen font, missing PUA glyphs fall through to
this face.
Source: https://github.com/ryanoasis/nerd-fonts (NerdFontsSymbolsOnly,
v3.4.0). License: MIT — see public/fonts/SymbolsNerdFont-LICENSE.txt. */
@font-face {
font-family: "Symbols Nerd Font Mono";
/* Absolute path resolves against the document origin in both dev
(http://localhost:5173) and packaged (app://netcatty), regardless of
where the bundled CSS file ends up. A relative ./fonts/... would be
resolved against dist/assets/index-*.css in production and 404. */
src: url("/fonts/SymbolsNerdFontMono-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
font-display: block;
}
/* Bundled true-monospace CJK fallback. macOS ships only proportional CJK
fonts (PingFang, Hiragino) whose glyphs aren't designed to fit a
terminal's 2x cell grid — see #931. Sarasa Mono SC (Iosevka + Source
Han Sans, OFL-1.1) is a 2:1 metrically-correct CJK monospace and
becomes the per-OS default + per-Latin-font recommended pairing in
cjkFonts.ts. Subsetted woff2 (~4.8 MB) covers ASCII, CJK Unified
Ideographs (main block), Hiragana/Katakana, common punctuation and
symbols; rarer Ext-A/B characters fall through to the system fallback
stack.
Source: https://github.com/be5invis/Sarasa-Gothic (v1.0.37, OFL-1.1).
License: see public/fonts/SarasaMono-LICENSE.txt. */
@font-face {
font-family: "Sarasa Mono SC";
src: url("/fonts/SarasaMonoSC-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}
/* Bundled flag-emoji subset of Noto Color Emoji (COLR, ~820 KB). Windows
system fonts omit flag glyphs and show ISO country codes (HK, US, …)
instead of 🇭🇰 🇺🇸 — see #1604. unicode-range limits this face to
regional-indicator codepoints so spaces and Latin text stay on the UI
sans stack.
Source: subset of https://github.com/googlefonts/noto-emoji (flagsonly).
License: OFL-1.1 — see public/fonts/NotoColorEmojiFlags-LICENSE.txt. */
@font-face {
font-family: "Noto Color Emoji Flags";
src: url("/fonts/noto-color-emoji-flags.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
unicode-range: U+1F1E6-1F1FF;
}
/* ============================================
Tailwind CSS v4 Theme Configuration
============================================ */
@theme {
/* Default border color - ensures 'border' class uses theme color instead of currentColor */
--default-border-color: var(--color-border);
/* Colors - mapped from CSS variables */
--color-border: hsl(var(--border));
--color-input: hsl(var(--input));
--color-ring: hsl(var(--ring));
--color-background: hsl(var(--background));
--color-foreground: hsl(var(--foreground));
--color-primary: hsl(var(--primary));
--color-primary-foreground: hsl(var(--primary-foreground));
--color-secondary: hsl(var(--secondary));
--color-secondary-foreground: hsl(var(--secondary-foreground));
--color-destructive: hsl(var(--destructive));
--color-destructive-foreground: hsl(var(--destructive-foreground));
--color-muted: hsl(var(--muted));
--color-muted-foreground: hsl(var(--muted-foreground));
--color-accent: hsl(var(--accent));
--color-accent-foreground: hsl(var(--accent-foreground));
--color-popover: hsl(var(--popover));
--color-popover-foreground: hsl(var(--popover-foreground));
--color-card: hsl(var(--card));
--color-card-foreground: hsl(var(--card-foreground));
/* Border Radius */
--radius-lg: var(--radius);
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);
/* Fonts */
--font-sans: "Mona Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
--font-mono: "JetBrains Mono", monospace;
/* Animations */
--animate-fade-in: fade-in 0.2s ease-out;
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
}
/* Windows: bundled flag font ahead of Mona Sans so host
labels render flag icons instead of ISO country codes (#1589, #1604). */
html.platform-win32 {
--font-sans: "Noto Color Emoji Flags", "Mona Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
@keyframes top-tab-enter {
from {
opacity: 0;
transform: translateX(-12px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.top-tab-enter {
animation: top-tab-enter 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes netcatty-lazy-fade-in {
from {
opacity: 0;
transform: translateY(2px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.netcatty-lazy-fade-in {
animation: netcatty-lazy-fade-in 160ms ease-out both;
}
.settings-window button:not(:disabled),
.settings-window [role="button"]:not([aria-disabled="true"]),
.settings-window [role="switch"]:not([aria-disabled="true"]),
.settings-window [data-slot="tabs-trigger"]:not([data-disabled]),
.settings-window [data-slot="select-trigger"]:not([data-disabled]) {
cursor: pointer;
}
@keyframes settings-search-highlight {
0% {
background-color: hsl(var(--primary) / 0.22);
box-shadow: 0 0 0 1px hsl(var(--primary) / 0.35);
}
100% {
background-color: transparent;
box-shadow: 0 0 0 1px transparent;
}
}
.settings-search-highlight {
animation: settings-search-highlight 1.6s ease-out;
}
@media (prefers-reduced-motion: reduce) {
.settings-search-highlight {
animation: none;
background-color: hsl(var(--primary) / 0.14);
box-shadow: 0 0 0 1px hsl(var(--primary) / 0.28);
}
}
.top-tab-root-label {
display: inline-block;
overflow: hidden;
white-space: nowrap;
vertical-align: middle;
max-width: 4.5rem;
/* Avoid line-height:1 clipping CJK under overflow:hidden on h-7 tabs. */
line-height: 1.25rem;
opacity: 1;
transition:
max-width 220ms cubic-bezier(0.4, 0, 0.2, 1),
opacity 220ms ease,
margin 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.top-tab-root-label-compact {
max-width: 0;
opacity: 0;
margin-left: 0;
}
.top-tab-host-tree-toggle-slot {
display: flex;
flex-shrink: 0;
overflow: hidden;
transition:
width 220ms cubic-bezier(0.4, 0, 0.2, 1),
opacity 220ms ease;
width: 0;
opacity: 0;
}
.top-tab-host-tree-toggle-slot[data-visible='true'] {
width: 1.75rem;
opacity: 1;
}
.top-tab-host-tree-gutter {
pointer-events: none;
}
.top-tab-host-tree-gutter-exit {
transition: width 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.terminal-topbar {
container-type: inline-size;
}
.terminal-title-cluster {
min-width: 8rem;
}
@container (max-width: 760px) {
.terminal-server-stats {
display: none;
}
}
@container (max-width: 420px) {
.terminal-title-cluster {
min-width: 0;
}
}
/*
* System Manager sub-tab bar.
* Icon-only is toggled by JS when labeled tabs actually overflow the bar
* (class --icon-only). Horizontal scroll remains for extreme narrow widths.
*/
.system-manager-tab-bar {
min-width: 0;
width: 100%;
overflow-x: auto;
overflow-y: hidden;
overscroll-behavior-x: contain;
scrollbar-width: none;
-ms-overflow-style: none;
}
.system-manager-tab-bar::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
.system-manager-tab {
flex-shrink: 0;
white-space: nowrap;
}
.system-manager-tab-bar--icon-only .system-manager-tab-label {
display: none;
}
.system-manager-tab-bar--icon-only .system-manager-tab {
gap: 0;
padding-left: 0.375rem;
padding-right: 0.375rem;
}
.host-tree-notes-scroll {
scrollbar-width: thin;
scrollbar-color: hsl(var(--muted-foreground) / 0.28) transparent;
}
.host-tree-notes-scroll::-webkit-scrollbar {
width: 8px;
}
.host-tree-notes-scroll::-webkit-scrollbar-track {
background: transparent;
}
.host-tree-notes-scroll::-webkit-scrollbar-thumb {
min-height: 28px;
border: 2px solid transparent;
border-radius: 999px;
background-color: hsl(var(--muted-foreground) / 0.18);
background-clip: content-box;
}
.host-tree-notes-scroll:hover::-webkit-scrollbar-thumb {
background-color: hsl(var(--muted-foreground) / 0.36);
}
.vault-drop-indicator-row {
position: relative;
}
[data-vault-reorder-grid="true"] {
will-change: transform;
transition-property: opacity, box-shadow, border-color, background-color;
transition-duration: 150ms;
}
[data-vault-reorder-dragging="true"] {
opacity: 0.45;
}
.vault-drop-indicator-row::before,
.vault-drop-indicator-row::after {
content: "";
position: absolute;
left: var(--vault-drop-indicator-left, 0.5rem);
right: var(--vault-drop-indicator-right, 0.5rem);
z-index: 30;
height: 2px;
border-radius: 999px;
background: hsl(var(--primary));
box-shadow: 0 0 0 1px hsl(var(--background)), 0 0 12px hsl(var(--primary) / 0.36);
opacity: 0;
pointer-events: none;
transform: scaleX(0.96);
transition: opacity 90ms ease, transform 140ms cubic-bezier(0.2, 0, 0, 1);
}
.vault-drop-indicator-row::before {
top: -1px;
}
.vault-drop-indicator-row::after {
bottom: -1px;
}
.vault-drop-indicator-row[data-vault-drop-axis="x"]::before,
.vault-drop-indicator-row[data-vault-drop-axis="x"]::after {
top: var(--vault-drop-indicator-top, 0.5rem);
bottom: var(--vault-drop-indicator-bottom, 0.5rem);
left: auto;
right: auto;
width: 2px;
height: auto;
transform: scaleY(0.96);
}
.vault-drop-indicator-row[data-vault-drop-axis="x"]::before {
left: -1px;
}
.vault-drop-indicator-row[data-vault-drop-axis="x"]::after {
right: -1px;
}
.vault-drop-indicator-row[data-vault-drop-position="before"]::before,
.vault-drop-indicator-row[data-vault-drop-position="after"]::after {
opacity: 1;
transform: scaleX(1);
}
.vault-drop-indicator-row[data-vault-drop-axis="x"][data-vault-drop-position="before"]::before,
.vault-drop-indicator-row[data-vault-drop-axis="x"][data-vault-drop-position="after"]::after {
transform: scaleY(1);
}
.vault-drop-indicator-row[data-vault-drop-position="inside"] {
outline: 1px solid hsl(var(--primary) / 0.55);
outline-offset: -1px;
background-color: hsl(var(--primary) / 0.08);
}
@keyframes ripple {
0% {
transform: scale(0);
opacity: 0.35;
}
100% {
transform: scale(1);
opacity: 0;
}
}
@keyframes split-panel-enter {
0% {
width: 0;
min-width: 0;
opacity: 0;
}
55% {
opacity: 0.88;
}
100% {
width: var(--aside-inline-width);
min-width: var(--aside-inline-width);
opacity: 1;
}
}
.split-panel-enter {
animation: split-panel-enter 220ms cubic-bezier(0.24, 0.84, 0.32, 1) both;
will-change: width, opacity;
}
/* Security-key prompts use the same tokens as the shared dialog. Motion stays
local to this flow and preserves the dialog's centered transform. */
@keyframes fido-dialog-enter {
from { opacity: 0; transform: translateY(8px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fido-dialog-exit {
from { opacity: 1; transform: translateY(0) scale(1); }
to { opacity: 0; transform: translateY(4px) scale(0.98); }
}
@keyframes fido-field-enter {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fido-ring-expand {
0% { opacity: 0; transform: scale(0.65); }
25% { opacity: 0.65; }
100% { opacity: 0; transform: scale(1.15); }
}
@keyframes fido-breathe {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
.fido-prompt-dialog[data-state="open"] {
animation: fido-dialog-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fido-prompt-dialog[data-state="closed"] {
animation: fido-dialog-exit 140ms ease-in both;
}
.fido-prompt-overlay[data-state="open"] {
animation: fade-in 180ms ease-out both;
}
.fido-prompt-overlay[data-state="closed"] {
animation: fade-in 140ms ease-in reverse both;
}
.fido-prompt-stage, .fido-field-stage {
animation: fido-field-enter 180ms ease-out both;
}
.fido-touch-ring {
animation: fido-ring-expand 2.4s ease-out infinite;
}
.fido-touch-ring-delayed { animation-delay: 1.2s; }
.fido-status-dot { animation: fido-breathe 2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
.fido-prompt-dialog, .fido-prompt-overlay, .fido-prompt-stage,
.fido-field-stage, .fido-touch-ring, .fido-status-dot,
.fido-prompt-dialog .animate-spin,
.fido-key-options [role="switch"], .fido-key-options [role="switch"] span {
animation: none !important;
transition: none !important;
}
.fido-touch-ring { display: none; }
}
:root {
color-scheme: light;
}
/* Global default border color - ensures 'border' class always uses theme color */
*,
*::before,
*::after {
border-color: hsl(var(--border));
}
body {
min-height: 100vh;
font-family: var(--font-sans);
background-color: hsl(var(--background));
color: hsl(var(--foreground));
}
/* Tray overlay window: opaque body would show as square tips outside CSS radius (#2505). */
html.tray-window,
html.tray-window body,
html.tray-window #root {
background: transparent !important;
background-color: transparent !important;
}
html.tray-window .splash-screen {
display: none !important;
background: transparent !important;
}
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 220ms;
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-theme-transition],
html[data-theme-transition] *,
html[data-theme-transition] *::before,
html[data-theme-transition] *::after {
transition-property: background-color, color, border-color, outline-color, fill, stroke, text-decoration-color;
transition-duration: 220ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
[data-inactive-app-surface],
[data-inactive-app-surface] *,
[data-inactive-app-surface] *::before,
[data-inactive-app-surface] *::after {
transition: none !important;
}
[data-app-surface-transition-suppressed],
[data-app-surface-transition-suppressed] *,
[data-app-surface-transition-suppressed] *::before,
[data-app-surface-transition-suppressed] *::after {
transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
.netcatty-lazy-fade-in {
animation: none;
}
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 0.01ms;
}
html[data-theme-transition],
html[data-theme-transition] *,
html[data-theme-transition] *::before,
html[data-theme-transition] *::after {
transition-duration: 0.01ms;
}
}
.dark {
color-scheme: dark;
}
.dark body {
background-color: hsl(var(--background));
color: hsl(var(--foreground));
}
.netcatty-shell {
position: relative;
background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--background)) 60%, hsl(var(--background) / 0.9) 100%);
}
/* Slim down xterm 6.0 VS Code scrollbar — wide hit area, thin visual slider */
.xterm .xterm-scrollable-element > .scrollbar.vertical {
width: 12px !important;
}
.xterm .xterm-scrollable-element > .scrollbar.vertical > .slider {
width: 6px !important;
border-radius: 3px;
left: 3px !important;
}
/* Keep focused IME helper text from making the terminal content drift sideways. */
.xterm,
.xterm .xterm-screen,
.xterm .xterm-viewport,
.xterm .xterm-scrollable-element {
overflow-x: hidden !important;
}
@supports (overflow: clip) {
.xterm,
.xterm .xterm-screen,
.xterm .xterm-viewport,
.xterm .xterm-scrollable-element {
overflow-x: clip !important;
}
}
.xterm-container[data-font-smoothing="true"],
.xterm-container[data-font-smoothing="true"] .xterm,
.xterm-container[data-font-smoothing="true"] .xterm-screen,
.xterm-container[data-font-smoothing="true"] .xterm-rows {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.thinking-shimmer {
background: linear-gradient(
90deg,
currentColor 0%,
currentColor 40%,
rgba(255, 255, 255, 0.6) 50%,
currentColor 60%,
currentColor 100%
);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: thinking-shimmer 1.5s ease-in-out infinite;
}
@keyframes thinking-shimmer {
0% {
background-position: 100% center;
}
100% {
background-position: -100% center;
}
}
@keyframes progress-shimmer {
0% {
transform: translateX(-200%);
}
100% {
transform: translateX(200%);
}
}
.soft-card {
background: hsl(var(--card));
border: 1px solid hsl(var(--border) / 0.8);
box-shadow: 0 4px 12px hsl(var(--foreground) / 0.06);
}
@keyframes session-activity-breathe {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.1);
opacity: 0.18;
}
}
.session-activity-dot {
animation: session-activity-breathe 1.4s ease-in-out infinite;
}
@keyframes coding-cli-icon-pulse {
0%, 100% {
opacity: 0.72;
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(1.08);
}
}
.coding-cli-icon-busy {
animation: coding-cli-icon-pulse 1.1s ease-in-out infinite;
}
.coding-cli-icon-waiting {
animation: coding-cli-icon-pulse 1.6s ease-in-out infinite;
}
.elevate {
transition: transform 140ms ease, border-color 140ms ease;
}
.elevate:hover {
transform: translateY(-2px);
}
::selection {
background: hsl(var(--primary) / 0.22);
color: hsl(var(--foreground));
}
/* Custom titlebar drag regions for Electron */
.app-drag {
-webkit-app-region: drag;
app-region: drag;
user-select: none;
-webkit-user-select: none;
}
.app-no-drag {
-webkit-app-region: no-drag;
app-region: no-drag;
user-select: auto;
-webkit-user-select: auto;
}
.app-no-drag * {
-webkit-app-region: no-drag;
app-region: no-drag;
user-select: auto;
-webkit-user-select: auto;
}
/* Scrolled boxes export native regions beyond their scroll clip. Only the
stationary viewport contributes an exclusion via its inline no-drag style. */
.top-tab-scroll-viewport,
.top-tab-scroll-viewport * {
-webkit-app-region: none;
app-region: none;
}
/* Selected top-tab hooks. Fill and text stay on the tab's inline style so the
unset custom properties fall through to the existing chrome colors. The
border is a 1px inset outline and stays invisible until
--top-tab-active-border is set (Settings → Appearance → Custom CSS). */
[data-section="top-tabs"] .top-tab[data-active="true"] {
outline: 1px solid var(--top-tab-active-border, transparent);
outline-offset: -1px;
}
/* Window controls: icons sit in the h-7 tab row; hover fills the full h-9 title bar */
[data-section="top-tabs"] .window-control-btn {
position: relative;
z-index: 0;
display: flex;
height: 1.75rem;
width: 2.5rem;
align-items: center;
justify-content: center;
border-radius: 0;
color: var(--top-tabs-muted, hsl(var(--muted-foreground)));
transition: color 150ms ease;
}
[data-section="top-tabs"] .window-control-btn::before {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: calc(1.75rem - 2.25rem);
z-index: -1;
background: transparent;
transition: background-color 150ms ease;
}
[data-section="top-tabs"] .window-control-btn:hover::before {
background: hsl(var(--foreground) / 0.1);
}
[data-section="top-tabs"] .window-control-btn--close:hover {
color: white;
}
[data-section="top-tabs"] .window-control-btn--close:hover::before {
background: rgb(239 68 68);
}
[data-section="top-tabs"] .top-tab-utility-btn:hover,
[data-section="top-tabs"] .top-tab-utility-btn[data-state="open"] {
background-color: hsl(var(--foreground) / 0.1);
color: var(--top-tabs-muted, hsl(var(--muted-foreground)));
}
.workspace-pane {
outline: none;
overflow: visible;
}
/* Focus-mode terminal list sidebar (split view uses terminal-split-pane). */
[data-section="terminal-workspace-sidebar"] {
border-right: var(--terminal-workspace-sidebar-border, none);
}
/* Dim terminal text in unfocused workspace panes (default) */
.workspace-pane:not(:focus-within) .xterm-screen {
opacity: 0.82;
}
/* Keep current pane fully visible while its context menu / popover is open;
focus moves to the menu portal and would otherwise drop :focus-within. */
.workspace-pane[data-menu-open] .xterm-screen {
opacity: 1;
}
/* Border-style focus indicator (opt-in via data attribute) */
[data-workspace-focus="border"] .workspace-pane:not(:focus-within) .xterm-screen {
opacity: 1;
}
[data-workspace-focus="border"] .workspace-pane::after {
content: "";
position: absolute;
inset: 0;
border: 2px solid transparent;
pointer-events: none;
transition: border-color 120ms ease;
z-index: 40;
}
[data-workspace-focus="border"] .workspace-pane:focus-within::after {
border-color: hsl(var(--primary));
}
/* ── Streamdown code block overrides ── */
[data-streamdown="code-block"] {
position: relative !important;
border-radius: 10px !important;
background: hsl(var(--muted) / 0.5) !important;
overflow: hidden !important;
margin: 6px 0 !important;
padding: 0 !important;
border: none !important;
gap: 0 !important;
}
[data-streamdown="code-block-header"] {
height: auto !important;
padding: 4px 12px 0 !important;
font-size: 11px !important;
}
[data-streamdown="code-block-header"] span {
margin-left: 0 !important;
}
[data-streamdown="code-block"] > div:has(> [data-streamdown="code-block-actions"]) {
position: absolute !important;
top: 4px !important;
right: 4px !important;
z-index: 10 !important;
display: flex !important;
width: auto !important;
height: auto !important;
margin: 0 !important;
pointer-events: none !important;
}
[data-streamdown="code-block-actions"] {
position: static !important;
border: none !important;
background: none !important;
backdrop-filter: none !important;
padding: 0 !important;
gap: 2px !important;
opacity: 0;
transition: opacity 0.15s;
}
[data-streamdown="code-block"]:hover [data-streamdown="code-block-actions"] {
opacity: 1;
}
[data-streamdown="code-block-actions"] button {
padding: 4px !important;
border-radius: 4px;
}
[data-streamdown="code-block-body"] {
border: none !important;
border-radius: 0 !important;
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
overflow-x: auto !important;
overflow-y: hidden !important;
overscroll-behavior-x: contain;
-webkit-overflow-scrolling: touch;
font-size: 0 !important; /* collapse whitespace text nodes */
}
[data-streamdown="code-block-body"] pre {
font-size: 12px !important; /* restore in pre */
}
[data-streamdown="code-block"] pre {
display: block !important;
margin: 0 !important;
background: transparent !important;
border: none !important;
border-radius: 0 !important;
padding: 6px 12px 10px !important;
width: max-content !important;
min-width: 100% !important;
font-size: 12px !important;
line-height: 1.5 !important;
white-space: pre !important;
}
/* Streamdown table overrides */
.ai-chat-message-content[data-role="assistant"] [data-streamdown="table-wrapper"] {
gap: 4px !important;
padding: 4px 8px 8px !important;
}
.ai-chat-message-content[data-role="assistant"] [data-streamdown="table-wrapper"] > div:first-child > button,
.ai-chat-message-content[data-role="assistant"] [data-streamdown="table-wrapper"] > div:first-child > div > button {
padding: 3px !important;
}
/* Terminal appearance runtime (--nc-term-* injected by useThemeRuntime) */
[data-terminal-appearance-root] {
--terminal-sidepanel-bg: var(--nc-term-panel-bg, var(--background));
--terminal-sidepanel-fg: var(--nc-term-panel-fg, var(--foreground));
--terminal-sidepanel-accent: var(--nc-term-cursor, var(--accent));
--terminal-sidepanel-muted: var(--nc-term-panel-muted, var(--muted-foreground));
--terminal-sidepanel-border: var(--nc-term-panel-border, var(--border));
--terminal-panel-bg: var(--nc-term-panel-bg, var(--background));
--terminal-panel-fg: var(--nc-term-panel-fg, var(--foreground));
--terminal-panel-muted: var(--nc-term-panel-muted, var(--muted-foreground));
--terminal-panel-border: var(--nc-term-panel-border, var(--border));
--terminal-panel-hover: var(--nc-term-panel-hover, var(--accent));
--terminal-panel-active: var(--nc-term-panel-active, var(--accent));
--terminal-host-tree-bg: var(--nc-term-host-tree-bg, var(--background));
--terminal-host-tree-fg: var(--nc-term-host-tree-fg, var(--foreground));
--terminal-host-tree-muted: var(--nc-term-host-tree-muted, var(--muted-foreground));
--terminal-host-tree-separator: var(--nc-term-host-tree-separator, var(--border));
--terminal-host-tree-hover-bg: var(--nc-term-host-tree-hover-bg, transparent);
--terminal-host-tree-active-bg: var(--nc-term-host-tree-active-bg, transparent);
--terminal-host-tree-drop-bg: var(--nc-term-host-tree-drop-bg, transparent);
--terminal-host-tree-folder-fg: var(--nc-term-host-tree-folder-fg, var(--foreground));
}
/* Monitoring's single-row header follows the available pane width. */
@container monitor-main (max-width: 760px) {
.monitor-header-action-label { display: none; }
}
/* Host-owned security surfaces never inherit third-party theme colors. */
:root[data-plugin-theme-active] :is([role="dialog"], [role="alertdialog"], [data-app-lock-overlay], [data-host-security-surface], [data-section="host-details-panel"], [data-section="keychain-security-panel"], [data-testid="password-credential-picker"], [data-port-forward-host-key-tray-prompt]) {
--background: var(--host-security-background) !important;
--foreground: var(--host-security-foreground) !important;
--card: var(--host-security-card) !important;
--card-foreground: var(--host-security-card-foreground) !important;
--popover: var(--host-security-popover) !important;
--popover-foreground: var(--host-security-popover-foreground) !important;
--primary: var(--host-security-primary) !important;
--primary-foreground: var(--host-security-primary-foreground) !important;
--secondary: var(--host-security-secondary) !important;
--secondary-foreground: var(--host-security-secondary-foreground) !important;
--muted: var(--host-security-muted) !important;
--muted-foreground: var(--host-security-muted-foreground) !important;
--accent: var(--host-security-accent) !important;
--accent-foreground: var(--host-security-accent-foreground) !important;
--destructive: var(--host-security-destructive) !important;
--destructive-foreground: var(--host-security-destructive-foreground) !important;
--border: var(--host-security-border) !important;
--input: var(--host-security-input) !important;
--ring: var(--host-security-ring) !important;
/* Tailwind theme aliases resolve where declared; pin them in this scope too. */
--color-background: hsl(var(--host-security-background)) !important;
--color-foreground: hsl(var(--host-security-foreground)) !important;
--color-card: hsl(var(--host-security-card)) !important;
--color-card-foreground: hsl(var(--host-security-card-foreground)) !important;
--color-popover: hsl(var(--host-security-popover)) !important;
--color-popover-foreground: hsl(var(--host-security-popover-foreground)) !important;
--color-primary: hsl(var(--host-security-primary)) !important;
--color-primary-foreground: hsl(var(--host-security-primary-foreground)) !important;
--color-secondary: hsl(var(--host-security-secondary)) !important;
--color-secondary-foreground: hsl(var(--host-security-secondary-foreground)) !important;
--color-muted: hsl(var(--host-security-muted)) !important;
--color-muted-foreground: hsl(var(--host-security-muted-foreground)) !important;
--color-accent: hsl(var(--host-security-accent)) !important;
--color-accent-foreground: hsl(var(--host-security-accent-foreground)) !important;
--color-destructive: hsl(var(--host-security-destructive)) !important;
--color-destructive-foreground: hsl(var(--host-security-destructive-foreground)) !important;
--color-border: hsl(var(--host-security-border)) !important;
--color-input: hsl(var(--host-security-input)) !important;
--color-ring: hsl(var(--host-security-ring)) !important;
color: hsl(var(--foreground)) !important;
background-color: hsl(var(--background)) !important;
border-color: hsl(var(--border)) !important;
}
html.window-background-blur,
html.window-background-blur body {
background: transparent !important;
}
html.window-background-blur #root {
opacity: var(--window-content-opacity, 1);
}