Files
openclaw/ui/src/styles/layout.css
Peter Steinberger 9ecb2f3a84 feat(ui): restore sidebar chrome, delete the pane workspace strip, compact native narrow header (#103561)
* feat(ui): restore sidebar chrome and remove the pane workspace strip

Reverse course from #103426 on the app chrome: the left sidebar owns
brand, pinned navigation + More, New session, sessions, and the footer
(status dot, Settings, Docs, pairing, theme) again, and the desktop
topbar is gone. What stays from that PR: the dockable workspace rail
(right/bottom, drag or button), the in-flow split-pane headers, and
Cmd+B now hides the sidebar entirely (no 78px icon rail) with a
floating expand control.

The real target of the original request: the vertical icon strip at
each pane's right edge is deleted. A collapsed workspace rail renders
nothing; the toggle (with a changed-file badge) lives in the split-pane
header next to split/close, or floats at the top-right in single-pane
chat. Shift+Cmd+B still toggles.

Narrow native macOS windows (e.g. the in-app link browser splitting
the window) previously stacked 50px of injected titlebar padding on
top of the 58px drawer row; the web CSS now folds that into one
compact 58px row beside the traffic lights, with selectors that
outrank the rules shipped Mac apps inject.

* chore(ui): regenerate locale bundles and docs map for sidebar restore

* fix(ui): bind showPaneHeader explicitly on the classic single pane

* chore(ui): reconcile locale metadata after rebase onto lobster wild cards
2026-07-10 09:35:14 +01:00

2199 lines
46 KiB
CSS

/* ===========================================
Shell Layout
=========================================== */
.shell {
--shell-pad: 16px;
--shell-gap: 16px;
--shell-nav-expanded-width: 258px;
--shell-nav-width: var(--shell-nav-expanded-width);
/* Desktop has no topbar row — the sidebar owns navigation. Narrow viewports
(layout.mobile.css) and the chat split toolbar restore the row height. */
--shell-topbar-height: 0px;
--shell-focus-duration: 200ms;
--shell-focus-ease: var(--ease-out);
height: 100vh;
display: grid;
grid-template-columns: var(--shell-nav-width) minmax(0, 1fr);
grid-template-rows: var(--shell-topbar-height) 1fr;
grid-template-areas:
"nav topbar"
"nav content";
gap: 0;
animation: dashboard-enter 0.3s var(--ease-out);
transition:
grid-template-columns var(--shell-focus-duration) var(--shell-focus-ease),
grid-template-rows var(--shell-focus-duration) var(--shell-focus-ease);
overflow: hidden;
}
@supports (height: 100dvh) {
.shell {
height: 100dvh;
}
}
.shell--chat {
overflow: hidden;
}
/* Collapsing hides the sidebar entirely; a floating expand affordance
(.shell-nav-expand) and Cmd+B bring it back. Keep --shell-nav-width in sync
for fixed-position consumers (e.g. the docked terminal panel). */
.shell--nav-collapsed {
grid-template-columns: 0 minmax(0, 1fr);
--shell-nav-width: 0px;
}
/* Desktop only: below the drawer breakpoint .shell-nav is the slide-over
drawer (layout.mobile.css) and must stay renderable while collapsed. */
@media (min-width: 1101px) {
.shell--nav-collapsed .shell-nav {
display: none;
}
}
/* Floating expand control shown while the sidebar is hidden. On native macOS
it sits below the AppKit drag regions (x 78-254, y < 46) so clicks reach it. */
.shell-nav-expand {
position: fixed;
top: 10px;
left: 10px;
z-index: 45;
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--panel) 92%, transparent);
color: var(--muted);
box-shadow: var(--shadow-sm);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.shell-nav-expand:hover {
background: color-mix(in srgb, var(--bg-hover) 92%, transparent);
color: var(--text);
}
.shell-nav-expand:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.shell-nav-expand svg {
width: 17px;
height: 17px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
@media (max-width: 1100px) {
.shell-nav-expand {
display: none;
}
}
html.openclaw-native-macos .shell-nav-expand {
top: 52px;
}
.shell--onboarding {
grid-template-columns: 0 minmax(0, 1fr);
grid-template-rows: 0 1fr;
--shell-nav-width: 0px;
}
.shell--onboarding .topbar {
display: none;
}
.shell--onboarding .shell-nav {
display: none;
}
.shell--onboarding .content {
padding-top: 0;
}
/* ===========================================
Settings Takeover
===========================================
Settings routes replace the app chrome with a dedicated sidebar
(settings-sidebar.ts). Below the drawer breakpoint the regular mobile
shell stays in charge and the settings sidebar rides inside the drawer. */
.shell {
--shell-settings-nav-width: 288px;
}
@media (min-width: 1101px) {
.shell--settings {
grid-template-columns: var(--shell-settings-nav-width) minmax(0, 1fr);
grid-template-rows: 0 1fr;
--shell-nav-width: var(--shell-settings-nav-width);
}
.shell--settings .content {
padding: 44px clamp(28px, 5vw, 72px) 72px;
}
.shell--settings .content-header {
max-height: none;
}
.shell--settings .page-title {
font-size: 26px;
}
}
.shell--settings .content-header,
.shell--settings .settings-workspace,
.shell--settings .config-view-toggle-row {
width: 100%;
max-width: 1120px;
margin-inline: auto;
}
.settings-sidebar {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
min-width: 0;
overflow: hidden;
background: color-mix(in srgb, var(--bg) 96%, var(--bg-elevated) 4%);
}
:root[data-theme-mode="light"] .settings-sidebar {
background: color-mix(in srgb, var(--panel) 98%, white 2%);
}
.settings-sidebar__header {
flex-shrink: 0;
padding: 14px 12px 6px;
}
.settings-sidebar__back {
display: flex;
align-items: center;
gap: 7px;
width: 100%;
min-height: 32px;
padding: 0 9px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
font: inherit;
font-size: 12.5px;
font-weight: 550;
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.settings-sidebar__back:hover {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
color: var(--text);
}
.settings-sidebar__back:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.settings-sidebar__back-icon {
display: inline-flex;
width: 15px;
height: 15px;
}
.settings-sidebar__back-icon svg {
width: 15px;
height: 15px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.settings-sidebar__esc {
margin-left: auto;
padding: 2px 6px;
border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
border-radius: var(--radius-sm);
background: color-mix(in srgb, var(--card) 70%, transparent);
color: var(--muted);
font-family: var(--font-mono, ui-monospace, monospace);
font-size: 10px;
font-weight: 550;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.settings-sidebar__title {
margin: 14px 0 0;
padding: 0 9px;
font-size: 21px;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.15;
color: var(--text-strong);
}
.settings-sidebar__search {
position: relative;
flex-shrink: 0;
display: flex;
align-items: center;
margin: 8px 21px 0;
color: var(--muted);
}
.settings-sidebar__search-icon {
position: absolute;
inset-inline-start: 10px;
z-index: 1;
display: inline-flex;
width: 15px;
height: 15px;
pointer-events: none;
}
.settings-sidebar__search-icon svg,
.settings-sidebar__search-clear svg {
width: 15px;
height: 15px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.settings-sidebar__search-input {
width: 100%;
min-width: 0;
height: 34px;
padding-block: 0;
padding-inline: 32px 34px;
border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--card) 72%, transparent);
color: var(--text);
font: inherit;
font-size: 12.5px;
outline: none;
transition:
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
box-shadow var(--duration-fast) ease;
}
.settings-sidebar__search-input::placeholder {
color: color-mix(in srgb, var(--muted) 82%, transparent);
}
.settings-sidebar__search-input:focus {
border-color: color-mix(in srgb, var(--accent) 54%, var(--border));
background: color-mix(in srgb, var(--card) 88%, transparent);
box-shadow: var(--focus-ring);
}
.settings-sidebar__search-input::-webkit-search-cancel-button {
appearance: none;
}
@media (hover: none) and (pointer: coarse) {
.settings-sidebar__search-input {
font-size: 16px;
}
}
.settings-sidebar__search-clear {
position: absolute;
inset-inline-end: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--muted);
}
.settings-sidebar__search-clear:hover {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
color: var(--text);
}
.settings-sidebar__search-clear:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.settings-sidebar__nav {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
gap: 18px;
padding: 14px 12px 18px;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
}
.settings-sidebar__empty {
margin: 8px 9px 0;
color: var(--muted);
font-size: 12.5px;
line-height: 1.45;
}
.settings-sidebar__group {
display: flex;
flex-direction: column;
gap: 2px;
}
.settings-sidebar__group-label {
padding: 0 9px;
margin: 0 0 4px;
font-size: 10.5px;
font-weight: 650;
letter-spacing: 0.08em;
text-transform: uppercase;
color: color-mix(in srgb, var(--muted) 76%, transparent);
}
/* Settings rail entries are anchors but read as app chrome: default arrow,
not the UA link pointer. */
.settings-sidebar__item {
position: relative;
display: flex;
align-items: center;
gap: 8px;
min-height: 32px;
padding: 0 9px;
border: 1px solid transparent;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
cursor: default;
text-decoration: none;
transition:
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.settings-sidebar__item:hover {
color: var(--text);
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
border-color: color-mix(in srgb, var(--border) 72%, transparent);
text-decoration: none;
}
.settings-sidebar__item:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.settings-sidebar__item--active {
color: var(--text-strong);
background: color-mix(in srgb, var(--accent-subtle) 88%, var(--bg-elevated) 12%);
border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.settings-sidebar__item-icon {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
flex-shrink: 0;
opacity: 0.72;
transition: opacity var(--duration-fast) ease;
}
.settings-sidebar__item:hover .settings-sidebar__item-icon,
.settings-sidebar__item--active .settings-sidebar__item-icon {
opacity: 1;
}
.settings-sidebar__item--active .settings-sidebar__item-icon {
color: var(--accent);
}
.settings-sidebar__item-icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.settings-sidebar__item-label {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.settings-sidebar__footer {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 12px 21px;
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
font-size: 11.5px;
color: var(--muted);
}
.settings-sidebar__footer-status {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-sidebar__footer-version {
margin-left: auto;
flex-shrink: 0;
font-variant-numeric: tabular-nums;
color: color-mix(in srgb, var(--muted) 82%, transparent);
}
/* ===========================================
Topbar
=========================================== */
/* Hidden by default: on desktop the sidebar owns navigation, so no topbar row
renders. Narrow viewports show it as the drawer/search header
(layout.mobile.css), and desktop chat split view brings it back as the
backdrop for the fixed split toolbar (see below). */
.topbar {
grid-area: topbar;
position: sticky;
top: 0;
z-index: 40;
display: none;
align-items: center;
padding: 0 12px;
min-height: var(--shell-topbar-height);
border-bottom: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
background: color-mix(in srgb, var(--bg) 82%, transparent);
backdrop-filter: blur(12px) saturate(1.6);
-webkit-backdrop-filter: blur(12px) saturate(1.6);
}
.topnav-shell {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: var(--shell-topbar-height);
padding: 0;
border: none;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.topnav-shell__actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.topnav-shell__content {
min-width: 0;
flex: 1;
}
.topbar-brand {
display: none;
align-items: center;
justify-content: center;
gap: 7px;
min-width: 0;
}
.topbar-brand__logo {
display: block;
width: 24px;
height: 24px;
border-radius: var(--radius-md);
}
.topbar-brand__title {
min-width: 0;
overflow: hidden;
color: var(--text-strong);
font-size: 14px;
font-weight: 650;
letter-spacing: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
.topbar .nav-collapse-toggle__icon {
width: 20px;
height: 20px;
}
.topbar .nav-collapse-toggle__icon svg {
width: 20px;
height: 20px;
}
.topbar-search {
display: none;
align-items: center;
gap: 12px;
min-height: 38px;
padding: 0 14px;
border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
border-radius: var(--radius-full);
background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
color: var(--muted);
font-size: 13px;
transition:
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease;
min-width: 200px;
}
.topbar-search:hover {
border-color: color-mix(in srgb, var(--border-strong) 90%, transparent);
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
color: var(--text);
}
.topbar-search:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.topbar-search svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.topbar-icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
flex-shrink: 0;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.topbar-icon-btn:hover:not(:disabled) {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
color: var(--text);
}
.topbar-icon-btn:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
/* Without explicit sizing/stroke the Lucide-style icon renders as a filled
blob at the browser's default svg size (e.g. the terminal toggle glyph). */
.topbar-icon-btn svg {
width: 17px;
height: 17px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.topbar .topbar-nav-toggle {
display: none;
}
/* ===========================================
Navigation Sidebar
=========================================== */
.shell-nav {
grid-area: nav;
position: relative;
z-index: 10;
display: flex;
min-height: 100%;
overflow: visible;
border-right: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
transition: width var(--shell-focus-duration) var(--shell-focus-ease);
}
.shell-nav-backdrop {
display: none;
}
.sidebar-resizer {
grid-area: nav;
align-self: stretch;
justify-self: end;
z-index: 20;
width: 1px;
background: transparent;
}
.shell:has(.sidebar-resizer.dragging) {
transition: grid-template-rows var(--shell-focus-duration) var(--shell-focus-ease);
}
.sidebar {
position: relative;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
min-width: 0;
overflow: hidden;
background: color-mix(in srgb, var(--bg) 96%, var(--bg-elevated) 4%);
}
:root[data-theme-mode="light"] .sidebar {
background: color-mix(in srgb, var(--panel) 98%, white 2%);
}
.sidebar-shell {
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
padding: 14px 10px 12px;
border: none;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 8px;
min-height: 34px;
padding: 0 8px 12px;
flex-shrink: 0;
}
.sidebar-brand__identity {
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
flex: 1 1 auto;
}
.sidebar-brand__logo {
width: 24px;
height: 24px;
border-radius: var(--radius-md);
flex: 0 0 auto;
}
.sidebar-brand__title {
min-width: 0;
overflow: hidden;
color: var(--text-strong);
font-size: 14px;
font-weight: 650;
letter-spacing: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar-brand__actions {
display: flex;
align-items: center;
gap: 4px;
flex: 0 0 auto;
}
.sidebar-brand__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
padding: 0;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-brand__icon:hover:not(:disabled),
.sidebar-brand__icon:focus-visible {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
color: var(--text);
}
.sidebar-brand__icon:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.sidebar-brand__icon:disabled {
cursor: not-allowed;
opacity: 0.42;
}
.sidebar-brand__icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.sidebar-shell__footer {
flex-shrink: 0;
}
.sidebar-shell__body {
min-height: 0;
flex: 1;
display: flex;
flex-direction: column;
}
.sidebar-shell__footer {
padding: 12px 0 0;
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.sidebar-nav {
/* Nav stays pinned above the session list; the cap keeps sessions reachable
when an expanded More section outgrows a short window (nav then scrolls). */
flex: 0 0 auto;
max-height: 60%;
overflow-y: auto;
overflow-x: hidden;
padding: 0;
scrollbar-width: none;
}
.sidebar-sessions {
display: flex;
flex-direction: column;
gap: 8px;
/* Sessions own the leftover height below the pinned nav and scroll inside. */
flex: 1 1 auto;
min-height: 0;
padding: 0 8px;
margin-top: 10px;
}
.sidebar-new-session {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
width: 100%;
min-height: 34px;
box-sizing: border-box;
padding: 0 9px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--accent);
font: inherit;
font-size: 13px;
font-weight: 600;
line-height: 1.2;
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-new-session-group {
display: flex;
align-items: center;
width: 100%;
}
.sidebar-new-session-group > .sidebar-new-session:first-child {
flex: 1;
}
.sidebar-new-session--worktree {
width: 34px;
flex: 0 0 34px;
justify-content: center;
padding: 0;
}
.sidebar-new-session:hover:not(:disabled) {
background: var(--accent-subtle);
color: var(--accent-hover);
}
.sidebar-new-session:disabled {
cursor: not-allowed;
opacity: 0.52;
}
.sidebar-new-session__icon,
.sidebar-new-session__icon svg {
width: 15px;
height: 15px;
}
.sidebar-new-session__icon {
display: inline-flex;
align-items: center;
justify-content: center;
color: currentColor;
}
.sidebar-new-session__icon svg {
stroke: currentColor;
fill: none;
stroke-width: 1.8px;
stroke-linecap: round;
stroke-linejoin: round;
}
/* min-height: 0 down this chain lets the recent list shrink and scroll instead
of pushing the sidebar footer out of view. */
.sidebar-recent-sessions {
display: flex;
flex-direction: column;
gap: 10px;
margin: 0 -8px;
min-height: 0;
overflow-y: auto;
scrollbar-width: thin;
/* Sessions are app chrome, not hyperlinks: the whole region uses the
default arrow cursor; the pointer hand is reserved for real links. */
cursor: default;
}
.sidebar-recent-sessions__group {
display: flex;
flex-direction: column;
gap: 2px;
min-height: 28px;
border-radius: var(--radius-md);
transition:
background var(--duration-fast) ease,
box-shadow var(--duration-fast) ease;
}
.sidebar-recent-sessions__group--session-drop {
background: color-mix(in srgb, var(--accent) 10%, transparent);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sidebar-recent-sessions__group--group-drop-before {
box-shadow: inset 0 2px 0 color-mix(in srgb, var(--accent) 75%, transparent);
}
.sidebar-recent-sessions__group--group-drop-after {
box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 75%, transparent);
}
.sidebar-recent-sessions__head {
display: flex;
align-items: center;
gap: 8px;
min-height: 24px;
padding: 0 10px;
color: color-mix(in srgb, var(--muted) 72%, var(--text) 28%);
}
.sidebar-recent-sessions__head--root {
position: sticky;
top: 0;
z-index: 2;
background: var(--bg);
}
.sidebar-recent-sessions__head .sidebar-recent-sessions__label-text {
flex: 1 1 auto;
}
.sidebar-session-group-toggle {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
flex: 1 1 auto;
padding: 2px 0;
border: none;
background: transparent;
color: inherit;
text-align: left;
}
.sidebar-session-group-toggle__icon {
display: inline-flex;
flex: 0 0 auto;
opacity: 0.75;
}
.sidebar-session-group-toggle__icon svg {
width: 11px;
height: 11px;
stroke: currentColor;
fill: none;
stroke-width: 1.8px;
}
.sidebar-session-group-count {
flex: 0 0 auto;
color: var(--muted);
font-size: 10px;
font-variant-numeric: tabular-nums;
opacity: 0.7;
}
.sidebar-session-group-drag-handle {
width: 8px;
height: 18px;
flex: 0 0 8px;
border-radius: 3px;
background-image: radial-gradient(circle, currentColor 1px, transparent 1.2px);
background-position: 0 0;
background-size: 4px 4px;
color: var(--muted);
opacity: 0.55;
cursor: grab;
}
.sidebar-session-group-drag-handle:active {
cursor: grabbing;
}
.sidebar-session-sort {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
flex: 0 0 auto;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-session-sort:hover,
.sidebar-session-sort[aria-expanded="true"] {
background: color-mix(in srgb, var(--bg-hover) 78%, transparent);
color: var(--text);
}
.sidebar-session-sort svg {
width: 14px;
height: 14px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
/* Group header kebab: hidden until hover/focus like row actions, but always
reachable on touch pointers where hover does not exist. */
.sidebar-session-group-actions {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
flex: 0 0 auto;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--muted);
opacity: 0;
pointer-events: none;
transition:
opacity var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-recent-sessions__head:hover .sidebar-session-group-actions,
.sidebar-recent-sessions__head:focus-within .sidebar-session-group-actions,
.sidebar-session-group-actions[aria-expanded="true"] {
opacity: 1;
pointer-events: auto;
}
.sidebar-session-group-actions:hover,
.sidebar-session-group-actions[aria-expanded="true"] {
background: color-mix(in srgb, var(--bg-hover) 78%, transparent);
color: var(--text);
}
.sidebar-session-group-actions svg {
width: 14px;
height: 14px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
@media (hover: none), (pointer: coarse) {
.sidebar-session-group-actions {
opacity: 1;
pointer-events: auto;
}
}
/* Agent scope chip: a borderless select in the Sessions group header, sized
as metadata rather than a form control. */
.sidebar-agent-scope {
position: relative;
display: inline-flex;
align-items: center;
gap: 2px;
max-width: 55%;
flex: 0 1 auto;
min-width: 0;
}
.sidebar-agent-scope select {
appearance: none;
width: 100%;
min-width: 0;
padding: 2px 14px 2px 6px;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--muted);
font-size: 11px;
font-weight: 600;
text-overflow: ellipsis;
transition:
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-agent-scope select:hover:not(:disabled) {
background: color-mix(in srgb, var(--bg-hover) 78%, transparent);
color: var(--text);
}
.sidebar-agent-scope select:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.sidebar-agent-scope__chevron {
position: absolute;
right: 2px;
display: inline-flex;
pointer-events: none;
opacity: 0.5;
}
.sidebar-agent-scope__chevron svg {
width: 10px;
height: 10px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.sidebar-recent-sessions__label-text {
font-size: 11px;
font-weight: 650;
letter-spacing: 0.07em;
text-transform: uppercase;
color: color-mix(in srgb, var(--muted) 72%, var(--text) 28%);
opacity: 0.85;
}
.sidebar-recent-sessions__list {
display: grid;
gap: 2px;
min-height: 12px;
}
.sidebar-recent-session--dragging {
opacity: 0.45;
}
/* Rows and row links are anchors (for middle-click/new-tab), but read as app
controls: override the UA link pointer back to the default arrow. */
.sidebar-recent-session {
display: flex;
align-items: center;
min-width: 0;
min-height: 34px;
padding-right: 4px;
border: 1px solid transparent;
border-radius: var(--radius-md);
color: var(--muted);
cursor: default;
transition:
background var(--duration-fast) ease,
border-color var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.sidebar-recent-session:hover {
background: color-mix(in srgb, var(--bg-hover) 78%, transparent);
color: var(--text);
}
.sidebar-recent-session--active {
background: color-mix(in srgb, var(--accent-subtle) 68%, transparent);
border-color: color-mix(in srgb, var(--accent) 16%, transparent);
color: var(--text-strong);
}
.sidebar-recent-session__link {
display: flex;
align-items: center;
gap: 8px;
flex: 1 1 auto;
min-width: 0;
padding: 5px 4px 5px 9px;
color: inherit;
cursor: default;
text-decoration: none;
}
.sidebar-recent-session__link:hover {
text-decoration: none;
}
.sidebar-recent-session__name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
font-weight: 500;
color: var(--text);
}
.sidebar-recent-session--active .sidebar-recent-session__name {
font-weight: 500;
color: var(--text-strong);
}
.sidebar-recent-session__aside {
padding-right: 2px;
}
.sidebar-nav::-webkit-scrollbar {
display: none;
}
.nav-collapse-toggle {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
border: 1px solid color-mix(in srgb, var(--border-strong) 68%, transparent);
border-radius: var(--radius-md);
transition:
background var(--duration-fast) ease,
border-color var(--duration-fast) ease,
color var(--duration-fast) ease,
transform var(--duration-fast) ease;
margin-bottom: 0;
color: var(--muted);
box-shadow: inset 0 1px 0 color-mix(in srgb, white 8%, transparent);
}
.nav-collapse-toggle:hover {
background: color-mix(in srgb, var(--bg-hover) 90%, transparent);
border-color: color-mix(in srgb, var(--border-strong) 88%, transparent);
color: var(--text);
transform: translateY(-1px);
}
.nav-collapse-toggle__icon {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
color: inherit;
}
.nav-collapse-toggle__icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-section {
display: grid;
gap: 4px;
margin-bottom: 10px;
}
.nav-section:last-child {
margin-bottom: 0;
}
.nav-section__items {
display: grid;
gap: 2px;
}
.nav-section--collapsed .nav-section__items {
display: none;
}
.nav-section__label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
padding: 0 10px;
min-height: 28px;
background: transparent;
border: none;
border-radius: var(--radius-md);
color: color-mix(in srgb, var(--muted) 72%, var(--text) 28%);
text-align: left;
transition:
color var(--duration-fast) ease,
background var(--duration-fast) ease;
}
.nav-section__label:hover {
color: var(--text);
background: color-mix(in srgb, var(--bg-hover) 72%, transparent);
}
.nav-section__label-text {
font-size: 11px;
font-weight: 650;
letter-spacing: 0.07em;
text-transform: uppercase;
opacity: 0.85;
}
.nav-section__chevron {
display: inline-flex;
align-items: center;
justify-content: center;
opacity: 0.5;
transition: transform var(--duration-fast) ease;
}
.nav-section__chevron svg {
width: 12px;
height: 12px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-section--collapsed .nav-section__chevron {
transform: rotate(-90deg);
}
/* "More" holds every nav route the user has not pinned; the uppercase label
is the section separator, so no divider line above it. */
.nav-section--more {
margin-top: 12px;
}
/* Button variant of .nav-item (e.g. "Customize sidebar"). */
.nav-item--action {
width: 100%;
font: inherit;
text-align: left;
}
.sidebar-customize-menu {
position: fixed;
z-index: 120;
min-width: 224px;
max-width: 264px;
max-height: 420px;
overflow-y: auto;
padding: 6px;
border: 1px solid color-mix(in srgb, var(--border-strong) 78%, transparent);
border-radius: var(--radius-lg);
background: var(--bg-elevated);
box-shadow: 0 18px 40px color-mix(in srgb, black 26%, transparent);
}
.sidebar-customize-menu__title {
padding: 6px 10px 8px;
font-size: 11px;
font-weight: 650;
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--muted);
}
.sidebar-customize-menu__item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 30px;
padding: 0 8px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--text);
font: inherit;
font-size: 13px;
text-align: left;
}
.sidebar-customize-menu__item:hover {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
}
.sidebar-customize-menu__check {
display: flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
flex-shrink: 0;
color: var(--accent);
}
.sidebar-customize-menu__check svg {
width: 14px;
height: 14px;
stroke: currentColor;
fill: none;
stroke-width: 2px;
stroke-linecap: round;
stroke-linejoin: round;
}
.sidebar-customize-menu__text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-customize-menu__separator {
margin: 6px 4px;
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.session-menu {
position: fixed;
z-index: 121;
min-width: 224px;
max-width: 264px;
padding: 6px;
border: 1px solid color-mix(in srgb, var(--border-strong) 78%, transparent);
border-radius: var(--radius-lg);
background: var(--bg-elevated);
box-shadow: 0 18px 40px color-mix(in srgb, black 26%, transparent);
}
openclaw-native-link-menu[popover] {
width: 0;
height: 0;
margin: 0;
padding: 0;
overflow: visible;
border: 0;
background: transparent;
}
.sidebar-session-sort-menu {
position: fixed;
z-index: 121;
min-width: 176px;
max-width: 220px;
padding: 6px;
border: 1px solid color-mix(in srgb, var(--border-strong) 78%, transparent);
border-radius: var(--radius-lg);
background: var(--bg-elevated);
box-shadow: 0 18px 40px color-mix(in srgb, black 26%, transparent);
}
.sidebar-session-sort-menu__title {
padding: 4px 8px 2px;
color: var(--muted);
font-size: 11px;
font-weight: 650;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.session-menu__item,
.sidebar-session-sort-menu__item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-height: 30px;
padding: 0 8px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--text);
font: inherit;
font-size: 13px;
text-align: left;
}
.session-menu__item:hover:not(:disabled),
.session-menu__item:focus-visible,
.sidebar-session-sort-menu__item:hover,
.sidebar-session-sort-menu__item:focus-visible {
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
}
.session-menu__item:disabled {
opacity: 0.42;
cursor: not-allowed;
}
.session-menu__item--destructive {
color: var(--danger);
}
.session-menu__icon,
.session-menu__check {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
flex: 0 0 auto;
}
.session-menu__check {
color: var(--accent);
}
.session-menu__icon svg,
.session-menu__check svg,
.session-menu__chevron svg {
width: 14px;
height: 14px;
stroke: currentColor;
fill: none;
stroke-width: 1.7px;
stroke-linecap: round;
stroke-linejoin: round;
}
.session-menu__text {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.session-menu__chevron {
display: inline-flex;
color: var(--muted);
}
.session-menu__shortcut {
flex: 0 0 auto;
color: var(--muted);
font-size: 11px;
font-weight: 550;
letter-spacing: 0.04em;
}
.session-menu__separator {
margin: 6px 4px;
border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.session-menu__submenu-host {
position: relative;
}
.session-menu__submenu {
position: absolute;
top: -6px;
left: calc(100% + 4px);
max-height: min(360px, calc(100vh - 24px));
overflow-y: auto;
}
.session-menu__submenu--left {
right: calc(100% + 4px);
left: auto;
}
/* Nav rail entries are anchors (for middle-click/new-tab) but read as app
chrome: override the UA link pointer back to the default arrow. */
.nav-item {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
min-height: 32px;
padding: 0 9px;
border-radius: var(--radius-md);
border: 1px solid transparent;
background: transparent;
color: var(--muted);
cursor: default;
text-decoration: none;
transition:
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease,
transform var(--duration-fast) ease;
}
.nav-item__icon {
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
opacity: 0.72;
transition:
opacity var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.nav-item__icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-item__text {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
}
.nav-item:hover {
color: var(--text);
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
border-color: color-mix(in srgb, var(--border) 72%, transparent);
text-decoration: none;
}
.nav-item:hover .nav-item__icon {
opacity: 1;
}
.nav-item.active,
.nav-item--active {
color: var(--text-strong);
background: color-mix(in srgb, var(--accent-subtle) 88%, var(--bg-elevated) 12%);
border-color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.nav-item.active .nav-item__icon,
.nav-item--active .nav-item__icon {
opacity: 1;
color: var(--accent);
}
/* Single compact icon row: status dot, then utility icons right-aligned.
The footer signals connectivity only; gateway version lives in Settings. */
.sidebar-footer-bar {
display: flex;
align-items: center;
gap: 2px;
min-height: 34px;
padding: 0 10px;
}
.sidebar-footer-bar__spacer {
flex: 1 1 auto;
}
/* Footer icons mix in-app anchors, buttons, and one external docs link: the
chrome gets the default arrow; only the external (target=_blank) anchor is
a real hyperlink and keeps the pointer. */
.sidebar-footer-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
flex: 0 0 auto;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
cursor: default;
text-decoration: none;
transition:
color var(--duration-fast) ease,
background var(--duration-fast) ease;
}
.sidebar-footer-icon[target] {
cursor: pointer;
}
.sidebar-footer-icon:hover:not(:disabled),
.sidebar-footer-icon:focus-visible {
color: var(--text);
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
text-decoration: none;
}
.sidebar-footer-icon:focus-visible {
outline: 2px solid color-mix(in srgb, var(--accent) 48%, transparent);
outline-offset: 1px;
}
.sidebar-footer-icon:disabled {
cursor: not-allowed;
opacity: 0.42;
}
.sidebar-footer-icon--active {
color: var(--accent);
}
.sidebar-footer-icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.sidebar-status__dot {
width: 8px;
height: 8px;
border-radius: var(--radius-full);
flex-shrink: 0;
}
.sidebar-status__dot.sidebar-connection-status--online {
background: var(--ok);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent);
}
.sidebar-status__dot.sidebar-connection-status--offline {
background: var(--danger);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent);
}
.sidebar-pair-mobile svg * {
stroke: currentColor;
fill: none;
}
.sidebar-mode-switch {
display: inline-flex;
margin-left: 2px;
}
.theme-mode-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border: 1px solid transparent;
border-radius: var(--radius-md);
background: transparent;
color: var(--muted);
transition:
color var(--duration-fast) ease,
background var(--duration-fast) ease,
border-color var(--duration-fast) ease;
}
.theme-mode-toggle:hover {
color: var(--text);
background: color-mix(in srgb, var(--bg-hover) 84%, transparent);
}
.theme-mode-toggle:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.theme-mode-toggle svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.75px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-item__external-icon {
width: 12px;
height: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-left: auto;
opacity: 0;
transition: opacity var(--duration-fast) ease;
}
.nav-item__external-icon svg {
width: 12px;
height: 12px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-item:hover .nav-item__external-icon {
opacity: 0.5;
}
/* ===========================================
Content Area
=========================================== */
.content {
grid-area: content;
padding: 16px 20px 32px;
display: block;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
/* Reserve space for the docked operator terminal so it reshapes the content
area (shrinks it) instead of overlaying the chat. The terminal panel sets
these vars; they are 0 when it is closed. */
margin-bottom: var(--oc-terminal-reserve-bottom, 0);
margin-right: var(--oc-terminal-reserve-right, 0);
transition:
margin-bottom 0.16s ease,
margin-right 0.16s ease;
}
.content > * + * {
margin-top: 20px;
}
.content--chat {
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
padding-top: 0;
padding-bottom: 0;
}
.content--chat > * + * {
margin-top: 0;
}
.content--chat > openclaw-router-outlet {
display: flex;
flex: 1 1 0;
min-width: 0;
min-height: 0;
}
.content--workboard {
display: flex;
flex-direction: column;
overflow: hidden;
padding-bottom: 16px;
}
.content--workboard > * + * {
margin-top: 14px;
}
.content--workboard > openclaw-router-outlet,
.content--workboard openclaw-workboard-page {
display: flex;
flex: 1 1 0;
flex-direction: column;
min-height: 0;
}
.content--workboard openclaw-workboard-page {
gap: 14px;
}
:root[data-theme-mode="light"] .content {
background: var(--bg-content);
}
/* Content header */
.content-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
padding: 4px 8px;
overflow: hidden;
transform-origin: top center;
transition:
opacity var(--shell-focus-duration) var(--shell-focus-ease),
transform var(--shell-focus-duration) var(--shell-focus-ease),
max-height var(--shell-focus-duration) var(--shell-focus-ease),
padding var(--shell-focus-duration) var(--shell-focus-ease);
max-height: 80px;
}
.content-header--page + * {
margin-top: 20px;
}
.content--chat .content-header.content-header--chat-hidden {
opacity: 0;
transform: translateY(-10px);
min-height: 0;
max-height: 0px;
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
pointer-events: none;
}
.page-title {
font-size: 22px;
font-weight: 650;
letter-spacing: -0.03em;
line-height: 1.2;
color: var(--accent);
}
.page-sub {
color: var(--muted);
font-size: 13px;
font-weight: 400;
margin-top: 4px;
letter-spacing: -0.005em;
}
.page-meta {
display: flex;
gap: 8px;
align-items: center;
}
.dreaming-header-controls {
display: flex;
align-items: center;
gap: 8px;
}
.dreaming-header-controls__modes {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px;
border: 1px solid var(--border);
border-radius: var(--radius-full);
background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
}
.dreaming-header-controls__mode {
appearance: none;
border: 1px solid transparent;
border-radius: var(--radius-full);
padding: 4px 10px;
background: transparent;
color: var(--muted);
font-size: 12px; /* was 11px */
line-height: 1.2;
letter-spacing: 0.08em;
text-transform: uppercase;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0;
max-width: 90px;
overflow: hidden;
transition:
max-width var(--duration-fast) ease,
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.dreaming-header-controls__mode:hover:not(:disabled) {
border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
color: var(--text);
max-width: 290px;
}
.dreaming-header-controls__mode:focus-visible:not(:disabled) {
max-width: 290px;
}
.dreaming-header-controls__mode:disabled {
opacity: 0.55;
cursor: default;
}
.dreaming-header-controls__mode--active {
border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
background: color-mix(in srgb, var(--accent-subtle) 70%, var(--bg-elevated));
color: var(--text-strong);
}
.dreaming-header-controls__mode-label {
flex-shrink: 0;
}
.dreaming-header-controls__mode-detail {
max-width: 0;
opacity: 0;
margin-left: 0;
overflow: hidden;
white-space: nowrap;
text-transform: none;
letter-spacing: normal;
font-size: 12px; /* was 10px */
font-weight: 500;
color: color-mix(in srgb, var(--muted) 86%, var(--text) 14%);
transition:
max-width var(--duration-fast) ease,
margin-left var(--duration-fast) ease,
opacity var(--duration-fast) ease;
}
.dreaming-header-controls__mode:hover:not(:disabled) .dreaming-header-controls__mode-detail,
.dreaming-header-controls__mode:focus-visible:not(:disabled)
.dreaming-header-controls__mode-detail {
max-width: 220px;
margin-left: 6px;
opacity: 0.95;
}
/* Chat view header adjustments */
.content--chat .content-header {
display: grid;
grid-template-columns: minmax(0, 1fr) max-content;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 44px;
padding: 4px 8px;
overflow: visible;
max-height: 44px;
}
.content--chat .content-header > div:first-child {
display: grid;
align-items: center;
position: relative;
text-align: left;
min-width: 0;
}
.content--chat .page-meta {
align-self: center;
justify-content: flex-end;
height: 36px;
align-items: center;
min-width: max-content;
overflow: visible;
}
.content--chat .chat-controls {
flex-shrink: 0;
flex-wrap: nowrap;
gap: 6px;
}
.content--chat .content-header .chat-controls__session-notice {
position: absolute;
top: calc(100% + 2px);
left: 0;
width: min(100%, 680px);
min-height: 0;
overflow: hidden;
pointer-events: none;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ===========================================
Grid Utilities
=========================================== */
.grid {
display: grid;
gap: 20px;
}
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-grid {
display: grid;
gap: 14px;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.note-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.row {
display: flex;
gap: 12px;
align-items: center;
}
.stack {
display: grid;
gap: 12px;
grid-template-columns: minmax(0, 1fr);
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
/* ===========================================
Responsive - Tablet
=========================================== */
@media (max-width: 1100px) {
.shell {
--shell-pad: 12px;
--shell-gap: 12px;
grid-template-columns: 1fr;
grid-template-rows: auto auto 1fr;
grid-template-areas:
"topbar"
"nav"
"content";
}
.grid-cols-2,
.grid-cols-3 {
grid-template-columns: 1fr;
}
.topbar {
position: static;
padding: 6px 12px;
gap: 10px;
}
.table-head,
.table-row {
grid-template-columns: 1fr;
}
.list-item {
grid-template-columns: 1fr;
}
}
/* Mobile chat controls — hidden on desktop, shown in layout.mobile.css */
.chat-mobile-controls-wrapper {
display: none;
}
.chat-controls-mobile-toggle {
display: none;
border-radius: var(--radius-full);
}
.chat-controls-dropdown {
display: none;
}
/* Terminal-only document (`?view=terminal`, mobile WebViews): centered notice
when the gateway refuses or lacks the terminal surface. */
.terminal-view-unavailable {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
text-align: center;
color: var(--muted);
background: var(--bg);
}