@keyframes spin{to{transform:rotate(360deg)}}:root{--bg: #ffffff;--muted: #9ca3af;--card: #f8fafc;--accent: #2563eb;--success: #16a34a;--danger: #dc2626}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;background:var(--bg);color:#111827}.card{background:var(--card);border-radius:8px;padding:12px;box-shadow:0 1px 2px #0000000a}.card-content{padding:8px 4px}.btn{padding:8px 12px;border-radius:8px;border:1px solid transparent;background:#111827;color:#fff;cursor:pointer}.btn-primary{background:var(--accent);border-color:#2563ebe6}.btn-secondary{background:#f3f4f6;color:#111827;border-color:#e5e7eb}.btn-outline{background:#fff;color:#111827;border-color:#e5e7eb}.btn-outline:hover{background:#f3f4f6}.btn-ghost{background:transparent;color:var(--muted);border-color:transparent}.btn-add{background:var(--success);border-color:#16a34ae6;color:#fff}.btn-icon{padding:6px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;align-items:flex-start;gap:10px;flex-wrap:nowrap;background:#fff}.btn-icon .tree-node-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:#6b7280}.btn-icon .tree-node-text{display:flex;flex-direction:column;gap:4px}.btn-icon.btn-mode:hover{background:#f3f4f6}.btn-icon.btn-mode.btn-mode-active{background:#16a34a;color:#fff;border-color:#16a34a}@keyframes hv-pulse{0%,to{opacity:1}50%{opacity:.35}}.btn-loading{animation:hv-pulse 1.4s ease-in-out infinite;cursor:default!important;pointer-events:none}@keyframes suck-to-home{0%{transform:scale(1);opacity:1;filter:blur(0px) brightness(1)}30%{opacity:.85;filter:blur(1px) brightness(1.15)}80%{opacity:.5;filter:blur(6px) brightness(1.4)}to{transform:scale(0);opacity:0;filter:blur(16px) brightness(2)}}.home-anim-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;pointer-events:none;background:linear-gradient(135deg,#10b981bf,#3b82f6a6,#8b5cf6b3);-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px);animation:suck-to-home .6s cubic-bezier(.6,0,.98,.6) forwards}.mode-select{height:36px;border-radius:8px;border:1px solid rgba(22,163,74,.35);background:#fff;color:#16a34a;padding:0 10px;font-size:14px;margin-left:6px}.mode-select:hover{background:#16a34a0f}.mode-select:focus{outline:none;box-shadow:0 0 0 2px #16a34a33}.actions-gap{width:14px}.actions-sep{width:1px;height:24px;background:#e5e7eb;margin:0 6px}.date-pill{height:36px;border-radius:8px;border:1px solid rgba(22,163,74,.35);background:#fff;color:#16a34a;padding:0 10px;font-size:14px}.date-pill:hover{background:#16a34a0f}.date-pill:focus{outline:none;box-shadow:0 0 0 2px #16a34a33}.calendar-popup-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.calendar-popup{position:fixed;top:80px;right:24px;z-index:50;background:#fff;border-radius:8px;box-shadow:0 10px 25px #00000026;padding:16px}.settings-menu-popup{position:fixed;top:80px;right:24px;z-index:50;background:#fff;border-radius:8px;box-shadow:0 10px 25px #00000026;min-width:220px;overflow:hidden}.settings-menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 16px;border:none;background:#fff;color:#111827;font-size:14px;text-align:left;cursor:pointer;transition:background .15s}.settings-menu-item:hover{background:#f3f4f6}.settings-menu-item svg{flex-shrink:0;color:#6b7280}.dialog-overlay{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;z-index:110;padding:16px;box-sizing:border-box;overflow:hidden}.dialog-content{background:#fff;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a;max-width:50%;min-width:320px;width:fit-content;padding:24px}.dialog-content>div{margin:0 24px}.dialog-content .dialog-header{margin:0}.dialog-content .dialog-footer{margin:24px -24px -24px;padding:24px;border-top:1px solid #e5e7eb;background:#f9fafb;border-radius:0 0 8px 8px}.dialog-content.narrow-dialog{display:block;box-sizing:border-box;width:auto;max-width:420px;min-width:280px}.dialog-content.narrow-dialog>div{margin:0}.dialog-content.narrow-dialog .dialog-footer{margin:12px 0 0;padding:12px 0 0;border-top:1px solid #e5e7eb;background:transparent}.dialog-content--tall{display:flex;flex-direction:column;height:calc(100vh - 100px);max-height:calc(100vh - 100px);overflow:hidden}.dialog-content--tall .dialog-body{flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;margin:0;padding:0 16px 8px 0}input[type=date],input[type=time],input[type=number],input[type=text]{padding:8px;border-radius:6px;border:1px solid #e5e7eb;font-family:inherit;font-size:16px;color:inherit}.recharts-responsive-container{width:100%!important}.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.dnd-column{background:transparent;border:none;padding:0}.dnd-column-title{font-weight:600;margin-bottom:8px;text-align:center}.dnd-list{list-style:none;margin:0;padding:8px;min-height:160px;border:1px dashed #e5e7eb;border-radius:8px;background:#fff}.dnd-item{-webkit-user-select:none;user-select:none;padding:6px 10px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;margin-bottom:6px;cursor:grab;display:flex;align-items:center;gap:8px}.dnd-item .dnd-icon{flex:0 0 auto}.dnd-item .dnd-title{flex:1 1 auto}.dnd-empty{color:var(--muted);font-size:12px;text-align:center;padding:8px 0}.card-title{font-size:18px;font-weight:600;margin:4px 0 2px}.card-data{font-size:22px;font-weight:700;margin:2px 0 4px}.card-updated{font-size:12px;color:var(--muted);margin:2px 0}.switch-root{all:unset;display:inline-flex;align-items:center;width:42px;height:25px;background-color:#0000001a;border-radius:9999px;position:relative;cursor:pointer;transition:background-color .15s ease-in-out}.switch-root.checked{background-color:var(--accent)}.switch-thumb{display:block;width:21px;height:21px;background-color:#fff;border-radius:9999px;box-shadow:0 1px 2px #0000001a;transition:transform .15s ease-in-out;transform:translate(2px)}.switch-root.checked .switch-thumb{transform:translate(19px)}.header-date{font-size:12px;color:var(--muted)}.status-pill{display:inline-flex;align-items:center;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;background:#e5e7eb;color:#374151}.status-connected{background:#16a34a26;color:#15803d}.status-loading{background:#2563eb1f;color:#1d4ed8}.status-error{background:#dc262614;color:#b91c1c;border:1px solid rgba(220,38,38,.2);font-size:12px;margin-top:6px;padding:4px 8px;border-radius:8px;max-width:420px}.status-empty{background:#6b728026;color:#6b7280}.focus-panel{display:inline-flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;margin-bottom:0}.focus-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);line-height:1}.focus-select{border:none;background:transparent;font-size:14px;color:#111827;outline:none;height:100%}.hierarchy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}.directory-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.tabular-grid{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto minmax(0,1fr);gap:12px;align-items:start;min-width:0;height:calc(100vh - 120px);overflow:hidden}.tabular-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.tabular-toolbar-left{display:flex;align-items:center;gap:8px}.tabular-view-select{min-width:200px;padding:7px 10px;border:1.5px solid #d1d5db;border-radius:8px;background:#fff;color:#111827;font-size:13px}.tabular-card{min-height:220px;min-width:0;height:100%;display:flex;flex-direction:column}.tabular-card .card-content{padding:0;flex:1;min-height:0;display:flex;flex-direction:column;overflow-x:scroll}.tabular-wrap{width:100%;height:100%;flex:1;max-width:100%;min-width:0;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;overscroll-behavior-y:contain;border-radius:10px}.tabular-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.tabular-table th,.tabular-table td{border-bottom:1px solid #e5e7eb;border-right:1px solid #f1f5f9;padding:6px 8px;white-space:nowrap;vertical-align:middle;background:#fff}.tabular-table th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#475569;font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}.tabular-cell-input{width:160px;min-width:120px;padding:5px 7px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:13px}.tabular-cell-input:disabled{color:#9ca3af;background:#f8fafc;border-color:#e5e7eb}.tabular-id-cell{min-width:200px;max-width:280px;overflow:hidden;text-overflow:ellipsis;color:#64748b}.tabular-actions{display:flex;align-items:center;gap:6px}.tabular-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.03em;padding:2px 8px;border:1px solid transparent}.tabular-status--saved{background:#f1f5f9;color:#475569;border-color:#e2e8f0}.tabular-status--dirty{background:#fef3c7;color:#92400e;border-color:#fcd34d}.tabular-status--saving{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}.tabular-status--error{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.tabular-status--new{background:#e0f2fe;color:#0369a1;border-color:#7dd3fc}.tabular-row-error td{background:#fff7f7}.tabular-empty{text-align:center;color:#64748b;padding:24px 8px!important}.tabular-na{color:#94a3b8;text-align:center}.tabular-view-editor{display:flex;flex-direction:column;gap:12px}.tabular-view-columns{border:1px solid #e2e8f0;border-radius:8px;overflow:auto;max-height:360px}.tabular-view-column-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #f1f5f9}.tabular-view-column-row:last-child{border-bottom:none}.tabular-view-column-toggle{display:inline-flex;align-items:center;gap:8px;min-width:0}.tabular-view-column-actions{display:inline-flex;align-items:center;gap:6px}.stats-strip{grid-column:1 / -1;display:flex;flex-direction:column;gap:3px;padding:8px 12px 6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:2px}.stats-filtered-badge{display:inline-block;align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#b45309;background:#fef3c7;border:1px solid #fcd34d;border-radius:4px;padding:1px 7px;margin-bottom:2px}.stats-line1{font-size:13px;font-weight:600;color:#1e293b}.stats-line2{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:#374151;cursor:pointer;-webkit-user-select:none;user-select:none;min-height:20px}.stats-slide-label{font-weight:600;color:#64748b;margin-right:2px}.stats-slide-value{background:#e0f2fe;color:#0369a1;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:500}.stats-slide-unset{color:#9ca3af;font-size:12px}.stats-dots{display:inline-flex;align-items:center;gap:4px;margin-left:6px}.stats-dot{width:5px;height:5px;border-radius:50%;background:#cbd5e1;display:inline-block}.stats-dot--active{background:#0369a1}.directory-search-bar{grid-column:1 / -1;display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;padding:8px 12px;box-shadow:0 1px 4px #0f172a0d}.directory-search-input{flex:1;border:none;outline:none;font-size:14px;background:transparent;color:#111827}.directory-search-input::placeholder{color:#9ca3af}.directory-search-clear{display:flex;align-items:center;background:none;border:none;cursor:pointer;color:#9ca3af;padding:0 2px}.directory-search-clear:hover{color:#374151}.section-title{font-weight:600;margin-bottom:10px;font-size:16px}.subsection-title{font-weight:600;margin:10px 0 6px;font-size:14px;color:#374151}.tree-root{list-style:none;padding:0;margin:0}.tree-item{margin-bottom:8px}.tree-node{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:6px 10px;max-width:100%}.tree-node-warning{border-color:#dc2626}.tree-node-main{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}.tree-toggle{border:1px solid #e5e7eb;background:#fff;color:#6b7280;width:20px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.tree-toggle:hover{background:#f3f4f6}.tree-node-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:#6b7280;flex-shrink:0}.tree-node-text{display:flex;flex-direction:column;gap:4px;min-width:0}.tree-pill{font-size:10px;font-weight:600;text-transform:uppercase;padding:2px 6px;border-radius:999px;background:#e5e7eb;color:#374151}.tree-pill.entity{background:#2563eb26;color:#1d4ed8}.tree-pill.person{background:#16a34a26;color:#15803d}.tree-name{font-weight:600;white-space:normal;word-break:break-word}.tree-rel{font-size:12px;color:#6b7280;white-space:normal;word-break:break-word}.tree-cycle{font-size:12px;color:#dc2626}.tree-children{list-style:none;margin:8px 0 0 8px;padding:0 0 0 22px;border-left:2px dashed #e5e7eb}.relationship-list,.directory-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.relationship-list li{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px}.relationship-name{font-weight:600}.relationship-meta{font-size:12px;color:var(--muted)}.directory-item{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:10px}.directory-item-actions{margin-left:auto;display:inline-flex;align-items:center;gap:2px}.directory-edit-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:4px 6px;border:none;background:transparent;color:#9ca3af;border-radius:5px;cursor:pointer;transition:background .12s,color .12s}.directory-edit-btn:hover{background:#f1f5f9;color:#374151}.directory-scroll{max-height:60vh;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.directory-icon{width:20px;height:20px;color:#6b7280;flex-shrink:0}.directory-thumb{width:32px;height:32px;object-fit:contain;border-radius:4px;flex-shrink:0}.directory-thumb--round{border-radius:50%;object-fit:cover}.directory-name{font-weight:600}.directory-meta{font-size:12px;color:var(--muted)}.empty-text{font-size:12px;color:var(--muted);margin-top:8px}.editor-section{margin-top:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}.editor-help{font-size:13px;color:var(--muted);margin-bottom:10px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.form-grid{display:grid;gap:12px}.form-row{display:grid;gap:8px}.form-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.form-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.form-input,.form-select{padding:8px 10px;border-radius:8px;border:1px solid #e5e7eb;font-size:14px;background:#fff;color:#111827;min-width:140px}.form-input:focus,.form-select:focus{outline:none;box-shadow:0 0 0 2px #2563eb26;border-color:#2563eb80}.form-divider{height:1px;background:#e5e7eb;margin:4px 0}.dd-table{width:100%;border-collapse:collapse;font-size:13px}.dd-table thead{position:sticky;top:0;z-index:1;background:#f9fafb}.dd-table th{text-align:left;padding:6px 10px;background:#f9fafb;border-bottom:2px solid #e5e7eb;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;white-space:nowrap}.dd-table td{padding:8px 10px;border-bottom:1px solid #f3f4f6;vertical-align:middle;color:#111827}.dd-table tr:last-child td{border-bottom:none}.dd-table tr:hover td{background:#f9fafb}.dd-valid-values{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-header{position:fixed;top:0;left:0;right:0;z-index:100;background:var(--background, #fff);border-bottom:1px solid var(--border, #e2e8f0);padding:20px 6px}.app-content{max-width:90%;margin:0 auto;padding-top:120px;padding-left:16px;padding-right:16px}.settings-anchor{position:relative}.settings-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:210px;background:var(--background, #fff);border:1px solid var(--border, #e2e8f0);border-radius:8px;box-shadow:0 8px 24px #0f172a1f;z-index:200;padding:4px;display:flex;flex-direction:column}.settings-menu-item{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:14px;background:transparent;border:none;cursor:pointer;text-align:left;border-radius:5px;color:var(--foreground, #0f172a);width:100%;transition:background .1s}.settings-menu-item:hover{background:var(--accent, #f1f5f9)}.settings-menu-item--danger{color:#dc2626}.settings-menu-item--danger:hover{background:#fee2e2}.settings-menu-divider{height:1px;background:var(--border, #e2e8f0);margin:4px 0}.hv-section{display:flex;flex-direction:column;align-items:center;gap:4px}.hv-section-header{display:flex;align-items:center;gap:6px;margin-top:16px}.hv-section-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-foreground, #64748b)}.hv-section-add{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--border, #e2e8f0);background:transparent;cursor:pointer;color:var(--muted-foreground, #64748b);padding:0;transition:background .15s,color .15s,border-color .15s}.hv-section-add:hover{background:var(--accent, #f1f5f9);border-color:var(--primary, #3b82f6);color:var(--primary, #3b82f6)}.owner-editor{display:flex;flex-direction:column;gap:0}.owner-editor-empty{color:var(--muted-foreground, #64748b);font-size:13px;padding:8px 0 12px}.owner-editor-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border, #e2e8f0)}.owner-editor-name{flex:1;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-editor-pct-wrap{display:flex;align-items:center;gap:2px}.owner-editor-pct-input{width:72px!important;text-align:right}.owner-editor-pct-sign{font-size:13px;color:var(--muted-foreground, #64748b)}.owner-editor-remove{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:none;background:transparent;cursor:pointer;border-radius:4px;color:var(--muted-foreground, #64748b);padding:0;transition:background .15s,color .15s}.owner-editor-remove:hover{background:#fee2e2;color:#dc2626}.owner-editor-total{padding:10px 64px 6px 0;font-size:13px;color:var(--muted-foreground, #64748b);display:flex;justify-content:flex-end}.owner-editor-total.over{color:#dc2626}.owner-editor-over-msg{font-size:12px}.owner-search-section{margin-top:14px;display:flex;flex-direction:column;gap:6px}.owner-search-label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground, #64748b)}.owner-search-container{position:relative;display:flex;align-items:center}.owner-search-icon{position:absolute;left:10px;color:var(--muted-foreground, #64748b);pointer-events:none}.owner-search-input{padding-left:32px!important;width:100%}.owner-search-dropdown{border:1px solid var(--border, #e2e8f0);border-radius:6px;background:var(--background, #fff);box-shadow:0 4px 12px #0000001a;overflow:hidden;max-height:240px;overflow-y:auto}.owner-search-result{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:14px;cursor:pointer;transition:background .1s}.owner-search-result:hover{background:var(--accent, #f1f5f9)}.owner-search-result-kind{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground, #64748b);background:var(--accent, #f1f5f9);border-radius:3px;padding:1px 5px;flex-shrink:0}.owner-search-actions{display:flex;flex-direction:column;border-top:1px solid var(--border, #e2e8f0)}.owner-search-create{display:flex;align-items:center;gap:6px;padding:9px 12px;font-size:13px;background:transparent;border:none;cursor:pointer;text-align:left;color:var(--primary, #3b82f6);transition:background .1s}.owner-search-create:hover:not(:disabled){background:var(--accent, #f1f5f9)}.owner-search-create:disabled{opacity:.5;cursor:not-allowed}.dup-warning{margin-top:6px;padding:8px 12px;border-radius:6px;background:#fef9c3;border:1px solid #fde047;color:#713f12;font-size:13px;line-height:1.4}.fab-container{position:fixed;left:0;right:0;bottom:20px;display:flex;justify-content:center;gap:12px;pointer-events:none;z-index:40}.fab-add{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;box-shadow:0 10px 25px #0f172a26}.dialog-choice-grid{display:grid;gap:10px;margin-top:8px}.card .icon-row{display:flex;align-items:center;justify-content:center}.header-date{font-size:16px;margin-top:2px}input[type=date].no-native-picker::-webkit-calendar-picker-indicator{display:none}input[type=date].no-native-picker{-webkit-appearance:none;-moz-appearance:none;appearance:none}input[type=time].no-native-picker::-webkit-calendar-picker-indicator{display:none}input[type=time].no-native-picker{-webkit-appearance:none;-moz-appearance:none;appearance:none}.hierarchy-vertical{position:fixed;top:100px;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;overflow:auto;padding:35vh 0;scroll-behavior:smooth;cursor:grab;touch-action:none}.hierarchy-vertical.hierarchy-vertical--no-parents{padding-top:12vh;padding-bottom:30vh}.hierarchy-vertical.is-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.hv-stage{display:flex;flex-direction:column;align-items:center;width:max-content;min-width:100%;margin:0 auto}.hv-above{display:flex;flex-direction:column;align-items:center;width:100%}.hv-below{display:flex;flex-direction:column;align-items:flex-start;width:100%}.hv-owners-row,.hv-owned-row{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:900px;width:100%}.hv-neighbor-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:140px;min-height:80px;padding:3px;background:#fff;border:1.5px solid #e5e7eb;border-radius:10px;box-shadow:0 1px 4px #0f172a0f;cursor:pointer;text-align:center;transition:border-color .15s,box-shadow .15s}.hv-neighbor-box:hover{border-color:var(--accent);box-shadow:0 4px 12px #2563eb1f}.hv-neighbor-logo{max-width:56px;max-height:32px;object-fit:contain}.hv-neighbor-icon{color:#9ca3af}.hv-neighbor-photo{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}.hv-neighbor-name{font-size:13px;font-weight:500;color:#111827;line-height:1.3}.hv-neighbor-pct{font-size:12px;color:var(--muted)}.hv-neighbor-box--zero{border-style:dashed;opacity:.7}.hv-neighbor-box--zero .hv-neighbor-pct{color:#9ca3af;font-style:italic}.hv-neighbor-box--unknown{border-color:#fca5a5;background:#fff7f7;cursor:default}.hv-neighbor-box--unknown:hover{border-color:#f87171;box-shadow:0 4px 12px #dc26261f}.hv-neighbor-box--unknown .hv-neighbor-name{color:#dc2626}.hv-neighbor-box--unknown .hv-neighbor-pct{color:#dc2626;font-weight:600}.hv-neighbor-box--cyclic{border-color:#ef4444;background:#fff5f5;cursor:pointer}.hv-neighbor-box--cyclic:hover{border-color:#dc2626;box-shadow:0 4px 12px #dc262626}.hv-neighbor-box--cyclic .hv-neighbor-name{color:#dc2626}.hv-neighbor-cycle-badge{position:absolute;bottom:5px;right:6px;font-size:11px;font-weight:700;color:#ef4444;line-height:1;pointer-events:none}.hv-neighbor-actions{position:absolute;top:50%;right:-18px;transform:translateY(-50%);display:flex;flex-direction:column;gap:4px;opacity:0;pointer-events:none;transition:opacity .14s ease .12s,transform .14s ease .12s;z-index:3}.hv-neighbor-box:hover .hv-neighbor-actions,.hv-neighbor-box .hv-neighbor-actions:hover,.hv-neighbor-box:focus-within .hv-neighbor-actions{opacity:1;pointer-events:auto;transform:translateY(-50%);transition-delay:0s}.hv-neighbor-action-btn{width:18px;height:18px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#475569;display:flex;align-items:center;justify-content:center;padding:0;line-height:0;cursor:pointer;box-shadow:0 1px 3px #0f172a14;transition:background .14s ease,border-color .14s ease,color .14s ease}.hv-neighbor-action-btn:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.hv-explode-btn{position:absolute;bottom:5px;right:5px;width:20px;height:20px;border-radius:50%;border:1.5px solid #d1d5db;background:#f9fafb;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#6b7280;padding:0;line-height:0;transition:background .15s,border-color .15s,color .15s;z-index:1}.hv-explode-btn:hover,.hv-explode-btn--active{background:#dbeafe;border-color:#3b82f6;color:#2563eb}.hv-explode-all-btn{position:absolute;bottom:5px;right:28px;width:20px;height:20px;border-radius:50%;border:1.5px solid #d1d5db;background:#f9fafb;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#6b7280;padding:0;line-height:0;transition:background .15s,border-color .15s,color .15s;z-index:1}.hv-explode-all-btn:hover{background:#fef9c3;border-color:#ca8a04;color:#854d0e}.hv-focus-explode-all-btn{position:absolute;bottom:12px;right:16px;width:26px;height:26px;border-radius:50%;border:1.5px solid #d1d5db;background:#f9fafb;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#6b7280;padding:0;line-height:0;transition:background .15s,border-color .15s,color .15s;z-index:1}.hv-focus-explode-all-btn:hover{background:#fef9c3;border-color:#ca8a04;color:#854d0e}.hv-owned-column{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.hv-explode-indent{margin-left:152px}.hv-connector{width:2px;height:28px;background:#d1d5db;flex-shrink:0}.hv-below>.hv-connector{align-self:center}.hv-focus-box{position:relative;display:flex;flex-direction:column;align-items:center;align-self:center;justify-content:center;gap:10px;width:280px;min-height:160px;padding:28px 24px;background:#fff;border:2.5px solid var(--accent);border-radius:180px;box-shadow:0 4px 16px #2563eb21;text-align:center;cursor:pointer;transition:box-shadow .15s,border-color .15s}.hv-focus-box:hover{border-color:#1d4ed8;box-shadow:0 6px 24px #2563eb38}.hv-focus-actions{position:absolute;top:12px;right:14px;display:flex;align-items:center;gap:6px;opacity:0;pointer-events:none;transform:translateY(-2px);transition:opacity .14s ease,transform .14s ease;z-index:3}.hv-focus-box:hover .hv-focus-actions,.hv-focus-box:focus-within .hv-focus-actions,.hv-focus-actions:hover{opacity:1;pointer-events:auto;transform:translateY(0)}.hv-focus-action-btn{width:26px;height:26px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:0;cursor:pointer;box-shadow:0 1px 3px #0f172a1a;transition:background .14s ease,border-color .14s ease,color .14s ease}.hv-focus-action-btn:hover{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}@media (hover: none){.hv-focus-actions{opacity:1;pointer-events:auto;transform:translateY(0)}}.hv-focus-logo{max-width:80px;max-height:48px;object-fit:contain}.hv-focus-photo{width:56px;height:56px;border-radius:50%;object-fit:cover}.hv-focus-name{font-size:24px;font-weight:700;color:#111827;line-height:1.3}.hv-focus-counts{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:6px;font-size:12px;font-weight:500;color:#6b7280;letter-spacing:.01em}.hv-empty{font-size:13px;color:var(--muted);padding:8px 0}@keyframes export-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.export-spin{animation:export-spin 1s linear infinite}.export-progress-pill{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:8px;border:1px solid #bae6fd;background:#e0f2fe;font-size:13px;font-weight:500;color:#0369a1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-bottom:12px}.oc-minimap{position:fixed;bottom:16px;right:16px;background:#fff;border:1.5px solid #e5e7eb;border-radius:8px;box-shadow:0 2px 12px #0000001a;padding:4px;z-index:200;cursor:crosshair;-webkit-user-select:none;user-select:none}.oc-minimap-label{font-size:9px;font-weight:600;letter-spacing:.08em;color:#9ca3af;text-align:center;padding:2px 0 3px;text-transform:uppercase}html,body,#root{height:100%;margin:0;font-family:Inter,system-ui,Arial,sans-serif}body{background:#f8fafc;overflow-x:hidden;overscroll-behavior-y:none}.card{background:#fff;border-radius:12px;padding:12px;box-shadow:0 2px 8px #0206170f}.button{border:none;background:#2563eb;color:#fff;padding:8px 12px;border-radius:10px;cursor:pointer}.small{font-size:12px;color:#6b7280}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.center{text-align:center}.chartBox{height:240px}
