Files
ST-Bionic-Memory-Ecology/style.css

4091 lines
80 KiB
CSS

/* ST-BME 样式 */
/* --- Overlay --- */
#st-bme-panel-overlay {
position: fixed;
inset: 0;
width: var(--bme-viewport-width, 100vw);
height: var(--bme-viewport-height, 100vh);
z-index: 9999;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
#st-bme-panel-overlay.active {
opacity: 1;
pointer-events: auto;
}
/* --- Panel Container --- */
#st-bme-panel {
width: 82vw;
height: 72vh;
min-width: 320px;
min-height: 320px;
max-width: 96vw;
max-height: 92vh;
background: var(--bme-surface, #131316);
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
border-radius: 8px;
display: flex;
flex-direction: column;
overflow: auto;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
transform: translateY(12px) scale(0.98);
transition: transform 0.25s ease;
resize: both;
/* 默认暗色表单范式;亮色主题见 :root[data-bme-color-scheme="light"] */
color-scheme: dark;
}
:root[data-bme-color-scheme="light"] #st-bme-panel {
color-scheme: light;
}
#st-bme-panel-overlay.active #st-bme-panel {
transform: translateY(0) scale(1);
}
/* --- Header --- */
.bme-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--bme-surface-container, #1f1f22);
border-bottom: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
flex-shrink: 0;
}
.bme-panel-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
color: var(--bme-primary, #e94560);
flex: 1;
min-width: 0;
}
.bme-panel-title i {
font-size: 16px;
}
.bme-panel-subtitle {
font-size: 11px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
margin-left: 8px;
font-weight: 400;
}
.bme-theme-picker {
position: relative;
margin-right: 4px;
}
.bme-fab-toggle-btn {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: var(--bme-on-surface-dim);
cursor: pointer;
border-radius: 4px;
font-size: 14px;
transition: all 0.15s;
margin-right: 2px;
}
.bme-fab-toggle-btn:hover {
background: var(--bme-surface-highest);
color: var(--bme-primary);
}
.bme-fab-toggle-btn[data-active="true"] {
color: var(--bme-primary);
}
.bme-fab-toggle-btn[data-active="false"] {
opacity: 0.45;
}
.bme-theme-picker-btn {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: var(--bme-on-surface-dim);
cursor: pointer;
border-radius: 4px;
font-size: 14px;
transition: all 0.15s;
}
.bme-theme-picker-btn:hover {
background: var(--bme-surface-highest);
color: var(--bme-primary);
}
.bme-theme-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
margin-top: 6px;
background: var(--bme-surface-container, #1f1f22);
border: 1px solid var(--bme-border);
border-radius: 8px;
padding: 4px;
min-width: 130px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
z-index: 100;
animation: bme-dropdown-in 0.12s ease-out;
}
.bme-theme-dropdown.open {
display: block;
}
@keyframes bme-dropdown-in {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.bme-theme-option {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 7px 10px;
border: none;
background: transparent;
color: var(--bme-on-surface);
font-size: 12.5px;
cursor: pointer;
border-radius: 5px;
transition: background 0.12s;
white-space: nowrap;
}
.bme-theme-option:hover {
background: var(--bme-surface-high);
}
.bme-theme-option.active {
background: var(--bme-primary-dim);
color: var(--bme-primary-text);
}
.bme-theme-swatch {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.bme-panel-close {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: var(--bme-on-surface-dim);
cursor: pointer;
border-radius: 4px;
font-size: 14px;
transition: all 0.15s;
}
.bme-panel-close:hover {
background: var(--bme-surface-highest);
color: var(--bme-on-surface);
}
/* --- Body (Desktop twin-panel) --- */
.bme-panel-body {
display: flex;
flex: 1;
overflow: hidden;
}
.bme-resize-handle {
width: 5px;
cursor: col-resize;
background: transparent;
transition: background 0.15s;
flex-shrink: 0;
position: relative;
z-index: 10;
}
.bme-resize-handle::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 3px;
height: 32px;
border-radius: 2px;
background: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.3));
opacity: 0;
transition: opacity 0.15s;
}
.bme-resize-handle:hover,
.bme-resize-handle.dragging {
background: var(--bme-primary-dim, rgba(233, 69, 96, 0.15));
}
.bme-resize-handle:hover::after,
.bme-resize-handle.dragging::after {
opacity: 1;
}
/* --- Sidebar (Desktop) --- */
.bme-panel-sidebar {
width: 280px;
min-width: 280px;
display: flex;
flex-direction: column;
background: var(--bme-surface-container, #1f1f22);
border-right: 1px solid var(--bme-border);
overflow: hidden;
}
/* --- Tab List (Sidebar vertical) --- */
.bme-tab-list {
display: flex;
gap: 2px;
padding: 8px 8px 0;
flex-shrink: 0;
}
.bme-tab-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 8px 4px;
border: none;
background: transparent;
color: var(--bme-on-surface-dim);
font-size: 11px;
cursor: pointer;
border-bottom: 2px solid transparent;
border-radius: 4px 4px 0 0;
transition: all 0.15s;
white-space: nowrap;
}
.bme-tab-btn:hover {
color: var(--bme-on-surface);
background: var(--bme-surface-high);
}
.bme-tab-btn.active {
color: var(--bme-primary);
border-bottom-color: var(--bme-primary);
background: var(--bme-surface-high);
}
.bme-tab-btn i {
font-size: 12px;
}
/* --- Tab Content --- */
.bme-tab-content {
flex: 1;
overflow-y: auto;
padding: 12px;
}
.bme-config-sidebar {
display: none;
flex: 1;
flex-direction: column;
gap: 14px;
padding: 18px 12px 16px;
overflow-y: auto;
}
.bme-config-sidebar-header {
padding: 0 2px;
}
.bme-config-sidebar-kicker,
.bme-config-workspace-kicker,
.bme-config-section-kicker {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.9px;
color: var(--bme-primary);
margin-bottom: 6px;
}
:root[data-bme-color-scheme="light"] .bme-config-sidebar-kicker,
:root[data-bme-color-scheme="light"] .bme-config-workspace-kicker,
:root[data-bme-color-scheme="light"] .bme-config-section-kicker {
color: var(--bme-primary-text);
}
.bme-config-sidebar-title {
font-size: 18px;
font-weight: 700;
color: var(--bme-on-surface);
margin-bottom: 6px;
}
.bme-config-sidebar-help,
.bme-config-workspace-desc,
.bme-config-section-desc,
.bme-config-card-subtitle {
font-size: 12px;
line-height: 1.5;
color: var(--bme-on-surface-dim);
}
.bme-config-nav {
display: flex;
gap: 8px;
}
.bme-config-nav-desktop {
flex-direction: column;
}
.bme-config-nav-mobile {
display: none;
}
.bme-config-nav-btn {
display: flex;
align-items: center;
gap: 10px;
border: 1px solid var(--bme-border);
background: var(--bme-surface-low);
color: var(--bme-on-surface-dim);
border-radius: 10px;
padding: 10px 12px;
cursor: pointer;
transition:
border-color 0.15s,
background 0.15s,
color 0.15s,
transform 0.15s;
font-size: 12px;
text-align: left;
}
.bme-config-nav-btn:hover {
border-color: var(--bme-primary);
color: var(--bme-on-surface);
background: var(--bme-surface-high);
}
.bme-config-nav-btn.active {
border-color: var(--bme-primary);
color: var(--bme-primary);
background: var(--bme-primary-dim);
}
.bme-config-nav-btn i {
font-size: 13px;
}
.bme-tab-pane {
display: none;
}
.bme-tab-pane.active {
display: block;
}
/* --- Stats Grid --- */
.bme-stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
margin-bottom: 12px;
}
.bme-stat-card {
background: var(--bme-surface-low, #1b1b1e);
border: 1px solid var(--bme-border);
border-radius: 6px;
padding: 10px;
}
.bme-stat-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--bme-on-surface-dim);
margin-bottom: 4px;
}
.bme-stat-value {
font-size: 20px;
font-weight: 700;
color: var(--bme-primary);
font-feature-settings: "tnum";
}
.bme-stat-value.warning {
color: var(--bme-accent3, #ffc107);
}
/* --- Section Headers --- */
.bme-section-header {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--bme-on-surface-dim);
margin: 12px 0 6px;
padding-bottom: 4px;
border-bottom: 1px solid var(--bme-border);
}
/* --- Recent List --- */
.bme-recent-list {
list-style: none;
padding: 0;
margin: 0;
}
.bme-recent-item {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 0;
cursor: pointer;
border-radius: 4px;
transition: background 0.1s;
}
.bme-recent-item:hover {
background: var(--bme-surface-high);
}
.bme-type-badge {
display: inline-block;
font-size: 9px;
font-weight: 700;
padding: 1px 5px;
border-radius: 3px;
flex-shrink: 0;
margin-top: 2px;
}
.bme-type-badge.character {
background: var(--bme-node-character);
color: #000;
}
.bme-type-badge.event {
background: var(--bme-node-event);
color: #000;
}
.bme-type-badge.location {
background: var(--bme-node-location);
color: #000;
}
.bme-type-badge.thread {
background: var(--bme-node-thread);
color: #000;
}
.bme-type-badge.rule {
background: var(--bme-node-rule);
color: #fff;
}
.bme-type-badge.synopsis {
background: var(--bme-node-synopsis);
color: #000;
}
.bme-recent-text {
font-size: 12px;
color: var(--bme-on-surface);
line-height: 1.3;
}
.bme-recent-meta {
font-size: 10px;
color: var(--bme-on-surface-dim);
margin-top: 2px;
}
/* --- Main (Graph) Area --- */
.bme-panel-main {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
background: var(--bme-surface-lowest, #0e0e11);
overflow: hidden;
}
.bme-graph-workspace {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
position: relative;
}
.bme-graph-overlay {
position: absolute;
inset: 58px 18px 52px;
display: none;
align-items: center;
justify-content: center;
padding: 18px;
background: rgba(6, 7, 10, 0.72);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;
z-index: 3;
pointer-events: none;
}
.bme-graph-overlay.active {
display: flex;
}
.bme-graph-overlay__text {
max-width: 320px;
text-align: center;
font-size: 12px;
line-height: 1.6;
color: var(--bme-on-surface);
}
.bme-mobile-graph-preview .bme-graph-overlay {
inset: 0;
border-radius: 0;
}
.bme-config-workspace {
display: none;
flex: 1;
flex-direction: column;
min-height: 0;
background:
radial-gradient(
circle at top right,
rgba(233, 69, 96, 0.1),
transparent 32%
),
linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
var(--bme-surface-lowest, #0e0e11);
}
#st-bme-panel.config-mode .bme-tab-content {
display: none;
}
#st-bme-panel.config-mode .bme-config-sidebar {
display: flex;
}
#st-bme-panel.config-mode .bme-graph-workspace {
display: none;
}
#st-bme-panel.config-mode .bme-config-workspace {
display: flex;
}
.bme-graph-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 12px;
background: var(--bme-surface, #131316);
border-bottom: 1px solid var(--bme-border);
flex-shrink: 0;
}
.bme-graph-toolbar-title {
font-size: 11px;
color: var(--bme-primary);
display: flex;
align-items: center;
gap: 6px;
}
.bme-graph-controls {
display: flex;
gap: 4px;
}
.bme-graph-controls button {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--bme-border);
border-radius: 4px;
background: var(--bme-surface-container);
color: var(--bme-on-surface-dim);
cursor: pointer;
font-size: 11px;
transition: all 0.15s;
}
.bme-graph-controls button:hover {
border-color: var(--bme-primary);
color: var(--bme-primary);
}
#bme-graph-canvas {
flex: 1;
width: 100%;
cursor: grab;
}
#bme-graph-canvas:active {
cursor: grabbing;
}
/* --- Graph Legend --- */
.bme-graph-legend {
display: flex;
gap: 12px;
padding: 6px 12px;
background: var(--bme-surface, #131316);
border-top: 1px solid var(--bme-border);
flex-shrink: 0;
flex-wrap: wrap;
}
.bme-legend-item {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
color: var(--bme-on-surface-dim);
}
.bme-legend-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
/* --- Status Bar --- */
.bme-graph-statusbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 12px;
background: var(--bme-surface-container);
border-top: 1px solid var(--bme-border);
font-size: 10px;
color: var(--bme-on-surface-dim);
flex-shrink: 0;
}
.bme-status-dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--bme-accent2, #4edea3);
margin-right: 4px;
}
/* --- Memory Browser Tab --- */
.bme-search-bar {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.bme-search-input {
flex: 1;
background: var(--bme-surface-lowest);
border: 1px solid var(--bme-border);
border-radius: 4px;
padding: 6px 10px;
font-size: 12px;
color: var(--bme-on-surface);
outline: none;
transition: border-color 0.15s;
}
.bme-search-input:focus {
border-color: var(--bme-primary);
box-shadow: 0 0 4px var(--bme-primary-dim);
}
.bme-search-input::placeholder {
color: var(--bme-on-surface-dim);
}
.bme-filter-select {
background: var(--bme-surface-lowest);
border: 1px solid var(--bme-border);
border-radius: 4px;
padding: 4px 8px;
font-size: 11px;
color: var(--bme-on-surface);
outline: none;
min-width: 7rem;
flex: 1 1 8rem;
}
.bme-memory-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.bme-memory-item {
display: block;
margin: 0;
padding: 0;
cursor: pointer;
list-style: none;
}
.bme-memory-card {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;
padding: 11px 12px;
border-radius: 10px;
background: var(--bme-surface-low, #1b1b1e);
border: 1px solid var(--bme-border);
transition:
background 0.15s,
border-color 0.15s,
box-shadow 0.15s;
}
.bme-memory-item:hover .bme-memory-card {
background: var(--bme-surface-container, #1f1f22);
border-color: var(--bme-border-active);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.bme-memory-item.selected .bme-memory-card {
background: var(--bme-primary-dim);
border-color: var(--bme-primary);
box-shadow: 0 0 0 1px var(--bme-border-active);
}
.bme-memory-card-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.bme-memory-card-head .bme-type-badge {
margin-top: 0;
flex-shrink: 0;
}
.bme-memory-scope-chip {
display: inline-block;
font-size: 9px;
font-weight: 600;
padding: 2px 8px;
border-radius: 999px;
letter-spacing: 0.02em;
color: var(--bme-on-surface-dim);
background: var(--bme-surface-high, #2a2a2d);
border: 1px solid var(--bme-border);
line-height: 1.3;
max-width: 100%;
word-break: break-word;
}
.bme-memory-name {
font-size: 13px;
font-weight: 650;
color: var(--bme-on-surface);
line-height: 1.4;
letter-spacing: 0.01em;
word-break: break-word;
overflow-wrap: anywhere;
}
.bme-memory-content {
font-size: 11.5px;
color: var(--bme-on-surface-dim);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-word;
overflow-wrap: anywhere;
}
.bme-memory-foot {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 2px;
padding-top: 8px;
border-top: 1px solid var(--bme-border);
}
.bme-memory-stats {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.bme-memory-stat-pill {
display: inline-flex;
align-items: center;
padding: 3px 9px;
border-radius: 999px;
font-size: 10px;
font-weight: 600;
color: var(--bme-on-surface-dim);
background: var(--bme-surface-lowest, #0e0e11);
border: 1px solid var(--bme-border);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.bme-memory-region {
font-size: 10px;
line-height: 1.45;
color: var(--bme-on-surface-dim);
opacity: 0.95;
word-break: break-word;
overflow-wrap: anywhere;
}
/* --- Injection Preview Tab --- */
.bme-injection-preview {
font-family: "Cascadia Code", "Fira Code", monospace;
font-size: 11px;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-all;
background: var(--bme-surface-lowest);
border: 1px solid var(--bme-border);
border-radius: 4px;
padding: 12px;
color: var(--bme-on-surface);
max-height: 100%;
overflow-y: auto;
}
.bme-injection-section-label {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 2px 6px;
border-radius: 3px;
display: inline-block;
margin-bottom: 6px;
}
.bme-injection-section-label.core {
background: var(--bme-primary-dim);
color: var(--bme-primary);
}
.bme-injection-section-label.recall {
background: rgba(76, 175, 80, 0.15);
color: var(--bme-accent2);
}
.bme-injection-token-count {
font-size: 11px;
color: var(--bme-on-surface-dim);
margin-top: 8px;
text-align: right;
}
/* --- Actions Tab --- */
.bme-action-groups {
display: flex;
flex-direction: column;
gap: 20px;
}
.bme-action-group {
padding: 14px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.bme-action-group-header {
display: flex;
align-items: baseline;
gap: 10px;
margin-bottom: 12px;
}
.bme-action-group-title {
font-size: 13px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-action-group-sub {
font-size: 11px;
color: var(--bme-on-surface-dim);
}
.bme-action-group-extra {
margin-top: 10px;
}
.bme-action-range-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 8px;
}
.bme-action-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.bme-action-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 14px 8px;
background: var(--bme-surface-low);
border: 1px solid var(--bme-border);
border-radius: 6px;
color: var(--bme-on-surface-dim);
cursor: pointer;
font-size: 11px;
transition: all 0.15s;
}
.bme-action-btn:hover {
border-color: var(--bme-primary);
color: var(--bme-primary);
background: var(--bme-primary-dim);
}
.bme-action-btn i {
font-size: 18px;
}
.bme-action-btn:disabled,
.bme-action-btn.is-runtime-disabled {
opacity: 0.45;
cursor: not-allowed;
border-color: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface-dim);
background: rgba(255, 255, 255, 0.02);
}
.bme-action-btn:disabled:hover,
.bme-action-btn.is-runtime-disabled:hover {
border-color: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface-dim);
background: rgba(255, 255, 255, 0.02);
}
.bme-action-guard-banner {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(255, 197, 79, 0.25);
background: rgba(255, 197, 79, 0.08);
color: #ffd27a;
font-size: 11px;
line-height: 1.5;
}
.bme-action-btn.danger:hover {
border-color: #ff5252;
color: #ff5252;
background: rgba(255, 82, 82, 0.1);
}
/* --- Config Workspace --- */
.bme-config-workspace-header {
padding: 20px 22px 10px;
border-bottom: 1px solid var(--bme-border);
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-shrink: 0;
}
.bme-config-workspace-actions {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
flex-shrink: 0;
}
.bme-config-launch-btn {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 38px;
padding: 0 14px;
border-radius: 12px;
border: 1px solid var(--bme-border);
background: var(--bme-surface-high);
color: var(--bme-on-surface);
cursor: pointer;
transition:
border-color 0.2s ease,
background 0.2s ease,
color 0.2s ease,
transform 0.2s ease;
}
.bme-config-launch-btn:hover {
border-color: var(--bme-primary);
color: var(--bme-primary);
background: var(--bme-primary-dim);
transform: translateY(-1px);
}
.bme-config-launch-btn:disabled,
.bme-config-launch-btn.is-runtime-disabled {
opacity: 0.5;
cursor: not-allowed;
color: var(--bme-on-surface-dim);
border-color: var(--bme-border);
background: var(--bme-surface-low);
transform: none;
}
.bme-config-launch-hint {
font-size: 12px;
line-height: 1.4;
color: var(--bme-on-surface-dim);
text-align: right;
max-width: 220px;
}
.bme-config-workspace-title,
.bme-config-section-title {
margin: 0;
color: var(--bme-on-surface);
}
.bme-config-workspace-title {
font-size: 24px;
line-height: 1.2;
margin-bottom: 8px;
}
.bme-config-sections {
flex: 1;
overflow-y: auto;
padding: 18px 22px 22px;
}
.bme-config-section {
display: none;
}
.bme-config-section.active {
display: block;
}
.bme-config-section-head {
margin-bottom: 18px;
}
.bme-config-section-title {
font-size: 20px;
line-height: 1.25;
margin-bottom: 8px;
}
.bme-config-grid {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
}
.bme-config-grid-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bme-config-card,
.bme-prompt-card {
background: var(--bme-surface-container);
border: 1px solid var(--bme-border);
border-radius: 14px;
padding: 16px;
}
.bme-config-card-head,
.bme-prompt-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.bme-collapsible-card > summary {
list-style: none;
cursor: pointer;
}
.bme-collapsible-card > summary::-webkit-details-marker {
display: none;
}
.bme-collapsible-summary {
align-items: center;
}
.bme-collapsible-indicator {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
flex-shrink: 0;
border-radius: 999px;
border: 1px solid var(--bme-border);
background: var(--bme-surface-high);
color: var(--bme-on-surface-dim);
transition:
transform 0.2s ease,
color 0.2s ease,
background 0.2s ease;
}
.bme-collapsible-card[open] .bme-collapsible-indicator {
transform: rotate(180deg);
color: var(--bme-primary);
background: var(--bme-primary-dim);
}
.bme-config-card-title {
font-size: 14px;
font-weight: 700;
color: var(--bme-on-surface);
margin-bottom: 4px;
}
.bme-config-help {
font-size: 11px;
line-height: 1.5;
color: var(--bme-on-surface-dim);
margin-bottom: 10px;
}
.bme-config-subgroup + .bme-config-subgroup {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--bme-border);
}
.bme-config-subgroup-title {
font-size: 12px;
font-weight: 700;
color: var(--bme-on-surface);
margin-bottom: 4px;
}
.bme-config-subgroup-desc {
font-size: 11px;
line-height: 1.5;
color: var(--bme-on-surface-dim);
margin-bottom: 12px;
}
.bme-config-subdetails {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--bme-border);
}
.bme-config-subdetails-summary {
margin-bottom: 0;
}
.bme-config-subdetails[open] > summary {
margin-bottom: 12px;
}
.bme-config-row {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 12px;
}
.bme-config-row:last-child {
margin-bottom: 0;
}
.bme-config-row.inline {
flex-direction: row;
align-items: center;
}
.bme-config-row label {
font-size: 12px;
color: var(--bme-on-surface);
}
.bme-config-input,
.bme-config-textarea {
width: 100%;
box-sizing: border-box;
background-color: var(--bme-surface-high);
border: 1px solid var(--bme-border);
border-radius: 10px;
padding: 10px 12px;
color: var(--bme-on-surface);
font-size: 12px;
outline: none;
transition:
border-color 0.15s,
box-shadow 0.15s,
background-color 0.15s;
}
.bme-config-input:focus,
.bme-config-textarea:focus {
border-color: var(--bme-primary);
box-shadow: 0 0 0 2px var(--bme-primary-dim);
}
.bme-config-input:disabled,
.bme-config-textarea:disabled {
background-color: var(--bme-surface-low);
color: var(--bme-on-surface-dim);
border-color: var(--bme-border);
opacity: 0.85;
cursor: not-allowed;
}
/* 宿主样式 / WebKit 默认易把 select、自动填充 input 画成黑底 — 在面板内强制用主题色 */
#st-bme-panel input.bme-config-input,
#st-bme-panel textarea.bme-config-textarea,
#st-bme-panel input.bme-search-input,
#st-bme-panel .bme-node-detail-input,
#st-bme-panel .bme-node-detail-textarea,
#st-bme-panel .bme-task-editor-preset-select {
background-color: var(--bme-surface-high) !important;
color: var(--bme-on-surface) !important;
}
#st-bme-panel input.bme-search-input {
box-sizing: border-box;
-webkit-appearance: none;
appearance: none;
border: 1px solid var(--bme-border);
}
#st-bme-panel select.bme-config-input,
#st-bme-panel select.bme-filter-select,
#st-bme-panel select.bme-task-builtin-select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-sizing: border-box;
background-color: var(--bme-surface-high) !important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 14px 14px;
color: var(--bme-on-surface) !important;
cursor: pointer;
padding-right: 36px;
/* 影响原生下拉列表用亮色还是暗色绘制(否则在浅色面板下 option 可能出现黑底) */
color-scheme: dark;
}
:root[data-bme-color-scheme="light"]
#st-bme-panel
:is(select.bme-config-input, select.bme-filter-select, select.bme-task-builtin-select) {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
color-scheme: light;
}
#st-bme-panel select.bme-config-input option,
#st-bme-panel select.bme-filter-select option,
#st-bme-panel select.bme-task-builtin-select option {
background-color: var(--bme-surface-container);
color: var(--bme-on-surface);
}
/* 原生 option 在部分浏览器/系统上不用 CSS 变量;亮色主题用实色保证每项都是浅底深字 */
:root[data-bme-color-scheme="light"] #st-bme-panel select option {
background-color: #ffffff !important;
color: #1c1917 !important;
}
:root[data-bme-color-scheme="light"] #st-bme-panel select option:checked,
:root[data-bme-color-scheme="light"] #st-bme-panel select option:hover,
:root[data-bme-color-scheme="light"] #st-bme-panel select option:focus {
background-color: #e7e5e4 !important;
color: #1c1917 !important;
}
:root[data-bme-color-scheme="dark"] #st-bme-panel select option {
background-color: #2a2a2d !important;
color: #e4e1e6 !important;
}
:root[data-bme-color-scheme="dark"] #st-bme-panel select option:checked,
:root[data-bme-color-scheme="dark"] #st-bme-panel select option:hover,
:root[data-bme-color-scheme="dark"] #st-bme-panel select option:focus {
background-color: #3d3d42 !important;
color: #f4f4f5 !important;
}
#st-bme-panel input.bme-config-input:-webkit-autofill,
#st-bme-panel input.bme-config-input:-webkit-autofill:hover,
#st-bme-panel input.bme-config-input:-webkit-autofill:focus,
#st-bme-panel input.bme-search-input:-webkit-autofill,
#st-bme-panel input.bme-search-input:-webkit-autofill:hover,
#st-bme-panel input.bme-search-input:-webkit-autofill:focus,
#st-bme-panel .bme-node-detail-input:-webkit-autofill,
#st-bme-panel .bme-node-detail-input:-webkit-autofill:hover,
#st-bme-panel .bme-node-detail-input:-webkit-autofill:focus,
#st-bme-panel .bme-node-detail-textarea:-webkit-autofill,
#st-bme-panel .bme-node-detail-textarea:-webkit-autofill:hover,
#st-bme-panel .bme-node-detail-textarea:-webkit-autofill:focus {
-webkit-text-fill-color: var(--bme-on-surface) !important;
caret-color: var(--bme-on-surface);
border: 1px solid var(--bme-border) !important;
box-shadow: 0 0 0 1000px var(--bme-surface-high) inset !important;
transition: background-color 99999s ease-out;
}
.bme-config-textarea {
min-height: 180px;
resize: vertical;
line-height: 1.55;
font-family: "Cascadia Code", "Fira Code", monospace;
}
.bme-config-actions {
display: flex;
justify-content: flex-start;
gap: 8px;
flex-wrap: wrap;
margin-top: 8px;
}
.bme-model-fetch-block {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: -2px;
margin-bottom: 12px;
}
.bme-llm-preset-controls {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.bme-llm-preset-controls select {
min-width: 0;
width: 100%;
}
.bme-llm-preset-actions {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.bme-llm-preset-actions .bme-config-secondary-btn {
flex-shrink: 0;
}
.bme-config-secondary-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: fit-content;
min-height: 38px;
padding: 0 14px;
border-radius: 10px;
border: 1px solid var(--bme-border);
background: var(--bme-surface-high);
color: var(--bme-on-surface);
cursor: pointer;
font-size: 12px;
font-weight: 700;
transition:
border-color 0.15s,
background 0.15s,
color 0.15s;
}
.bme-config-secondary-btn:hover {
border-color: var(--bme-primary);
background: var(--bme-primary-dim);
color: var(--bme-primary);
}
.bme-config-secondary-btn i {
font-size: 12px;
}
.bme-model-select {
max-width: 100%;
}
.bme-config-test-btn {
display: inline-flex !important;
flex-direction: row !important;
align-items: center;
justify-content: center;
gap: 10px;
min-width: 164px;
min-height: 42px;
padding: 0 16px;
border-radius: 12px;
border: 1px solid var(--bme-border);
background: var(--bme-surface-high);
color: var(--bme-on-surface);
cursor: pointer;
font-size: 13px;
font-weight: 700;
line-height: 1;
white-space: nowrap !important;
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
transition:
border-color 0.15s,
background 0.15s,
color 0.15s,
transform 0.15s,
box-shadow 0.15s;
}
.bme-config-test-btn:hover {
border-color: var(--bme-primary);
background: var(--bme-primary-dim);
color: var(--bme-primary-text, var(--bme-on-surface));
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.bme-config-test-btn:active {
transform: translateY(0);
}
.bme-config-test-btn i {
color: var(--bme-primary);
font-size: 14px;
flex-shrink: 0;
}
.bme-config-test-btn span {
display: block;
}
.bme-config-guard-note {
display: none;
align-self: center;
font-size: 11px;
color: var(--bme-accent3, #ffc107);
background: rgba(255, 193, 7, 0.12);
border: 1px solid rgba(255, 193, 7, 0.18);
border-radius: 999px;
padding: 5px 10px;
}
.bme-config-guard-note.visible {
display: inline-flex;
}
.bme-guarded-card.is-disabled {
opacity: 0.72;
}
.bme-stage-card.stage-disabled {
border-color: rgba(255, 255, 255, 0.08);
}
.bme-inline-checkbox {
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
font-size: 12px;
font-weight: 700;
color: var(--bme-on-surface);
cursor: pointer;
}
.bme-inline-checkbox input {
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--bme-primary);
}
.bme-stage-card.stage-disabled .bme-stage-param {
opacity: 0.6;
}
.bme-config-placeholder {
background: var(--bme-surface-low);
border: 1px dashed var(--bme-border);
border-radius: 12px;
padding: 16px;
}
.bme-config-placeholder-title {
font-size: 13px;
font-weight: 700;
color: var(--bme-on-surface);
margin-bottom: 6px;
}
.bme-config-placeholder-help {
font-size: 11px;
color: var(--bme-on-surface-dim);
line-height: 1.5;
}
.bme-toggle-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-toggle-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 12px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.05);
cursor: pointer;
}
.bme-toggle-item:hover {
border-color: rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.035);
}
.bme-toggle-copy {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.bme-toggle-title {
font-size: 12px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-toggle-desc {
font-size: 11px;
line-height: 1.45;
color: var(--bme-on-surface-dim);
}
.bme-toggle-item input[type="checkbox"] {
-webkit-appearance: none;
appearance: none;
width: 40px;
height: 22px;
min-width: 40px;
margin-top: 2px;
flex-shrink: 0;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.08);
position: relative;
cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
.bme-toggle-item input[type="checkbox"]::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transition: transform 0.2s ease, background 0.2s ease;
}
.bme-toggle-item input[type="checkbox"]:checked {
background: var(--bme-primary, #a078ff);
border-color: var(--bme-primary, #a078ff);
}
.bme-toggle-item input[type="checkbox"]:checked::after {
transform: translateX(18px);
background: #fff;
}
/* --- CAPABILITY CARD GRID (Feature Toggles) --- */
.bme-capability-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
}
.bme-capability-card {
display: flex;
flex-direction: column;
background: var(--bme-surface-container);
border: 1px solid var(--bme-border);
border-radius: 12px;
padding: 16px;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
position: relative;
}
.bme-capability-card:hover {
border-color: var(--bme-primary);
box-shadow: 0 0 0 1px var(--bme-primary), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.bme-cap-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.bme-cap-icon {
width: 34px;
height: 34px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: var(--bme-primary);
color: #fff;
font-size: 15px;
flex-shrink: 0;
}
.bme-cap-title {
font-size: 13px;
font-weight: 600;
color: var(--bme-on-surface);
margin-bottom: 4px;
line-height: 1.3;
}
.bme-cap-desc {
font-size: 11.5px;
color: var(--bme-on-surface-dim);
line-height: 1.45;
}
.bme-capability-card input[type="checkbox"] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 40px;
height: 22px;
background: var(--bme-surface-high);
border-radius: 11px;
position: relative;
cursor: pointer;
transition: background 0.2s;
flex-shrink: 0;
border: 1px solid var(--bme-border);
color: transparent;
overflow: hidden;
}
.bme-capability-card input[type="checkbox"]::before {
content: "";
display: block;
position: absolute;
inset: 0;
}
.bme-capability-card input[type="checkbox"]::after {
content: "";
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--bme-on-surface-dim);
top: 2px;
left: 3px;
transition: transform 0.2s, background 0.2s;
}
.bme-capability-card input[type="checkbox"]:checked {
background: color-mix(in srgb, var(--bme-primary) 45%, var(--bme-surface-high));
border-color: color-mix(in srgb, var(--bme-primary) 55%, transparent);
}
.bme-capability-card input[type="checkbox"]:checked::after {
transform: translateX(18px);
background: var(--bme-primary-text, #ffb2b7);
}
/* --- STRIPE ROW LAYOUT (Advanced Settings) --- */
.bme-stripe-section {
display: flex;
flex-direction: column;
}
.bme-stripe-row {
display: flex;
gap: 32px;
padding: 20px 0;
border-bottom: 1px solid var(--bme-border);
}
.bme-stripe-row:last-child {
border-bottom: none;
}
.bme-stripe-label {
flex: 0 0 28%;
max-width: 28%;
padding-top: 4px;
}
.bme-stripe-label-title {
font-size: 14px;
font-weight: 600;
color: var(--bme-on-surface);
margin-bottom: 6px;
line-height: 1.3;
}
.bme-stripe-label-desc {
font-size: 12px;
color: var(--bme-on-surface-dim);
line-height: 1.55;
}
.bme-stripe-content {
flex: 1;
min-width: 0;
}
.bme-stripe-content > .bme-config-card {
margin-bottom: 0;
}
.bme-prompt-card-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bme-prompt-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 64px;
padding: 4px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface-dim);
font-size: 11px;
font-weight: 600;
}
.bme-prompt-status.is-custom {
background: var(--bme-primary-dim);
color: var(--bme-primary);
}
.bme-prompt-reset:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.bme-task-profile-workspace {
display: flex;
flex-direction: column;
gap: 16px;
}
.bme-task-shell {
display: flex;
flex-direction: column;
gap: 12px;
}
.bme-task-action-bar {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.bme-task-action-bar-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 6px;
}
.bme-task-segmented-control {
display: inline-flex;
background: var(--bme-surface-container);
border-radius: 10px;
padding: 3px;
gap: 2px;
border: 1px solid var(--bme-border);
}
.bme-task-segmented-control .bme-task-type-btn {
border: none;
border-radius: 8px;
min-height: 32px;
padding: 0 14px;
font-size: 12.5px;
background: transparent;
color: var(--bme-on-surface-dim);
transition: background 0.15s, color 0.15s;
}
.bme-task-segmented-control .bme-task-type-btn:hover {
background: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface);
}
.bme-task-segmented-control .bme-task-type-btn.active {
background: var(--bme-primary);
color: #fff;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.bme-task-master-detail {
display: flex;
gap: 0;
border: 1px solid var(--bme-border);
border-radius: 12px;
overflow: hidden;
min-height: 480px;
background: var(--bme-surface-container);
}
.bme-visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.bme-task-editor-kicker {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--bme-on-surface-dim);
line-height: 1.2;
}
.bme-task-editor-preset-select {
flex: 1;
min-width: 200px;
min-height: 40px;
font-size: 16px;
font-weight: 600;
padding: 6px 32px 6px 12px;
line-height: 1.35;
border-radius: 8px;
border: 1px solid var(--bme-border);
cursor: pointer;
}
.bme-task-profile-editor {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.bme-task-editor-header {
padding: 16px 20px;
border-bottom: 1px solid var(--bme-border);
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-task-editor-title-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.bme-task-editor-preset-select:hover,
.bme-task-editor-preset-select:focus {
border-color: var(--bme-primary);
outline: none;
}
.bme-task-editor-actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.bme-task-editor-actions .bme-config-secondary-btn {
font-size: 12px;
min-height: 28px;
padding: 0 10px;
gap: 4px;
}
.bme-task-profile-editor > .bme-task-subtabs {
padding: 0 20px;
border-bottom: 1px solid var(--bme-border);
}
.bme-task-profile-editor > .bme-task-tab-body {
flex: 1;
padding: 16px 20px;
overflow-y: auto;
}
.bme-task-header {
display: flex;
flex-direction: column;
gap: 14px;
}
.bme-task-type-tabs,
.bme-task-subtabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.bme-bulk-profile-btn {
font-size: 12px;
padding: 0 10px;
min-height: 28px;
opacity: 0.72;
transition: opacity 0.15s;
}
.bme-bulk-profile-btn:hover {
opacity: 1;
}
.bme-task-type-btn,
.bme-task-subtab-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 36px;
padding: 0 14px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.03);
color: var(--bme-on-surface-dim);
cursor: pointer;
transition:
border-color 0.15s,
background 0.15s,
color 0.15s;
}
.bme-task-type-btn:hover,
.bme-task-subtab-btn:hover {
border-color: rgba(255, 255, 255, 0.16);
color: var(--bme-on-surface);
}
.bme-task-type-btn.active,
.bme-task-subtab-btn.active {
border-color: var(--bme-primary);
background: var(--bme-primary-dim);
color: var(--bme-primary);
}
.bme-task-header-card {
gap: 16px;
}
.bme-task-profile-badges {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bme-task-pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface-dim);
font-size: 11px;
font-weight: 600;
}
.bme-task-pill.is-builtin {
background: var(--bme-primary-dim);
color: var(--bme-primary);
}
.bme-task-header-fields {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-task-field-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.bme-task-header-actions,
.bme-task-inline-actions,
.bme-task-toolbar-inline {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bme-task-action-sep {
width: 1px;
height: 20px;
background: rgba(255, 255, 255, 0.08);
flex-shrink: 0;
}
.bme-task-btn-danger {
color: var(--bme-on-surface-dim);
}
.bme-task-btn-danger:hover {
border-color: #e94560;
color: #e94560;
background: rgba(233, 69, 96, 0.08);
}
.bme-task-tab-body {
display: flex;
flex-direction: column;
gap: 14px;
}
.bme-task-editor-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
align-items: start;
}
.bme-task-editor-grid > .bme-config-card:last-child {
position: sticky;
top: 0;
}
.bme-task-regex-top {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.bme-task-block-count {
font-size: 11px;
color: var(--bme-on-surface-dim);
white-space: nowrap;
}
.bme-task-builtin-select {
max-width: 200px;
}
.bme-task-toolbar-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.bme-task-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-task-list-entry {
display: flex;
flex-direction: column;
gap: 8px;
}
.bme-task-list-item {
display: flex;
align-items: flex-start;
gap: 12px;
width: 100%;
padding: 12px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: rgba(255, 255, 255, 0.025);
color: var(--bme-on-surface);
text-align: left;
cursor: pointer;
transition:
border-color 0.15s,
background 0.15s,
transform 0.15s;
}
.bme-task-list-item:hover {
border-color: rgba(255, 255, 255, 0.12);
transform: translateY(-1px);
}
.bme-task-list-item.active {
border-color: var(--bme-primary);
background: rgba(255, 255, 255, 0.055);
}
.bme-task-list-index {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 28px;
padding: 0 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
color: var(--bme-on-surface-dim);
font-size: 11px;
font-weight: 700;
}
.bme-task-list-copy {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
flex: 1;
}
.bme-task-list-title {
font-size: 13px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-task-list-meta {
font-size: 11px;
line-height: 1.45;
color: var(--bme-on-surface-dim);
}
.bme-task-mini-btn {
min-width: 0;
min-height: 30px;
padding: 0 10px;
font-size: 11px;
border-radius: 8px;
}
.bme-task-empty,
.bme-task-note {
padding: 12px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.03);
border: 1px dashed rgba(255, 255, 255, 0.08);
color: var(--bme-on-surface-dim);
font-size: 12px;
line-height: 1.55;
}
.bme-regex-preview-screen {
gap: 14px;
}
.bme-regex-preview-hero,
.bme-regex-preview-panel,
.bme-regex-preview-source {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 16px;
}
.bme-regex-preview-hero__title,
.bme-regex-preview-panel__title {
font-size: 16px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-regex-preview-hero__subtitle,
.bme-regex-preview-panel__subtitle,
.bme-regex-preview-source__meta,
.bme-regex-preview-item__meta {
margin-top: 6px;
font-size: 12px;
line-height: 1.55;
color: var(--bme-on-surface-dim);
}
.bme-regex-preview-summary {
margin-top: 14px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.bme-regex-preview-summary__item {
padding: 10px 12px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.bme-regex-preview-summary__label {
display: block;
font-size: 11px;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--bme-on-surface-dim);
}
.bme-regex-preview-summary__value {
display: block;
margin-top: 4px;
font-size: 13px;
line-height: 1.45;
color: var(--bme-on-surface);
word-break: break-word;
}
.bme-regex-preview-panel__head,
.bme-regex-preview-source__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.bme-regex-preview-source__title {
font-size: 14px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-regex-preview-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-regex-preview-list .bme-task-empty {
margin: 0;
}
.bme-regex-preview-item {
padding: 14px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.bme-regex-preview-item.is-muted {
opacity: 0.82;
}
.bme-regex-preview-item__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.bme-regex-preview-item__title-group,
.bme-regex-preview-item__badges {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bme-regex-preview-item__index {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 34px;
height: 24px;
padding: 0 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: var(--bme-on-surface-dim);
font-size: 11px;
font-weight: 700;
}
.bme-regex-preview-item__name {
font-size: 13px;
font-weight: 700;
color: var(--bme-on-surface);
line-height: 1.4;
}
.bme-regex-preview-item__badge {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
border: 1px solid transparent;
}
.bme-regex-preview-item__badge.is-transform {
background: rgba(76, 175, 80, 0.12);
color: #9fe6a1;
border-color: rgba(76, 175, 80, 0.25);
}
.bme-regex-preview-item__badge.is-clear {
background: rgba(255, 193, 7, 0.13);
color: #ffd777;
border-color: rgba(255, 193, 7, 0.26);
}
.bme-regex-preview-item__badge.is-skip {
background: rgba(255, 255, 255, 0.08);
color: var(--bme-on-surface-dim);
border-color: rgba(255, 255, 255, 0.1);
}
.bme-regex-preview-item__badge.is-prompt {
background: rgba(33, 150, 243, 0.13);
color: #88d0ff;
border-color: rgba(33, 150, 243, 0.26);
}
.bme-regex-preview-item__details {
margin-top: 12px;
display: grid;
gap: 8px;
}
.bme-regex-preview-item__row {
display: grid;
grid-template-columns: 52px minmax(0, 1fr);
gap: 10px;
align-items: start;
font-size: 12px;
line-height: 1.55;
color: var(--bme-on-surface);
}
.bme-regex-preview-item__label {
color: var(--bme-on-surface-dim);
font-weight: 700;
}
.bme-regex-preview-item__row code {
white-space: pre-wrap;
word-break: break-word;
}
.bme-regex-preview-details > summary {
padding: 12px 14px;
}
.bme-regex-preview-details__body {
padding: 0 14px 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
.bme-task-editor-toggle {
margin-bottom: 12px;
}
/* ── 滑动条组件 ── */
.bme-range-group {
display: flex;
align-items: center;
gap: 10px;
}
.bme-range-input {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 4px;
background: var(--bme-border);
border-radius: 2px;
outline: none;
cursor: pointer;
}
.bme-range-input::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
background: var(--bme-primary);
border-radius: 50%;
cursor: pointer;
border: 2px solid rgba(0, 0, 0, 0.3);
transition: box-shadow 0.15s ease;
}
.bme-range-input::-webkit-slider-thumb:hover {
box-shadow: 0 0 0 4px var(--bme-primary-dim);
}
.bme-range-input::-moz-range-thumb {
width: 16px;
height: 16px;
background: var(--bme-primary);
border-radius: 50%;
cursor: pointer;
border: 2px solid rgba(0, 0, 0, 0.3);
}
.bme-range-input::-moz-range-track {
height: 4px;
background: var(--bme-border);
border-radius: 2px;
}
.bme-range-number {
width: 72px;
flex-shrink: 0;
text-align: center;
}
.bme-range-value {
font-size: 11px;
font-weight: 400;
color: var(--bme-primary);
margin-left: 6px;
}
.bme-task-section-label {
margin: 16px 0 10px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--bme-on-surface-dim);
}
.bme-task-toggle-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-task-profile-workspace .bme-config-textarea {
min-height: 160px;
}
.bme-task-debug-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.bme-debug-kv-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.bme-debug-kv-item {
display: grid;
grid-template-columns: 110px minmax(0, 1fr);
gap: 10px;
align-items: start;
}
.bme-debug-kv-key {
font-size: 11px;
color: var(--bme-on-surface-dim);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.bme-debug-kv-value {
font-size: 12px;
line-height: 1.5;
color: var(--bme-on-surface);
word-break: break-word;
}
.bme-debug-capability-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.bme-debug-capability-item {
padding: 12px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.bme-debug-capability-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 6px;
}
.bme-debug-capability-title {
font-size: 13px;
font-weight: 700;
color: var(--bme-on-surface);
}
.bme-debug-capability-desc {
font-size: 12px;
line-height: 1.5;
color: var(--bme-on-surface-dim);
}
.bme-debug-details {
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 12px;
background: rgba(255, 255, 255, 0.02);
overflow: hidden;
}
.bme-debug-details summary {
cursor: pointer;
padding: 12px 14px;
font-size: 12px;
font-weight: 700;
color: var(--bme-on-surface);
list-style: none;
}
.bme-debug-details summary::-webkit-details-marker {
display: none;
}
.bme-debug-pre {
margin: 0;
padding: 0 14px 14px;
white-space: pre-wrap;
word-break: break-word;
font-size: 12px;
line-height: 1.55;
color: var(--bme-on-surface);
font-family:
"JetBrains Mono",
"Cascadia Code",
"Fira Code",
Consolas,
monospace;
}
.bme-debug-empty {
padding: 0 14px 14px;
font-size: 12px;
color: var(--bme-on-surface-dim);
}
.bme-theme-card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.bme-theme-card {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 14px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.07);
background: rgba(255, 255, 255, 0.025);
color: var(--bme-on-surface);
text-align: left;
cursor: pointer;
transition:
border-color 0.15s,
background 0.15s,
transform 0.15s;
}
.bme-theme-card:hover {
border-color: var(--bme-primary);
transform: translateY(-1px);
}
.bme-theme-card.active {
border-color: var(--bme-primary);
background: var(--bme-primary-dim);
}
.bme-theme-card-swatch {
width: 16px;
height: 16px;
border-radius: 50%;
flex-shrink: 0;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}
.bme-theme-card-copy {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
flex: 1;
}
.bme-theme-card-title {
font-size: 13px;
font-weight: 700;
}
.bme-theme-card-desc {
font-size: 11px;
line-height: 1.45;
color: var(--bme-on-surface-dim);
}
.bme-theme-card.active .bme-theme-card-desc {
color: var(--bme-primary-text, var(--bme-on-surface));
}
.bme-theme-card-check {
opacity: 0;
color: var(--bme-primary);
}
.bme-theme-card.active .bme-theme-card-check {
opacity: 1;
}
/* --- Mobile Bottom Tab Bar --- */
.bme-panel-tabbar {
display: none;
border-top: 1px solid var(--bme-border);
background: var(--bme-surface-container);
flex-shrink: 0;
}
.bme-panel-tabbar .bme-tab-btn {
flex: 1;
flex-direction: column;
padding: 6px 4px;
font-size: 10px;
border-bottom: none;
border-radius: 0;
border-top: 2px solid transparent;
min-height: 48px;
}
.bme-panel-tabbar .bme-tab-btn.active {
border-top-color: var(--bme-primary);
border-bottom-color: transparent;
}
.bme-panel-tabbar .bme-tab-btn i {
font-size: 16px;
margin-bottom: 2px;
}
/* --- Node Detail Panel (sidebar overlay) --- */
.bme-node-detail {
position: absolute;
top: 0;
right: 0;
width: 280px;
height: 100%;
background: var(--bme-surface-container);
border-left: 1px solid var(--bme-border);
padding: 12px;
overflow-y: auto;
transform: translateX(100%);
transition: transform 0.2s ease;
z-index: 10;
}
.bme-node-detail.open {
transform: translateX(0);
}
.bme-node-detail-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 12px;
}
.bme-node-detail-actions {
display: flex;
align-items: center;
gap: 2px;
flex-shrink: 0;
}
.bme-detail-action-btn {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: var(--bme-primary);
cursor: pointer;
border-radius: 4px;
font-size: 13px;
transition: all 0.15s;
}
.bme-detail-action-btn:hover:not(:disabled) {
background: var(--bme-primary-dim, rgba(233, 69, 96, 0.15));
color: var(--bme-primary);
}
.bme-detail-action-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.bme-detail-action-danger {
color: var(--bme-accent3, #ffc107);
}
.bme-detail-action-danger:hover:not(:disabled) {
background: rgba(255, 193, 7, 0.12);
color: var(--bme-accent3, #ffc107);
}
.bme-node-detail h3 {
font-size: 14px;
color: var(--bme-on-surface);
margin: 0;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bme-node-detail-section {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--bme-on-surface-dim);
margin: 14px 0 8px;
padding-top: 10px;
border-top: 1px solid var(--bme-border);
}
.bme-node-detail-input,
.bme-node-detail-textarea {
width: 100%;
box-sizing: border-box;
background-color: var(--bme-surface-high);
border: 1px solid var(--bme-border);
border-radius: 6px;
color: var(--bme-on-surface);
font-size: 11px;
padding: 6px 8px;
-webkit-appearance: none;
appearance: none;
}
.bme-node-detail-textarea {
resize: vertical;
min-height: 52px;
line-height: 1.45;
font-family: inherit;
}
.bme-node-detail-field {
margin-bottom: 8px;
}
.bme-node-detail-field label {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--bme-on-surface-dim);
margin-bottom: 3px;
}
.bme-node-detail-field .value {
font-size: 12px;
color: var(--bme-on-surface);
line-height: 1.4;
}
/* --- Scrollbar --- */
.bme-tab-content::-webkit-scrollbar,
.bme-config-sidebar::-webkit-scrollbar,
.bme-config-sections::-webkit-scrollbar,
.bme-injection-preview::-webkit-scrollbar,
.bme-node-detail::-webkit-scrollbar {
width: 4px;
}
.bme-tab-content::-webkit-scrollbar-track,
.bme-config-sidebar::-webkit-scrollbar-track,
.bme-config-sections::-webkit-scrollbar-track,
.bme-injection-preview::-webkit-scrollbar-track,
.bme-node-detail::-webkit-scrollbar-track {
background: transparent;
}
.bme-tab-content::-webkit-scrollbar-thumb,
.bme-config-sidebar::-webkit-scrollbar-thumb,
.bme-config-sections::-webkit-scrollbar-thumb,
.bme-injection-preview::-webkit-scrollbar-thumb,
.bme-node-detail::-webkit-scrollbar-thumb {
background: var(--bme-surface-highest);
border-radius: 2px;
}
/* 移动端图谱预览 - 桌面端默认隐藏 */
.bme-mobile-graph-preview,
.bme-mobile-graph-status {
display: none;
}
/* ═══════ ⑤ 高级设置折叠 (desktop+mobile) ═══════ */
.bme-advanced-settings {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bme-advanced-settings > summary {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
font-size: 12px;
font-weight: 700;
color: var(--bme-on-surface-dim);
padding: 8px 0;
list-style: none;
user-select: none;
transition: color 0.15s;
}
.bme-advanced-settings > summary:hover {
color: var(--bme-on-surface);
}
.bme-advanced-settings > summary::-webkit-details-marker {
display: none;
}
.bme-advanced-settings > summary::after {
content: "▸";
font-size: 12px;
transition: transform 0.2s ease;
color: var(--bme-on-surface-dim);
}
.bme-advanced-settings[open] > summary::after {
transform: rotate(90deg);
color: var(--bme-primary);
}
/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
#st-bme-panel {
width: var(--bme-viewport-width, 100vw);
height: var(--bme-viewport-height, 100vh);
max-width: none;
max-height: none;
border-radius: 0;
resize: none;
}
.bme-panel-body {
flex-direction: column;
}
.bme-panel-sidebar {
width: 100%;
min-width: unset;
flex: 1;
border-right: none;
}
.bme-panel-sidebar > .bme-tab-list {
display: none;
}
.bme-tab-content {
padding: 12px 14px;
}
.bme-panel-main {
display: none;
}
.bme-regex-preview-hero,
.bme-regex-preview-panel,
.bme-regex-preview-source {
padding: 14px;
border-radius: 14px;
}
.bme-regex-preview-summary {
grid-template-columns: 1fr;
}
.bme-regex-preview-item__head,
.bme-regex-preview-source__head {
flex-direction: column;
align-items: stretch;
}
.bme-regex-preview-item__row {
grid-template-columns: 1fr;
gap: 4px;
}
/* ⑥ 图谱 tab 移动端全屏覆盖 */
.bme-panel-main.mobile-visible {
display: flex;
position: absolute;
inset: 0;
z-index: 20;
border-radius: 0;
}
.bme-panel-main.mobile-visible ~ .bme-panel-tabbar {
z-index: 21;
}
/* ② 底部 Tabbar safe-area + 触控增大 */
.bme-panel-tabbar {
display: flex;
padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bme-panel-tabbar .bme-tab-btn {
min-height: 52px;
gap: 3px;
font-size: 10px;
}
.bme-panel-tabbar .bme-tab-btn i {
font-size: 18px;
}
.bme-resize-handle,
.bme-config-sidebar {
display: none !important;
}
/* ④ 设置导航 pill + scroll-snap */
.bme-config-nav-mobile {
display: flex;
overflow-x: auto;
padding: 0 14px 8px;
margin-bottom: 4px;
-webkit-overflow-scrolling: touch;
gap: 6px;
scroll-snap-type: x mandatory;
scrollbar-width: none;
}
.bme-config-nav-mobile::-webkit-scrollbar {
display: none;
}
.bme-config-nav-mobile .bme-config-nav-btn {
flex: 0 0 auto;
white-space: nowrap;
scroll-snap-align: start;
padding: 10px 14px;
min-height: 44px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
}
/* ⑦ Config mode 移动端 */
.bme-config-workspace-header {
padding: 14px 14px 8px;
flex-direction: column;
align-items: stretch;
}
.bme-config-workspace-title {
font-size: 18px;
}
.bme-config-workspace-actions {
align-items: stretch;
}
.bme-config-launch-hint {
max-width: none;
text-align: left;
}
.bme-config-sections {
padding: 14px;
padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.bme-config-section-title {
font-size: 16px;
}
.bme-config-grid-2,
.bme-theme-card-grid,
.bme-task-field-grid,
.bme-task-editor-grid,
.bme-task-regex-top,
.bme-task-debug-grid {
grid-template-columns: 1fr;
}
.bme-config-card,
.bme-prompt-card {
padding: 14px;
border-radius: 12px;
}
.bme-config-card-title {
font-size: 13px;
}
.bme-debug-kv-item {
grid-template-columns: 1fr;
gap: 4px;
}
.bme-config-card-head,
.bme-prompt-card-head {
flex-direction: column;
align-items: flex-start;
}
.bme-prompt-card-actions {
width: 100%;
justify-content: space-between;
}
#st-bme-panel.config-mode .bme-panel-sidebar {
display: none;
}
#st-bme-panel.config-mode .bme-panel-main {
display: flex;
flex: 1;
}
.bme-config-workspace {
padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* ③ 通用触控目标 44px */
.bme-config-input,
.bme-config-textarea,
.bme-filter-select {
min-height: 44px;
font-size: 14px;
border-radius: 10px;
}
.bme-config-secondary-btn {
width: 100%;
min-height: 44px;
font-size: 13px;
}
.bme-config-test-btn {
width: 100%;
min-height: 46px;
}
.bme-config-actions {
width: 100%;
}
.bme-llm-preset-actions {
flex-direction: column;
align-items: stretch;
}
.bme-llm-preset-actions .bme-config-secondary-btn {
width: 100%;
}
.bme-inline-checkbox {
min-height: 44px;
gap: 12px;
padding: 6px 0;
font-size: 13px;
}
.bme-inline-checkbox input {
width: 20px;
height: 20px;
}
.bme-toggle-item {
padding: 14px;
}
.bme-toggle-item input[type="checkbox"] {
width: 44px;
height: 24px;
min-width: 44px;
}
.bme-toggle-item input[type="checkbox"]::after {
width: 18px;
height: 18px;
}
.bme-toggle-item input[type="checkbox"]:checked::after {
transform: translateX(20px);
}
.bme-config-row label {
font-size: 13px;
}
.bme-config-row {
gap: 8px;
margin-bottom: 14px;
}
/* ⑧ 任务预设工作区触控优化 */
.bme-task-toolbar-row,
.bme-task-header-actions,
.bme-task-inline-actions,
.bme-task-toolbar-inline {
width: 100%;
}
.bme-task-type-tabs,
.bme-task-subtabs {
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 4px;
gap: 6px;
scroll-snap-type: x mandatory;
scrollbar-width: none;
}
.bme-task-type-tabs::-webkit-scrollbar,
.bme-task-subtabs::-webkit-scrollbar {
display: none;
}
.bme-task-type-btn,
.bme-task-subtab-btn {
flex: 0 0 auto;
white-space: nowrap;
scroll-snap-align: start;
min-height: 40px;
padding: 0 16px;
font-size: 13px;
}
.bme-bulk-profile-btn {
min-height: 36px;
padding: 0 12px;
font-size: 11px;
}
.bme-task-list-item {
padding: 14px;
gap: 10px;
}
.bme-task-list-index {
min-width: 40px;
height: 32px;
}
.bme-task-field-grid {
gap: 10px;
}
.bme-task-header-actions {
gap: 6px;
}
.bme-task-header-actions .bme-config-secondary-btn {
flex: 1;
min-width: 0;
padding: 0 10px;
font-size: 11px;
}
.bme-task-builtin-select {
max-width: 100%;
}
/* Dashboard 统计卡片横向滚动 */
.bme-stats-grid {
display: flex;
gap: 6px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
scrollbar-width: none;
}
.bme-stats-grid::-webkit-scrollbar {
display: none;
}
.bme-stats-grid .bme-stat-card {
min-width: 105px;
flex-shrink: 0;
}
/* 搜索栏 */
.bme-search-bar {
flex-direction: column;
}
.bme-filter-select {
width: 100%;
}
/* 操作按钮增大 */
.bme-action-btn {
padding: 18px 8px;
font-size: 12px;
min-height: 80px;
}
.bme-action-btn i {
font-size: 22px;
}
/* 节点详情移动端全宽 */
.bme-node-detail {
width: 100%;
}
/* 图例 */
.bme-graph-legend {
font-size: 9px;
}
/* 移动端图谱预览 */
.bme-mobile-graph-preview {
display: block;
height: 200px;
border-radius: 6px;
overflow: hidden;
margin: 8px 0 0;
border: 1px solid var(--bme-border);
background: var(--bme-surface-lowest);
position: relative;
}
.bme-mobile-graph-preview canvas {
width: 100%;
height: 100%;
}
.bme-mobile-graph-label {
position: absolute;
top: 6px;
right: 8px;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--bme-accent2);
background: var(--bme-surface);
padding: 1px 6px;
border-radius: 3px;
}
.bme-mobile-graph-status {
display: flex;
margin-bottom: 12px;
border-radius: 0 0 6px 6px;
}
}
/* ═══════ Help Tip (? 图标 + 气泡) ═══════ */
.bme-help-tip {
position: relative;
display: inline-flex;
align-items: center;
flex: 0 0 auto;
margin-left: 4px;
}
.bme-help-tip__trigger {
width: 1.2rem;
height: 1.2rem;
border-radius: 999px;
border: 1px solid rgba(160, 140, 200, 0.35);
background: rgba(160, 140, 200, 0.18);
color: rgba(240, 230, 252, 0.9);
font-size: 0.72rem;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
padding: 0;
line-height: 1;
}
.bme-help-tip__trigger:hover,
.bme-help-tip__trigger:focus-visible {
transform: translateY(-1px);
border-color: rgba(180, 160, 220, 0.6);
background: rgba(180, 160, 220, 0.35);
outline: none;
}
.bme-help-tip__bubble {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 99999;
width: min(20rem, calc(100vw - 2rem));
border-radius: 10px;
border: 1px solid rgba(160, 140, 200, 0.3);
background: rgba(18, 14, 28, 0.92);
color: rgba(240, 235, 250, 0.95);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
backdrop-filter: blur(16px) saturate(125%);
-webkit-backdrop-filter: blur(16px) saturate(125%);
padding: 10px 12px;
font-size: 0.78rem;
line-height: 1.5;
white-space: normal;
display: none;
pointer-events: none;
}
.bme-help-tip:hover .bme-help-tip__bubble,
.bme-help-tip__trigger:focus + .bme-help-tip__bubble {
display: block;
pointer-events: auto;
}
/* --- Floating Ball (悬浮球) --- */
#bme-floating-ball {
position: fixed;
z-index: 9998;
width: 46px;
height: 46px;
border-radius: 50%;
background: rgba(30, 30, 40, 0.75);
backdrop-filter: blur(12px) saturate(120%);
-webkit-backdrop-filter: blur(12px) saturate(120%);
border: 1.5px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
cursor: grab;
user-select: none;
touch-action: none;
display: flex;
align-items: center;
justify-content: center;
transition: box-shadow 0.3s ease, transform 0.15s ease, border-color 0.3s ease;
}
#bme-floating-ball:hover {
transform: scale(1.08);
border-color: var(--bme-accent, #e1415d);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--bme-accent, #e1415d40);
}
#bme-floating-ball:active {
cursor: grabbing;
transform: scale(0.95);
}
#bme-floating-ball .bme-fab-icon {
font-size: 18px;
color: rgba(255, 255, 255, 0.85);
pointer-events: none;
transition: color 0.3s ease;
}
#bme-floating-ball:hover .bme-fab-icon {
color: var(--bme-accent, #e1415d);
}
/* Status ring */
#bme-floating-ball::after {
content: "";
position: absolute;
inset: -3px;
border-radius: 50%;
border: 2px solid transparent;
transition: border-color 0.3s ease;
pointer-events: none;
}
#bme-floating-ball[data-status="running"]::after {
border-color: var(--bme-accent, #e1415d);
animation: bme-fab-pulse 1.5s ease-in-out infinite;
}
#bme-floating-ball[data-status="success"]::after {
border-color: var(--bme-accent2, #4edea3);
}
#bme-floating-ball[data-status="error"]::after {
border-color: #f44336;
}
#bme-floating-ball[data-status="warning"]::after {
border-color: #ffc107;
}
@keyframes bme-fab-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
/* Tooltip */
#bme-floating-ball .bme-fab-tooltip {
position: absolute;
right: calc(100% + 10px);
top: 50%;
transform: translateY(-50%);
background: rgba(20, 20, 28, 0.92);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 6px 10px;
font-size: 0.72rem;
color: rgba(255, 255, 255, 0.8);
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
#bme-floating-ball:hover .bme-fab-tooltip {
opacity: 1;
}
@media (max-width: 768px) {
#bme-floating-ball {
width: 54px;
height: 54px;
border-width: 2px;
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.42),
0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
#bme-floating-ball .bme-fab-icon {
font-size: 21px;
}
#bme-floating-ball .bme-fab-tooltip {
display: none;
}
}
/* --- Recall Message Card --- */
.bme-recall-card {
margin-top: 8px;
background: var(--bme-surface-container, #1f1f22);
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
border-left: 3px solid var(--bme-primary, #e94560);
border-radius: 8px;
overflow: hidden;
font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
.bme-recall-user-label {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px 4px;
font-size: 12px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
font-weight: 500;
}
.bme-recall-user-text {
padding: 4px 14px 10px;
font-size: 14px;
line-height: 1.6;
color: var(--bme-on-surface, #e4e1e6);
white-space: pre-wrap;
overflow-wrap: anywhere;
word-break: break-word;
}
.bme-recall-card.bme-recall-hide-user-input .bme-recall-user-label,
.bme-recall-card.bme-recall-hide-user-input .bme-recall-user-text {
display: none;
}
.bme-recall-card.bme-recall-hide-user-input .bme-recall-bar {
border-top: none;
}
.bme-hide-original-user-text {
display: none !important;
}
/* --- Recall Bar (collapse/expand trigger) --- */
.bme-recall-bar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: var(--bme-surface-low, #1b1b1e);
cursor: pointer;
user-select: none;
transition: background 0.15s;
border-top: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
}
.bme-recall-bar:hover {
background: var(--bme-surface-high, #2a2a2d);
}
.bme-recall-bar-icon {
font-size: 14px;
flex-shrink: 0;
}
.bme-recall-bar-title {
font-size: 12px;
font-weight: 600;
color: var(--bme-on-surface, #e4e1e6);
flex-shrink: 0;
}
.bme-recall-count-badge {
display: inline-flex;
align-items: center;
padding: 1px 8px;
font-size: 11px;
font-weight: 600;
border-radius: 10px;
background: var(--bme-primary-dim, rgba(233, 69, 96, 0.15));
color: var(--bme-primary-text, #ffb2b7);
flex-shrink: 0;
}
.bme-recall-token-hint {
font-size: 11px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
margin-left: auto;
flex-shrink: 0;
}
.bme-recall-expand-arrow {
font-size: 12px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
transition: transform 0.25s ease;
flex-shrink: 0;
margin-left: 4px;
}
.bme-recall-card.expanded .bme-recall-expand-arrow {
transform: rotate(90deg);
}
/* --- Recall Body (expanded content) --- */
.bme-recall-body {
max-height: 0;
opacity: 0;
overflow: hidden;
transition:
max-height 0.3s ease,
opacity 0.25s ease;
}
.bme-recall-card.expanded .bme-recall-body {
max-height: 600px;
opacity: 1;
}
.bme-recall-canvas-wrap {
width: 100%;
height: 250px;
position: relative;
background: var(--bme-surface-lowest, #0e0e11);
border-radius: 0;
}
.bme-recall-canvas-wrap canvas {
display: block;
width: 100%;
height: 100%;
}
.bme-recall-empty {
display: flex;
align-items: center;
justify-content: center;
height: 120px;
font-size: 12px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
font-style: italic;
}
/* --- Recall Meta --- */
.bme-recall-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
padding: 8px 14px;
font-size: 11px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
border-top: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
}
.bme-recall-meta-tag {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 6px;
font-size: 10px;
font-weight: 600;
border-radius: 4px;
background: var(--bme-accent3, #ffc107);
color: #000;
}
/* --- Recall Actions --- */
.bme-recall-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px 14px 10px;
}
.bme-recall-action-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 10px;
font-size: 11px;
font-weight: 500;
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
border-radius: 6px;
background: var(--bme-surface-low, #1b1b1e);
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
cursor: pointer;
transition:
background 0.15s,
border-color 0.15s,
color 0.15s;
white-space: nowrap;
}
.bme-recall-action-btn:hover {
background: var(--bme-surface-high, #2a2a2d);
border-color: var(--bme-border-active, rgba(233, 69, 96, 0.4));
color: var(--bme-on-surface, #e4e1e6);
}
.bme-recall-action-btn.danger {
background: rgba(233, 69, 96, 0.2);
border-color: var(--bme-primary, #e94560);
color: var(--bme-primary, #e94560);
}
.bme-recall-action-btn.loading {
pointer-events: none;
opacity: 0.7;
}
@keyframes bme-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.bme-recall-action-btn.loading .bme-recall-btn-icon {
animation: bme-spin 1s linear infinite;
}
/* --- Recall Sidebar --- */
.bme-recall-sidebar-backdrop {
position: fixed;
inset: 0;
z-index: 10000;
background: rgba(0, 0, 0, 0.4);
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
.bme-recall-sidebar-backdrop.open {
opacity: 1;
pointer-events: auto;
}
.bme-recall-sidebar {
position: fixed;
top: 0;
right: 0;
width: min(400px, 90vw);
height: 100vh;
z-index: 10001;
background: var(--bme-surface-container, #1f1f22);
border-left: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform 0.25s ease;
box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}
.bme-recall-sidebar.open {
transform: translateX(0);
}
.bme-recall-sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
flex-shrink: 0;
}
.bme-recall-sidebar-header-title {
font-size: 14px;
font-weight: 600;
color: var(--bme-primary, #e94560);
display: flex;
align-items: center;
gap: 6px;
}
.bme-recall-sidebar-close {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
cursor: pointer;
border-radius: 4px;
font-size: 14px;
transition: all 0.15s;
}
.bme-recall-sidebar-close:hover {
background: var(--bme-surface-highest, #353438);
color: var(--bme-on-surface, #e4e1e6);
}
.bme-recall-sidebar-node-info {
padding: 12px 16px;
border-bottom: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
font-size: 12px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
display: flex;
flex-direction: column;
gap: 4px;
}
.bme-recall-sidebar-node-info-row {
display: flex;
gap: 8px;
}
.bme-recall-sidebar-node-info-label {
font-weight: 600;
color: var(--bme-on-surface, #e4e1e6);
min-width: 48px;
}
.bme-recall-sidebar-body {
flex: 1;
overflow-y: auto;
padding: 12px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.bme-recall-sidebar-section-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
}
.bme-recall-sidebar-textarea {
width: 100%;
min-height: 200px;
padding: 10px;
font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
font-size: 13px;
line-height: 1.6;
background: var(--bme-surface-low, #1b1b1e);
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
border-radius: 6px;
color: var(--bme-on-surface, #e4e1e6);
resize: vertical;
transition: border-color 0.15s;
}
.bme-recall-sidebar-textarea:focus {
outline: none;
border-color: var(--bme-border-active, rgba(233, 69, 96, 0.4));
}
.bme-recall-sidebar-readonly {
width: 100%;
min-height: 120px;
padding: 10px;
font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
font-size: 13px;
line-height: 1.6;
background: var(--bme-surface-low, #1b1b1e);
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
border-radius: 6px;
color: var(--bme-on-surface, #e4e1e6);
white-space: pre-wrap;
word-break: break-word;
overflow-y: auto;
max-height: 40vh;
}
.bme-recall-sidebar-token-hint {
font-size: 11px;
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
font-feature-settings: 'tnum';
}
.bme-recall-sidebar-footer {
display: flex;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
flex-shrink: 0;
}
.bme-recall-sidebar-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 7px 16px;
font-size: 12px;
font-weight: 500;
border-radius: 6px;
cursor: pointer;
transition:
background 0.15s,
border-color 0.15s;
white-space: nowrap;
}
.bme-recall-sidebar-btn.primary {
background: var(--bme-primary-dim, rgba(233, 69, 96, 0.15));
border: 1px solid var(--bme-primary, #e94560);
color: var(--bme-primary-text, #ffb2b7);
}
.bme-recall-sidebar-btn.primary:hover {
background: var(--bme-primary-glow, rgba(233, 69, 96, 0.35));
}
.bme-recall-sidebar-btn.secondary {
background: transparent;
border: 1px solid var(--bme-border, rgba(255, 255, 255, 0.08));
color: var(--bme-on-surface-dim, rgba(228, 225, 230, 0.6));
}
.bme-recall-sidebar-btn.secondary:hover {
background: var(--bme-surface-high, #2a2a2d);
color: var(--bme-on-surface, #e4e1e6);
}
/* --- Recall Card Responsive --- */
@media (max-width: 768px) {
.bme-recall-canvas-wrap {
height: 180px;
}
.bme-recall-sidebar {
width: 100vw;
}
.bme-recall-actions {
gap: 4px;
}
.bme-recall-action-btn {
padding: 4px 8px;
font-size: 10px;
}
}
/* --- RESPONSIVE: New Layout Components --- */
@media (max-width: 768px) {
.bme-capability-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.bme-stripe-row {
flex-direction: column;
gap: 12px;
}
.bme-stripe-label {
flex: none;
max-width: 100%;
}
.bme-task-master-detail {
flex-direction: column;
min-height: auto;
}
.bme-task-editor-preset-select {
min-width: 0;
width: 100%;
flex: 1 1 100%;
}
.bme-task-editor-title-row {
flex-direction: column;
align-items: stretch;
}
.bme-task-profile-badges {
justify-content: flex-start;
}
.bme-task-segmented-control {
flex-wrap: wrap;
}
.bme-task-action-bar {
flex-direction: column;
align-items: stretch;
}
.bme-task-action-bar-right {
margin-left: 0;
justify-content: flex-end;
}
}
@media (max-width: 520px) {
.bme-capability-grid {
grid-template-columns: 1fr;
}
}