:root { --bg-0: #1b1c1f; --bg-1: #232428; --bg-2: #2b2d32; --bg-3: #34363c; --bg-4: #3f424a; --line: #3a3c43; --text: #e3e4e8; --text-dim: #9a9ca5; --accent: #4c8dff; --accent-2: #2f6fe0; --danger: #e5484d; --workspace: #141518; --shadow: 0 8px 30px rgba(0, 0, 0, 0.45); --radius: 6px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: dark; } :root[data-theme="light"] { --bg-0: #e9eaee; --bg-1: #f4f5f7; --bg-2: #ffffff; --bg-3: #eceef2; --bg-4: #dfe2e8; --line: #d3d6dd; --text: #1d1f24; --text-dim: #6a6e78; --workspace: #c9ccd3; --shadow: 0 8px 30px rgba(0, 0, 0, 0.18); color-scheme: light; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: var(--bg-0); color: var(--text); font: 13px/1.35 var(--font); overflow: hidden; user-select: none; -webkit-user-select: none; } button, input, select, textarea { font: inherit; color: inherit; } .hidden { display: none !important; } #app { display: grid; grid-template-rows: 34px auto 1fr 24px; height: 100vh; } /* ---------------------------------------------------------------- top bar / menus */ .top-bar { display: flex; align-items: center; background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 0 6px; gap: 6px; } .brand { display: flex; align-items: center; gap: 7px; font-weight: 650; letter-spacing: 0.2px; padding: 0 8px 0 4px; order: -1; } .brand-mark { width: 16px; height: 16px; border-radius: 4px; background: conic-gradient(from 30deg, #e5484d, #f5a524, #46c37b, #4c8dff, #a855f7, #e5484d); } .menubar { display: flex; gap: 1px; } .menu-title { background: none; border: 0; padding: 5px 10px; border-radius: 5px; cursor: default; } .menu-title:hover, .menu-title.open { background: var(--bg-3); } .menu-popup { position: fixed; z-index: 1000; min-width: 230px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; max-height: calc(100vh - 20px); overflow: auto; } .menu-item { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; align-items: center; padding: 5px 10px 5px 6px; border-radius: 5px; cursor: default; white-space: nowrap; } .menu-item.focused, .menu-item.sub-open { background: var(--accent); color: #fff; } .menu-item.disabled { opacity: 0.4; pointer-events: none; } .menu-shortcut { color: var(--text-dim); font-size: 12px; padding-left: 18px; } .menu-item.focused .menu-shortcut, .menu-item.sub-open .menu-shortcut { color: rgba(255, 255, 255, 0.85); } .menu-check { text-align: center; font-size: 12px; } .menu-sep { height: 1px; background: var(--line); margin: 4px 6px; } .menu-heading { padding: 4px 10px; color: var(--text-dim); font-size: 11px; text-transform: uppercase; } /* ---------------------------------------------------------------- buttons & fields */ .btn { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 10px; cursor: pointer; line-height: 1.2; min-height: 26px; } .btn:hover { background: var(--bg-4); } .btn.active { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent-2); } .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .icon-btn { padding: 3px; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; } .icon { display: block; } .btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; } .toggle-btn { min-width: 26px; padding: 3px 7px; } input[type="text"], input[type="number"], select { background: var(--bg-0); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; min-height: 26px; user-select: text; -webkit-user-select: text; } input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); outline-offset: -1px; } input.num { width: 58px; text-align: right; } input[type="range"] { accent-color: var(--accent); width: 110px; } input[type="checkbox"] { accent-color: var(--accent); margin: 0; } .field { display: inline-flex; align-items: center; gap: 6px; } .field-label { color: var(--text-dim); white-space: nowrap; } .unit { color: var(--text-dim); font-size: 11px; margin-left: 2px; } .num-wrap { display: inline-flex; align-items: center; } .color-input { width: 34px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: none; cursor: pointer; } .color-input::-webkit-color-swatch-wrapper { padding: 2px; } .color-input::-webkit-color-swatch { border: none; border-radius: 2px; } /* ---------------------------------------------------------------- tool options bar */ .options-host { background: var(--bg-1); border-bottom: 1px solid var(--line); height: 41px; overflow: hidden; } .options-bar { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px 14px; padding: 0 10px; height: 40px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; white-space: nowrap; } .options-bar > * { flex: 0 0 auto; } .options-bar::-webkit-scrollbar { height: 4px; } .options-tool { display: flex; align-items: center; gap: 6px; font-weight: 600; padding-right: 10px; border-right: 1px solid var(--line); } .options-bar .range-field input[type="range"] { width: 64px; } .options-bar input.num { width: 58px; } .options-bar { gap: 6px 11px; } .options-bar select { max-width: 150px; } .options-bar .text-field input { width: 130px; } .readout { font-variant-numeric: tabular-nums; color: var(--text-dim); } /* ---------------------------------------------------------------- main layout */ .main { display: grid; grid-template-columns: 76px 1fr 268px; min-height: 0; } body.panels-hidden .main { grid-template-columns: 76px 1fr 0; } body.panels-hidden .panels-host { display: none; } .toolbox-host { background: var(--bg-1); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; } .toolbox { display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 10px; } .tool-grid { display: grid; grid-template-columns: 32px 32px; gap: 3px; } .tool-sep { grid-column: span 2; height: 1px; background: var(--line); margin: 3px 2px; } .tool-btn { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; background: none; border-color: transparent; } .tool-btn:hover { background: var(--bg-3); } .tool-btn.active { background: var(--accent); color: #fff; } .color-chips { position: relative; width: 56px; height: 56px; margin-top: 4px; } .color-chip { position: absolute; width: 32px; height: 32px; border: 2px solid var(--bg-1); outline: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 0; background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; } .color-chip.fg { left: 2px; top: 2px; z-index: 2; } .color-chip.bg { right: 2px; bottom: 2px; } .mini { position: absolute; padding: 0; min-height: 0; min-width: 0; border: 0; background: none; cursor: pointer; } .mini.swap { right: 0; top: 0; width: 18px; height: 18px; color: var(--text-dim); } .mini.reset { left: 0; bottom: 0; width: 16px; height: 16px; } .mini.reset span { position: absolute; width: 9px; height: 9px; border: 1px solid #888; } .mini.reset span:first-child { left: 0; top: 0; background: #000; z-index: 1; } .mini.reset span:last-child { right: 0; bottom: 0; background: #fff; } .center { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .tabs-host { background: var(--bg-1); border-bottom: 1px solid var(--line); } .doc-tabs { display: flex; overflow-x: auto; min-height: 30px; } .doc-tab { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; border-right: 1px solid var(--line); color: var(--text-dim); cursor: default; white-space: nowrap; max-width: 220px; } .doc-tab.active { background: var(--workspace); color: var(--text); } .doc-tab-name { overflow: hidden; text-overflow: ellipsis; } .doc-tab-close { background: none; border: 0; min-height: 20px; min-width: 20px; opacity: 0.6; } .doc-tab-close:hover { opacity: 1; background: var(--bg-4); } .workspace { position: relative; flex: 1; background: var(--workspace); overflow: hidden; outline: none; touch-action: none; } .view-canvas { position: absolute; inset: 0; display: block; touch-action: none; } body.dropping .workspace::after { content: 'Drop to open / place'; position: absolute; inset: 12px; border: 2px dashed var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); background: rgba(76, 141, 255, 0.08); pointer-events: none; } .text-editor { position: absolute; z-index: 5; margin: 0; padding: 0; border: 0; outline: 1px dashed rgba(76, 141, 255, 0.9); background: transparent; color: transparent; caret-color: #4c8dff; resize: none; overflow: hidden; white-space: pre; user-select: text; -webkit-user-select: text; } .text-editor::selection { background: rgba(76, 141, 255, 0.35); color: transparent; } .welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; } .welcome h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.5px; } .welcome p { margin: 0 0 18px; color: var(--text-dim); } .welcome-cards { display: grid; grid-template-columns: repeat(4, 150px); gap: 12px; } .welcome-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; } .welcome-card:hover { border-color: var(--accent); } .welcome-card small { color: var(--text-dim); } /* ---------------------------------------------------------------- panels */ .panels-host { background: var(--bg-1); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; } .history-list { position: relative; } .panel { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; } .panel-title { padding: 6px 10px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); cursor: pointer; display: flex; justify-content: space-between; } .panel-title::after { content: '▾'; } .panel.collapsed > :not(.panel-title) { display: none !important; } .panel.collapsed .panel-title::after { content: '▸'; } .layers-panel { flex: 1 0 220px; min-height: 220px; } .layers-panel.collapsed { flex: 0 0 auto; min-height: 0; } .history-panel { flex: 0 0 auto; } .history-list { overflow-y: auto; padding: 0 4px 6px; } .panel-grip { height: 5px; margin-top: -3px; cursor: row-resize; position: relative; } .panel-grip::after { content: ''; position: absolute; left: 50%; top: 2px; width: 28px; height: 2px; margin-left: -14px; border-radius: 2px; background: var(--bg-4); } .panel-grip:hover::after { background: var(--accent); } .history-panel.collapsed .panel-grip { display: none; } .history-row { padding: 3px 8px; border-radius: 4px; cursor: default; } .history-row:hover { background: var(--bg-3); } .history-row.current { background: var(--accent); color: #fff; } .history-row.future { opacity: 0.45; } .nav-canvas { width: 236px; height: 120px; margin: 0 auto 4px; display: block; background: var(--bg-0); border-radius: 4px; cursor: crosshair; } .nav-info { display: flex; gap: 8px; align-items: center; padding: 0 12px 8px; color: var(--text-dim); font-size: 11px; font-variant-numeric: tabular-nums; min-height: 22px; } .mini-swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--c); outline: 1px solid var(--line); } .color-panel { padding-bottom: 8px; } .title-tabs { display: inline-flex; gap: 2px; margin-left: auto; margin-right: 8px; } .title-tabs .tab { min-height: 17px; padding: 0 8px; font-size: 10px; letter-spacing: 0.4px; border-radius: 4px; } .color-panel.collapsed .title-tabs { display: none; } .recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; } .recent-label { color: var(--text-dim); font-size: 11px; flex: 0 0 auto; } .recent-swatches.swatches { flex: 1; padding: 0; grid-template-columns: repeat(8, 1fr); } .cp-mode { flex: 0 0 auto; min-height: 24px; padding: 0 6px; font-size: 11px; width: 40px; } .colorpicker.compact .cp-mode ~ .cp-nums { flex: 1; } .colorpicker { display: flex; flex-direction: column; gap: 6px; padding: 0 12px; } .cp-sv { width: 100%; height: auto; border-radius: 4px; cursor: crosshair; touch-action: none; } .cp-strip { width: 100%; height: 14px; border-radius: 3px; cursor: pointer; touch-action: none; } .cp-row { display: flex; gap: 6px; align-items: center; } .cp-preview { width: 34px; height: 26px; border-radius: 4px; outline: 1px solid var(--line); background: linear-gradient(var(--c), var(--c)), repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 10px 10px; } .cp-hex { flex: 1; min-width: 0; font-family: ui-monospace, monospace; } .cp-row .cp-nums { flex: 0 0 76px; } .cp-nums { display: flex; gap: 6px; } .cp-num { display: flex; align-items: center; gap: 3px; flex: 1; } .cp-num span { color: var(--text-dim); font-size: 11px; width: 10px; } .cp-num input { width: 100%; min-width: 0; padding: 2px 4px; } .swatch-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 4px; color: var(--text-dim); } .swatch-header .btn { min-height: 20px; min-width: 20px; padding: 1px; } .swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 0 12px; } .color-panel > .swatches { max-height: 46px; overflow-y: auto; scrollbar-width: thin; } .swatch { aspect-ratio: 1; border: 0; border-radius: 3px; background: var(--c); outline: 1px solid rgba(128, 128, 128, 0.35); cursor: pointer; padding: 0; } .swatch:hover { outline: 2px solid var(--accent); } .layer-controls { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 8px; } .layer-controls .select-field select { width: 100%; } .layer-controls .select-field { width: 100%; } .layer-controls .range-field input[type="range"] { flex: 1; width: auto; min-width: 0; } .layer-controls .range-field { width: 100%; } .layer-controls input.num { width: 54px; } .blend-row { display: flex; gap: 6px; align-items: center; } .blend-row .select-field { flex: 1; min-width: 0; } .blend-row select { min-width: 0; } .lock-row { display: flex; gap: 2px; align-items: center; } .lock-row .btn { background: none; border-color: transparent; } .lock-row .btn:hover { background: var(--bg-3); } .lock-row .btn.active { background: var(--accent); color: #fff; } .layer-list { flex: 1; overflow-y: auto; min-height: 80px; position: relative; border-top: 1px solid var(--line); outline: none; } .layer-row { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-bottom: 1px solid var(--line); cursor: default; position: relative; } .layer-row:hover { background: var(--bg-2); } .layer-row.active { background: rgba(76, 141, 255, 0.22); } .layer-row.hidden-layer .thumb, .layer-row.hidden-layer .layer-meta { opacity: 0.45; } .layer-row.dragging { opacity: 0.5; } .layer-row.clipped { padding-left: 14px; } .clip-arrow { color: var(--text-dim); margin-left: -6px; } .layer-row .eye { background: none; border: 0; min-width: 22px; min-height: 22px; color: var(--text-dim); } .thumb { width: 32px; height: 32px; border-radius: 3px; outline: 1px solid var(--line); background: var(--bg-0); flex: 0 0 auto; cursor: pointer; } .thumb.target { outline: 2px solid var(--accent); } .mask-thumb.disabled { opacity: 0.4; background: repeating-linear-gradient(45deg, transparent 0 4px, var(--danger) 4px 5px); } .layer-meta { min-width: 0; flex: 1; } .layer-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .layer-badges { display: flex; gap: 4px; align-items: center; color: var(--text-dim); font-size: 11px; min-height: 14px; } .badge-text { white-space: nowrap; } .rename-input { width: 100%; } .drop-indicator { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); pointer-events: none; z-index: 2; } .panel-footer { display: flex; justify-content: space-around; padding: 5px; border-top: 1px solid var(--line); } .panel-footer .btn { background: none; border-color: transparent; } .panel-footer .btn:hover { background: var(--bg-3); } /* ---------------------------------------------------------------- status bar */ .status-host { background: var(--bg-1); border-top: 1px solid var(--line); } .statusbar { display: flex; align-items: center; gap: 16px; height: 23px; padding: 0 8px; color: var(--text-dim); font-size: 12px; font-variant-numeric: tabular-nums; } .zoom-input { width: 64px; min-height: 18px !important; padding: 0 4px !important; font-size: 12px; background: transparent !important; } .status-hint { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ---------------------------------------------------------------- dialogs */ .dialog-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 2000; display: flex; align-items: center; justify-content: center; } .dialog { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); display: flex; flex-direction: column; } .dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px 16px; font-weight: 600; font-size: 14px; } .dialog-header { cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; } .dialog-header.dragging { cursor: grabbing; } .dialog-header .dialog-x { cursor: pointer; } .dialog-backdrop.moved { background: transparent; display: block; } .dialog-backdrop.moved > .dialog { position: absolute; margin: 0; } .dialog-x { background: none; border: 0; font-size: 18px; color: var(--text-dim); } .dialog-body { padding: 6px 16px 10px; overflow: auto; } .dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; } .dialog-text { margin: 4px 0 6px; line-height: 1.5; user-select: text; } .form { display: flex; flex-direction: column; gap: 10px; } .form .field { justify-content: space-between; } .form .range-field input[type="range"] { flex: 1; width: auto; min-width: 0; } .form .field-label { min-width: 90px; } .form .text-field input { flex: 1; } .form .select-field select { flex: 1; } .form .check-field { justify-content: flex-start; } .form-info { color: var(--text-dim); font-size: 12px; } .form-row { display: flex; justify-content: space-between; align-items: center; } .form-error { color: var(--danger); font-size: 12px; margin-bottom: 8px; white-space: pre-wrap; user-select: text; } /* Dither Scripts editor */ .ds { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; } .ds-side, .ds-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .ds-list { width: 100%; min-height: 180px; padding: 2px; } .ds-new { display: flex; gap: 6px; } .ds-new select { flex: 1; min-width: 0; } .ds-side .form-row, .ds-main .form-row { gap: 6px; } .ds-name { flex: 1; min-width: 0; } .ds-code { width: 100%; min-height: 260px; height: 38vh; resize: vertical; box-sizing: border-box; tab-size: 2; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-0); border: 1px solid var(--line); border-radius: 5px; padding: 8px; user-select: text; -webkit-user-select: text; } .ds-test { justify-content: flex-start; } .ds-preview { width: 256px; max-width: 100%; height: 32px; image-rendering: pixelated; border-radius: 3px; outline: 1px solid var(--line); } .ds-status { min-height: 1.4em; font-size: 12px; color: var(--text-dim); white-space: pre-wrap; user-select: text; } .ds-status.error { color: var(--danger); } .ds-help { font-size: 12px; color: var(--text-dim); } .ds-help summary { cursor: pointer; color: var(--text); } .ds-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 6px 0; } .ds-help dt code { color: var(--text); font-size: 11px; } .ds-help dd { margin: 0; } @media (max-width: 640px) { .ds { grid-template-columns: 1fr; } .ds-list { min-height: 0; } .ds-help dl { grid-template-columns: 1fr; } } .export-preview { align-self: center; max-width: 100%; border-radius: 4px; outline: 1px solid var(--line); background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 12px 12px; } .anchor-grid { display: grid; grid-template-columns: repeat(3, 26px); gap: 3px; } .anchor-cell { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--bg-3); border-radius: 4px; cursor: pointer; } .anchor-cell.active { background: var(--accent); } .shortcut-scroll { max-height: 60vh; overflow: auto; } .shortcut-table { width: 100%; border-collapse: collapse; } .shortcut-table td { padding: 3px 4px; border-bottom: 1px solid var(--line); } .shortcut-table td:last-child { text-align: right; } kbd { font-family: ui-monospace, monospace; font-size: 11px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; } /* ---------------------------------------------------------------- toasts & busy */ .toasts { position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 3000; pointer-events: none; align-items: center; } .toast { background: rgba(20, 21, 24, 0.92); color: #fff; padding: 7px 14px; border-radius: 8px; box-shadow: var(--shadow); transition: opacity 0.35s, transform 0.35s; } .toast.out { opacity: 0; transform: translateY(6px); } .busy { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; cursor: progress; } .busy.on { display: flex; } .spinner { width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 6px; border: 2px solid var(--bg-1); } ::-webkit-scrollbar-track { background: transparent; } @media (max-width: 900px) { .main { grid-template-columns: 76px 1fr 0; } .panels-host { display: none; } .welcome-cards { grid-template-columns: repeat(2, 150px); } } /* ---------------------------------------------------------------- layer styles */ .fx-badge { display: inline-flex; align-items: center; padding: 0 2px; border: 0; border-radius: 3px; background: none; color: var(--accent); cursor: pointer; min-height: 0; } .fx-badge:hover { background: var(--bg-4); } .fx-dialog { display: grid; grid-template-columns: 160px 1fr; gap: 14px; min-height: 270px; } .fx-list { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 10px; } .fx-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; cursor: default; } .fx-row:hover { background: var(--bg-3); } .fx-row.active { background: var(--accent); color: #fff; } .fx-pane-title { font-weight: 600; margin-bottom: 10px; } /* ---------------------------------------------------------------- command palette */ .dialog-backdrop:has(.palette-dialog) { align-items: flex-start; padding-top: 12vh; } .palette-dialog .dialog-header { display: none; } .palette-dialog .dialog-body { padding: 0; overflow: hidden; display: flex; } .palette { display: flex; flex-direction: column; width: 100%; min-height: 0; } .palette-input { margin: 10px; font-size: 15px; padding: 8px 10px !important; min-height: 38px !important; } .palette-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 0 6px 6px; position: relative; } .palette-row { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: default; } .palette-row.active { background: var(--accent); color: #fff; } .palette-row.active .palette-path { color: rgba(255, 255, 255, 0.8); } .palette-row.active kbd { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; } .palette-row.disabled { opacity: 0.4; } .palette-row.recent .palette-icon:empty::before { content: '↺'; color: var(--text-dim); font-size: 12px; } .palette-row.recent.active .palette-icon:empty::before { color: #fff; } .palette-icon { display: flex; align-items: center; justify-content: center; color: var(--text-dim); } .palette-row.active .palette-icon { color: #fff; } .palette-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .palette-path { color: var(--text-dim); font-size: 12px; white-space: nowrap; } .palette-empty { padding: 16px; text-align: center; color: var(--text-dim); } .form-info:not(:first-child) { margin-top: 4px; } /* ---------------------------------------------------------------- tool options popover */ .more-btn { white-space: nowrap; } .options-popover { position: fixed; z-index: 1500; width: 290px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); } .options-popover .field-label { min-width: 80px; } .welcome .welcome-tip { margin: 22px 0 0; font-size: 12px; }