:root { color-scheme: light; --ink:#202532; --muted:#72798a; --line:#dfe3ea; --accent:#5068e9; --accent-dark:#4055ce; --panel:#fff; --bg:#f6f7f9; }
body.dark { color-scheme:dark; --ink:#edf0f7; --muted:#a6adbd; --line:#394154; --panel:#242a36; --bg:#171b23; }
body.dark .topbar, body.dark .palette, body.dark .file-dropdown, body.dark .properties-panel, body.dark .help-modal, body.dark .context-menu { background:var(--panel); }
body.dark .canvas-wrap { background:#1b202a; } body.dark #gridRect { opacity:.22; }
body.dark .palette-item, body.dark .rich-editor, body.dark .properties-body input, body.dark .properties-body select, body.dark .panel-button { background:#2b3240;color:var(--ink);border-color:var(--line); }
body.dark .flow-node .shape { fill:#242a36;stroke:#c5ccdb; } body.dark .node-rich-text { color:#edf0f7; }
body.dark .tool-button, body.dark .zoom-controls button { color:#cbd2e1; }
body.dark .brand-name::after { color:#f0f3f9; }
body.dark .brand-copy small { color:#b2bbcc; }
body.dark .file-dropdown button { color:#cbd3e2; }
body.dark .file-dropdown button:hover { background:#343c4c;color:#f7f9fc; }
body.dark .tool-button:hover, body.dark .zoom-controls button:hover { background:#343c4c;color:#f5f7fb; }
body.dark .rich-toolbar { background:#2b3240;border-color:#465064; }
body.dark .rich-toolbar button { color:#e2e7f1; }
body.dark .rich-toolbar button:hover { background:#3a4456;color:#fff;box-shadow:0 1px 4px #11182766; }
body.dark .rich-toolbar button:active { background:#46536a; }
body.dark .empty-icon { background:#2b3240;border-color:#465064;color:#8f9cf0;box-shadow:0 7px 24px #0b102033; }
body.dark .empty-state strong { color:#aeb8ca; }
body.dark .empty-state { color:#8f99ad; }
body.dark .tool-button:disabled { color:#9ba6bb;opacity:.82; }
body.dark .palette-help, body.dark .canvas-tip, body.dark .minimap { background:#202631;color:#aeb7c8;border-color:#394154;box-shadow:0 8px 24px #080b1160; }
body.dark .palette-help:hover { background:#272e3b; }
body.dark .palette-help strong { color:#d8deea; }
body.dark .minimap-node { fill:#4a5468;stroke:#a8b2c6; }
body.dark .panel-button.danger { background:#352a31;border-color:#68404a;color:#f19aa3; }
body.dark .panel-button.danger:hover { background:#492f37;border-color:#92515d;color:#ffd7db; }
body.dark .panel-button:not(.danger):hover { background:#374154;border-color:#59657b;color:#f4f7fc; }
* { box-sizing:border-box; }
html, body { width:100%; height:100%; margin:0; overflow:hidden; font-family:Inter,Segoe UI,Arial,sans-serif; color:var(--ink); background:var(--bg); }
button { font:inherit; }
.topbar { height:64px; display:flex; align-items:center; gap:24px; padding:0 20px; background:#fff; border-bottom:1px solid var(--line); position:relative; z-index:10; }
.brand { display:flex; align-items:center; gap:10px; min-width:205px; color:var(--ink); font-weight:750; font-size:18px; text-decoration:none; }
.brand-emblem { width:38px; height:42px; flex:0 0 auto; object-fit:contain; }
.brand-copy { display:flex; flex-direction:column; gap:0; line-height:1; }
.brand-name { display:flex; flex-direction:column; align-items:flex-start; gap:1px; font-size:0; line-height:.92; letter-spacing:-.025em; }
.brand-name::before { content:'Схематика'; color:var(--accent); font-size:22px; }
.brand-name::after { content:'Мастер'; color:#202532; font-size:22px; }
.brand-name > span { display:none; }
.brand-scheme { color:#202532; }
.brand-master { color:var(--accent); }
.brand-copy small { display:none; }
.main-actions { display:flex; align-items:center; gap:6px; flex:1; }
.file-menu { position:relative; }
.file-dropdown { position:absolute; left:0; top:calc(100% + 6px); min-width:180px; display:none; padding:5px; border:1px solid var(--line); border-radius:9px; background:#fff; box-shadow:0 10px 28px #25305a20; }
.file-menu.open .file-dropdown { display:flex; flex-direction:column; }
.file-dropdown button { border:0; border-radius:6px; padding:9px 10px; background:transparent; color:#485063; text-align:left; cursor:pointer; white-space:nowrap; font-size:12px; }
.file-dropdown button:hover { background:#f0f2f6; color:#202532; }
.tool-button, .zoom-controls button { border:0; background:transparent; color:#485063; border-radius:7px; padding:9px 12px; cursor:pointer; transition:.15s ease; }
.tool-button:hover, .zoom-controls button:hover { background:#f0f2f6; color:#202532; }
.tool-button.primary { background:var(--accent); color:#fff; padding-inline:16px; }
.tool-button.primary:hover { background:var(--accent-dark); color:#fff; }
.fullscreen-button { font-size:18px;line-height:1; }
.file-menu > .tool-button { display:inline-flex;align-items:center;gap:5px; }
.file-menu > .tool-button::after { content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease; }
.file-menu.open > .tool-button::after { transform:translateY(1px) rotate(225deg); }
.icon-tool { min-width:36px;padding-inline:9px;font-size:18px; }
.language-button { min-width:38px;padding-inline:9px;font-size:11px;font-weight:800;letter-spacing:.06em; }
.divider { height:24px; width:1px; background:var(--line); margin:0 4px; }
.zoom-controls { display:flex; align-items:center; gap:2px; border:1px solid var(--line); border-radius:9px; padding:2px; }
.zoom-controls button { padding:6px 9px; }
.zoom-controls .zoom-label { width:62px; color:#343b4c; font-size:13px; }
.workspace { height:calc(100% - 64px); display:flex; }
.code-button { border:1px solid #cfd6e4;background:#f7f8fb;color:#30394d;white-space:nowrap; }
.code-button:hover { border-color:#8f9cf0;background:#eef0ff;color:#3449bd; }
.code-panel { width:390px;flex:0 0 390px;min-width:320px;display:flex;flex-direction:column;gap:12px;padding:14px;background:#fff;border-left:1px solid var(--line);box-shadow:-8px 0 24px #2631490d;overflow:hidden; }
.code-panel[hidden] { display:none; }.code-panel header { display:flex;align-items:center;justify-content:space-between;min-height:30px; }
.code-language-label { display:flex;flex-direction:column;gap:6px;color:#687185;font-size:12px;font-weight:650; }.code-language-label select { width:100%;padding:9px 10px;border:1px solid #d9dee7;border-radius:7px;background:#fff;color:#2c3343; }
.code-status { min-height:18px;color:#687185;font-size:12px;line-height:1.4; }.code-status.error { padding:9px;border-radius:7px;background:#fff3f3;color:#b54752;border:1px solid #f0c8cd; }
.generated-code-wrap { flex:1;min-height:0;margin:0;padding:14px;overflow:auto;border:1px solid #d9dee7;border-radius:8px;background:#f7f8fa;color:#273047;font:13px/1.55 Consolas,'Cascadia Code',monospace;white-space:pre;tab-size:2; }
body.dark .code-button { border-color:#465064;background:#2d3544;color:#e3e8f2; } body.dark .code-button:hover { background:#3a4456;color:#fff; }
body.dark .code-panel { background:#252b36;border-color:#3b4455;box-shadow:-8px 0 24px #080b1140; } body.dark .code-language-label { color:#aeb8ca; } body.dark .code-language-label select { background:#2b3240;color:#e2e7f1;border-color:#465064; }
body.dark .generated-code-wrap { background:#1d232d;color:#dce3f0;border-color:#3e485b; } body.dark .code-status.error { background:#352a31;color:#f1a5ad;border-color:#68404a; }
@media (max-width:1050px) { .code-panel { width:330px;flex-basis:330px; } }
.palette { width:230px; flex:0 0 230px; display:flex; flex-direction:column; padding:20px 14px 14px; background:#fff; border-right:1px solid var(--line); z-index:5; }
.palette-heading { display:flex; justify-content:space-between; align-items:center; padding:0 6px; font-weight:700; }
.palette-heading small { color:var(--accent); background:#eef0ff; padding:3px 7px; border-radius:10px; font-size:10px; letter-spacing:.05em; }
.palette-hint { color:var(--muted); font-size:12px; padding:0 6px; margin:7px 0 14px; }
.shape-list { flex:1 1 auto; min-height:0; overflow-y:auto; margin-right:-5px; padding-right:5px; scrollbar-width:thin; }
.shape-group { margin-bottom:10px; }
.shape-group-title { width:100%; display:flex; align-items:center; justify-content:space-between; border:0; background:transparent; padding:7px 5px; color:#687083; font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
.group-title-meta { display:flex;align-items:center;gap:5px; }
.group-standard { padding:3px 6px;border-radius:9px;background:#eef0ff;color:var(--accent);font-size:8px;font-weight:800;letter-spacing:.02em;white-space:nowrap;text-transform:none; }
body.dark .group-standard { background:#333c61;color:#b9c4ff; }
.group-chevron { font-size:14px; transition:transform .15s; }
.shape-group.collapsed .group-chevron { transform:rotate(-90deg); }
.shape-group-items { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.shape-group.collapsed .shape-group-items { display:none; }
.palette-item { min-height:84px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:1px solid #e2e5eb; border-radius:10px; color:#4d5567; background:#fff; cursor:grab; user-select:none; transition:.15s ease; }
.palette-item:hover { border-color:#aeb8f5; background:#f9f9ff; color:#344dcc; transform:translateY(-1px); box-shadow:0 4px 12px #25305a12; }
.palette-item:active { cursor:grabbing; }
.palette-item svg { width:58px; height:34px; overflow:visible; }
.palette-item span { font-size:11px; text-align:center; line-height:1.1; }
.palette-help { margin-top:8px; display:flex; flex-direction:column; gap:5px; flex:0 0 auto; width:100%; border:0; border-radius:10px; padding:12px; background:#f5f6fa; color:var(--muted); font:11px/1.35 Inter,Segoe UI,Arial,sans-serif; text-align:left; cursor:pointer; }
.palette-help:hover { background:#eef0f5; }
.palette-help strong { color:#424a5c; font-size:12px; }
.help-open-label { color:var(--accent); font-weight:650; }
.palette-copyright { flex:0 0 auto; margin-top:auto; padding:10px 6px 0; color:#9299a8; font-size:10px; text-align:center; }
.palette-copyright a { color:inherit;text-decoration:none;border-bottom:1px dotted currentColor; }
.palette-copyright a:hover { color:var(--accent);border-bottom-style:solid; }
.palette-version { display:block; margin-top:3px; }
.palette-registration { display:block; margin-top:8px; padding-top:7px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; line-height:1.5; }
.palette-registration > span { display:block; }
.canvas-wrap { position:relative; min-width:0; flex:1; overflow:hidden; background:#f7f8fa; }
#canvas { width:100%; height:100%; display:block; cursor:default; touch-action:none; }
#canvas.panning { cursor:grabbing; }
.empty-state { position:absolute; left:50%; top:48%; transform:translate(-50%,-50%); pointer-events:none; display:flex; flex-direction:column; align-items:center; gap:7px; color:#858c9c; }
.empty-state.hidden { display:none; }
.empty-state strong { color:#5d6576; font-size:16px; }
.empty-state span { font-size:13px; }
.empty-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:#fff; border:1px solid #e1e5ec; color:var(--accent); font-size:25px; box-shadow:0 7px 24px #30384d10; margin-bottom:4px; }
.canvas-tip { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); color:#7e8594; background:#ffffffdf; border:1px solid #e3e6eb; border-radius:20px; padding:7px 13px; font-size:11px; pointer-events:none; }
.minimap { position:absolute;right:16px;bottom:16px;width:190px;height:130px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#ffffffdf;box-shadow:0 8px 24px #27314918;backdrop-filter:blur(6px); }
.minimap svg { width:100%;height:100%;display:block; }.minimap-node{fill:#cbd2e3;stroke:#59647a;stroke-width:1}.minimap-view{fill:#5068e912;stroke:var(--accent);stroke-width:1.5}
.align-toolbar { position:absolute; left:50%; top:14px; transform:translateX(-50%); display:none; align-items:center; gap:3px; padding:5px 7px; border:1px solid var(--line); border-radius:10px; background:#fffffff2; box-shadow:0 8px 24px #27314918; }
.align-toolbar.visible { display:flex; }
.align-toolbar > span { padding:0 6px; color:#687083; font-size:11px; }
.align-toolbar button { width:30px; height:30px; border:0; border-radius:6px; background:transparent; color:#485063; cursor:pointer; }
.align-toolbar button:hover { background:#eef0f5; color:var(--accent); }
.align-toolbar .align-divider { width:1px; height:20px; padding:0; background:var(--line); }
.selection-box { fill:#5068e912; stroke:var(--accent); stroke-width:1; stroke-dasharray:5 4; vector-effect:non-scaling-stroke; }
.smart-guide { stroke:#d946a5; stroke-width:1; stroke-dasharray:5 4; vector-effect:non-scaling-stroke; pointer-events:none; }
.properties-panel { position:absolute; right:16px; top:16px; width:260px; padding:14px; border:1px solid #dfe3ea; border-radius:12px; background:#fffffff2; box-shadow:0 12px 35px #27314920; backdrop-filter:blur(8px); transform:translateX(12px); opacity:0; pointer-events:none; transition:.16s ease; }
.properties-panel.visible { transform:none; opacity:1; pointer-events:auto; }
.properties-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; cursor:move; user-select:none; touch-action:none; }
.properties-title strong { font-size:14px; }
.properties-title-actions { display:flex; align-items:center; gap:2px; cursor:default; }
.icon-button { width:28px; height:28px; border:0; border-radius:7px; background:transparent; color:#737b8d; font-size:20px; cursor:pointer; }
.icon-button:hover { background:#eef0f4; color:#303748; }
.properties-panel.collapsed { padding-top:10px; padding-bottom:10px; }
.properties-panel.collapsed .properties-title { margin-bottom:0; }
.properties-panel.collapsed .properties-body { display:none !important; }
.properties-body { display:none; flex-direction:column; gap:10px; }
.properties-body.active { display:flex; }
.properties-body label { display:flex; flex-direction:column; gap:5px; color:#687083; font-size:11px; font-weight:650; }
.property-field { display:flex; flex-direction:column; gap:5px; }
.property-label { color:#687083; font-size:11px; font-weight:650; }
.properties-body input, .properties-body textarea, .properties-body select { width:100%; border:1px solid #d9dee7; border-radius:7px; padding:8px 9px; background:#fff; color:#2c3343; font:13px/1.35 Inter,Segoe UI,Arial,sans-serif; resize:vertical; outline:none; }
.properties-body input:focus, .properties-body textarea:focus, .properties-body select:focus { border-color:#8f9cf0; box-shadow:0 0 0 3px #5068e916; }
.rich-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:4px; border:1px solid #d9dee7; border-bottom:0; border-radius:7px 7px 0 0; background:#f6f7f9; }
.rich-toolbar button { min-width:34px; height:28px; border:0; border-radius:5px; background:transparent; color:#3f4759; cursor:pointer; font-weight:650; }
.rich-toolbar button:hover { background:#fff; box-shadow:0 1px 4px #27314918; }
.rich-editor { display:block; min-height:66px; max-height:140px; overflow:auto; padding:8px 9px; border:1px solid #d9dee7; border-radius:0 0 7px 7px; background:#fff; color:#2c3343; font:13px/1.4 Inter,Segoe UI,Arial,sans-serif; outline:none; text-transform:none; letter-spacing:normal; }
.rich-editor:focus { border-color:#8f9cf0; box-shadow:0 0 0 3px #5068e916; }
.decision-properties { display:none; flex-direction:column; gap:7px; padding-top:2px; }
.decision-properties.visible { display:flex; }
.image-properties { display:none; }
.image-properties.visible { display:block; }
.checkbox-label { display:flex !important; flex-direction:row !important; align-items:center; gap:8px !important; padding:8px 9px; border:1px solid #d9dee7; border-radius:7px; background:#f8f9fb; cursor:pointer; }
.checkbox-label input { width:16px !important; height:16px; margin:0; padding:0; box-shadow:none !important; }
.decision-properties strong { color:#687083; font-size:11px; }
.branch-row { display:grid; grid-template-columns:1fr 88px; gap:6px; }
.branch-fixed-label { display:flex; align-items:center; padding:8px 9px; border:1px solid #e1e4ea; border-radius:7px; background:#f4f5f7; color:#3f4759; font-size:13px; font-weight:700; }
.property-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.properties-body p { margin:0 0 3px; color:#72798a; font-size:12px; line-height:1.4; }
.panel-button { width:100%; border:1px solid #d9dee7; border-radius:8px; padding:9px 10px; background:#fff; color:#424a5c; cursor:pointer; font-size:12px; }
.panel-button:hover { background:#f3f4f7; }
.panel-button.danger { border-color:#f1d2d4; color:#bd3f48; }
.panel-button.danger:hover { background:#fff4f4; }
.flow-node { cursor:move; }
.node-hit-area { stroke:none; }
.flow-node .shape { fill:#fff; stroke:#424b5d; stroke-width:2; vector-effect:non-scaling-stroke; }
.flow-node .shape.open-shape { fill:none; }
.flow-node .shape.no-frame { fill:none; stroke:none; }
.flow-node.selected .shape { stroke:var(--accent); stroke-width:2.5; filter:url(#shadow); }
.flow-node.selected .shape.no-frame { stroke:var(--accent); stroke-width:1.5; stroke-dasharray:6 4; filter:none; }
.flow-node text { fill:#293041; font-size:14px; text-anchor:middle; dominant-baseline:middle; user-select:none; pointer-events:none; }
.flow-node .comment-text { text-anchor:start; }
.node-text-fo { pointer-events:none; overflow:visible; }
.node-rich-text { width:100%; height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; color:#293041; font:14px/1.25 Inter,Segoe UI,Arial,sans-serif; text-align:center; overflow-wrap:anywhere; }
.node-rich-text.comment-rich-text { justify-content:flex-start; text-align:left; }
.node-rich-content { display:inline; max-width:100%; white-space:pre-wrap; }
.node-rich-text sup, .node-rich-text sub { font-size:.72em; line-height:0; }
.decision-label { fill:#3f4759; font-size:12px; font-weight:650; paint-order:stroke; stroke:#fff; stroke-width:5px; stroke-linejoin:round; pointer-events:none; }
.image-placeholder { fill:#8a91a0; font-size:12px; text-anchor:middle; dominant-baseline:middle; pointer-events:none; }
.port { fill:#fff; stroke:var(--accent); stroke-width:2; vector-effect:non-scaling-stroke; cursor:crosshair; opacity:0; transition:opacity .12s; }
.flow-node.selected .port, .flow-node:hover .port { opacity:1; }
.connection { fill:none; stroke:#586174; stroke-width:2; marker-end:url(#arrow); vector-effect:non-scaling-stroke; cursor:pointer; }
.connection.selected { stroke:var(--accent); stroke-width:3; }
.connection.comment-connection { stroke-dasharray:7 5; marker-end:none; }
.connection.no-arrow { marker-end:none; }
.connection.dashed { stroke-dasharray:8 6; }
.connection-label { fill:#3f4759;font-size:11px;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;pointer-events:none; }
.uml-node-text { fill:#293041;font-size:12px;dominant-baseline:middle;pointer-events:none; }
.uml-node-text.uml-title { font-size:13px;font-weight:700; }
body.dark .uml-node-text { fill:#edf0f7; }
body.dark .connection-label { fill:#e6eaf2;stroke:#1b202a; }
body.dark #umlOpenArrow path, body.dark #umlHollowTriangle path, body.dark #umlHollowDiamond path { stroke:#c5ccdb; }
body.dark #umlHollowTriangle path, body.dark #umlHollowDiamond path { fill:#242a36; }
body.dark #umlFilledTriangle path, body.dark #umlFilledDiamond path { fill:#c5ccdb;stroke:#c5ccdb; }
.route-handle { fill:#fff; stroke:var(--accent); stroke-width:2; vector-effect:non-scaling-stroke; cursor:grab; }
.route-handle:hover { fill:#eef0ff; stroke-width:3; }
.route-handle:active { cursor:grabbing; }
.draft-line { fill:none; stroke:var(--accent); stroke-width:2; stroke-dasharray:7 5; vector-effect:non-scaling-stroke; }
.toast { position:fixed; right:20px; bottom:20px; z-index:20; padding:11px 15px; border-radius:9px; color:#fff; background:#252c3a; box-shadow:0 8px 25px #11182730; font-size:13px; opacity:0; transform:translateY(8px); pointer-events:none; transition:.2s; }
.toast.visible { opacity:1; transform:translateY(0); }
.context-menu { position:fixed;z-index:80;min-width:190px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 38px #18203235; }
.context-menu button { width:100%;display:flex;justify-content:space-between;border:0;border-radius:6px;padding:9px 10px;background:transparent;color:var(--ink);cursor:pointer;text-align:left }.context-menu button:hover{background:#eef0f5}.context-menu button.danger{color:#bd3f48}.context-menu kbd{color:var(--muted);font:11px inherit}
.modal-backdrop { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:20px; background:#20263870; backdrop-filter:blur(3px); }
.modal-backdrop[hidden] { display:none; }
.help-modal { width:min(620px,100%); max-height:min(720px,90vh); overflow:auto; padding:20px; border-radius:14px; background:#fff; box-shadow:0 24px 70px #11182745; }
.help-modal header { display:flex; align-items:center; justify-content:space-between; }
.help-modal h2 { margin:0; font-size:20px; }.help-modal h3 { margin:20px 0 8px; font-size:14px; }.help-modal p { color:#687083; font-size:13px; line-height:1.5; }
.compact-modal{width:min(560px,100%)}.code-input{width:100%;min-height:260px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:13px/1.5 Consolas,monospace;resize:vertical}.primary-panel{background:var(--accent);color:#fff;border-color:var(--accent)}
.validation-list{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}.validation-list li{padding:10px;border-radius:8px;background:#f5f6f9;color:#4b5365;font-size:13px}.validation-list li.error{background:#fff0f1;color:#a93640}.validation-list li.warning{background:#fff8e6;color:#876100}.validation-ok{padding:18px 0;color:#278052}
.shortcut-list { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:7px; }.shortcut-list div { display:grid; grid-template-columns:145px 1fr; gap:8px; padding:9px; border-radius:8px; background:#f6f7f9; font-size:12px; }.shortcut-list dt { font-weight:750; color:#3f4759; }.shortcut-list dd { margin:0; color:#72798a; }
body.dark .shortcut-list div { background:#2c3341;border:1px solid #3b4558; }
.code-hint { cursor:help; text-decoration:underline dotted; text-underline-offset:3px; }
.code-hint:hover { color:var(--accent); }
body.dark .shortcut-list dt { color:#edf1f8; }
body.dark .shortcut-list dd { color:#b5bed0; }
body.dark .help-modal h2, body.dark .help-modal h3 { color:#f1f4fa; }
body.dark .help-modal p { color:#b3bdcf; }
@media (max-width:800px) { .brand { min-width:auto; } .brand-copy { display:none; } .tool-button { padding-inline:7px; font-size:12px; } .palette { width:180px; flex-basis:180px; } .zoom-controls { display:none; } }

.statistics-link{display:block;width:100%;margin:10px 0 0;padding:7px;border:0;background:transparent;color:var(--accent);font:600 12px/1.4 Inter,Segoe UI,Arial,sans-serif;text-align:left;cursor:pointer}.statistics-link:hover{text-decoration:underline}.statistics-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.statistics-modal{width:min(620px,100%)}.statistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.statistics-card{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.statistics-card strong{display:block;color:var(--ink);font-size:26px;line-height:1.3;overflow-wrap:anywhere}.statistics-card span{display:block;margin-top:5px;color:var(--muted);font-size:12px}@media(max-width:420px){.statistics-grid{grid-template-columns:1fr}}

.code-actions { display:flex;flex-wrap:wrap;gap:8px; }
.code-actions .panel-button { flex:1; }
.code-actions [hidden] { display:none; }
.compiler-modal { width:min(1200px,100%);height:90vh;max-height:90vh;display:flex;flex-direction:column;gap:10px;overflow:hidden; }
.compiler-modal p { margin:0; }
.compiler-frame-host { flex:1;min-height:0; }
.compiler-frame-host iframe { display:block;width:100%;height:100%;border:0;border-radius:8px;background:#fff; }
@media (max-width:600px) { #compilerModal { padding:8px; }.compiler-modal { padding:12px;height:94vh;max-height:94vh; }.compiler-modal h2 { font-size:16px; } }
