/* Own-order grid monitor. Scoped to avoid inheriting global table/card geometry. */
.gm-monitor{--gm-muted:#a9b9d2;--gm-up:#ffadbc;--gm-down:#84edca;color:#edf4ff;min-width:0;font:14px/1.55 var(--font,'Segoe UI',sans-serif)}
.gm-monitor *{box-sizing:border-box}.gm-monitor h3,.gm-monitor h4,.gm-monitor p{margin:0}.gm-monitor h3{font-size:22px;letter-spacing:-.5px}.gm-monitor h4{font-size:17px;letter-spacing:-.3px}.gm-header,.gm-panel-head,.gm-quote,.gm-lane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.gm-header{margin-bottom:18px}.gm-kicker{display:block;color:#93a9cf;font-size:10px;letter-spacing:1.8px;font-weight:750;margin-bottom:6px}.gm-subtitle{color:var(--gm-muted);font-size:13px;margin-top:6px!important}.gm-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #8da5d42c;border-radius:7px;font-size:11px;letter-spacing:.35px;font-weight:750;background:#90a9db0b;color:#c5d7f5}.gm-badge.gm-paper{color:#eed09b;border-color:#edbf7438;background:#e8b9660b}.gm-badge.gm-long{color:#92f3d4;border-color:#82eecf38}.gm-badge.gm-short{color:#c8b4ff;border-color:#c8b4ff38}.gm-badge.gm-fresh{color:#8ae6c7}.gm-badge.gm-stale{color:#efc689}.gm-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.gm-stat{padding:13px 14px;border:1px solid #9bb5e01a;background:#0c142133;border-radius:11px;min-width:0}.gm-stat-label{display:block;font-size:11px;color:var(--gm-muted);margin-bottom:6px}.gm-stat-value{display:block;font-size:19px;line-height:1.3;font-weight:750;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.gm-stat-note{display:block;color:#8fa3c0;font-size:11px;margin-top:5px}.gm-positive{color:#89edca}.gm-negative{color:#ffacba}.gm-neutral{color:#edf4ff}.gm-economics{border:1px solid #8aa1ef2c;border-radius:13px;padding:16px 18px;margin-bottom:18px;background:linear-gradient(110deg,#45629315,#7362a70c);display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,2fr);gap:18px}.gm-eta{font-size:24px;font-weight:750;letter-spacing:-.7px;display:block;margin-top:6px}.gm-note{font-size:12px;line-height:1.65;color:var(--gm-muted)}.gm-note+.gm-note{margin-top:6px}.gm-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.gm-platform{min-width:0;border:1px solid #92acd329;border-radius:15px;background:linear-gradient(155deg,#1a2940,#111b2c 75%);overflow:hidden;box-shadow:0 12px 35px #05081220}.gm-platform[data-side=short]{background:linear-gradient(155deg,#272840,#111b2c 75%)}.gm-panel-head{padding:18px 18px 14px}.gm-venue-name{display:flex;gap:10px;align-items:center;min-width:0;flex-wrap:wrap}.gm-quote{padding:12px 18px;background:#070d1740;border-top:1px solid #ffffff08;border-bottom:1px solid #ffffff08}.gm-price{font-size:24px;font-weight:750;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.gm-quote-meta{text-align:right;color:var(--gm-muted);font-size:11px}.gm-quote-meta>span{display:block}.gm-position{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:15px 18px}.gm-position .gm-stat{padding:0;border:0;background:none;border-radius:0}.gm-position .gm-stat-value{font-size:15px;letter-spacing:-.2px}.gm-lanes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px 14px}.gm-lane{min-width:0;border:1px solid #ffffff13;border-radius:10px;overflow:hidden;background:#08111d35}.gm-lane-head{padding:11px 10px;border-bottom:1px solid #ffffff10;font-size:12px;font-weight:700;gap:3px}.gm-lane[data-intent=increase] .gm-lane-head{color:var(--gm-up);background:#e56c8710}.gm-lane[data-intent=reduce] .gm-lane-head{color:var(--gm-down);background:#4ddbaf10}.gm-lane-count{font-size:11px;color:#b0bfd5;font-weight:550}.gm-order-head,.gm-order{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:6px 9px;padding:9px 10px}.gm-order-head{font-size:10px;color:#99acc8;background:#080f1b50}.gm-order-head>span:last-child{text-align:right}.gm-order-scroll{height:310px;overflow:auto;scrollbar-width:thin;scrollbar-color:#3e5376 #111b2a;overscroll-behavior:contain;overflow-anchor:none}.gm-order{position:relative;border-bottom:1px solid #ffffff09;font-variant-numeric:tabular-nums;font-size:12px;min-height:67px}.gm-order:last-child{border-bottom:0}.gm-order-price{font-weight:750;min-width:0;overflow-wrap:anywhere}.gm-order-size{text-align:right;overflow-wrap:anywhere}.gm-order-meta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:4px;color:#96a9c3;font-size:10px}.gm-order-state{color:#c2cee1}.gm-order .gm-order-progress{position:absolute;left:0;bottom:0;height:2px;width:var(--gm-progress,0%);background:#9abaff65}.gm-price-marker{padding:7px 10px;background:#98b7ff18;border-top:1px solid #97b4f442;border-bottom:1px solid #97b4f442;color:#bbd0ff;font-size:10px;line-height:1.5;font-weight:700;font-variant-numeric:tabular-nums}.gm-price-marker::before{content:'●';font-size:6px;margin-right:6px;vertical-align:middle}.gm-empty{padding:22px 16px;color:var(--gm-muted);font-size:13px;line-height:1.7}.gm-venue-stats{padding:1px 18px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.gm-venue-stats>div{display:flex;justify-content:space-between;gap:9px;border-bottom:1px solid #ffffff09;padding:6px 0;font-size:11px}.gm-venue-stats span{color:var(--gm-muted)}.gm-venue-stats strong{font-weight:650;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.gm-cycle{margin:0 14px 14px;padding:11px 12px;border:1px solid #e9bf7225;background:#edbc6807;border-radius:9px;font-size:12px}.gm-cycle strong{font-variant-numeric:tabular-nums}.gm-footer{margin-top:14px;padding:0 2px;color:#9baccc;font-size:12px;line-height:1.7}.gm-footnotes{margin-top:12px;border:1px solid #ffffff10;border-radius:10px;padding:12px 14px}.gm-footnotes summary{cursor:pointer;font-size:12px;color:#c6d6ee}.gm-footnotes p{margin-top:8px;font-size:12px;color:var(--gm-muted)}.gm-sync-error{padding:12px 15px;border:1px solid #e9bd6840;border-radius:10px;color:#efc989;background:#b97a2410;margin-bottom:14px;font-size:12px}.gm-monitor[aria-busy=true]{opacity:.9}
@media(max-width:1150px){.gm-platforms{grid-template-columns:1fr}.gm-order-scroll{height:275px}.gm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.gm-header{align-items:flex-start}.gm-monitor h3{font-size:20px}.gm-summary{gap:8px}.gm-stat{padding:11px}.gm-stat-value{font-size:17px}.gm-economics{grid-template-columns:1fr;gap:9px;padding:14px}.gm-panel-head{padding:15px 12px}.gm-quote{padding:12px}.gm-price{font-size:21px}.gm-position{padding:13px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}.gm-lanes{padding:0 8px 10px;gap:7px}.gm-lane-head{padding:9px 7px;font-size:11px}.gm-order,.gm-order-head{padding:9px 7px;gap:5px;font-size:11px}.gm-order-head{font-size:9px}.gm-order-meta{font-size:9px;flex-wrap:wrap}.gm-order-scroll{height:250px}.gm-price-marker{padding:6px 7px;font-size:9px}.gm-venue-stats{padding:0 12px 12px;gap:6px 12px}.gm-cycle{margin:0 8px 12px}.gm-quote-meta{font-size:10px}.gm-footnotes{padding:10px 12px}}
/* Comfortable reading sizes for the actively monitored trading data. */
.gm-stat-label,.gm-stat-note,.gm-note,.gm-quote-meta,.gm-lane-count,.gm-order-head,.gm-venue-stats>div,.gm-footnotes summary,.gm-footnotes p,.gm-footer{font-size:12px}.gm-order{font-size:13px}.gm-order-meta,.gm-price-marker{font-size:11px}.gm-lane-head{font-size:13px}.gm-venue-stats{grid-template-columns:1fr}.gm-order-head{letter-spacing:-.1px}.gm-stat-value{font-size:20px}
@media(max-width:520px){.gm-order,.gm-order-head{grid-template-columns:1fr}.gm-order-head{gap:1px;font-size:11px}.gm-order-head>span:last-child{text-align:left;color:#7f94b3}.gm-order-size{text-align:left;color:#b6c7df;font-size:12px}.gm-order-price{font-size:13px}.gm-order{min-height:92px;gap:3px}.gm-order-size::before{content:'Остаток: ';font-size:10px;color:#8fa4c4}.gm-order-meta{font-size:10px}.gm-lane-head{font-size:12px}.gm-lane-count{font-size:11px}.gm-stat-label,.gm-stat-note,.gm-quote-meta{font-size:12px}.gm-position .gm-stat-value{font-size:15px}.gm-stat-value{font-size:18px}.gm-price-marker{font-size:11px}.gm-position{gap:14px 10px}.gm-quote-meta{text-align:left}.gm-quote{align-items:flex-start}.gm-lane-head{align-items:flex-start;flex-direction:column}.gm-lane-count{font-size:11px}}
.gm-order{display:block;padding:0}.gm-order-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:6px 9px;padding:9px 10px;list-style:none;cursor:pointer}.gm-order-main::-webkit-details-marker{display:none}.gm-order-main:focus-visible{outline:2px solid #91b8ff;outline-offset:-3px}.gm-order[open]{background:#8dabdf0a}.gm-order-detail{display:grid;gap:5px;padding:0 10px 12px;font-size:11px;color:#b8c9e2}.gm-order-main:hover{background:#8dafff06}
@media(max-width:520px){.gm-order-main{grid-template-columns:1fr;padding:9px 7px;gap:3px}.gm-order-detail{padding:0 7px 12px;font-size:11px}}

/* Funding projections also appear outside the price-grid monitor. */
.funding-risk{--gm-muted:#a9b9d2;min-width:0}.funding-risk>h3{margin-bottom:8px}.funding-risk>p{margin:10px 0 14px}.funding-risk .gm-platform>h4{padding:18px 18px 0;margin:0}.funding-risk .gm-platform>.gm-note{padding:0 18px 14px;margin:0}
@media(max-width:520px){.funding-risk .gm-platform>h4{padding:15px 12px 0}.funding-risk .gm-platform>.gm-note{padding:0 12px 14px}}
/* Reserved observation slots: changing freshness never moves a trading ladder. */
#grid-live-connection{height:3.6em;overflow:auto;line-height:1.8;margin:0 0 12px}.gm-state-slot,.gm-history-slot{height:66px;overflow:auto;padding:12px 15px;margin:0 0 12px!important;border:1px solid #93b5db25;border-radius:10px;color:#aac5d8;background:#102235;font-size:12px;line-height:1.65}.gm-state-slot[data-state=stale],.gm-history-slot[data-state=stale],.funding-risk-status[data-state=stale]{color:#efc989;background:#b97a2410;border-color:#e9bd6840}.gm-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.gm-summary .gm-stat{height:132px;overflow:auto}.gm-summary .gm-stat-label{min-height:2.9em}.gm-economics{min-height:0;align-items:start}.gm-eta{height:2.6em;line-height:1.3;overflow:auto}.gm-economics>div:last-child{height:104px;overflow:auto}.gm-execution-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 14px 14px}.gm-execution-stats .gm-stat{padding:10px}.gm-execution-stats .gm-stat-value{font-size:15px}.gm-execution-stats .gm-stat-label{height:2.9em;overflow:auto}.gm-quote{min-height:105px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.gm-quote-meta{min-width:0;min-height:74px}.gm-quote-meta .gm-badge{min-height:32px}.gm-position .gm-stat{min-height:60px}.gm-monitor>.gm-note{min-height:3.3em}.gm-monitor>.gm-header{min-height:90px}.funding-risk-status{height:66px;overflow:auto;padding:12px 15px;border:1px solid #93b5db25;border-radius:10px;color:#aac5d8;font-size:12px;line-height:1.65}.funding-risk .gm-platform>.gm-note{height:98px;overflow:auto}.funding-risk .gm-position .gm-stat{min-height:78px}.funding-risk .gm-stat-value{font-size:15px}.funding-risk[data-stale=true] .gm-platform{border-color:#c8a76830}.gm-monitor{overflow-anchor:none}.gm-platforms{overflow-anchor:none}
@media(max-width:1150px){.gm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.gm-state-slot,.gm-history-slot{height:100px}.gm-summary .gm-stat{height:150px}.gm-economics>div:last-child{height:146px}.gm-monitor>.gm-header{min-height:132px}.gm-monitor>.gm-note{min-height:6.6em}.gm-quote{min-height:148px;grid-template-columns:1fr 1fr;gap:8px}.gm-quote-meta{min-height:104px}.gm-quote-meta .gm-badge{font-size:10px;min-height:42px;padding:5px}.gm-quote-meta>span:last-child{min-height:3.4em}.gm-quote .gm-price{font-size:18px}.gm-execution-stats{gap:6px;padding:0 8px 12px}.gm-execution-stats .gm-stat{padding:8px}.gm-execution-stats .gm-stat-value{font-size:13px}.gm-execution-stats .gm-stat-label{font-size:11px;height:3.8em}.funding-risk-status{height:100px}.funding-risk .gm-platform>.gm-note{height:118px}.funding-risk .gm-position .gm-stat{min-height:80px}}
#grid-live-connection{position:relative;padding-left:24px}#grid-live-connection::before{content:'';position:absolute;left:0;top:.5em;width:11px;height:11px;border:2px solid #7fa5c440;border-top-color:#91d9ce;border-radius:50%;opacity:.35}#grid-live-connection[data-loading=true]::before{opacity:1;animation:gm-refresh-spin .9s linear infinite}@keyframes gm-refresh-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#grid-live-connection[data-loading=true]::before{animation:none;border-color:#91d9ce}}

/* Reserved edge-status regions never displace live quote/order panels. */
.gm-edge-slot{height:132px;overflow:auto;box-sizing:border-box;padding:16px;margin:0 0 12px;border:1px solid #93b5db25;border-radius:12px;background:#102235;color:#aac5d8;font-size:13px;line-height:1.6}.gm-edge-slot>strong{display:block;color:#d7e4ef;font-size:15px}.gm-edge-slot>p{margin:8px 0 0}.gm-edge-slot[data-state=edge],.gm-edge-slot[data-state=moving]{border-color:#e9bd6855;background:#b97a2412;color:#efc989}.gm-edge-slot[data-state=edge]>strong,.gm-edge-slot[data-state=moving]>strong{color:#ffda99}.gm-edge-slot[data-state=unknown]{color:#a8b4c4}.bot-edge-status{display:block;height:3.6em;line-height:1.8;font-size:11px;color:#efc989;overflow:hidden;margin-top:5px;overflow-wrap:anywhere}.bot-edge-status[hidden]{display:none}.bot-edge-status[data-state=unknown]{color:#b5bfce}
@media(max-width:520px){.gm-edge-slot{height:204px;font-size:12px}.gm-edge-slot>strong{font-size:14px}}

.gm-fee-profile{box-sizing:border-box;height:176px;overflow:auto;margin:0 14px 14px;padding:12px;border:1px solid #91bac32e;border-radius:10px;background:#112534;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.gm-fee-profile>strong{font-size:13px}.gm-fee-profile>p{margin:7px 0}.gm-fee-profile>small{color:#a6bdd0}.pg-fee-economics{width:100%;min-width:0;margin:16px 0;padding:14px;border:1px solid #8ac9c43b;border-radius:12px;background:#112935;overflow-wrap:anywhere}.pg-fee-economics h4{margin:0 0 8px}.pg-fee-leg{margin:12px 0;padding:14px;border:1px solid #9cb3d130;border-radius:10px;background:#162536}.pg-fee-values{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px 12px;font-size:12px;line-height:1.6}.pg-fee-values dt{color:#a9bfd1}.pg-fee-values dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums}.pg-fee-economics .fine{font-size:12px;line-height:1.7}@media(max-width:520px){.gm-fee-profile{height:224px;margin:0 8px 12px}.pg-fee-economics{padding:10px}.pg-fee-leg{padding:10px}.pg-fee-values{grid-template-columns:1fr;gap:3px}.pg-fee-values dd{margin-bottom:8px}}

/* Realized grid profit stays separate from open inventory PnL and funding. */
.gm-profit-stats .gm-stat{height:116px;overflow:auto;background:#153c3933;border-color:#7cd7bf26}.gm-profit-stats .gm-stat-label{height:4.2em;line-height:1.4}.gm-profit-stats .gm-stat:focus-visible{outline:2px solid #8cdbc8;outline-offset:2px}
@media(max-width:520px){.gm-profit-stats .gm-stat{height:132px}.gm-profit-stats .gm-stat-label{height:5.6em;line-height:1.4}}

.pg-walking-controls{margin:20px 0;padding:18px;border:1px solid #8ab9ca35;border-radius:14px;background:#6cbcbc08}.pg-check{display:flex;gap:12px;align-items:center;font-weight:700}.pg-check input{width:20px;height:20px}.pg-taper{margin-top:20px}.pg-taper label{display:flex;justify-content:space-between;gap:12px}.pg-taper input{width:100%;accent-color:#90dfcd}.pg-taper-bars{display:flex;align-items:flex-end;justify-content:center;height:56px;gap:4px}.pg-taper-bars i{flex:1;max-width:24px;background:linear-gradient(#95e0cb,#517b9c);border-radius:4px 4px 0 0}.pg-taper-bars i[data-active=false]{opacity:.2}.pg-taper-preview,.pg-walking-preview{margin-top:15px;padding:15px;border:1px solid #92acd329;border-radius:10px}.gm-walking{padding:16px}.gm-range-list{max-height:420px;overflow:auto;overscroll-behavior:contain}.gm-range{margin:8px 0;border:1px solid #92acd329;border-radius:10px;padding:10px}.gm-range summary{cursor:pointer;line-height:1.7}.gm-range p{margin:6px 0;font-size:12px;color:#b8c9e2}.gm-range .gm-lanes{padding:8px 0}.gm-range .gm-order-scroll{height:230px}.gm-walking-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gm-walking-summary .gm-stat-value{font-size:16px}.gm-walking-warning{min-height:54px;font-size:12px;color:#efc689;padding:10px 0}

/* Translucent inner panes let the shared ambient light reach the monitor. */
.gm-platform{background:linear-gradient(155deg,rgba(28,48,67,.40),rgba(13,25,39,.48) 75%)}
.gm-platform[data-side=short]{background:linear-gradient(155deg,rgba(48,39,70,.40),rgba(13,25,39,.48) 75%)}
