mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-04 09:41:39 +00:00
5819 lines
116 KiB
CSS
5819 lines
116 KiB
CSS
/* ===========================================
|
|
Connect Splash (first connect with stored credentials)
|
|
=========================================== */
|
|
|
|
.connect-splash {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
max-height: 100%;
|
|
background: var(--bg);
|
|
/* Stay invisible past fast handshakes so a quick connect paints nothing. */
|
|
opacity: 0;
|
|
animation: fade-in 0.3s var(--ease-out) 0.2s forwards;
|
|
}
|
|
|
|
openclaw-session-owner-chip {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.session-owner-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid hsl(var(--owner-hue) 52% 18% / 0.9);
|
|
border-radius: 999px;
|
|
background: hsl(var(--owner-hue) 58% 26%);
|
|
box-shadow: 0 1px 2px rgb(0 0 0 / 0.24);
|
|
color: white;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.session-owner-chip--row {
|
|
width: 16px;
|
|
height: 16px;
|
|
font-size: 8px;
|
|
}
|
|
|
|
.session-owner-chip--header {
|
|
width: 20px;
|
|
height: 20px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.session-owner-chip .viewer-avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* Leading slot shared by every sidebar row: the row's own artwork plus a run
|
|
ring and corner badge, so run state always reads at the row's left edge. */
|
|
.session-glyph {
|
|
position: relative;
|
|
display: inline-flex;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex: 0 0 16px;
|
|
}
|
|
|
|
.session-glyph__content {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
transition: transform var(--duration-fast) ease;
|
|
}
|
|
|
|
/* The ring is a circle, so square artwork (page icons, thumbnails, arbitrary
|
|
SVGs) must shrink to keep its corners inside it. Circular avatars already
|
|
fit. A 16px square scaled below 0.75 clears the ring's 17px inner circle. */
|
|
.session-glyph--running .session-glyph__content {
|
|
transform: scale(0.72);
|
|
}
|
|
|
|
.session-glyph--circular.session-glyph--running .session-glyph__content {
|
|
transform: none;
|
|
}
|
|
|
|
.session-glyph__ring {
|
|
position: absolute;
|
|
inset: -2px;
|
|
box-sizing: border-box;
|
|
border: 1.5px solid color-mix(in srgb, var(--run) 28%, transparent);
|
|
border-top-color: var(--run);
|
|
border-radius: var(--radius-full);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.session-glyph__badge {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: -2px;
|
|
right: -2px;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: var(--radius-full);
|
|
background: currentColor;
|
|
box-shadow: 0 0 0 1.5px var(--bg);
|
|
}
|
|
|
|
.session-glyph__badge--unread {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.connect-splash__logo {
|
|
width: 44px;
|
|
height: 44px;
|
|
animation: connect-splash-wiggle 1.8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes connect-splash-wiggle {
|
|
0%,
|
|
100% {
|
|
transform: rotate(-6deg);
|
|
}
|
|
50% {
|
|
transform: rotate(6deg);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.connect-splash {
|
|
opacity: 1;
|
|
animation: none;
|
|
}
|
|
|
|
.connect-splash__logo {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* Shared by the login gate and the Sessions, Tasks, and Cron routes. */
|
|
.session-link {
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.session-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ===========================================
|
|
Login Gate
|
|
=========================================== */
|
|
|
|
.login-gate {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
max-height: 100%;
|
|
overflow-y: auto;
|
|
background: var(--bg);
|
|
padding: 24px;
|
|
}
|
|
|
|
.login-gate__theme {
|
|
position: fixed;
|
|
top: 16px;
|
|
right: 16px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.login-gate__card {
|
|
width: min(520px, 100%);
|
|
margin-block: auto;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 32px;
|
|
animation: scale-in 0.25s var(--ease-out);
|
|
}
|
|
|
|
.login-gate__header {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.login-gate__logo {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.login-gate__title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.login-gate__sub {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.login-gate__form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.login-gate__connect {
|
|
margin-top: 4px;
|
|
width: 100%;
|
|
justify-content: center;
|
|
padding: 10px 16px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.login-gate__failure {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.login-gate__failure-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.login-gate__failure-summary {
|
|
margin-top: 6px;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.login-gate__failure-steps {
|
|
margin: 10px 0 0;
|
|
padding-left: 18px;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.login-gate__failure-steps li + li {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.login-gate__failure-detail {
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.login-gate__failure-detail summary {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.login-gate__failure-raw {
|
|
margin-top: 6px;
|
|
overflow-wrap: anywhere;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.login-gate__failure-docs {
|
|
display: inline-flex;
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.login-gate__help {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.login-gate__help-title {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.login-gate__steps {
|
|
margin: 10px 0 0;
|
|
padding-left: 20px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.login-gate__steps li {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.login-gate__steps li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.login-gate__steps code {
|
|
display: block;
|
|
margin: 4px 0 2px;
|
|
padding: 5px 10px;
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
user-select: all;
|
|
}
|
|
|
|
.login-gate__command {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 4px 0 2px;
|
|
padding: 5px 8px 5px 10px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
cursor: copy;
|
|
}
|
|
|
|
.login-gate__command:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.login-gate__command:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.login-gate__command code {
|
|
flex: 1;
|
|
margin: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.login-gate__docs {
|
|
margin-top: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Phones (matches the layout.mobile.css breakpoint). The gate renders outside
|
|
the shell, so it needs its own safe-area padding for notch/home-bar overlap
|
|
with viewport-fit=cover. */
|
|
@media (max-width: 768px), (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
|
|
.login-gate {
|
|
padding: max(16px, var(--safe-area-top)) max(12px, var(--safe-area-right))
|
|
max(16px, var(--safe-area-bottom)) max(12px, var(--safe-area-left));
|
|
}
|
|
|
|
.login-gate__card {
|
|
padding: 24px 20px;
|
|
}
|
|
|
|
/* 44px touch targets per platform guidelines. */
|
|
.login-gate__form .field input {
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Inset reveal eye keeps a comfortable coarse-pointer hit area. */
|
|
.login-gate__form .settings-secret__toggle {
|
|
width: 32px;
|
|
height: 32px;
|
|
right: 6px;
|
|
}
|
|
|
|
.login-gate__connect {
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
/* The standalone body already owns safe-area insets. Reusing them inside the
|
|
gate would double notch/home-bar spacing and shrink its scroll viewport. */
|
|
@media (display-mode: standalone) and (max-width: 768px),
|
|
(display-mode: standalone) and (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
|
|
.login-gate {
|
|
padding: 16px 12px;
|
|
}
|
|
}
|
|
|
|
/* ===========================================
|
|
Update Banner
|
|
=========================================== */
|
|
|
|
.update-banner {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
margin: 0 calc(-1 * var(--shell-pad)) 0;
|
|
border-radius: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.update-banner .update-banner__btn {
|
|
margin-left: 8px;
|
|
border-color: currentColor;
|
|
color: currentColor;
|
|
font-size: 12px;
|
|
padding: 4px 12px;
|
|
}
|
|
|
|
.update-banner .update-banner__btn:hover:not(:disabled) {
|
|
border-color: currentColor;
|
|
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
}
|
|
|
|
.update-banner__close {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 8px;
|
|
padding: 4px;
|
|
min-width: 24px;
|
|
min-height: 24px;
|
|
background: none;
|
|
border: none;
|
|
color: currentColor;
|
|
opacity: 0.7;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.update-banner__close:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.update-banner__close svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
}
|
|
|
|
/* ===========================================
|
|
Cards - Refined with depth
|
|
=========================================== */
|
|
|
|
.card {
|
|
border: 1px solid var(--border);
|
|
background: var(--card);
|
|
border-radius: var(--radius-lg);
|
|
padding: 18px;
|
|
animation: rise 0.25s var(--ease-out) backwards;
|
|
transition:
|
|
border-color var(--duration-normal) var(--ease-out),
|
|
box-shadow var(--duration-normal) var(--ease-out);
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: var(--border-strong);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.card-sub {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
margin-top: 6px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* ===========================================
|
|
Stats - Bold values, subtle labels
|
|
=========================================== */
|
|
|
|
.stat {
|
|
background: var(--card);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 16px;
|
|
border: 1px solid var(--border);
|
|
transition:
|
|
border-color var(--duration-normal) var(--ease-out),
|
|
box-shadow var(--duration-normal) var(--ease-out);
|
|
}
|
|
|
|
.stat:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.stat-label {
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin-top: 6px;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.stat-card {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.note-title {
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
/* ===========================================
|
|
Labels & Pills
|
|
=========================================== */
|
|
|
|
.label {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
border: 1px solid var(--border);
|
|
padding: 5px 11px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--secondary);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.pill:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.pill.danger {
|
|
border-color: var(--danger-subtle);
|
|
background: var(--danger-subtle);
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* ===========================================
|
|
Status Dot - With glow for emphasis
|
|
=========================================== */
|
|
|
|
.statusDot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--danger);
|
|
box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
|
|
animation: pulse-subtle 2s ease-in-out infinite;
|
|
}
|
|
|
|
.statusDot.ok {
|
|
background: var(--ok);
|
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
|
|
animation: none;
|
|
}
|
|
|
|
.statusDot.warn {
|
|
background: var(--warn);
|
|
box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
|
|
animation: none;
|
|
}
|
|
|
|
.statusDot.muted {
|
|
background: var(--muted);
|
|
box-shadow: none;
|
|
animation: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* ===========================================
|
|
Skill Toggle Switch
|
|
=========================================== */
|
|
|
|
.skill-toggle-wrap {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.skill-toggle {
|
|
appearance: none;
|
|
width: 36px;
|
|
height: 20px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--border);
|
|
position: relative;
|
|
border: none;
|
|
outline: none;
|
|
transition:
|
|
background var(--duration-fast) var(--ease-out),
|
|
box-shadow var(--duration-fast) var(--ease-out);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.skill-toggle::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: var(--radius-full);
|
|
background: white;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
transition: transform var(--duration-fast) var(--ease-out);
|
|
}
|
|
|
|
.skill-toggle:checked {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.skill-toggle:checked::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
.skill-toggle:focus-visible {
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.skill-toggle:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ===========================================
|
|
Buttons - Tactile with personality
|
|
=========================================== */
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-elevated);
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
letter-spacing: -0.01em;
|
|
/* Labels never break mid-text; tight clusters wrap whole buttons instead
|
|
(see .settings-row--actions). */
|
|
white-space: nowrap;
|
|
transition:
|
|
border-color var(--duration-fast) var(--ease-out),
|
|
background var(--duration-fast) var(--ease-out),
|
|
box-shadow var(--duration-fast) var(--ease-out);
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.btn:active {
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn.primary {
|
|
border-color: var(--accent);
|
|
background: var(--primary);
|
|
color: var(--primary-foreground);
|
|
box-shadow: 0 1px 3px var(--accent-subtle);
|
|
}
|
|
|
|
.btn.primary:hover {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
box-shadow: 0 2px 12px var(--accent-glow);
|
|
}
|
|
|
|
:root[data-theme="dark"] .btn.primary:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
:root[data-theme="openknot"] .btn.primary:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
/* Keyboard shortcut badge (shadcn style) */
|
|
.btn-kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 6px;
|
|
padding: 2px 5px;
|
|
font-family: var(--mono);
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, 0.15);
|
|
color: inherit;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.btn.primary .btn-kbd {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn-kbd {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn.primary .btn-kbd {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.btn.active {
|
|
border-color: var(--accent);
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn.danger {
|
|
border-color: transparent;
|
|
background: var(--danger-subtle);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.btn.danger:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
}
|
|
|
|
.btn--sm {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn--xs {
|
|
padding: 4px 6px;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.app-toast {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: calc(20px + var(--safe-area-bottom));
|
|
z-index: 2000;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
max-width: min(520px, calc(100vw - 32px));
|
|
padding: 10px 12px 10px 16px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-md);
|
|
background: var(--popover);
|
|
color: var(--popover-foreground);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.app-toast__message {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
font-size: var(--control-ui-text-md);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.app-toast__action,
|
|
.app-toast__dismiss {
|
|
flex: 0 0 auto;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
}
|
|
|
|
.app-toast__action {
|
|
color: var(--accent);
|
|
font-size: var(--control-ui-text-sm);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.app-toast__dismiss {
|
|
display: grid;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
place-items: center;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--muted);
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.app-toast__action:hover,
|
|
.app-toast__action:focus-visible,
|
|
.app-toast__dismiss:hover,
|
|
.app-toast__dismiss:focus-visible {
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.btn--icon {
|
|
padding: 8px;
|
|
min-width: 36px;
|
|
height: 36px;
|
|
border: 1px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.btn--icon:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.btn--icon svg {
|
|
display: block;
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.github-link-hovercard {
|
|
position: fixed;
|
|
z-index: 1990;
|
|
width: min(440px, calc(100vw - 24px));
|
|
min-height: 112px;
|
|
padding: 16px;
|
|
border: 1px solid color-mix(in srgb, var(--border-strong) 88%, transparent);
|
|
border-radius: var(--radius-lg);
|
|
background: color-mix(in srgb, var(--card) 96%, var(--bg) 4%);
|
|
box-shadow: var(--shadow-lg);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transform: translateY(-5px) scale(0.99);
|
|
transform-origin: bottom left;
|
|
transition:
|
|
opacity var(--duration-normal) var(--ease-out),
|
|
transform var(--duration-normal) var(--ease-out);
|
|
}
|
|
|
|
.github-link-hovercard[data-side="bottom"] {
|
|
transform: translateY(5px) scale(0.99);
|
|
transform-origin: top left;
|
|
}
|
|
|
|
.github-link-hovercard[data-open="true"] {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.github-link-hovercard__header,
|
|
.github-link-hovercard__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
.github-link-hovercard__header {
|
|
gap: 9px;
|
|
color: var(--muted);
|
|
font-size: var(--control-ui-text-sm);
|
|
}
|
|
|
|
.github-link-hovercard__state {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 9px;
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.github-link-hovercard__state[data-tone="open"] {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.github-link-hovercard__state[data-tone="danger"] {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.github-link-hovercard__state[data-tone="purple"] {
|
|
color: #a78bfa;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .github-link-hovercard__state[data-tone="purple"] {
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.github-link-hovercard__state-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
|
|
}
|
|
|
|
.github-link-hovercard__repo {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.github-link-hovercard__time {
|
|
flex: 0 0 auto;
|
|
margin-left: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.github-link-hovercard__title {
|
|
margin: 15px 0 17px;
|
|
color: var(--text-strong);
|
|
font-size: var(--control-ui-text-lg);
|
|
font-weight: 650;
|
|
letter-spacing: -0.012em;
|
|
line-height: 1.35;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.github-link-hovercard__footer {
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.github-link-hovercard__author,
|
|
.github-link-hovercard__metrics {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.github-link-hovercard__author {
|
|
min-width: 0;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
font-size: var(--control-ui-text-md);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.github-link-hovercard__avatar {
|
|
width: 25px;
|
|
height: 25px;
|
|
flex: 0 0 auto;
|
|
border: 1px solid color-mix(in srgb, var(--border-strong) 82%, transparent);
|
|
border-radius: 50%;
|
|
background: var(--bg-muted);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.github-link-hovercard__metrics {
|
|
flex: 0 0 auto;
|
|
gap: 6px;
|
|
}
|
|
|
|
.github-link-hovercard__metric {
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in srgb, var(--bg-muted) 82%, transparent);
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: var(--control-ui-text-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.github-link-hovercard__metric--additions {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.github-link-hovercard__metric--deletions {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.github-link-hovercard__loading,
|
|
.github-link-hovercard__unavailable {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 80px;
|
|
color: var(--muted);
|
|
font-size: var(--control-ui-text-sm);
|
|
}
|
|
|
|
.github-link-hovercard__loading::before {
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-right: 9px;
|
|
border: 2px solid color-mix(in srgb, var(--muted) 25%, transparent);
|
|
border-top-color: var(--muted);
|
|
border-radius: 50%;
|
|
content: "";
|
|
animation: github-hovercard-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes github-hovercard-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.github-link-hovercard {
|
|
padding: 14px;
|
|
}
|
|
|
|
.github-link-hovercard__header {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.github-link-hovercard__time {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.github-link-hovercard__title {
|
|
margin: 13px 0 15px;
|
|
}
|
|
|
|
.github-link-hovercard__footer {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.github-link-hovercard {
|
|
transition: none;
|
|
}
|
|
|
|
.github-link-hovercard__loading::before {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
.btn--ghost {
|
|
border-color: transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.btn--ghost:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ===========================================
|
|
Form Fields
|
|
=========================================== */
|
|
|
|
.field {
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.field.full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.field span {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.field input,
|
|
.field textarea,
|
|
.field select {
|
|
border: 1px solid var(--input);
|
|
background: var(--card);
|
|
border-radius: var(--radius-md);
|
|
padding: 8px 12px;
|
|
outline: none;
|
|
box-shadow: inset 0 1px 0 var(--card-highlight);
|
|
transition:
|
|
border-color var(--duration-fast) ease,
|
|
box-shadow var(--duration-fast) ease;
|
|
}
|
|
|
|
.field input:not([type="checkbox"]):not([type="radio"]),
|
|
.field select {
|
|
height: 38px;
|
|
}
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.field input,
|
|
.field textarea,
|
|
.field select {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
.field input:focus-visible,
|
|
.field textarea:focus-visible,
|
|
.field select:focus-visible {
|
|
border-color: var(--ring);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.field select {
|
|
appearance: none;
|
|
padding-right: 36px;
|
|
background-image: var(--select-chevron);
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
}
|
|
|
|
.field textarea {
|
|
font-family: var(--mono);
|
|
min-height: 160px;
|
|
resize: vertical;
|
|
white-space: pre;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.field.checkbox {
|
|
grid-template-columns: auto 1fr;
|
|
align-items: center;
|
|
}
|
|
|
|
.config-form .field.checkbox {
|
|
grid-template-columns: 18px minmax(0, 1fr);
|
|
column-gap: 10px;
|
|
}
|
|
|
|
.config-form .field.checkbox input[type="checkbox"] {
|
|
margin: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.form-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
}
|
|
|
|
/* ===========================================
|
|
Cron Form
|
|
=========================================== */
|
|
|
|
/* Stat strip used by the tasks page. */
|
|
.summary-strip {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px 18px;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.summary-strip__stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px 28px;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.summary-stat {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.summary-stat__icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
color: var(--accent);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-md);
|
|
background: var(--accent-subtle);
|
|
padding: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.summary-stat__icon svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
}
|
|
|
|
.summary-stat--danger .summary-stat__icon {
|
|
color: var(--danger);
|
|
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
|
}
|
|
|
|
.summary-stat__copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.summary-stat__label {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.summary-stat__value {
|
|
color: var(--text-strong);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.summary-strip__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.field input[aria-invalid="true"],
|
|
.field textarea[aria-invalid="true"],
|
|
.field select[aria-invalid="true"] {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.summary-strip {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.summary-strip__stats {
|
|
width: 100%;
|
|
gap: 8px 18px;
|
|
}
|
|
|
|
.summary-strip__actions {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .field input,
|
|
:root[data-theme-mode="light"] .field textarea,
|
|
:root[data-theme-mode="light"] .field select {
|
|
background-color: var(--card);
|
|
border-color: var(--input);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn {
|
|
background: var(--bg);
|
|
border-color: var(--input);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn.active {
|
|
border-color: var(--accent);
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn.primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn--icon {
|
|
background: #ffffff;
|
|
border-color: var(--border);
|
|
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
|
|
color: var(--muted);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn--icon:hover {
|
|
background: #ffffff;
|
|
border-color: var(--border-strong);
|
|
color: var(--text);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .chat-controls .btn--icon.active {
|
|
border-color: var(--accent);
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
box-shadow: 0 0 0 1px var(--accent-subtle);
|
|
}
|
|
|
|
/* Ghost stays chromeless in light mode too: without the border-color reset,
|
|
the higher-specificity light .btn--icon override above re-adds a 1px border
|
|
that dark mode never shows. Chrome appears on hover only. */
|
|
:root[data-theme-mode="light"] .btn--ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .btn--ghost:hover {
|
|
background: var(--bg-hover);
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* ===========================================
|
|
Utilities
|
|
=========================================== */
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.mono {
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
/* ===========================================
|
|
Callouts - Informative with subtle depth
|
|
=========================================== */
|
|
|
|
.callout {
|
|
padding: 14px 16px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--secondary);
|
|
border: 1px solid var(--border);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
position: relative;
|
|
}
|
|
|
|
.callout--dismissible,
|
|
.callout--action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.callout__content {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.callout__dismiss {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: currentColor;
|
|
}
|
|
|
|
.callout__dismiss:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.callout__dismiss svg {
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.callout.danger {
|
|
border-color: color-mix(in srgb, var(--danger) 34%, var(--border));
|
|
background: linear-gradient(
|
|
135deg,
|
|
color-mix(in srgb, var(--danger) 14%, var(--bg-elevated)) 0%,
|
|
color-mix(in srgb, var(--danger) 8%, var(--bg-elevated)) 100%
|
|
);
|
|
color: color-mix(in srgb, var(--danger) 82%, var(--text-strong));
|
|
}
|
|
|
|
.callout.warn {
|
|
border-color: color-mix(in srgb, var(--warn) 34%, var(--border));
|
|
background: linear-gradient(
|
|
135deg,
|
|
color-mix(in srgb, var(--warn) 14%, var(--bg-elevated)) 0%,
|
|
color-mix(in srgb, var(--warn) 8%, var(--bg-elevated)) 100%
|
|
);
|
|
color: color-mix(in srgb, var(--warn) 82%, var(--text-strong));
|
|
}
|
|
|
|
.callout.info {
|
|
border-color: rgba(59, 130, 246, 0.25);
|
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
|
|
color: var(--info);
|
|
}
|
|
|
|
.callout.success {
|
|
border-color: rgba(34, 197, 94, 0.25);
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
|
|
color: var(--ok);
|
|
}
|
|
|
|
/* Pending routes share the native mascot without exposing transient panel text. */
|
|
.lazy-view-state--loading {
|
|
display: grid;
|
|
flex: 1 1 auto;
|
|
place-items: center;
|
|
min-width: 0;
|
|
min-height: min(50dvh, 360px);
|
|
width: 100%;
|
|
margin: auto;
|
|
}
|
|
|
|
/* Lazy route load failure — a centered panel state, not a stretched callout. */
|
|
.lazy-view-error {
|
|
margin: auto;
|
|
display: grid;
|
|
gap: 8px;
|
|
justify-items: center;
|
|
text-align: center;
|
|
max-width: 440px;
|
|
padding: 48px 24px;
|
|
}
|
|
|
|
.lazy-view-error--inline {
|
|
margin: 16px auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.lazy-view-error__icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 50%;
|
|
background: var(--danger-subtle);
|
|
color: var(--danger);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* A stale-chunk reload prompt is routine after an update, not a failure. */
|
|
.lazy-view-error--stale .lazy-view-error__icon {
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.lazy-view-error__icon svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.lazy-view-error__title {
|
|
font-size: 15px;
|
|
font-weight: 650;
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.lazy-view-error__subtitle {
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.lazy-view-error__action {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.lazy-view-error__detail {
|
|
margin-top: 8px;
|
|
max-width: 100%;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* Compaction indicator */
|
|
.compaction-indicator {
|
|
align-self: center;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
line-height: 1.2;
|
|
padding: 6px 14px;
|
|
margin-bottom: 8px;
|
|
border-radius: var(--radius-full);
|
|
border: 1px solid var(--border);
|
|
background: var(--panel-strong);
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
animation: fade-in 0.2s var(--ease-out);
|
|
}
|
|
|
|
.compaction-indicator svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.compaction-indicator--active {
|
|
color: var(--info);
|
|
border-color: rgba(59, 130, 246, 0.35);
|
|
}
|
|
|
|
.compaction-indicator--active svg {
|
|
animation: compaction-spin 1s linear infinite;
|
|
}
|
|
|
|
.compaction-indicator--complete {
|
|
color: var(--ok);
|
|
border-color: rgba(34, 197, 94, 0.35);
|
|
}
|
|
|
|
.compaction-indicator--fallback {
|
|
color: #d97706;
|
|
border-color: rgba(217, 119, 6, 0.35);
|
|
}
|
|
|
|
.compaction-indicator--fallback-cleared {
|
|
color: var(--ok);
|
|
border-color: rgba(34, 197, 94, 0.35);
|
|
}
|
|
|
|
@keyframes compaction-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
openclaw-chat-session-rail {
|
|
display: contents;
|
|
}
|
|
|
|
.chat-session-rail {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 12px;
|
|
z-index: 30;
|
|
border: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--card) 96%, transparent);
|
|
box-shadow: var(--shadow-lg);
|
|
animation: fade-in 0.2s var(--ease-out);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.chat-session-rail--pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
width: min(390px, calc(100% - 24px));
|
|
min-height: 40px;
|
|
padding: 4px 6px 4px 10px;
|
|
border-radius: 999px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.chat-session-rail--pill:hover {
|
|
border-color: var(--border-strong);
|
|
background: var(--card);
|
|
}
|
|
|
|
.chat-session-rail--expanded {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(400px, calc(100% - 24px));
|
|
max-height: min(82%, 680px);
|
|
overflow: hidden;
|
|
border-radius: var(--radius-xl);
|
|
}
|
|
|
|
.chat-session-rail--restore {
|
|
width: 28px;
|
|
border-radius: var(--radius-md);
|
|
color: var(--muted);
|
|
opacity: 0.45;
|
|
transition: opacity 0.15s var(--ease-out);
|
|
}
|
|
|
|
.chat-session-rail--restore:hover,
|
|
.chat-session-rail--restore:focus-visible {
|
|
color: var(--text);
|
|
opacity: 1;
|
|
}
|
|
|
|
.chat-session-rail__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
flex: 0 0 auto;
|
|
padding: 12px 10px 10px 14px;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
|
}
|
|
|
|
.chat-session-rail__header-copy {
|
|
display: grid;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.chat-session-rail__status-row,
|
|
.chat-session-rail__status,
|
|
.chat-session-rail__actions,
|
|
.chat-session-rail__plan-heading,
|
|
.chat-session-rail__prs,
|
|
.chat-session-rail__pr {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-session-rail__status-row {
|
|
gap: 8px;
|
|
min-width: 0;
|
|
min-height: 18px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.chat-session-rail__status {
|
|
--rail-health-color: var(--muted);
|
|
gap: 5px;
|
|
min-width: 0;
|
|
color: var(--rail-health-color);
|
|
font-size: 11px;
|
|
font-weight: 650;
|
|
line-height: 1;
|
|
}
|
|
|
|
.chat-session-rail__status--critical {
|
|
padding: 4px 7px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--rail-health-color) 14%, transparent);
|
|
font-size: 10px;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.chat-session-rail__status-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 auto;
|
|
border-radius: 50%;
|
|
background: var(--rail-health-color);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--rail-health-color) 13%, transparent);
|
|
}
|
|
|
|
.chat-session-rail__status-icon {
|
|
display: inline-flex;
|
|
width: 13px;
|
|
height: 13px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.chat-session-rail__status-icon svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.chat-session-rail__status[data-health="on-track"],
|
|
.chat-session-rail__status[data-health="done"],
|
|
.chat-session-rail__status[data-health="wrapping-up"] {
|
|
--rail-health-color: var(--ok);
|
|
}
|
|
|
|
.chat-session-rail__status[data-health="grinding"] {
|
|
--rail-health-color: var(--accent);
|
|
}
|
|
|
|
.chat-session-rail__status[data-health="stuck"],
|
|
.chat-session-rail__status[data-health="waiting-on-user"] {
|
|
--rail-health-color: var(--warn);
|
|
}
|
|
|
|
.chat-session-rail__status[data-health="failed"] {
|
|
--rail-health-color: var(--danger);
|
|
}
|
|
|
|
.chat-session-rail__timing {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-session-rail__headline {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--text);
|
|
font-size: 12.5px;
|
|
font-weight: 650;
|
|
line-height: 1.35;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-session-rail__subtitle {
|
|
color: var(--muted);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.chat-session-rail__expand {
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
padding: 4px;
|
|
overflow: hidden;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-session-rail__hide,
|
|
.chat-session-rail__toggle,
|
|
.chat-session-rail__submit {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-session-rail__actions {
|
|
gap: 2px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.chat-session-rail__digest {
|
|
flex: 0 0 auto;
|
|
padding: 0 14px;
|
|
}
|
|
|
|
.chat-session-rail__assessment {
|
|
margin: 11px 0 0;
|
|
color: var(--text);
|
|
font-size: 12.5px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.chat-session-rail__plan {
|
|
margin-top: 11px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.chat-session-rail__plan-heading {
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
color: var(--muted);
|
|
font-size: 10.5px;
|
|
font-weight: 650;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.chat-session-rail__plan-list {
|
|
display: grid;
|
|
gap: 5px;
|
|
margin: 8px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.chat-session-rail__plan-item {
|
|
display: grid;
|
|
grid-template-columns: 14px minmax(0, 1fr);
|
|
gap: 5px;
|
|
color: var(--text);
|
|
font-size: 11.5px;
|
|
}
|
|
|
|
.chat-session-rail__plan-item[data-status="completed"] {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-session-rail__plan-icon {
|
|
color: var(--accent);
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-session-rail__prs {
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 11px;
|
|
}
|
|
|
|
.chat-session-rail__pr {
|
|
gap: 5px;
|
|
padding: 4px 7px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
color: var(--text);
|
|
font-size: 10.5px;
|
|
line-height: 1;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.chat-session-rail__pr:hover {
|
|
border-color: var(--border-strong);
|
|
color: var(--text);
|
|
}
|
|
|
|
.chat-session-rail__pr-checks,
|
|
.chat-session-rail__timestamp,
|
|
.chat-session-rail__hint,
|
|
.chat-session-rail__empty {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-session-rail__thread {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
min-height: 96px;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
margin-top: 12px;
|
|
padding: 12px 14px 16px;
|
|
overflow-y: auto;
|
|
border-top: 1px solid var(--border);
|
|
overscroll-behavior-y: contain;
|
|
}
|
|
|
|
.chat-session-rail__empty {
|
|
margin: auto 0;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-session-rail__exchange {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 12.5px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.chat-session-rail__exchange + .chat-session-rail__exchange {
|
|
padding-top: 13px;
|
|
border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
|
|
}
|
|
|
|
.chat-session-rail__question {
|
|
justify-self: end;
|
|
max-width: 90%;
|
|
padding: 6px 9px;
|
|
border-radius: var(--radius-md) var(--radius-md) 3px var(--radius-md);
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.chat-session-rail__answer {
|
|
color: var(--text);
|
|
}
|
|
|
|
.chat-session-rail__answer > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.chat-session-rail__answer > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.chat-session-rail__timestamp {
|
|
font-size: 10.5px;
|
|
}
|
|
|
|
.chat-session-rail__hint {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chat-session-rail__exchange--error .chat-session-rail__hint {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.chat-session-rail__exchange--pending .chat-session-rail__hint {
|
|
animation: chat-session-rail-pending-pulse 1.4s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes chat-session-rail-pending-pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.45;
|
|
}
|
|
}
|
|
|
|
.chat-session-rail__composer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 0 0 auto;
|
|
padding: 10px 10px 11px 14px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.chat-session-rail__prompt {
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.chat-session-rail__input {
|
|
width: 100%;
|
|
min-height: 34px;
|
|
padding: 7px 10px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--secondary);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.chat-session-rail__input:focus {
|
|
border-color: var(--border-strong);
|
|
outline: none;
|
|
}
|
|
|
|
.chat-session-rail__input::placeholder {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-main--rail-docked .chat-session-rail--expanded {
|
|
position: static;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: none;
|
|
border: 0;
|
|
border-left: 1px solid var(--border);
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.chat-session-rail {
|
|
position: fixed;
|
|
top: auto;
|
|
left: max(8px, var(--safe-area-left));
|
|
right: max(8px, var(--safe-area-right));
|
|
bottom: calc(108px + var(--safe-area-bottom));
|
|
z-index: 35;
|
|
width: auto;
|
|
}
|
|
|
|
.chat-session-rail--expanded {
|
|
max-height: min(58vh, 460px);
|
|
}
|
|
|
|
.chat-session-rail--restore {
|
|
left: auto;
|
|
width: 28px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.chat-session-rail,
|
|
.chat-session-rail__exchange--pending .chat-session-rail__hint {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* ===========================================
|
|
Code Blocks
|
|
=========================================== */
|
|
|
|
.code-block {
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
background: var(--secondary);
|
|
padding: 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border);
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .code-block,
|
|
:root[data-theme-mode="light"] .list-item,
|
|
:root[data-theme-mode="light"] .table-row,
|
|
:root[data-theme-mode="light"] .chip {
|
|
background: var(--bg);
|
|
}
|
|
|
|
:is(.code-block .hljs, .code-block-wrapper pre code.hljs) {
|
|
color: var(--text);
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-comment,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-quote {
|
|
color: var(--muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-keyword,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-selector-tag,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-subst {
|
|
color: #ff8a80;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-number,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-literal,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-variable,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-template-variable,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-tag .hljs-attr {
|
|
color: #79c0ff;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-string,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-doctag {
|
|
color: #a5d6ff;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-title,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-section,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-selector-id,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-function .hljs-title {
|
|
color: #d2a8ff;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-type,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-class .hljs-title,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-built_in,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-builtin-name {
|
|
color: #ffa657;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-attr,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-attribute,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-name,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-selector-class,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-selector-attr,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-selector-pseudo {
|
|
color: #7ee787;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-symbol,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-bullet,
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-link {
|
|
color: var(--accent-2);
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-meta {
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-deletion {
|
|
color: #ffa198;
|
|
background: rgba(248, 81, 73, 0.12);
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-addition {
|
|
color: #7ee787;
|
|
background: rgba(46, 160, 67, 0.12);
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
:is(.code-block, .code-block-wrapper pre code.hljs) .hljs-strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block .hljs, .code-block-wrapper pre code.hljs) {
|
|
color: var(--text);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-keyword,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-selector-tag,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-subst {
|
|
color: #cf222e;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-number,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-literal,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-variable,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-template-variable,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-tag
|
|
.hljs-attr {
|
|
color: #0550ae;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-string,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-doctag {
|
|
color: #0a3069;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-title,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-section,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-selector-id,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-function
|
|
.hljs-title {
|
|
color: #8250df;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-type,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-class
|
|
.hljs-title,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-built_in,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-builtin-name {
|
|
color: #953800;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-attr,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-attribute,
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-name,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-selector-class,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-selector-attr,
|
|
:root[data-theme-mode="light"]
|
|
:is(.code-block, .code-block-wrapper pre code.hljs)
|
|
.hljs-selector-pseudo {
|
|
color: #116329;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] :is(.code-block, .code-block-wrapper pre code.hljs) .hljs-meta {
|
|
color: #57606a;
|
|
}
|
|
|
|
.markdown-plain-text-fallback {
|
|
display: block;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
word-break: break-word;
|
|
font: inherit;
|
|
}
|
|
|
|
/* Code block wrapper chrome (generated by markdown renderer) */
|
|
|
|
.code-block-wrapper {
|
|
position: relative;
|
|
border-radius: var(--radius-sm);
|
|
overflow: visible;
|
|
margin-top: 0.75em;
|
|
}
|
|
|
|
.code-block-wrapper pre {
|
|
margin: 0;
|
|
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.code-block-wrapper pre:has(> code.markdown-block-art) {
|
|
background: var(--bg);
|
|
}
|
|
|
|
.code-block-wrapper :where(pre code.markdown-block-art) {
|
|
display: block;
|
|
min-width: 100%;
|
|
width: max-content;
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
font-variant-ligatures: none;
|
|
letter-spacing: 0;
|
|
line-height: 0.86;
|
|
overflow-wrap: normal;
|
|
white-space: pre;
|
|
word-break: normal;
|
|
}
|
|
|
|
.code-block-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 4px 8px 4px 12px;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .code-block-header {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.code-block-lang {
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 12px; /* was 11px */
|
|
text-transform: lowercase;
|
|
user-select: none;
|
|
}
|
|
|
|
.code-block-copy {
|
|
appearance: none;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
font-family: var(--font-body);
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
transition:
|
|
color 150ms ease,
|
|
background 150ms ease;
|
|
}
|
|
|
|
.code-block-copy:hover {
|
|
color: var(--text);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .code-block-copy:hover {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.code-block-copy__done {
|
|
display: none;
|
|
}
|
|
|
|
.code-block-copy.copied .code-block-copy__idle {
|
|
display: none;
|
|
}
|
|
|
|
.code-block-copy.copied .code-block-copy__done {
|
|
display: inline;
|
|
color: var(--ok);
|
|
}
|
|
|
|
.json-collapse {
|
|
margin-top: 0.75em;
|
|
}
|
|
|
|
.json-collapse summary {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
padding: 4px 8px;
|
|
user-select: none;
|
|
}
|
|
|
|
.json-collapse summary:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ===========================================
|
|
Lists
|
|
=========================================== */
|
|
|
|
.list {
|
|
display: grid;
|
|
gap: 8px;
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.list-item {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
|
|
gap: 16px;
|
|
align-items: start;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px;
|
|
background: var(--card);
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.list-item-clickable:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.list-item-selected {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.list-main {
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.list-item__detail-button {
|
|
width: 100%;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
padding: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.list-item__detail-button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.list-title {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.list-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.list-meta {
|
|
text-align: right;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
display: grid;
|
|
gap: 4px;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.list-meta .btn {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.list-meta .field input,
|
|
.list-meta .field textarea,
|
|
.list-meta .field select {
|
|
width: 100%;
|
|
}
|
|
|
|
@container (max-width: 560px) {
|
|
.list-item {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.list-meta {
|
|
min-width: 0;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
/* ===========================================
|
|
Chips - Compact and punchy
|
|
=========================================== */
|
|
|
|
.chip-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chip {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
padding: 5px 12px;
|
|
color: var(--muted);
|
|
background: var(--secondary);
|
|
transition:
|
|
border-color var(--duration-fast) var(--ease-out),
|
|
background var(--duration-fast) var(--ease-out),
|
|
transform var(--duration-fast) var(--ease-out);
|
|
}
|
|
|
|
.chip:hover {
|
|
border-color: var(--border-strong);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.chip input {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.chip-ok {
|
|
color: var(--ok);
|
|
border-color: rgba(34, 197, 94, 0.3);
|
|
background: var(--ok-subtle);
|
|
}
|
|
|
|
.chip-warn {
|
|
color: var(--warn);
|
|
border-color: rgba(245, 158, 11, 0.3);
|
|
background: var(--warn-subtle);
|
|
}
|
|
|
|
.chip-danger {
|
|
color: var(--danger);
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
background: var(--danger-subtle);
|
|
}
|
|
|
|
/* ===========================================
|
|
Data Table
|
|
=========================================== */
|
|
|
|
.data-table-search {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.data-table-search input {
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.data-table-search input:focus-visible {
|
|
border-color: var(--border-strong);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.data-table-search input::placeholder {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.data-table-container {
|
|
overflow: auto;
|
|
max-height: min(70vh, 860px);
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable both-edges;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.data-table {
|
|
--data-table-checkbox-col-width: 36px;
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.data-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 3;
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
background: var(--bg-elevated);
|
|
border-bottom: 1px solid var(--border);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.data-table th[data-sortable] {
|
|
transition: color var(--duration-fast) ease;
|
|
}
|
|
|
|
.data-table th[data-sortable]:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.data-table-sort-icon {
|
|
display: inline-flex;
|
|
vertical-align: middle;
|
|
margin-left: 4px;
|
|
opacity: 0.4;
|
|
transition: opacity var(--duration-fast) ease;
|
|
}
|
|
|
|
.data-table-sort-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.data-table th[data-sortable]:hover .data-table-sort-icon {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.data-table th[data-sort-dir="asc"] .data-table-sort-icon,
|
|
.data-table th[data-sort-dir="desc"] .data-table-sort-icon {
|
|
opacity: 1;
|
|
color: var(--text);
|
|
}
|
|
|
|
.data-table th[data-sort-dir="desc"] .data-table-sort-icon svg {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.data-table-empty-cell {
|
|
padding: 46px 16px !important;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.data-table-empty-state {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.data-table tbody tr {
|
|
transition: background var(--duration-fast) ease;
|
|
}
|
|
|
|
.data-table tbody tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.data-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Checkbox column */
|
|
.data-table-checkbox-col {
|
|
width: var(--data-table-checkbox-col-width);
|
|
min-width: var(--data-table-checkbox-col-width);
|
|
max-width: var(--data-table-checkbox-col-width);
|
|
box-sizing: border-box;
|
|
padding-left: 12px !important;
|
|
padding-right: 4px !important;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
position: sticky;
|
|
left: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.data-table th.data-table-checkbox-col {
|
|
z-index: 4;
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
td.data-table-checkbox-col {
|
|
background: var(--card);
|
|
}
|
|
|
|
.data-table tbody tr:hover td.data-table-checkbox-col {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.data-table-checkbox-col input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Sticky Key column (second column, after checkbox) */
|
|
.data-table .data-table-key-col {
|
|
position: sticky;
|
|
left: var(--data-table-checkbox-col-width);
|
|
z-index: 2;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.data-table th.data-table-key-col {
|
|
z-index: 4;
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
td.data-table-key-col {
|
|
background: var(--card);
|
|
box-shadow: 2px 0 4px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.data-table tbody tr:hover td.data-table-key-col {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
/* Bulk action bar */
|
|
.data-table-bulk-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--accent-subtle);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
|
|
.data-table-bulk-bar .btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Pagination */
|
|
.data-table-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--bg-elevated);
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.data-table-pagination__controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.data-table-pagination__controls button {
|
|
padding: 4px 12px;
|
|
font-size: 13px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--card);
|
|
color: var(--text);
|
|
transition:
|
|
background var(--duration-fast) ease,
|
|
border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.data-table-pagination__controls button:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.data-table-pagination__controls button:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Inline form fields for filter bars */
|
|
.field-inline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.field-inline span {
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.field-inline input[type="text"],
|
|
.field-inline input:not([type]) {
|
|
padding: 6px 10px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
outline: none;
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.field-inline input:focus-visible {
|
|
border-color: var(--border-strong);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.field-inline.checkbox {
|
|
gap: 4px;
|
|
}
|
|
|
|
/* ===========================================
|
|
Log Stream
|
|
=========================================== */
|
|
|
|
.log-stream {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
max-height: calc(100vh - 280px);
|
|
min-height: 200px;
|
|
overflow: auto;
|
|
container-type: inline-size;
|
|
}
|
|
|
|
.log-row {
|
|
display: grid;
|
|
grid-template-columns: 90px 70px minmax(140px, 200px) minmax(0, 1fr);
|
|
gap: 12px;
|
|
align-items: start;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 12px;
|
|
transition: background var(--duration-fast) ease;
|
|
}
|
|
|
|
.log-row:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.log-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.log-time {
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.log-level {
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 2px 6px;
|
|
width: fit-content;
|
|
}
|
|
|
|
.log-level.trace,
|
|
.log-level.debug {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.log-level.info {
|
|
color: var(--info);
|
|
border-color: rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.log-level.warn {
|
|
color: var(--warn);
|
|
border-color: var(--warn-subtle);
|
|
}
|
|
|
|
.log-level.error,
|
|
.log-level.fatal {
|
|
color: var(--danger);
|
|
border-color: var(--danger-subtle);
|
|
}
|
|
|
|
.log-chip.trace,
|
|
.log-chip.debug {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.log-chip.info {
|
|
color: var(--info);
|
|
border-color: rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.log-chip.warn {
|
|
color: var(--warn);
|
|
border-color: var(--warn-subtle);
|
|
}
|
|
|
|
.log-chip.error,
|
|
.log-chip.fatal {
|
|
color: var(--danger);
|
|
border-color: var(--danger-subtle);
|
|
}
|
|
|
|
.log-subsystem {
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.log-message {
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
@container (max-width: 620px) {
|
|
.log-row {
|
|
grid-template-columns: 70px 60px minmax(0, 1fr);
|
|
}
|
|
|
|
.log-subsystem {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ===========================================
|
|
Chat
|
|
=========================================== */
|
|
|
|
.shell--chat .chat {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Chat queue: compact pending rows aligned with the composer shell width. */
|
|
.chat-queue {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
width: calc(100% - 36px);
|
|
max-width: 48rem;
|
|
margin: 8px auto 0;
|
|
}
|
|
|
|
.chat-queue__item {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 2px 8px;
|
|
min-height: 30px;
|
|
padding: 3px 5px 3px 10px;
|
|
border-radius: var(--radius-md);
|
|
background: color-mix(in srgb, var(--text) 5%, transparent);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-queue__item--steered {
|
|
background: color-mix(in srgb, var(--accent) 7%, transparent);
|
|
}
|
|
|
|
.chat-queue__item--failed {
|
|
background: color-mix(in srgb, var(--danger) 8%, transparent);
|
|
}
|
|
|
|
.chat-queue__icon {
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.chat-queue__icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.75px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.chat-queue__item--failed .chat-queue__icon {
|
|
color: var(--danger);
|
|
}
|
|
|
|
/* Reconnect rows mirror the connection pill's amber status dot so the queue
|
|
reads as quiet auto-retry status, not a failure needing action. */
|
|
.chat-queue__dot {
|
|
flex-shrink: 0;
|
|
width: 7px;
|
|
height: 7px;
|
|
margin: 0 3.5px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--warn);
|
|
box-shadow: 0 0 8px color-mix(in srgb, var(--warn) 55%, transparent);
|
|
animation: pulse-subtle 2s ease-in-out infinite;
|
|
}
|
|
|
|
.chat-queue__item--reconnect .chat-queue__badge {
|
|
background: color-mix(in srgb, var(--warn) 14%, transparent);
|
|
color: color-mix(in srgb, var(--warn) 78%, var(--text-strong));
|
|
}
|
|
|
|
.chat-queue__badge {
|
|
flex-shrink: 0;
|
|
padding: 1px 7px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--text) 12%, transparent);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chat-queue__badge--steered {
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.chat-queue__item--failed .chat-queue__badge {
|
|
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.chat-queue__text {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--chat-text);
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Wraps onto its own flex line below the row (see renderChatQueueItem). */
|
|
.chat-queue__error {
|
|
flex-basis: 100%;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 0 0 3px 22px;
|
|
color: var(--danger);
|
|
font-size: 11.5px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.chat-queue__actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.chat-queue__steer,
|
|
.chat-queue__retry {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: none;
|
|
color: var(--accent);
|
|
font-size: 11.5px;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-queue__steer svg,
|
|
.chat-queue__retry svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.75px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.chat-queue__steer:hover:not(:disabled),
|
|
.chat-queue__retry:hover:not(:disabled) {
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
}
|
|
|
|
.chat-queue__remove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: none;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-queue__remove:hover {
|
|
color: var(--text);
|
|
background: color-mix(in srgb, var(--text) 10%, transparent);
|
|
}
|
|
|
|
.chat-queue__remove svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 2px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
/* Chat lines */
|
|
.chat-line {
|
|
display: flex;
|
|
}
|
|
|
|
.chat-line.user {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.chat-line.assistant,
|
|
.chat-line.other {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.chat-msg {
|
|
display: grid;
|
|
gap: 6px;
|
|
max-width: min(700px, 82%);
|
|
}
|
|
|
|
.chat-line.user .chat-msg {
|
|
justify-items: end;
|
|
}
|
|
|
|
/* Chat bubbles: canonical styles live in chat/grouped.css; the .chat-line
|
|
variants below only skin the loading-skeleton preview bubbles. */
|
|
.chat-line.user .chat-bubble {
|
|
border-color: transparent;
|
|
background: var(--accent-subtle);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .chat-line.user .chat-bubble {
|
|
border-color: color-mix(in srgb, var(--accent) 20%, transparent);
|
|
background: var(--accent-subtle);
|
|
}
|
|
|
|
.chat-line.assistant .chat-bubble {
|
|
border-color: transparent;
|
|
background: var(--secondary);
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .chat-line.assistant .chat-bubble {
|
|
border-color: var(--border);
|
|
background: var(--bg-muted);
|
|
}
|
|
|
|
@keyframes chatStreamPulse {
|
|
0%,
|
|
100% {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
50% {
|
|
border-color: var(--accent);
|
|
}
|
|
}
|
|
|
|
.chat-bubble.streaming {
|
|
animation: chatStreamPulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.chat-bubble.streaming {
|
|
animation: none;
|
|
border-color: var(--accent);
|
|
}
|
|
}
|
|
|
|
/* Reading indicator bubble sizing; dot styles live in chat/tool-cards.css. */
|
|
.chat-bubble.chat-reading-indicator {
|
|
width: fit-content;
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
/* ===========================================
|
|
QR Code
|
|
=========================================== */
|
|
|
|
.qr-wrap {
|
|
margin-top: 16px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
border: 1px dashed var(--border-strong);
|
|
padding: 16px;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.qr-wrap img {
|
|
width: 160px;
|
|
height: 160px;
|
|
border-radius: var(--radius-sm);
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
/* ===========================================
|
|
Exec Approval Modal
|
|
=========================================== */
|
|
|
|
.exec-approval-card {
|
|
width: 100%;
|
|
max-height: inherit;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 20px;
|
|
animation: scale-in 0.2s var(--ease-out);
|
|
}
|
|
|
|
.exec-approval-modal-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-height: calc(100dvh - 48px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.exec-approval-card--inline {
|
|
padding: 14px 16px;
|
|
border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
|
|
background: color-mix(in srgb, var(--warn) 5%, var(--card));
|
|
animation: none;
|
|
}
|
|
|
|
.exec-approval-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.exec-approval-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.exec-approval-sub {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.exec-approval-queue {
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
padding: 4px 10px;
|
|
}
|
|
|
|
.exec-approval-command {
|
|
margin-top: 12px;
|
|
max-height: min(40dvh, 320px);
|
|
padding: 10px 12px;
|
|
background: var(--secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
overflow-y: auto;
|
|
word-break: break-word;
|
|
white-space: pre-wrap;
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.exec-approval-command-span {
|
|
border-radius: 3px;
|
|
padding: 0 2px;
|
|
background: color-mix(in srgb, #f97316 34%, transparent);
|
|
color: var(--text);
|
|
}
|
|
|
|
.exec-approval-meta {
|
|
margin-top: 12px;
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.exec-approval-meta-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.exec-approval-meta-row span:last-child {
|
|
min-width: 0;
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
overflow-wrap: anywhere;
|
|
text-align: right;
|
|
}
|
|
|
|
.exec-approval-error {
|
|
margin-top: 10px;
|
|
font-size: 13px;
|
|
color: var(--danger);
|
|
}
|
|
|
|
.exec-approval-warning {
|
|
margin-top: 10px;
|
|
font-size: 13px;
|
|
color: var(--warn);
|
|
}
|
|
|
|
.exec-approval-actions {
|
|
margin-top: 16px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.exec-approval-actions .btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.exec-approval-list {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--card);
|
|
}
|
|
|
|
.exec-approval-list__heading {
|
|
padding: 2px 4px 6px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.exec-approval-list__item {
|
|
display: grid;
|
|
grid-template-columns: minmax(64px, 0.25fr) minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 7px 8px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
background: transparent;
|
|
color: var(--text);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.exec-approval-list__item:hover,
|
|
.exec-approval-list__item:focus-visible {
|
|
border-color: var(--border);
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.exec-approval-list__item:focus-visible {
|
|
outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.exec-approval-list__agent,
|
|
.exec-approval-list__command {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.exec-approval-list__agent {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.exec-approval-list__command {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.exec-approval-list__expiry {
|
|
color: var(--warn);
|
|
font: 11px/1.2 var(--mono);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ===========================================
|
|
Agents
|
|
=========================================== */
|
|
|
|
.agents-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 14px;
|
|
}
|
|
|
|
.agents-sidebar {
|
|
display: grid;
|
|
gap: 12px;
|
|
align-self: start;
|
|
}
|
|
|
|
.agents-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.agents-toolbar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agents-control-select {
|
|
flex: 1;
|
|
min-width: 0;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.agent-scope-control {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-scope-control__label {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 650;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-scope-control openclaw-agent-select {
|
|
min-width: 150px;
|
|
max-width: min(240px, 40vw);
|
|
}
|
|
|
|
.agent-scope-control .agent-select__trigger {
|
|
min-height: 34px;
|
|
border-color: var(--border);
|
|
border-radius: var(--radius-full);
|
|
background: var(--bg-elevated);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.agent-scope-control__label {
|
|
display: none;
|
|
}
|
|
|
|
.agent-scope-control openclaw-agent-select {
|
|
min-width: 128px;
|
|
max-width: 44vw;
|
|
}
|
|
}
|
|
|
|
.agent-select {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.agent-select::part(menu) {
|
|
width: min(320px, calc(100vw - 24px));
|
|
max-height: 320px;
|
|
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: var(--shadow-lg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.agent-select__trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-accent);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
outline: none;
|
|
text-align: left;
|
|
transition:
|
|
border-color var(--duration-fast) ease,
|
|
box-shadow var(--duration-fast) ease;
|
|
}
|
|
|
|
:root[data-theme-mode="light"] .agent-select__trigger {
|
|
background: white;
|
|
}
|
|
|
|
.agent-select__trigger:focus-visible {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.agent-select__trigger:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.agent-select__label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-select__chevron {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.agent-select__chevron svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.7px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.agent-select__avatar {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
flex: 0 0 auto;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.agent-select__avatar--text,
|
|
.agent-select__avatar--icon {
|
|
background: var(--secondary);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.agent-select__avatar--text::before {
|
|
content: attr(data-avatar);
|
|
}
|
|
|
|
.agent-select__avatar--icon svg,
|
|
.agent-select__footer-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.7px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.agent-select__badge {
|
|
flex: 0 0 auto;
|
|
padding: 1px 6px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
color: var(--muted);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.agent-select__option {
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.agent-select__separator {
|
|
height: 1px;
|
|
margin: 6px 4px;
|
|
background: var(--border);
|
|
}
|
|
|
|
.agent-select__option-copy {
|
|
display: grid;
|
|
flex: 1;
|
|
min-width: 0;
|
|
gap: 1px;
|
|
}
|
|
|
|
.agent-select__option-label {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-select__option-description {
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
line-height: 1.3;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-select__footer-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.agent-select__option .agent-select__avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.agents-toolbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.agents-refresh-btn {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn--ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.btn--ghost:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn--ghost:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.agents-main {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.agent-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-row {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
padding: 8px 12px;
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.agent-row:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.agent-row.active {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.agent-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--secondary);
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.agent-avatar--lg {
|
|
width: 48px;
|
|
height: 48px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.agent-info {
|
|
display: grid;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-title {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.agent-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.agent-header {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.agent-header-main {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.agent-header-meta {
|
|
display: grid;
|
|
justify-items: end;
|
|
gap: 6px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.agent-file-tabs {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.agent-tab-add {
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
background: transparent;
|
|
}
|
|
|
|
.agent-tab-add:hover {
|
|
color: var(--text);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.agent-identity-editor {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.agent-identity-editor__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-identity-editor__avatar {
|
|
flex: 0 0 auto;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
font-size: 24px;
|
|
}
|
|
|
|
.agent-identity-editor__avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.agent-identity-editor__fields {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-identity-editor__fields .field {
|
|
flex: 1 1 200px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-identity-editor__fields .agent-identity-editor__emoji {
|
|
flex: 0 1 96px;
|
|
}
|
|
|
|
.agent-identity-editor__hint {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.workspace-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--accent);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
padding: 2px 0;
|
|
word-break: break-all;
|
|
text-align: left;
|
|
transition: opacity var(--duration-fast) ease;
|
|
}
|
|
|
|
.workspace-link:hover {
|
|
opacity: 0.75;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.agent-chip-input {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-accent);
|
|
min-height: 38px;
|
|
cursor: text;
|
|
transition: border-color var(--duration-fast) ease;
|
|
}
|
|
|
|
.agent-chip-input:focus-within {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.agent-chip-input input,
|
|
.agent-chip-input input:focus-visible {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
box-shadow: none;
|
|
font-size: 13px;
|
|
padding: 0;
|
|
}
|
|
|
|
.agent-chip-input .chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.agent-chip-input .chip-remove {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 0 0 auto;
|
|
width: 18px;
|
|
height: 18px;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: none;
|
|
border-radius: var(--radius-full);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
line-height: 1;
|
|
transition:
|
|
background var(--duration-fast) var(--ease-out),
|
|
color var(--duration-fast) var(--ease-out),
|
|
opacity var(--duration-fast) var(--ease-out);
|
|
}
|
|
|
|
.agent-chip-input .chip-remove:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text);
|
|
}
|
|
|
|
.agent-chip-input .chip-remove:focus-visible:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: var(--text);
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.agent-chip-input .chip-remove:disabled {
|
|
opacity: 0.45;
|
|
cursor: default;
|
|
}
|
|
|
|
.agent-file-field {
|
|
min-height: clamp(320px, 56vh, 720px);
|
|
}
|
|
|
|
.field textarea.agent-file-textarea {
|
|
min-height: clamp(320px, 56vh, 720px);
|
|
}
|
|
|
|
.agent-file-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.agent-file-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.agent-file-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.md-preview-dialog__panel {
|
|
position: relative;
|
|
width: 100%;
|
|
min-height: min(76vh, 820px);
|
|
max-height: calc(100vh - 32px);
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid color-mix(in srgb, var(--border-strong) 84%, white 8%);
|
|
border-radius: calc(var(--radius-xl) + 6px);
|
|
background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, black 6%), var(--panel));
|
|
box-shadow:
|
|
0 32px 96px rgba(0, 0, 0, 0.48),
|
|
0 1px 0 rgba(255, 255, 255, 0.04) inset;
|
|
overflow: hidden;
|
|
transition:
|
|
width var(--duration-normal) var(--ease-out),
|
|
max-height var(--duration-normal) var(--ease-out),
|
|
margin var(--duration-normal) var(--ease-out);
|
|
}
|
|
|
|
.md-preview-dialog__header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 20px 22px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--panel) 90%, black 10%),
|
|
color-mix(in srgb, var(--panel) 96%, transparent 4%)
|
|
);
|
|
}
|
|
|
|
.md-preview-dialog__header-main {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.md-preview-dialog__eyebrow {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 700;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.md-preview-dialog__eyebrow svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.md-preview-dialog__title-wrap {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
|
|
.md-preview-dialog__title {
|
|
min-width: 0;
|
|
font-size: clamp(1.2rem, 1rem + 0.6vw, 1.75rem);
|
|
line-height: 1.08;
|
|
font-weight: 650;
|
|
letter-spacing: -0.03em;
|
|
color: var(--text-strong);
|
|
text-wrap: balance;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.md-preview-dialog__path {
|
|
min-width: 0;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.md-preview-dialog__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.md-preview-icon-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
border-radius: 12px;
|
|
border-color: color-mix(in srgb, var(--border) 78%, white 10%);
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--bg-elevated) 92%, white 8%),
|
|
color-mix(in srgb, var(--bg-elevated) 88%, black 12%)
|
|
);
|
|
color: color-mix(in srgb, var(--text) 86%, var(--muted));
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.045),
|
|
0 8px 20px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.md-preview-icon-btn:hover:not(:disabled) {
|
|
border-color: color-mix(in srgb, var(--border-strong) 78%, white 14%);
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--bg-hover) 88%, white 10%),
|
|
color-mix(in srgb, var(--bg-elevated) 84%, black 16%)
|
|
);
|
|
color: var(--text-strong);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.06),
|
|
0 10px 24px rgba(0, 0, 0, 0.24);
|
|
}
|
|
|
|
.md-preview-icon-btn[aria-pressed="true"] {
|
|
border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
|
|
color: var(--text-strong);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
|
0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
|
|
0 12px 28px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.md-preview-icon-btn > span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.md-preview-icon-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.md-preview-dialog__body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
padding: clamp(18px, 3vw, 28px);
|
|
background:
|
|
radial-gradient(circle at top right, rgba(255, 92, 92, 0.055), transparent 32%),
|
|
radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.045), transparent 28%),
|
|
linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--panel) 84%, black 16%),
|
|
color-mix(in srgb, var(--bg) 88%, black 12%)
|
|
);
|
|
}
|
|
|
|
.md-preview-dialog__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 0 22px 16px;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, white 6%);
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--panel) 96%, transparent 4%),
|
|
color-mix(in srgb, var(--panel) 92%, black 8%)
|
|
);
|
|
}
|
|
|
|
.md-preview-dialog__chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
max-width: 100%;
|
|
min-height: 32px;
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius-full);
|
|
border: 1px solid color-mix(in srgb, var(--border) 78%, white 10%);
|
|
background: color-mix(in srgb, var(--secondary) 72%, transparent);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.md-preview-dialog__chip strong {
|
|
font-weight: 600;
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.md-preview-dialog__chip.is-dirty {
|
|
border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
|
|
background: color-mix(in srgb, var(--accent-subtle) 72%, var(--secondary));
|
|
}
|
|
|
|
.md-preview-dialog__chip.is-missing {
|
|
border-color: color-mix(in srgb, var(--warn) 42%, var(--border));
|
|
background: color-mix(in srgb, var(--warn-subtle) 78%, var(--secondary));
|
|
}
|
|
|
|
.md-preview-dialog__chip.is-synced {
|
|
border-color: color-mix(in srgb, var(--accent-2) 36%, var(--border));
|
|
background: color-mix(in srgb, var(--accent-2-subtle) 72%, var(--secondary));
|
|
}
|
|
|
|
.md-preview-dialog__reader {
|
|
--md-preview-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
|
|
--md-preview-document-bg: color-mix(in srgb, var(--bg) 92%, var(--panel) 8%);
|
|
--cm-bg: transparent;
|
|
--cm-border: color-mix(in srgb, var(--border) 72%, white 10%);
|
|
--cm-code-bg: color-mix(in srgb, var(--bg-elevated) 72%, black 28%);
|
|
--cm-inline-code-bg: color-mix(in srgb, var(--secondary) 58%, transparent);
|
|
position: relative;
|
|
width: min(100%, 82ch);
|
|
margin: 0 auto;
|
|
padding: clamp(26px, 4vw, 56px);
|
|
border: 1px solid color-mix(in srgb, var(--border-strong) 70%, white 10%);
|
|
border-radius: calc(var(--radius-xl) + 2px);
|
|
background: linear-gradient(
|
|
180deg,
|
|
color-mix(in srgb, var(--md-preview-document-bg) 94%, white 6%),
|
|
var(--md-preview-document-bg)
|
|
);
|
|
box-shadow:
|
|
0 22px 54px rgba(0, 0, 0, 0.32),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.035);
|
|
}
|
|
|
|
.md-preview-dialog__reader::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 24%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 18%);
|
|
}
|
|
|
|
.md-preview-dialog__reader > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.md-preview-dialog__reader .cm-preview {
|
|
background: transparent;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown {
|
|
font-size: 15px;
|
|
line-height: 1.74;
|
|
color: var(--text);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :is(h1, h2, h3, h4, h5, h6) {
|
|
margin: 0 0 0.9em;
|
|
line-height: 1.08;
|
|
font-weight: 650;
|
|
letter-spacing: -0.03em;
|
|
color: var(--text-strong);
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown h1 {
|
|
font-family: var(--md-preview-serif);
|
|
font-size: clamp(2.2rem, 4.4vw, 3.35rem);
|
|
line-height: 0.98;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown h2 {
|
|
margin-top: 2.4rem;
|
|
padding-top: 1.3rem;
|
|
border-top: 1px solid color-mix(in srgb, var(--border) 82%, white 12%);
|
|
font-family: var(--md-preview-serif);
|
|
font-size: clamp(1.45rem, 2.1vw, 2rem);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown h3 {
|
|
margin-top: 1.9rem;
|
|
font-size: clamp(1.18rem, 1.4vw, 1.42rem);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :is(p, ul, ol, blockquote, pre, table, hr, details) {
|
|
margin-top: 0;
|
|
margin-bottom: 1.05rem;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :is(ul, ol) {
|
|
padding-left: 1.2rem;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :is(ul ul, ul ol, ol ul, ol ol) {
|
|
margin-top: 0.4rem;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown li + li {
|
|
margin-top: 0.32rem;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown blockquote {
|
|
padding: 0.95rem 1.1rem;
|
|
border-left: 3px solid color-mix(in srgb, var(--accent) 85%, white 15%);
|
|
border-radius: 0 var(--radius-md) var(--radius-md) 0;
|
|
background: color-mix(in srgb, var(--secondary) 64%, transparent);
|
|
color: color-mix(in srgb, var(--text) 82%, var(--muted));
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown pre {
|
|
padding: 16px 18px;
|
|
border: 1px solid color-mix(in srgb, var(--border) 88%, white 8%);
|
|
border-radius: var(--radius-lg);
|
|
background: color-mix(in srgb, var(--bg-elevated) 84%, black 16%);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :not(pre) > code {
|
|
padding: 0.16rem 0.42rem;
|
|
border: 1px solid color-mix(in srgb, var(--border) 82%, white 8%);
|
|
border-radius: var(--radius-sm);
|
|
background: color-mix(in srgb, var(--secondary) 62%, transparent);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown hr {
|
|
border: 0;
|
|
border-top: 1px solid color-mix(in srgb, var(--border) 82%, white 10%);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
overflow: hidden;
|
|
border: 1px solid color-mix(in srgb, var(--border) 82%, white 10%);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown :is(th, td) {
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, white 8%);
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown th {
|
|
background: color-mix(in srgb, var(--secondary) 56%, transparent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.md-preview-dialog__reader.sidebar-markdown tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen {
|
|
width: 100%;
|
|
max-height: calc(100vh - 20px);
|
|
margin: 0;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__header {
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 0;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__header-main {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip-path: inset(50%);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__actions {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__meta {
|
|
display: none;
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__body {
|
|
padding: clamp(10px, 1.5vw, 18px);
|
|
}
|
|
|
|
.md-preview-dialog__panel.fullscreen .md-preview-dialog__reader {
|
|
width: min(100%, 96ch);
|
|
padding: clamp(24px, 3vw, 52px);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.md-preview-dialog__panel {
|
|
width: 100%;
|
|
min-height: calc(100vh - 12px);
|
|
max-height: calc(100vh - 12px);
|
|
margin: 0;
|
|
border-radius: var(--radius-xl);
|
|
}
|
|
|
|
.md-preview-dialog__header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
padding: 16px 16px 14px;
|
|
}
|
|
|
|
.md-preview-dialog__actions {
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.md-preview-dialog__meta {
|
|
padding: 0 16px 14px;
|
|
}
|
|
|
|
.md-preview-dialog__body {
|
|
padding: 14px;
|
|
}
|
|
|
|
.md-preview-dialog__reader {
|
|
width: 100%;
|
|
padding: 20px 16px 22px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.md-preview-dialog__panel {
|
|
animation: none;
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.agent-tools-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.agent-tools-grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.agent-tools-runtime {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-tools-runtime-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
padding: 7px 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, var(--card) 86%, transparent);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition:
|
|
background-color var(--duration-fast) var(--ease-in-out),
|
|
border-color var(--duration-fast) var(--ease-in-out),
|
|
color var(--duration-fast) var(--ease-in-out);
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.agent-tools-runtime-chip:hover {
|
|
background: color-mix(in srgb, var(--card) 92%, transparent);
|
|
border-color: color-mix(in srgb, var(--border-strong) 58%, var(--border));
|
|
}
|
|
|
|
.agent-tools-runtime-chip:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.agent-tools-runtime-chip--more {
|
|
color: var(--muted);
|
|
cursor: default;
|
|
background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
|
|
}
|
|
|
|
.agent-tools-runtime-chip--more:hover {
|
|
background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.agent-tools-runtime-chip__meta {
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-tools-group {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--bg-elevated);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.agent-tools-group summary::-webkit-details-marker,
|
|
.agent-tool-summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.agent-tools-group summary::marker,
|
|
.agent-tool-summary::marker {
|
|
content: "";
|
|
}
|
|
|
|
.agent-tools-group__summary {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
justify-content: space-between;
|
|
padding: 12px 14px;
|
|
list-style: none;
|
|
transition:
|
|
background-color var(--duration-fast) var(--ease-in-out),
|
|
color var(--duration-fast) var(--ease-in-out);
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.agent-tools-group__summary::before {
|
|
content: "▸";
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
line-height: 20px;
|
|
transition: transform var(--duration-fast) var(--ease-in-out);
|
|
}
|
|
|
|
.agent-tools-group[open] .agent-tools-group__summary::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.agent-tools-group__summary:hover {
|
|
background: color-mix(in srgb, var(--bg-elevated) 96%, var(--text) 4%);
|
|
}
|
|
|
|
.agent-tools-group__summary:hover::before {
|
|
color: color-mix(in srgb, var(--text) 78%, var(--muted));
|
|
}
|
|
|
|
.agent-tools-group__summary:focus-visible {
|
|
outline: none;
|
|
box-shadow: inset var(--focus-ring);
|
|
}
|
|
|
|
.agent-tools-group__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.agent-tools-group__summary-main {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.agent-tools-group__preview {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
}
|
|
|
|
.agent-tools-group__preview > span {
|
|
min-width: 0;
|
|
max-width: min(180px, 100%);
|
|
padding: 2px 6px;
|
|
border: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, var(--card) 70%, transparent);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-tools-group__counts {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
font-variant-numeric: tabular-nums;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.agent-tools-group__counts > span {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-tools-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 0 12px 12px;
|
|
}
|
|
|
|
.agent-tools-list--stacked {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.agent-tool-card {
|
|
position: relative;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--card);
|
|
overflow: hidden;
|
|
scroll-margin-top: 16px;
|
|
}
|
|
|
|
.agent-tool-card[open] {
|
|
border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
|
|
}
|
|
|
|
.agent-tool-summary {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr) auto;
|
|
gap: 12px 16px;
|
|
align-items: center;
|
|
min-width: 0;
|
|
padding: 12px 92px 12px 12px;
|
|
list-style: none;
|
|
transition:
|
|
background-color var(--duration-fast) var(--ease-in-out),
|
|
color var(--duration-fast) var(--ease-in-out);
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.agent-tool-summary::after {
|
|
content: "▸";
|
|
position: absolute;
|
|
top: 18px;
|
|
right: 64px;
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
transition: transform var(--duration-fast) var(--ease-in-out);
|
|
}
|
|
|
|
.agent-tool-card[open] .agent-tool-summary::after {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.agent-tool-summary:hover {
|
|
background: color-mix(in srgb, var(--card) 97%, var(--text) 3%);
|
|
}
|
|
|
|
.agent-tool-summary:hover::after {
|
|
color: color-mix(in srgb, var(--text) 78%, var(--muted));
|
|
}
|
|
|
|
.agent-tool-summary:focus-visible {
|
|
outline: none;
|
|
box-shadow: inset var(--focus-ring);
|
|
}
|
|
|
|
.agent-tool-summary__main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-summary__title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-summary__badges {
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-summary__badges .agent-tool-badges {
|
|
margin-top: 0;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.agent-tool-summary__facts {
|
|
display: grid;
|
|
gap: 8px 12px;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
margin: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-summary__fact {
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-summary__fact dd {
|
|
margin: 2px 0 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.agent-tool-toggle {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
margin: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
.agent-tool-badges {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.agent-tool-title {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-tool-sub {
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
margin-top: 3px;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.agent-tool-details {
|
|
padding: 0 12px 12px;
|
|
border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
|
|
}
|
|
|
|
.agent-tool-card:not([open]) .agent-tool-details {
|
|
display: none;
|
|
}
|
|
|
|
.agent-tool-details-strip {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px 20px;
|
|
align-items: flex-start;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.agent-tool-detail {
|
|
min-width: 0;
|
|
}
|
|
|
|
.agent-tool-detail--inline {
|
|
max-width: min(100%, 260px);
|
|
}
|
|
|
|
.agent-tool-detail .label {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.agent-tool-card[open] .agent-tool-sub {
|
|
overflow: visible;
|
|
text-overflow: clip;
|
|
white-space: normal;
|
|
}
|
|
|
|
.agent-tool-jump {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
align-self: end;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.agent-tool-jump:hover {
|
|
color: var(--accent-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.agent-tool-jump:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.agent-tools-runtime-chip,
|
|
.agent-tools-group__summary,
|
|
.agent-tool-summary,
|
|
.agent-tools-group__summary::before,
|
|
.agent-tool-summary::after {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1180px) {
|
|
.agent-tool-summary {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.agent-tool-summary__facts {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.agent-tool-summary__badges .agent-tool-badges {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.agent-tools-group__summary {
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.agent-tools-group__summary::before {
|
|
line-height: 18px;
|
|
}
|
|
|
|
.agent-tools-group__counts {
|
|
justify-content: flex-start;
|
|
width: 100%;
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.agent-tool-summary {
|
|
grid-template-columns: 1fr;
|
|
padding-right: 92px;
|
|
}
|
|
|
|
.agent-tool-summary__facts {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.agent-tool-jump {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.agent-skills-groups {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.agent-skills-group {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.agent-skills-group summary {
|
|
list-style: none;
|
|
}
|
|
|
|
.agent-skills-header {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--muted);
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-skills-header > span:last-child {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.agent-skills-group summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.agent-skills-group summary::marker {
|
|
content: "";
|
|
}
|
|
|
|
.agent-skills-header::after {
|
|
content: "▸";
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
transition: transform var(--duration-fast) ease;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.agent-skills-group[open] .agent-skills-header::after {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.agent-skill-row {
|
|
align-items: flex-start;
|
|
gap: 18px;
|
|
}
|
|
|
|
.agent-skill-row .list-meta {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
min-width: auto;
|
|
}
|
|
|
|
.skills-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
@container (min-width: 900px) {
|
|
.skills-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.agent-header {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.agent-header-meta {
|
|
justify-items: start;
|
|
}
|
|
|
|
.agent-tools-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.agents-toolbar-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 6px;
|
|
}
|
|
|
|
.agents-control-select {
|
|
max-width: none;
|
|
}
|
|
|
|
.agents-toolbar-actions {
|
|
margin-left: 0;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
.cmd-palette {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
animation: scale-in 0.15s ease-out;
|
|
}
|
|
|
|
.cmd-palette__label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
padding: 0;
|
|
border: 0;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
clip-path: inset(50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cmd-palette__input {
|
|
width: 100%;
|
|
padding: 14px 18px;
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
outline: none;
|
|
}
|
|
|
|
.cmd-palette__input::placeholder {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.cmd-palette__results {
|
|
max-height: 320px;
|
|
overflow-y: auto;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.cmd-palette__group-label {
|
|
padding: 8px 18px 4px;
|
|
color: var(--muted);
|
|
font-size: 12px; /* was 11px */
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.cmd-palette__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 18px;
|
|
font-size: 14px;
|
|
transition: background var(--duration-fast) ease;
|
|
}
|
|
|
|
.cmd-palette__item:hover,
|
|
.cmd-palette__item--active {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.cmd-palette__item .nav-item__icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cmd-palette__item .nav-item__icon svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.cmd-palette__item-desc {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.cmd-palette__empty {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 16px 18px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.cmd-palette__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
padding: 8px 18px;
|
|
border-top: 1px solid var(--border);
|
|
font-size: 12px; /* was 11px */
|
|
color: var(--muted);
|
|
}
|
|
|
|
.cmd-palette__footer kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1px 5px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg);
|
|
font-family: var(--mono);
|
|
font-size: 12px; /* was 10px */
|
|
line-height: 1.4;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.agent-row {
|
|
padding: 8px 10px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-avatar--lg {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.agent-header {
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-header-main {
|
|
gap: 8px;
|
|
}
|
|
|
|
.exec-approval-card {
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.exec-approval-actions {
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.exec-approval-actions .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.exec-approval-command {
|
|
font-size: 12px;
|
|
padding: 8px 10px;
|
|
max-height: 40dvh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.table-head {
|
|
display: none;
|
|
}
|
|
|
|
.table-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 6px;
|
|
}
|
|
}
|
|
|
|
/* ── Shared collapse chevron ── */
|
|
|
|
.collapse-chevron {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform var(--duration-fast) ease;
|
|
}
|
|
|
|
.collapse-chevron svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.5px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.collapse-chevron--collapsed {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
/* Mobile pairing */
|
|
.device-pair-setup {
|
|
max-height: calc(100dvh - 48px);
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border-strong);
|
|
border-radius: var(--radius-xl);
|
|
background: color-mix(in srgb, var(--card) 96%, black 4%);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.device-pair-setup__header {
|
|
position: relative;
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: 12px;
|
|
padding: 28px 52px 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.device-pair-setup__header h2 {
|
|
margin: 0;
|
|
color: var(--text-strong);
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.device-pair-setup__header p {
|
|
max-width: 390px;
|
|
margin: 7px 0 0;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.device-pair-setup__header p.device-pair-setup__get-apps {
|
|
margin-top: 2px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.device-pair-setup__get-apps button {
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--text);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.device-pair-setup__get-apps button:hover {
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.device-pair-setup__get-apps button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.device-pair-setup__phone {
|
|
display: grid;
|
|
width: 44px;
|
|
height: 44px;
|
|
place-items: center;
|
|
border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
|
|
border-radius: 14px;
|
|
background: var(--accent-subtle);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.device-pair-setup__phone svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.device-pair-setup__close {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
}
|
|
|
|
.device-pair-setup__body {
|
|
display: grid;
|
|
justify-items: center;
|
|
gap: 15px;
|
|
padding: 0 28px 24px;
|
|
}
|
|
|
|
.device-pair-setup__access {
|
|
display: grid;
|
|
width: min(440px, 100%);
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.device-pair-setup__access legend {
|
|
margin: 0 auto 8px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.device-pair-setup__access label {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-elevated);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.device-pair-setup__access label:has(input:checked) {
|
|
border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
|
|
background: var(--accent-subtle);
|
|
}
|
|
|
|
.device-pair-setup__access:disabled label {
|
|
cursor: default;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.device-pair-setup__access input {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.device-pair-setup__access span {
|
|
display: grid;
|
|
gap: 3px;
|
|
}
|
|
|
|
.device-pair-setup__access strong {
|
|
color: var(--text-strong);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.device-pair-setup__access small {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.device-pair-setup__loading {
|
|
display: flex;
|
|
min-height: 260px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.device-pair-setup__spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--border-strong);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: device-pair-setup-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes device-pair-setup-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.device-pair-setup__spinner {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
.device-pair-setup__error {
|
|
width: 100%;
|
|
}
|
|
|
|
.device-pair-setup__error span {
|
|
display: block;
|
|
margin-top: 4px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.device-pair-setup__access-warning {
|
|
width: min(440px, 100%);
|
|
}
|
|
|
|
.device-pair-setup__access-warning span {
|
|
display: block;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.device-pair-setup__qr-frame {
|
|
display: grid;
|
|
width: min(320px, 100%);
|
|
aspect-ratio: 1;
|
|
place-items: center;
|
|
box-sizing: border-box;
|
|
padding: 18px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 22px;
|
|
background: #ffffff;
|
|
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.device-pair-setup__qr {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
user-select: none;
|
|
}
|
|
|
|
.device-pair-setup__qr-unavailable {
|
|
max-width: 220px;
|
|
color: #444444;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
|
|
.device-pair-setup__meta {
|
|
display: flex;
|
|
max-width: 100%;
|
|
align-items: center;
|
|
gap: 9px;
|
|
}
|
|
|
|
.device-pair-setup__gateway {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.device-pair-setup__gateways {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.device-pair-setup__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.device-pair-setup__fallback {
|
|
width: min(420px, 100%);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.device-pair-setup__fallback summary {
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.device-pair-setup__fallback code {
|
|
display: block;
|
|
max-height: 110px;
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
overflow-wrap: anywhere;
|
|
white-space: normal;
|
|
}
|
|
|
|
.device-pair-setup__pending {
|
|
display: flex;
|
|
width: 100%;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.device-pair-setup__waiting {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
}
|
|
|
|
.device-pair-setup__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 20px;
|
|
border-top: 1px solid var(--border);
|
|
background: color-mix(in srgb, var(--bg-elevated) 45%, transparent);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.device-pair-setup__footer a {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.device-pair-setup__footer a:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.device-pair-setup {
|
|
max-height: 90dvh;
|
|
}
|
|
|
|
.device-pair-setup__header {
|
|
padding: 22px 46px 16px;
|
|
}
|
|
|
|
.device-pair-setup__body {
|
|
padding: 0 18px 20px;
|
|
}
|
|
|
|
.device-pair-setup__qr-frame {
|
|
width: min(300px, 100%);
|
|
padding: 14px;
|
|
}
|
|
|
|
.device-pair-setup__access {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.md-preview-expand-btn .when-fullscreen {
|
|
display: none;
|
|
}
|
|
|
|
.md-preview-expand-btn.is-fullscreen .when-normal {
|
|
display: none;
|
|
}
|
|
|
|
.md-preview-expand-btn.is-fullscreen .when-fullscreen {
|
|
display: inline;
|
|
}
|
|
|
|
/* ── Session row primitives ──
|
|
Shared by the sidebar recents list and the chat session picker. Rows read
|
|
as plain text lines: transient state (run spinner, unread dot) leads the
|
|
title, attribute badges follow it, and the trailing aside stacks a relative
|
|
time and the management actions in one grid cell, so hovering swaps them
|
|
without any layout shift. */
|
|
.session-row-host {
|
|
position: relative;
|
|
}
|
|
|
|
.session-row-host--draft {
|
|
--draft-row-opacity: 1;
|
|
opacity: var(--draft-row-opacity);
|
|
}
|
|
|
|
.session-row-host--draft-owner .session-row-draft-indicator {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.session-row-host--draft-other {
|
|
--draft-row-opacity: 0.58;
|
|
background: color-mix(in srgb, var(--bg-muted) 44%, transparent);
|
|
}
|
|
|
|
.session-row-host--draft-other:hover,
|
|
.session-row-host--draft-other:focus-within,
|
|
.session-row-host--draft-other.sidebar-recent-session--selected {
|
|
--draft-row-opacity: 0.88;
|
|
}
|
|
|
|
.session-row-draft-indicator {
|
|
display: inline-grid;
|
|
width: 18px;
|
|
height: 18px;
|
|
flex: 0 0 auto;
|
|
place-items: center;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Unread indicator shared by the sidebar recents list, the chat session
|
|
picker, and the sessions page key cell. */
|
|
.session-unread-dot {
|
|
display: inline-block;
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 auto;
|
|
border-radius: var(--radius-full);
|
|
background: var(--accent);
|
|
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent);
|
|
}
|
|
|
|
.session-row-aside {
|
|
display: grid;
|
|
align-items: center;
|
|
justify-items: end;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.session-row-aside > * {
|
|
grid-area: 1 / 1;
|
|
}
|
|
|
|
.session-row-trail {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
transition: opacity var(--duration-fast) ease;
|
|
/* Display-only, and its opacity transition forms a stacking context that
|
|
would otherwise sit above the action buttons and swallow their clicks. */
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Attribute badges (attached automation, approval, cloud placement):
|
|
muted metadata that sits after the title inside the row link, outside the
|
|
trail/action overlap cell, so touch devices (which hide the trail) and
|
|
hovered rows keep them. */
|
|
.session-row-badges {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.session-row-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.session-row-badge--queued {
|
|
gap: 2px;
|
|
font-size: 10px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.session-row-badge--pull-request[data-pull-request-state="open"],
|
|
.session-row-badge--cloud[data-placement-state="active"] {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.session-row-badge--pull-request[data-pull-request-state="merged"] {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.session-row-badge--approval,
|
|
.session-approval-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: var(--warn);
|
|
}
|
|
|
|
.session-approval-badge svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
}
|
|
|
|
.session-row-badge--cloud[data-placement-state="failed"] {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.session-row-badge--cloud:is(
|
|
[data-placement-state="requested"],
|
|
[data-placement-state="provisioning"],
|
|
[data-placement-state="syncing"],
|
|
[data-placement-state="starting"],
|
|
[data-placement-state="draining"],
|
|
[data-placement-state="reconciling"]
|
|
) {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.session-row-badge--cloud[data-workspace-conflicts] {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.session-row-badge svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.6px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.session-row-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 1px;
|
|
}
|
|
|
|
.session-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
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;
|
|
}
|
|
|
|
.session-action svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
stroke: currentColor;
|
|
fill: none;
|
|
stroke-width: 1.6px;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.session-action:hover:not(:disabled) {
|
|
background: color-mix(in srgb, var(--bg-hover) 92%, transparent);
|
|
color: var(--text);
|
|
}
|
|
|
|
.session-action:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.session-row-host:hover .session-action,
|
|
.session-row-host:focus-within .session-action {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Disabled actions still surface on hover (dimmed) so the tooltip can
|
|
explain why archiving is unavailable instead of the button vanishing. */
|
|
.session-row-host:hover .session-action:disabled,
|
|
.session-row-host:focus-within .session-action:disabled {
|
|
opacity: 0.35;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.session-row-host:hover .session-row-trail,
|
|
.session-row-host:focus-within .session-row-trail {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Sidebar rows are now the direct management surface after removing the
|
|
duplicate picker; touch users need pin/menu controls without hover. */
|
|
@media (hover: none), (pointer: coarse) {
|
|
.sidebar-recent-session .session-action {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.sidebar-recent-session .session-action:disabled {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.sidebar-recent-session .session-row-trail {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.session-row-host--pinned .session-action--pin {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.session-run-spinner {
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
flex: 0 0 auto;
|
|
border: 1.5px solid color-mix(in srgb, var(--run) 28%, transparent);
|
|
border-top-color: var(--run);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.session-run-spinner,
|
|
.session-glyph__ring {
|
|
animation: session-run-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes session-run-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.session-run-spinner,
|
|
.session-glyph__ring {
|
|
animation: none;
|
|
border-color: var(--run);
|
|
}
|
|
}
|
|
|
|
/* ===========================================
|
|
Hover Marquee
|
|
=========================================== */
|
|
|
|
/* Truncated single-line labels that slide on hover to reveal the clipped
|
|
tail. lib/hover-marquee.ts measures the overflow and sets the custom
|
|
properties; without it the label stays a plain ellipsized span. Animates
|
|
text-indent so the resting ellipsis keeps rendering (text-overflow shows
|
|
no "…" for atomic inline children, ruling out a transformed wrapper). */
|
|
.hover-marquee {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
transition: text-indent 180ms ease-out;
|
|
}
|
|
|
|
.hover-marquee--scrolling {
|
|
text-overflow: clip;
|
|
text-indent: var(--hover-marquee-shift, 0);
|
|
transition-duration: var(--hover-marquee-duration, 600ms);
|
|
transition-timing-function: linear;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hover-marquee {
|
|
transition: none;
|
|
}
|
|
|
|
.hover-marquee--scrolling {
|
|
text-overflow: ellipsis;
|
|
text-indent: 0;
|
|
}
|
|
}
|
|
|
|
/* ---- Plugin tab embeds (plugin-served panels) ---- */
|
|
|
|
.plugin-tab-embed {
|
|
display: flex;
|
|
min-height: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.plugin-tab-embed__frame {
|
|
flex: 1;
|
|
min-height: 480px;
|
|
width: 100%;
|
|
border: none;
|
|
border-radius: 10px;
|
|
background: var(--card);
|
|
}
|
|
|
|
/* ── Provider brand icons (shared: chat picker, model providers page) ── */
|
|
|
|
.provider-brand-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.provider-brand-icon:not(.provider-brand-icon--fallback) {
|
|
background: currentColor;
|
|
mask: var(--provider-icon-url) center / contain no-repeat;
|
|
-webkit-mask: var(--provider-icon-url) center / contain no-repeat;
|
|
}
|
|
|
|
.provider-brand-icon--fallback {
|
|
border: 1px solid color-mix(in srgb, currentColor 48%, transparent);
|
|
border-radius: var(--radius-sm);
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.provider-brand-icon[data-provider-icon="codex"] {
|
|
color: #10a37f;
|
|
}
|
|
|
|
.provider-brand-icon[data-provider-icon="claude"] {
|
|
color: #d97757;
|
|
}
|
|
|
|
.provider-brand-icon[data-provider-icon="gemini"] {
|
|
color: #4285f4;
|
|
}
|
|
|
|
.provider-brand-icon[data-provider-icon="llamacpp"],
|
|
.provider-brand-icon[data-provider-icon="lmstudio"],
|
|
.provider-brand-icon[data-provider-icon="ollama"] {
|
|
color: var(--text-strong);
|
|
}
|
|
|
|
.provider-brand-icon[data-provider-icon="opencode"],
|
|
.provider-brand-icon[data-provider-icon="opencodego"] {
|
|
color: var(--text-strong);
|
|
}
|
|
/* Shared working-claw motion: chat and settings use the same body flex and
|
|
jaw snip timing so the brand activity signal stays consistent. */
|
|
@keyframes chatWorkingClawFlex {
|
|
0%,
|
|
6% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
10% {
|
|
transform: rotate(-4deg);
|
|
}
|
|
|
|
16% {
|
|
transform: rotate(3deg);
|
|
}
|
|
|
|
22%,
|
|
26% {
|
|
transform: rotate(-4deg);
|
|
}
|
|
|
|
32% {
|
|
transform: rotate(3deg);
|
|
}
|
|
|
|
42%,
|
|
100% {
|
|
transform: rotate(0deg);
|
|
}
|
|
}
|
|
|
|
@keyframes chatWorkingClawSnip {
|
|
0%,
|
|
6% {
|
|
transform: rotate(-10deg);
|
|
}
|
|
|
|
10% {
|
|
transform: rotate(-26deg);
|
|
}
|
|
|
|
16% {
|
|
transform: rotate(4deg);
|
|
}
|
|
|
|
22%,
|
|
26% {
|
|
transform: rotate(-24deg);
|
|
}
|
|
|
|
32% {
|
|
transform: rotate(4deg);
|
|
}
|
|
|
|
42%,
|
|
100% {
|
|
transform: rotate(-10deg);
|
|
}
|
|
}
|