- New third column lists every literal true/false input in the workflow and every two-choice enable/disable, on/off, true/false or yes/no combo (e.g. KSamplerAdvanced add_noise, DWPreprocessor detect_*), with node and input names; a click toggles it at once and syncs Raw JSON - Combos are detected from per-type object_info and added once it loads; DynamicCombo selectors (TextGenerate sampling_mode) are left out - Help (en/ja/zh) and DEVLOG updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6499 lines
136 KiB
CSS
6499 lines
136 KiB
CSS
/* ============================================
|
||
Workflow Studio - Base Styles
|
||
============================================ */
|
||
|
||
:root {
|
||
--wfm-bg: #1a1a2e;
|
||
--wfm-bg-secondary: #16213e;
|
||
--wfm-bg-tertiary: #0f3460;
|
||
--wfm-surface: #1e2a4a;
|
||
--wfm-surface-hover: #253358;
|
||
--wfm-border: #2a3a5c;
|
||
--wfm-text: #e0e0e0;
|
||
--wfm-text-secondary: #a0a0b0;
|
||
--wfm-primary: #4a9eff;
|
||
--wfm-primary-hover: #3a8eef;
|
||
--wfm-danger: #ff4757;
|
||
--wfm-success: #2ed573;
|
||
--wfm-warning: #ffa502;
|
||
--wfm-accent: #7c5cfc;
|
||
--wfm-radius: 8px;
|
||
--wfm-radius-sm: 4px;
|
||
--wfm-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
||
--wfm-header-height: 56px;
|
||
--wfm-toolbar-height: 48px;
|
||
}
|
||
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
||
background: var(--wfm-bg);
|
||
color: var(--wfm-text);
|
||
line-height: 1.5;
|
||
overflow: hidden;
|
||
height: 100vh;
|
||
}
|
||
|
||
/* ============================================
|
||
Header
|
||
============================================ */
|
||
|
||
.wfm-header {
|
||
display: flex;
|
||
align-items: center;
|
||
height: var(--wfm-header-height);
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
padding: 0 16px;
|
||
gap: 24px;
|
||
}
|
||
|
||
.wfm-title {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
white-space: nowrap;
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-tabs {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-tab {
|
||
padding: 8px 20px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border-radius: var(--wfm-radius-sm);
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.wfm-tab:hover {
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-tab.active {
|
||
background: var(--wfm-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
/* ============================================
|
||
Main Content
|
||
============================================ */
|
||
|
||
.wfm-main {
|
||
height: calc(100vh - var(--wfm-header-height));
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-tab-content {
|
||
display: none;
|
||
height: 100%;
|
||
overflow: auto;
|
||
}
|
||
|
||
.wfm-tab-content.active {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
/* ============================================
|
||
Toolbar
|
||
============================================ */
|
||
|
||
.wfm-toolbar {
|
||
display: flex;
|
||
flex-direction: column;
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-toolbar-row {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 4px 12px;
|
||
gap: 8px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-toolbar-row:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.wfm-toolbar-select {
|
||
width: auto;
|
||
min-width: 120px;
|
||
padding: 3px 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* ============================================
|
||
Buttons
|
||
============================================ */
|
||
|
||
.wfm-btn {
|
||
padding: 6px 16px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-btn:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
|
||
.wfm-btn-primary {
|
||
background: var(--wfm-primary);
|
||
border-color: var(--wfm-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-btn-primary:hover {
|
||
background: var(--wfm-primary-hover);
|
||
}
|
||
|
||
.wfm-btn-danger {
|
||
background: var(--wfm-danger);
|
||
border-color: var(--wfm-danger);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-btn-sm {
|
||
padding: 4px 10px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* ============================================
|
||
Filter Buttons
|
||
============================================ */
|
||
|
||
.wfm-filter-group {
|
||
display: flex;
|
||
gap: 4px;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
}
|
||
|
||
.wfm-filter-btn {
|
||
padding: 4px 12px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-filter-btn:hover {
|
||
border-color: var(--wfm-primary);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-filter-btn.active {
|
||
background: var(--wfm-primary);
|
||
border-color: var(--wfm-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
/* ============================================
|
||
Search
|
||
============================================ */
|
||
|
||
.wfm-search-wrap {
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-search-clear-btn {
|
||
position: absolute;
|
||
right: 5px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 2px 3px;
|
||
line-height: 1;
|
||
border-radius: 50%;
|
||
display: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.wfm-search-clear-btn:hover {
|
||
color: var(--wfm-text-primary);
|
||
background: rgba(255,255,255,0.1);
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-search-wrap .wfm-search-input {
|
||
padding-right: 22px;
|
||
}
|
||
|
||
.wfm-search-input {
|
||
padding: 6px 12px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
width: 200px;
|
||
outline: none;
|
||
transition: border-color 0.2s ease;
|
||
}
|
||
|
||
.wfm-search-input:focus {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
/* ============================================
|
||
Workflow Area (grid + side panel)
|
||
============================================ */
|
||
|
||
.wfm-workflow-area {
|
||
display: flex;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
Grid
|
||
============================================ */
|
||
|
||
.wfm-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, 178px);
|
||
grid-auto-rows: max-content;
|
||
gap: 10px;
|
||
padding: 10px;
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
align-content: start;
|
||
align-items: start;
|
||
justify-items: start;
|
||
}
|
||
|
||
/* ============================================
|
||
Workflow Card
|
||
============================================ */
|
||
|
||
.wfm-card {
|
||
width: 178px;
|
||
min-width: 178px;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
overflow: hidden;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-card:hover {
|
||
border-color: var(--wfm-primary);
|
||
box-shadow: 0 0 0 1px var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-card-thumb {
|
||
width: 178px;
|
||
height: 200px;
|
||
background: var(--wfm-bg-tertiary);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-card-thumb img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.wfm-card-thumb-placeholder {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-card-body {
|
||
padding: 6px 8px;
|
||
}
|
||
|
||
.wfm-card-title {
|
||
font-size: 12px;
|
||
font-weight: bold;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-card-meta {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-top: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.wfm-badge {
|
||
padding: 2px 8px;
|
||
font-size: 10px;
|
||
border-radius: 10px;
|
||
background: var(--wfm-bg-tertiary);
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-badge-model {
|
||
background: var(--wfm-accent);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-card-favorite {
|
||
position: absolute;
|
||
top: 6px;
|
||
right: 6px;
|
||
font-size: 18px;
|
||
color: var(--wfm-warning);
|
||
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
|
||
}
|
||
|
||
/* ============================================
|
||
Modal
|
||
============================================ */
|
||
|
||
.wfm-modal-overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(0,0,0,0.6);
|
||
z-index: 1000;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.wfm-modal {
|
||
background: var(--wfm-bg-secondary);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
width: 90%;
|
||
max-width: 800px;
|
||
max-height: 85vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||
}
|
||
|
||
.wfm-modal-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 16px 20px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-modal-header h2 {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-modal-close {
|
||
background: none;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
padding: 0 4px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.wfm-modal-close:hover {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-modal-body {
|
||
padding: 20px;
|
||
overflow-y: auto;
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
Toast
|
||
============================================ */
|
||
|
||
.wfm-toast {
|
||
position: fixed;
|
||
bottom: 24px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
padding: 10px 24px;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
color: var(--wfm-text);
|
||
font-size: 14px;
|
||
z-index: 2000;
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
|
||
transition: opacity 0.3s ease;
|
||
}
|
||
|
||
.wfm-toast.success {
|
||
border-color: var(--wfm-success);
|
||
}
|
||
|
||
.wfm-toast.error {
|
||
border-color: var(--wfm-danger);
|
||
}
|
||
|
||
/* ============================================
|
||
Placeholder
|
||
============================================ */
|
||
|
||
.wfm-placeholder {
|
||
color: var(--wfm-text-secondary);
|
||
text-align: center;
|
||
padding: 48px 16px;
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
/* ============================================
|
||
Form Elements
|
||
============================================ */
|
||
|
||
.wfm-form-group {
|
||
margin-bottom: 16px;
|
||
}
|
||
|
||
.wfm-form-group label {
|
||
display: block;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
margin-bottom: 6px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-input,
|
||
.wfm-textarea,
|
||
.wfm-select {
|
||
width: 100%;
|
||
padding: 8px 12px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
outline: none;
|
||
transition: border-color 0.2s ease;
|
||
}
|
||
|
||
.wfm-select-missing {
|
||
border-color: var(--wfm-warning);
|
||
color: var(--wfm-warning);
|
||
}
|
||
|
||
.wfm-model-missing-hint {
|
||
font-size: 11px;
|
||
color: var(--wfm-warning);
|
||
margin-top: 2px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-input:focus,
|
||
.wfm-textarea:focus,
|
||
.wfm-select:focus {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-textarea {
|
||
resize: vertical;
|
||
min-height: 80px;
|
||
font-family: inherit;
|
||
}
|
||
|
||
/* ============================================
|
||
GenerateUI Tab
|
||
============================================ */
|
||
|
||
.wfm-gen-layout {
|
||
display: flex;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-gen-left {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-gen-right {
|
||
width: 280px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow-y: auto;
|
||
border-left: 1px solid var(--wfm-border);
|
||
padding: 12px;
|
||
gap: 12px;
|
||
}
|
||
|
||
.wfm-gen-subtab-nav {
|
||
display: flex;
|
||
gap: 2px;
|
||
padding: 6px 12px;
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-gen-subtab-btn {
|
||
padding: 6px 14px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
border-radius: var(--wfm-radius-sm);
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.wfm-gen-subtab-btn:hover {
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-gen-subtab-btn.active {
|
||
background: var(--wfm-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-gen-subtab-content {
|
||
display: none;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-gen-subtab-content.active {
|
||
display: flex;
|
||
}
|
||
|
||
/* ── Tab inner layout: params col + rawjson col ── */
|
||
.wfm-gen-tab-cols {
|
||
display: flex;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Left sub-column: parameter controls */
|
||
.wfm-gen-params-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
/* Scrollable variant (Model / Settings single-section) */
|
||
.wfm-gen-params-col--scroll {
|
||
overflow-y: auto;
|
||
padding: 12px 14px;
|
||
}
|
||
|
||
/* Narrow variant for Model tab left pane */
|
||
.wfm-gen-params-col--narrow {
|
||
flex: 1;
|
||
}
|
||
|
||
/* Center pane: LoRA-only (Model tab) */
|
||
.wfm-gen-lora-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-gen-lora-col-header {
|
||
padding: 8px 14px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-lora-bypass-btn,
|
||
.wfm-lora-refresh-btn {
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
padding: 2px 5px;
|
||
opacity: 0.7;
|
||
text-transform: none;
|
||
letter-spacing: 0;
|
||
}
|
||
.wfm-lora-bypass-btn {
|
||
margin-left: auto;
|
||
}
|
||
.wfm-lora-bypass-btn:hover,
|
||
.wfm-lora-refresh-btn:hover { opacity: 1; }
|
||
|
||
/* Bypass is active for the current LoRA target node: strength forced to 0 (see
|
||
comfyui-editor.js renderLoraPane / _loraNodeBypass). */
|
||
.wfm-lora-bypass-btn.active {
|
||
opacity: 1;
|
||
background: var(--wfm-danger);
|
||
border-color: var(--wfm-danger);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-gen-lora-col-body {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 0;
|
||
}
|
||
|
||
/* ── LoRA pane tabs ─────────────────────────────────────── */
|
||
.wfm-lora-tab-header {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
gap: 0;
|
||
padding: 0 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-lora-tab-btn {
|
||
padding: 6px 14px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
color: var(--wfm-text-secondary);
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
cursor: pointer;
|
||
margin-bottom: -1px;
|
||
text-transform: none;
|
||
letter-spacing: 0;
|
||
transition: color 0.15s, border-color 0.15s;
|
||
}
|
||
|
||
.wfm-lora-tab-btn:hover { color: var(--wfm-text); }
|
||
|
||
.wfm-lora-tab-btn.active {
|
||
color: var(--wfm-accent);
|
||
border-bottom-color: var(--wfm-accent);
|
||
}
|
||
|
||
.wfm-lora-tab-content {
|
||
padding: 10px 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
/* ── LoRA pane sections ──────────────────────────────────── */
|
||
.wfm-lora-unified {
|
||
padding: 10px 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.wfm-lora-strength-combined {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0;
|
||
flex-wrap: wrap;
|
||
padding: 2px 0;
|
||
}
|
||
|
||
.wfm-lora-strength-single {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
padding-right: 10px;
|
||
margin-right: 10px;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-lora-strength-single input {
|
||
width: 60px !important;
|
||
}
|
||
|
||
.wfm-lora-stack-header {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-lora-p-btn {
|
||
background: rgba(74, 158, 255, 0.12) !important;
|
||
border-color: rgba(74, 158, 255, 0.35) !important;
|
||
color: var(--wfm-primary) !important;
|
||
font-weight: 700;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-lora-stack-label {
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
padding-right: 2px;
|
||
}
|
||
|
||
.wfm-lora-stack-info-block {
|
||
background: var(--wfm-bg-secondary);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.wfm-lora-stack-info-label {
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-lora-stack-syntax {
|
||
font-size: 11px;
|
||
font-family: monospace;
|
||
color: var(--wfm-text);
|
||
word-break: break-all;
|
||
white-space: pre-wrap;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.wfm-lora-stack-triggers {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-lora-trigger-word {
|
||
font-size: 11px;
|
||
background: rgba(74, 158, 255, 0.12);
|
||
color: var(--wfm-primary);
|
||
border: 1px solid rgba(74, 158, 255, 0.25);
|
||
border-radius: 3px;
|
||
padding: 1px 6px;
|
||
}
|
||
|
||
.wfm-lora-stack-models {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0;
|
||
}
|
||
|
||
.wfm-lora-stack-models-header {
|
||
display: grid;
|
||
grid-template-columns: 16px 1fr 64px 64px;
|
||
gap: 4px;
|
||
padding: 0 0 4px;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
margin-bottom: 4px;
|
||
text-align: right;
|
||
}
|
||
|
||
.wfm-lora-stack-models-header span:nth-child(2) {
|
||
text-align: left;
|
||
}
|
||
|
||
.wfm-lora-stack-model-row {
|
||
display: grid;
|
||
grid-template-columns: 16px 1fr auto;
|
||
gap: 6px;
|
||
align-items: center;
|
||
padding: 4px 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-lora-stack-model-row:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.wfm-lora-stack-model-row--off .wfm-lora-stack-model-name {
|
||
opacity: 0.4;
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.wfm-lora-stack-model-row--off .wfm-lora-stack-strengths input {
|
||
opacity: 0.35;
|
||
}
|
||
|
||
.wfm-lora-stack-model-name {
|
||
font-size: 12px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-lora-stack-strengths {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-lora-stack-strengths input[type="number"] {
|
||
padding: 4px 4px !important;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-lora-stack-strengths input[type="number"]::-webkit-outer-spin-button,
|
||
.wfm-lora-stack-strengths input[type="number"]::-webkit-inner-spin-button {
|
||
-webkit-appearance: none;
|
||
margin: 0;
|
||
}
|
||
|
||
.wfm-lora-stack-strengths input[type="number"] {
|
||
-moz-appearance: textfield;
|
||
appearance: textfield;
|
||
}
|
||
|
||
/* Global strength adjustment row */
|
||
.wfm-lora-stack-global-adj {
|
||
display: grid;
|
||
grid-template-columns: 16px 1fr auto;
|
||
gap: 6px;
|
||
align-items: center;
|
||
padding: 5px 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-lora-stack-global-adj-label {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-lora-stack-global-adj-groups {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-lora-stack-global-adj-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 3px;
|
||
}
|
||
|
||
.wfm-lora-stack-global-adj-group > span {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-lora-stack-adj-step {
|
||
width: 50px !important;
|
||
padding: 2px 4px !important;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-btn-xs {
|
||
padding: 1px 6px;
|
||
font-size: 13px;
|
||
line-height: 1.4;
|
||
min-width: 22px;
|
||
}
|
||
|
||
/* Stacked sections inside params col (Input: Prompt on top, Image below) */
|
||
.wfm-gen-params-section {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 10px 14px;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-gen-params-section--top-border {
|
||
border-top: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
/* Input tab inner tabs (Prompt / Image) */
|
||
.wfm-input-inner-tabnav {
|
||
display: flex;
|
||
gap: 2px;
|
||
padding: 6px 14px 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-input-inner-tab {
|
||
padding: 4px 14px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
margin-bottom: -1px;
|
||
transition: color 0.15s, border-color 0.15s;
|
||
}
|
||
|
||
.wfm-input-inner-tab:hover {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-input-inner-tab.active {
|
||
color: var(--wfm-primary);
|
||
border-bottom-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-input-inner-panel {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 10px 14px;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* Input tab: Prompt (3) | Image (2) side by side. Wraps Image under Prompt when the column is narrow. */
|
||
.wfm-gen-params-col--input {
|
||
container-type: inline-size;
|
||
container-name: wfm-input;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-input-split {
|
||
display: flex;
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-input-inner-panel--prompt {
|
||
flex: 3 1 0;
|
||
min-width: 0;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-input-inner-panel--image {
|
||
flex: 2 1 0;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-input-panel-title {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
@container wfm-input (max-width: 720px) {
|
||
.wfm-input-split {
|
||
flex-direction: column;
|
||
overflow-y: auto;
|
||
}
|
||
.wfm-input-inner-panel--prompt,
|
||
.wfm-input-inner-panel--image {
|
||
flex: none;
|
||
overflow-y: visible;
|
||
border-right: none;
|
||
}
|
||
.wfm-input-inner-panel--prompt {
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
}
|
||
|
||
/* Input tab Raw JSON: collapsible to a slim strip at the right edge */
|
||
.wfm-rawjson-collapse-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
padding: 3px 10px;
|
||
background: var(--wfm-bg-secondary);
|
||
border: none;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
}
|
||
|
||
.wfm-rawjson-collapse-btn:hover {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-rawjson-collapse-label {
|
||
display: none;
|
||
}
|
||
|
||
.wfm-gen-rawjson-col.wfm-gen-rawjson-col--collapsed {
|
||
width: 30px;
|
||
}
|
||
|
||
.wfm-gen-rawjson-col--collapsed .wfm-rawjson-collapse-btn {
|
||
flex: 1;
|
||
flex-direction: column;
|
||
justify-content: flex-start;
|
||
padding: 8px 0;
|
||
border-bottom: none;
|
||
border-left: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg-secondary);
|
||
}
|
||
|
||
.wfm-gen-rawjson-col--collapsed .wfm-rawjson-collapse-label {
|
||
display: block;
|
||
writing-mode: vertical-rl;
|
||
letter-spacing: 1px;
|
||
}
|
||
|
||
.wfm-gen-rawjson-col--collapsed #wfm-gen-rawjson-widget {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Right sub-column: Raw JSON */
|
||
.wfm-gen-rawjson-col {
|
||
width: 540px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-gen-status {
|
||
padding: 4px 10px;
|
||
border-radius: 10px;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.wfm-gen-status.connected {
|
||
background: rgba(46, 213, 115, 0.2);
|
||
color: var(--wfm-success);
|
||
}
|
||
|
||
.wfm-gen-status.disconnected {
|
||
background: rgba(255, 71, 87, 0.2);
|
||
color: var(--wfm-danger);
|
||
}
|
||
|
||
.wfm-gen-progress-container {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-gen-progress-track {
|
||
flex: 1;
|
||
height: 8px;
|
||
background: var(--wfm-bg-tertiary);
|
||
border-radius: 4px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-gen-progress-bar {
|
||
height: 100%;
|
||
width: 0%;
|
||
background: var(--wfm-primary);
|
||
border-radius: 4px;
|
||
transition: width 0.3s ease;
|
||
}
|
||
|
||
.wfm-gen-progress-text {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
min-width: 50px;
|
||
text-align: right;
|
||
}
|
||
|
||
/* Raw JSON widget (shared, moved between tabs by JS) */
|
||
#wfm-gen-rawjson-widget {
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-gen-rawjson-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 10px;
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-gen-rawjson-label {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.wfm-gen-rawjson-editor {
|
||
flex: 1 !important;
|
||
height: auto !important;
|
||
}
|
||
|
||
/* Bypass/Mute node indicator (shown above the Raw JSON search bar when present) */
|
||
.wfm-gen-rawjson-bypass-note {
|
||
padding: 6px 10px;
|
||
background: rgba(255, 165, 2, 0.12);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
color: var(--wfm-warning);
|
||
font-size: 11px;
|
||
line-height: 1.5;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* RAW JSON search bar */
|
||
.wfm-rawjson-search {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 8px;
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-rawjson-search-input {
|
||
flex: 1;
|
||
height: 22px;
|
||
padding: 0 6px;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 3px;
|
||
color: var(--wfm-text);
|
||
font-size: 12px;
|
||
outline: none;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-rawjson-search-input:focus {
|
||
border-color: var(--wfm-accent);
|
||
}
|
||
|
||
.wfm-rawjson-search-count {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
min-width: 56px;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-rawjson-search-btn {
|
||
width: 22px;
|
||
height: 22px;
|
||
padding: 0;
|
||
background: transparent;
|
||
border: 1px solid transparent;
|
||
border-radius: 3px;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
line-height: 1;
|
||
}
|
||
|
||
.wfm-rawjson-search-btn:hover {
|
||
background: rgba(255, 255, 255, 0.08);
|
||
border-color: var(--wfm-border);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-rawjson-search-clear {
|
||
font-size: 14px;
|
||
}
|
||
|
||
.wfm-gen-col-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
margin: 0 0 10px 0;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
padding-bottom: 6px;
|
||
}
|
||
|
||
/* Checkpoint batch dropdown */
|
||
.wfm-ckpt-dropdown-wrap {
|
||
position: relative;
|
||
}
|
||
.wfm-ckpt-dropdown-trigger {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 10px;
|
||
background: var(--wfm-input-bg, var(--wfm-bg));
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
color: var(--wfm-text-primary);
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
text-align: left;
|
||
transition: border-color 0.2s ease;
|
||
}
|
||
.wfm-ckpt-dropdown-trigger:hover {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
.wfm-ckpt-dropdown-arrow {
|
||
font-size: 9px;
|
||
color: var(--wfm-text-secondary);
|
||
transition: transform 0.15s;
|
||
flex-shrink: 0;
|
||
margin-left: 6px;
|
||
}
|
||
.wfm-ckpt-dropdown-wrap.open .wfm-ckpt-dropdown-arrow {
|
||
transform: rotate(180deg);
|
||
}
|
||
.wfm-ckpt-dropdown-panel {
|
||
position: absolute;
|
||
z-index: 200;
|
||
top: calc(100% + 2px);
|
||
left: 0;
|
||
right: 0;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.35);
|
||
}
|
||
.wfm-ckpt-dropdown-list {
|
||
max-height: 200px;
|
||
overflow-y: auto;
|
||
padding: 4px 0;
|
||
}
|
||
.wfm-ckpt-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 10px;
|
||
cursor: pointer;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-primary);
|
||
}
|
||
.wfm-ckpt-item:hover {
|
||
background: rgba(255,255,255,0.05);
|
||
}
|
||
.wfm-ckpt-item input[type=checkbox] {
|
||
width: 12px;
|
||
height: 12px;
|
||
flex-shrink: 0;
|
||
cursor: pointer;
|
||
accent-color: var(--wfm-primary);
|
||
}
|
||
.wfm-ckpt-item-label {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-ckpt-item--indented {
|
||
padding-left: 24px;
|
||
}
|
||
.wfm-ckpt-folder-group {
|
||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||
}
|
||
.wfm-ckpt-folder-group:last-child {
|
||
border-bottom: none;
|
||
}
|
||
.wfm-ckpt-folder-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 5px 10px;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
}
|
||
.wfm-ckpt-folder-header:hover {
|
||
background: rgba(255,255,255,0.05);
|
||
}
|
||
.wfm-ckpt-folder-header input[type=checkbox] {
|
||
width: 12px;
|
||
height: 12px;
|
||
flex-shrink: 0;
|
||
cursor: pointer;
|
||
accent-color: var(--wfm-primary);
|
||
}
|
||
.wfm-ckpt-folder-toggle {
|
||
font-size: 8px;
|
||
color: var(--wfm-text-secondary);
|
||
transition: transform 0.15s;
|
||
flex-shrink: 0;
|
||
width: 10px;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
}
|
||
.wfm-ckpt-folder-group.open .wfm-ckpt-folder-toggle {
|
||
transform: rotate(90deg);
|
||
}
|
||
.wfm-ckpt-folder-name {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
cursor: pointer;
|
||
}
|
||
.wfm-ckpt-folder-count {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
opacity: 0.65;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-ckpt-folder-files {
|
||
display: none;
|
||
}
|
||
.wfm-ckpt-folder-group.open .wfm-ckpt-folder-files {
|
||
display: block;
|
||
}
|
||
|
||
/* Generation panel in right column */
|
||
.wfm-gen-panel {
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
padding: 12px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-gen-result {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-gen-thumbs {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
}
|
||
|
||
.wfm-gen-thumb {
|
||
width: 64px;
|
||
height: 64px;
|
||
object-fit: cover;
|
||
border-radius: var(--wfm-radius-sm);
|
||
border: 2px solid transparent;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s ease;
|
||
}
|
||
|
||
.wfm-gen-thumb.active {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-gen-thumb:hover {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
/* ============================================
|
||
Settings Tab
|
||
============================================ */
|
||
|
||
.wfm-settings-container {
|
||
padding: 24px;
|
||
height: 100%;
|
||
box-sizing: border-box;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.wfm-settings-layout {
|
||
/* layout wrapper — Theme floats right inside this */
|
||
}
|
||
|
||
.wfm-settings-left-col {
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-settings-right-col {
|
||
float: right;
|
||
width: 50%;
|
||
position: sticky;
|
||
top: 0;
|
||
max-height: calc(100vh - var(--wfm-header-height, 96px) - 48px);
|
||
overflow-y: auto;
|
||
margin-left: 24px;
|
||
margin-bottom: 16px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* ============================================
|
||
Scrollbar
|
||
============================================ */
|
||
|
||
::-webkit-scrollbar {
|
||
width: 8px;
|
||
height: 8px;
|
||
}
|
||
|
||
::-webkit-scrollbar-track {
|
||
background: var(--wfm-bg);
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb {
|
||
background: var(--wfm-border);
|
||
border-radius: 4px;
|
||
}
|
||
|
||
::-webkit-scrollbar-thumb:hover {
|
||
background: var(--wfm-text-secondary);
|
||
}
|
||
|
||
/* ============================================
|
||
View Mode Buttons
|
||
============================================ */
|
||
|
||
.wfm-view-btns {
|
||
display: flex;
|
||
gap: 2px;
|
||
margin-left: 8px;
|
||
}
|
||
|
||
.wfm-view-btn {
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 14px;
|
||
width: 28px;
|
||
height: 28px;
|
||
cursor: pointer;
|
||
border-radius: var(--wfm-radius-sm);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0;
|
||
transition: all 0.15s ease;
|
||
}
|
||
|
||
.wfm-view-btn:hover {
|
||
color: var(--wfm-text);
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-view-btn.active {
|
||
background: var(--wfm-primary);
|
||
color: #fff;
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
/* ============================================
|
||
Favorite Button
|
||
============================================ */
|
||
|
||
.wfm-fav-btn {
|
||
position: absolute;
|
||
top: 6px;
|
||
right: 6px;
|
||
background: none;
|
||
border: none;
|
||
font-size: 16px;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
padding: 2px;
|
||
line-height: 1;
|
||
opacity: 0.5;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
}
|
||
|
||
.wfm-fav-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-fav-btn.active {
|
||
color: var(--wfm-warning);
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ============================================
|
||
Batch Button
|
||
============================================ */
|
||
|
||
.wfm-batch-btn {
|
||
position: absolute;
|
||
top: 6px;
|
||
left: 6px;
|
||
background: none;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
font-weight: bold;
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
opacity: 0.5;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
padding: 0 2px;
|
||
}
|
||
|
||
.wfm-batch-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-batch-btn.active {
|
||
color: #f0c040;
|
||
opacity: 1;
|
||
}
|
||
|
||
|
||
.wfm-table-row .wfm-batch-btn,
|
||
.wfm-models-table-row .wfm-batch-btn {
|
||
position: static;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
/* ============================================
|
||
Stack Button (Lora multi-apply)
|
||
============================================ */
|
||
|
||
.wfm-stack-btn {
|
||
position: absolute;
|
||
bottom: 6px;
|
||
left: 6px;
|
||
background: none;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
font-weight: bold;
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
opacity: 0.5;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
padding: 0 2px;
|
||
}
|
||
|
||
.wfm-stack-btn:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-stack-btn.active {
|
||
color: #60d0a0;
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-table-row .wfm-stack-btn,
|
||
.wfm-models-table-row .wfm-stack-btn {
|
||
position: static;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
|
||
.wfm-tag {
|
||
font-size: 10px;
|
||
color: var(--wfm-primary);
|
||
background: rgba(74, 158, 255, 0.1);
|
||
padding: 1px 5px;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
/* ============================================
|
||
Table View Mode
|
||
============================================ */
|
||
|
||
.wfm-view-table {
|
||
display: block !important;
|
||
overflow-y: auto;
|
||
justify-items: stretch !important;
|
||
}
|
||
|
||
.wfm-view-table .wfm-card,
|
||
.wfm-view-table .wfm-model-card {
|
||
width: auto !important;
|
||
min-width: 0 !important;
|
||
}
|
||
|
||
.wfm-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.wfm-table thead th {
|
||
position: sticky;
|
||
top: 0;
|
||
background: var(--wfm-bg-secondary);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
padding: 6px 10px;
|
||
text-align: left;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
z-index: 1;
|
||
}
|
||
|
||
.wfm-table-row {
|
||
cursor: pointer;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
.wfm-table-row:hover {
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-table-row.wfm-card-selected {
|
||
background: color-mix(in srgb, var(--wfm-primary) 12%, var(--wfm-bg));
|
||
}
|
||
|
||
.wfm-table-row td {
|
||
padding: 5px 10px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.wfm-table-row .wfm-fav-btn {
|
||
position: static;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.wfm-table-td-thumb {
|
||
width: 48px;
|
||
padding: 3px 6px !important;
|
||
}
|
||
|
||
.wfm-table-thumb {
|
||
width: 44px;
|
||
height: 44px;
|
||
object-fit: cover;
|
||
border-radius: 3px;
|
||
display: block;
|
||
}
|
||
|
||
.wfm-table-no-thumb {
|
||
width: 44px;
|
||
height: 44px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-bg-tertiary);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.wfm-table-th-name { width: 120px; }
|
||
.wfm-table-td-name {
|
||
max-width: 120px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.wfm-table-td-io {
|
||
white-space: nowrap;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.wfm-table-th-memo,
|
||
.wfm-table-th-summary { width: 160px; }
|
||
|
||
.wfm-table-td-memo,
|
||
.wfm-table-td-summary {
|
||
max-width: 160px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
/* ============================================
|
||
Card Selected State
|
||
============================================ */
|
||
|
||
.wfm-card.wfm-card-selected {
|
||
border-color: var(--wfm-primary);
|
||
box-shadow: 0 0 0 2px var(--wfm-primary);
|
||
background: color-mix(in srgb, var(--wfm-primary) 10%, var(--wfm-surface));
|
||
}
|
||
|
||
.wfm-card.multi-selected {
|
||
border-color: #f59e0b !important;
|
||
box-shadow: 0 0 0 2px #f59e0b !important;
|
||
background: color-mix(in srgb, #f59e0b 10%, var(--wfm-surface));
|
||
}
|
||
|
||
.wfm-nodes-table-row.multi-selected {
|
||
background: rgba(245, 158, 11, 0.15);
|
||
outline: 1px solid #f59e0b;
|
||
}
|
||
|
||
/* ============================================
|
||
Side Panel
|
||
============================================ */
|
||
|
||
.wfm-side-panel {
|
||
width: 380px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
border-left: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg-secondary);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-side-panel-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 8px 12px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
background: var(--wfm-surface);
|
||
flex-shrink: 0;
|
||
min-height: 37px;
|
||
}
|
||
|
||
.wfm-side-panel-title {
|
||
flex: 1;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.wfm-side-panel-empty {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* Side Panel Tabs */
|
||
|
||
.wfm-side-tab-nav {
|
||
display: flex;
|
||
gap: 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-side-tab-btn {
|
||
flex: 1;
|
||
padding: 6px 10px;
|
||
font-size: 12px;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
background: transparent;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
transition: color 0.15s, border-color 0.15s;
|
||
}
|
||
|
||
.wfm-side-tab-btn:hover {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-side-tab-btn.active {
|
||
color: var(--wfm-text);
|
||
border-bottom-color: var(--wfm-primary);
|
||
font-weight: bold;
|
||
}
|
||
|
||
.wfm-side-tab-content {
|
||
display: none;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-side-tab-content.active {
|
||
display: flex;
|
||
}
|
||
|
||
/* JSON Tab */
|
||
|
||
.wfm-side-json-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 10px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-format-badge {
|
||
font-size: 11px;
|
||
padding: 2px 8px;
|
||
border-radius: 3px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.wfm-format-badge--ui {
|
||
background: rgba(46, 213, 115, 0.15);
|
||
color: var(--wfm-success);
|
||
}
|
||
|
||
.wfm-format-badge--api {
|
||
background: rgba(74, 158, 255, 0.15);
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-format-badge--app {
|
||
background: rgba(255, 165, 0, 0.15);
|
||
color: #ff9800;
|
||
}
|
||
|
||
.wfm-json-content {
|
||
flex: 1;
|
||
overflow: auto;
|
||
padding: 10px;
|
||
margin: 0;
|
||
font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
|
||
font-size: 11px;
|
||
line-height: 1.5;
|
||
white-space: pre;
|
||
color: #abb2bf;
|
||
background: var(--wfm-bg);
|
||
border: none;
|
||
tab-size: 2;
|
||
}
|
||
|
||
/* JSON Syntax Highlight - editable layered structure */
|
||
.wfm-json-container {
|
||
position: relative;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
background: var(--wfm-bg);
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.wfm-json-highlight,
|
||
.wfm-json-editor {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
padding: 10px;
|
||
box-sizing: border-box;
|
||
font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
white-space: pre;
|
||
word-wrap: normal;
|
||
overflow: auto;
|
||
border: none;
|
||
background: transparent;
|
||
tab-size: 2;
|
||
}
|
||
|
||
.wfm-json-highlight {
|
||
z-index: 1;
|
||
color: #abb2bf;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Search match overlay: transparent text, mark backgrounds only */
|
||
.wfm-json-search-overlay {
|
||
z-index: 2;
|
||
color: transparent !important;
|
||
}
|
||
|
||
.wfm-json-search-overlay mark.wfm-search-match {
|
||
background: rgba(234, 201, 70, 0.35);
|
||
color: transparent;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.wfm-json-search-overlay mark.wfm-search-current {
|
||
background: rgba(255, 150, 0, 0.65);
|
||
color: transparent;
|
||
border-radius: 2px;
|
||
outline: 1px solid rgba(255, 150, 0, 0.9);
|
||
}
|
||
|
||
.wfm-json-editor {
|
||
z-index: 3;
|
||
color: transparent;
|
||
caret-color: #ffffff;
|
||
outline: none;
|
||
resize: none;
|
||
}
|
||
|
||
/* JSON highlight color classes */
|
||
.json-key-yellow, .json-val-yellow { color: #e5c07b; }
|
||
.json-key-pink, .json-val-pink { color: #c678dd; }
|
||
.json-key-green, .json-val-green { color: #98c379; }
|
||
.json-key-cyan, .json-val-cyan { color: #61afef; }
|
||
.json-key-red, .json-val-red { color: #e06c75; }
|
||
|
||
/* Group Tab */
|
||
|
||
.wfm-group-panel {
|
||
padding: 10px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
overflow-y: auto;
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-group-section-title {
|
||
font-weight: bold;
|
||
margin-bottom: 6px;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.wfm-group-prop {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
word-break: break-all;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.wfm-group-divider {
|
||
border: none;
|
||
border-top: 1px solid var(--wfm-border);
|
||
margin: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
Badge Color Settings Panel
|
||
============================================ */
|
||
|
||
.wfm-badge-settings-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-badge-settings-panel {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
right: 0;
|
||
z-index: 300;
|
||
background: var(--wfm-bg-secondary);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 6px;
|
||
padding: 8px 10px;
|
||
min-width: 180px;
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
||
}
|
||
|
||
.wfm-badge-settings-title {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 6px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.wfm-settings-radio-group {
|
||
display: flex;
|
||
gap: 10px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-settings-radio {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 3px;
|
||
font-size: 12px;
|
||
color: var(--wfm-text);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-settings-radio input[type="radio"] {
|
||
margin: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-badge-color-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 5px;
|
||
}
|
||
|
||
.wfm-badge-color-row .wfm-badge {
|
||
min-width: 54px;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-badge-color-input {
|
||
width: 28px;
|
||
height: 22px;
|
||
padding: 0;
|
||
border: none;
|
||
border-radius: 3px;
|
||
cursor: pointer;
|
||
background: none;
|
||
margin-left: auto;
|
||
}
|
||
|
||
/* ============================================
|
||
Badge Filter Bar (model type row)
|
||
============================================ */
|
||
|
||
.wfm-models-type-divider {
|
||
width: 1px;
|
||
height: 20px;
|
||
background: var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-badge-filter-bar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-badge-filter-btn {
|
||
padding: 2px 10px;
|
||
font-size: 11px;
|
||
border-radius: 10px;
|
||
border: 1px solid transparent;
|
||
background: var(--wfm-bg-tertiary);
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
transition: opacity 0.15s, box-shadow 0.15s;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-badge-filter-btn:hover {
|
||
opacity: 0.85;
|
||
}
|
||
|
||
.wfm-badge-filter-btn.active {
|
||
box-shadow: 0 0 0 2px var(--wfm-primary);
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ============================================
|
||
Badge checkbox list in modal
|
||
============================================ */
|
||
|
||
.wfm-badge-checkboxes {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.wfm-badge-check-label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-badge-check-label input[type="checkbox"] {
|
||
display: none;
|
||
}
|
||
|
||
.wfm-badge-check-label input[type="checkbox"]:not(:checked) + .wfm-badge {
|
||
opacity: 0.45;
|
||
}
|
||
|
||
.wfm-badge-clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-badge-clickable:hover {
|
||
opacity: 0.8;
|
||
}
|
||
|
||
/* ============================================
|
||
Modal Detail - Two Column Layout
|
||
============================================ */
|
||
|
||
.wfm-modal-two-col {
|
||
display: flex;
|
||
gap: 20px;
|
||
min-height: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-modal-left {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.wfm-modal-right {
|
||
width: 280px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-modal-section-header {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-modal-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.wfm-detail-summary-area {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.wfm-detail-summary-area .wfm-textarea {
|
||
flex: 1;
|
||
min-height: 200px;
|
||
resize: vertical;
|
||
}
|
||
|
||
/* Modal header favorite button */
|
||
.wfm-modal-header .wfm-fav-btn {
|
||
position: static;
|
||
opacity: 0.7;
|
||
font-size: 18px;
|
||
margin-right: 8px;
|
||
}
|
||
|
||
.wfm-modal-header .wfm-fav-btn.active {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Modal title clickable for rename */
|
||
.wfm-modal-header h2 {
|
||
cursor: pointer;
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-modal-header h2:hover {
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-modal-title-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
padding: 4px 8px;
|
||
border: 1px solid var(--wfm-primary);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text);
|
||
border-radius: var(--wfm-radius-sm);
|
||
outline: none;
|
||
}
|
||
|
||
/* Analysis content area */
|
||
.wfm-detail-analysis {
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
padding: 8px 10px;
|
||
font-size: 12px;
|
||
line-height: 1.6;
|
||
max-height: 200px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* Model override row */
|
||
.wfm-detail-model-row {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-detail-model-row .wfm-select {
|
||
flex: 1;
|
||
padding: 4px 8px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.wfm-detail-model-row .wfm-btn {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
Prompt Tab
|
||
============================================ */
|
||
|
||
/* Subtab navigation */
|
||
.wfm-prompt-split {
|
||
display: flex;
|
||
flex: 1;
|
||
min-height: 0;
|
||
gap: 0;
|
||
}
|
||
|
||
.wfm-prompt-split-left,
|
||
.wfm-prompt-split-right {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-prompt-split-left {
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
/* 3-column layout */
|
||
.wfm-prompt-split-3col .wfm-prompt-split-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-prompt-split-3col .wfm-prompt-split-col + .wfm-prompt-split-col {
|
||
border-left: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
/* Preset Manager panel */
|
||
.wfm-preset-manager {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
.wfm-pm-tabs {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-pm-tab {
|
||
flex: 1;
|
||
padding: 7px 4px;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
.wfm-pm-tab:hover { color: var(--wfm-text); }
|
||
.wfm-pm-tab.active {
|
||
color: var(--wfm-text);
|
||
border-bottom-color: var(--wfm-primary);
|
||
}
|
||
.wfm-pm-search {
|
||
padding: 8px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
gap: 4px;
|
||
align-items: center;
|
||
}
|
||
.wfm-pm-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 0;
|
||
}
|
||
.wfm-pm-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 8px 10px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
cursor: pointer;
|
||
transition: background 0.12s;
|
||
}
|
||
.wfm-pm-item:hover {
|
||
background: var(--wfm-surface);
|
||
}
|
||
.wfm-pm-item.active {
|
||
background: rgba(74, 158, 255, 0.12);
|
||
border-left: 3px solid var(--wfm-primary);
|
||
}
|
||
.wfm-pm-item-body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.wfm-pm-item-name {
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.wfm-pm-item-sub {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
margin-top: 2px;
|
||
}
|
||
.wfm-pm-item-actions {
|
||
display: flex;
|
||
gap: 2px;
|
||
flex-shrink: 0;
|
||
opacity: 0;
|
||
transition: opacity 0.15s;
|
||
}
|
||
.wfm-pm-item:hover .wfm-pm-item-actions {
|
||
opacity: 1;
|
||
}
|
||
.wfm-pm-action-btn {
|
||
background: none;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 14px;
|
||
cursor: pointer;
|
||
padding: 2px 4px;
|
||
border-radius: 3px;
|
||
line-height: 1;
|
||
}
|
||
.wfm-pm-action-btn:hover {
|
||
background: var(--wfm-surface-2, var(--wfm-surface));
|
||
color: var(--wfm-text);
|
||
}
|
||
.wfm-pm-action-btn.fav-active {
|
||
color: #ffd700;
|
||
}
|
||
.wfm-pm-action-btn.batch-active {
|
||
color: #f0c040;
|
||
opacity: 1;
|
||
}
|
||
.wfm-pm-empty {
|
||
padding: 24px 16px;
|
||
text-align: center;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
line-height: 1.6;
|
||
}
|
||
.wfm-pm-group-header {
|
||
padding: 6px 10px;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-surface);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.wfm-pm-group-header:hover {
|
||
background: var(--wfm-surface-2, var(--wfm-surface));
|
||
}
|
||
.wfm-pm-group-header::before {
|
||
content: "\25BC";
|
||
font-size: 8px;
|
||
margin-right: 6px;
|
||
transition: transform 0.15s;
|
||
}
|
||
.wfm-pm-group-header.collapsed::before {
|
||
transform: rotate(-90deg);
|
||
}
|
||
.wfm-pm-badge {
|
||
font-size: 10px;
|
||
padding: 1px 5px;
|
||
background: var(--wfm-surface);
|
||
border-radius: 3px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-prompt-split-header {
|
||
padding: 8px 12px;
|
||
font-size: 13px;
|
||
font-weight: bold;
|
||
color: var(--wfm-text);
|
||
background: var(--wfm-surface);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Col3 (Wildcard/Style) タブ切り替え */
|
||
.wfm-prompt-col3-tabs {
|
||
display: flex;
|
||
background: var(--wfm-surface);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-prompt-col3-tab {
|
||
flex: 1;
|
||
padding: 8px 4px;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
font-weight: bold;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
.wfm-prompt-col3-tab:hover { color: var(--wfm-text); }
|
||
.wfm-prompt-col3-tab.active {
|
||
color: var(--wfm-text);
|
||
border-bottom-color: var(--wfm-primary);
|
||
}
|
||
.wfm-prompt-col3-tab-content {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Prompt タブ: Form / Table 切り替え */
|
||
.wfm-prompt-toplevel-nav {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-prompt-toplevel-tab {
|
||
padding: 6px 16px;
|
||
font-size: 12px;
|
||
background: transparent;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
transition: color 0.15s;
|
||
}
|
||
.wfm-prompt-toplevel-tab:hover { color: var(--wfm-text-primary); }
|
||
.wfm-prompt-toplevel-tab.active { color: var(--wfm-primary); border-bottom-color: var(--wfm-primary); }
|
||
|
||
.wfm-prompt-panel {
|
||
display: none;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-prompt-panel.active { display: flex; }
|
||
|
||
/* Table パネル内サブタブ (Presets / Wildcards / Style) */
|
||
.wfm-prompt-table-subnav {
|
||
display: flex;
|
||
background: var(--wfm-surface);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-prompt-table-subtab {
|
||
padding: 8px 16px;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
font-weight: bold;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
.wfm-prompt-table-subtab:hover { color: var(--wfm-text); }
|
||
.wfm-prompt-table-subtab.active { color: var(--wfm-text); border-bottom-color: var(--wfm-primary); }
|
||
|
||
.wfm-prompt-table-pane {
|
||
display: none;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-prompt-table-pane.active { display: flex; }
|
||
|
||
.wfm-prompt-table-toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
align-items: center;
|
||
padding: 8px;
|
||
flex-shrink: 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-prompt-table-scroll {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: auto;
|
||
}
|
||
|
||
/* 編集可能テーブル (Presets / Wildcards / Style 共通) */
|
||
.wfm-prompt-edit-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
}
|
||
.wfm-prompt-edit-table th,
|
||
.wfm-prompt-edit-table td {
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
padding: 4px 6px;
|
||
vertical-align: top;
|
||
}
|
||
.wfm-prompt-edit-table th {
|
||
position: sticky;
|
||
top: 0;
|
||
background: var(--wfm-surface);
|
||
text-align: left;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
z-index: 1;
|
||
}
|
||
.wfm-prompt-edit-table tbody tr:hover td {
|
||
background: var(--wfm-surface);
|
||
}
|
||
.wfm-prompt-edit-input,
|
||
.wfm-prompt-edit-textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
background: transparent;
|
||
border: 1px solid transparent;
|
||
border-radius: 3px;
|
||
color: var(--wfm-text);
|
||
font-size: 12px;
|
||
padding: 3px 5px;
|
||
font-family: inherit;
|
||
}
|
||
.wfm-prompt-edit-textarea {
|
||
min-height: 40px;
|
||
resize: vertical;
|
||
}
|
||
.wfm-prompt-edit-input:hover,
|
||
.wfm-prompt-edit-textarea:hover {
|
||
border-color: var(--wfm-border);
|
||
}
|
||
.wfm-prompt-edit-input:focus,
|
||
.wfm-prompt-edit-textarea:focus {
|
||
outline: none;
|
||
border-color: var(--wfm-primary);
|
||
background: var(--wfm-bg);
|
||
}
|
||
@keyframes wfm-prompt-cell-flash {
|
||
0% { background: rgba(74, 158, 255, 0.3); }
|
||
100% { background: transparent; }
|
||
}
|
||
.wfm-prompt-edit-cell-saved {
|
||
animation: wfm-prompt-cell-flash 0.7s ease;
|
||
}
|
||
.wfm-prompt-edit-fav-btn {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 2px;
|
||
line-height: 1;
|
||
}
|
||
.wfm-prompt-edit-fav-btn.active { color: #ffd700; }
|
||
.wfm-prompt-edit-batch-btn.active { color: #f0c040; }
|
||
.wfm-prompt-edit-row-new td { background: rgba(74, 158, 255, 0.06); }
|
||
.wfm-prompt-edit-file-badge {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
display: block;
|
||
}
|
||
.wfm-prompt-edit-empty {
|
||
padding: 24px;
|
||
text-align: center;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* ダブルクリックで開くプロンプト編集モーダル (Presets / Wildcards / Style 共通) */
|
||
.wfm-prompt-modal-toggle {
|
||
display: flex;
|
||
gap: 6px;
|
||
}
|
||
.wfm-prompt-modal-textarea {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
min-height: 320px;
|
||
resize: vertical;
|
||
margin-top: 8px;
|
||
}
|
||
.wfm-prompt-modal-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
justify-content: flex-end;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
/* #(自動採番)列: クリックで行選択 → 上部の Delete ボタンで一括削除 */
|
||
.wfm-prompt-edit-num-cell {
|
||
text-align: center;
|
||
cursor: pointer;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
font-variant-numeric: tabular-nums;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-prompt-edit-num-cell:hover {
|
||
color: var(--wfm-text);
|
||
background: var(--wfm-surface-2, var(--wfm-surface));
|
||
}
|
||
.wfm-prompt-edit-table tbody tr.wfm-prompt-edit-row-selected td {
|
||
background: rgba(255, 69, 58, 0.14);
|
||
}
|
||
.wfm-prompt-edit-table tbody tr.wfm-prompt-edit-row-selected .wfm-prompt-edit-num-cell {
|
||
color: var(--wfm-danger);
|
||
font-weight: bold;
|
||
}
|
||
.wfm-prompt-edit-num-cell-new {
|
||
display: flex;
|
||
gap: 2px;
|
||
justify-content: center;
|
||
}
|
||
.wfm-prompt-edit-inline-add-btn,
|
||
.wfm-prompt-edit-inline-cancel-btn {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
padding: 2px 3px;
|
||
line-height: 1;
|
||
border-radius: 3px;
|
||
}
|
||
.wfm-prompt-edit-inline-add-btn { color: var(--wfm-primary); }
|
||
.wfm-prompt-edit-inline-add-btn:hover { background: var(--wfm-primary); color: #fff; }
|
||
.wfm-prompt-edit-inline-cancel-btn { color: var(--wfm-text-secondary); }
|
||
.wfm-prompt-edit-inline-cancel-btn:hover { color: var(--wfm-danger); }
|
||
|
||
/* Presets Group テーブル: プリセットバッジ */
|
||
.wfm-prompt-edit-preset-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 3px;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 10px;
|
||
padding: 2px 4px 2px 8px;
|
||
font-size: 11px;
|
||
margin: 2px 3px 2px 0;
|
||
}
|
||
.wfm-prompt-edit-badge-remove {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 10px;
|
||
padding: 1px 3px;
|
||
line-height: 1;
|
||
}
|
||
.wfm-prompt-edit-badge-remove:hover { color: var(--wfm-danger); }
|
||
|
||
/* Ollama Assistant */
|
||
.wfm-ollama-assistant {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
padding: 12px;
|
||
gap: 10px;
|
||
}
|
||
|
||
.wfm-ollama-controls {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.wfm-ollama-controls .wfm-select {
|
||
flex: 1;
|
||
min-width: 150px;
|
||
}
|
||
|
||
.wfm-ollama-status {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 2px 8px;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.wfm-ollama-status.connected {
|
||
color: var(--wfm-success);
|
||
}
|
||
|
||
.wfm-ollama-status.error {
|
||
color: var(--wfm-danger);
|
||
}
|
||
|
||
.wfm-ollama-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Chat area */
|
||
.wfm-ollama-chat {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
background: var(--wfm-bg);
|
||
padding: 12px;
|
||
min-height: 200px;
|
||
}
|
||
|
||
.wfm-ollama-welcome {
|
||
text-align: center;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 40px 20px;
|
||
}
|
||
|
||
.wfm-ollama-welcome p:first-child {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
margin-bottom: 8px;
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-ollama-msg {
|
||
margin-bottom: 12px;
|
||
padding: 8px 12px;
|
||
border-radius: var(--wfm-radius);
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-ollama-msg.user {
|
||
background: rgba(74, 158, 255, 0.1);
|
||
border-left: 3px solid var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-ollama-msg.assistant {
|
||
background: rgba(46, 213, 115, 0.08);
|
||
border-left: 3px solid var(--wfm-success);
|
||
}
|
||
|
||
.wfm-ollama-msg-role {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 4px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.03em;
|
||
}
|
||
|
||
.wfm-ollama-msg-content {
|
||
font-size: 13px;
|
||
line-height: 1.6;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.wfm-ollama-apply-row {
|
||
display: flex;
|
||
gap: 6px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
/* Attachments */
|
||
.wfm-ollama-attachments {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ollama-attachment {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
padding: 4px 8px;
|
||
}
|
||
|
||
.wfm-ollama-attachment img {
|
||
width: 32px;
|
||
height: 32px;
|
||
object-fit: cover;
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.wfm-ollama-attachment-name {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
max-width: 100px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-ollama-attachment-remove {
|
||
background: none;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
padding: 0 2px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.wfm-ollama-attachment-remove:hover {
|
||
color: var(--wfm-danger);
|
||
}
|
||
|
||
/* Translate row */
|
||
.wfm-ollama-translate-row {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Input area */
|
||
.wfm-ollama-input-wrap {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ollama-input-wrap .wfm-textarea {
|
||
flex: 1;
|
||
min-height: 60px;
|
||
max-height: 120px;
|
||
resize: vertical;
|
||
}
|
||
|
||
/* Preset panel */
|
||
.wfm-preset-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
padding: 12px;
|
||
gap: 10px;
|
||
}
|
||
|
||
.wfm-preset-toolbar {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-preset-toolbar .wfm-select {
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-preset-form {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
gap: 8px;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-preset-form label {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.wfm-preset-form .wfm-textarea {
|
||
flex: 1;
|
||
min-height: 80px;
|
||
resize: vertical;
|
||
}
|
||
|
||
.wfm-preset-actions {
|
||
display: flex;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ============================================
|
||
Prompt Tab — Center column tabs
|
||
============================================ */
|
||
|
||
.wfm-prompt-center-tabnav {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-prompt-center-tab {
|
||
flex: 1;
|
||
padding: 8px 4px;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.wfm-prompt-center-tab:hover {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-prompt-center-tab.active {
|
||
color: var(--wfm-text);
|
||
border-bottom-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-prompt-center-pane {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* ============================================
|
||
Wildcard Panel
|
||
============================================ */
|
||
|
||
.wfm-wc-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
padding: 10px 12px;
|
||
gap: 0;
|
||
}
|
||
|
||
/* Input assistance section */
|
||
.wfm-wc-input-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Wildcard syntax button toolbar */
|
||
.wfm-wc-toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
padding: 4px 0;
|
||
}
|
||
|
||
.wfm-wc-btn {
|
||
padding: 3px 7px;
|
||
font-size: 11px;
|
||
font-family: monospace;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
color: var(--wfm-text);
|
||
cursor: pointer;
|
||
transition: background 0.12s, border-color 0.12s;
|
||
white-space: nowrap;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.wfm-wc-btn:hover {
|
||
background: var(--wfm-surface-2, var(--wfm-surface));
|
||
border-color: var(--wfm-primary);
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-wc-prompt-ta {
|
||
resize: vertical;
|
||
min-height: 70px;
|
||
font-family: monospace;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.wfm-wc-prompt-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* File picker popup */
|
||
.wfm-wc-file-picker-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-wc-file-picker {
|
||
position: absolute;
|
||
top: calc(100% + 4px);
|
||
left: 0;
|
||
z-index: 200;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
min-width: 160px;
|
||
max-height: 200px;
|
||
overflow-y: auto;
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||
}
|
||
|
||
.wfm-wc-picker-item {
|
||
display: block;
|
||
width: 100%;
|
||
padding: 6px 10px;
|
||
text-align: left;
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text);
|
||
font-size: 11px;
|
||
font-family: monospace;
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
.wfm-wc-picker-item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.wfm-wc-picker-item:hover {
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-wc-picker-dir {
|
||
padding: 4px 10px 2px;
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-bg);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.wfm-wc-picker-item--sub {
|
||
padding-left: 18px;
|
||
}
|
||
|
||
/* File manager section */
|
||
.wfm-wc-files-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
margin-top: 10px;
|
||
border-top: 1px solid var(--wfm-border);
|
||
padding-top: 8px;
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-wc-files-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-shrink: 0;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-wc-files-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.wfm-wc-file-list {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
max-height: 180px;
|
||
}
|
||
|
||
.wfm-wc-dir-header {
|
||
padding: 4px 8px 2px;
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-bg);
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.wfm-wc-file-item {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 8px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
.wfm-wc-file-item--sub {
|
||
padding-left: 16px;
|
||
}
|
||
|
||
.wfm-wc-file-item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.wfm-wc-file-item:hover {
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-wc-file-item-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-wc-file-name {
|
||
font-size: 12px;
|
||
font-family: monospace;
|
||
color: var(--wfm-text);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.wfm-wc-file-ext {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 3px;
|
||
padding: 1px 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-wc-file-item-actions {
|
||
display: flex;
|
||
gap: 2px;
|
||
opacity: 0;
|
||
transition: opacity 0.12s;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-wc-file-item:hover .wfm-wc-file-item-actions {
|
||
opacity: 1;
|
||
}
|
||
|
||
.wfm-wc-use-btn {
|
||
font-size: 10px !important;
|
||
color: var(--wfm-primary) !important;
|
||
}
|
||
|
||
/* File editor */
|
||
.wfm-wc-editor {
|
||
margin-top: 8px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
padding: 8px;
|
||
background: var(--wfm-surface);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.wfm-wc-editor-header {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-wc-editor-hint {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 0 2px;
|
||
}
|
||
|
||
.wfm-wc-editor-ta {
|
||
font-family: monospace;
|
||
font-size: 12px;
|
||
resize: vertical;
|
||
min-height: 120px;
|
||
}
|
||
|
||
.wfm-wc-editor-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
/* ============================================
|
||
Image Input (I2I) Slots
|
||
============================================ */
|
||
|
||
/* Container/header styling comes from .wfm-settings-section / .wfm-settings-summary
|
||
(shared details/summary accordion used by the Settings tab) — collapsed by default
|
||
since this is a low-frequency feature. */
|
||
|
||
.wfm-i2i-placeholder-mode {
|
||
display: flex;
|
||
gap: 16px;
|
||
font-size: 12px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.wfm-i2i-placeholder-mode label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-i2i-placeholder-fields input[type="color"] {
|
||
padding: 2px;
|
||
height: 30px;
|
||
}
|
||
|
||
.wfm-i2i-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 12px;
|
||
}
|
||
|
||
.wfm-i2i-slot {
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
padding: 10px;
|
||
background: var(--wfm-surface);
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.wfm-i2i-slot-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 6px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-i2i-filename {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 120px;
|
||
}
|
||
|
||
.wfm-i2i-preview-wrap {
|
||
margin-bottom: 6px;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-i2i-preview-img {
|
||
max-height: 100px;
|
||
max-width: 100%;
|
||
object-fit: contain;
|
||
border-radius: var(--wfm-radius-sm);
|
||
border: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-i2i-drop-zone {
|
||
border: 2px dashed var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
padding: 12px;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
}
|
||
|
||
.wfm-i2i-drop-zone:hover {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-i2i-drop-zone.drag-over {
|
||
border-color: var(--wfm-primary);
|
||
background: rgba(74, 158, 255, 0.08);
|
||
}
|
||
|
||
.wfm-i2i-drop-zone.wfm-disabled {
|
||
opacity: 0.4;
|
||
pointer-events: none;
|
||
cursor: default;
|
||
}
|
||
|
||
.wfm-i2i-drop-label {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
display: block;
|
||
}
|
||
|
||
.wfm-i2i-status {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
line-height: 24px;
|
||
}
|
||
|
||
.wfm-i2i-mask-section {
|
||
margin-top: 8px;
|
||
padding-top: 8px;
|
||
border-top: 1px dashed var(--wfm-border);
|
||
}
|
||
|
||
.wfm-i2i-mask-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 6px;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-i2i-mask-filename {
|
||
font-size: 10px;
|
||
font-weight: 400;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
max-width: 120px;
|
||
}
|
||
|
||
.wfm-i2i-mask-preview-wrap .wfm-i2i-preview-img {
|
||
max-height: 70px;
|
||
background: #000;
|
||
}
|
||
|
||
.wfm-i2i-mask-drop-zone {
|
||
padding: 8px;
|
||
}
|
||
|
||
/* ============================================
|
||
Side Panel - Thumbnail Tab
|
||
============================================ */
|
||
|
||
.wfm-side-thumb-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 10px;
|
||
gap: 10px;
|
||
}
|
||
|
||
.wfm-side-thumb-img-wrap {
|
||
width: 90%;
|
||
aspect-ratio: 1 / 1;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
align-self: center;
|
||
}
|
||
|
||
.wfm-side-thumb-img-wrap img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
cursor: pointer;
|
||
transition: transform 0.2s ease;
|
||
}
|
||
|
||
.wfm-side-thumb-img-wrap img:hover {
|
||
transform: scale(1.02);
|
||
}
|
||
|
||
.wfm-side-thumb-placeholder {
|
||
font-size: 13px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-side-thumb-name {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.wfm-side-thumb-meta {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
display: flex;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* ============================================
|
||
Modal - Thumbnail Section
|
||
============================================ */
|
||
|
||
.wfm-modal-thumb-section {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
margin-bottom: 16px;
|
||
max-height: 280px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-modal-thumb-img {
|
||
max-width: 100%;
|
||
max-height: 280px;
|
||
object-fit: contain;
|
||
display: block;
|
||
}
|
||
|
||
.wfm-modal-thumb-placeholder {
|
||
padding: 32px;
|
||
font-size: 13px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
/* ============================================
|
||
Help & Support Tab
|
||
============================================ */
|
||
|
||
/* Help Tab — sidebar layout */
|
||
.wfm-help-layout {
|
||
display: flex;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-help-sidebar {
|
||
width: 220px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
border-right: 1px solid var(--wfm-border);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-help-nav {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 8px 0;
|
||
}
|
||
|
||
.wfm-help-search-wrap {
|
||
padding: 8px 8px 4px;
|
||
}
|
||
|
||
.wfm-help-search {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text);
|
||
border-radius: 4px;
|
||
padding: 5px 8px;
|
||
font-size: 16px;
|
||
outline: none;
|
||
}
|
||
|
||
.wfm-help-search:focus {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-help-nav-item.search-hidden {
|
||
display: none;
|
||
}
|
||
|
||
.wfm-help-nav-item {
|
||
display: block;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 7px 14px;
|
||
font-size: 18px;
|
||
background: none;
|
||
border: none;
|
||
border-left: 2px solid transparent;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
transition: color 0.15s, background 0.15s;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.wfm-help-nav-item:hover {
|
||
color: var(--wfm-text);
|
||
background: var(--wfm-hover);
|
||
}
|
||
|
||
.wfm-help-nav-item.active {
|
||
color: var(--wfm-primary);
|
||
background: var(--wfm-hover);
|
||
border-left-color: var(--wfm-primary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-help-sidebar-support {
|
||
border-top: 1px solid var(--wfm-border);
|
||
padding: 6px 0;
|
||
}
|
||
|
||
.wfm-help-content {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: 20px 24px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-help-page {
|
||
display: none;
|
||
/* 上部タブバー(AI TOOLタブの右端)あたりまで広げ、折り返しを減らす。狭い画面では領域幅に収まる */
|
||
max-width: 1076px;
|
||
}
|
||
|
||
.wfm-help-page.active {
|
||
display: block;
|
||
}
|
||
|
||
.wfm-help-article-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.wfm-help-article-header h2 {
|
||
font-size: 24px;
|
||
font-weight: 700;
|
||
color: var(--wfm-text);
|
||
margin: 0;
|
||
}
|
||
|
||
.wfm-help-card {
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
padding: 16px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.wfm-help-card h3 {
|
||
font-size: 21px;
|
||
font-weight: 600;
|
||
color: var(--wfm-primary);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.wfm-help-card h4 {
|
||
font-size: 18px;
|
||
}
|
||
|
||
.wfm-help-card p {
|
||
font-size: 20px;
|
||
line-height: 1.7;
|
||
}
|
||
|
||
.wfm-help-card ul {
|
||
margin: 0;
|
||
padding-left: 20px;
|
||
}
|
||
|
||
.wfm-help-card li {
|
||
font-size: 20px;
|
||
color: var(--wfm-text-secondary);
|
||
line-height: 1.8;
|
||
}
|
||
|
||
.wfm-help-support-card {
|
||
text-align: center;
|
||
padding: 24px;
|
||
}
|
||
|
||
.wfm-help-support-card > p {
|
||
font-size: 21px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.wfm-help-links {
|
||
display: flex;
|
||
gap: 16px;
|
||
justify-content: center;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.wfm-help-link {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 16px 24px;
|
||
border-radius: var(--wfm-radius);
|
||
text-decoration: none;
|
||
transition: all 0.2s ease;
|
||
min-width: 260px;
|
||
}
|
||
|
||
.wfm-help-link-github {
|
||
background: rgba(255, 255, 255, 0.05);
|
||
border: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-help-link-github:hover {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
border-color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-help-link-kofi {
|
||
background: rgba(255, 95, 95, 0.08);
|
||
border: 1px solid rgba(255, 95, 95, 0.3);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-help-link-kofi:hover {
|
||
background: rgba(255, 95, 95, 0.15);
|
||
border-color: rgba(255, 95, 95, 0.5);
|
||
}
|
||
|
||
.wfm-help-link-title {
|
||
font-size: 23px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-help-link-desc {
|
||
font-size: 18px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.wfm-help-thanks {
|
||
font-size: 20px;
|
||
color: var(--wfm-text-secondary);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* ============================================
|
||
Theme Definitions
|
||
============================================ */
|
||
|
||
/* --- 1. Pop & Vibrant --- */
|
||
[data-theme="pop-vibrant"] {
|
||
--wfm-bg: #F8F9FA;
|
||
--wfm-bg-secondary: #FFFFFF;
|
||
--wfm-bg-tertiary: #EEF0F2;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #F0F4FF;
|
||
--wfm-border: #E0E0E0;
|
||
--wfm-text: #2D2D2D;
|
||
--wfm-text-secondary: #666666;
|
||
--wfm-primary: #FF6B6B;
|
||
--wfm-primary-hover: #FF5252;
|
||
--wfm-danger: #FF4757;
|
||
--wfm-success: #2ED573;
|
||
--wfm-warning: #FFA502;
|
||
--wfm-accent: #00D2D3;
|
||
--wfm-radius: 16px;
|
||
--wfm-radius-sm: 8px;
|
||
--wfm-shadow: 0 4px 16px rgba(255, 107, 107, 0.15);
|
||
}
|
||
[data-theme="pop-vibrant"] body {
|
||
font-family: 'Zen Maru Gothic', 'Rounded Mplus 1c', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
/* --- 2. Light Minimalist --- */
|
||
[data-theme="light-minimalist"] {
|
||
--wfm-bg: #FFFFFF;
|
||
--wfm-bg-secondary: #F5F5F5;
|
||
--wfm-bg-tertiary: #FAFAFA;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #F0F4FF;
|
||
--wfm-border: #EEEEEE;
|
||
--wfm-text: #333333;
|
||
--wfm-text-secondary: #888888;
|
||
--wfm-primary: #4A9EFF;
|
||
--wfm-primary-hover: #3A8EEF;
|
||
--wfm-danger: #EF4444;
|
||
--wfm-success: #22C55E;
|
||
--wfm-warning: #F59E0B;
|
||
--wfm-accent: #6366F1;
|
||
--wfm-radius: 8px;
|
||
--wfm-radius-sm: 4px;
|
||
--wfm-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
||
}
|
||
[data-theme="light-minimalist"] body {
|
||
font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
}
|
||
|
||
/* --- 3. Cyberpunk / Hacker --- */
|
||
[data-theme="cyberpunk"] {
|
||
--wfm-bg: #000000;
|
||
--wfm-bg-secondary: #0A0A0A;
|
||
--wfm-bg-tertiary: #111111;
|
||
--wfm-surface: #0D0D0D;
|
||
--wfm-surface-hover: #1A1A1A;
|
||
--wfm-border: rgba(0, 255, 65, 0.19);
|
||
--wfm-text: #00FF41;
|
||
--wfm-text-secondary: #00CC33;
|
||
--wfm-primary: #FF00FF;
|
||
--wfm-primary-hover: #CC00CC;
|
||
--wfm-danger: #FF073A;
|
||
--wfm-success: #00FF41;
|
||
--wfm-warning: #FFD300;
|
||
--wfm-accent: #00FFFF;
|
||
--wfm-radius: 0px;
|
||
--wfm-radius-sm: 0px;
|
||
--wfm-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
|
||
}
|
||
[data-theme="cyberpunk"] body {
|
||
font-family: 'Space Mono', 'Fira Code', 'Courier New', monospace;
|
||
}
|
||
[data-theme="cyberpunk"] .wfm-card,
|
||
[data-theme="cyberpunk"] .wfm-side-panel,
|
||
[data-theme="cyberpunk"] .wfm-header {
|
||
border: 1px solid rgba(0, 255, 65, 0.3);
|
||
box-shadow: 0 0 8px rgba(0, 255, 65, 0.15), inset 0 0 8px rgba(0, 255, 65, 0.05);
|
||
}
|
||
[data-theme="cyberpunk"] .wfm-btn-primary {
|
||
box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
|
||
}
|
||
[data-theme="cyberpunk"] .json-key { color: #00FFFF; }
|
||
[data-theme="cyberpunk"] .json-string { color: #00FF41; }
|
||
[data-theme="cyberpunk"] .json-number { color: #FFD300; }
|
||
|
||
/* --- 4. Glassmorphism --- */
|
||
[data-theme="glassmorphism"] {
|
||
--wfm-bg: #1A0533;
|
||
--wfm-bg-secondary: rgba(255, 255, 255, 0.08);
|
||
--wfm-bg-tertiary: rgba(255, 255, 255, 0.04);
|
||
--wfm-surface: rgba(255, 255, 255, 0.10);
|
||
--wfm-surface-hover: rgba(255, 255, 255, 0.16);
|
||
--wfm-border: rgba(255, 255, 255, 0.18);
|
||
--wfm-text: #F0F0F0;
|
||
--wfm-text-secondary: #C0C0D0;
|
||
--wfm-primary: #7B68EE;
|
||
--wfm-primary-hover: #6A5ACD;
|
||
--wfm-danger: #FF6B6B;
|
||
--wfm-success: #69DB7C;
|
||
--wfm-warning: #FFD43B;
|
||
--wfm-accent: #DA77F2;
|
||
--wfm-radius: 12px;
|
||
--wfm-radius-sm: 8px;
|
||
--wfm-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
||
}
|
||
[data-theme="glassmorphism"] body {
|
||
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
|
||
background: linear-gradient(135deg, #1A0533 0%, #0D1B3E 25%, #1A0533 50%, #2D1054 75%, #0D1B3E 100%);
|
||
}
|
||
[data-theme="glassmorphism"] .wfm-card,
|
||
[data-theme="glassmorphism"] .wfm-side-panel,
|
||
[data-theme="glassmorphism"] .wfm-header,
|
||
[data-theme="glassmorphism"] .wfm-toolbar {
|
||
-webkit-backdrop-filter: blur(12px);
|
||
backdrop-filter: blur(12px);
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
}
|
||
|
||
/* --- 5. Neumorphism --- */
|
||
[data-theme="neumorphism"] {
|
||
--wfm-bg: #D1D9E6;
|
||
--wfm-bg-secondary: #D1D9E6;
|
||
--wfm-bg-tertiary: #C8D0DD;
|
||
--wfm-surface: #D1D9E6;
|
||
--wfm-surface-hover: #D8E0ED;
|
||
--wfm-border: transparent;
|
||
--wfm-text: #4A5568;
|
||
--wfm-text-secondary: #718096;
|
||
--wfm-primary: #6C8EBF;
|
||
--wfm-primary-hover: #5A7CAD;
|
||
--wfm-danger: #E57373;
|
||
--wfm-success: #81C784;
|
||
--wfm-warning: #FFB74D;
|
||
--wfm-accent: #7986CB;
|
||
--wfm-radius: 12px;
|
||
--wfm-radius-sm: 8px;
|
||
--wfm-shadow: 6px 6px 12px #B8C0CC, -6px -6px 12px #EAF2FF;
|
||
}
|
||
[data-theme="neumorphism"] body {
|
||
font-family: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
[data-theme="neumorphism"] .wfm-card {
|
||
border: none;
|
||
box-shadow: 6px 6px 12px #B8C0CC, -6px -6px 12px #EAF2FF;
|
||
}
|
||
[data-theme="neumorphism"] .wfm-btn-primary {
|
||
box-shadow: inset 4px 4px 8px #B8C0CC, inset -4px -4px 8px #EAF2FF;
|
||
}
|
||
|
||
/* --- 6. Retro 8-bit / Pixel --- */
|
||
[data-theme="retro-pixel"] {
|
||
--wfm-bg: #2C2C34;
|
||
--wfm-bg-secondary: #3A3A44;
|
||
--wfm-bg-tertiary: #24242C;
|
||
--wfm-surface: #3A3A44;
|
||
--wfm-surface-hover: #4A4A54;
|
||
--wfm-border: #000000;
|
||
--wfm-text: #F0F0E0;
|
||
--wfm-text-secondary: #B0B0A0;
|
||
--wfm-primary: #5B8FD4;
|
||
--wfm-primary-hover: #4A7EC3;
|
||
--wfm-danger: #D94848;
|
||
--wfm-success: #48A848;
|
||
--wfm-warning: #D4A017;
|
||
--wfm-accent: #D45BD4;
|
||
--wfm-radius: 0px;
|
||
--wfm-radius-sm: 0px;
|
||
--wfm-shadow: 4px 4px 0px #000000;
|
||
}
|
||
[data-theme="retro-pixel"] body {
|
||
font-family: 'DotGothic16', 'Press Start 2P', 'Courier New', monospace;
|
||
}
|
||
[data-theme="retro-pixel"] .wfm-card,
|
||
[data-theme="retro-pixel"] .wfm-side-panel,
|
||
[data-theme="retro-pixel"] .wfm-header,
|
||
[data-theme="retro-pixel"] .wfm-btn {
|
||
border: 3px solid #000000;
|
||
}
|
||
|
||
/* --- 7. Pastel Dream --- */
|
||
[data-theme="pastel-dream"] {
|
||
--wfm-bg: #F0E6FF;
|
||
--wfm-bg-secondary: #E8F5E9;
|
||
--wfm-bg-tertiary: #F3E5F5;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #FFF3E0;
|
||
--wfm-border: #E1BEE7;
|
||
--wfm-text: #5D4E75;
|
||
--wfm-text-secondary: #8E7CA8;
|
||
--wfm-primary: #B39DDB;
|
||
--wfm-primary-hover: #9575CD;
|
||
--wfm-danger: #F48FB1;
|
||
--wfm-success: #A5D6A7;
|
||
--wfm-warning: #FFE082;
|
||
--wfm-accent: #80DEEA;
|
||
--wfm-radius: 20px;
|
||
--wfm-radius-sm: 12px;
|
||
--wfm-shadow: 0 4px 16px rgba(179, 157, 219, 0.2);
|
||
}
|
||
[data-theme="pastel-dream"] body {
|
||
font-family: 'M PLUS Rounded 1c', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
/* --- 8. Brutalism --- */
|
||
[data-theme="brutalism"] {
|
||
--wfm-bg: #FFFFFF;
|
||
--wfm-bg-secondary: #FFFFFF;
|
||
--wfm-bg-tertiary: #F0F0F0;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #CCFF00;
|
||
--wfm-border: #000000;
|
||
--wfm-text: #000000;
|
||
--wfm-text-secondary: #333333;
|
||
--wfm-primary: #CCFF00;
|
||
--wfm-primary-hover: #BBEE00;
|
||
--wfm-danger: #FF0000;
|
||
--wfm-success: #00FF00;
|
||
--wfm-warning: #FFFF00;
|
||
--wfm-accent: #CCFF00;
|
||
--wfm-radius: 0px;
|
||
--wfm-radius-sm: 0px;
|
||
--wfm-shadow: 6px 6px 0px #000000;
|
||
}
|
||
[data-theme="brutalism"] body {
|
||
font-family: 'Arial Black', 'Impact', 'Helvetica Neue', sans-serif;
|
||
}
|
||
[data-theme="brutalism"] .wfm-card,
|
||
[data-theme="brutalism"] .wfm-side-panel,
|
||
[data-theme="brutalism"] .wfm-header,
|
||
[data-theme="brutalism"] .wfm-btn {
|
||
border: 3px solid #000000;
|
||
}
|
||
[data-theme="brutalism"] .wfm-btn-primary {
|
||
color: #000000;
|
||
}
|
||
|
||
/* --- 9. Earthy / Nature --- */
|
||
[data-theme="earthy"] {
|
||
--wfm-bg: #F5E6D3;
|
||
--wfm-bg-secondary: #EDE0D4;
|
||
--wfm-bg-tertiary: #E8D5C0;
|
||
--wfm-surface: #FFF8F0;
|
||
--wfm-surface-hover: #F5EDE4;
|
||
--wfm-border: #D4B896;
|
||
--wfm-text: #3E2723;
|
||
--wfm-text-secondary: #6D4C41;
|
||
--wfm-primary: #8D6E63;
|
||
--wfm-primary-hover: #795548;
|
||
--wfm-danger: #C0392B;
|
||
--wfm-success: #6B8E23;
|
||
--wfm-warning: #D4A017;
|
||
--wfm-accent: #BF6830;
|
||
--wfm-radius: 8px;
|
||
--wfm-radius-sm: 4px;
|
||
--wfm-shadow: 0 2px 8px rgba(62, 39, 35, 0.12);
|
||
}
|
||
[data-theme="earthy"] body {
|
||
font-family: 'Noto Sans JP', 'Noto Serif JP', Georgia, serif;
|
||
}
|
||
|
||
/* --- 10. Material UI --- */
|
||
[data-theme="material"] {
|
||
--wfm-bg: #FAFAFA;
|
||
--wfm-bg-secondary: #FFFFFF;
|
||
--wfm-bg-tertiary: #F5F5F5;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #E8EAF6;
|
||
--wfm-border: #E0E0E0;
|
||
--wfm-text: #212121;
|
||
--wfm-text-secondary: #757575;
|
||
--wfm-primary: #3F51B5;
|
||
--wfm-primary-hover: #303F9F;
|
||
--wfm-danger: #F44336;
|
||
--wfm-success: #4CAF50;
|
||
--wfm-warning: #FF9800;
|
||
--wfm-accent: #FF4081;
|
||
--wfm-radius: 4px;
|
||
--wfm-radius-sm: 2px;
|
||
--wfm-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
||
}
|
||
[data-theme="material"] body {
|
||
font-family: 'Roboto', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
/* --- 11. Monotone + One Accent --- */
|
||
[data-theme="monotone-accent"] {
|
||
--wfm-bg: #F7F7F7;
|
||
--wfm-bg-secondary: #FFFFFF;
|
||
--wfm-bg-tertiary: #EBEBEB;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #F0F0F0;
|
||
--wfm-border: #D0D0D0;
|
||
--wfm-text: #1A1A1A;
|
||
--wfm-text-secondary: #808080;
|
||
--wfm-primary: #FF6B35;
|
||
--wfm-primary-hover: #E85D2A;
|
||
--wfm-danger: #CC0000;
|
||
--wfm-success: #555555;
|
||
--wfm-warning: #888888;
|
||
--wfm-accent: #FF6B35;
|
||
--wfm-radius: 6px;
|
||
--wfm-radius-sm: 3px;
|
||
--wfm-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||
}
|
||
[data-theme="monotone-accent"] body {
|
||
font-family: 'Helvetica Neue', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
/* --- 12. Corporate Trust --- */
|
||
[data-theme="corporate"] {
|
||
--wfm-bg: #F0F4F8;
|
||
--wfm-bg-secondary: #FFFFFF;
|
||
--wfm-bg-tertiary: #E2E8F0;
|
||
--wfm-surface: #FFFFFF;
|
||
--wfm-surface-hover: #EBF0F6;
|
||
--wfm-border: #CBD5E1;
|
||
--wfm-text: #1E293B;
|
||
--wfm-text-secondary: #64748B;
|
||
--wfm-primary: #2563EB;
|
||
--wfm-primary-hover: #1D4ED8;
|
||
--wfm-danger: #DC2626;
|
||
--wfm-success: #16A34A;
|
||
--wfm-warning: #D97706;
|
||
--wfm-accent: #7C3AED;
|
||
--wfm-radius: 4px;
|
||
--wfm-radius-sm: 2px;
|
||
--wfm-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
|
||
}
|
||
[data-theme="corporate"] body {
|
||
font-family: 'Noto Sans JP', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
|
||
}
|
||
|
||
/* --- Theme Selector Preview Swatches --- */
|
||
.wfm-theme-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||
gap: 10px;
|
||
}
|
||
.wfm-theme-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
padding: 10px;
|
||
border: 2px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
background: var(--wfm-surface);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
.wfm-theme-card:hover {
|
||
border-color: var(--wfm-primary);
|
||
transform: translateY(-2px);
|
||
}
|
||
.wfm-theme-card.active {
|
||
border-color: var(--wfm-primary);
|
||
box-shadow: 0 0 0 2px var(--wfm-primary);
|
||
}
|
||
.wfm-theme-swatch {
|
||
width: 100%;
|
||
height: 48px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
margin-bottom: 6px;
|
||
display: flex;
|
||
gap: 2px;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-theme-swatch > span {
|
||
flex: 1;
|
||
display: block;
|
||
}
|
||
.wfm-theme-card-label {
|
||
font-size: 11px;
|
||
text-align: center;
|
||
color: var(--wfm-text);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
width: 100%;
|
||
}
|
||
|
||
/* ============================================
|
||
Settings Accordion (details/summary)
|
||
============================================ */
|
||
|
||
.wfm-settings-section {
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
margin-bottom: 12px;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-settings-summary {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 12px 16px;
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text);
|
||
background: var(--wfm-surface);
|
||
cursor: pointer;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
list-style: none;
|
||
transition: background 0.15s ease;
|
||
}
|
||
.wfm-settings-summary:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
.wfm-settings-summary::-webkit-details-marker {
|
||
display: none;
|
||
}
|
||
.wfm-settings-summary::before {
|
||
content: "\25B6";
|
||
font-size: 10px;
|
||
margin-right: 10px;
|
||
transition: transform 0.2s ease;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
.wfm-settings-section[open] > .wfm-settings-summary::before {
|
||
transform: rotate(90deg);
|
||
}
|
||
.wfm-settings-section > *:not(summary) {
|
||
padding: 0 16px;
|
||
}
|
||
.wfm-settings-section > *:nth-child(2) {
|
||
padding-top: 12px;
|
||
}
|
||
.wfm-settings-section > *:last-child {
|
||
padding-bottom: 16px;
|
||
}
|
||
|
||
/* ============================================
|
||
Theme Customizer
|
||
============================================ */
|
||
|
||
.wfm-customizer-toggle {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 12px;
|
||
margin-top: 12px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
background: var(--wfm-surface);
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 12px;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
.wfm-customizer-toggle:hover {
|
||
color: var(--wfm-primary);
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
.wfm-customizer-toggle .arrow {
|
||
transition: transform 0.2s ease;
|
||
font-size: 10px;
|
||
}
|
||
.wfm-customizer-toggle.open .arrow {
|
||
transform: rotate(90deg);
|
||
}
|
||
|
||
.wfm-customizer-panel {
|
||
display: none;
|
||
margin-top: 12px;
|
||
padding: 16px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
background: var(--wfm-bg-secondary);
|
||
}
|
||
.wfm-customizer-panel.open {
|
||
display: block;
|
||
}
|
||
|
||
.wfm-customizer-section {
|
||
margin-bottom: 16px;
|
||
}
|
||
.wfm-customizer-section:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.wfm-customizer-section h4 {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
margin-bottom: 10px;
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-color-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||
gap: 8px;
|
||
}
|
||
.wfm-color-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
.wfm-color-item label {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
min-width: 60px;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-color-item input[type="color"] {
|
||
width: 32px;
|
||
height: 24px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
padding: 1px;
|
||
cursor: pointer;
|
||
background: transparent;
|
||
}
|
||
.wfm-color-item input[type="color"]::-webkit-color-swatch-wrapper {
|
||
padding: 0;
|
||
}
|
||
.wfm-color-item input[type="color"]::-webkit-color-swatch {
|
||
border: none;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
/* Pattern selector */
|
||
.wfm-pattern-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
|
||
gap: 6px;
|
||
}
|
||
.wfm-pattern-item {
|
||
width: 100%;
|
||
aspect-ratio: 1;
|
||
border: 2px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-pattern-item:hover {
|
||
border-color: var(--wfm-primary);
|
||
transform: scale(1.05);
|
||
}
|
||
.wfm-pattern-item.active {
|
||
border-color: var(--wfm-primary);
|
||
box-shadow: 0 0 0 2px var(--wfm-primary);
|
||
}
|
||
.wfm-pattern-item-label {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
font-size: 9px;
|
||
text-align: center;
|
||
background: rgba(0,0,0,0.6);
|
||
color: #fff;
|
||
padding: 1px 2px;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
/* Pattern options row */
|
||
.wfm-pattern-options {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: 10px;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
}
|
||
.wfm-pattern-options label {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
.wfm-pattern-options input[type="range"] {
|
||
width: 80px;
|
||
accent-color: var(--wfm-primary);
|
||
}
|
||
.wfm-pattern-options input[type="color"] {
|
||
width: 24px;
|
||
height: 20px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 3px;
|
||
padding: 1px;
|
||
cursor: pointer;
|
||
background: transparent;
|
||
}
|
||
.wfm-pattern-options input[type="color"]::-webkit-color-swatch-wrapper {
|
||
padding: 0;
|
||
}
|
||
.wfm-pattern-options input[type="color"]::-webkit-color-swatch {
|
||
border: none;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
/* SVG upload button */
|
||
.wfm-svg-upload-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 20px;
|
||
color: var(--wfm-text-secondary);
|
||
background: var(--wfm-surface);
|
||
}
|
||
.wfm-svg-upload-btn:hover {
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
/* Font selector */
|
||
.wfm-font-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
|
||
gap: 6px;
|
||
}
|
||
.wfm-font-item {
|
||
padding: 8px 10px;
|
||
border: 2px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
text-align: center;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-font-item:hover {
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
.wfm-font-item.active {
|
||
border-color: var(--wfm-primary);
|
||
box-shadow: 0 0 0 2px var(--wfm-primary);
|
||
}
|
||
.wfm-font-preview {
|
||
font-size: 12px;
|
||
white-space: nowrap;
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
/* Customizer action buttons */
|
||
.wfm-customizer-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 12px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
/* ============================================
|
||
Nodes Tab
|
||
============================================ */
|
||
|
||
.wfm-nodes-subview-nav {
|
||
display: flex;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-nodes-subview-btn {
|
||
padding: 6px 16px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg-secondary);
|
||
cursor: pointer;
|
||
border-radius: var(--wfm-radius-sm);
|
||
font-size: 13px;
|
||
color: var(--wfm-text);
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.wfm-nodes-subview-btn:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
|
||
.wfm-nodes-subview-btn.active {
|
||
background: var(--wfm-accent);
|
||
color: #fff;
|
||
border-color: var(--wfm-accent);
|
||
}
|
||
|
||
.wfm-nodes-count {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
padding: 0 4px;
|
||
}
|
||
|
||
.wfm-toolbar-select {
|
||
max-width: 180px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* Node card */
|
||
.wfm-node-card {
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-node-card .wfm-card-body {
|
||
min-height: 0;
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.wfm-node-card .wfm-card-title {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
margin-bottom: 4px;
|
||
padding-right: 24px;
|
||
}
|
||
|
||
.wfm-node-card .wfm-fav-btn {
|
||
font-size: 18px;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.wfm-node-card:hover .wfm-fav-btn {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Node grid: wider cards for readability */
|
||
#wfm-nodes-grid.wfm-view-card {
|
||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||
gap: 8px;
|
||
justify-items: stretch;
|
||
}
|
||
|
||
/* Node card: package color left border, auto width */
|
||
.wfm-node-card {
|
||
width: auto;
|
||
min-width: auto;
|
||
border-left-width: 3px !important;
|
||
}
|
||
|
||
/* Node table row selection highlight */
|
||
.wfm-nodes-table-row {
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
}
|
||
|
||
.wfm-nodes-table-row:hover {
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-nodes-table-row.wfm-card-selected {
|
||
background: color-mix(in srgb, var(--wfm-primary) 15%, var(--wfm-bg));
|
||
outline: 1px solid var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-nodes-table-row .wfm-fav-btn {
|
||
position: static;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.wfm-node-card-io {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-top: 4px;
|
||
}
|
||
|
||
/* Pagination */
|
||
.wfm-pagination {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 12px;
|
||
padding: 10px;
|
||
border-top: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-pagination-info {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
min-width: 80px;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-card-tags {
|
||
margin-top: 4px;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 2px;
|
||
}
|
||
|
||
/* Category badge */
|
||
.wfm-badge-category {
|
||
background: var(--wfm-bg-tertiary);
|
||
color: var(--wfm-text-secondary);
|
||
border: 1px solid var(--wfm-border);
|
||
font-size: 10px;
|
||
}
|
||
|
||
/* Node I/O spec table */
|
||
.wfm-node-io-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.wfm-node-io-table th,
|
||
.wfm-node-io-table td {
|
||
padding: 4px 8px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
text-align: left;
|
||
}
|
||
|
||
.wfm-node-io-table th {
|
||
color: var(--wfm-text-secondary);
|
||
font-weight: 600;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.wfm-node-io-table code {
|
||
background: var(--wfm-bg-tertiary);
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.wfm-node-input-required td:first-child {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-node-input-optional {
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
/* Node detail section in side panel */
|
||
.wfm-node-detail-section {
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.wfm-node-detail-label {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 2px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-node-detail-value {
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
/* Node group items */
|
||
.wfm-node-group-item {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 4px 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
font-size: 13px;
|
||
}
|
||
|
||
/* Node set cards */
|
||
.wfm-node-set-card {
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-node-set-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
padding: 8px 12px 12px;
|
||
}
|
||
|
||
/* Side panel content for nodes */
|
||
.wfm-nodes-side-content {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* ========================================
|
||
Models Tab
|
||
======================================== */
|
||
|
||
.wfm-models-type-nav {
|
||
display: flex;
|
||
gap: 4px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.wfm-models-type-btn {
|
||
padding: 6px 16px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg-secondary);
|
||
cursor: pointer;
|
||
border-radius: var(--wfm-radius-sm);
|
||
font-size: 13px;
|
||
color: var(--wfm-text);
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.wfm-models-type-btn:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
|
||
.wfm-models-type-btn.active {
|
||
background: var(--wfm-accent);
|
||
color: #fff;
|
||
border-color: var(--wfm-accent);
|
||
}
|
||
|
||
|
||
/* Badge: subdirectory (italic, muted) */
|
||
.wfm-badge-dir {
|
||
opacity: 0.7;
|
||
font-style: italic;
|
||
}
|
||
|
||
/* Favorite button in model card (active state color) */
|
||
.wfm-model-side-fav.wfm-model-fav-active {
|
||
color: #f5a623;
|
||
}
|
||
|
||
/* Model table */
|
||
.wfm-models-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.wfm-models-table th,
|
||
.wfm-models-table td {
|
||
padding: 6px 10px;
|
||
text-align: left;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 300px;
|
||
}
|
||
|
||
.wfm-models-table th {
|
||
background: var(--wfm-bg-secondary);
|
||
font-weight: 600;
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1;
|
||
}
|
||
|
||
.wfm-models-table-row {
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
.wfm-models-table-row:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
|
||
.wfm-models-table-row.wfm-card-selected {
|
||
background: var(--wfm-accent-light, rgba(var(--wfm-accent-rgb, 99, 102, 241), 0.1));
|
||
}
|
||
|
||
.wfm-models-table-fav {
|
||
cursor: pointer;
|
||
text-align: center !important;
|
||
width: 30px;
|
||
}
|
||
|
||
.wfm-table-th-filename,
|
||
.wfm-table-td-filename {
|
||
max-width: 160px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-table-th-subdir,
|
||
.wfm-table-td-subdir {
|
||
width: 80px;
|
||
max-width: 80px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.wfm-table-th-civtype,
|
||
.wfm-table-td-civtype {
|
||
width: 70px;
|
||
max-width: 70px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.wfm-table-th-basemodel,
|
||
.wfm-table-td-basemodel {
|
||
width: 110px;
|
||
max-width: 110px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.wfm-table-th-ext,
|
||
.wfm-table-td-ext {
|
||
width: 60px;
|
||
max-width: 60px;
|
||
}
|
||
|
||
.wfm-table-td-memo {
|
||
max-width: 200px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--wfm-text-muted, #888);
|
||
font-size: 0.9em;
|
||
}
|
||
|
||
/* Textarea (shared - used by models memo and workflow detail) */
|
||
.wfm-textarea {
|
||
width: 100%;
|
||
padding: 8px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
background: var(--wfm-bg-secondary);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
resize: vertical;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.wfm-textarea:focus {
|
||
outline: none;
|
||
border-color: var(--wfm-accent);
|
||
}
|
||
|
||
/* Clickable model name (copy to clipboard) */
|
||
.wfm-model-name-copy {
|
||
cursor: pointer;
|
||
transition: color 0.15s;
|
||
}
|
||
|
||
.wfm-model-name-copy:hover {
|
||
color: var(--wfm-accent);
|
||
}
|
||
|
||
/* Inline pagination (in toolbar) */
|
||
.wfm-pagination-inline {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 13px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
/* Side panel content for models */
|
||
.wfm-models-side-content {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* ============================================
|
||
Model Enable / Disable
|
||
============================================ */
|
||
|
||
/* Disabled model: gray out the card */
|
||
.wfm-model-disabled {
|
||
opacity: 0.45;
|
||
filter: grayscale(60%);
|
||
}
|
||
|
||
.wfm-model-disabled:hover {
|
||
opacity: 0.65;
|
||
}
|
||
|
||
/* Overlay label on thumb */
|
||
.wfm-disabled-overlay {
|
||
position: absolute;
|
||
bottom: 4px;
|
||
left: 4px;
|
||
background: rgba(0,0,0,0.65);
|
||
color: #ff6b6b;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
padding: 2px 5px;
|
||
border-radius: 3px;
|
||
letter-spacing: 0.5px;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Toggle button – thumb/card view (absolute bottom-right) */
|
||
.wfm-toggle-btn {
|
||
position: absolute;
|
||
bottom: 6px;
|
||
right: 6px;
|
||
background: none;
|
||
border: none;
|
||
font-size: 13px;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
padding: 2px;
|
||
line-height: 1;
|
||
opacity: 0.4;
|
||
transition: opacity 0.15s, color 0.15s;
|
||
}
|
||
|
||
.wfm-toggle-btn:hover {
|
||
opacity: 1;
|
||
color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-toggle-btn.wfm-toggle-disabled {
|
||
color: #ff6b6b;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
|
||
/* Table sort header */
|
||
.wfm-table-th-sortable {
|
||
cursor: pointer;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-table-th-sortable:hover {
|
||
color: var(--wfm-accent, #6366f1);
|
||
}
|
||
|
||
/* Table view toggle cell */
|
||
.wfm-table-td-toggle {
|
||
text-align: center;
|
||
width: 40px;
|
||
}
|
||
|
||
.wfm-table-td-toggle .wfm-toggle-btn {
|
||
position: static;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.wfm-table-td-batch {
|
||
text-align: center;
|
||
width: 30px;
|
||
}
|
||
|
||
.wfm-table-td-stack {
|
||
text-align: center;
|
||
width: 30px;
|
||
}
|
||
|
||
/* Disabled badge in card title */
|
||
.wfm-badge-disabled {
|
||
background: rgba(255, 107, 107, 0.2);
|
||
color: #ff6b6b;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
border: 1px solid rgba(255, 107, 107, 0.4);
|
||
}
|
||
|
||
/* ── Multi-select ─────────────────────────────────────── */
|
||
.wfm-select-check {
|
||
position: absolute;
|
||
top: 6px;
|
||
left: 6px;
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 4px;
|
||
border: 2px solid rgba(255, 255, 255, 0.6);
|
||
background: rgba(0, 0, 0, 0.45);
|
||
cursor: pointer;
|
||
z-index: 10;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 13px;
|
||
color: transparent;
|
||
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
||
}
|
||
.wfm-select-check.checked {
|
||
background: #6c8ef5;
|
||
border-color: #6c8ef5;
|
||
color: #fff;
|
||
}
|
||
.wfm-select-check.checked::after {
|
||
content: "✓";
|
||
}
|
||
.wfm-view-thumb .wfm-model-card.wfm-card-checked,
|
||
outline: 2px solid #6c8ef5;
|
||
outline-offset: -2px;
|
||
}
|
||
.wfm-table-td-check {
|
||
width: 28px;
|
||
text-align: center;
|
||
padding: 0 4px;
|
||
}
|
||
.wfm-table-td-check .wfm-select-check {
|
||
position: static;
|
||
}
|
||
.wfm-bulk-bar {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 6px 12px;
|
||
background: rgba(108, 142, 245, 0.12);
|
||
border-bottom: 1px solid rgba(108, 142, 245, 0.3);
|
||
}
|
||
.wfm-bulk-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.wfm-bulk-rows {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 3px;
|
||
}
|
||
.wfm-bulk-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
.wfm-bulk-row-label {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
width: 44px;
|
||
flex-shrink: 0;
|
||
text-align: right;
|
||
}
|
||
.wfm-bulk-select {
|
||
width: 330px !important;
|
||
max-width: 330px !important;
|
||
font-size: 12px !important;
|
||
padding: 2px 4px !important;
|
||
}
|
||
.wfm-bulk-input {
|
||
width: 110px !important;
|
||
font-size: 12px;
|
||
}
|
||
.wfm-bulk-count {
|
||
font-size: 13px;
|
||
color: #a0a8c0;
|
||
margin-right: 4px;
|
||
}
|
||
.wfm-bulk-sep {
|
||
width: 1px;
|
||
height: 18px;
|
||
background: rgba(255, 255, 255, 0.15);
|
||
margin: 0 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-btn-success {
|
||
background: #22c55e;
|
||
color: #fff;
|
||
border-color: #16a34a;
|
||
}
|
||
.wfm-btn-success:hover {
|
||
background: #16a34a;
|
||
border-color: #15803d;
|
||
}
|
||
.wfm-btn-success.active {
|
||
background: #16a34a;
|
||
border-color: #15803d;
|
||
box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
|
||
}
|
||
|
||
/* ── Batch Tab ──────────────────────────────────────────────────── */
|
||
.wfm-batch-layout {
|
||
display: flex;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
gap: 0;
|
||
}
|
||
.wfm-batch-pane {
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
min-width: 0;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
.wfm-batch-pane:last-child { border-right: none; }
|
||
.wfm-batch-left { width: 240px; flex-shrink: 0; }
|
||
.wfm-batch-center { flex: 1; }
|
||
.wfm-batch-right { flex: 1.5; min-width: 380px; flex-shrink: 0; }
|
||
.wfm-batch-left-tab-nav {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-batch-left-tab {
|
||
flex: 1;
|
||
padding: 5px 4px;
|
||
font-size: 10px;
|
||
background: transparent;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
transition: color 0.15s;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.wfm-batch-left-tab:hover { color: var(--wfm-text-primary); background: var(--wfm-surface); }
|
||
.wfm-batch-left-tab.active { color: var(--wfm-primary); border-bottom-color: var(--wfm-primary); }
|
||
.wfm-batch-left-content {
|
||
display: none;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-batch-left-content.active { display: flex; }
|
||
.wfm-batch-pane-header {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
padding: 6px 10px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-batch-toolbar {
|
||
display: flex;
|
||
gap: 4px;
|
||
padding: 6px 8px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
}
|
||
.wfm-batch-toolbar input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
height: 24px;
|
||
padding: 2px 6px;
|
||
font-size: 11px;
|
||
}
|
||
.wfm-batch-list { flex: 1; overflow-y: auto; }
|
||
.wfm-batch-inner-tab-nav {
|
||
display: flex;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-batch-inner-tab {
|
||
flex: 1;
|
||
padding: 5px 6px;
|
||
font-size: 11px;
|
||
background: transparent;
|
||
border: none;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
transition: color 0.15s;
|
||
}
|
||
.wfm-batch-inner-tab:hover { color: var(--wfm-text-primary); background: var(--wfm-surface); }
|
||
.wfm-batch-inner-tab.active { color: var(--wfm-primary); border-bottom-color: var(--wfm-primary); }
|
||
.wfm-batch-inner-content {
|
||
display: none;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
}
|
||
.wfm-batch-inner-content.active { display: flex; }
|
||
.wfm-batch-group-list { flex: 1; overflow-y: auto; padding: 2px 0; }
|
||
.wfm-batch-group-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
|
||
.wfm-batch-group-item:last-child { border-bottom: none; }
|
||
.wfm-batch-group-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 5px 8px;
|
||
font-size: 12px;
|
||
}
|
||
.wfm-batch-group-header:hover { background: rgba(255,255,255,0.05); }
|
||
.wfm-batch-group-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.wfm-batch-group-count { font-size: 10px; color: var(--wfm-text-secondary); white-space: nowrap; }
|
||
.wfm-batch-group-members { display: none; }
|
||
.wfm-batch-group-item.open .wfm-batch-group-members { display: block; }
|
||
.wfm-batch-count {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
padding: 4px 10px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-batch-queue-grid {
|
||
display: flex;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
gap: 0;
|
||
}
|
||
.wfm-batch-queue-col {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
border-right: 1px solid var(--wfm-border);
|
||
min-width: 0;
|
||
}
|
||
.wfm-batch-queue-col:last-child { border-right: none; }
|
||
.wfm-batch-queue-col-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
padding: 4px 6px 4px 8px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-batch-type-cb {
|
||
width: 12px;
|
||
height: 12px;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
accent-color: var(--wfm-primary);
|
||
}
|
||
.wfm-batch-preview-list { flex: 1; overflow-y: auto; padding: 2px 0; }
|
||
.wfm-batch-preview-item {
|
||
padding: 3px 8px;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-primary);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-batch-preview-item:hover { background: rgba(255,255,255,0.05); }
|
||
|
||
/* ── Feeder Tab ─────────────────────────────────────────────────── */
|
||
.wfm-feeder-layout {
|
||
display: flex;
|
||
gap: 0;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-feeder-settings {
|
||
width: 220px;
|
||
min-width: 180px;
|
||
flex-shrink: 0;
|
||
padding: 10px;
|
||
border-right: 1px solid var(--wfm-border, rgba(255,255,255,0.1));
|
||
overflow-y: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-feeder-pane-header {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
padding: 4px 0 6px;
|
||
border-bottom: 1px solid var(--wfm-border, rgba(255,255,255,0.1));
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-feeder-field-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-feeder-label {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
white-space: nowrap;
|
||
width: 82px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-feeder-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.wfm-feeder-library {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-feeder-status-bar {
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
padding: 4px 10px;
|
||
border-bottom: 1px solid var(--wfm-border, rgba(255,255,255,0.1));
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-feeder-library-body {
|
||
flex: 1;
|
||
display: flex;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-feeder-tree-pane {
|
||
width: 180px;
|
||
min-width: 140px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
border-right: 1px solid var(--wfm-border, rgba(255,255,255,0.1));
|
||
padding: 6px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-feeder-tree-scroll {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
}
|
||
|
||
.wfm-feeder-tree-row {
|
||
font-size: 12px;
|
||
padding: 4px 8px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
color: var(--wfm-text, #e0e4f0);
|
||
}
|
||
|
||
.wfm-feeder-tree-row:hover {
|
||
background: rgba(108, 142, 245, 0.12);
|
||
}
|
||
|
||
.wfm-feeder-tree-row.active {
|
||
background: rgba(108, 142, 245, 0.25);
|
||
color: var(--wfm-primary, #6c8ef5);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-feeder-tree-msg {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
padding: 8px;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-feeder-grid-pane {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
padding: 6px;
|
||
}
|
||
|
||
.wfm-feeder-grid {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-content: flex-start;
|
||
gap: 6px;
|
||
padding: 4px 2px;
|
||
}
|
||
|
||
.wfm-feeder-grid-msg {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
padding: 16px;
|
||
text-align: center;
|
||
width: 100%;
|
||
}
|
||
|
||
.wfm-feeder-card {
|
||
position: relative;
|
||
width: 100px;
|
||
border-radius: 6px;
|
||
border: 2px solid transparent;
|
||
background: rgba(255,255,255,0.04);
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
transition: border-color 0.15s;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
.wfm-feeder-card:hover {
|
||
border-color: rgba(108, 142, 245, 0.4);
|
||
}
|
||
|
||
.wfm-feeder-card.selected {
|
||
border-color: var(--wfm-primary, #6c8ef5);
|
||
background: rgba(108, 142, 245, 0.1);
|
||
}
|
||
|
||
.wfm-feeder-card-cb {
|
||
position: absolute;
|
||
top: 4px;
|
||
left: 4px;
|
||
width: 14px;
|
||
height: 14px;
|
||
cursor: pointer;
|
||
accent-color: var(--wfm-primary, #6c8ef5);
|
||
z-index: 1;
|
||
}
|
||
|
||
.wfm-feeder-card-img {
|
||
width: 100%;
|
||
height: 90px;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
.wfm-feeder-card-name {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
padding: 3px 4px;
|
||
width: 100%;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
text-align: center;
|
||
}
|
||
|
||
.wfm-feeder-preview-pane {
|
||
width: 160px;
|
||
min-width: 130px;
|
||
flex-shrink: 0;
|
||
border-left: 1px solid var(--wfm-border, rgba(255,255,255,0.1));
|
||
padding: 6px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-feeder-preview-img {
|
||
width: 100%;
|
||
border-radius: 4px;
|
||
object-fit: contain;
|
||
max-height: 140px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.wfm-feeder-preview-name {
|
||
font-size: 11px;
|
||
color: var(--wfm-text, #e0e4f0);
|
||
font-weight: 600;
|
||
word-break: break-all;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.wfm-feeder-preview-info {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary, #8892a4);
|
||
margin: 0;
|
||
white-space: pre-wrap;
|
||
font-family: inherit;
|
||
}
|
||
|
||
/* ============================================
|
||
Metadata Tab
|
||
============================================ */
|
||
|
||
.wfm-metadata-layout {
|
||
display: grid;
|
||
grid-template-columns: 220px 1fr 1fr;
|
||
gap: 0;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Col1: Drop zone + preview */
|
||
.wfm-metadata-col1 {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 12px;
|
||
border-right: 1px solid var(--wfm-border);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.wfm-metadata-drop-zone {
|
||
flex: 0 0 180px;
|
||
border: 2px dashed var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
background: var(--wfm-surface);
|
||
transition: border-color 0.15s, background 0.15s;
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-metadata-drop-zone:hover,
|
||
.wfm-metadata-drop-zone.drag-over {
|
||
border-color: var(--wfm-primary);
|
||
background: rgba(74, 158, 255, 0.08);
|
||
}
|
||
|
||
.wfm-meta-drop-label {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 4px;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.wfm-meta-drop-main {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-meta-drop-sub {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.wfm-meta-preview-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: contain;
|
||
border-radius: calc(var(--wfm-radius) - 2px);
|
||
}
|
||
|
||
.wfm-meta-file-info {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
word-break: break-all;
|
||
line-height: 1.4;
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/* Col2 & Col3 */
|
||
.wfm-metadata-col2,
|
||
.wfm-metadata-col3 {
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 12px;
|
||
gap: 10px;
|
||
overflow-y: auto;
|
||
border-right: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-metadata-col3 {
|
||
border-right: none;
|
||
}
|
||
|
||
/* Sections */
|
||
.wfm-meta-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.wfm-meta-section.wfm-meta-section-empty .wfm-meta-list {
|
||
display: none;
|
||
}
|
||
|
||
.wfm-meta-section.wfm-meta-section-empty .wfm-meta-section-title {
|
||
color: var(--wfm-text-secondary);
|
||
opacity: 0.4;
|
||
}
|
||
|
||
.wfm-meta-section-title {
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
padding-bottom: 2px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-meta-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
overflow-y: auto;
|
||
max-height: 140px;
|
||
}
|
||
|
||
/* Items */
|
||
.wfm-meta-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 8px;
|
||
border-radius: var(--wfm-radius-sm);
|
||
background: var(--wfm-surface);
|
||
font-size: 11px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-meta-item-clickable {
|
||
cursor: pointer;
|
||
transition: background 0.1s;
|
||
}
|
||
|
||
.wfm-meta-item-clickable:hover {
|
||
background: var(--wfm-surface-hover);
|
||
}
|
||
|
||
.wfm-meta-item-clickable.selected {
|
||
background: rgba(74, 158, 255, 0.2);
|
||
border: 1px solid rgba(74, 158, 255, 0.4);
|
||
}
|
||
|
||
.wfm-meta-item-name {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-meta-item-badge {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-meta-badge-pos {
|
||
font-size: 9px;
|
||
font-weight: 700;
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
background: rgba(46, 213, 115, 0.2);
|
||
color: var(--wfm-success);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-meta-badge-neg {
|
||
font-size: 9px;
|
||
font-weight: 700;
|
||
padding: 1px 4px;
|
||
border-radius: 3px;
|
||
background: rgba(255, 71, 87, 0.2);
|
||
color: var(--wfm-danger);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Prompt section full text */
|
||
.wfm-meta-prompt-section {
|
||
flex: 1;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-meta-prompt-full-wrap {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
flex: 1;
|
||
min-height: 0;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.wfm-meta-prompt-full-label {
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.wfm-meta-prompt-full {
|
||
flex: 1;
|
||
min-height: 80px;
|
||
resize: none;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
color: var(--wfm-text);
|
||
font-size: 11px;
|
||
font-family: inherit;
|
||
padding: 8px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.wfm-meta-prompt-full:focus {
|
||
outline: none;
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-meta-prompt-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
flex-wrap: wrap;
|
||
margin-top: 4px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-meta-prompt-actions .wfm-btn {
|
||
flex: 1;
|
||
min-width: 0;
|
||
font-size: 10px;
|
||
padding: 3px 6px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
@keyframes wfm-meta-btn-flash {
|
||
0% { background: var(--wfm-success); color: #fff; }
|
||
100% { background: ''; color: ''; }
|
||
}
|
||
|
||
.wfm-meta-btn-flash {
|
||
animation: wfm-meta-btn-flash 0.5s ease-out;
|
||
}
|
||
|
||
.wfm-meta-format-note {
|
||
flex-shrink: 0;
|
||
padding: 8px 10px;
|
||
background: rgba(255,255,255,0.03);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
font-size: 10px;
|
||
color: var(--wfm-text-secondary);
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.wfm-meta-format-note-title {
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
margin-bottom: 4px;
|
||
font-size: 10px;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.wfm-meta-format-list {
|
||
list-style: none;
|
||
padding: 0;
|
||
margin: 0 0 6px 0;
|
||
}
|
||
|
||
.wfm-meta-format-list li::before {
|
||
content: "✓ ";
|
||
color: var(--wfm-success);
|
||
font-size: 9px;
|
||
}
|
||
|
||
.wfm-meta-format-todo {
|
||
font-size: 9px;
|
||
color: var(--wfm-warning);
|
||
opacity: 0.8;
|
||
border-top: 1px solid var(--wfm-border);
|
||
padding-top: 5px;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
/* ============================================
|
||
AI Tab
|
||
============================================ */
|
||
|
||
#wfm-tab-ai {
|
||
display: none;
|
||
flex-direction: row;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
#wfm-tab-ai.active {
|
||
display: flex;
|
||
}
|
||
|
||
/* 4-pane layout */
|
||
.wfm-ai-pane {
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-ai-pane-translate { flex: 3; }
|
||
.wfm-ai-pane-chat { flex: 4; }
|
||
.wfm-ai-pane-tools { flex: 3; }
|
||
.wfm-ai-pane-settings { flex: 2; }
|
||
|
||
.wfm-ai-pane-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
padding: 8px 12px;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
flex-shrink: 0;
|
||
background: var(--wfm-surface);
|
||
}
|
||
|
||
.wfm-ai-chat-toggle-label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
margin-left: auto;
|
||
font-size: 11px;
|
||
font-weight: 400;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: none;
|
||
letter-spacing: normal;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.wfm-ai-pane-divider {
|
||
width: 1px;
|
||
background: var(--wfm-border);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Translation tab */
|
||
.wfm-ai-trans-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 12px;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-ai-trans-lang-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-ai-lang-select {
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-ai-swap-btn {
|
||
flex-shrink: 0;
|
||
padding: 6px 10px;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.wfm-ai-trans-textarea {
|
||
flex: 1;
|
||
min-height: 120px;
|
||
padding: 8px 10px;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
resize: none;
|
||
line-height: 1.5;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.wfm-ai-trans-textarea:focus {
|
||
outline: none;
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-ai-trans-output {
|
||
background: var(--wfm-bg-secondary);
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-ai-trans-output:focus {
|
||
border-color: var(--wfm-border);
|
||
}
|
||
|
||
.wfm-ai-trans-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-trans-status {
|
||
font-size: 12px;
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.wfm-ai-status-working { color: var(--wfm-warning); }
|
||
.wfm-ai-status-ok { color: var(--wfm-success); }
|
||
.wfm-ai-status-error { color: var(--wfm-danger); }
|
||
|
||
/* VLM placeholder */
|
||
.wfm-ai-placeholder-msg {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex: 1;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 14px;
|
||
padding: 24px;
|
||
}
|
||
|
||
/* Settings tab */
|
||
.wfm-ai-settings-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0;
|
||
padding: 12px;
|
||
overflow-y: auto;
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-ai-settings-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 12px 0;
|
||
border-bottom: 1px solid var(--wfm-border);
|
||
}
|
||
|
||
.wfm-ai-settings-section:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.wfm-ai-settings-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
.wfm-ai-settings-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-ai-backend-row {
|
||
display: flex;
|
||
gap: 16px;
|
||
}
|
||
|
||
.wfm-ai-radio-label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-ai-label {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
white-space: nowrap;
|
||
width: 60px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-url-input {
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-ai-model-select {
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-ai-test-result {
|
||
font-size: 12px;
|
||
margin-left: 4px;
|
||
}
|
||
|
||
/* Wildcard inputs */
|
||
.wfm-ai-wc-inputs {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-wc-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-ai-wc-count {
|
||
width: 70px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* VLM Tab */
|
||
.wfm-ai-vlm-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 12px;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
}
|
||
|
||
.wfm-ai-vlm-drop {
|
||
height: 110px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2px dashed var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
background: var(--wfm-bg);
|
||
cursor: pointer;
|
||
overflow: hidden;
|
||
transition: border-color 0.15s, background 0.15s;
|
||
position: relative;
|
||
}
|
||
|
||
.wfm-ai-vlm-drop:hover,
|
||
.wfm-ai-vlm-drop.drag-over {
|
||
border-color: var(--wfm-primary);
|
||
background: rgba(74, 158, 255, 0.05);
|
||
}
|
||
|
||
.wfm-ai-vlm-label {
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.wfm-ai-vlm-clear {
|
||
position: absolute;
|
||
top: 4px;
|
||
right: 4px;
|
||
width: 20px;
|
||
height: 20px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
border-radius: 50%;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
color: #fff;
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
padding: 0;
|
||
}
|
||
|
||
.wfm-ai-vlm-clear:hover {
|
||
background: var(--wfm-danger);
|
||
}
|
||
|
||
.wfm-ai-vlm-task-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-vlm-task-row .wfm-select {
|
||
flex: 1;
|
||
}
|
||
|
||
.wfm-ai-vlm-result {
|
||
flex: 1;
|
||
min-height: 80px;
|
||
padding: 8px 10px;
|
||
background: var(--wfm-bg-secondary);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
resize: none;
|
||
outline: none;
|
||
line-height: 1.5;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.wfm-ai-vlm-copy-btn {
|
||
align-self: flex-end;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* TOOLS: result actions, OCR options and text-position overlay (ocr-tools.js) */
|
||
.wfm-ai-vlm-result-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-ai-ocr-options {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-ai-ocr-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
.wfm-ai-ocr-row .wfm-ai-label { flex-shrink: 0; margin: 0; }
|
||
.wfm-ai-ocr-row .wfm-select { flex: 1; min-width: 0; }
|
||
.wfm-ai-ocr-check {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
cursor: pointer;
|
||
}
|
||
.wfm-ai-ocr-check.is-disabled { opacity: 0.45; cursor: default; }
|
||
.wfm-ai-ocr-hint { font-size: 11px; color: var(--wfm-text-secondary); opacity: 0.85; }
|
||
/* OCR: a taller preview so the numbered boxes are usable */
|
||
.wfm-ai-vlm-drop.is-ocr { height: 260px; }
|
||
.wfm-ai-ocr-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
pointer-events: none;
|
||
}
|
||
.wfm-ai-ocr-box {
|
||
position: absolute;
|
||
border: 1.5px solid #4fd8ff;
|
||
background: rgba(79, 216, 255, 0.12);
|
||
box-sizing: border-box;
|
||
pointer-events: auto;
|
||
cursor: pointer;
|
||
}
|
||
.wfm-ai-ocr-box.is-active { border-color: #ff9f43; background: rgba(255, 159, 67, 0.2); }
|
||
.wfm-ai-ocr-box-tag {
|
||
position: absolute;
|
||
top: -1px;
|
||
left: -1px;
|
||
padding: 0 3px;
|
||
font-size: 9px;
|
||
line-height: 12px;
|
||
color: #000;
|
||
background: #4fd8ff;
|
||
}
|
||
|
||
/* Collapsible Translation / Settings panes */
|
||
.wfm-ai-pane-collapse-btn {
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 10px;
|
||
line-height: 1;
|
||
padding: 2px 4px;
|
||
cursor: pointer;
|
||
border-radius: 3px;
|
||
}
|
||
.wfm-ai-pane-collapse-btn:hover { background: var(--wfm-bg); color: var(--wfm-text); }
|
||
.wfm-ai-pane.is-collapsed {
|
||
flex: 0 0 28px;
|
||
cursor: pointer;
|
||
}
|
||
.wfm-ai-pane.is-collapsed > :not(.wfm-ai-pane-header) { display: none !important; }
|
||
.wfm-ai-pane.is-collapsed .wfm-ai-pane-header {
|
||
writing-mode: vertical-rl;
|
||
flex: 1;
|
||
justify-content: flex-start;
|
||
gap: 8px;
|
||
padding: 8px 0;
|
||
border-bottom: none;
|
||
}
|
||
.wfm-ai-pane.is-collapsed .wfm-ai-pane-collapse-btn { writing-mode: horizontal-tb; }
|
||
|
||
/* Chat pane */
|
||
.wfm-ai-chat-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
overflow: hidden;
|
||
min-height: 0;
|
||
padding: 8px;
|
||
gap: 8px;
|
||
}
|
||
|
||
.wfm-ai-chat-messages {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
min-height: 0;
|
||
padding: 4px;
|
||
}
|
||
|
||
.wfm-ai-chat-msg {
|
||
max-width: 90%;
|
||
padding: 8px 10px;
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
line-height: 1.5;
|
||
word-break: break-word;
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.wfm-ai-chat-msg-user {
|
||
align-self: flex-end;
|
||
background: var(--wfm-primary);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-ai-chat-msg-assistant {
|
||
align-self: flex-start;
|
||
background: var(--wfm-surface);
|
||
border: 1px solid var(--wfm-border);
|
||
color: var(--wfm-text);
|
||
}
|
||
|
||
.wfm-ai-chat-img {
|
||
max-width: 20%;
|
||
border-radius: 6px;
|
||
margin-top: 6px;
|
||
display: block;
|
||
}
|
||
|
||
.wfm-ai-chat-attach-thumb {
|
||
max-width: 120px;
|
||
max-height: 120px;
|
||
border-radius: 6px;
|
||
margin-top: 6px;
|
||
display: block;
|
||
object-fit: cover;
|
||
}
|
||
|
||
/* Markdown-rendered assistant replies (chat-markdown.js) */
|
||
.wfm-ai-chat-msg.wfm-ai-chat-md { white-space: normal; }
|
||
.wfm-ai-chat-md p { margin: 0 0 6px; }
|
||
.wfm-ai-chat-md p:last-child { margin-bottom: 0; }
|
||
.wfm-ai-chat-md ul, .wfm-ai-chat-md ol { margin: 2px 0 6px; padding-left: 20px; }
|
||
.wfm-ai-chat-md li { margin: 1px 0; }
|
||
.wfm-ai-chat-md .wfm-md-h { margin: 8px 0 4px; font-size: 13px; font-weight: 700; }
|
||
.wfm-ai-chat-md h3.wfm-md-h { font-size: 14px; }
|
||
.wfm-ai-chat-md code {
|
||
font-family: Consolas, "Courier New", monospace;
|
||
font-size: 12px;
|
||
background: rgba(127, 127, 127, 0.18);
|
||
padding: 0 3px;
|
||
border-radius: 3px;
|
||
}
|
||
.wfm-ai-chat-md .wfm-md-pre {
|
||
position: relative;
|
||
margin: 4px 0 6px;
|
||
padding: 8px 10px;
|
||
background: rgba(0, 0, 0, 0.25);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 4px;
|
||
overflow-x: auto;
|
||
white-space: pre;
|
||
}
|
||
.wfm-ai-chat-md .wfm-md-pre code { background: none; padding: 0; }
|
||
.wfm-ai-chat-md .wfm-md-code-lang {
|
||
position: absolute;
|
||
top: 2px;
|
||
right: 6px;
|
||
font-size: 10px;
|
||
opacity: 0.6;
|
||
}
|
||
.wfm-ai-chat-md blockquote {
|
||
margin: 4px 0;
|
||
padding-left: 8px;
|
||
border-left: 3px solid var(--wfm-border);
|
||
opacity: 0.9;
|
||
}
|
||
.wfm-ai-chat-md hr { border: none; border-top: 1px solid var(--wfm-border); margin: 6px 0; }
|
||
|
||
/* Skill auto-check notices (metadata.output) */
|
||
.wfm-ai-chat-msg-notice {
|
||
align-self: center;
|
||
max-width: 95%;
|
||
background: transparent;
|
||
border: 1px dashed var(--wfm-border);
|
||
color: var(--wfm-text-secondary, var(--wfm-text));
|
||
font-size: 11px;
|
||
opacity: 0.85;
|
||
}
|
||
|
||
/* Action buttons under a ```prompt block */
|
||
.wfm-ai-chat-msg-actions {
|
||
margin-top: 6px;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
white-space: normal;
|
||
}
|
||
|
||
/* Image check result card (chat-image-check.js) */
|
||
.wfm-ai-chat-msg-check {
|
||
white-space: normal;
|
||
min-width: 260px;
|
||
}
|
||
.wfm-ai-check-head {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
font-weight: 600;
|
||
margin-bottom: 4px;
|
||
}
|
||
.wfm-ai-check-head.is-pass { color: #4caf50; }
|
||
.wfm-ai-check-head.is-fail { color: #e5a00d; }
|
||
.wfm-ai-check-meta {
|
||
font-weight: normal;
|
||
font-size: 11px;
|
||
opacity: 0.7;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
.wfm-ai-check-list {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
.wfm-ai-check-item {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: baseline;
|
||
padding: 1px 0;
|
||
font-size: 12px;
|
||
}
|
||
.wfm-ai-check-icon { width: 14px; text-align: center; font-weight: 700; }
|
||
.wfm-ai-check-item.is-pass .wfm-ai-check-icon { color: #4caf50; }
|
||
.wfm-ai-check-item.is-uncertain .wfm-ai-check-icon { color: #e5a00d; }
|
||
.wfm-ai-check-item.is-fail .wfm-ai-check-icon { color: #e05252; }
|
||
.wfm-ai-check-label { flex: 1; }
|
||
.wfm-ai-check-p { font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; }
|
||
.wfm-ai-check-quality { margin-top: 4px; font-size: 11px; opacity: 0.8; }
|
||
|
||
/* "Built-in" badge in the skill manager list */
|
||
.wfm-ai-skill-badge {
|
||
margin-left: 6px;
|
||
padding: 0 5px;
|
||
border-radius: 3px;
|
||
border: 1px solid var(--wfm-border);
|
||
font-size: 10px;
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.wfm-ai-chat-svg-wrapper {
|
||
margin-top: 6px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 6px;
|
||
}
|
||
|
||
.wfm-ai-chat-svg-img {
|
||
max-width: 240px;
|
||
max-height: 240px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: #fff;
|
||
padding: 6px;
|
||
}
|
||
|
||
.wfm-ai-chat-attachment {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 6px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
background: var(--wfm-surface);
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
|
||
.wfm-ai-chat-attachment-thumb {
|
||
width: 28px;
|
||
height: 28px;
|
||
object-fit: cover;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.wfm-ai-chat-attachment-clear {
|
||
margin-left: auto;
|
||
width: 18px;
|
||
height: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: none;
|
||
border-radius: 50%;
|
||
background: transparent;
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
cursor: pointer;
|
||
padding: 0;
|
||
}
|
||
|
||
.wfm-ai-chat-attachment-clear:hover {
|
||
background: var(--wfm-danger);
|
||
color: #fff;
|
||
}
|
||
|
||
.wfm-ai-chat-input-area {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-chat-input {
|
||
width: 100%;
|
||
min-height: 60px;
|
||
max-height: 120px;
|
||
padding: 8px 10px;
|
||
background: var(--wfm-bg);
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius-sm);
|
||
color: var(--wfm-text);
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
resize: none;
|
||
line-height: 1.5;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.wfm-ai-chat-input:focus {
|
||
outline: none;
|
||
border-color: var(--wfm-primary);
|
||
}
|
||
|
||
.wfm-ai-chat-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.wfm-ai-chat-skill-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 8px 0;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-chat-skill-select {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.wfm-ai-skill-panel {
|
||
margin: 6px 8px 0;
|
||
padding: 8px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: var(--wfm-radius);
|
||
background: var(--wfm-surface);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.wfm-ai-skill-panel-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.wfm-ai-skill-panel-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--wfm-text-secondary);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
/* Workflow detail modal — GenerateUI compatibility check row */
|
||
.wfm-compat-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 8px;
|
||
}
|
||
.wfm-compat-result {
|
||
display: inline-flex;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
font-size: 12px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|
||
.wfm-compat-badge {
|
||
position: relative;
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
border-radius: 10px;
|
||
font-size: 12px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg);
|
||
color: var(--wfm-text);
|
||
cursor: help;
|
||
}
|
||
.wfm-compat-ok { border-color: #3a8a3a; }
|
||
.wfm-compat-warn { border-color: #c08a20; }
|
||
.wfm-compat-error { border-color: var(--wfm-danger, #c04040); }
|
||
.wfm-compat-skip { opacity: 0.6; }
|
||
.wfm-compat-badge:hover::after,
|
||
.wfm-compat-badge:focus::after {
|
||
content: attr(data-tip);
|
||
position: absolute;
|
||
left: 0;
|
||
top: calc(100% + 4px);
|
||
z-index: 1000;
|
||
width: max-content;
|
||
max-width: min(520px, 80vw);
|
||
padding: 8px 10px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--wfm-border);
|
||
background: var(--wfm-bg-secondary, var(--wfm-bg));
|
||
color: var(--wfm-text);
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
white-space: pre-line;
|
||
text-align: left;
|
||
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Side panel — format + GenerateUI compatibility badges row (below the title) */
|
||
.wfm-side-compat-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
padding: 4px 10px 6px;
|
||
min-height: 26px;
|
||
flex-shrink: 0;
|
||
}
|
||
.wfm-side-compat-row .wfm-format-badge:empty { display: none; }
|
||
/* The side panel clips overflow, so anchor tips to the whole row and span the panel width */
|
||
.wfm-side-compat-row { position: relative; }
|
||
.wfm-compat-result--right .wfm-compat-badge { position: static; }
|
||
.wfm-compat-result--right .wfm-compat-badge:hover::after,
|
||
.wfm-compat-result--right .wfm-compat-badge:focus::after {
|
||
left: 6px;
|
||
right: 6px;
|
||
top: 100%;
|
||
width: auto;
|
||
max-width: none;
|
||
}
|
||
.wfm-compat-row .wfm-format-badge:empty { display: none; }
|
||
|
||
/* GenerateUI Settings tab: Switches column (true/false inputs) */
|
||
.wfm-settings-switches {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
max-height: 420px;
|
||
overflow-y: auto;
|
||
}
|
||
.wfm-settings-switch {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 4px 6px;
|
||
border: 1px solid var(--wfm-border);
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
}
|
||
.wfm-settings-switch:hover {
|
||
background: var(--wfm-surface);
|
||
}
|
||
.wfm-settings-switch-text {
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.wfm-settings-switch-node {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-settings-switch-key {
|
||
color: var(--wfm-text-secondary);
|
||
font-size: 11px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.wfm-settings-switch-state {
|
||
font-family: monospace;
|
||
font-size: 11px;
|
||
color: var(--wfm-text-secondary);
|
||
}
|