/* The component is mounted only above 900px by cockpit-core. */
@media (min-width: 901px) {
    .opc-cockpit.opc-finance {
        --finance-ink: #edf3ef;
        --finance-muted: #a0b4c0;
        --finance-mint: #7dd8c6;
        --finance-blue: #87bffa;
        --finance-rose: #ed9c94;
        --finance-amber: #dfb978;
        position: relative;
        overflow: hidden;
        isolation: isolate;
        margin-bottom: 24px;
        padding: 25px 27px 0;
        border: 1px solid rgba(135, 191, 250, .17);
        border-radius: 18px;
        color: var(--finance-ink);
        background: radial-gradient(ellipse at 35% 35%, rgba(35, 81, 97, .2), transparent 65%), #102333;
        box-shadow: 0 16px 40px rgba(0, 10, 20, .18), inset 0 1px 0 rgba(237, 243, 239, .04);
        font-family: inherit;
    }
    .opc-finance .opc-cockpit-heading {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        margin: 0 0 19px;
    }
    .opc-finance .opc-cockpit-heading h3 { margin: 0; font-size: 23px; line-height: 1.4; letter-spacing: .02em; font-weight: 650; color: var(--finance-ink); }
    .opc-finance .opc-cockpit-heading p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: var(--finance-muted); }
    .opc-finance .opc-finance-scope { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 11px; line-height: 2; padding-top: 4px; color: var(--finance-muted); }
    .opc-finance .opc-finance-scope i { width: 5px; height: 5px; border-radius: 50%; background: var(--finance-mint); box-shadow: 0 0 8px rgba(125, 216, 198, .3); }
    .opc-finance .opc-cockpit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 29%); gap: 0; align-items: stretch; }
    .opc-finance .opc-cockpit-scene { min-width: 0; padding: 14px 23px 22px 0; }
    .opc-finance .opc-finance-scene-caption { display: flex; justify-content: space-between; gap: 12px; padding: 0 2px; color: var(--finance-muted); font-size: 11px; }
    .opc-finance .opc-finance-scene-caption span:first-child { color: #bfd2da; }
    .opc-finance .opc-finance-bridge { display: block; width: 100%; height: auto; overflow: visible; margin: 16px 0 0; animation: opc-finance-reveal 420ms ease-out 1 both; }
    .opc-finance .opc-finance-floor { stroke: rgba(135, 191, 250, .18); stroke-width: 1; }
    .opc-finance .opc-finance-floor-grid { fill: none; stroke: rgba(135, 191, 250, .08); stroke-width: 1; }
    .opc-finance .opc-finance-grid-line { stroke: rgba(135, 191, 250, .10); stroke-dasharray: 3 7; fill: none; }
    .opc-finance .opc-finance-axis { fill: #94acb9; font-size: 10px; font-variant-numeric: tabular-nums; }
    .opc-finance .opc-finance-axis.is-zero { fill: #cadbdc; font-size: 12px; }
    .opc-finance .opc-finance-zero { stroke: #829ca7; stroke-width: 1; stroke-dasharray: 3 5; opacity: .68; }
    .opc-finance .opc-finance-flow { stroke: var(--finance-mint); stroke-width: 1.7; stroke-linecap: round; fill: none; opacity: .65; }
    .opc-finance .opc-finance-flow.is-broken { stroke: var(--finance-rose); stroke-dasharray: 3 6; }
    .opc-finance .opc-finance-node { --node-color: var(--finance-mint); cursor: pointer; }
    .opc-finance .opc-finance-node.is-blue { --node-color: var(--finance-blue); }
    .opc-finance .opc-finance-node.is-rose { --node-color: var(--finance-rose); }
    .opc-finance .opc-finance-node.is-amber { --node-color: var(--finance-amber); }
    .opc-finance .opc-finance-node-amount { fill: var(--finance-ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
    .opc-finance .opc-finance-node-action { fill: #94acb9; font-size: 11px; }
    .opc-finance .opc-finance-platform { fill: #152e3e; stroke: rgba(135, 191, 250, .25); stroke-width: 1; transition: fill 170ms ease, stroke 170ms ease; }
    .opc-finance .opc-finance-platform-side { fill: #091a27; stroke: rgba(135, 191, 250, .12); stroke-width: 1; }
    .opc-finance .opc-finance-stem { fill: none; stroke: var(--node-color); opacity: .35; stroke-dasharray: 2 4; }
    .opc-finance .opc-finance-bar-front { stroke: var(--node-color); stroke-width: 1; stroke-opacity: .7; }
    .opc-finance .opc-finance-bar-side { fill: var(--node-color); fill-opacity: .10; stroke: var(--node-color); stroke-width: 1; stroke-opacity: .35; }
    .opc-finance .opc-finance-bar-lid { fill: var(--node-color); fill-opacity: .58; stroke: var(--node-color); stroke-width: 1; stroke-opacity: .85; transition: fill-opacity 170ms ease; }
    .opc-finance .opc-finance-terminal { fill: var(--finance-ink); stroke: var(--node-color); stroke-width: 2; }
    .opc-finance .opc-finance-node-label { fill: #b2c7d0; font-size: 13px; }
    .opc-finance .opc-finance-node:hover .opc-finance-platform,
    .opc-finance .opc-finance-node.is-selected .opc-finance-platform { stroke: var(--node-color); fill: #1c3b49; }
    .opc-finance .opc-finance-node:hover .opc-finance-bar-lid,
    .opc-finance .opc-finance-node.is-selected .opc-finance-bar-lid { fill-opacity: .95; }
    .opc-finance .opc-finance-node.is-selected .opc-finance-node-label { fill: var(--finance-ink); font-weight: 650; }
    .opc-finance .opc-finance-node.is-selected .opc-finance-node-amount { fill: var(--node-color); }
    .opc-finance .opc-finance-unknown-mark { fill: none; stroke: #7b919e; stroke-dasharray: 3 4; stroke-width: 1; }
    .opc-finance .opc-finance-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 8px 0 16px; }
    .opc-finance .opc-finance-steps button { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 6px; padding: 8px 3px; color: var(--finance-muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
    .opc-finance .opc-finance-steps button span { color: #7b949f; font-size: 10px; font-variant-numeric: tabular-nums; }
    .opc-finance .opc-finance-steps button:hover { color: var(--finance-ink); background: rgba(135, 191, 250, .06); }
    .opc-finance .opc-finance-steps button.is-active { color: var(--finance-mint); background: rgba(125, 216, 198, .07); border-color: rgba(125, 216, 198, .23); }
    .opc-finance .opc-finance-steps button.is-active span { color: var(--finance-mint); }
    .opc-finance button:focus-visible { outline: 2px solid var(--finance-mint); outline-offset: 3px; }
    .opc-finance .opc-finance-scene-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #92aab6; font-size: 10px; line-height: 1.7; }
    .opc-finance .opc-finance-scene-note > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
    .opc-finance .opc-finance-line-key { display: inline-block; width: 16px; border-top: 1px dashed #829ca7; }
    .opc-finance .opc-finance-reconciliation { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border-top: 1px solid rgba(135, 191, 250, .12); margin-top: 21px; padding-top: 16px; color: #a8c4c5; font-size: 10px; line-height: 1.6; }
    .opc-finance .opc-finance-check-icon { color: var(--finance-mint); }
    .opc-finance .opc-finance-reconciliation i { height: 10px; border-left: 1px solid #47606e; }
    .opc-finance .opc-finance-reconciliation.is-mismatch { color: var(--finance-rose); }
    .opc-finance .opc-finance-reconciliation.is-mismatch strong { flex-basis: 100%; font-weight: 600; }
    .opc-finance .opc-cockpit-detail { position: relative; min-width: 0; padding: 14px 0 20px 24px; border-left: 1px solid rgba(135, 191, 250, .14); }
    .opc-finance .opc-finance-detail-head { display: flex; justify-content: space-between; gap: 12px; color: var(--finance-muted); font-size: 10px; }
    .opc-finance .opc-finance-detail-head > span:last-child { font-variant-numeric: tabular-nums; color: #7b949f; }
    .opc-finance .opc-finance-selection h4 { color: var(--finance-ink); margin: 16px 0 7px; font-size: 16px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
    .opc-cockpit.opc-finance .opc-finance-detail-amount { margin: 0 0 15px; font-size: clamp(21px, 1.85vw, 31px); line-height: 1.25; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--finance-mint); overflow-wrap: anywhere; }
    .opc-finance .opc-finance-detail-amount.is-negative { color: var(--finance-rose); }
    .opc-cockpit.opc-finance .opc-finance-explanation { color: var(--finance-muted); font-size: 11px; line-height: 1.85; margin: 0 0 15px; }
    .opc-cockpit.opc-finance .opc-finance-effect { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 10px 0; margin: 0 0 12px; border-block: 1px solid rgba(135, 191, 250, .12); font-size: 11px; color: var(--finance-muted); }
    .opc-finance .opc-finance-effect strong { color: var(--finance-ink); font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .opc-finance .opc-finance-equation { padding: 11px 12px; border-left: 2px solid rgba(125, 216, 198, .45); background: rgba(0, 12, 22, .16); margin: 0 0 19px; color: var(--finance-muted); font-size: 10px; line-height: 1.7; }
    .opc-finance .opc-finance-equation > span { display: block; margin-bottom: 8px; }
    .opc-finance .opc-finance-equation > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: 4px; }
    .opc-finance .opc-finance-equation strong { color: #d0ddde; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .opc-finance .opc-finance-equation.is-mismatch { border-left-color: var(--finance-rose); }
    .opc-finance .opc-finance-equation small { display: block; color: var(--finance-amber); margin-top: 7px; font-size: 10px; }
    .opc-finance .opc-finance-category-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 19px 0 10px; }
    .opc-finance .opc-finance-category-head h5 { margin: 0; font-size: 12px; font-weight: 550; color: #d2e0e1; }
    .opc-finance .opc-finance-category-head > span { color: #8ba4b1; font-size: 10px; }
    .opc-finance .opc-finance-filters { display: flex; gap: 6px; margin-bottom: 9px; }
    .opc-finance .opc-finance-filters button { background: transparent; border: 1px solid rgba(135, 191, 250, .15); border-radius: 4px; color: var(--finance-muted); padding: 3px 12px; font: inherit; font-size: 10px; cursor: pointer; }
    .opc-finance .opc-finance-filters button[aria-pressed="true"] { color: var(--finance-ink); background: rgba(135, 191, 250, .09); border-color: rgba(135, 191, 250, .38); }
    .opc-finance .opc-finance-categories { list-style: none; padding: 0; margin: 0; max-height: 226px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #365261 transparent; }
    .opc-finance .opc-finance-categories li { margin: 0; border-bottom: 1px solid rgba(135, 191, 250, .07); }
    .opc-finance .opc-finance-categories button { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 5px; background: transparent; border: 0; border-radius: 4px; color: #bfd0d5; font: inherit; font-size: 11px; cursor: pointer; text-align: left; }
    .opc-finance .opc-finance-categories button:hover,
    .opc-finance .opc-finance-categories button[aria-pressed="true"] { background: rgba(125, 216, 198, .07); color: var(--finance-ink); }
    .opc-finance .opc-finance-category-label { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.5; }
    .opc-finance .opc-finance-category-label > span { overflow-wrap: anywhere; }
    .opc-finance .opc-finance-category-label i { display: inline-block; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: #9aa9b6; }
    .opc-finance .opc-finance-category-label i.is-income { background: var(--finance-mint); }
    .opc-finance .opc-finance-category-label i.is-cost { background: var(--finance-rose); }
    .opc-finance .opc-finance-category-label small { display: block; font-size: 9px; color: var(--finance-amber); }
    .opc-finance .opc-finance-categories strong { flex-shrink: 1; min-width: 0; max-width: 58%; overflow-wrap: anywhere; text-align: right; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.65; }
    .opc-finance .opc-finance-expand { padding: 8px 2px 3px; color: var(--finance-blue); background: none; border: none; cursor: pointer; font: inherit; font-size: 10px; }
    .opc-cockpit.opc-finance .opc-finance-source { font-size: 10px; color: #8ea6b2; line-height: 1.75; margin: 15px 0 0; }
    .opc-cockpit.opc-finance .opc-finance-empty { font-size: 11px; color: var(--finance-muted); line-height: 1.8; padding: 10px 0; margin: 0; }
    .opc-finance .opc-finance-notice { margin: 0 0 13px; padding: 9px 12px; border-left: 2px solid var(--finance-amber); color: #d3c5a7; background: rgba(223, 185, 120, .045); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
    .opc-finance .opc-finance-notice.is-error { color: var(--finance-rose); border-color: var(--finance-rose); background: rgba(237, 156, 148, .04); }
    @keyframes opc-finance-reveal { from { opacity: .3; } to { opacity: 1; } }
}
@media (min-width: 901px) and (max-width: 1250px) {
    .opc-cockpit.opc-finance { padding: 21px 21px 0; }
    .opc-finance .opc-cockpit-layout { grid-template-columns: minmax(0, 1fr); }
    .opc-finance .opc-cockpit-scene { padding-right: 0; }
    .opc-finance .opc-cockpit-detail { border-left: 0; border-top: 1px solid rgba(135, 191, 250, .14); padding: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; align-content: start; }
    .opc-finance .opc-finance-detail-head, .opc-finance .opc-finance-selection { grid-column: 1; }
    .opc-finance .opc-finance-selection { grid-row: 2 / span 5; }
    .opc-finance .opc-finance-category-head { grid-column: 2; grid-row: 1; margin: 0 0 10px; }
    .opc-finance .opc-finance-filters, .opc-finance .opc-finance-categories, .opc-finance .opc-finance-expand, .opc-finance .opc-finance-empty, .opc-finance .opc-finance-source { grid-column: 2; }
    .opc-finance .opc-finance-steps button { font-size: 12px; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
    .opc-finance *, .opc-finance *::before, .opc-finance *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 901px) {
    [data-game-motion="off"] .opc-finance *,
    .opc-finance[data-game-motion="off"] *,
    [data-game-motion="off"] .opc-finance *::before,
    [data-game-motion="off"] .opc-finance *::after { animation: none !important; transition: none !important; }
}
