Comprehensive WebUI review: 41 UX/feature/CSS improvements

Safety & Correctness:
- Add confirmation dialogs to Stop All, turnOffDevice
- i18n confirm dialog (title, yes, no buttons)
- Fix duplicate tutorial-overlay ID
- Define missing CSS variables (--radius, --text-primary, --hover-bg, --input-bg)
- Fix toast z-index conflict with confirm dialog (2500 → 3000)

UX Consistency:
- Add backdrop-close to test modals
- Add device clone feature (only entity without it)
- Add sync clocks to command palette
- Replace 20+ hardcoded accent colors with CSS vars/color-mix()
- Remove dead .badge duplicate from components.css
- Make calibration elements keyboard-accessible (div → button)
- Add aria-labels to color picker swatches
- Fix pattern canvas mobile horizontal scroll
- Fix graph editor mobile bottom clipping

Polish:
- Add empty-state messages to all CardSection instances
- Convert 21 px font-sizes to rem
- Add scroll-behavior: smooth with reduced-motion override
- Add @media print styles
- Add :focus-visible to 4 missing interactive elements
- Fix settings modal close label (Cancel → Close)
- Fix api-key submit button i18n

New Features:
- Command palette actions: start/stop targets, activate scenes, enable/disable
- Bulk start/stop API endpoints (POST /output-targets/bulk/start|stop)
- OS notification history viewer modal
- Scene "used by" automation reference count on cards
- Clock elapsed time display on Streams tab cards
- Device "last seen" relative timestamp on cards
- Audio device refresh button in edit modal
- Composite layer drag-to-reorder
- MQTT settings panel (broker config with JSON persistence)
- WebSocket log viewer with level filtering and ring buffer
- Runtime log-level adjustment (GET/PUT endpoints + settings UI)
- Animated value source waveform canvas preview
- Gradient custom preset save/delete (localStorage)
- API key read-only display in settings
- Backup metadata (file size, auto/manual badges)
- Server restart button with confirm + overlay
- Partial config export/import per entity type
- Progressive disclosure in target editor (Advanced section)

CSS Architecture:
- Define radius scale tokens (--radius-sm/md/lg/pill)
- Scope .cs-filter selectors to remove 7 !important overrides
- Consolidate duplicate toggle switch (filter-list → settings-toggle)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-16 18:46:38 +03:00
parent a4a0e39b9b
commit 304fa24389
47 changed files with 2594 additions and 250 deletions
@@ -12,6 +12,11 @@
--warning-color: #ff9800;
--info-color: #2196F3;
--font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
--radius: 8px;
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-pill: 100px;
}
/* ── SVG icon base ── */
@@ -34,6 +39,7 @@
--bg-secondary: #242424;
--card-bg: #2d2d2d;
--text-color: #e0e0e0;
--text-primary: #e0e0e0;
--text-secondary: #999;
--text-muted: #777;
--border-color: #404040;
@@ -41,6 +47,8 @@
--primary-text-color: #66bb6a;
--success-color: #28a745;
--shadow-color: rgba(0, 0, 0, 0.3);
--hover-bg: rgba(255, 255, 255, 0.05);
--input-bg: #1a1a2e;
color-scheme: dark;
}
@@ -50,6 +58,7 @@
--bg-secondary: #eee;
--card-bg: #ffffff;
--text-color: #333333;
--text-primary: #333333;
--text-secondary: #666;
--text-muted: #999;
--border-color: #e0e0e0;
@@ -57,6 +66,8 @@
--primary-text-color: #3d8b40;
--success-color: #2e7d32;
--shadow-color: rgba(0, 0, 0, 0.12);
--hover-bg: rgba(0, 0, 0, 0.05);
--input-bg: #f0f0f0;
color-scheme: light;
}
@@ -69,6 +80,7 @@ body {
html {
background: var(--bg-color);
overflow-y: scroll;
scroll-behavior: smooth;
}
body {
@@ -184,4 +196,16 @@ header {
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
html { scroll-behavior: auto; }
}
@media print {
[data-theme] {
--bg-color: #fff;
--card-bg: #fff;
--text-color: #000;
--text-secondary: #333;
--border-color: #ccc;
}
.tab-bar, .app-header, .scroll-to-top, .toast-container { display: none; }
}
+22 -19
View File
@@ -28,7 +28,7 @@ section {
.add-device-card:hover {
border-color: var(--primary-color);
background: rgba(33, 150, 243, 0.05);
background: color-mix(in srgb, var(--primary-color) 5%, transparent); /* --primary-color tint */
transform: translateY(-2px);
}
@@ -53,7 +53,7 @@ section {
.card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
border-radius: var(--radius-md);
padding: 12px 20px 20px;
position: relative;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
@@ -243,7 +243,7 @@ section {
.card-drag-placeholder {
border: 2px dashed var(--primary-color);
border-radius: 8px;
background: rgba(33, 150, 243, 0.04);
background: color-mix(in srgb, var(--primary-color) 4%, transparent); /* --primary-color tint */
min-height: 80px;
transition: none;
}
@@ -378,7 +378,7 @@ body.cs-drag-active .card-drag-handle {
.card-power-btn:hover {
color: var(--primary-text-color);
background: rgba(76, 175, 80, 0.1);
background: color-mix(in srgb, var(--primary-color) 10%, transparent); /* --primary-color tint */
}
.card-remove-btn {
@@ -401,7 +401,7 @@ body.cs-drag-active .card-drag-handle {
.card-remove-btn:hover {
color: var(--danger-color);
background: rgba(244, 67, 54, 0.1);
background: color-mix(in srgb, var(--danger-color) 10%, transparent); /* --danger-color tint */
}
.card-header {
@@ -569,7 +569,7 @@ body.cs-drag-active .card-drag-handle {
}
.zone-checkbox-list .zone-loading,
.zone-checkbox-list .zone-error {
font-size: 12px;
font-size: 0.75rem;
color: var(--text-secondary);
padding: 4px 0;
}
@@ -581,7 +581,7 @@ body.cs-drag-active .card-drag-handle {
padding: 4px 6px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
font-size: 0.8125rem;
transition: background 0.15s;
}
.zone-checkbox-item:hover { background: var(--hover-bg, rgba(255,255,255,0.05)); }
@@ -602,7 +602,7 @@ body.cs-drag-active .card-drag-handle {
align-items: center;
gap: 6px;
cursor: pointer;
font-size: 13px;
font-size: 0.8125rem;
}
.zone-mode-option input[type="radio"] { margin: 0; }
@@ -629,7 +629,7 @@ body.cs-drag-active .card-drag-handle {
.display-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
border-radius: var(--radius-md);
padding: 15px;
}
@@ -676,7 +676,10 @@ body.cs-drag-active .card-drag-handle {
.layout-display.primary {
border-color: var(--primary-color);
background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
background: linear-gradient(135deg,
color-mix(in srgb, var(--primary-color) 15%, transparent), /* --primary-color tint */
color-mix(in srgb, var(--primary-color) 5%, transparent) /* --primary-color tint */
);
}
.layout-display.secondary {
@@ -768,7 +771,7 @@ body.cs-drag-active .card-drag-handle {
margin: 0 0 15px 0;
line-height: 1.5;
padding: 8px 12px;
background: rgba(33, 150, 243, 0.08);
background: color-mix(in srgb, var(--info-color, #2196F3) 8%, transparent); /* --info-color tint */
border-left: 3px solid var(--info-color, #2196F3);
border-radius: 0 6px 6px 0;
}
@@ -939,13 +942,13 @@ ul.section-tip li {
transition: flex 0.3s ease;
}
.timing-extract { background: #4CAF50; }
.timing-extract { background: var(--primary-color); }
.timing-map { background: #FF9800; }
.timing-smooth { background: #2196F3; }
.timing-smooth { background: var(--info-color, #2196F3); }
.timing-send { background: #E91E63; }
.timing-audio-read { background: #4CAF50; }
.timing-audio-read { background: var(--primary-color); }
.timing-audio-fft { background: #FF9800; }
.timing-audio-render { background: #2196F3; }
.timing-audio-render { background: var(--info-color, #2196F3); }
.timing-legend {
display: flex;
@@ -969,13 +972,13 @@ ul.section-tip li {
border-radius: 2px;
}
.timing-dot.timing-extract { background: #4CAF50; }
.timing-dot.timing-extract { background: var(--primary-color); }
.timing-dot.timing-map { background: #FF9800; }
.timing-dot.timing-smooth { background: #2196F3; }
.timing-dot.timing-smooth { background: var(--info-color, #2196F3); }
.timing-dot.timing-send { background: #E91E63; }
.timing-dot.timing-audio-read { background: #4CAF50; }
.timing-dot.timing-audio-read { background: var(--primary-color); }
.timing-dot.timing-audio-fft { background: #FF9800; }
.timing-dot.timing-audio-render { background: #2196F3; }
.timing-dot.timing-audio-render { background: var(--info-color, #2196F3); }
@media (max-width: 768px) {
.displays-grid,
@@ -1,25 +1,3 @@
.badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 0.85rem;
font-weight: 600;
}
.badge.processing {
background: var(--primary-color);
color: var(--primary-contrast);
}
.badge.idle {
background: var(--warning-color);
color: white;
}
.badge.error {
background: var(--danger-color);
color: white;
}
.card-content {
margin-bottom: 15px;
}
@@ -60,7 +38,7 @@
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
border-radius: var(--radius-sm);
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
@@ -182,7 +160,7 @@ select {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--radius-sm);
background: var(--bg-color);
color: var(--text-color);
font-size: 1rem;
@@ -351,7 +329,7 @@ input:-webkit-autofill:focus {
.overlay-preview-img {
max-width: 80vw;
max-height: 50vh;
border-radius: 8px;
border-radius: var(--radius-md);
margin-top: 16px;
object-fit: contain;
}
@@ -369,13 +347,13 @@ input:-webkit-autofill:focus {
left: 50%;
transform: translateX(-50%) translateY(100px);
padding: 16px 24px;
border-radius: 8px;
border-radius: var(--radius-md);
color: white;
font-weight: 600;
font-size: 15px;
opacity: 0;
transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 2500;
z-index: 3000;
box-shadow: 0 4px 20px var(--shadow-color);
min-width: 300px;
text-align: center;
@@ -424,7 +402,7 @@ input:-webkit-autofill:focus {
background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-secondary));
border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
padding: 1px 7px;
border-radius: 8px;
border-radius: var(--radius-md);
white-space: nowrap;
line-height: 1.4;
}
@@ -439,7 +417,7 @@ input:-webkit-autofill:focus {
gap: 4px;
padding: 6px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--radius-sm);
background: var(--bg-color);
cursor: text;
min-height: 38px;
@@ -501,7 +479,7 @@ input:-webkit-autofill:focus {
z-index: 1000;
background: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--radius-sm);
box-shadow: 0 4px 12px var(--shadow-color);
margin-top: 4px;
max-height: 200px;
@@ -538,7 +516,11 @@ input:-webkit-autofill:focus {
.dashboard-action-btn:focus-visible,
.btn-expand-collapse:focus-visible,
.btn-filter-action:focus-visible,
.settings-toggle:focus-visible {
.settings-toggle:focus-visible,
.discovery-item:focus-visible,
.tag-chip-remove:focus-visible,
.cs-filter-reset:focus-visible,
.graph-filter-clear:focus-visible {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
@@ -586,7 +568,7 @@ textarea:focus-visible {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--radius-sm);
background: var(--bg-color);
color: var(--text-color);
font-size: 1rem;
@@ -720,7 +702,7 @@ textarea:focus-visible {
overflow-y: auto;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
border-radius: var(--radius-lg);
box-shadow: 0 16px 48px var(--shadow-color);
padding: 16px;
opacity: 0;
@@ -790,7 +772,7 @@ textarea:focus-visible {
max-height: 60vh;
background: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 8px;
border-radius: var(--radius-md);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
display: flex;
flex-direction: column;
@@ -878,7 +860,7 @@ textarea:focus-visible {
background: var(--bg-color);
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 4px;
border-radius: var(--radius-sm);
padding: 10px;
font-size: 1rem;
cursor: pointer;
@@ -190,12 +190,12 @@ h2 {
.health-dot.health-online {
background-color: var(--primary-color);
box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
box-shadow: 0 0 6px color-mix(in srgb, var(--primary-color) 60%, transparent); /* --primary-color glow */
}
.health-dot.health-offline {
background-color: var(--danger-color);
box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
box-shadow: 0 0 6px color-mix(in srgb, var(--danger-color) 60%, transparent); /* --danger-color glow */
}
.health-dot.health-unknown {
@@ -565,9 +565,23 @@ h2 {
width: 6px;
height: 6px;
border-radius: 50%;
background: #4caf50;
background: var(--primary-color);
flex-shrink: 0;
box-shadow: 0 0 4px #4caf50;
box-shadow: 0 0 4px var(--primary-color);
}
.cp-action-item .cp-icon {
opacity: 0.85;
}
.cp-action-item .cp-detail {
font-weight: 600;
color: var(--primary-color);
}
.cp-action-item.cp-active .cp-detail {
color: var(--primary-contrast);
opacity: 0.9;
}
.cp-loading,
@@ -219,6 +219,11 @@
padding-bottom: 64px;
}
/* Graph editor: account for fixed bottom tab bar (~64px) */
.graph-container {
height: calc(100vh - var(--header-height, 60px) - 74px);
}
/* ── Container ── */
.container {
padding: 8px;
@@ -441,6 +446,9 @@
gap: 10px;
padding: 6px 10px;
}
/* Pattern canvas — prevent horizontal overflow */
.pattern-canvas-container { min-width: 0; width: 100%; }
}
+200 -10
View File
@@ -108,7 +108,7 @@
.vs-test-value-large {
font-size: 1.3em;
color: #4caf50;
color: var(--primary-text-color);
}
.vs-test-status {
@@ -149,7 +149,7 @@
border-radius: 6px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 16px;
font-size: 1rem;
cursor: pointer;
display: flex;
align-items: center;
@@ -333,6 +333,38 @@
opacity: 1;
}
/* ── Log viewer ─────────────────────────────────────────────── */
.log-viewer-output {
background: #0d0d0d;
color: #d4d4d4;
font-family: var(--font-mono, 'Consolas', 'Courier New', monospace);
font-size: 0.75rem;
line-height: 1.45;
padding: 0.6rem 0.75rem;
border-radius: 6px;
border: 1px solid var(--border-color);
max-height: 400px;
overflow-y: auto;
overflow-x: auto;
white-space: pre;
margin: 0;
/* Scroll performance */
contain: strict;
}
.log-viewer-output .log-line-error {
color: #f48771;
}
.log-viewer-output .log-line-warning {
color: #ce9178;
}
.log-viewer-output .log-line-debug {
color: #6a9955;
}
/* LED count control */
.css-test-led-control {
display: flex;
@@ -391,7 +423,7 @@
.modal-content {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
border-radius: var(--radius-lg);
max-width: 500px;
width: 90%;
max-height: calc(100vh - 40px);
@@ -562,8 +594,8 @@
.hint-toggle.active {
opacity: 1;
color: var(--primary-text-color, #4CAF50);
border-color: var(--primary-color, #4CAF50);
color: var(--primary-text-color);
border-color: var(--primary-color);
}
.input-hint {
@@ -695,6 +727,17 @@
min-width: auto;
}
.select-with-action {
display: flex;
gap: 6px;
align-items: center;
}
.select-with-action select {
flex: 1;
min-width: 0;
}
.fps-hint {
display: block;
margin-top: 4px;
@@ -767,7 +810,7 @@
}
.error-message {
background: rgba(244, 67, 54, 0.1);
background: color-mix(in srgb, var(--danger-color) 10%, transparent); /* --danger-color tint */
border: 1px solid var(--danger-color);
color: var(--danger-color);
padding: 12px;
@@ -805,7 +848,7 @@
.btn-display-picker:hover {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent); /* --primary-color tint */
}
.modal-content-wide {
@@ -983,14 +1026,14 @@
}
.layout-display-pickable:hover {
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
box-shadow: 0 0 20px color-mix(in srgb, var(--primary-color) 40%, transparent); /* --primary-color glow */
border-color: var(--primary-color) !important;
}
.layout-display-pickable.selected {
border-color: var(--primary-color) !important;
box-shadow: 0 0 16px rgba(76, 175, 80, 0.5);
background: rgba(76, 175, 80, 0.12) !important;
box-shadow: 0 0 16px color-mix(in srgb, var(--primary-color) 50%, transparent); /* --primary-color glow */
background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important; /* --primary-color tint */
}
/* ── Device picker list (cameras, scrcpy) ─────────────────────── */
@@ -1133,6 +1176,33 @@
flex: 1;
}
/* ── Custom gradient presets list ───────────────────────────── */
.custom-presets-list {
margin-top: 6px;
display: flex;
flex-direction: column;
gap: 4px;
}
.custom-preset-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
border-radius: 6px;
background: var(--surface-2, rgba(255,255,255,0.04));
border: 1px solid var(--border-color, rgba(255,255,255,0.1));
}
.custom-preset-name {
flex: 1;
font-size: 0.85rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ── Color Cycle editor ──────────────────────────────────────── */
#color-cycle-colors-list {
@@ -1211,6 +1281,71 @@
line-height: 1;
}
/* ── Notification history list ─────────────────────────────────── */
.notif-history-row {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.6rem;
border-bottom: 1px solid var(--border-color);
font-size: 0.82rem;
}
.notif-history-row:last-child {
border-bottom: none;
}
.notif-history-app {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 500;
}
.notif-history-time {
color: var(--text-muted);
white-space: nowrap;
font-size: 0.78rem;
flex-shrink: 0;
}
.notif-history-badges {
display: flex;
gap: 3px;
flex-shrink: 0;
}
.notif-history-badge {
display: inline-block;
min-width: 18px;
padding: 0 4px;
border-radius: 10px;
font-size: 0.72rem;
font-weight: 600;
text-align: center;
line-height: 18px;
}
.notif-history-badge--fired {
background: var(--primary-color);
color: #fff;
}
.notif-history-badge--filtered {
background: var(--border-color);
color: var(--text-muted);
}
.notif-history-empty {
padding: 1rem;
text-align: center;
color: var(--text-muted);
font-size: 0.85rem;
}
/* ── Composite layer editor ────────────────────────────────────── */
#composite-layers-list {
@@ -1269,3 +1404,58 @@
flex: 0 0 26px;
}
/* ── Composite layer drag-to-reorder ── */
.composite-layer-drag-handle {
cursor: grab;
opacity: 0;
color: var(--text-secondary);
font-size: 0.75rem;
line-height: 1;
padding: 2px 4px;
border-radius: 3px;
transition: opacity 0.2s ease;
user-select: none;
touch-action: none;
flex-shrink: 0;
}
.composite-layer-item:hover .composite-layer-drag-handle {
opacity: 0.5;
}
.composite-layer-drag-handle:hover {
opacity: 1 !important;
background: var(--border-color);
}
.composite-layer-drag-handle:active {
cursor: grabbing;
}
.composite-layer-drag-clone {
position: fixed;
z-index: 9999;
pointer-events: none;
opacity: 0.92;
transform: scale(1.02);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
will-change: top;
}
.composite-layer-drag-placeholder {
border: 2px dashed var(--primary-color);
border-radius: 4px;
background: rgba(33, 150, 243, 0.04);
min-height: 42px;
transition: height 0.15s ease;
}
body.composite-layer-dragging .composite-layer-item {
transition: none !important;
}
body.composite-layer-dragging .composite-layer-drag-handle {
opacity: 0 !important;
}
@@ -11,7 +11,7 @@
.template-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
border-radius: var(--radius-md);
padding: 16px;
transition: box-shadow 0.2s ease, transform 0.2s ease;
display: flex;
@@ -92,20 +92,20 @@
.badge {
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
}
.template-description {
color: var(--text-secondary);
font-size: 14px;
font-size: 0.875rem;
margin-bottom: 12px;
line-height: 1.4;
}
.template-config {
font-size: 14px;
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 8px;
}
@@ -166,7 +166,7 @@
.template-no-config {
margin: 12px 0;
font-size: 13px;
font-size: 0.8125rem;
color: var(--primary-text-color);
font-weight: 500;
padding: 4px 0;
@@ -176,7 +176,7 @@
width: 100%;
margin-top: 8px;
border-collapse: collapse;
font-size: 13px;
font-size: 0.8125rem;
}
.config-table td {
@@ -246,7 +246,7 @@
.text-muted {
color: var(--text-secondary);
font-style: italic;
font-size: 13px;
font-size: 0.8125rem;
}
/* PP Filter List in Template Modal */
@@ -259,7 +259,7 @@
.pp-filter-empty {
color: var(--text-secondary);
font-size: 13px;
font-size: 0.8125rem;
text-align: center;
padding: 16px;
border: 1px dashed var(--border-color);
@@ -294,13 +294,13 @@
.pp-filter-card-name {
font-weight: 600;
font-size: 14px;
font-size: 0.875rem;
color: var(--text-primary);
}
.pp-filter-card-summary {
color: var(--text-secondary);
font-size: 12px;
font-size: 0.75rem;
margin-right: 8px;
white-space: nowrap;
overflow: hidden;
@@ -360,7 +360,7 @@
.pp-filter-option label {
display: flex;
justify-content: space-between;
font-size: 12px;
font-size: 0.75rem;
color: var(--text-secondary);
}
@@ -375,55 +375,21 @@
border-radius: 4px;
background: var(--card-bg);
color: var(--text-primary);
font-size: 12px;
font-size: 0.75rem;
font-family: monospace;
}
.pp-filter-option-bool label {
justify-content: space-between;
gap: 8px;
/* Bool option row: label text on left, .settings-toggle on right */
.pp-filter-option-bool {
flex-direction: row;
align-items: center;
cursor: pointer;
justify-content: space-between;
padding: 4px 0;
}
.pp-filter-option-bool input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 34px;
min-width: 34px;
height: 18px;
background: var(--border-color);
border-radius: 9px;
position: relative;
cursor: pointer;
transition: background 0.2s;
order: 1;
margin: 0;
}
.pp-filter-option-bool input[type="checkbox"]::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
background: white;
border-radius: 50%;
transition: transform 0.2s;
}
.pp-filter-option-bool input[type="checkbox"]:checked {
background: var(--primary-color);
}
.pp-filter-option-bool input[type="checkbox"]:checked::after {
transform: translateX(16px);
}
.pp-filter-option-bool span {
order: 0;
.pp-filter-option-label {
font-size: 0.75rem;
color: var(--text-secondary);
}
/* ── PP filter drag-and-drop ── */
@@ -432,7 +398,7 @@
cursor: grab;
opacity: 0;
color: var(--text-secondary);
font-size: 12px;
font-size: 0.75rem;
line-height: 1;
padding: 2px 4px;
border-radius: 3px;
@@ -492,7 +458,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
border-radius: 6px;
background: var(--card-bg);
color: var(--text-primary);
font-size: 13px;
font-size: 0.8125rem;
}
.pp-add-filter-btn {
@@ -506,7 +472,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
border-radius: 6px;
background: var(--card-bg);
color: var(--text-primary);
font-size: 20px;
font-size: 1.25rem;
cursor: pointer;
padding: 0;
line-height: 1;
@@ -526,7 +492,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
.template-test-section h3 {
margin-top: 0;
margin-bottom: 12px;
font-size: 16px;
font-size: 1rem;
}
.test-results-container {
@@ -550,7 +516,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
.test-performance-section h4 {
margin-top: 0;
margin-bottom: 12px;
font-size: 14px;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-secondary);
}
@@ -579,7 +545,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
align-items: center;
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
font-size: 14px;
font-size: 0.875rem;
}
.stat-item:last-child {
@@ -602,7 +568,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
text-align: center;
padding: 40px 20px;
color: var(--text-secondary);
font-size: 16px;
font-size: 1rem;
}
/* Stream type badges */
@@ -619,7 +585,7 @@ body.pp-filter-dragging .pp-filter-drag-handle {
/* Stream info panel in stream selector modal */
.stream-info-panel {
padding: 4px 0 0 0;
font-size: 14px;
font-size: 0.875rem;
line-height: 1.6;
}
@@ -792,23 +758,23 @@ body.pp-filter-dragging .pp-filter-drag-handle {
flex-shrink: 0;
}
.cs-filter {
.cs-filter-wrap .cs-filter {
width: 100%;
padding: 4px 26px 4px 10px !important;
font-size: 0.78rem !important;
border: 1px solid var(--border-color) !important;
border-radius: 14px !important;
background: var(--bg-secondary) !important;
color: var(--text-color) !important;
padding: 4px 26px 4px 10px;
font-size: 0.78rem;
border: 1px solid var(--border-color);
border-radius: 14px;
background: var(--bg-secondary);
color: var(--text-color);
outline: none;
box-shadow: none !important;
box-shadow: none;
box-sizing: border-box;
transition: border-color 0.2s, background 0.2s, width 0.2s;
}
.cs-filter:focus {
border-color: var(--primary-color) !important;
background: var(--bg-color) !important;
.cs-filter-wrap .cs-filter:focus {
border-color: var(--primary-color);
background: var(--bg-color);
}
.cs-filter::placeholder {
@@ -838,6 +804,22 @@ body.pp-filter-dragging .pp-filter-drag-handle {
background: var(--border-color);
}
/* Empty state for CardSection */
.cs-empty-state {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem 1rem;
text-align: center;
}
.cs-empty-text {
font-size: 0.9rem;
color: var(--text-muted);
font-style: italic;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.templates-grid {