:root { --bg0: #141416; --bg1: #1c1c1f; --bg2: #242428; --bg3: #2c2c31; --bg4: #36363c; --line: #2e2e34; --line-strong: #3d3d45; --fg: #dfdfe4; --fg-dim: #9c9ca6; --fg-mute: #66666f; --accent: #4d8dff; --accent-strong: #6ea1ff; --accent-soft: rgba(77, 141, 255, 0.16); --accent-line: rgba(77, 141, 255, 0.55); --danger: #ff5f5f; --ok: #4fcf7f; --warn: #ffb547; --purple: #b57bff; --teal: #45c8c0; --orange: #ff9b4d; --pink: #ff6fae; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; --radius: 6px; --row: 22px; --tree-row: 21px; --side-width: 400px; --drawer-height: 260px; --tools-width: 40px; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: var(--bg0); color: var(--fg); font: 12px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; } body.col-resize, body.col-resize * { cursor: col-resize !important; } body.row-resize, body.row-resize * { cursor: row-resize !important; } body.ew-resize, body.ew-resize * { cursor: ew-resize !important; } button, input, select, textarea { font: inherit; color: inherit; } button { background: var(--bg3); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px 9px; height: 24px; display: inline-flex; align-items: center; gap: 5px; cursor: default; white-space: nowrap; } button:hover { background: var(--bg4); } button:active { background: var(--bg2); } button:disabled { opacity: 0.45; pointer-events: none; } button.primary { background: var(--accent); border-color: var(--accent); color: #fff; } button.primary:hover { background: var(--accent-strong); } button.danger { color: var(--danger); } button.danger.primary { background: var(--danger); border-color: var(--danger); color: #fff; } button.link { background: none; border: none; color: var(--accent-strong); padding: 0 4px; height: auto; } button.link:hover { text-decoration: underline; background: none; } button.ghost { background: transparent; border-color: transparent; } button.ghost:hover { background: var(--bg3); } button.small { height: 20px; padding: 0 7px; font-size: 11px; } .icon-btn { background: transparent; border: none; padding: 0; width: 24px; height: 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-dim); } .icon-btn:hover { background: var(--bg3); color: var(--fg); } .icon-btn.active { background: var(--accent-soft); color: var(--accent-strong); } .icon-btn.small { width: 18px; height: 18px; } .icon { width: 16px; height: 16px; flex: none; } .icon-btn.small .icon { width: 13px; height: 13px; } input[type="text"], input[type="number"], input[type="search"], input:not([type]), textarea, select { background: var(--bg0); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; height: var(--row); min-width: 0; outline: none; } textarea { height: auto; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.45; } input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } select { padding-right: 18px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='12' height='12'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239c9ca6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; } input[type="checkbox"] { accent-color: var(--accent); margin: 0 4px 0 0; vertical-align: -2px; } input[type="range"] { accent-color: var(--accent); height: 16px; } ::placeholder { color: var(--fg-mute); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background-color: #4a4a52; } ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; } * { scrollbar-width: thin; scrollbar-color: var(--bg4) transparent; } kbd { font: 10px var(--font); color: var(--fg-dim); background: var(--bg3); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 4px; } code { font-family: var(--mono); font-size: 11px; } .mono { font-family: var(--mono); font-size: 11px; } .dim { color: var(--fg-dim); } .mute { color: var(--fg-mute); } .spacer { flex: 1; } .row-flex { display: flex; align-items: center; gap: 6px; } .hidden { display: none !important; } /* ---- layout ------------------------------------------------------------ */ #app { display: flex; flex-direction: column; height: 100%; } #tabbar { height: 38px; flex: none; display: flex; align-items: stretch; background: var(--bg0); border-bottom: 1px solid var(--line); padding: 0 8px 0 0; } #main { flex: 1; display: flex; min-height: 0; } #tools { width: var(--tools-width); flex: none; background: var(--bg1); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 6px 0; gap: 2px; } #tools .icon-btn { width: 30px; height: 30px; } #tools .sep { width: 20px; height: 1px; background: var(--line-strong); margin: 4px 0; } #center { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg0); } #side { width: var(--side-width); flex: none; background: var(--bg1); display: flex; flex-direction: column; min-height: 0; } #tree-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; } #statusbar { height: 24px; flex: none; background: var(--bg1); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 10px; font-size: 11px; color: var(--fg-dim); } #statusbar .status-item { display: inline-flex; align-items: center; gap: 4px; } #statusbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-mute); } #statusbar .dot.on { background: var(--ok); } .splitter.vertical { width: 5px; margin: 0 -2px; cursor: col-resize; z-index: 2; flex: none; } .splitter.horizontal { height: 5px; margin: -2px 0; cursor: row-resize; z-index: 2; flex: none; } .splitter:hover, .splitter.dragging { background: var(--accent-line); } #side { border-left: 1px solid var(--line); } /* ---- tabs -------------------------------------------------------------- */ .tabs { display: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tab { display: flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; min-width: 120px; max-width: 220px; border-right: 1px solid var(--line); color: var(--fg-dim); position: relative; cursor: default; } .tab:hover { background: var(--bg1); color: var(--fg); } .tab.active { background: var(--bg1); color: var(--fg); } .tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); } .tab .tab-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tab .tab-close { width: 18px; height: 18px; opacity: 0; } .tab:hover .tab-close, .tab.active .tab-close { opacity: 1; } .tab.dirty .tab-close .icon { display: none; } .tab.dirty .tab-close::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-dim); } .tab.dirty .tab-close:hover::before { display: none; } .tab.dirty .tab-close:hover .icon { display: block; } .tab-add { align-self: center; margin-left: 4px; } .tabbar-actions { display: flex; align-items: center; gap: 2px; } .tabbar-actions .sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 6px; } /* ---- breadcrumb -------------------------------------------------------- */ #breadcrumb { height: 26px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 10px; background: var(--bg1); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--fg-dim); overflow: hidden; } #breadcrumb .crumb { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 4px; white-space: nowrap; } #breadcrumb .crumb:hover { background: var(--bg3); color: var(--fg); } #breadcrumb .crumb.current { color: var(--fg); } #breadcrumb .crumb .id { color: var(--accent-strong); } #breadcrumb .crumb-sep { color: var(--fg-mute); } #breadcrumb .crumb-sep .icon { width: 12px; height: 12px; } #breadcrumb .zoom { margin-left: auto; display: flex; align-items: center; gap: 2px; } #breadcrumb .zoom input { width: 56px; height: 20px; text-align: right; font-size: 11px; } /* ---- viewport ---------------------------------------------------------- */ #viewport { flex: 1; position: relative; min-height: 0; overflow: hidden; background: var(--bg0); outline: none; } #viewport.bg-checker .page-bg { fill: url(#kavu-checker); } #viewport.bg-dark .page-bg { fill: #1c1c1f; } #viewport.bg-light .page-bg { fill: #e8e8ec; } #viewport.bg-white .page-bg { fill: #ffffff; } #viewport.bg-black .page-bg { fill: #000000; } #viewport .stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } #viewport .overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } #viewport .overlay * { vector-effect: non-scaling-stroke; } #viewport .overlay .sel-box { fill: none !important; stroke: var(--accent) !important; stroke-width: 1 !important; } #viewport .overlay .sel-box.secondary { stroke: var(--accent-line) !important; stroke-dasharray: 3 3; } #viewport .overlay .hover-box { fill: none !important; stroke: var(--accent-line) !important; stroke-width: 1 !important; stroke-dasharray: 4 3; } #viewport .overlay .handle { fill: #fff !important; stroke: var(--accent) !important; stroke-width: 1 !important; pointer-events: all; } #viewport .overlay .marquee { fill: var(--accent-soft) !important; stroke: var(--accent) !important; stroke-width: 1 !important; stroke-dasharray: 4 2; } #viewport .overlay .page-outline { fill: none !important; stroke: var(--line-strong) !important; stroke-width: 1 !important; } #viewport.tool-hand, #viewport.panning { cursor: grab; } #viewport.panning { cursor: grabbing; } #viewport.tool-rect, #viewport.tool-ellipse, #viewport.tool-line, #viewport.tool-text { cursor: crosshair; } svg[data-kavu-root] { overflow: hidden; width: var(--doc-w) !important; height: var(--doc-h) !important; x: 0 !important; y: 0 !important; } #viewport.show-overflow svg[data-kavu-root] { overflow: visible; } [data-kavu-hidden] { display: none !important; } [data-kavu-locked] { pointer-events: none !important; } #viewport .canvas-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--fg-mute); text-align: center; pointer-events: none; } #viewport .canvas-hint kbd { margin: 0 2px; } #viewport .canvas-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 2px; background: rgba(28, 28, 31, 0.9); border: 1px solid var(--line); border-radius: 7px; padding: 3px; } #viewport.drop-target::after { content: ''; position: absolute; inset: 6px; border: 2px dashed var(--accent); border-radius: 8px; pointer-events: none; } /* ---- drawer ------------------------------------------------------------ */ #drawer { height: var(--drawer-height); flex: none; border-top: 1px solid var(--line); background: var(--bg1); display: flex; flex-direction: column; min-height: 0; } #drawer.collapsed { height: 28px; } #drawer.collapsed .drawer-body { display: none; } #drawer.collapsed + #splitter-drawer, #splitter-drawer.disabled { pointer-events: none; } .drawer-tabs { height: 28px; flex: none; display: flex; align-items: center; gap: 0; padding: 0 6px; border-bottom: 1px solid var(--line); } .drawer-tab { padding: 0 10px; height: 28px; display: inline-flex; align-items: center; gap: 5px; color: var(--fg-dim); border-bottom: 2px solid transparent; font-size: 11.5px; } .drawer-tab:hover { color: var(--fg); } .drawer-tab.active { color: var(--fg); border-bottom-color: var(--accent); } .drawer-tab .icon { width: 13px; height: 13px; } .drawer-tab .badge { background: var(--accent); color: #fff; font-size: 9px; border-radius: 8px; padding: 0 5px; min-width: 14px; text-align: center; } .drawer-body { flex: 1; min-height: 0; overflow: auto; position: relative; } .drawer-pane { position: absolute; inset: 0; display: none; flex-direction: column; } .drawer-pane.active { display: flex; } .drawer-empty { padding: 20px; color: var(--fg-mute); text-align: center; } .drawer-empty button { margin-top: 8px; } .pane-toolbar { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--fg-dim); } .pane-toolbar .title { color: var(--fg); font-weight: 600; } .pane-body { flex: 1; min-height: 0; overflow: auto; } .pane-split { flex: 1; min-height: 0; display: flex; } .pane-split > * { min-width: 0; } .pane-split > .left { flex: 1; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } .pane-split > .right { width: 46%; flex: none; display: flex; flex-direction: column; min-height: 0; overflow: auto; } /* ---- code editor ------------------------------------------------------- */ .code-editor { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; background: var(--bg0); } .code-editor .gutter { flex: none; width: 38px; padding: 6px 6px 6px 0; text-align: right; color: var(--fg-mute); font: 11px/1.45 var(--mono); background: var(--bg1); border-right: 1px solid var(--line); overflow: hidden; white-space: pre; } .code-editor .code-scroll { flex: 1; position: relative; overflow: auto; } .code-editor .code-scroll > * { position: absolute; inset: 0; margin: 0; padding: 6px 8px; font: 11px/1.45 var(--mono); white-space: pre; tab-size: 2; min-height: 100%; min-width: 100%; width: max-content; } .code-editor pre.code-hl { pointer-events: none; color: var(--fg); } .code-editor textarea.code-ta { background: transparent; border: none; color: transparent; caret-color: var(--fg); resize: none; outline: none; overflow: hidden; border-radius: 0; } .code-editor textarea.code-ta::selection { background: rgba(77, 141, 255, 0.3); } .code-editor .code-error { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 95, 95, 0.15); color: var(--danger); padding: 3px 8px; font-size: 11px; } .c-comment, .x-comment { color: var(--fg-mute); font-style: italic; } .c-string, .x-val { color: #d3a56a; } .c-at, .x-pi { color: var(--purple); } .c-punct, .x-punct { color: var(--fg-dim); } .c-num { color: #7fd0ff; } .c-prop, .x-attr { color: #9ccbff; } .c-sel, .x-tag { color: #ff8aa3; } .c-color { border-bottom: 2px solid var(--c); } .x-text { color: var(--fg); } .x-cdata { color: var(--teal); } /* ---- assistant --------------------------------------------------------- */ #assistant { flex: none; border-top: 1px solid var(--line); background: var(--bg1); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; } .assistant-row { display: flex; align-items: center; gap: 6px; } .assistant-row .icon.ai { color: var(--purple); } .assistant-input { flex: 1; height: 26px; } .assistant-row select { height: 24px; font-size: 11px; max-width: 150px; } .assistant-status { font-size: 11px; color: var(--fg-dim); display: flex; align-items: center; gap: 6px; min-height: 16px; padding-left: 26px; } .assistant-status .stream { font-family: var(--mono); color: var(--fg-mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; } .assistant-status .spinner { width: 10px; height: 10px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; } @keyframes spin { to { transform: rotate(360deg); } } .chat-log { padding: 8px; display: flex; flex-direction: column; gap: 8px; } .chat-msg { border-radius: 8px; padding: 6px 10px; max-width: 90%; white-space: pre-wrap; user-select: text; } .chat-msg.user { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent-line); } .chat-msg.assistant { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line-strong); } .chat-msg.error { align-self: flex-start; background: rgba(255, 95, 95, 0.12); border: 1px solid var(--danger); color: var(--danger); } .chat-msg .meta { font-size: 10px; color: var(--fg-mute); margin-top: 4px; display: flex; gap: 8px; align-items: center; } .chat-msg details { margin-top: 4px; } .chat-msg summary { cursor: default; color: var(--fg-dim); font-size: 11px; } .chat-msg pre { margin: 4px 0 0; font: 10.5px/1.4 var(--mono); max-height: 200px; overflow: auto; background: var(--bg0); padding: 6px; border-radius: 4px; } /* ---- tree panel -------------------------------------------------------- */ .tree-header { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); } .tree-header .search { flex: 1; position: relative; } .tree-header .search input { width: 100%; height: 22px; padding-left: 24px; font-size: 11px; } .tree-header .search .icon { position: absolute; left: 6px; top: 4px; width: 13px; height: 13px; color: var(--fg-mute); pointer-events: none; } .tree-scroll { flex: 1; overflow: auto; padding: 4px 0 40px; outline: none; } .tree-scroll:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-line); } .tree-row { display: flex; align-items: center; height: var(--tree-row); padding-left: calc(6px + var(--depth) * 14px); padding-right: 6px; gap: 4px; white-space: nowrap; position: relative; font-size: 11.5px; cursor: default; } .tree-row:hover { background: var(--bg2); } .tree-row.selected { background: var(--accent-soft); } .tree-row.selected.primary { box-shadow: inset 2px 0 0 var(--accent); } .tree-row.hidden-el > :not(.row-actions) { opacity: 0.4; } .tree-row.drop-inside { box-shadow: inset 0 0 0 1px var(--accent); } .tree-row.drop-before::before, .tree-row.drop-after::after { content: ''; position: absolute; left: calc(6px + var(--depth) * 14px); right: 4px; height: 2px; background: var(--accent); } .tree-row.drop-before::before { top: -1px; } .tree-row.drop-after::after { bottom: -1px; } .tree-row.match { background: rgba(255, 181, 71, 0.10); } .tree-row.dragging { opacity: 0.4; } .tree-row .disclosure { width: 14px; height: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-mute); border-radius: 3px; } .tree-row .disclosure .icon { width: 12px; height: 12px; transition: transform 0.12s; } .tree-row .disclosure.open .icon { transform: rotate(90deg); } .tree-row .disclosure:hover { background: var(--bg3); color: var(--fg); } .tree-row .disclosure.leaf { visibility: hidden; } .tree-row .el-icon { width: 14px; height: 14px; flex: none; color: var(--fg-dim); } .tree-row .el-icon.ico-group, .tree-row .el-icon.ico-svg, .tree-row .el-icon.ico-defs { color: var(--fg-dim); } .tree-row .el-icon.ico-rect, .tree-row .el-icon.ico-circle, .tree-row .el-icon.ico-ellipse, .tree-row .el-icon.ico-path, .tree-row .el-icon.ico-line, .tree-row .el-icon.ico-polygon { color: var(--accent-strong); } .tree-row .el-icon.ico-text, .tree-row .el-icon.ico-textNode { color: var(--orange); } .tree-row .el-icon.ico-image, .tree-row .el-icon.ico-use { color: var(--teal); } .tree-row .el-icon.ico-gradient, .tree-row .el-icon.ico-pattern { color: var(--pink); } .tree-row .el-icon.ico-filter, .tree-row .el-icon.ico-fe, .tree-row .el-icon.ico-mask, .tree-row .el-icon.ico-clip, .tree-row .el-icon.ico-marker { color: var(--purple); } .tree-row .el-icon.ico-style, .tree-row .el-icon.ico-code, .tree-row .el-icon.ico-meta, .tree-row .el-icon.ico-anim, .tree-row .el-icon.ico-link { color: var(--fg-mute); } .tree-row .tag { color: var(--fg); } .tree-row .tag.mute { color: var(--fg-mute); } .tree-row .id { color: var(--accent-strong); } .tree-row .cls { color: var(--purple); } .tree-row .summary { color: var(--fg-mute); overflow: hidden; text-overflow: ellipsis; flex: 1; font-size: 11px; } .tree-row .summary.text { color: var(--fg-dim); font-style: italic; } .tree-row .swatches { display: inline-flex; gap: 2px; flex: none; } .tree-row .swatch { width: 10px; height: 10px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0.15); background-image: var(--checker-sm); } .tree-row .swatch i { display: block; width: 100%; height: 100%; border-radius: 1px; } .tree-row .swatch.stroke i { box-sizing: border-box; border: 2px solid var(--c); background: transparent; } .tree-row .row-actions { display: none; gap: 0; flex: none; margin-left: 2px; } .tree-row:hover .row-actions, .tree-row.hidden-el .row-actions, .tree-row.locked-el .row-actions { display: inline-flex; } .tree-row .row-actions .icon-btn { width: 18px; height: 18px; color: var(--fg-mute); } .tree-row .row-actions .icon-btn .icon { width: 12px; height: 12px; } .tree-row .row-actions .icon-btn.on { color: var(--fg); } .tree-row .row-actions .icon-btn.on.lock { color: var(--warn); } .tree-row .count { color: var(--fg-mute); font-size: 10px; } .tree-row .text-input { flex: 1; height: 17px; font-size: 11px; padding: 0 4px; } .tree-row .warn-icon { color: var(--warn); width: 12px; height: 12px; } :root { --checker-sm: linear-gradient(45deg, #555 25%, transparent 25%, transparent 75%, #555 75%), linear-gradient(45deg, #555 25%, #333 25%, #333 75%, #555 75%); } /* ---- attribute block --------------------------------------------------- */ .attrs { margin: 2px 6px 6px calc(6px + var(--depth) * 14px + 14px); background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 6px 5px; font-size: 11px; } .attrs-head { display: flex; align-items: center; gap: 4px; height: 20px; margin-bottom: 3px; color: var(--fg-dim); } .attrs-head .title { color: var(--fg); font-weight: 600; } .attrs-head .title .id { color: var(--accent-strong); font-weight: 500; } .attrs-head .n { color: var(--fg-mute); } .attrs-head .icon-btn { width: 18px; height: 18px; } .attrs-head .icon-btn .icon { width: 12px; height: 12px; } .attrs-head .toggle { font-size: 10px; padding: 0 5px; height: 16px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--fg-dim); background: transparent; } .attrs-head .toggle.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); } .attrs-group { margin-top: 5px; } .attrs-group-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); padding: 2px 0 2px 2px; display: flex; align-items: center; gap: 4px; } .attrs-group-title .icon { width: 10px; height: 10px; } .attr-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; min-height: 22px; gap: 4px; padding: 1px 0; } .attr-row.pair { grid-template-columns: 84px 1fr 62px 1fr; } .attr-row.pair .attr-label:nth-child(3) { width: 60px; padding-left: 6px; } .attr-row.wide { grid-template-columns: 1fr; } .attr-row.wide .attr-label { margin-bottom: 1px; } .attr-label { color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 3px; height: 20px; padding-left: 2px; border-radius: 3px; position: relative; } .attr-label.set { color: var(--fg); } .attr-label.set::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; } .attr-label:not(.set)::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: transparent; flex: none; } .attr-label.scrub { cursor: ew-resize; } .attr-label:hover { color: var(--fg); } .attr-label .unset { display: none; width: 14px; height: 14px; margin-left: auto; color: var(--fg-mute); flex: none; } .attr-label:hover .unset { display: inline-flex; } .attr-label .unset:hover { color: var(--danger); } .attr-label.inherited { color: var(--fg-mute); font-style: italic; } .attr-label.unknown { color: var(--warn); } .attr-value { display: flex; align-items: center; gap: 3px; min-width: 0; } .attr-value > input, .attr-value > select, .attr-value > textarea, .attr-value > .paint { flex: 1; min-width: 0; } .attr-value input, .attr-value select { height: 20px; font-size: 11px; padding: 0 5px; } .attr-value input.num { font-family: var(--mono); font-variant-numeric: tabular-nums; } .attr-value input.placeholder-val { color: var(--fg-mute); } .attr-value input.invalid { border-color: var(--danger); } .attr-value .unit { color: var(--fg-mute); font-size: 10px; flex: none; } .attr-value textarea { width: 100%; font-size: 10.5px; min-height: 22px; padding: 2px 5px; } .attr-value input[type="range"] { flex: 1; min-width: 40px; } .attr-value input.slider-num { width: 46px; flex: none; } .attr-value .icon-btn { width: 20px; height: 20px; flex: none; } .attr-value .icon-btn .icon { width: 13px; height: 13px; } .attr-value .swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line-strong); flex: none; position: relative; overflow: hidden; background-image: var(--checker-sm); background-size: 8px 8px; background-position: 0 0, 4px 4px; } .attr-value .swatch i { position: absolute; inset: 0; } .attr-value .swatch input[type="color"] { position: absolute; inset: -4px; width: 30px; height: 30px; opacity: 0; cursor: default; } .attr-value .swatch.none::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 1px; background: var(--danger); transform: rotate(-45deg); } .attr-value .swatch.gradient i { background: var(--grad); } .attr-value .paint { display: flex; align-items: center; gap: 3px; } .attr-value .paint select.kind { width: 62px; flex: none; } .attr-value .paint input, .attr-value .paint select.ref { flex: 1; } .attr-value .hint { color: var(--fg-mute); font-size: 10px; flex: none; } .attr-value .warn { color: var(--warn); } .attr-row .style-rows { grid-column: 1 / -1; padding-left: 12px; border-left: 2px solid var(--line-strong); margin-left: 4px; } .attr-row .style-rows .attr-row { grid-template-columns: 72px 1fr; } .attrs-footer { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); } .attrs-footer button { height: 18px; font-size: 10.5px; padding: 0 6px; } .attrs-footer .icon { width: 11px; height: 11px; } .attr-row .transform-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; padding: 2px 0 2px 4px; } .transform-fn { display: flex; align-items: center; gap: 3px; } .transform-fn select { width: 82px; flex: none; height: 20px; font-size: 11px; } .transform-fn input { width: 54px; height: 20px; font-size: 11px; padding: 0 4px; font-family: var(--mono); } .transform-fn .icon-btn { width: 18px; height: 18px; } .transform-fn .icon-btn .icon { width: 12px; height: 12px; } .attr-value .path-stats { font-size: 10px; color: var(--fg-mute); } .attr-value .viewbox input { width: 25%; flex: 1; } .attr-row .add-attr { color: var(--fg-dim); } .attr-value .fontrow { display: flex; gap: 3px; flex: 1; align-items: center; } .attr-value .fontrow input { flex: 1; } .attr-value .inline-btn { height: 20px; padding: 0 6px; font-size: 10.5px; } .attrs .editor-hint { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 5px 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 5px; color: var(--fg); } .attrs .editor-hint .icon { color: var(--accent-strong); } .attrs .editor-hint button { margin-left: auto; } .attrs .desc { color: var(--fg-mute); font-size: 10.5px; margin: 0 0 4px 2px; } /* ---- menus / popovers -------------------------------------------------- */ .menu { position: fixed; z-index: 1000; min-width: 190px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); padding: 4px; font-size: 12px; } .menu { max-height: calc(100vh - 12px); overflow-y: auto; } .menu.submenu { position: fixed; } .menu-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 5px; color: var(--fg); } .menu-item:hover:not(.disabled) { background: var(--accent); color: #fff; } .menu-item:hover:not(.disabled) .menu-shortcut { color: rgba(255, 255, 255, 0.7); } .menu-item.disabled { color: var(--fg-mute); } .menu-item.danger { color: var(--danger); } .menu-check { width: 14px; height: 14px; flex: none; display: inline-flex; align-items: center; } .menu-check .icon { width: 12px; height: 12px; } .menu-icon { width: 14px; height: 14px; flex: none; color: var(--fg-dim); } .menu-item:hover:not(.disabled) .menu-icon { color: #fff; } .menu-label { flex: 1; white-space: nowrap; } .menu-shortcut { color: var(--fg-mute); font-size: 11px; margin-left: 16px; } .menu-arrow { width: 12px; height: 12px; } .menu-sep { height: 1px; background: var(--line-strong); margin: 4px 6px; } .menu-heading { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); padding: 5px 8px 2px; } .popover { position: fixed; z-index: 1000; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); padding: 8px; font-size: 12px; max-height: 70vh; overflow: auto; } .popover.pick { padding: 6px; display: flex; flex-direction: column; gap: 6px; } .pick-input { width: 100%; } .pick-list { max-height: 320px; overflow: auto; } .pick-item { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 4px; } .pick-item.active { background: var(--accent); color: #fff; } .pick-item.active .pick-hint { color: rgba(255, 255, 255, 0.7); } .pick-icon { width: 13px; height: 13px; color: var(--fg-dim); } .pick-item.active .pick-icon { color: #fff; } .pick-label { flex: 1; } .pick-hint { color: var(--fg-mute); font-size: 10.5px; } .pick-group { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); padding: 5px 6px 2px; } .pick-empty { padding: 8px; color: var(--fg-mute); text-align: center; } /* ---- dialogs ----------------------------------------------------------- */ .backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; } .dialog { background: var(--bg1); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); max-height: 88vh; display: flex; flex-direction: column; max-width: 95vw; } .dialog-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); } .dialog-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; } .dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); } .dialog-buttons button.left { margin-right: auto; } .dialog-text { margin: 0; color: var(--fg); line-height: 1.5; user-select: text; } .form { display: grid; grid-template-columns: 130px 1fr; gap: 8px 10px; align-items: center; } .form label { color: var(--fg-dim); text-align: right; } .form .full { grid-column: 1 / -1; } .form input[type="text"], .form input[type="password"], .form input[type="number"], .form select { width: 100%; } .form .help { grid-column: 2; color: var(--fg-mute); font-size: 11px; margin-top: -4px; } .form-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); grid-column: 1 / -1; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line); } .radio-row { display: flex; gap: 12px; align-items: center; } .radio-row label { text-align: left; color: var(--fg); display: inline-flex; align-items: center; gap: 3px; } .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; } .seg button { border: none; border-radius: 0; height: 22px; padding: 0 9px; background: transparent; } .seg button + button { border-left: 1px solid var(--line-strong); } .seg button.on { background: var(--accent-soft); color: var(--accent-strong); } /* ---- file dialog ------------------------------------------------------- */ .file-dialog { display: flex; flex-direction: column; gap: 8px; min-height: 380px; } .file-path { display: flex; align-items: center; gap: 4px; } .file-path input { flex: 1; font-family: var(--mono); font-size: 11px; } .file-crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 11px; color: var(--fg-dim); } .file-crumbs .crumb { padding: 1px 5px; border-radius: 3px; } .file-crumbs .crumb:hover { background: var(--bg3); color: var(--fg); } .file-body { display: flex; gap: 8px; flex: 1; min-height: 0; } .file-side { width: 150px; flex: none; display: flex; flex-direction: column; gap: 2px; font-size: 11px; } .file-side .side-title { color: var(--fg-mute); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; margin: 6px 0 2px 6px; } .file-side .side-item { padding: 3px 6px; border-radius: 4px; display: flex; gap: 5px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg-dim); } .file-side .side-item:hover { background: var(--bg3); color: var(--fg); } .file-side .side-item .icon { width: 13px; height: 13px; flex: none; } .file-list { flex: 1; overflow: auto; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg0); min-height: 260px; max-height: 420px; } .file-row { display: flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 11.5px; } .file-row:hover { background: var(--bg2); } .file-row.selected { background: var(--accent-soft); } .file-row .icon { width: 14px; height: 14px; color: var(--fg-dim); flex: none; } .file-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-row .size { color: var(--fg-mute); font-size: 10.5px; font-variant-numeric: tabular-nums; } .file-row.dir .name { color: var(--fg); } .file-name-row { display: flex; align-items: center; gap: 6px; } .file-name-row input { flex: 1; } .file-preview { width: 150px; height: 120px; border: 1px solid var(--line-strong); border-radius: 6px; background-image: var(--checker-sm); background-size: 12px 12px; background-position: 0 0, 6px 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .file-preview img { max-width: 100%; max-height: 100%; } /* ---- toasts ------------------------------------------------------------ */ .toasts { position: fixed; right: 16px; bottom: 36px; z-index: 1100; display: flex; flex-direction: column; gap: 6px; } .toast { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); max-width: 420px; transition: opacity 0.3s; } .toast.fade { opacity: 0; } .toast.error { border-color: var(--danger); } .toast.error .icon { color: var(--danger); } .toast.ok .icon { color: var(--ok); } .toast.info .icon { color: var(--accent-strong); } .toast-msg { flex: 1; user-select: text; } /* ---- filter editor ----------------------------------------------------- */ .filter-editor { display: flex; flex: 1; min-height: 0; } .filter-chain { flex: 1; min-width: 0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .fe-card { background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 8px 6px; } .fe-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); } .fe-card.dragging { opacity: 0.4; } .fe-card.drop-before { box-shadow: 0 -2px 0 0 var(--accent); } .fe-card.drop-after { box-shadow: 0 2px 0 0 var(--accent); } .fe-head { display: flex; align-items: center; gap: 6px; height: 22px; } .fe-head .drag { color: var(--fg-mute); cursor: grab; } .fe-head .name { font-weight: 600; color: var(--purple); } .fe-head .io { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 10.5px; color: var(--fg-dim); } .fe-head .io select, .fe-head .io input { height: 19px; font-size: 10.5px; width: 100px; padding: 0 4px; } .fe-head .io input { width: 70px; font-family: var(--mono); } .fe-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px 10px; margin-top: 4px; } .fe-params .attr-row { grid-template-columns: 90px 1fr; } .fe-params .attr-row.wide { grid-column: 1 / -1; } .fe-children { margin: 4px 0 0 12px; border-left: 2px solid var(--line-strong); padding-left: 8px; display: flex; flex-direction: column; gap: 4px; } .fe-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; } .fe-child .name { color: var(--purple); font-weight: 600; width: 96px; } .fe-child .attr-row { display: inline-grid; grid-template-columns: auto 1fr; gap: 3px; min-width: 120px; } .fe-child .attr-row .attr-label { width: auto; } .matrix-grid { display: grid; gap: 2px; grid-column: 1 / -1; } .matrix-grid input { width: 100%; height: 19px; font-size: 10.5px; padding: 0 3px; font-family: var(--mono); text-align: center; } .filter-side { width: 240px; flex: none; border-left: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .filter-preview { height: 130px; border: 1px solid var(--line-strong); border-radius: 6px; background-image: var(--checker-sm); background-size: 12px 12px; background-position: 0 0, 6px 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .filter-preview svg { width: 100%; height: 100%; } .filter-side .attr-row { grid-template-columns: 68px 1fr; } .side-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-mute); } .chip-list { display: flex; flex-wrap: wrap; gap: 4px; } .chip { font-size: 10.5px; padding: 1px 7px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line-strong); color: var(--fg-dim); } .chip:hover { color: var(--fg); border-color: var(--fg-mute); } .chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); } /* ---- gradient editor --------------------------------------------------- */ .gradient-editor { display: flex; flex: 1; min-height: 0; } .gradient-main { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; } .ramp-wrap { position: relative; padding: 0 8px 18px; } .ramp { height: 28px; border-radius: 5px; border: 1px solid var(--line-strong); background-image: var(--checker-sm); background-size: 12px 12px; background-position: 0 0, 6px 6px; position: relative; overflow: hidden; } .ramp i { position: absolute; inset: 0; background: var(--grad); } .ramp-stops { position: absolute; left: 8px; right: 8px; top: 24px; height: 18px; } .ramp-stop { position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 3px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); cursor: ew-resize; } .ramp-stop::before { content: ''; position: absolute; left: 50%; top: -7px; margin-left: -4px; border: 4px solid transparent; border-bottom-color: #fff; } .ramp-stop.selected { border-color: var(--accent); } .ramp-stop.selected::before { border-bottom-color: var(--accent); } .gradient-stop-form { display: grid; grid-template-columns: 70px 1fr 70px 1fr; gap: 6px 8px; align-items: center; } .gradient-side { width: 230px; flex: none; border-left: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .gradient-side .attr-row { grid-template-columns: 78px 1fr; } .gradient-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .gradient-presets div { height: 22px; border-radius: 4px; border: 1px solid var(--line-strong); } .gradient-presets div:hover { border-color: var(--fg-dim); } /* ---- CSS editor rules view -------------------------------------------- */ .css-rules { padding: 6px; display: flex; flex-direction: column; gap: 5px; } .css-rule { background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 8px 6px; } .css-rule.hover { border-color: var(--accent-line); } .css-rule-head { display: flex; align-items: center; gap: 6px; height: 22px; } .css-rule-head input.selector { flex: 1; font-family: var(--mono); color: #ff8aa3; height: 20px; } .css-rule-head .matches { font-size: 10px; color: var(--fg-mute); white-space: nowrap; } .css-rule-head .matches.zero { color: var(--warn); } .css-rule-head .at { color: var(--purple); font-family: var(--mono); font-size: 11px; } .css-decls { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; } .css-decl { display: grid; grid-template-columns: 110px 1fr 18px; gap: 4px; align-items: center; } .css-decl input { height: 20px; font-size: 11px; font-family: var(--mono); } .css-decl input.name { color: #9ccbff; } .css-decl input.imp { color: var(--warn); } .css-decl .icon-btn { width: 18px; height: 18px; } .css-rule .add-row { display: flex; gap: 4px; margin-top: 4px; } .css-nested { margin-left: 10px; border-left: 2px solid var(--line-strong); padding-left: 6px; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; } .css-rule .comment { color: var(--fg-mute); font-style: italic; font-family: var(--mono); font-size: 11px; } /* ---- fonts pane -------------------------------------------------------- */ .fonts-pane { display: flex; flex: 1; min-height: 0; } .fonts-list { flex: 1; overflow: auto; } .font-row { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border-bottom: 1px solid var(--line); } .font-row:hover { background: var(--bg2); } .font-row.selected { background: var(--accent-soft); } .font-row .fam { width: 180px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .font-row .preview { flex: 1; font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg); } .font-row .faces { color: var(--fg-mute); font-size: 10.5px; flex: none; } .font-row .status { flex: none; font-size: 10.5px; color: var(--ok); } .fonts-side { width: 260px; flex: none; border-left: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: auto; } .face-row { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 0; } .face-row .sty { flex: 1; } .face-row .sz { color: var(--fg-mute); font-size: 10px; } .embedded-font { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 11px; } .embedded-font .fam { flex: 1; } .embedded-font .sz { color: var(--fg-mute); font-size: 10px; } /* ---- export dialog ----------------------------------------------------- */ .export-preview { display: flex; gap: 14px; } .export-thumb { width: 220px; height: 170px; flex: none; border: 1px solid var(--line-strong); border-radius: 6px; background-image: var(--checker-sm); background-size: 12px 12px; background-position: 0 0, 6px 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .export-thumb img { max-width: 100%; max-height: 100%; } .export-info { font-size: 11px; color: var(--fg-dim); display: flex; flex-direction: column; gap: 4px; } .export-info b { color: var(--fg); } /* ---- source pane ------------------------------------------------------- */ .source-pane .pane-toolbar .dirty { color: var(--warn); } /* ---- misc -------------------------------------------------------------- */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; color: var(--fg-mute); text-align: center; padding: 20px; } .empty-state .icon { width: 36px; height: 36px; color: var(--fg-mute); } .empty-state .actions { display: flex; gap: 8px; } .kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 11px; } .kv dt { color: var(--fg-mute); } .kv dd { margin: 0; user-select: text; } .drop-zone { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 14px; text-align: center; color: var(--fg-mute); } .drop-zone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); } .check-row { display: flex; align-items: center; gap: 4px; color: var(--fg); }