.react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}:root{--ink:#1c2030;--ink2:#3a4052;--muted:#5a6072;--line:#d9dce3;--bg:#f4f5f7;--accent:#34408a;--serif:"Noto Serif KR", serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html,body{overflow:hidden}body{color:var(--ink);background:var(--bg);font-family:Noto Sans KR,system-ui,sans-serif;font-size:14px}button,input{font-family:inherit;font-size:inherit;color:inherit}button{cursor:pointer}.grow{flex:1}.ph{color:#7a8092}.center-msg{height:100%;color:var(--muted);place-items:center;display:grid}.login{flex-direction:column;gap:10px;width:300px;margin:18vh auto 0;display:flex}.login h1{font-family:var(--serif);color:var(--accent);margin:0 0 12px}.login input{border:1px solid var(--line);background:#fff;border-radius:8px;height:44px;padding:0 12px}.login .err{color:#b3261e;margin:0}.login .btn{height:44px}.app{height:100%;display:flex;overflow:hidden}.side{border-right:1px solid var(--line);background:#fff;flex-direction:column;flex:none;gap:4px;width:210px;padding:14px 10px;display:flex;overflow-y:auto}.brand{font-family:var(--serif);color:var(--accent);padding:0 8px 14px;font-size:19px;font-weight:700}.side-title{color:var(--muted);padding:8px 8px 4px;font-size:11px;font-weight:700}.side-item{border-radius:6px;display:flex}.side-item .open{text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:6px;flex:1;padding:8px;overflow:hidden}.side-item .del{color:var(--muted);visibility:hidden;background:0 0;border:0;border-radius:6px;width:28px}.side-item:hover .del,.side-item .del:focus-visible{visibility:visible}.side-item:hover{background:var(--bg)}.side-item.on{background:#e9ecf7}.side-item.on .open{color:var(--accent);font-weight:700}.side-new{text-align:left;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:8px}.side-new:hover{background:var(--bg)}.legend{color:var(--ink2);flex-direction:column;gap:6px;padding:2px 8px 10px;font-size:12px;display:flex}.legend span{align-items:center;gap:8px;display:flex}.legend i{width:24px;height:0}.ws{flex-direction:column;flex:1;min-width:0;display:flex;position:relative;overflow:hidden}.topbar{border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap;flex:none;align-items:center;gap:8px;min-height:52px;padding:8px 12px;display:flex}.board-name{font-family:var(--serif);background:0 0;border:1px solid #0000;border-radius:6px;width:200px;padding:5px 8px;font-size:17px;font-weight:700}input.board-name:hover,input.board-name:focus{border-color:var(--line);outline:none}.btn{border:1px solid var(--line);white-space:nowrap;background:#fff;border-radius:8px;height:34px;padding:0 12px}.btn:hover{background:var(--bg)}.btn.icon{width:34px;padding:0;font-size:17px}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:#2a3472}.link{color:var(--accent);background:0 0;border:0;padding:0;text-decoration:underline}.seg{border:1px solid var(--line);border-radius:8px;height:34px;display:flex;overflow:hidden}.seg button{color:var(--ink2);background:#fff;border:0;padding:0 12px}.seg button.on{background:var(--accent);color:#fff}.save-state{color:var(--muted);font-size:12px}.save-state.error,.save-state.conflict{color:#b3261e;font-weight:700}.search,.share{position:relative}.search input{border:1px solid var(--line);background:var(--bg);border-radius:8px;width:210px;height:34px;padding:0 10px}.pop{z-index:50;border:1px solid var(--line);background:#fff;border-radius:10px;padding:6px;position:absolute;top:40px;right:0;box-shadow:0 10px 30px #1c203029}.results{flex-direction:column;width:320px;display:flex}.results button{text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:8px;overflow:hidden}.results button:hover{background:var(--bg)}.results b{color:var(--accent)}.results .empty{color:var(--muted);padding:8px}.share-pop{flex-direction:column;gap:10px;width:340px;padding:14px;font-size:13px;display:flex}.share-pop .row{align-items:center;gap:8px;display:flex}.share-pop input[readonly]{border:1px solid var(--line);background:var(--bg);border-radius:8px;flex:1;min-width:0;height:34px;padding:0 8px}.share-pop p{color:var(--muted);margin:0;font-size:12px}.canvas{touch-action:none;flex:1;min-height:0}.react-flow{background:var(--bg)}.react-flow__node{cursor:default;visibility:visible!important}.react-flow__node.draggable{cursor:grab}.react-flow__handle{border:2px solid var(--accent);opacity:0;background:#fff;width:10px;height:10px;transition:opacity .12s}.react-flow__node:hover .react-flow__handle,.react-flow__node.selected .react-flow__handle,.react-flow__handle.connectingfrom,.react-flow__handle.connectingto{opacity:1}.react-flow__edge-path{transition:stroke-width .1s}.card{border:1px solid var(--line);-webkit-user-select:none;user-select:none;background:#fff;border-radius:10px;flex-direction:column;gap:4px;width:260px;padding:12px 14px;display:flex;box-shadow:0 1px 2px #1c20300d}.card.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent), 0 6px 18px #1c20301f}.card.editing{-webkit-user-select:text;user-select:text;box-shadow:0 0 0 2px var(--accent), 0 10px 28px #1c20302e;border-color:var(--accent)}.card.k-event{position:relative}.react-flow__node-spine{pointer-events:none!important}.spine{background:#a9b0c6;border-radius:2px;position:relative}.spine.v:after{content:"";border:7px solid #0000;border-top:11px solid #a9b0c6;border-bottom:0;position:absolute;bottom:-10px;left:-5px}.spine.h:after{content:"";border:7px solid #0000;border-left:11px solid #a9b0c6;border-right:0;position:absolute;top:-5px;right:-10px}.century{color:var(--ink2);white-space:nowrap;background:#fff;border:1px solid #a9b0c6;border-radius:999px;padding:0 7px;font-size:10px;font-weight:700;line-height:16px;position:absolute;transform:translate(-50%,-50%)}.spine.v .century{left:50%}.spine.h .century{top:50%}.rib{background:var(--accent);position:absolute}.rib:before{content:"";border:2px solid var(--accent);box-sizing:border-box;background:#fff;border-radius:50%;width:10px;height:10px;position:absolute}.yr{color:var(--accent);background:var(--bg);white-space:nowrap;border-radius:4px;padding:0 5px;font-size:13px;font-weight:700;line-height:20px;position:absolute}.o-v.side-a .rib{top:21px;left:calc(-1px - var(--rib,90px));width:var(--rib,90px);height:2px}.o-v.side-a .rib:before{top:-4px;left:-6px}.o-v.side-a .yr{top:12px;right:calc(100% + var(--rib,90px) + 12px)}.o-v.side-b .rib{top:21px;right:calc(-1px - var(--rib,90px));width:var(--rib,90px);height:2px}.o-v.side-b .rib:before{top:-4px;right:-6px}.o-v.side-b .yr{top:12px;left:calc(100% + var(--rib,90px) + 12px)}.o-h.side-a .rib{left:21px;top:calc(-1px - var(--rib,90px));width:2px;height:var(--rib,90px)}.o-h.side-a .rib:before{top:-6px;left:-4px}.o-h.side-a .yr{left:22px;bottom:calc(100% + var(--rib,90px) + 12px);transform:translate(-50%)}.o-h.side-b .rib{left:21px;bottom:calc(-1px - var(--rib,90px));width:2px;height:var(--rib,90px)}.o-h.side-b .rib:before{bottom:-6px;left:-4px}.o-h.side-b .yr{left:22px;top:calc(100% + var(--rib,90px) + 12px);transform:translate(-50%)}.card .date{color:var(--accent);font-size:12px;font-weight:700}.card .title{font-family:var(--serif);overflow-wrap:anywhere;font-size:17px;font-weight:700;line-height:1.35}.card .src{color:var(--muted);margin-top:4px;font-size:11px}.card .ph{color:#7a8092;font-weight:400}.card input{border:0;border-bottom:1px dashed var(--line);background:0 0;outline:none;width:100%;padding:2px 0}.card input:focus{border-bottom-color:var(--accent)}.card.k-era{background:var(--ink);border-color:var(--ink);color:#fff;border-radius:999px;align-items:center;padding:8px 18px}.card.k-era .era{letter-spacing:.03em;text-align:center;font-size:13px;font-weight:700}.card.k-era .date{color:#c7cdea;margin-right:8px}.card.k-era.editing{border-radius:14px}.card.k-era input{color:#fff;text-align:center;border-bottom-color:#5a6072}.card.k-era input::placeholder{color:#a3a9bd}.body{color:var(--ink2);overflow-wrap:anywhere;font-size:13px;line-height:1.65}.body>:first-child,.body .tiptap>:first-child{margin-top:0}.body>:last-child,.body .tiptap>:last-child{margin-bottom:0}.body p{margin:0 0 4px}.body h1,.body h2,.body h3{color:var(--ink);margin:4px 0;font-size:14px;line-height:1.4}.body ul,.body ol{margin:2px 0;padding-left:20px}.body blockquote{border-left:2px solid #a9b0c6;margin:4px 0;padding-left:10px}.body code{background:#eef0f5;border-radius:3px;padding:0 3px;font-size:12px}.body strong{color:var(--ink)}.body .tiptap{cursor:text;outline:none;min-height:22px}.body .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:#7a8092;float:left;pointer-events:none;height:0}.c-yellow{background:#fff6cf;border-color:#e8d482}.c-blue{background:#e4eeff;border-color:#a9c3ee}.c-green{background:#e0f4e6;border-color:#a3d3b2}.c-pink{background:#ffe6ec;border-color:#eeb0c0}.c-purple{background:#efe7fa;border-color:#c7b1e6}.c-gray{background:#eceef2;border-color:#c3c8d4}.c-none{background:#fff}.card-tools{background:var(--ink);border-radius:9px;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:0 6px 18px #1c203040}.card-tools>button{color:#fff;white-space:nowrap;background:0 0;border:0;border-radius:6px;height:28px;padding:0 8px;font-size:12px}.card-tools>button:hover{background:#3a4052}.card-tools kbd{color:#b9bfd0;margin-left:2px;font-family:inherit;font-size:11px}.swatches{gap:3px;padding:0 6px;display:flex}.sw{border:1px solid #8a90a2;border-radius:50%;width:16px;height:16px;padding:0}.sw.on{outline-offset:1px;outline:2px solid #fff}.edge-panel{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:4px;padding:5px;display:flex;box-shadow:0 6px 18px #1c203024}.edge-panel input{border:1px solid var(--line);border-radius:6px;width:190px;height:30px;padding:0 8px}.edge-panel button{white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:6px;height:30px;padding:0 8px;font-size:12px;display:flex}.edge-panel button:hover{background:var(--bg)}.edge-panel button.on{border-color:var(--c);color:var(--c);font-weight:700}.edge-panel button i{border-top-color:var(--c);width:18px;height:0}.hint{pointer-events:none;border:1px solid var(--line);color:var(--ink2);white-space:nowrap;background:#ffffffeb;border-radius:8px;gap:14px;padding:6px 12px;font-size:12px;display:flex}.empty-hint{color:var(--ink2);background:#fff;border:1px dashed #a9b0c6;border-radius:10px;margin-top:90px;padding:12px 16px}.doc{background:#fff;flex:1;padding:40px 24px 80px;overflow-y:auto}.doc article{flex-direction:column;gap:22px;max-width:720px;margin:0 auto;display:flex}.doc h1{font-family:var(--serif);margin:0;font-size:30px}.doc-era{align-items:center;gap:12px;margin-top:8px;display:flex}.doc-era span{background:var(--ink);color:#fff;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700}.doc-era:after{content:"";background:var(--line);flex:1;height:1px}.doc section{gap:16px;display:flex}.doc-date{text-align:right;width:92px;color:var(--accent);flex:none;padding-top:3px;font-weight:700}.doc-main{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.doc h2{margin:0}.doc h2 button{font-family:var(--serif);text-align:left;background:0 0;border:0;padding:0;font-size:19px;font-weight:700}.doc h2 button:hover{color:var(--accent)}.doc .body{font-size:14px;line-height:1.75}.doc .src{color:var(--muted);font-size:12px}.branch{border-left:2px solid var(--line);flex-direction:column;gap:6px;padding-left:14px;display:flex}.branch-row{align-items:baseline;gap:8px;display:flex}.chip{background:#fff;border:1px solid;border-radius:4px;flex:none;padding:1px 8px;font-size:11px;font-weight:700}.branch-body{text-align:left;border:1px solid #0000;border-radius:6px;flex-direction:column;flex:1;gap:2px;min-width:0;padding:4px 8px;display:flex}.branch-body:not([class*=c-]){background:0 0}.branch-body:hover{border-color:var(--line)}.seg.insert button{border-right:1px solid var(--line);padding:0 9px}.seg.insert button:last-child{border-right:0}.seg.insert button:hover{background:var(--bg)}.card.s-text:not([class*=\ c-]){box-shadow:none;background:0 0;border-color:#0000}.card.s-text{padding:6px 8px}.card.s-text .body{color:var(--ink);font-size:16px}.card.s-text.sel,.card.s-text.editing{border-color:var(--accent)}.card.s-sticky{text-align:center;border-color:#0000;border-radius:3px;justify-content:center;min-height:150px;box-shadow:0 5px 12px #1c20302e}.card.s-sticky .body{color:var(--ink);font-size:15px}.card.s-sticky.sel{border-color:var(--accent)}.card .pic{pointer-events:none;border-radius:6px;width:100%;display:block}.card.has-img.k-note{padding:8px}.body table{border-collapse:collapse;table-layout:fixed;width:100%;margin:4px 0}.body th,.body td{vertical-align:top;border:1px solid #b9bfd0;min-width:30px;padding:4px 6px}.body th{color:var(--ink);text-align:left;background:#eef0f5;font-weight:700}.body td>p,.body th>p{margin:0}.body .selectedCell{background:#e1e5f5}.body a{color:var(--accent);cursor:pointer;text-decoration:underline}.fmt{border-top:1px solid var(--line);flex-wrap:wrap;gap:2px;margin-top:6px;padding-top:6px;display:flex}.fmt button{height:24px;color:var(--ink2);background:0 0;border:0;border-radius:4px;padding:0 6px;font-size:11px}.fmt button:hover{color:var(--accent);background:#e9ecf7}.links{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}.lk{background:#f1f3fb;border:1px solid #c3c9e6;border-radius:999px;max-width:100%;display:inline-flex;overflow:hidden}.lk button{color:var(--accent);text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;padding:2px 9px;font-size:11px;font-weight:500;overflow:hidden}.lk button:hover{background:#e1e5f5}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{border:0;width:9px}.doc img{border-radius:8px;max-width:100%}.branch-body img{max-width:320px}.modal{z-index:200;background:#1c203059;place-items:start center;padding-top:12vh;display:grid;position:fixed;inset:0}.lp{background:#fff;border-radius:12px;flex-direction:column;gap:10px;width:min(480px,92vw);padding:16px;display:flex;box-shadow:0 20px 60px #1c20304d}.lp-head{align-items:baseline;gap:10px;display:flex}.lp-head span{color:var(--muted);flex:1;font-size:12px}.lp-head button{color:var(--muted);background:0 0;border:0;font-size:18px}.lp .seg{align-self:flex-start}.lp input[type=search],.lp input[type=text]{border:1px solid var(--line);border-radius:8px;flex:1;min-width:0;height:36px;padding:0 10px}.lp-list{flex-direction:column;max-height:44vh;display:flex;overflow-y:auto}.lp-list button{text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:8px;display:flex}.lp-list button:hover{background:var(--bg)}.lp-list .ph{padding:8px}.lp-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.lp .err{color:#b3261e;margin:0;font-size:12px}.dot{background:#c3c8d4;border-radius:50%;flex:none;width:8px;height:8px}.dot.k-event,.dot.k-era{background:var(--accent)}.toast{z-index:300;background:var(--ink);color:#fff;border-radius:8px;padding:8px 14px;font-size:13px;position:fixed;bottom:70px;left:50%;transform:translate(-50%)}.fmt-group{border-left:1px solid var(--line);border-right:1px solid var(--line);align-items:center;gap:2px;padding:0 3px;display:inline-flex}.fmt .dotbtn{border:1px solid #0003;border-radius:50%;width:14px;height:14px;padding:0}.fmt .dotbtn:hover{transform:scale(1.25)}.fmt mark,.body mark{border-radius:2px;padding:0 2px}.body mark{color:inherit;background:#fff2a8}.canvas{position:relative}.pen-layer{z-index:20;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;position:absolute;inset:0}.pen-layer.erasing{cursor:cell}.pen-layer>svg{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.pen-bar{background:var(--ink);cursor:default;border-radius:12px;align-items:center;gap:6px;padding:6px 10px;display:flex;position:absolute;top:12px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #1c20304d}.pen-bar button{color:#fff;white-space:nowrap;background:0 0;border:0;border-radius:8px;min-width:34px;height:34px;padding:0 10px;font-size:13px}.pen-bar button:hover{background:#3a4052}.pen-bar button.on{background:#4a5170}.pen-bar .pen-color{border:2px solid #5a6072;border-radius:50%;width:26px;min-width:26px;height:26px;padding:0}.pen-bar .pen-color.on{outline-offset:1px;border-color:#fff;outline:2px solid #fff}.pen-bar .pen-width{place-items:center;padding:0 8px;display:grid}.pen-bar .pen-width i{background:#fff;border-radius:4px;width:18px;display:block}.pen-bar .sep{background:#5a6072;width:1px;height:22px}.pen-bar .done{color:var(--ink);background:#fff;font-weight:700}.pen-bar .done:hover{background:#e9ecf7}.card.s-ink{box-shadow:none;background:0 0;border:1px dashed #0000;padding:0}.card.s-ink.sel{border-color:var(--accent);box-shadow:none}.card.s-ink svg{display:block;overflow:visible}.lane-col{box-sizing:border-box;background:#fff;border:1px solid #b9bfd0;position:absolute}.lane-name{background:var(--ink);color:#fff;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;text-align:center;font-size:11px;font-weight:700;position:absolute;overflow:hidden}.spine.v .lane-name{border-radius:6px 6px 0 0;padding:4px 6px;bottom:100%;left:-1px;right:-1px}.spine.h .lane-name{border-radius:6px 0 0 6px;align-items:center;padding:0 10px;display:flex;top:-1px;bottom:-1px;right:100%}.span-bar{pointer-events:auto;box-sizing:border-box;color:var(--ink);cursor:pointer;white-space:nowrap;border:1px solid #8a90a2;border-radius:0;align-items:center;gap:4px;margin:0;padding:3px 6px;font-size:11px;line-height:1.3;display:flex;position:absolute;overflow:hidden}.span-bar:hover{filter:brightness(.95);z-index:1;outline:2px solid var(--accent)}.span-bar small{color:var(--ink2);font-size:10px}.spine.v .span-bar{white-space:normal;text-align:left;word-break:keep-all;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:0}.span-bar b{text-overflow:ellipsis;max-width:100%;overflow:hidden}.span-form label{color:var(--ink2);flex-direction:column;flex:1;gap:4px;font-size:12px;display:flex}.span-form .lp-row{gap:10px}.doc-spans{color:var(--ink2);background:var(--bg);border-radius:8px;padding:10px 14px;font-size:13px}.doc-spans p{margin:2px 0;line-height:1.7}@media (width<=760px){.side,.hint{display:none}}
