*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Be Vietnam Pro',-apple-system,system-ui,sans-serif;background:#f8fafc;color:#0f172a;padding:24px 16px 80px;line-height:1.55;-webkit-font-smoothing:antialiased;font-size:15px}
.app-wrap{max-width:1240px;margin:0 auto}
.app-header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}
h1{font-size:1.1rem;font-weight:700;letter-spacing:-0.01em;color:#0f172a;margin:0}
h1 .subtitle{font-weight:400;color:#64748b;font-size:.82rem;margin-left:10px}
.subtitle{text-align:center;color:#64748b;font-size:.88em;margin-bottom:14px}
h1{text-align:center;color:#0f766e;margin-bottom:8px;font-size:1.6em}
.subtitle{text-align:center;color:#64748b;margin-bottom:20px;font-size:.9em}
.app-header{max-width:1200px;margin:0 auto 18px;padding:0 10px 14px;display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;border-bottom:1px solid #e2e8f0}
.user-info{display:flex;align-items:center;gap:8px;font-size:.85em;flex-wrap:wrap}
.user-badge{background:#dbeafe;color:#1e40af;padding:3px 10px;border-radius:12px;font-weight:500;font-size:.85em}
.admin-badge{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#78350f;padding:2px 8px;border-radius:10px;font-weight:700;font-size:.7em;letter-spacing:.03em}
.admin-panel{position:fixed;top:0;right:0;bottom:0;width:480px;max-width:100%;background:#fff;box-shadow:-10px 0 30px rgba(0,0,0,.15);z-index:500;transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column}
.admin-panel.show{transform:translateX(0)}
.admin-panel .ap-header{padding:16px 20px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#0f766e,#115e59);color:#fff}
.admin-panel .ap-header h2{font-size:1.05em;display:flex;align-items:center;gap:8px}
.admin-panel .ap-close{background:rgba(255,255,255,.2);color:#fff;border:none;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:1em}
.admin-panel .ap-close:hover{background:rgba(255,255,255,.3)}
.admin-panel .ap-body{flex:1;overflow-y:auto;padding:12px}
.admin-panel .user-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;margin-bottom:8px;cursor:pointer;transition:all .15s}
.admin-panel .user-card:hover{border-color:#0f766e;background:#f0fdfa}
.admin-panel .user-card.expanded{background:#f0fdfa;border-color:#115e59}
.admin-panel .uc-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.admin-panel .uc-name{font-weight:600;color:#1e293b;flex:1}
.admin-panel .uc-email{color:#64748b;font-size:.78em;margin-bottom:6px}
.admin-panel .uc-stats{display:flex;gap:10px;font-size:.75em;color:#475569;flex-wrap:wrap}
.admin-panel .uc-stat{background:#fff;padding:2px 8px;border-radius:10px;border:1px solid #e2e8f0}
.admin-panel .uc-stat strong{color:#0f766e}
.admin-panel .user-detail{margin-top:10px;border-top:1px solid #cbd5e1;padding-top:10px;display:none}
.admin-panel .user-card.expanded .user-detail{display:block}
.admin-panel .dt-title{font-size:.72em;color:#64748b;font-weight:600;text-transform:uppercase;margin:8px 0 4px;letter-spacing:.03em}
.admin-panel .dt-item{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:6px 10px;margin-bottom:4px;font-size:.82em}
.admin-panel .dt-item .dt-path{color:#115e59;font-size:.75em;margin-bottom:2px;word-break:break-word}
.admin-panel .dt-item .dt-text{color:#1e293b;white-space:pre-wrap;word-break:break-word;line-height:1.4}
.admin-panel .dt-item .dt-time{color:#94a3b8;font-size:.72em;margin-top:2px}
.admin-panel .dt-item .dt-status{display:inline-block;padding:1px 6px;border-radius:3px;font-size:.7em;font-weight:600;margin-right:6px}
.admin-panel .dt-status.keep{background:#dcfce7;color:#15803d}
.admin-panel .dt-status.edit{background:#fef3c7;color:#b45309}
.admin-panel .dt-status.remove{background:#fee2e2;color:#b91c1c}
.admin-panel .dt-status.other_dept{background:#e0e7ff;color:#4338ca}
.admin-panel .dt-status.deleted{background:#f1f5f9;color:#64748b}
.admin-panel .empty{color:#94a3b8;font-size:.82em;font-style:italic;text-align:center;padding:10px}
.admin-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.4);z-index:450;display:none}
.admin-backdrop.show{display:block}
.remember-me{display:flex;align-items:center;gap:6px;margin-bottom:12px;font-size:.85em;color:#64748b;cursor:pointer}
.remember-me input{width:auto;margin:0;margin-bottom:0}
.conn-status{display:inline-block;width:8px;height:8px;border-radius:50%;background:#94a3b8}
.conn-status.online{background:#22c55e;box-shadow:0 0 6px rgba(34,197,94,.5)}
.toolbar{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
.toolbar button,.toolbar a.btn{padding:6px 14px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#1e293b;cursor:pointer;font-size:.85em;transition:all .2s;text-decoration:none;display:inline-block}
.toolbar button:hover,.toolbar a.btn:hover{background:#f0fdfa;border-color:#0f766e;color:#0f766e}
.toolbar button.active{background:#0f766e;border-color:#0f766e;color:#fff}
.toolbar button.primary-btn{background:#0f766e;color:#fff;border-color:#0f766e}
.toolbar button.primary-btn:hover{background:#115e59;color:#fff;border-color:#115e59}
.toolbar-divider{width:1px;height:22px;background:#cbd5e1;margin:0 4px;align-self:center}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:16px;max-width:1200px;margin-left:auto;margin-right:auto;padding:0 10px}
.stat{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;transition:transform 150ms ease,box-shadow 150ms ease;text-align:left;min-width:0}
.stat:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,23,42,.06)}
.stat .num{font-size:1.7em;font-weight:700;font-family:'JetBrains Mono','SF Mono',Consolas,monospace;line-height:1.1;order:2}
.stat .label{font-size:.7em;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.05em;display:flex;align-items:center;gap:6px;order:1}
.stat .label svg{width:12px;height:12px}
.stat.keep .num{color:#16a34a}
.stat.edit .num{color:#d97706}
.stat.remove .num{color:#dc2626}
.stat.other-dept .num{color:#4338ca}
.stat.none .num{color:#94a3b8}
.stat.total .num{color:#115e59}
.stat.deleted .num{color:#7c3aed}
.progress-bar{max-width:1200px;margin:0 auto 18px;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;display:flex;border:1px solid #e2e8f0}
.progress-bar > div{height:100%;transition:width .3s ease}
.search-box{display:flex;justify-content:center;margin-bottom:14px}
.search-box .search-inner{display:flex;width:500px;max-width:92%;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#fff;transition:box-shadow .2s,border-color .2s}
.search-box .search-inner:focus-within{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.1)}
.search-box input{flex:1;padding:8px 14px;border:none;background:transparent;font-size:.9em;outline:none;font-family:inherit;color:#1e293b;min-width:0}
.search-box .search-btn{padding:7px 16px;background:#0f766e;color:#fff;border:none;cursor:pointer;font-size:.85em;font-weight:500;font-family:inherit;white-space:nowrap;transition:background .2s;flex-shrink:0}
.search-box .search-btn:hover{background:#115e59}
.search-empty{max-width:1200px;margin:0 auto 12px;text-align:center;color:#94a3b8;font-size:.88em;display:none;padding:20px 0}
.search-empty.show{display:block}
.tree{max-width:1200px;margin:0 auto;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;padding:4px}
.cat{border-bottom:none;margin:0}
.cat + .cat{border-top:1px solid #f1f5f9}
.cat{margin-bottom:12px}
.cat-header{background:linear-gradient(180deg,#f8fafc,#f1f5f9);border:none;border-radius:0;padding:12px 16px;cursor:pointer;display:flex;align-items:center;gap:10px;font-weight:600;font-size:.95em;color:#0f172a;margin:0}
.cat-header + .cat-children{background:#fff}
.cat-header:hover{border-color:#0f766e}
.cat-header .arrow{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s;color:#94a3b8;width:14px;height:14px}
.cat-header .arrow svg{width:14px;height:14px}
.cat-header.open .arrow{transform:rotate(90deg)}
.cat-header .cat-svg{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;background:#ccfbf1;color:#0f766e;flex-shrink:0}
.cat-header .cat-svg svg{width:14px;height:14px}
.cat:nth-child(1) .cat-header .cat-svg{background:#e0f2fe;color:#0369a1}
.cat:nth-child(2) .cat-header .cat-svg{background:#fef3c7;color:#b45309}
.cat:nth-child(3) .cat-header .cat-svg{background:#fee2e2;color:#b91c1c}
.cat:nth-child(4) .cat-header .cat-svg{background:#e0e7ff;color:#4338ca}
.cat:nth-child(5) .cat-header .cat-svg{background:#fce7f3;color:#be185d}
.cat:nth-child(6) .cat-header .cat-svg{background:#dcfce7;color:#15803d}
.cat-header .badge{margin-left:auto;background:#ccfbf1;color:#0f766e;padding:2px 8px;border-radius:10px;font-size:.75em;font-weight:500}
.cat-children{padding-left:12px}
.node{margin:2px 0}
.node.deleted-node > .row{opacity:.45;text-decoration:line-through}
.node.deleted-node > .row .status-select,.node.deleted-node > .row .apply-status-select,.node.deleted-node > .row .comment-btn{display:none}
.row{display:flex;align-items:center;gap:6px;padding:4px 8px 4px 11px;border-radius:4px;font-size:.85em;transition:background .1s;position:relative}
.row:hover{background:#f1f5f9}
.row[data-status="keep"]::before,.row[data-status="edit"]::before,.row[data-status="remove"]::before,.row[data-status="other_dept"]::before{content:'';position:absolute;left:2px;top:4px;bottom:4px;width:3px;border-radius:2px}
.row[data-status="keep"]::before{background:#16a34a}
.row[data-status="edit"]::before{background:#d97706}
.row[data-status="remove"]::before{background:#dc2626}
.row[data-status="other_dept"]::before{background:#6366f1}
.row .arrow{display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;transition:transform .2s;width:12px;height:12px;cursor:pointer;user-select:none;flex-shrink:0}
.row .arrow svg{width:11px;height:11px}
.row.open > .arrow{transform:rotate(90deg)}
.row .spacer{width:12px;display:inline-block;flex-shrink:0}
.row .icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}
.row .icon .node-svg{display:inline-flex;align-items:center;justify-content:center;color:#64748b}
.row .icon .node-svg svg{width:13px;height:13px}
.row .icon .node-svg.svg-xlsx{color:#15803d}
.row .icon .node-svg.svg-docx{color:#2563eb}
.row .name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;min-width:0}
.row .name.clickable:hover{color:#115e59}
.children{padding-left:20px;display:none}
.node.open > .children{display:block}
.row.file{font-weight:500;padding:6px 8px}
.row.l2{color:#334155}
.row.l3{color:#475569}
.row.l4{color:#64748b;font-size:.82em}
.row.l5{color:#64748b;font-size:.8em}
.row.l6{color:#94a3b8;font-size:.78em;font-style:italic}
.row.table-row{color:#94a3b8;font-size:.78em}
.row.sheet-row{color:#64748b;font-size:.8em;font-family:monospace}
.status-select,.apply-status-select{position:relative;padding:4px 22px 4px 11px;border-radius:999px;font-size:.75em;font-weight:600;cursor:pointer;border:1px solid #cbd5e1;background:#fff;outline:none;min-width:100px;font-family:inherit;text-align:left;line-height:1.3;transition:filter 120ms ease}
.status-select:hover,.apply-status-select:hover{filter:brightness(0.97)}
.status-select::after,.apply-status-select::after{content:'';position:absolute;right:9px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-70%) rotate(45deg);opacity:0.55;pointer-events:none}
.st-picker{position:absolute;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,0.12);padding:5px;z-index:60;min-width:220px;font-family:inherit}
.st-item{display:flex;align-items:center;gap:9px;padding:7px 10px;font-size:.85em;color:#1e293b;cursor:pointer;border-radius:5px;font-weight:500;border:none;background:transparent;width:100%;text-align:left;font-family:inherit}
.st-item:hover{background:#f1f5f9}
.st-item.active{background:#f0fdfa;color:#0f766e;font-weight:600}
.st-item .st-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;border:1px solid rgba(0,0,0,0.1)}
.st-item .st-check{margin-left:auto;width:14px;height:14px;color:#0f766e}
.st-dot-none{background:#e2e8f0}
.st-dot-keep{background:#16a34a}
.st-dot-edit{background:#d97706}
.st-dot-remove{background:#dc2626}
.st-dot-other_dept{background:#6366f1}
.st-dot-dang_ap_dung{background:#16a34a}
.st-dot-chua_ap_dung{background:#d97706}
.st-dot-khong_the_ap_dung{background:#dc2626}
.st-dot-can_ap_dung{background:#7c3aed}
.assignee-input{padding:3px 8px;border-radius:4px;font-size:.75em;border:1px solid #cbd5e1;background:#fff;outline:none;min-width:140px;max-width:180px;font-family:inherit;color:#1e293b}
.assignee-input:focus{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.15)}
.assignee-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 2px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-size:.74em;font-weight:500;cursor:pointer;font-family:inherit;max-width:160px;transition:filter 120ms ease}
.assignee-chip:hover{filter:brightness(0.96)}
.assignee-chip .as-avatar{width:20px;height:20px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.85em;font-weight:700;flex-shrink:0}
.assignee-chip .as-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.assignee-add-btn{padding:2px 8px;border-radius:4px;font-size:.72em;border:1px dashed #94a3b8;background:transparent;color:#64748b;cursor:pointer;font-family:inherit}
.assignee-add-btn:hover{border-color:#0f766e;color:#0f766e;background:#f0fdfa}
.deadline-badge{padding:3px 8px;border-radius:12px;font-size:.72em;font-weight:600;cursor:pointer;font-family:inherit;white-space:nowrap;border:1px solid transparent;margin-right:4px}
.deadline-badge.dl-overdue{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.deadline-badge.dl-soon{background:#fef3c7;color:#b45309;border-color:#fcd34d}
.deadline-badge.dl-future{background:#f0fdfa;color:#0f766e;border-color:#bae6fd}
.deadline-add-btn{padding:2px 8px;border-radius:4px;font-size:.72em;border:1px dashed #94a3b8;background:transparent;color:#64748b;cursor:pointer;font-family:inherit;margin-right:4px}
.deadline-add-btn:hover{border-color:#0f766e;color:#0f766e;background:#f0fdfa}
.deadline-input{padding:3px 6px;border-radius:4px;font-size:.72em;border:1px solid #cbd5e1;background:#fff;outline:none;font-family:inherit;color:#1e293b;margin-right:4px}
.deadline-input:focus{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.15)}
.history-btn{background:#fff;border:1px solid #cbd5e1;border-radius:4px;padding:3px 6px;cursor:pointer;font-size:.8em;color:#64748b;margin-left:2px;line-height:1;font-family:inherit}
.history-btn:hover{border-color:#0f766e;color:#0f766e}
.overflow-wrap{position:relative;display:inline-block}
.overflow-btn{width:28px;height:28px;border-radius:6px;border:1px solid transparent;background:transparent;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all 150ms ease;font-family:inherit;padding:0}
.overflow-btn:hover{background:#f1f5f9;color:#0f766e;border-color:#e2e8f0}
.overflow-btn svg{width:14px;height:14px}
.overflow-menu{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 8px 18px rgba(0,0,0,.1);padding:4px;z-index:40;min-width:160px;display:none}
.overflow-wrap.open .overflow-menu{display:block}
.overflow-item{display:flex;align-items:center;gap:8px;padding:7px 10px;font-size:.82em;color:#1e293b;cursor:pointer;border-radius:4px;white-space:nowrap;font-family:inherit;border:none;background:transparent;width:100%;text-align:left}
.overflow-item:hover{background:#f1f5f9;color:#0f766e}
.overflow-item.danger{color:#dc2626}
.overflow-item.danger:hover{background:#fee2e2;color:#b91c1c}
.overflow-item svg{width:14px;height:14px;flex-shrink:0}
.history-panel{display:none;margin:6px 0 8px 24px;padding:10px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:.85em}
.history-panel.show{display:block}
.history-head{display:flex;justify-content:space-between;align-items:center;font-size:.82em;color:#64748b;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #e2e8f0}
.history-head .h-refresh{background:transparent;border:none;cursor:pointer;font-size:1em;color:#64748b;padding:2px 6px;border-radius:4px;font-family:inherit}
.history-head .h-refresh:hover{background:#e2e8f0;color:#0f766e}
.history-entry{display:flex;gap:10px;padding:6px 0;border-bottom:1px dashed #e2e8f0}
.history-entry:last-child{border:none}
.history-dot{width:8px;height:8px;border-radius:50%;background:#0f766e;flex-shrink:0;margin-top:6px}
.history-body{flex:1;min-width:0}
.history-meta{display:flex;gap:8px;font-size:.82em;color:#64748b;margin-bottom:2px;flex-wrap:wrap}
.history-author{color:#1e293b;font-weight:600}
.history-action{color:#334155;word-break:break-word}
.history-action strong{color:#1e293b}
.history-more{width:100%;padding:6px;background:#fff;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;font-size:.85em;margin-top:8px;font-family:inherit;color:#334155}
.history-more:hover{background:#f1f5f9;border-color:#0f766e}
.history-empty{color:#94a3b8;font-size:.9em;text-align:center;padding:10px}
.status-select.keep{background:#dcfce7;color:#15803d;border-color:#86efac}
.status-select.edit{background:#fef3c7;color:#b45309;border-color:#fcd34d}
.status-select.remove{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.status-select.other_dept{background:#e0e7ff;color:#4338ca;border-color:#a5b4fc}
.status-select.none{background:#f1f5f9;color:#64748b;border-color:#cbd5e1}
.apply-status-select.none{background:#f8fafc;color:#64748b;border-color:#cbd5e1}
.apply-status-select.dang_ap_dung{background:#dcfce7;color:#15803d;border-color:#86efac}
.apply-status-select.chua_ap_dung{background:#fef3c7;color:#b45309;border-color:#fcd34d}
.apply-status-select.khong_the_ap_dung{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.apply-status-select.can_ap_dung{background:#ede9fe;color:#6d28d9;border-color:#c4b5fd}
.comment-btn{position:relative;width:28px;height:28px;border-radius:6px;border:1px solid transparent;background:transparent;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all 150ms ease;font-family:inherit;font-size:0;padding:0}
.comment-btn:hover{background:#f1f5f9;color:#0f766e;border-color:#e2e8f0}
.comment-btn svg{width:14px;height:14px}
.comment-btn.has-comments{color:#0f766e}
.comment-btn .count-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;background:#0f766e;color:#fff;font-size:.62em;font-weight:700;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #fff;padding:0 3px;line-height:1}
.comments-panel{margin:4px 0 8px 30px;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid #0f766e;border-radius:6px;display:none}
.comments-panel.show{display:block}
.comments-panel .ctitle{font-size:.72em;color:#64748b;margin-bottom:8px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.comment-item{display:flex;gap:10px;padding:8px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;margin-bottom:6px;position:relative}
.comment-avatar{width:28px;height:28px;border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.72em;font-weight:700;flex-shrink:0}
.comment-body{flex:1;min-width:0}
.comment-meta{display:flex;align-items:center;gap:6px;font-size:.75em;color:#64748b;margin-bottom:2px}
.comment-author{font-weight:600;color:#1e293b}
.comment-time{color:#94a3b8}
.comment-del{margin-left:auto;background:none;border:none;color:#94a3b8;cursor:pointer;font-size:.9em;padding:0 4px}
.comment-del:hover{color:#dc2626}
.comment-text{font-size:.85em;color:#1e293b;white-space:pre-wrap;word-break:break-word;line-height:1.5}
.comment-input-wrap{display:flex;gap:6px;margin-top:8px}
.comment-input-wrap textarea{flex:1;padding:6px 10px;border:1px solid #cbd5e1;border-radius:6px;font-family:inherit;font-size:.85em;resize:vertical;min-height:36px;max-height:120px;outline:none;background:#fff}
.comment-input-wrap textarea:focus{border-color:#0f766e}
.comment-input-wrap button{padding:4px 14px;background:#0f766e;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.82em;font-weight:500}
.comment-input-wrap button:hover{background:#115e59}
.comment-input-wrap button:disabled{opacity:.5;cursor:not-allowed}
.hier-badge{background:#dbeafe;color:#1e40af;padding:1px 5px;border-radius:3px;font-size:.65em;margin-right:4px;font-weight:500}
.login-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#134e4a,#0f766e);display:flex;align-items:center;justify-content:center;z-index:1000}
.login-box{background:#fff;padding:30px;border-radius:12px;box-shadow:0 20px 40px rgba(0,0,0,.3);width:400px;max-width:90%}
.login-box h2{color:#0f766e;margin-bottom:4px;font-size:1.3em}
.login-box p{color:#64748b;font-size:.85em;margin-bottom:18px}
.login-box label{display:block;font-size:.82em;color:#475569;margin-bottom:4px;font-weight:500}
.login-box input{width:100%;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:.95em;outline:none;margin-bottom:12px;font-family:inherit}
.login-box input:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.1)}
.login-box button.primary{width:100%;padding:11px;background:#0f766e;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.95em;font-weight:500;margin-top:4px}
.login-box button.primary:hover{background:#115e59}
.login-box button.primary:disabled{opacity:.5;cursor:not-allowed}
.login-box .switch-mode{text-align:center;margin-top:14px;font-size:.85em;color:#64748b}
.login-box .switch-mode a{color:#0f766e;text-decoration:none;cursor:pointer;font-weight:500}
.login-box .switch-mode a:hover{text-decoration:underline}
.login-box .err-msg{background:#fee2e2;color:#b91c1c;padding:8px 12px;border-radius:6px;font-size:.82em;margin-bottom:12px;display:none}
.login-box .err-msg.show{display:block}
.login-box .app-title{text-align:center;margin-bottom:20px;color:#134e4a}
.login-box .app-title .big{font-size:1.3em;font-weight:700}
.login-box .app-title .small{font-size:.8em;color:#64748b;margin-top:2px}
.toast{position:fixed;top:20px;right:20px;background:#1e293b;color:#fff;padding:10px 16px;border-radius:8px;font-size:.85em;z-index:2000;opacity:0;transform:translateY(-10px);transition:all .3s;pointer-events:none}
.toast.show{opacity:1;transform:translateY(0)}
.toast.err{background:#dc2626}
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:1500;backdrop-filter:blur(3px)}
.modal-overlay.show{display:flex}
.modal-box{background:#fff;padding:22px 24px;border-radius:12px;box-shadow:0 20px 40px rgba(0,0,0,.2);width:420px;max-width:90%}
.modal-box .m-title{font-size:1.05em;font-weight:600;color:#0f766e;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.modal-box .m-msg{color:#334155;font-size:.9em;line-height:1.5;margin-bottom:18px;word-break:break-word}
.modal-box .m-msg strong{color:#1e293b}
.modal-box .m-btns{display:flex;gap:8px;justify-content:flex-end}
.modal-box .m-btns button{padding:8px 18px;border-radius:6px;border:1px solid transparent;cursor:pointer;font-size:.88em;font-weight:500;transition:all .15s}
.modal-box .m-btns .m-cancel{background:#f1f5f9;color:#334155;border-color:#cbd5e1}
.modal-box .m-btns .m-cancel:hover{background:#e2e8f0}
.modal-box .m-btns .m-ok{background:#0f766e;color:#fff}
.modal-box .m-btns .m-ok:hover{background:#115e59}
.modal-box .m-btns .m-ok.danger{background:#dc2626}
.modal-box .m-btns .m-ok.danger:hover{background:#b91c1c}
.export-area{max-width:1200px;margin:20px auto;display:none}
.export-area textarea{width:100%;height:400px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:12px;font-size:.82em;font-family:'Courier New',monospace}
body.show-deleted .node.deleted-node{display:block!important}
body:not(.show-deleted) .node.deleted-node{display:none}
.node.filter-hidden,.node.search-hidden{display:none!important}
body.show-deleted .node.deleted-node.filter-hidden,body.show-deleted .node.deleted-node.search-hidden{display:none!important}
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:0 auto 20px;max-width:1200px;padding:10px 16px;background:#f1f5f9;border-radius:10px;border:1px solid #e2e8f0}
.filter-bar-label{font-size:.78em;color:#64748b;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-right:4px}
.filter-pill{position:relative;padding:6px 26px 6px 12px;background:#fff;border:1px solid #cbd5e1;border-radius:18px;font-size:.82em;cursor:pointer;font-family:inherit;line-height:1.3;user-select:none;transition:border-color .15s,background .15s}
.filter-pill:hover{border-color:#0f766e}
.filter-pill::after{content:'▾';position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:.75em;color:#64748b}
.filter-pill .fp-lbl{font-weight:600;font-size:.82em;color:#64748b;margin-right:4px}
.filter-pill .fp-val{color:#1e293b}
.filter-pill.active{background:#0f766e;border-color:#0f766e}
.filter-pill.active .fp-lbl,.filter-pill.active .fp-val,.filter-pill.active::after{color:#fff}
.filter-pill.open::after{transform:translateY(-50%) rotate(180deg)}
.filter-menu{position:absolute;top:calc(100% + 6px);left:0;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 18px rgba(0,0,0,.1);z-index:50;padding:6px;min-width:240px;max-height:320px;overflow-y:auto;display:none;font-size:.88em;color:#1e293b;font-weight:400}
.filter-pill.open .filter-menu{display:block}
.filter-menu label{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:4px;cursor:pointer;color:#1e293b;font-weight:400}
.filter-menu label:hover{background:#f1f5f9}
.filter-menu label input{margin:0}
.filter-menu label .cnt{margin-left:auto;color:#94a3b8;font-size:.85em}
.filter-menu label.zero{opacity:.5}
.filter-clear-btn{padding:6px 14px;background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5;border-radius:18px;font-size:.82em;cursor:pointer;font-weight:500;margin-left:auto;transition:background .15s}
.filter-clear-btn:hover{background:#fecaca}
.filter-clear-btn.hidden{display:none}
