:root{color:#1f2937;--control-font-size:14px;--toolbar-gap:12px;background:#f3f4f6;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}input,textarea,select,button{font:inherit}input,textarea,select{box-sizing:border-box;width:100%;line-height:1.4;font-size:var(--control-font-size);background:#fff;border:1px solid #d1d5db;border-radius:8px;margin-top:6px;padding:10px 12px}input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=search]),select:not([multiple]){height:42px}textarea{resize:vertical}label{color:#374151;margin-bottom:16px;font-size:14px;display:block}.btn-primary,.btn-secondary,.btn-text{cursor:pointer;font-size:var(--control-font-size);border:none;border-radius:8px;padding:10px 16px}.btn-primary{color:#fff;background:#2563eb}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{color:#111827;background:#e5e7eb}.btn-text{color:#2563eb;background:0 0;padding:6px 8px}.btn-text.danger{color:#dc2626}.layout{min-height:100vh}.header{z-index:100;color:#fff;background:#111827;justify-content:space-between;align-items:center;padding:16px 24px;display:flex;position:relative}.brand{cursor:pointer;align-items:baseline;gap:10px;display:flex}.logo{font-size:20px;font-weight:700}.subtitle{color:#9ca3af;font-size:13px}.header-right{align-items:center;gap:12px;display:flex}.header .username{color:#d1d5db;font-size:14px}.header .btn-text{color:#93c5fd}.badge-running{color:#1d4ed8;background:#dbeafe}.badge-completed{color:#6d28d9;background:#ede9fe}.section{margin-bottom:32px}.section-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.section-header h2,.section h2{margin:0 0 16px;font-size:20px}.data-table{border-collapse:collapse;background:#fff;border-radius:12px;width:100%;overflow:hidden;box-shadow:0 1px 3px #00000014}.data-table th,.data-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px 16px}.data-table th{color:#6b7280;background:#f9fafb;font-size:13px}.actions-cell{white-space:nowrap}.checkbox-label{cursor:pointer;align-items:center;gap:8px;font-size:14px;display:inline-flex}.checkbox-label input[type=checkbox]{width:auto;margin:0}.role-tag-inline{background:#e5e7eb;border-radius:999px;margin-right:4px;padding:2px 8px;font-size:12px;display:inline-block}.role-checkboxes{flex-direction:column;gap:8px;margin-bottom:16px;display:flex}.stages-editor{margin-top:24px}.stage-block{background:#f9fafb;border-radius:12px;margin-bottom:16px;padding:16px}.stage-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.stage-header h3{margin:0}.inline-label{align-items:center;gap:8px;margin-bottom:12px;display:flex}.inline-label select{width:auto;margin:0}.parallel-group{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:12px;padding:12px}.group-header{color:#6b7280;justify-content:space-between;margin-bottom:8px;font-size:14px;display:flex}.node-card{background:#f3f4f6;border-radius:8px;margin-bottom:8px;padding:12px}.node-header{justify-content:space-between;margin-bottom:8px;display:flex}.btn-sm{box-sizing:border-box;padding:6px 12px;font-size:13px;line-height:1.25}label.btn-primary,label.btn-secondary,label.btn-sm{justify-content:center;align-items:center;margin:0;display:inline-flex}.assignee-section{margin-top:24px}.assignee-card{background:#f9fafb;border-radius:8px;margin-bottom:12px;padding:16px}.assignee-card h3{margin:0 0 4px}.main{max-width:1400px;margin:0 auto;padding:24px}.page-title{margin:0 0 20px;font-size:28px}.auth-page{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{background:#fff;border-radius:16px;width:100%;max-width:420px;padding:32px;box-shadow:0 10px 30px #00000014}.auth-card h1{margin:0 0 8px}.hint,.muted,.meta{color:#6b7280;font-size:14px}.footer-link{text-align:center;color:#6b7280;margin-top:20px}.error{color:#dc2626;font-size:14px}.success{color:#15803d;font-size:14px}.form-narrow{max-width:480px}.toolbar{align-items:center;gap:var(--toolbar-gap,12px);flex-wrap:wrap;margin-bottom:20px;display:flex}.list-toolbar{justify-content:space-between;align-items:center;gap:var(--toolbar-gap,12px);flex-wrap:wrap;margin-bottom:20px;display:flex}.list-tabs{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.list-tab{color:#6b7280;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:8px;align-items:center;gap:6px;padding:6px 12px;font-size:13px;display:inline-flex}.list-tab:hover{color:#374151;background:#f3f4f6}.list-tab.active{color:#2563eb;background:#eff6ff;font-weight:600}.list-toolbar-right{align-items:center;gap:var(--toolbar-gap,12px);flex-wrap:wrap;display:flex}.list-toolbar-right>*{flex-shrink:0;margin:0}.list-toolbar-right>input[type=search],.list-toolbar-right .fuzzy-search-box input{box-sizing:border-box;height:42px;line-height:1.4;font-size:var(--control-font-size);margin-top:0}.list-toolbar-right .fuzzy-search{margin:0}.list-toolbar-right .btn-primary,.list-toolbar-right .btn-secondary{box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;height:42px;margin:0;padding:0 16px;line-height:1;display:inline-flex}.list-toolbar-right .checkbox-label{color:#4b5563;white-space:nowrap;margin:0;font-size:13px}.list-filter-select{width:auto;min-width:140px;height:42px;font-size:var(--control-font-size);color:#374151;box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin:0;padding:0 12px;line-height:1.4}.list-filter-select:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #2563eb1f}.search-box{width:200px;position:relative}.search-box input{box-sizing:border-box;width:100%;height:42px;line-height:1.4;font-size:var(--control-font-size);background:#fff;border:1px solid #d1d5db;border-radius:8px;margin:0;padding:0 12px 0 34px}.search-box input:focus{border-color:#93c5fd;outline:none;box-shadow:0 0 0 3px #2563eb1f}.search-box-plain input{padding-left:12px}.search-box .search-icon{color:#9ca3af;pointer-events:none;display:flex;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.fuzzy-search{width:220px;position:relative}.fuzzy-search .search-box{width:100%}.fuzzy-search-box input{padding-right:28px}.fuzzy-clear{color:#9ca3af;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:16px;line-height:1;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.fuzzy-clear:hover{color:#4b5563}.fuzzy-dropdown{z-index:30;background:#fff;border:1px solid #e5e7eb;border-radius:8px;max-height:240px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0f172a14}.fuzzy-option{text-align:left;width:100%;font-size:var(--control-font-size);color:#374151;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;display:flex}.fuzzy-option:hover,.fuzzy-option.active{background:#f3f4f6}.fuzzy-option.selected{color:#2563eb;font-weight:600}.fuzzy-check{text-align:center;color:#2563eb;flex:0 0 14px;width:14px;font-size:12px;line-height:1}.fuzzy-empty{color:#9ca3af;text-align:center;margin:0;padding:10px;font-size:12px}.workflow-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;display:grid}.workflow-card,.app-card{background:#fff;border:1px solid #eef0f3;border-radius:12px;flex-direction:column;min-height:168px;padding:16px 18px;transition:box-shadow .15s,border-color .15s,transform .15s;display:flex;position:relative;box-shadow:0 1px 2px #1018280a}.app-card:hover{border-color:#e5e7eb;transform:translateY(-1px);box-shadow:0 8px 24px #10182814}.app-card.clickable{cursor:pointer}.app-card-create{justify-content:flex-start;gap:4px}.app-card-create .create-title{color:#111827;margin:0 0 10px;font-size:15px;font-weight:600}.create-action{color:#374151;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;width:100%;padding:10px 8px;font-size:13px;display:flex}.create-action:hover{color:#111827;background:#f3f4f6}.create-action .create-icon{color:#2563eb;background:#eff6ff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.app-card-header{align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.app-icon{color:#fff;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:15px;font-weight:700;display:inline-flex;position:relative}.app-icon-badge{color:#fff;background:#7c3aed;border:2px solid #fff;border-radius:5px;justify-content:center;align-items:center;width:16px;height:16px;display:flex;position:absolute;bottom:-3px;right:-3px}.app-card-title-wrap{flex:1;min-width:0}.app-card-title{color:#111827;-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;margin:0;font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;overflow:hidden}.app-card-meta{color:#9ca3af;white-space:nowrap;text-overflow:ellipsis;margin:4px 0 0;font-size:12px;overflow:hidden}.app-card-desc{color:#6b7280;-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;flex:1;margin:0;font-size:13px;line-height:1.5;display:-webkit-box;overflow:hidden}.app-card-footer{align-items:center;gap:8px;min-height:28px;margin-top:14px;display:flex}.app-card-footer-tags{flex-wrap:wrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex}.app-tag{color:#4b5563;text-overflow:ellipsis;white-space:nowrap;background:#f3f4f6;border-radius:999px;align-items:center;gap:4px;max-width:100%;padding:3px 10px;font-size:12px;display:inline-flex;overflow:hidden}.app-tag.status-running{color:#1d4ed8;background:#dbeafe}.app-tag.status-completed{color:#6d28d9;background:#ede9fe}.app-tag.status-cancelled{color:#b91c1c;background:#fee2e2}.app-tag.status-published{color:#15803d;background:#dcfce7}.app-tag.status-draft{color:#6b7280;background:#f3f4f6}.app-tag.task-status-active,.app-tag.task-status-in_approval{color:#1d4ed8;background:#dbeafe}.app-tag.task-status-approved{color:#15803d;background:#dcfce7}.app-tag.task-status-rejected{color:#b91c1c;background:#fee2e2}.app-tag.task-status-submitted{color:#4338ca;background:#e0e7ff}.app-tag.task-status-pending,.app-tag.task-status-skipped{color:#6b7280;background:#f3f4f6}.app-card-menu{margin-left:auto;position:relative}.app-menu-btn{color:#9ca3af;cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;transition:opacity .15s,background .15s;display:inline-flex}.app-card:hover .app-menu-btn,.app-card-menu.open .app-menu-btn{opacity:1}.app-menu-btn:hover{color:#374151;background:#f3f4f6}.app-menu-dropdown{z-index:10;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:120px;padding:4px;position:absolute;bottom:calc(100% + 4px);right:0;box-shadow:0 8px 24px #1018281f}.app-menu-dropdown button{text-align:left;color:#374151;cursor:pointer;background:0 0;border:none;border-radius:6px;width:100%;padding:8px 10px;font-size:13px;display:block}.app-menu-dropdown button:hover{background:#f3f4f6}.app-menu-dropdown button.danger{color:#dc2626}.workflow-card h3{cursor:pointer;margin:12px 0 8px}.workflow-card h3:hover{color:#2563eb}.card-top{justify-content:space-between;align-items:center;display:flex}.preview{color:#4b5563;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 12px;display:-webkit-box;overflow:hidden}.badge{border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.badge-draft{color:#374151;background:#e5e7eb}.badge-review{color:#1d4ed8;background:#dbeafe}.badge-approved{color:#15803d;background:#dcfce7}.badge-rejected{color:#b91c1c;background:#fee2e2}.badge-done{color:#6d28d9;background:#ede9fe}.empty{text-align:center;color:#6b7280;background:#fff;border-radius:12px;grid-column:1/-1;padding:40px}.modal-mask{z-index:1000;background:#00000073;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{overscroll-behavior:contain;background:#fff;border-radius:16px;width:100%;max-width:520px;max-height:calc(100vh - 48px);padding:24px;overflow-y:auto}.modal-actions{z-index:2;background:#fff;justify-content:flex-end;gap:12px;margin-top:8px;padding-top:16px;display:flex;position:sticky;bottom:0;box-shadow:0 -12px 16px 8px #fff}.detail{background:#fff;border-radius:16px;padding:24px;box-shadow:0 1px 3px #00000014}.detail-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.detail h1{margin:0 0 16px}.actions{flex-wrap:wrap;gap:12px;margin-top:8px;display:flex}.back{margin-bottom:16px}
