/* The diagram belongs to the report; green marks the checked address, not safety. */
body.workspace-ui .check-graph { border-top: 1px solid #dce3e5; padding: 22px 0; min-width: 0; }
body.workspace-ui .check-graph [hidden] { display: none !important; }
body.workspace-ui .check-graph-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
body.workspace-ui .check-graph-heading h3 { font: 600 18px/1.4 Arial, Helvetica, sans-serif; letter-spacing: -.02em; margin: 0 0 5px; color: #20292e; }
body.workspace-ui .check-graph-heading p { margin: 0; font-size: 13px; color: #56666e; line-height: 1.6; }
body.workspace-ui .check-graph-heading > button { flex: 0 0 auto; }
body.workspace-ui .check-graph-panel { margin-top: 22px; }
body.workspace-ui .check-graph-status { font-size: 13px; color: #56666e; margin: 0 0 16px; line-height: 1.6; }
body.workspace-ui .check-graph-toolbar { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
body.workspace-ui .check-graph-toolbar label { font-size: 12px; font-weight: 500; color: #56666e; display: block; margin: 0; }
body.workspace-ui .check-graph-toolbar label > :is(input,select) { display: block; margin-top: 6px; height: 40px; min-height: 40px; font-size: 13px; border-radius: 6px; }
body.workspace-ui .check-graph-search { flex: 1 1 180px; min-width: 0; }
body.workspace-ui .check-graph-zoom { display: flex; gap: 4px; }
body.workspace-ui .check-graph-zoom button { height: 40px; min-width: 40px; padding: 5px 12px; font-size: 15px; border-color: #a5b3b9; color: #354851; }
body.workspace-ui .check-graph-layout { display: grid; grid-template-columns: minmax(0,1fr) 272px; border: 1px solid #cbd5da; border-radius: 8px; overflow: hidden; min-width: 0; }
body.workspace-ui .check-graph-stage { min-width: 0; position: relative; display: flex; flex-direction: column; background: #f7f9fa; }
body.workspace-ui .check-graph-canvas { display: block; width: 100%; height: 490px; min-width: 0; touch-action: none; cursor: grab; user-select: none; }
body.workspace-ui .check-graph-canvas:active { cursor: grabbing; }
body.workspace-ui .check-graph-edge { fill: none; stroke: #9daeb6; stroke-width: 1.3; }
body.workspace-ui .check-graph-edge.is-selected { stroke: #376d91; stroke-width: 1.8; }
body.workspace-ui .check-graph-node { cursor: pointer; outline: none; }
body.workspace-ui .check-graph-node > circle:first-child { fill: #fff; stroke: #8298a4; stroke-width: 1.6; }
body.workspace-ui .check-graph-node.is-center > circle:first-child { fill: #eaf3dc; stroke: #547128; stroke-width: 2; }
body.workspace-ui .check-graph-node-dot { fill: #627983; stroke: none; }
body.workspace-ui .check-graph-node.is-center .check-graph-node-dot { fill: #547128; }
body.workspace-ui .check-graph-node.is-selected > circle:first-child { stroke: #376d91; stroke-width: 4; }
body.workspace-ui .check-graph-node.is-match > circle:first-child { fill: #fff1cc; stroke: #89651b; stroke-width: 3; }
body.workspace-ui .check-graph-node:focus-visible > circle:first-child { stroke: #20292e; stroke-width: 4; stroke-dasharray: 4 3; }
body.workspace-ui .check-graph-node text { font: 13px Arial, Helvetica, sans-serif; fill: #354851; paint-order: stroke; stroke: #f7f9fa; stroke-width: 4; stroke-linejoin: round; }
body.workspace-ui .check-graph-node.is-center text { font-weight: 600; fill: #354d1f; }
body.workspace-ui .check-graph-canvas.is-dense .check-graph-node:not(.is-center):not(.is-selected):not(.is-match) text { display: none; }
body.workspace-ui .check-graph-hint { padding: 12px 16px; margin: auto 0 0; font-size: 12px; line-height: 1.6; color: #56666e; border-top: 1px solid #dce3e5; }
body.workspace-ui .check-graph-inspector { border-left: 1px solid #cbd5da; padding: 22px 18px; background: #fff; max-height: 542px; overflow: auto; min-width: 0; }
body.internal-ui.workspace-ui[data-page="personal"] #wallet-check-result .check-graph-inspector h4 { font: 600 17px/1.45 Arial, Helvetica, sans-serif; color: #20292e; margin: 8px 0 10px; overflow-wrap: anywhere; letter-spacing: -.02em; }
body.workspace-ui .check-graph-kind, body.workspace-ui .check-graph-count { color: #56666e; font-size: 12px; margin: 0; line-height: 1.6; }
body.workspace-ui .check-graph-address { color: #354851; font: 12px/1.7 monospace; overflow-wrap: anywhere; user-select: all; margin: 0 0 16px; }
body.workspace-ui .check-graph-note { font-size: 13px; color: #354851; line-height: 1.6; overflow-wrap: anywhere; }
body.workspace-ui .check-graph-transfers { list-style: none; padding: 0; margin: 14px 0 0; }
body.workspace-ui .check-graph-transfers li { display: grid; gap: 5px; border-top: 1px solid #dce3e5; padding: 14px 0; }
body.workspace-ui .check-graph-direction { color: #56666e; font-size: 12px; }
body.workspace-ui .check-graph-peer { display: block; text-align: left; background: transparent; border: 0; border-radius: 3px; padding: 2px 0; color: #365321; font: 500 13px/1.5 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer; }
body.workspace-ui .check-graph-peer:hover { color: #20292e; }
body.workspace-ui .check-graph-value { color: #20292e; font-size: 13px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body.workspace-ui .check-graph-hash { font: 11px/1.6 monospace; color: #56666e; overflow-wrap: anywhere; user-select: all; }
body.workspace-ui .check-graph-time { color: #56666e; font-size: 11px; overflow-wrap: anywhere; }
body.workspace-ui .check-graph-footnote { font-size: 12px; color: #56666e; margin: 12px 0 0; line-height: 1.7; max-width: 85ch; }
body.workspace-ui .check-graph-matches { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 16px; padding: 12px 14px; border-left: 2px solid #547128; background: #f1f6e9; }
body.workspace-ui .check-graph-matches > span { font-size: 12px; color: #354851; }
@media (max-width: 1100px) {
    body.workspace-ui .check-graph-layout { grid-template-columns: minmax(0,1fr); }
    body.workspace-ui .check-graph-inspector { border-left: 0; border-top: 1px solid #cbd5da; max-height: 300px; }
    body.workspace-ui .check-graph-transfers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
    body.workspace-ui .check-graph-canvas { height: 400px; }
}
@media (max-width: 600px) {
    body.workspace-ui .check-graph-heading { align-items: flex-start; flex-wrap: wrap; }
    body.workspace-ui .check-graph-toolbar { gap: 10px; }
    body.workspace-ui .check-graph-search { flex-basis: 100%; }
    body.workspace-ui .check-graph-toolbar > label:not(.check-graph-search) { flex: 1; min-width: 0; }
    body.workspace-ui .check-graph-toolbar select { width: 100%; }
    body.workspace-ui .check-graph-zoom button { min-width: 34px; padding-inline: 8px; }
    body.workspace-ui .check-graph-canvas { height: 320px; }
    body.workspace-ui .check-graph-transfers { grid-template-columns: 1fr; }
    body.workspace-ui .check-graph-inspector { padding: 18px 14px; }
}
