.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.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 .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation: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:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.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-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.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:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.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{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.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{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.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:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}:root{--primary-color: #2266e3;--primary-hover: #1a56c0;--bg-color: #f0f2f6;--card-bg: #ffffff;--text-primary: #1e293b;--text-secondary: #5b6e8c;--border-color: #e2edf2;--divider-color: #e4e7ec;--radius-lg: 8px;--radius-md: 6px;--radius-sm: 4px;--shadow-sm: 0 8px 20px rgba(0,0,0,.03), 0 2px 6px rgba(0,0,0,.05);--shadow-md: 0 20px 35px -10px rgba(0,0,0,.15);--font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-size-base: 12px;--field-label-width: 96px;--nav-bg: #111827;--nav-text: #ffffff;--nav-item-hover: rgba(255, 255, 255, .1);--nav-item-active: #2563eb;--sidebar-width: 250px;--chat-width: 400px;--header-height: 58px;--tabs-height: 39px}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{background-color:var(--bg-color);font-family:var(--font-family);color:var(--text-primary);font-size:var(--font-size-base);line-height:1.5;overflow:hidden}.card{background:var(--card-bg);border-radius:0;box-shadow:none;padding:24px;border:1px solid var(--divider-color);margin-bottom:20px}.card-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-title h2,.card-title h3{font-weight:700;font-size:var(--font-size-base)}.btn{padding:6px 18px;border-radius:4px;font-weight:500;cursor:pointer;transition:.2s;font-size:var(--font-size-base);border:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.4;white-space:nowrap}.btn-primary{background-color:var(--primary-color);color:#fff}.btn-primary:hover{background-color:var(--primary-hover)}.btn-secondary{background-color:#fff;border:1px solid #cbd5e1;color:var(--text-primary)}.btn-secondary:hover{background-color:#f8fafc}.btn-danger{background-color:#ef4444;color:#fff}.btn-danger:hover{background-color:#dc2626}.btn-sm{padding:3px 12px;font-size:var(--font-size-base)}.btn:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{padding:6px 10px;border-radius:var(--radius-sm);border:1px solid var(--border-color);font-size:var(--font-size-base);font-family:var(--font-family);transition:all .2s;outline:none;width:100%;background:#fff;color:var(--text-primary)}input:focus,select:focus,textarea:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #2563eb1a}input:disabled,select:disabled,textarea:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}input[type=checkbox],input[type=radio]{width:auto;height:auto;padding:0;flex:0 0 auto;margin:0;accent-color:var(--primary-color, #2563eb)}.form-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 28px}.form-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 24px}.form-item{display:flex;align-items:center;gap:8px;min-width:0}.form-item .field-label{flex-shrink:0;white-space:nowrap;color:var(--text-secondary);font-size:var(--font-size-base);text-align:right;width:var(--field-label-width)}.form-item .field-label.required:before{content:"* ";color:#ef4444}.form-item .field-control{flex:1;min-width:0}.form-item.span-2{grid-column:span 2}.form-item.span-3{grid-column:span 3}.table-container{background:#fff;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--divider-color)}table{width:100%;border-collapse:collapse;font-size:var(--font-size-base)}th{text-align:left;padding:8px 12px;font-weight:600;background-color:#f9fafb;border-bottom:1px solid var(--divider-color);color:var(--text-secondary);white-space:nowrap}td{padding:8px 12px;border-bottom:1px solid #f0f2f5;font-size:var(--font-size-base)}tbody tr:hover{background-color:#fafcff}.table-input{width:100%;padding:4px 6px;border:1px solid transparent;background:transparent;border-radius:4px;font-size:var(--font-size-base);font-family:var(--font-family);transition:all .15s}.table-input:hover{border-color:var(--border-color);background:#fff}.table-input:focus{border-color:var(--primary-color);background:#fff;outline:none}.pagination{display:flex;align-items:center;gap:6px;font-size:var(--font-size-base)}.pagination .page-btn{padding:4px 10px;font-size:var(--font-size-base);min-width:28px;text-align:center}.pagination .page-info{color:var(--text-secondary);margin-right:8px}.badge{padding:2px 8px;border-radius:12px;font-weight:500;white-space:nowrap}.badge-success{background:#dcfce7;color:#166534}.badge-warning{background:#fef9c3;color:#854d0e}.badge-danger{background:#fee2e2;color:#991b1b}.badge-info{background:#dbeafe;color:#1e40af}.badge-neutral{background:#f1f5f9;color:#475569}.tag-test{display:inline-block;margin-left:6px;padding:0 5px;border:1px dashed #c2410c;border-radius:4px;font-size:11px;line-height:16px;color:#c2410c;background:#fff7ed;vertical-align:middle;white-space:nowrap}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}::-webkit-scrollbar-track{background:transparent}.app-header{height:var(--header-height);background:var(--nav-bg);color:var(--nav-text);display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex-shrink:0}.app-header .header-left{display:flex;align-items:center;gap:12px}.app-header .header-title{font-weight:700;font-size:14px}.app-header .header-right{display:flex;align-items:center;gap:16px}.app-header .header-icon{background:transparent;border:none;color:var(--nav-text);cursor:pointer;display:flex;align-items:center;padding:6px;border-radius:6px}.app-header .header-icon:hover{background:var(--nav-item-hover)}.app-header .user-name{display:flex;align-items:center;gap:6px;font-size:var(--font-size-base)}.app-header .divider{width:1px;height:20px;background:#fff3}.app-body{display:flex;height:calc(100% - var(--header-height))}.app-sidebar{width:var(--sidebar-width);background:#fff;border-right:1px solid var(--divider-color);overflow-y:auto;flex-shrink:0;transition:width .2s}.app-sidebar.collapsed{width:0;border-right:none;overflow:hidden}.app-main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg-color)}.app-chat{width:var(--chat-width);background:#fff;border-left:1px solid var(--divider-color);flex-shrink:0;display:flex;flex-direction:column;transition:width .2s}.app-chat.collapsed{width:0;border-left:none;overflow:hidden}.menu-group{padding:6px 0}.menu-group-title{display:flex;align-items:center;gap:8px;padding:8px 16px;font-weight:700;cursor:pointer;color:var(--text-primary);-webkit-user-select:none;user-select:none}.menu-group-title .chevron{margin-left:auto}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 16px 8px 36px;cursor:pointer;color:var(--text-secondary);font-size:var(--font-size-base);border-right:3px solid transparent;-webkit-user-select:none;user-select:none}.menu-item:hover{background:#f8fafc}.menu-item.active{color:var(--primary-color);background:#eff6ff;border-right-color:var(--primary-color)}.tabs-bar{height:var(--tabs-height);background:#fff;border-bottom:1px solid var(--divider-color);display:flex;align-items:center;padding:0 12px;gap:6px;overflow-x:auto;flex-shrink:0}.tab{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:10px;font-size:var(--font-size-base);cursor:pointer;color:var(--text-secondary);border:1px solid transparent;white-space:nowrap;-webkit-user-select:none;user-select:none}.tab.active{background:#eff6ff;color:var(--primary-color);border-color:#dbeafe}.tab .tab-close{display:inline-flex;border-radius:4px}.tab .tab-close:hover{background:#dbeafe}.app-content{flex:1;overflow-y:auto;padding:15px}.chat-header{display:flex;align-items:center;gap:8px;padding:14px 16px;border-bottom:1px solid var(--divider-color)}.chat-logo{width:28px;height:28px;background:var(--primary-color);border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:center}.chat-title{font-weight:700}.chat-body{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);padding:20px;text-align:center}.login-wrap{height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-color);position:relative}.login-brand{position:absolute;top:28px;left:32px;width:210px;height:auto;-webkit-user-select:none;user-select:none;pointer-events:none}.login-card{width:400px;background:#fff;border:1px solid var(--divider-color);padding:40px;display:flex;flex-direction:column;gap:22px}.login-logo{width:64px;height:64px;background:var(--primary-color);border-radius:16px;margin:0 auto;display:flex;align-items:center;justify-content:center;color:#fff}.login-title{font-weight:800;color:var(--nav-bg);text-align:center;font-size:18px}.login-subtitle{color:var(--text-secondary);text-align:center;margin-top:4px}.input-with-icon{position:relative}.input-with-icon svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8}.input-with-icon input{padding-left:36px;height:40px}.login-hint{color:#94a3b8;text-align:center;font-size:9pt}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a66;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:8px;width:520px;max-width:92vw;max-height:88vh;display:flex;flex-direction:column;box-shadow:var(--shadow-md)}.modal-header{padding:16px 20px;border-bottom:1px solid var(--divider-color);display:flex;justify-content:space-between;align-items:center}.modal-header h3{font-weight:700;font-size:var(--font-size-base)}.modal-body{padding:20px;overflow-y:auto}.modal-footer{padding:14px 20px;border-top:1px solid var(--divider-color);display:flex;justify-content:flex-end;gap:12px}.designer-wrap{display:flex;height:100%}.designer-palette{width:150px;border-right:1px solid var(--divider-color);background:#fff;padding:12px;overflow-y:auto;flex-shrink:0}.designer-palette .palette-title{font-weight:700;margin-bottom:10px}.palette-item{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--divider-color);border-radius:6px;margin-bottom:8px;cursor:pointer;font-size:var(--font-size-base)}.palette-item:hover{border-color:var(--primary-color);color:var(--primary-color)}.designer-canvas{flex:1;min-width:0}.designer-props{width:260px;border-left:1px solid var(--divider-color);background:#fff;padding:16px;overflow-y:auto;flex-shrink:0}.designer-props h4{font-weight:700;margin-bottom:12px}.prop-row{margin-bottom:12px}.prop-row label{display:block;color:var(--text-secondary);margin-bottom:4px}.diamond-node{position:relative;width:120px;height:120px;display:flex;align-items:center;justify-content:center}.diamond-shape{width:70px;height:70px;transform:rotate(45deg);border:2px solid #f43f5e;background:#fff;display:flex;align-items:center;justify-content:center}.diamond-label{transform:rotate(-45deg);font-size:9pt;text-align:center;line-height:1.3;padding:2px;max-width:64px;word-break:break-all}.toast{position:fixed;top:24px;left:50%;transform:translate(-50%) translateY(-20px);padding:10px 20px;border-radius:8px;color:#fff;font-size:var(--font-size-base);z-index:2000;opacity:0;transition:all .3s;box-shadow:var(--shadow-md)}.toast.show{opacity:1;transform:translate(-50%) translateY(0)}.toast-success{background:#16a34a}.toast-error{background:#dc2626}.page-full{height:calc(100vh - var(--header-height) - var(--tabs-height) - 30px)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar-right{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.text-secondary{color:var(--text-secondary)}.mt-16{margin-top:16px}.mb-16{margin-bottom:16px}.flex-between{display:flex;justify-content:space-between;align-items:center}.foundation-shell{height:100%;display:flex;flex-direction:column;overflow:hidden}.app-header{padding:0 14px;background:#111827}.app-header .header-left,.app-header .header-right{display:flex;align-items:center;gap:10px}.brand-copy{display:grid;line-height:1.15}.brand-copy strong{font-size:13px;color:#fff}.brand-copy small{margin-top:3px;color:#94a3b8;font-size:12px}.app-header .environment{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:3px 8px;color:#dbe3ef;font-size:12px}.app-header .environment i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #22c55e26}.app-header .logout-button{height:30px;display:inline-flex;align-items:center;gap:5px;border:0;border-radius:4px;padding:0 8px;background:transparent;color:#e5e7eb;cursor:pointer;font-size:var(--font-size-base)}.app-header .logout-button:hover{background:#ffffff1a;color:#fff}.app-body{min-height:0;flex:1;height:auto}.app-sidebar{position:relative;display:flex;flex-direction:column;width:250px;min-width:0;background:#fff}.app-sidebar nav{flex:1;min-height:0;overflow-y:auto;padding:4px 0}.sidebar-caption{padding:11px 15px 7px;color:#94a3b8;font-size:12px;font-weight:600}.menu-group{padding:2px 0}.menu-group-title,.menu-item{width:100%;border:0;background:transparent;font-family:inherit;text-align:left}.menu-group-title{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 13px;color:#27364a;font-size:var(--font-size-base);font-weight:700;cursor:pointer}.menu-group-title svg:last-child{margin-left:auto;color:#94a3b8}.menu-group-title:hover{background:#f8fafc}.menu-children{position:relative;padding:1px 0 3px}.menu-children:before{content:"";position:absolute;top:0;bottom:4px;left:21px;width:1px;background:#e7ebf0}.menu-item{position:relative;display:flex;align-items:center;gap:8px;min-height:32px;border-right:3px solid transparent;padding:6px 13px 6px 36px;color:#64748b;font-size:var(--font-size-base);cursor:pointer}.menu-item:hover{background:#f8fafc;color:#334155}.menu-item.active{border-right-color:#2266e3;background:#eff6ff;color:#1d4ed8;font-weight:600}.sidebar-footer{display:flex;align-items:center;gap:9px;border-top:1px solid #e7ebf0;padding:10px 13px;background:#fafbfc}.sidebar-footer>span{width:28px;height:28px;display:grid;place-items:center;border-radius:4px;background:#e8f0fe;color:#2266e3}.sidebar-footer div{display:grid;min-width:0}.sidebar-footer strong{font-size:12px}.sidebar-footer small{color:#94a3b8;font-size:12px}.resize-handle{width:5px;flex:0 0 5px;border-left:1px solid #e4e7ec;border-right:1px solid transparent;background:#f8fafc;cursor:col-resize;z-index:5}.resize-handle:hover,.resize-handle:active{border-color:#93c5fd;background:#dbeafe}.app-main{min-width:360px}.tabs-bar{height:var(--tabs-height);justify-content:space-between;padding:0 8px 0 10px;gap:8px}.tabs-bar .tabs{min-width:0;display:flex;align-items:end;align-self:stretch;gap:2px;overflow-x:auto}.tab{align-self:stretch;height:100%;border:0;border-right:1px solid #edf0f4;border-radius:0;padding:0 10px;background:#fff;color:#64748b}.tab:hover{background:#f8fafc}.tab.active{border:0;border-right:1px solid #edf0f4;border-bottom:2px solid #2266e3;background:#fff;color:#1d4ed8}.tab svg:last-child{margin-left:4px;color:#94a3b8}.tab-menu,.header-tool{width:29px;height:29px;flex:none;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;color:#64748b;cursor:pointer}.tab-menu:hover,.header-tool:hover{background:#f1f5f9;color:#1e293b}.breadcrumb{height:30px;display:flex;align-items:center;gap:5px;flex:none;border-bottom:1px solid #e7ebf0;padding:0 15px;background:#f8fafc;color:#94a3b8;font-size:12px}.breadcrumb strong{color:#475569}.page-date{margin-left:auto;display:flex;align-items:center;gap:5px}.app-content{padding:15px}.chat-column{min-width:0;flex:0 0 auto}.app-chat.ai-chat{width:100%;height:100%;border:0}.ai-chat .chat-header{height:50px;justify-content:space-between;padding:0 13px}.ai-title{display:flex;align-items:center;gap:8px}.ai-title .chat-logo{width:28px;height:28px;flex:none}.ai-title>div{display:grid}.ai-title strong{font-size:12px}.ai-title small{color:#94a3b8;font-size:12px}.ai-context{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e7ebf0;padding:8px 13px;background:#f8fafc;color:#64748b;font-size:12px}.ai-context b{margin-left:auto;border-radius:10px;padding:2px 7px;background:#dcfce7;color:#166534;font-size:12px}.message-list{flex:1;min-height:0;overflow-y:auto;padding:14px 12px}.message{display:flex;align-items:flex-start;gap:7px;margin-bottom:13px}.message.user{flex-direction:row-reverse}.message-avatar{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e8f0fe;color:#2266e3}.message.user .message-avatar{background:#e2e8f0;color:#475569}.message p{max-width:calc(100% - 38px);border:1px solid #e4e7ec;border-radius:5px;padding:8px 9px;background:#fff;color:#334155;font-size:12px;line-height:1.55}.message.user p{border-color:#dbeafe;background:#eff6ff}.quick-prompts{display:flex;gap:6px;padding:0 12px 9px}.quick-prompts button{border:1px solid #dbe2ea;border-radius:12px;padding:3px 8px;background:#fff;color:#64748b;cursor:pointer;font-size:12px}.quick-prompts button:hover{border-color:#93b4ee;color:#1d4ed8}.chat-composer{border-top:1px solid #e7ebf0;padding:10px 12px}.chat-composer>div{position:relative}.chat-composer textarea{min-height:70px;resize:none;padding:8px 38px 8px 9px;border-radius:5px}.chat-composer button{position:absolute;right:7px;bottom:7px;width:27px;height:27px;display:grid;place-items:center;border:0;border-radius:4px;background:#2266e3;color:#fff;cursor:pointer}.chat-composer small{display:block;margin-top:5px;color:#94a3b8;font-size:12px}.floating-ai{position:fixed;right:18px;bottom:18px;display:flex;align-items:center;gap:5px;border:0;border-radius:18px;padding:8px 11px;background:#2266e3;color:#fff;box-shadow:0 8px 20px #2266e340;cursor:pointer}.card{padding:15px;margin-bottom:12px}.card-title{margin-bottom:12px}.table-container{border-radius:4px}.login-card{border-radius:6px;padding:34px;box-shadow:0 16px 40px #0f172a14}.screen-stack{min-width:0;display:grid;gap:14px}.screen-stack .card{margin-bottom:0}.compact-card{padding:16px}.section-header{min-height:38px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.section-header h2{font-size:13px;font-weight:700}.section-header p{margin-top:3px;color:var(--text-secondary);font-size:12px}.action-row{display:flex;align-items:center;gap:8px}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric-card{min-width:0;min-height:94px;display:flex;align-items:center;gap:12px;border:1px solid var(--divider-color);padding:14px;background:#fff}.metric-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:6px;background:#eff6ff;color:var(--primary-color)}.metric-card:nth-child(2) .metric-icon{background:#fff7ed;color:#c2410c}.metric-card:nth-child(3) .metric-icon{background:#ecfdf5;color:#0f766e}.metric-card:nth-child(4) .metric-icon{background:#fef2f2;color:#b91c1c}.metric-card>div:last-child{min-width:0;display:grid}.metric-card span{color:#64748b;font-size:12px}.metric-card strong{margin-top:2px;color:#17202a;font-size:19px;line-height:1.25}.metric-card small{margin-top:3px;overflow:hidden;color:#0f766e;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);gap:14px}.bar-chart{height:210px;display:flex;align-items:flex-end;justify-content:space-around;border-bottom:1px solid #dce2e9;padding:18px 12px 0}.bar-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;color:#94a3b8;font-size:12px}.bar{width:26px;min-height:8px;border-radius:3px 3px 0 0;background:#2266e3}.bar-column:nth-child(2n) .bar{background:#0f766e}.bar-value{color:#64748b;font-size:12px}.todo-list{display:grid}.todo-item{min-height:44px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #eef1f4}.todo-item:last-child{border-bottom:0}.todo-item strong{overflow:hidden;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.todo-item small{color:#94a3b8;font-size:12px}.priority{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:12px}.priority-高{background:#fee2e2;color:#991b1b}.priority-中{background:#fef9c3;color:#854d0e}.priority-低{background:#f1f5f9;color:#475569}.strong-cell{color:#1e293b;font-weight:600}.mono-cell{color:#334155;font-family:Consolas,monospace;font-size:12px}.amount-cell{color:#0f766e;font-weight:600}.align-right{text-align:right}.text-action{border:0;background:transparent;color:var(--primary-color);font-weight:600;cursor:pointer}.master-form{margin-bottom:22px}.popup-control{display:flex;gap:5px}.icon-button{width:30px;height:30px;min-width:30px;display:inline-grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer}.detail-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--divider-color);padding:14px 0 10px}.detail-heading h3{display:inline;margin-right:9px;font-size:12px}.detail-heading span{color:#94a3b8;font-size:12px}.number-col{width:50px}.number-input-col{width:80px}.money-input-col{width:120px}.action-col{width:56px;text-align:center}.delete-row{color:#ef4444}.order-summary{display:flex;justify-content:flex-end;gap:26px;padding:13px 4px 0;color:#64748b}.order-summary strong{margin-left:4px;color:#0f766e;font-size:13px}.card[style*="padding: 0"]>div:first-child{border-bottom:0!important}.card[style*="padding: 0"]>.table-container{width:calc(100% - 32px);margin:12px 16px 0}.keyword-filter{position:relative;width:min(420px,calc(100% - 32px));height:34px;display:flex;align-items:center;margin:0 16px;color:#94a3b8}.keyword-filter>svg{position:absolute;left:10px;pointer-events:none}.keyword-filter input{height:34px;padding:0 34px;border-radius:4px}.keyword-filter button{position:absolute;right:5px;width:25px;height:25px;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;color:#94a3b8;cursor:pointer}.keyword-filter button:hover{background:#f1f5f9;color:#475569}.todo-stat{cursor:pointer;text-align:left;font-family:inherit;transition:border-color .15s,background-color .15s}.todo-stat:hover{border-color:var(--primary-color);background:#fafcff}.todo-stat.active{border-color:var(--primary-color);box-shadow:inset 0 0 0 1px var(--primary-color);background:#f5f9ff}.todo-stat .metric-icon{background:#eff6ff;color:var(--primary-color)}.todo-stat span.metric-icon{color:var(--primary-color)}.todo-stat span.metric-icon svg{color:inherit}.todo-stat strong{font-variant-numeric:tabular-nums}.todo-stat strong.stat-red{color:#b91c1c}.todo-stat strong.stat-amber{color:#b45309}.toolbar select,.toolbar .todo-search{height:34px;padding:4px 10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:#fff;color:var(--text-primary);font-family:var(--font-family);font-size:var(--font-size-base)}.toolbar select:focus,.toolbar .todo-search:focus{border-color:var(--primary-color);outline:none}.toolbar .todo-search{width:min(280px,100%)}.col-project{width:180px;max-width:180px}.col-owner{width:104px;max-width:104px}.col-due{width:160px;max-width:160px}.col-status{width:88px}.col-ops{width:208px}.nowrap-cell{white-space:nowrap}.truncate-cell{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-cell{padding:28px 12px;color:#94a3b8;text-align:center}.todo-tags{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:3px}.due-note{margin-top:2px;color:#94a3b8}.row-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:10px}.table-footer{display:flex;justify-content:flex-end;padding:12px 16px}.history-head{margin-bottom:12px;border:1px solid var(--divider-color);border-radius:var(--radius-sm);background:#f8fafc;padding:8px 12px;color:var(--text-secondary)}.history-title{margin:16px 0 8px;font-weight:600}.history-box{max-height:240px;overflow-y:auto;border:1px solid var(--divider-color);border-radius:var(--radius-sm);padding:4px 10px}.history-row{border-bottom:1px solid #f0f2f5;padding:8px 0}.history-row:last-child{border-bottom:0}.history-row .empty-cell{border-bottom:0}.history-meta{display:flex;align-items:center;gap:8px;margin-bottom:3px;color:var(--text-secondary)}.history-content{color:var(--text-primary);line-height:1.6}.todo-textarea{width:100%;padding:8px 10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);font-family:var(--font-family);font-size:var(--font-size-base);resize:vertical}.todo-textarea:focus{border-color:var(--primary-color);outline:none}@media (max-width: 1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.form-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.form-item.span-3{grid-column:span 2}.col-project{width:140px;max-width:140px}.col-ops{width:168px}}.myprojects-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.myprojects-toolbar .myprojects-search{flex:0 1 260px;width:260px;min-width:180px}.myprojects-toolbar select{flex:0 0 auto;width:auto;min-width:132px}.myprojects-table{width:100%;min-width:920px}.myprojects-table-wrap{overflow-x:auto;overflow-y:hidden}.myprojects-table .mp-col-name{min-width:176px}.myprojects-table .mp-col-customer{width:104px;max-width:104px}.myprojects-table .mp-col-line{width:84px;max-width:84px}.myprojects-table .mp-col-stage{width:80px;max-width:80px}.myprojects-table .mp-col-role{width:72px;max-width:72px}.myprojects-table .mp-col-owner{width:116px;max-width:116px}.myprojects-table .mp-col-activity{width:96px;max-width:96px}.myprojects-table .mp-col-status{width:76px;max-width:76px}.myprojects-table .mp-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#1e293b}.myprojects-table td.mp-cell-name{overflow:hidden}@media (max-width: 1100px){.myprojects-table .mp-col-customer{width:110px;max-width:110px}.myprojects-table .mp-col-owner{width:120px;max-width:120px}}.dashboard-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dashboard-span-2{grid-column:span 2}.dashboard-grid-2{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(0,1fr);gap:14px;align-items:stretch}.dashboard-grid-funnel{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}@media (max-width: 1100px){.dashboard-grid,.dashboard-grid-3,.dashboard-grid-2{grid-template-columns:minmax(0,1fr)}.dashboard-span-2{grid-column:auto}}.dashboard-funnel{width:100%;min-width:0}.dashboard-funnel svg{display:block;width:100%;height:auto}.dashboard-funnel-note{margin-top:8px;color:var(--text-secondary);font-size:12px}.dashboard-chart{width:100%;min-width:0}.dashboard-chart svg{display:block;width:100%}.dashboard-legend{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:8px;color:var(--text-secondary);font-size:12px}.dashboard-legend span{display:inline-flex;align-items:center;gap:5px}.dashboard-legend i{width:10px;height:10px;flex:none;border-radius:2px;display:inline-block}.dashboard-rank{margin:0;padding:0;list-style:none;display:grid;gap:2px}.dashboard-rank-item{width:100%;display:flex;align-items:center;gap:10px;padding:7px 6px;border:0;border-radius:var(--radius-sm);background:transparent;text-align:left;font-family:inherit;font-size:12px;cursor:pointer;transition:background .15s ease}.dashboard-rank-item:hover{background:#fafcff}.dashboard-rank-no{width:20px;height:20px;flex:none;display:grid;place-items:center;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:600}.dashboard-rank-no.is-top{background:#dbeafe;color:#1e40af}.dashboard-rank li:nth-child(1) .dashboard-rank-no.is-top{background:#fee2e2;color:#991b1b}.dashboard-rank li:nth-child(2) .dashboard-rank-no.is-top{background:#fff7ed;color:#c2410c}.dashboard-rank-main{min-width:0;flex:1 1 auto;display:grid;gap:2px}.dashboard-rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--text-primary)}.dashboard-rank-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);font-size:12px}.dashboard-rank-value{flex:none;color:#0f766e;font-weight:600;white-space:nowrap}.dashboard-rank-value.is-danger{color:#b91c1c}.dashboard-table-wrap{overflow-x:auto;overflow-y:hidden;border:0}.dashboard-table{width:100%}.dashboard-table .dp-col-line{min-width:160px;font-weight:600;color:var(--text-primary)}.dashboard-overdue-list{display:grid;gap:6px}.dashboard-overdue-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border:1px solid var(--divider-color);border-radius:var(--radius-sm);background:#fff;font-family:inherit;font-size:12px;text-align:left;cursor:pointer;transition:border-color .15s ease}.dashboard-overdue-item:hover{border-color:var(--primary-color)}.dashboard-overdue-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--text-primary)}.pq-filter-card{padding:14px 16px}.pq-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}.pq-filter-grid select{width:100%;height:32px;font-size:12.5px;padding:0 8px}@media (max-width: 1180px){.pq-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.pq-filter-foot{display:flex;align-items:center;gap:14px;margin-top:10px}.pq-reset{font-size:12px;color:var(--primary-color, #2563eb);background:none;border:0;cursor:pointer;padding:0;flex:0 0 auto}.pq-reset:hover{text-decoration:underline}.pq-filter-search{margin-left:auto;flex:0 1 340px;width:340px;min-width:180px;height:32px}.pq-stats-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:8px 16px;font-size:12.5px;color:var(--text-secondary, #5b6e8c);background:#fff;border:1px solid var(--divider-color, #e5e9f0);border-radius:6px}.pq-stats-line b{color:var(--text-primary, #0f172a);font-weight:700}.pq-stat-main{font-size:13px}.pq-stat-main b{font-size:15px;margin:0 2px}.pq-stat-sub{color:#64748b}.pq-stat-stages{display:inline-flex;flex-wrap:wrap;gap:6px 12px;margin-left:4px}.pq-stat-stage{padding:1px 8px;border-radius:10px;background:#f1f5f9;color:#475569}.pq-stat-stage b{margin-left:2px}.pq-stat-overdue{margin-left:auto;padding:2px 10px;border-radius:10px;background:#fef2f2;color:#b91c1c}.pq-stat-overdue b{color:#dc2626}.pq-overdue-check{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:13px;white-space:nowrap;cursor:pointer}.pq-overdue-check input{width:auto;flex:0 0 auto}.myprojects-table .pq-col-amount{width:108px;max-width:108px;white-space:nowrap}.btn-xs{padding:1px 8px;font-size:12px;line-height:20px}.master-col-ops{width:132px;white-space:nowrap}.master-col-ops .btn+.btn{margin-left:4px}.master-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:10px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--divider-color)}.master-tab{padding:4px 12px;border-radius:4px;font-size:var(--font-size-base);color:var(--text-secondary);border:1px solid transparent;text-decoration:none;background:transparent;cursor:pointer}.master-tab:hover{background:#f1f5f9;color:var(--text-primary)}.master-tab.is-active{background:#eff6ff;border-color:#bfdbfe;color:var(--primary-color);font-weight:600}.master-table-wrap{overflow-x:auto;overflow-y:visible}.master-table{width:100%;min-width:0;border-collapse:collapse;font-size:var(--font-size-base)}.cust-filter-row{display:flex;flex-wrap:nowrap;align-items:center;gap:10px}.cust-filter-search{flex:1 1 280px;min-width:160px;height:32px}.cust-filter-row select{flex:0 0 168px;min-width:0;height:32px;font-size:12.5px}.cust-filter-reset{flex:0 0 auto;font-size:12px}.cust-filter-reset:disabled{opacity:.45;cursor:default}.cust-filter-total{flex:0 0 auto;white-space:nowrap;font-size:12.5px;min-width:62px;text-align:right;font-variant-numeric:tabular-nums}.customer-table{min-width:0}.customer-table th,.customer-table td{white-space:nowrap}.customer-table td.cust-col-wrap{white-space:normal;word-break:break-word}.customer-table .cust-col-name{min-width:132px}.customer-table .cust-col-full{width:148px;max-width:148px}.customer-table .cust-col-industry{width:82px;max-width:82px}.customer-table .cust-col-owner{width:78px;max-width:78px;overflow:hidden;text-overflow:ellipsis}.customer-table .cust-col-count{width:54px}.customer-table .cust-col-contact{width:78px;max-width:78px;overflow:hidden;text-overflow:ellipsis}.customer-table .cust-col-last{width:92px}.customer-table .cust-col-state{width:58px}.customer-table .cust-col-biz{width:72px}.customer-table .master-col-ops{width:224px}.cust-ops{display:flex;align-items:center;gap:4px;white-space:nowrap}.cust-ops .btn{padding:1px 7px}.cust-ops .btn-del-soft{border-color:#fecaca;color:#b91c1c;background:#fff}.cust-ops .btn-del-soft:hover{background:#fef2f2;border-color:#fca5a5;color:#991b1b}.cust-ops .icon-action{width:26px;height:26px;display:inline-grid;place-items:center;border:1px solid transparent;border-radius:4px;background:transparent;color:#475569;cursor:pointer}.cust-ops .icon-action:hover{border-color:#cbd5e1;background:#f8fafc;color:var(--primary-color)}.cust-ops .icon-action.danger:hover{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.master-table thead th{text-align:left;padding:8px 10px;background:#f8fafc;border-bottom:1px solid var(--divider-color);white-space:nowrap;font-weight:600}.master-table tbody td{padding:7px 10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.master-table tbody tr:hover{background:#fafcff}.master-table .empty-cell{text-align:center;color:var(--text-secondary);padding:28px 0}.master-table .align-right,.master-table th.align-right{text-align:right}.master-table-wrap+.table-footer{margin-top:8px}.card .toolbar{flex-wrap:wrap}.card .toolbar>input[type=text],.card .toolbar>input:not([type]),.card .toolbar>select{width:auto;min-width:180px;flex:0 1 260px}.card .toolbar>input[type=file]{width:auto;flex:1 1 260px}.card .toolbar>span{margin-left:auto}.master-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a6b;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px;z-index:60;overflow:auto}.master-modal{width:100%;max-width:620px;background:#fff;border-radius:6px;box-shadow:0 18px 48px #0f172a3d}.master-modal-head,.master-modal-foot{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--divider-color)}.master-modal-foot{border-bottom:none;border-top:1px solid var(--divider-color);gap:8px}.master-modal-head h3{font-size:16px}.master-form{padding:14px 18px;display:grid;gap:12px}.master-field{display:grid;gap:4px;font-size:13px}.master-field>span{color:var(--text-secondary)}.master-field input,.master-field select,.master-field textarea{width:100%}.master-required{color:#dc2626;margin-left:3px}.master-hint{margin-top:8px;font-size:12px;display:flex;align-items:center;gap:4px}.staff-table-wrap{overflow-x:auto}.staff-table{min-width:0}.staff-table th,.staff-table td{white-space:nowrap}.staff-table td.staff-col-dept,.staff-table td.staff-col-post{white-space:normal}.staff-col-name{width:84px}.staff-col-account{width:104px}.staff-col-role{width:106px;overflow:hidden;text-overflow:ellipsis}.staff-col-dept{width:96px}.staff-col-post{width:108px}.staff-col-state{width:62px}.staff-col-pwd{width:72px}.staff-col-ops{width:auto;white-space:nowrap}.staff-ops{display:flex;align-items:center;flex-wrap:nowrap;gap:3px}.staff-ops .btn{white-space:nowrap;padding:0 6px;height:22px;gap:4px}.perm-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:8px 10px;margin-bottom:8px;font-size:12.5px;background:#f8fafc;border:1px solid var(--divider-color);border-radius:var(--radius-sm);color:var(--text-secondary)}.perm-summary b{color:var(--text-primary);font-weight:600}.perm-hint{font-size:12px;color:var(--text-secondary);margin:0 0 8px;line-height:1.6}.perm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;max-height:360px;overflow-y:auto;padding:10px;border:1px solid var(--divider-color);border-radius:var(--radius-sm)}.perm-group-title{font-size:12px;color:var(--text-secondary);margin-bottom:3px}.perm-item{display:flex;align-items:center;gap:5px;font-size:12.5px;line-height:20px;padding:1px 4px;border-radius:4px;cursor:pointer;overflow:hidden}.perm-item:hover{background:#f1f5f9}.perm-item.is-on{background:#eff6ff;color:#1d4ed8}.perm-item input[type=checkbox]{flex:0 0 auto;width:14px;height:14px;padding:0;margin:0}.perm-item-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.perm-tag{flex:0 0 auto;font-size:10px;line-height:15px;padding:0 4px;border-radius:3px;border:1px solid transparent;color:var(--text-secondary);background:transparent}.perm-tag.is-role{color:#64748b;border-color:#e2e8f0;background:#fff}.perm-tag.is-grant{color:#15803d;border-color:#bbf7d0;background:#f0fdf4}.perm-tag.is-deny{color:#b91c1c;border-color:#fecaca;background:#fef2f2}.org-tree-name{display:inline-flex;align-items:center;gap:2px}.org-tree-branch{color:#cbd5e1;font-style:normal;margin-right:2px}.dict-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;margin-top:12px}.dict-types{align-self:start;max-height:640px;overflow-y:auto;border:1px solid var(--divider-color);border-radius:var(--radius-sm)}.dict-type-item{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--divider-color)}.dict-type-item:last-child{border-bottom:none}.dict-type-item.is-active{background:#eff6ff}.dict-type-main{flex:1 1 auto;min-width:0;display:grid;gap:2px;border:0;background:transparent;text-align:left;font-family:inherit;cursor:pointer}.dict-type-main strong{font-size:13px;color:var(--text-primary)}.dict-type-main small{font-size:11px;color:var(--text-secondary)}.dict-type-ops{display:flex;flex:none;gap:4px}.dict-items-head{padding-bottom:8px}@media (max-width: 1100px){.dict-layout{grid-template-columns:minmax(0,1fr)}.dict-types{max-height:260px}}.import-step{padding:14px 0;border-top:1px dashed var(--divider-color)}.import-step:first-of-type{border-top:none}.import-step h3{font-size:14px;margin-bottom:10px;display:flex;align-items:center;gap:8px}.import-step-no{display:inline-flex;width:20px;height:20px;border-radius:50%;background:var(--primary-color);color:#fff;font-size:12px;align-items:center;justify-content:center}.import-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}.import-summary .metric-card{min-height:72px}.import-summary .metric-card strong{font-size:22px;margin:0 3px}.import-errors{margin-top:12px;padding:10px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:4px;color:#991b1b;font-size:13px}.import-errors h4{margin-bottom:6px}.import-errors ul{margin:0;padding-left:18px}.master-table tbody tr.row-skipped,.master-table tbody tr.row-skipped:hover{background:#fef9c3!important}.master-table tbody tr.row-skipped td{color:#854d0e}.req{color:#ef4444;font-weight:600;margin-left:2px}.fp-table{min-width:0}.fp-role-col{min-width:96px}.fp-role-col small,.fp-table td small{display:block;font-weight:400;font-size:11px}.fp-cell{text-align:center}.fp-toggle{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:12px;padding:2px 10px;font-size:12px;cursor:pointer}.fp-toggle:hover{background:#f8fafc}.fp-toggle.is-denied{background:#fee2e2;border-color:#fecaca;color:#991b1b;font-weight:600}.fp-source{color:#b45309;font-size:11px}@media (max-width: 900px){.import-summary{grid-template-columns:minmax(0,1fr)}}.link-btn{background:none;border:0;padding:0;margin:0;color:var(--primary-color, #2563eb);font:inherit;font-weight:600;text-align:left;cursor:pointer}.link-btn:hover{text-decoration:underline}.link-btn.is-danger{color:#b91c1c;font-weight:500}.mp-name.link-btn{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}.mp-name.link-btn:hover{color:var(--primary-color, #2563eb)}.link-back{display:inline-flex;align-items:center;gap:4px;margin-bottom:6px;background:none;border:0;padding:0;color:var(--text-secondary, #5b6e8c);font-size:12px;cursor:pointer}.link-back:hover{color:var(--primary-color, #2563eb)}.pd-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:16px!important;line-height:1.4}.pd-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 18px;padding-top:12px;border-top:1px dashed var(--divider-color, #e2e8f0)}.pd-meta-item{min-width:0}.pd-meta-item span{display:block;color:var(--text-secondary, #5b6e8c);font-size:11px;margin-bottom:2px}.pd-meta-item strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pd-remark{margin-top:10px;color:var(--text-secondary, #5b6e8c);font-size:12px;line-height:1.6}.pd-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}.pd-main,.pd-side{min-width:0;display:grid;gap:14px}.pd-timeline{list-style:none;margin:0;padding:0 0 0 4px}.pd-timeline li{position:relative;padding:0 0 16px 18px;border-left:2px solid #e6eef9}.pd-timeline li:last-child{border-left-color:transparent;padding-bottom:0}.pd-timeline li.is-void{opacity:.62}.pd-timeline-dot{position:absolute;left:-5px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--primary-color, #2563eb)}.pd-timeline-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.pd-timeline-body{margin-top:6px;font-size:13px;line-height:1.6;color:#1f2937;white-space:pre-wrap;word-break:break-word}.pd-timeline-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}.pd-form{padding:12px;margin-bottom:14px;border:1px solid var(--divider-color, #e2e8f0);border-radius:6px;background:#fafcff}.pd-form-row{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;margin-top:10px}.pd-form-row label,.pd-form-full{display:block;font-size:12px;color:var(--text-secondary, #5b6e8c)}.pd-form-row input,.pd-form-row select,.pd-form-full textarea,.pd-form-full input,.pd-form-full select{display:block;width:100%;margin-top:4px}.pd-form-full{margin-top:10px}.pd-form-label{display:block;font-size:12px;color:var(--text-secondary, #5b6e8c)}.pd-form-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding-bottom:8px;border-bottom:1px solid var(--divider-color, #e2e8f0)}.pd-form-head strong{font-size:13px;color:var(--text-primary, #1f2d3d)}.pd-form-head small{font-size:12px}.pd-todo-block{margin-top:10px;padding:8px 10px;border:1px dashed var(--divider-color, #e2e8f0);border-radius:6px;background:#fff}.pd-todo-check{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary, #5b6e8c);cursor:pointer}.pd-todo-block .pd-form-row{margin-top:8px}.pd-logs-modal{max-height:58vh;overflow-y:auto;padding-right:4px}.pd-attach-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.pd-attach-btn{cursor:pointer}.pd-attach-list{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:4px}.pd-attach-list li{display:flex;align-items:center;gap:6px;border:1px solid var(--divider-color);border-radius:4px;padding:3px 6px;background:#fff;font-size:12px}.pd-attach-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pd-attach-error{display:block;margin-top:6px;color:#b91c1c}.pd-attach-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.pd-attach-chip{display:inline-flex;align-items:center;gap:4px;max-width:260px;border:1px solid #dbeafe;border-radius:12px;padding:2px 9px;background:#eff6ff;color:#1d4ed8;font-size:12px;cursor:pointer}.pd-attach-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pd-attach-chip small{color:#64748b;flex:none}.pd-attach-chip:hover{border-color:#93b4ee;background:#e0edff}.pd-attach-chip.is-empty,.pd-attach-chip:disabled{border-color:#e2e8f0;background:#f8fafc;color:#94a3b8;cursor:not-allowed}.master-col-check{width:36px;text-align:center}.master-col-check input{width:14px;height:14px;cursor:pointer}.pd-form-actions{justify-content:flex-end;margin-top:8px}.pd-log-list{margin:0;padding:0;list-style:none;display:grid;gap:8px;max-height:320px;overflow-y:auto}.pd-log-list li{display:grid;gap:2px;border-left:2px solid #dbeafe;padding:2px 0 2px 8px;font-size:12px}.pd-log-list strong{color:var(--text-primary);font-size:12px}.pd-log-list small{color:#94a3b8}.pd-comment-box textarea,.pd-reply-box textarea{display:block;width:100%;margin-top:6px}.pd-comments{margin-top:12px;display:grid;gap:12px}.pd-comment{padding:10px 12px;border:1px solid var(--divider-color, #e2e8f0);border-radius:6px;background:#fff}.pd-comment p{margin-top:6px;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.pd-comment-head{display:flex;align-items:center;gap:8px;font-size:12px}.pd-comment-ops{display:flex;gap:12px;margin-top:6px;font-size:12px}.pd-reply-box{margin-top:12px;padding-top:12px;border-top:1px dashed var(--divider-color, #e2e8f0)}.pd-todo-list,.pd-logs{list-style:none;margin:0;padding:0;display:grid;gap:8px}.pd-todo-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px dashed var(--divider-color, #e2e8f0)}.pd-todo-list li:last-child{border-bottom:0}.pd-todo-list strong{display:block;font-size:12px;font-weight:600}.pd-todo-list small{color:var(--text-secondary, #5b6e8c);font-size:11px}.pd-danger{color:#b91c1c}.pd-logs li{font-size:12px;display:grid;gap:2px}.pd-logs small{color:var(--text-secondary, #5b6e8c);font-size:11px}.pd-people{display:flex;flex-wrap:wrap;gap:6px}.pd-people-roles{display:grid;gap:6px}.pd-role-row{display:flex;align-items:flex-start;gap:8px}.pd-role-label{flex:0 0 48px;font-size:12px;color:var(--text-secondary, #5b6e8c);line-height:22px}.pd-main>.card{overflow:hidden}@media (max-width: 1200px){.pd-grid{grid-template-columns:minmax(0,1fr)}}.pd-subtitle{display:flex;align-items:center;gap:8px;margin:12px 0 6px;font-size:11px;color:var(--text-secondary, #5b6e8c)}.pd-footnote{display:flex;align-items:center;gap:6px;font-size:11px}.pw-form{max-width:360px}.pw-actions{margin-top:14px}@media (max-width: 1180px){.pd-grid{grid-template-columns:minmax(0,1fr)}.pd-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}.flex{display:flex}.items-center{align-items:center}.gap-1{gap:4px}.gap-2{gap:8px}.font-medium{font-weight:600}.flex-nowrap{flex-wrap:nowrap}.row-ops{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}.input-sm{height:28px;padding:0 8px;font-size:12px;width:100%}select.input-sm{width:auto;min-width:88px}.btn-link{background:none;border:0;padding:2px 4px;font-size:12px;color:var(--primary-color);cursor:pointer}.btn-link:hover{text-decoration:underline}.crumb-back{display:grid;place-items:center;width:20px;height:20px;margin-right:2px;border:1px solid #e2e8f0;border-radius:4px;background:#fff;color:#475569;cursor:pointer}.crumb-back:hover{background:#f1f5f9;color:#1e293b}.pd-timeline-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.act-comments{margin-top:10px;padding:10px;border:1px solid #e7ebf0;border-radius:6px;background:#fbfdff}.cmt-thread{display:grid;gap:8px}.cmt-node{border-radius:5px;padding:7px 9px;background:#fff;border:1px solid #eef2f7;min-width:0}.cmt-node.is-reply{border-color:transparent}.cmt-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px}.cmt-head strong{color:#1e293b;font-size:12.5px}.cmt-floor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;color:#93a3b3}.cmt-reply-flag{font-size:11px;font-weight:600}.cmt-body{margin:5px 0 0;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word;color:#334155}.cmt-ops{display:flex;gap:10px;margin-top:4px;font-size:12px}.cmt-reply-box{margin-top:8px;padding:8px;border-radius:5px;background:#fff;border:1px dashed #cbd5e1}.cmt-reply-box>span{display:block;font-size:12px;margin-bottom:5px}.cmt-reply-box textarea{width:100%;min-height:54px}.cmt-post{margin-top:4px}.cmt-post textarea{width:100%;min-height:54px}.cmt-empty{padding:6px 0}.cmt-no-post{font-size:12px}.pd-log-detail{display:block;margin-top:2px;font-size:11px;line-height:1.5;color:#64748b;font-style:normal}.act-history{margin-top:10px;padding:10px 12px;border:1px solid #e7ebf0;border-radius:6px;background:#f7f9fc}.act-history-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}.act-history-head strong{font-size:12.5px;color:#1e293b}.act-history-empty{margin:2px 0;font-size:12px}.act-history-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.act-history-list>li{padding-left:10px;border-left:2px solid #dbe4ef;font-size:12px;min-width:0}.act-history-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.act-history-action{font-weight:600;color:#23548a}.act-history-row small{color:#64748b;font-size:11px}.act-history-reason{display:block;margin-top:2px;font-style:normal;color:#8a5a00;font-size:11.5px}.act-history-diff{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:3px}.act-history-diff li{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;line-height:1.6;min-width:0}.act-history-diff b{flex:0 0 auto;min-width:72px;color:#475569;font-weight:600;font-size:11.5px}.act-history-before{color:#94a3b8;text-decoration:line-through;word-break:break-word}.act-history-arrow{color:#94a3b8}.act-history-after{color:#0f7b3f;word-break:break-word}.pd-logs .btn-xs{justify-self:start;margin-top:4px}.pq-table-wrap{overflow-x:hidden}.myprojects-table.pq-table{table-layout:fixed;min-width:0;width:100%;font-size:12px}.myprojects-table.pq-table th,.myprojects-table.pq-table td{padding:6px 7px}.pq-table .mp-col-name{width:19%;min-width:0}.pq-table .mp-col-customer{width:15%;max-width:none}.pq-table .mp-col-line{width:12%;max-width:none}.pq-table .mp-col-stage{width:8%;max-width:none}.pq-table .mp-col-role{width:7%;max-width:none}.pq-table .mp-col-owner,.pq-table .mp-col-activity{width:10%;max-width:none}.pq-table .mp-col-status,.pq-table .pq-col-amount{width:6%;max-width:none}.pq-table .master-col-ops{width:62px;max-width:62px}.pq-table td.master-col-ops{overflow:visible}.myprojects-table:not(.pq-table){table-layout:fixed;min-width:0;width:100%;font-size:12px}.myprojects-table:not(.pq-table) th,.myprojects-table:not(.pq-table) td{padding:6px 7px}.myprojects-table:not(.pq-table) .mp-col-name{width:23%;min-width:0}.myprojects-table:not(.pq-table) .mp-col-customer{width:17%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-line{width:14%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-stage{width:9%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-role{width:8%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-owner{width:12%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-activity{width:10%;max-width:none}.myprojects-table:not(.pq-table) .mp-col-status{width:7%;max-width:none}.myprojects-table-wrap{overflow-x:hidden}.myprojects-table.pq-table td,.myprojects-table:not(.pq-table) td{overflow:hidden;text-overflow:ellipsis}.myprojects-table .truncate-cell{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-break:break-word;line-height:1.35}.myprojects-table .mp-name.link-btn{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-break:break-word;text-align:left;line-height:1.35;color:#2563eb;font-weight:600}.myprojects-table .mp-name.link-btn:hover{color:#1d4ed8;text-decoration:underline}.pcheck{border:1px solid #e3e9f0;border-radius:6px;background:#fff}.pcheck-head{display:flex;align-items:center;gap:10px;padding:6px 8px;border-bottom:1px solid #eef2f7;background:#f8fafc;border-radius:6px 6px 0 0}.pcheck-head input[type=text]{flex:1;min-width:0;height:26px;font-size:12px;border:1px solid #dfe5ec;border-radius:4px;padding:0 8px}.pcheck-count{font-size:12px;color:#64748b;white-space:nowrap}.pcheck-count b{color:#1d4ed8}.pcheck-clear{margin-left:8px;font-size:12px;color:#2563eb}.pcheck-grid{display:grid;gap:2px 8px;padding:6px 8px;overflow-y:auto}.pcheck-item{display:flex;align-items:center;gap:6px;min-width:0;padding:3px 6px;border-radius:4px;cursor:pointer;font-size:12.5px;color:#334155}.pcheck-item:hover{background:#f1f5f9}.pcheck-item.is-checked{background:#eff6ff;color:#1d4ed8;font-weight:600}.pcheck-item input[type=checkbox]{margin:0;flex:0 0 auto;width:14px;height:14px;padding:0}.pcheck-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pcheck-hint{color:#94a3b8;font-size:11px;font-weight:400;flex:0 0 auto}.pcheck-empty{padding:10px 8px;font-size:12px;color:#94a3b8}.taginput{border:1px solid #dfe5ec;border-radius:5px;padding:5px 6px;background:#fff}.taginput:focus-within{border-color:#93b4f7;box-shadow:0 0 0 2px #3b6ef61f}.taginput-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px}.taginput-tag{display:inline-flex;align-items:center;gap:4px;padding:1px 6px;border-radius:10px;background:#eef4ff;color:#1d4ed8;font-size:12px;line-height:18px}.taginput-tag button{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:0;border-radius:50%;background:transparent;color:#64748b;cursor:pointer;padding:0}.taginput-tag button:hover{background:#dbe7ff;color:#b91c1c}.taginput>input[type=text]{width:100%;border:0;outline:none;height:24px;font-size:12.5px}.chunk-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0 0;border-top:1px dashed #eef2f7;margin-top:8px;font-size:12px}.pd-timeline-meta{display:flex;flex-direction:column;gap:2px;margin-top:2px}.pd-timeline-meta>small{display:block;font-size:12px;color:#64748b}.pd-timeline-meta>small b{font-weight:600;color:#475569}.pd-side-toggle,.pd-side-backdrop,.sidebar-backdrop{display:none}@media (max-width: 768px){.app-sidebar{position:fixed;top:var(--header-height);bottom:0;left:0;z-index:60;width:78vw!important;max-width:300px;box-shadow:2px 0 18px #0f172a38}.app-sidebar .resize-handle{display:none}.sidebar-backdrop{display:block;position:fixed;left:0;right:0;top:var(--header-height);bottom:0;z-index:55;background:#0f172a57}.app-header{padding:0 8px}.app-header .header-left{gap:6px;min-width:0}.app-header .header-right{gap:8px}.app-header .brand-copy{min-width:0}.app-header .brand-copy strong{font-size:13px}.app-header .brand-copy small,.app-header .environment,.app-header .divider{display:none}.app-header .user-name{font-size:12px;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header .logout-button{padding:4px 8px;font-size:12px}.tabs-bar{display:none}.breadcrumb{height:26px;padding:0 10px;font-size:11px}.breadcrumb .page-date{display:none}.app-content{padding:8px;overflow-x:hidden}.app-main{min-width:0}.card{padding:10px}.section-header h2{font-size:14px}.screen-stack{grid-template-columns:minmax(0,1fr)}.pd-grid,.pd-main{min-width:0}.section-header{flex-wrap:wrap;gap:8px}.section-header .action-row{flex-wrap:wrap}.cust-filter-row{flex-wrap:wrap;gap:8px}.cust-filter-search{flex:1 1 100%}.cust-filter-row select{flex:1 1 calc(50% - 4px)}.cust-filter-total{margin-left:auto}.pq-filter-search{flex:1 1 100%;width:100%;min-width:0}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric-card{padding:8px}.metric-card strong{font-size:18px}.toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.toolbar .todo-search{grid-column:1 / -1;width:100%}.toolbar select{width:100%;min-width:0}.toolbar>button{grid-column:1 / -1;width:100%}.modal{max-width:calc(100vw - 16px);max-height:calc(100vh - 24px)}.modal-body{padding:12px}.modal-footer{padding:10px 12px}.pd-form-row{grid-template-columns:minmax(0,1fr);gap:8px}.pd-form-row input,.pd-form-row select,.pd-form-full input,.pd-form-full select{min-height:38px;font-size:14px}.pd-form-full textarea{font-size:14px}.card-table thead{display:none}.card-table,.card-table tbody,.card-table tr,.card-table td{display:block;width:auto;max-width:none}.card-table tr{border:1px solid #e7ebf0;border-radius:8px;padding:8px 10px;margin:0 0 8px;background:#fff}.card-table tr:hover{background:#fff}.card-table td{padding:3px 0;border:0;font-size:12.5px;line-height:1.55}.card-table td[data-label]:before{content:attr(data-label) "：";color:#94a3b8;font-size:11.5px}.card-table .col-project,.card-table .col-owner,.card-table .col-due,.card-table .col-status,.card-table .col-ops{width:auto;max-width:none;white-space:normal}.card-table .truncate-cell{max-width:none;white-space:normal}.card-table .row-actions{flex-wrap:wrap;gap:12px;padding-top:2px}.card-table td[data-label=操作]:before{content:""}.card-table .table-footer{padding:6px 0 0}.pd-footnote{display:none}.pd-side{position:fixed;left:0;right:0;bottom:0;z-index:58;max-height:72vh;overflow-y:auto;padding:10px 10px calc(10px + env(safe-area-inset-bottom,0px));background:#f4f7fb;border-top:1px solid #dbe4ef;border-radius:12px 12px 0 0;box-shadow:0 -8px 24px #0f172a2e;display:none}.pd-side.is-open{display:grid}.pd-side-toggle{position:fixed;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:60;display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:0;border-radius:20px;background:var(--primary-color, #2563eb);color:#fff;font-size:13px;box-shadow:0 6px 18px #2563eb59}.pd-side-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:57;background:#0f172a4d}.pd-main{padding-bottom:56px}}@media (min-width: 769px){.pd-side{display:grid!important}}@media (max-width: 900px){.card-table .col-project,.card-table .col-owner{width:auto}}
