:root{--risk-bg:#f4f6fa;--risk-surface:#fff;--risk-surface-muted:#f8fafc;--risk-border:#e6e9f0;--risk-text:#0f172a;--risk-text-secondary:#64748b;--risk-primary:#2563eb;--risk-primary-soft:#eff6ff;--risk-shadow-card:0 1px 2px #0f172a0a;--risk-header-height:56px;--risk-font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace}*{box-sizing:border-box}body{background:var(--risk-bg);color:var(--risk-text);-webkit-font-smoothing:antialiased;margin:0;font-family:Inter,PingFang SC,Hiragino Sans GB,Microsoft YaHei,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow-x:hidden}.ant-card{box-shadow:var(--risk-shadow-card)}.ant-tag{border-radius:6px;font-weight:500}.ant-tag[class]:not([class*=fund-flow-]){border-color:#0000}.ant-tag-default{color:#475569;background:#f1f5f9}.ant-table-wrapper .ant-table{font-variant-numeric:tabular-nums}.ant-table-wrapper .ant-table-thead>tr>th{white-space:nowrap;font-size:12px;font-weight:600}.ant-statistic .ant-statistic-content{font-variant-numeric:tabular-nums}#root{min-width:0}.app-shell{background:var(--risk-bg);min-height:100vh}.app-shell>.ant-layout{min-width:0}.app-sider{border-right:1px solid var(--risk-border);align-self:flex-start;height:100vh;position:sticky;top:0;overflow-y:auto}.app-mobile-drawer .ant-drawer-body{background:#fff}.brand{border-bottom:1px solid var(--risk-border);align-items:center;gap:12px;min-height:68px;margin-bottom:8px;padding:14px 18px;display:flex}.brand-collapsed{justify-content:center;padding:14px 12px}.brand-mark{color:#fff;background:linear-gradient(135deg,#1d4ed8,#3b82f6);border-radius:10px;flex:none;place-items:center;width:36px;height:36px;font-weight:800;display:grid;box-shadow:0 4px 10px #2563eb47}.brand-title.ant-typography{margin:0;font-size:16px;line-height:1.3}.brand-subtitle{flex-wrap:wrap;min-width:0;font-size:12px;display:flex}.brand-subtitle .ant-typography{font-size:12px}.brand-network-tag{flex:none;margin-inline-end:0;font-weight:700}.app-menu.ant-menu{border-inline-end:none;font-weight:500}.app-header{z-index:100;height:auto;min-height:var(--risk-header-height);-webkit-backdrop-filter:saturate(180%)blur(8px);backdrop-filter:saturate(180%)blur(8px);border-bottom:1px solid var(--risk-border);background:#ffffffeb;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 22px;line-height:1.5;display:flex;position:sticky;top:0}.header-left{flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0;display:flex}.header-title{white-space:nowrap;flex:none;margin-inline-end:4px;font-size:16px}.header-network-tag{flex:none;margin-inline-end:0;font-weight:700}.header-actions{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.header-actions>.ant-btn{height:30px;padding-inline:10px;font-size:13px}.header-principal-copy{font-family:var(--risk-font-mono)}.header-role-list{align-items:center;gap:6px;min-width:0;max-width:min(42vw,520px);display:flex;overflow-x:auto}.header-role-tag{flex:none;margin-inline-end:0}.header-mode-tag{text-overflow:ellipsis;white-space:nowrap;flex:none;max-width:min(40vw,480px);margin-inline-end:0;font-weight:600;overflow:hidden}.header-principal-copy{flex:none}.header-display-name-edit{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;max-width:180px;overflow:hidden}.app-content{width:100%;min-width:0;padding:20px 22px 32px}.page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.page-title.ant-typography{letter-spacing:0;margin:0;font-size:22px;font-weight:650;line-height:1.3}.page-subtitle.ant-typography{margin:4px 0 0;font-size:13px}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.table-card>.ant-card-body>.toolbar{border-bottom:1px solid var(--risk-border);margin-bottom:0}.toolbar>.ant-space{min-width:0}.pid-fund-flow-query{flex:720px;justify-content:flex-end;min-width:0}.pid-fund-flow-input{width:clamp(480px,40vw,640px);max-width:100%}.source-notice{margin-bottom:14px}.withdraw-search-input{width:clamp(260px,32vw,440px);max-width:100%}.withdraw-id-cell{font-weight:600}.clickable-row{cursor:pointer}.clickable-row:hover .withdraw-id-cell{color:var(--risk-primary)}.dashboard-status-strip{border:1px solid var(--risk-border);background:var(--risk-surface);box-shadow:var(--risk-shadow-card);border-radius:10px;flex-wrap:wrap;align-items:center;gap:10px 28px;margin-bottom:12px;padding:12px 18px;display:flex}.dashboard-status-item{align-items:center;gap:8px;min-width:0;display:flex}.dashboard-status-item .ant-tag{margin-inline-end:0}.metric-grid{grid-template-columns:repeat(6,minmax(150px,1fr));gap:12px;margin-bottom:16px;display:grid}.metric-card .ant-card-body{padding:16px 18px}.metric-card .ant-statistic-title{margin-bottom:6px;font-size:13px}.metric-card .ant-statistic-content{font-size:26px;font-weight:650;line-height:1.25}.metric-card .ant-statistic-content-suffix{color:var(--risk-text-secondary);margin-inline-start:8px;font-size:13px;font-weight:500}.metric-card-amount .ant-statistic-content{font-size:18px;line-height:32.5px}.metric-card-attention{border-inline-start:3px solid #f59e0b}.metric-card-attention .ant-statistic-content{color:#b45309}.content-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.6fr);gap:16px;display:grid}.content-grid>*{min-width:0}.panel-card,.table-card{margin-bottom:16px}.table-card .ant-card-body{padding:0}.table-card .ant-table-wrapper{border-radius:0 0 10px 10px;overflow:hidden}.table-card .ant-table-tbody>tr:last-child>td{border-bottom:none}.table-card .ant-table-pagination.ant-pagination{border-top:1px solid var(--risk-border);margin:0;padding-block:12px}.table-card .ant-table-pagination{padding-inline:12px}.table-card .ant-table-cell{overflow-wrap:anywhere}.rbac-table-card .ant-tabs-nav-list{margin-left:16px}.log-tabs .ant-tabs-nav{margin:0 16px}.log-tabs .ant-tabs-content-holder{padding:0 16px 16px}.json-block{color:#0f172a;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;width:100%;max-height:280px;margin:8px 0 0;padding:10px 12px;font-size:12px;line-height:1.55;overflow:auto}.rule-result-list{width:100%}.rule-result{background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;padding:10px}.rule-detail-summary{margin-top:8px}.rule-result-description{margin-top:4px;display:block}.rule-explain-icon{color:#64748b;cursor:help;font-size:13px}.transfer-graph-panel{width:100%}.transfer-graph-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.transfer-graph{width:100%}.transfer-graph-meta{flex-wrap:wrap;gap:6px;display:flex}.transfer-graph-canvas-wrap{background-color:#fff;background-image:radial-gradient(circle at 20px 20px,#e5e7eb 1px,#0000 1px),none;background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:28px 28px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border:1px solid #e5e7eb;border-radius:8px;width:100%;min-height:320px;overflow:auto}.transfer-graph-canvas-wrap canvas{display:block}.transfer-graph-empty{background:#fff;border:1px solid #e5e7eb;border-radius:8px;place-items:center;min-height:180px;display:grid}.transfer-graph-token{margin-right:0}.fund-flow-card .ant-card-body{padding:0}.fund-flow-diagram{color:#f8fafc;background:#182235;border-radius:8px;width:100%;min-height:360px;position:relative;overflow:visible}.fund-flow-header{border-bottom:1px solid #cbd5e12e;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px 12px;display:flex}.fund-flow-title{letter-spacing:0;margin:0 0 4px;color:#fff!important}.fund-flow-root{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;color:#bae6fd!important}.fund-flow-root .ant-typography-copy{color:#38bdf8}.fund-flow-stats{justify-content:flex-end;max-width:760px}.fund-flow-stat{color:#e5e7eb;background:#1e293bd1;border:1px solid #cbd5e147;border-radius:8px;margin-right:0;font-weight:600}.fund-flow-stat-inbound{color:#bbf7d0;border-color:#34d39966}.fund-flow-stat-outbound{color:#fecdd3;border-color:#fb71856b}.fund-flow-stat-related{color:#bfdbfe;border-color:#60a5fa6b}.fund-flow-legend{flex-wrap:wrap;gap:8px;padding:12px 20px 0;display:flex}.fund-flow-legend-tag{border-width:1px;align-items:center;gap:6px;margin-right:0;font-weight:600;display:inline-flex}.fund-flow-legend-swatch{border-radius:999px;flex:none;width:22px;height:7px;box-shadow:0 0 10px #38bdf838}.fund-flow-summary-strip{flex-wrap:wrap;gap:8px;padding:12px 20px 0;display:flex}.fund-flow-summary-tag{color:#e5e7eb;background:#1e293bd6;border:1px solid #cbd5e14d;border-radius:8px;margin-right:0;font-weight:700}.fund-flow-summary-balance{color:#bae6fd;border-color:#22d3ee7a}.fund-flow-summary-tax{color:#d9f99d;border-color:#84cc167a}.fund-flow-summary-warning{color:#fde68a;border-color:#fbbf2485}.fund-flow-scroll{background:#182235;width:100%;padding:14px 20px 20px;position:relative;overflow:visible}.fund-flow-svg{background:#223047;border:1px solid #cbd5e129;width:100%;min-width:980px;height:auto;display:block}.fund-flow-bg{fill:#223047}.fund-flow-lane-label{text-anchor:middle;dominant-baseline:middle;letter-spacing:0;font-size:13px;font-weight:800}.fund-flow-lane-label-inbound{fill:#bbf7d0}.fund-flow-lane-label-outbound{fill:#fecdd3}.fund-flow-pipe-hitbox{fill:none;stroke:#0000;pointer-events:stroke;cursor:pointer;outline:none}.fund-flow-pipe{stroke:none;opacity:.9;transition:opacity .16s,filter .16s}.fund-flow-pipe-shadow{fill:#0f172a;stroke:none;opacity:.42}.fund-flow-hub-body{fill:url(#fund-flow-gradient-hub);stroke:#bae6fd47;stroke-width:1.2px;opacity:.68;filter:drop-shadow(0 10px 18px #0f172a42)}.fund-flow-pipe-branch:hover .fund-flow-pipe,.fund-flow-pipe-branch:focus-within .fund-flow-pipe{opacity:1;filter:brightness(1.18)saturate(1.16)}.fund-flow-pipe-branch-selected .fund-flow-pipe{opacity:1;filter:brightness(1.24)saturate(1.22)drop-shadow(0 0 10px #7dd3fc57)}.fund-flow-pipe-branch:hover .fund-flow-pipe-shadow,.fund-flow-pipe-branch:focus-within .fund-flow-pipe-shadow{opacity:.56}.fund-flow-pipe-branch-selected .fund-flow-pipe-shadow{opacity:.62}.fund-flow-detail-card{margin-top:12px}.fund-flow-detail-title{min-width:0}.fund-flow-detail-summary{flex-wrap:wrap;gap:8px;padding:16px 16px 0;display:flex}.fund-flow-tooltip{z-index:1080;color:#e5e7eb;pointer-events:none;background:#1e293bf0;border:1px solid #cbd5e13d;border-radius:8px;width:min(360px,100vw - 24px);max-width:calc(100vw - 24px);max-height:280px;padding:14px;position:fixed;overflow:auto;box-shadow:0 18px 44px #0f172a61}.fund-flow-tooltip-title{color:#fff;font-size:14px;font-weight:800}.fund-flow-tooltip-subtitle{color:#cbd5e1;overflow-wrap:anywhere;margin-top:3px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.fund-flow-tooltip-grid{background:#0f172a75;border-radius:8px;grid-template-columns:max-content 1fr;gap:4px 12px;margin-top:10px;padding:10px;font-size:12px;display:grid}.fund-flow-tooltip-grid span{color:#94a3b8}.fund-flow-tooltip-grid strong{color:#f8fafc;text-align:right}.fund-flow-tooltip-lines{gap:8px;margin-top:10px;display:grid}.fund-flow-tooltip-line{border-top:1px solid #94a3b829;padding-top:8px}.fund-flow-tooltip-line-head{color:#f8fafc;justify-content:space-between;gap:10px;font-size:12px;font-weight:700;display:flex}.fund-flow-tooltip-line-head span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.fund-flow-tooltip-line-head strong{color:#93c5fd;flex:none}.fund-flow-tooltip-line-meta{color:#94a3b8;margin-top:4px;font-size:11px;line-height:1.45}.fund-flow-tooltip-more{color:#bae6fd;font-size:12px;font-weight:700}.fund-flow-refreshing{z-index:1;color:#bae6fd;background:#082f49db;border:1px solid #38bdf873;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;position:absolute;top:24px;right:32px}.fund-flow-diagram-empty,.fund-flow-diagram-loading{place-items:center;padding:48px 20px;display:grid}.fund-flow-diagram-empty .ant-empty-description{color:#cbd5e1}.fund-flow-diagram-loading .ant-skeleton{width:min(720px,100%)}.fund-flow-diagram-loading .ant-skeleton-title,.fund-flow-diagram-loading .ant-skeleton-paragraph>li{background:#94a3b833!important}.withdraw-detail-page{width:100%}.withdraw-detail-actions{justify-content:flex-end}.detail-section,.withdraw-detail-page .transfer-graph-panel{border:1px solid var(--risk-border);background:var(--risk-surface);box-shadow:var(--risk-shadow-card);border-radius:10px;padding:16px 18px}.detail-section>h5.ant-typography:first-child{margin-top:0;margin-bottom:12px}.detail-section .json-block{margin-top:0}.withdraw-detail-descriptions .ant-descriptions-view{background:var(--risk-surface);box-shadow:var(--risk-shadow-card)}.withdraw-detail-descriptions .ant-descriptions-item-label{white-space:nowrap;width:136px;min-width:136px}.withdraw-detail-label-action{flex-wrap:nowrap}.special-pid-note{max-width:720px}.special-pid-note .ant-alert-description{overflow-wrap:anywhere}.withdraw-rule-table .ant-table{table-layout:fixed}.withdraw-rule-table .ant-table-thead>tr>th{white-space:nowrap}.withdraw-rule-table .ant-table-cell{vertical-align:top;white-space:normal}.withdraw-rule-table .ant-table-row{cursor:pointer}.withdraw-rule-cell{width:100%;min-width:0}.withdraw-rule-heading{max-width:100%}.withdraw-rule-title{overflow-wrap:anywhere;line-height:1.35}.withdraw-rule-description{overflow-wrap:break-word;line-height:1.45;display:block}.withdraw-rule-meta{max-width:100%}.withdraw-rule-params,.withdraw-rule-context,.withdraw-rule-message{overflow-wrap:anywhere;max-width:100%;line-height:1.45;display:inline-block}.withdraw-rule-message{-webkit-line-clamp:4;line-clamp:4;cursor:pointer;-webkit-box-orient:vertical;margin-bottom:0;display:-webkit-box;overflow:hidden}.withdraw-rule-message-tooltip{align-items:flex-start;gap:8px;max-width:560px;max-height:min(60vh,480px);margin-bottom:0;display:flex;overflow:hidden}.withdraw-rule-message-tooltip-text{color:#111827;white-space:pre-wrap;overflow-wrap:anywhere;flex:auto;max-height:min(60vh,480px);margin-bottom:0;padding-right:4px;font-size:13px;line-height:1.6;overflow:auto}.withdraw-rule-tooltip .ant-tooltip-inner{background:#fff;border:1px solid #e5e7eb;border-radius:12px;max-height:min(60vh,520px);padding:14px 16px;overflow:hidden;box-shadow:0 16px 36px #0f172a24}.withdraw-rule-tooltip .ant-tooltip-arrow:before{background:#fff}.withdraw-rule-tooltip-copy{color:#2563eb;background:#eff6ff;border-radius:8px;flex:none;width:28px;min-width:28px;height:28px;padding:0}.withdraw-rule-tooltip-copy:hover,.withdraw-rule-tooltip-copy:focus{color:#1d4ed8;background:#dbeafe}.withdraw-rule-filter{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:4px}.withdraw-rule-filter .ant-segmented-item{color:#1e3a8a;min-width:84px;font-weight:600}.withdraw-rule-filter .ant-segmented-item-selected{color:#fff;box-shadow:none;background:#2563eb}.withdraw-rule-filter .ant-segmented-thumb{box-shadow:none;background:#2563eb}.withdraw-subaccounts-toggle{color:#6b7280;width:24px;min-width:24px;height:24px;padding:0}.withdraw-subaccounts-toggle:hover,.withdraw-subaccounts-toggle:focus{color:#2563eb;background:#eff6ff}.actor-primary{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-weight:600}.actor-role{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:500}.actor-action{word-break:break-all;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:500}.log-linked-row-change{background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;padding:10px}.mono-cell{font-family:var(--risk-font-mono);font-size:12px}.number-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.principal-text{overflow-wrap:anywhere;word-break:break-word}.pid-fund-flow-link{max-width:100%}.pid-fund-flow-button{width:24px;min-width:24px;height:24px}.asset-allocated-summary{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.asset-allocated-value{color:#1d4ed8;text-align:right;overflow-wrap:anywhere;font-size:24px;font-weight:700;line-height:1.2}@media (width<=640px){.asset-allocated-summary{flex-direction:column;align-items:flex-start}.asset-allocated-value{text-align:left}}.status-line{align-items:center;gap:8px;display:flex}.route-loading,.login-shell{background:var(--risk-bg);place-items:center;min-height:100vh;display:grid}.app-content>.route-loading{min-height:40vh}.page-error{place-items:center;min-height:40vh;display:grid}.page-error .ant-result-content{text-align:center}.page-error-detail{font-family:var(--risk-font-mono);overflow-wrap:anywhere;font-size:12px}.login-shell{padding:24px 16px}.login-card{border-radius:14px;width:min(430px,100vw - 32px);box-shadow:0 12px 32px #0f172a14}.login-card .ant-alert-description{overflow-wrap:anywhere;max-height:132px;overflow:auto}.local-dev-account{border:1px solid var(--risk-border);background:var(--risk-surface-muted);border-radius:8px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.login-title-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.login-network-tag{margin-inline-end:0;font-weight:700}.login-network-alert{border-width:2px}.no-permission-shell{padding:24px}.no-permission-shell .ant-result{background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:min(520px,100vw - 32px);padding:36px 24px}.no-permission-principal{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}@media (width<=1180px){.metric-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.content-grid{grid-template-columns:1fr}}@media (width<=760px){.app-shell{min-height:100dvh}.app-content{padding:12px}.app-header{align-items:flex-start;padding:10px 12px;position:static}.header-left,.header-actions{width:100%}.header-left{gap:8px}.header-title{text-overflow:ellipsis;flex:auto;min-width:120px;overflow:hidden}.header-network-tag,.header-mode-tag,.header-freeze-button,.header-role-list,.header-display-name-edit,.header-principal-copy{max-width:100%}.header-mode-tag{flex:100%}.header-actions{gap:8px}.header-role-list{flex:100%;order:2}.header-actions>.ant-btn,.header-display-name-edit,.header-principal-copy{flex:auto;min-width:0}.page-heading{flex-direction:column;align-items:stretch;gap:10px}.page-title.ant-typography{font-size:20px}.page-subtitle{font-size:13px}.toolbar{align-items:stretch;gap:8px}.toolbar>.ant-space{width:100%}.toolbar .ant-space-item{flex:100%;min-width:0}.toolbar .ant-select,.toolbar .ant-input,.toolbar .ant-input-affix-wrapper,.toolbar .ant-picker,.toolbar .ant-btn{width:100%!important}.toolbar>.ant-typography{text-align:left;width:100%}.pid-fund-flow-query{justify-content:flex-start;width:100%}.pid-fund-flow-query .ant-space-item{flex:100%;min-width:0}.pid-fund-flow-input,.pid-fund-flow-query .ant-btn{width:100%}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.table-card .ant-table-wrapper{overflow-x:auto}.table-card .ant-table-pagination{justify-content:flex-start;row-gap:8px;padding:12px}.fund-flow-header{flex-direction:column;padding:14px 14px 10px}.fund-flow-stats{justify-content:flex-start;max-width:100%}.fund-flow-legend,.fund-flow-summary-strip{padding-inline:14px}.fund-flow-scroll{padding:12px 14px 16px;overflow:auto visible}.fund-flow-svg{min-width:760px}.transfer-graph-toolbar{flex-direction:column;align-items:stretch}.transfer-graph-toolbar .ant-space{width:100%}.withdraw-detail-actions{justify-content:flex-start;width:100%}.withdraw-detail-descriptions .ant-descriptions-view{overflow-x:auto}.log-tabs .ant-tabs-nav,.log-tabs .ant-tabs-content-holder{margin-inline:12px;padding-inline:0}}@media (width<=520px){.metric-grid{grid-template-columns:1fr}.app-content{padding:10px}.fund-flow-svg{min-width:680px}.fund-flow-tooltip{max-height:min(56vh,360px)}.login-shell{padding:12px}.login-card{width:100%}}
