.cb-workspace,.cb-dialog{--cb-bg:#f5f7fa;--cb-panel:#fff;--cb-ink:#18222c;--cb-muted:#677482;--cb-line:#d9e0e7;--cb-accent:#137e5c;color:var(--cb-ink);font-family:inherit;letter-spacing:0}
.theme-dark .cb-workspace,.theme-dark .cb-dialog{--cb-bg:#14191f;--cb-panel:#232b34;--cb-ink:#f1f5f8;--cb-muted:#b1becb;--cb-line:#3b4754;--cb-accent:#5ce0b0}
.cb-workspace *,.cb-dialog *{box-sizing:border-box;letter-spacing:0}
.cb-workspace button,.cb-dialog button{font:inherit;cursor:pointer}
.cb-workspace button[hidden],.cb-dialog button[hidden]{display:none!important}
.cb-workspace button:disabled{opacity:.4;cursor:default}
.cb-workspace button:focus-visible,.cb-dialog button:focus-visible{outline:2px solid #2684ff;outline-offset:2px}
.cb-workspace svg.crm-v2-icon,.cb-dialog svg.crm-v2-icon{width:18px;height:18px;display:block;flex-shrink:0}
.cb-header{display:flex;align-items:center;gap:10px;padding:12px 0 16px;min-height:62px;flex-wrap:wrap}
.cb-header h2{margin:0;font-size:21px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}
.cb-header .cb-list-count{color:var(--cb-muted);margin-right:auto}
.cb-header>button{height:36px;min-width:36px;padding:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--cb-panel);color:var(--cb-ink);border:1px solid var(--cb-line);border-radius:6px}
.cb-header .cb-primary,.cb-dialog .btn-primary{background:#137e5c;color:#fff;border-color:#137e5c;padding:8px 14px;font-weight:600}
.cb-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;padding:12px 0}
.cb-board{border:1px solid var(--cb-line);border-radius:7px;padding:0 0 14px;background:var(--cb-panel);color:var(--cb-ink);text-align:left;overflow:hidden}
.cb-board:hover{border-color:var(--cb-accent)}
.cb-board strong,.cb-board small{display:block;padding:10px 16px 0;overflow-wrap:anywhere}.cb-board small{color:var(--cb-muted);font-size:12px;padding-top:4px}
.cb-preview{display:block;height:150px;background:var(--cb-bg);border-bottom:1px solid var(--cb-line)}.cb-preview canvas{width:100%;height:150px;object-fit:contain}
.cb-empty{color:var(--cb-muted);padding:30px 0}
.cb-editor-header{border-bottom:1px solid var(--cb-line);padding:8px 0;gap:8px}.cb-editor-header h2{flex:1;font-size:17px;min-width:90px}
#cb-status{font-size:12px;color:var(--cb-muted);max-width:260px;overflow-wrap:anywhere;line-height:1.4}#cb-status[data-kind=error]{color:#e45765}#cb-status[data-kind=saving]{color:var(--cb-accent)}
#cb-remove{color:#e45765}
.cb-editor{position:relative;height:calc(100dvh - 183px);min-height:460px;background:var(--cb-bg);overflow:hidden}
.cb-canvas-wrap{position:absolute;inset:0;background-image:radial-gradient(var(--cb-line) .8px,transparent .8px);background-size:24px 24px;touch-action:none}
.cb-canvas-wrap .canvas-container{position:absolute!important;inset:0}.cb-canvas-wrap canvas{touch-action:none}
.cb-tools,.cb-properties,.cb-zoom{position:absolute;z-index:2;display:flex;align-items:center;gap:4px;padding:6px;background:var(--cb-panel);border:1px solid var(--cb-line);border-radius:7px;box-shadow:0 3px 12px #00000012}
.cb-tools{top:76px;left:16px;flex-direction:column}.cb-properties{top:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);overflow-x:auto;flex-wrap:nowrap}
.cb-tools button,.cb-properties button,.cb-zoom button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:0;color:var(--cb-ink);background:transparent;border:1px solid transparent;border-radius:5px}
.cb-tools button:hover,.cb-properties button:hover,.cb-zoom button:hover{background:var(--cb-bg)}
.cb-tools button[aria-pressed=true],#cb-bold[aria-pressed=true]{background:#2684ff;color:#fff}
.cb-tool-divider{display:block;width:1px;height:24px;background:var(--cb-line);flex-shrink:0;margin:0 3px}.cb-tools .cb-tool-divider{height:1px;width:26px;margin:4px 0}
.cb-swatches{display:flex;align-items:center;gap:3px}.cb-properties [data-color]{width:23px;height:23px;border-radius:50%;background:var(--swatch);border:1px solid #80808080;box-shadow:inset 0 0 0 2px var(--cb-panel)}.cb-properties [data-color]:hover{background:var(--swatch)}.cb-properties [data-color][aria-pressed=true]{outline:2px solid #2684ff;outline-offset:1px}
.cb-custom-color{display:flex;width:28px;flex-shrink:0}.cb-custom-color input{width:26px;height:26px;padding:0;border:0;background:none;cursor:pointer}
.cb-properties input[type=number],.cb-properties select{font:inherit;color:var(--cb-ink);background:var(--cb-panel);height:32px;border:1px solid var(--cb-line);border-radius:4px;padding:4px;width:54px}.cb-properties select{width:64px}
.cb-selection-info{position:absolute;left:16px;bottom:18px;font-size:12px;color:var(--cb-muted);pointer-events:none}
.cb-zoom{right:16px;bottom:14px}.cb-zoom #cb-zoom{width:52px;font-size:12px}
.cb-workspace:fullscreen{padding:0 16px;background:var(--cb-bg)}.cb-workspace:fullscreen .cb-editor{height:calc(100dvh - 58px)}
dialog.cb-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:20px;overflow:auto;line-height:1.5;background:var(--cb-panel);border:1px solid var(--cb-line);border-radius:7px;font:inherit}
.cb-dialog::backdrop{background:#0009}.cb-dialog form{margin:0;min-width:0}.cb-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;margin:0 0 16px}.cb-dialog h3{margin:0;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.cb-dialog #cb-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #dc3545;border-radius:5px;background:#dc3545;color:#fff;line-height:1}.cb-dialog #cb-close:hover{background:#bc2635;border-color:#bc2635}.cb-dialog #cb-close svg{display:block;width:18px;height:18px;margin:0}
.cb-dialog label{display:flex;flex-direction:column;gap:6px;margin:0 0 16px}.cb-dialog input:not([type=checkbox]),.cb-dialog textarea{display:block;width:100%;min-height:42px;font:inherit;padding:9px;border:1px solid var(--cb-line);border-radius:5px;background:var(--cb-panel);color:var(--cb-ink)}
.cb-dialog footer{display:flex;justify-content:flex-end;margin:20px 0 0}.cb-dialog footer .btn{min-height:42px;border-radius:6px;padding:9px 20px}.cb-error{color:#e45765}.cb-error:empty{display:none}.cb-members{max-height:250px;overflow:auto}.cb-dialog .cb-members label{flex-direction:row;align-items:center;gap:9px}.cb-link-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cb-link-actions button,#cb-copy-link{background:var(--cb-bg);color:var(--cb-ink);border:1px solid var(--cb-line);padding:8px;border-radius:5px}
@media(max-width:700px){.cb-header{gap:6px}.cb-editor-header h2{font-size:15px}.cb-editor-header #cb-status{order:3;flex-basis:100%;max-width:none;font-size:11px}.cb-editor-header>button{width:32px;min-width:32px;height:32px;padding:6px}.cb-editor-header #cb-share span{display:none}.cb-editor-header #cb-share{padding:6px}.cb-editor{height:calc(100dvh - 255px);min-height:470px}.cb-properties{top:8px;left:8px;right:8px;max-width:none;transform:none;padding:4px}.cb-properties button{width:30px;height:30px}.cb-properties .cb-swatches{gap:2px}.cb-properties [data-color]{width:20px;height:20px}.cb-tools{top:auto;bottom:8px;left:8px;right:8px;flex-direction:row;overflow-x:auto;padding:4px;gap:2px}.cb-tools button{width:32px;height:34px}.cb-tools .cb-tool-divider{width:1px;height:22px;margin:0 3px}.cb-zoom{bottom:63px;right:8px;padding:3px}.cb-zoom button{height:30px;width:30px}.cb-selection-info{left:10px;bottom:74px}.cb-list{grid-template-columns:1fr}}
.cb-presence{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.cb-peer{position:absolute;left:0;top:0;color:var(--peer);transition:transform .12s linear;pointer-events:none}
.cb-peer span{position:absolute;left:16px;top:20px;background:var(--peer);color:#fff;padding:3px 7px;border-radius:4px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 4px #0003}
