/* SPDX-License-Identifier: LicenseRef-XRBC-Watchdog-1.0
 * Read-only market evidence. No animation, external assets, or dependencies.
 * Venue states: fresh | stale | unavailable. Coverage kinds: measured | partial
 * | unavailable. These labels express observed coverage, never model certainty.
 * Historical change directions: up | down | flat | unknown.
 * Scene data-pressure: buy | sell | balanced | unknown. Piece counts stay symbolic.
 */
.xlcastle .xlcastle-evidence{margin-top:20px;border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:14px;background:var(--xl-panel,#0d1d2b);color:var(--xl-text,#e0edf8);overflow:hidden;--xl-evidence-warn:#ecc17f;--xl-evidence-soft:rgba(152,190,217,.045);font-variant-numeric:tabular-nums}
.xlcastle-evidence *{box-sizing:border-box}
.xlcastle-evidence .xlcastle-evidence-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px 15px}
.xlcastle-evidence .xlcastle-evidence-eyebrow{margin:0 0 5px;color:var(--xl-muted,#94acbf);font:600 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.15px;text-transform:uppercase}
.xlcastle-evidence .xlcastle-evidence-head h3{margin:0;color:var(--xl-text,#e0edf8);font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.2px}
.xlcastle-evidence .xlcastle-evidence-intro{margin:0;padding:0 20px 17px;color:var(--xl-muted,#94acbf);font-size:12px;line-height:1.7;max-width:91ch}
.xlcastle-evidence .xlcastle-evidence-coverage,.xlcastle-evidence .xlcastle-evidence-status{display:inline-flex;align-items:center;gap:7px;width:max-content;max-width:100%;padding:5px 8px;border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:6px;color:var(--xl-muted,#94acbf);background:var(--xl-evidence-soft);font-size:11px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-coverage{flex:0 0 auto}
.xlcastle-evidence .xlcastle-evidence-coverage:before,.xlcastle-evidence .xlcastle-evidence-status:before{content:"";display:block;flex:0 0 auto;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.9}
.xlcastle-evidence [data-kind="measured"].xlcastle-evidence-coverage,.xlcastle-evidence [data-state="fresh"] .xlcastle-evidence-status{color:var(--xl-green,#5ce7b2);border-color:rgba(92,231,178,.23);background:rgba(92,231,178,.055)}
.xlcastle-evidence [data-kind="partial"].xlcastle-evidence-coverage,.xlcastle-evidence [data-state="stale"] .xlcastle-evidence-status{color:var(--xl-evidence-warn);border-color:rgba(236,193,127,.23);background:rgba(236,193,127,.055)}
.xlcastle-evidence [data-kind="unavailable"].xlcastle-evidence-coverage,.xlcastle-evidence [data-state="unavailable"] .xlcastle-evidence-status{color:var(--xl-muted,#94acbf);border-style:dashed}
.xlcastle-evidence .xlcastle-evidence-venues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px 20px}
.xlcastle-evidence .xlcastle-evidence-venue{min-width:0;padding:15px 15px 13px;border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:10px;background:linear-gradient(145deg,var(--xl-evidence-soft),transparent 80%)}
.xlcastle-evidence .xlcastle-evidence-venue-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}
.xlcastle-evidence .xlcastle-evidence-venue-title{margin:0;color:var(--xl-text,#e0edf8);font-size:14px;font-weight:600;line-height:1.5;letter-spacing:-.08px}
.xlcastle-evidence .xlcastle-evidence-pair{display:block;margin-top:3px;color:var(--xl-muted,#94acbf);font:400 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.2px}
.xlcastle-evidence .xlcastle-evidence-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 12px;margin:0}
.xlcastle-evidence .xlcastle-evidence-fact{min-width:0}
.xlcastle-evidence .xlcastle-evidence-facts dt{margin:0;color:var(--xl-muted,#94acbf);font-size:11px;font-weight:400;line-height:1.5}
.xlcastle-evidence .xlcastle-evidence-facts dd{margin:5px 0 0;color:var(--xl-text,#e0edf8);font-size:15px;font-weight:600;line-height:1.4;letter-spacing:-.2px;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-facts dd small{display:block;margin-top:3px;color:var(--xl-muted,#94acbf);font-size:10px;font-weight:400;line-height:1.5;letter-spacing:0}
.xlcastle-evidence .xlcastle-evidence-fact--buy dd{color:var(--xl-green,#5ce7b2)}
.xlcastle-evidence .xlcastle-evidence-fact--sell dd{color:var(--xl-blue,#69bcff)}
.xlcastle-evidence .xlcastle-evidence-timestamp{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;margin:15px 0 0;padding-top:11px;border-top:1px solid var(--xl-line,rgba(152,190,217,.16));color:var(--xl-muted,#94acbf);font-size:10px;line-height:1.65}
.xlcastle-evidence .xlcastle-evidence-timestamp time{color:var(--xl-text,#e0edf8);font-size:10px;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-note{margin:10px 0 0;color:var(--xl-muted,#94acbf);font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-note strong{color:var(--xl-text,#e0edf8);font-weight:500}
.xlcastle-evidence .xlcastle-evidence-source{color:var(--xl-blue,#69bcff);text-decoration:underline;text-decoration-color:rgba(105,188,255,.4);text-underline-offset:3px;font-size:11px;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-source:hover{text-decoration-color:currentColor}
.xlcastle-evidence .xlcastle-evidence-source:focus-visible,.xlcastle-evidence summary:focus-visible{outline:2px solid var(--xl-blue,#69bcff);outline-offset:4px;border-radius:3px}
.xlcastle-evidence .xlcastle-evidence-ledger,.xlcastle-evidence .xlcastle-evidence-history{padding:18px 20px 20px;border-top:1px solid var(--xl-line,rgba(152,190,217,.16))}
.xlcastle-evidence .xlcastle-evidence-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.xlcastle-evidence .xlcastle-evidence-section-head h4{margin:0;color:var(--xl-text,#e0edf8);font-size:13px;font-weight:600;line-height:1.5}
.xlcastle-evidence .xlcastle-evidence-section-note{color:var(--xl-muted,#94acbf);font-size:10px;line-height:1.5;text-align:right}
.xlcastle-evidence .xlcastle-evidence-ledger-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.xlcastle-evidence .xlcastle-evidence-ledger-card{min-width:0;padding:13px 14px;border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:8px;background:var(--xl-evidence-soft)}
.xlcastle-evidence .xlcastle-evidence-ledger-card h5{margin:0;color:var(--xl-text,#e0edf8);font-size:12px;font-weight:600;line-height:1.5}
.xlcastle-evidence .xlcastle-evidence-ledger-card .xlcastle-evidence-facts{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.xlcastle-evidence .xlcastle-evidence-ledger-card .xlcastle-evidence-facts dd{font-size:14px}
.xlcastle-evidence .xlcastle-evidence-band{display:inline-flex;padding:3px 7px;color:var(--xl-muted,#94acbf);background:var(--xl-evidence-soft);border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:5px;font:400 10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.xlcastle-evidence .xlcastle-evidence-history-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--xl-line,rgba(152,190,217,.16));border-radius:9px;overflow:hidden}
.xlcastle-evidence .xlcastle-evidence-change{min-width:0;padding:15px 16px;border-right:1px solid var(--xl-line,rgba(152,190,217,.16));background:var(--xl-evidence-soft)}
.xlcastle-evidence .xlcastle-evidence-change:last-child{border-right:0}
.xlcastle-evidence .xlcastle-evidence-change-label{display:block;color:var(--xl-muted,#94acbf);font-size:11px;line-height:1.5}
.xlcastle-evidence .xlcastle-evidence-change strong{display:block;margin-top:6px;color:var(--xl-text,#e0edf8);font-size:23px;font-weight:600;letter-spacing:-.55px;line-height:1.25;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-change[data-direction="up"] strong{color:var(--xl-green,#5ce7b2)}
.xlcastle-evidence .xlcastle-evidence-change[data-direction="down"] strong{color:var(--xl-red,#f18491)}
.xlcastle-evidence .xlcastle-evidence-change[data-direction="unknown"] strong{color:var(--xl-muted,#94acbf);font-size:17px;letter-spacing:-.15px}
.xlcastle-evidence .xlcastle-evidence-change small{display:block;margin-top:7px;color:var(--xl-muted,#94acbf);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-unavailable{display:flex;align-items:flex-start;gap:9px;margin:12px 0 0;padding:11px 12px;border:1px dashed var(--xl-line,rgba(152,190,217,.16));border-radius:7px;color:var(--xl-muted,#94acbf);font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-unavailable:before{content:"—";flex:0 0 auto;color:var(--xl-evidence-warn);font-weight:600}
.xlcastle-evidence .xlcastle-evidence-method{margin:0;padding:0 20px 17px}
.xlcastle-evidence .xlcastle-evidence-method summary{width:fit-content;max-width:100%;color:var(--xl-muted,#94acbf);font-size:11px;font-weight:500;line-height:1.6;cursor:pointer}
.xlcastle-evidence .xlcastle-evidence-method summary::marker{color:var(--xl-blue,#69bcff)}
.xlcastle-evidence .xlcastle-evidence-method>div{padding:9px 0 0;color:var(--xl-muted,#94acbf);font-size:11px;line-height:1.75;max-width:95ch}
.xlcastle-evidence .xlcastle-evidence-method p{margin:0 0 8px}
.xlcastle-evidence .xlcastle-evidence-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 15px;padding:11px 20px 13px;border-top:1px solid var(--xl-line,rgba(152,190,217,.16));color:var(--xl-muted,#94acbf);font-size:10px;line-height:1.6;overflow-wrap:anywhere}
.xlcastle-evidence .xlcastle-evidence-foot code{color:var(--xl-muted,#94acbf);font-size:10px}
.xlcastle-evidence .xlcastle-evidence-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Numeric state changes alter emphasis only. They add no animation and never
 * imply that each geometric piece is a real order or unit of XRP. */
.xlcastle[data-pressure="buy"] .xlcastle-buy-lane{opacity:.33}
.xlcastle[data-pressure="buy"] .xlcastle-offer-lane{opacity:.13}
.xlcastle[data-pressure="buy"] .xlcastle-unit--buy{fill-opacity:.9;stroke-opacity:1}
.xlcastle[data-pressure="buy"] .xlcastle-unit--xrp{fill-opacity:.46;stroke-opacity:.7}
.xlcastle[data-pressure="sell"] .xlcastle-buy-lane{opacity:.12}
.xlcastle[data-pressure="sell"] .xlcastle-offer-lane{opacity:.29}
.xlcastle[data-pressure="sell"] .xlcastle-sell-lane{opacity:.09}
.xlcastle[data-pressure="sell"] .xlcastle-unit--buy{fill-opacity:.45;stroke-opacity:.7}
.xlcastle[data-pressure="sell"] .xlcastle-unit--xrp,.xlcastle[data-pressure="sell"] .xlcastle-unit--sell{fill-opacity:.9;stroke-opacity:1}
.xlcastle[data-pressure="balanced"] .xlcastle-buy-lane,.xlcastle[data-pressure="balanced"] .xlcastle-offer-lane{opacity:.2}
.xlcastle[data-pressure="unknown"] .xlcastle-unit-anchor{opacity:.38}
.xlcastle[data-pressure="unknown"] .xlcastle-buy-lane,.xlcastle[data-pressure="unknown"] .xlcastle-offer-lane,.xlcastle[data-pressure="unknown"] .xlcastle-sell-lane{opacity:.035}
.xlcastle[data-pressure="unknown"] .xlcastle-nexus-light{visibility:hidden}
@media(max-width:800px){.xlcastle-evidence .xlcastle-evidence-venues{grid-template-columns:1fr}.xlcastle-evidence .xlcastle-evidence-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.xlcastle-evidence .xlcastle-evidence-history-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.xlcastle-evidence .xlcastle-evidence-change:nth-child(2){border-right:0}.xlcastle-evidence .xlcastle-evidence-change:nth-child(3){grid-column:1/-1;border-top:1px solid var(--xl-line,rgba(152,190,217,.16))}}
@media(max-width:560px){.xlcastle .xlcastle-evidence{margin-top:16px;border-radius:11px}.xlcastle-evidence .xlcastle-evidence-head{align-items:flex-start;flex-direction:column;gap:10px;padding:16px 14px 12px}.xlcastle-evidence .xlcastle-evidence-head h3{font-size:16px}.xlcastle-evidence .xlcastle-evidence-intro{padding:0 14px 15px;font-size:12px}.xlcastle-evidence .xlcastle-evidence-venues{padding:0 14px 15px;gap:10px}.xlcastle-evidence .xlcastle-evidence-venue{padding:13px 12px 11px}.xlcastle-evidence .xlcastle-evidence-venue-title{font-size:14px}.xlcastle-evidence .xlcastle-evidence-status{font-size:10px;padding:4px 6px;gap:5px}.xlcastle-evidence .xlcastle-evidence-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.xlcastle-evidence .xlcastle-evidence-facts dt{font-size:11px}.xlcastle-evidence .xlcastle-evidence-facts dd{font-size:16px}.xlcastle-evidence .xlcastle-evidence-timestamp,.xlcastle-evidence .xlcastle-evidence-timestamp time{font-size:11px}.xlcastle-evidence .xlcastle-evidence-ledger,.xlcastle-evidence .xlcastle-evidence-history{padding:16px 14px}.xlcastle-evidence .xlcastle-evidence-section-head{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:12px}.xlcastle-evidence .xlcastle-evidence-section-note{text-align:left;font-size:11px}.xlcastle-evidence .xlcastle-evidence-ledger-grid{grid-template-columns:1fr;gap:10px}.xlcastle-evidence .xlcastle-evidence-ledger-card{padding:12px}.xlcastle-evidence .xlcastle-evidence-change{padding:13px 12px}.xlcastle-evidence .xlcastle-evidence-change strong{font-size:22px}.xlcastle-evidence .xlcastle-evidence-change small{font-size:11px}.xlcastle-evidence .xlcastle-evidence-change-label{font-size:11px}.xlcastle-evidence .xlcastle-evidence-note,.xlcastle-evidence .xlcastle-evidence-unavailable{font-size:12px}.xlcastle-evidence .xlcastle-evidence-source{font-size:12px}.xlcastle-evidence .xlcastle-evidence-method{padding:0 14px 15px}.xlcastle-evidence .xlcastle-evidence-method summary,.xlcastle-evidence .xlcastle-evidence-method>div{font-size:12px}.xlcastle-evidence .xlcastle-evidence-foot{padding:10px 14px 12px;font-size:11px}}
@media(max-width:350px){.xlcastle-evidence .xlcastle-evidence-venue-head{flex-direction:column;gap:8px}.xlcastle-evidence .xlcastle-evidence-history-strip{grid-template-columns:1fr}.xlcastle-evidence .xlcastle-evidence-change{border-right:0;border-bottom:1px solid var(--xl-line,rgba(152,190,217,.16))}.xlcastle-evidence .xlcastle-evidence-change:nth-child(3){grid-column:auto;border-top:0;border-bottom:0}}
[data-theme="light"] .xlcastle .xlcastle-evidence,body.light .xlcastle .xlcastle-evidence,html.light .xlcastle .xlcastle-evidence{--xl-evidence-warn:#86621c;--xl-evidence-soft:rgba(46,88,114,.035)}
@media(forced-colors:active){.xlcastle .xlcastle-evidence,.xlcastle-evidence .xlcastle-evidence-venue,.xlcastle-evidence .xlcastle-evidence-ledger-card,.xlcastle-evidence .xlcastle-evidence-history-strip{border:1px solid CanvasText}.xlcastle-evidence .xlcastle-evidence-coverage,.xlcastle-evidence .xlcastle-evidence-status{color:CanvasText;border-color:CanvasText}.xlcastle-evidence .xlcastle-evidence-source{color:LinkText}}
@media print{.xlcastle .xlcastle-evidence{break-inside:avoid;background:#fff;color:#111;border-color:#999}.xlcastle-evidence .xlcastle-evidence-venues,.xlcastle-evidence .xlcastle-evidence-ledger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xlcastle-evidence .xlcastle-evidence-history-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.xlcastle-evidence .xlcastle-evidence-change:nth-child(3){grid-column:auto;border-top:0}.xlcastle-evidence .xlcastle-evidence-change:nth-child(2){border-right:1px solid #999}}
