/* Reference desk: one grid, one type scale, compact controls. Presentation only. */
.risk-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;flex:none;border:1px solid var(--ink);height:28px;background:var(--card)}
.risk-strip[hidden]{display:none}
.risk-cell{position:relative;display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;padding:2px 7px 5px;border-right:1px solid var(--line);font:10px var(--sans)}
.risk-cell:last-child{border:0}.risk-cell>b{font:600 10px var(--mono);white-space:nowrap}.risk-cell.danger>b{color:var(--orange)}
.risk-cell>i{position:absolute;bottom:2px;left:7px;right:7px;height:2px;background:#ded6be}.risk-cell em{display:block;height:2px;background:var(--green)}.risk-cell.danger em{background:var(--orange)}
#chart-pro{position:absolute;inset:0;overflow:hidden}#chart-pro[hidden]{display:none}
.chart-legend{position:absolute;top:3px;left:7px;right:62px;z-index:2;pointer-events:none;font:9px/1.4 monospace;color:#555447;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vault-cashouts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.vault-cashouts>div{border:1px solid #bdb49b;padding:10px}
@media(min-width:1101px) and (max-height:760px){.single-desk.rules-eight{--system-row:39px;--team-row:28px;--desk-gap:6px}.single-desk.rules-eight .desk-system{grid-template-rows:13px 21px 2px}}
@media(max-width:800px){.risk-strip{height:auto;grid-template-columns:repeat(3,minmax(0,1fr))}.risk-cell{height:28px}}
.single-desk {
  --desk-font:11px; --desk-small:10px; --desk-micro:9px; --desk-heading:12px;
  --panel-head:25px; --system-row:42px; --team-row:30px; --listing-row:24px;
  --play-row:18px; --field-height:25px; --desk-gap:7px;
  --paper:#f8f2df; --card:#fffbed; --ink:#20231e; --muted:#66645a;
  --line:#c9c1a9; --soft:#eee8d3; --softer:#f1ead4; --blue:#234cad;
  --yellow:#f8e778; --orange:#d84620; --orange-ink:#c43917; --green:#176a4c;
  background:radial-gradient(ellipse at 12% 0%,#fffdf399,transparent 60%),var(--paper);
  font-size:var(--desk-font); gap:6px;
}
.single-desk .card {border:2px solid var(--ink);box-shadow:none;border-radius:0;background:linear-gradient(115deg,#fffdf5b3,#fffdf536),var(--card)}
.single-desk .card.dark {background:var(--ink);color:var(--card)}
.single-desk .top {position:relative;border-bottom:3px double var(--ink);padding:0 0 5px;gap:12px;min-height:44px;flex:none}
.single-desk .brand {gap:8px}.single-desk .brand strong{font-size:29px;letter-spacing:-1.4px}
.single-desk .brand svg{width:30px;height:30px}
.single-desk .street-edition{font-size:10px;line-height:1.5;letter-spacing:.35px;padding-left:11px}
.single-desk .desk-title{flex:1;text-align:center;font:11px var(--mono);letter-spacing:1px;color:var(--muted)}
.single-desk .street-motion{font-size:10px;height:26px;padding:4px 7px;min-height:26px;box-shadow:none}
.single-desk .rank{font-size:var(--desk-font)}
.single-desk .top>.btn{height:32px;min-height:32px;padding:3px 11px;box-shadow:none}
.single-desk .clock b{font-size:25px;letter-spacing:-1px;line-height:1}
.single-desk .clock span{font:10px var(--sans)}
.single-desk .btn {border-radius:0;box-shadow:none;font-weight:500;line-height:1.2}
.single-desk .btn.primary{background:var(--blue);border-color:#183c8f;color:#fffdf5;box-shadow:inset 0 0 0 1px #ffffff2e}
.single-desk .btn.primary:hover:not(:disabled):not([aria-disabled="true"]){background:#173b92}
.single-desk .btn:disabled {opacity:1;color:#b0ada3;background:#f5f2e9;border-color:#e0dccf;box-shadow:none}
/* Locked commands remain focusable and clickable for their explanation. */
button[data-command][aria-disabled="true"],.single-desk .btn[aria-disabled="true"]:hover {opacity:1;color:#928d7d;background:#f5f2e9;border-color:#d7d1bf;box-shadow:none;filter:none;transform:none;cursor:help}
button[data-command][aria-disabled="true"]:focus-visible {outline:2px solid var(--blue);outline-offset:1px}
.single-desk button:not(:disabled):not([aria-disabled="true"]):focus-visible,.single-desk select:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.single-desk select{border:1px solid #777568;background:#fffcef;border-radius:0;font-family:var(--sans);box-shadow:inset 0 1px 0 #fff}
.single-desk .link{font-size:var(--desk-small);line-height:1.2;font-weight:600;color:var(--blue)}
.single-desk .ck,.single-desk .desk-system-heading,.single-desk #tokens-all .ck,.single-desk #trade-big .ck,.single-desk .desk-team .ck{
  height:var(--panel-head)!important;min-height:var(--panel-head)!important;padding:3px 8px!important;gap:6px;border-bottom:1px solid var(--ink);
}
.single-desk .ck h2,.single-desk .desk-system-heading h2,.single-desk .desk-team .ck h2,.single-desk #tokens-all .ck h2,.single-desk #trade-big .ck h2{
  font:700 var(--desk-heading)/1.1 var(--sans)!important;letter-spacing:-.15px;text-transform:uppercase;
}
.single-desk .ck h2 small{font:var(--desk-micro) var(--mono);color:var(--muted);margin-left:7px}
.single-desk .ck .meta,.single-desk .system-finances{font:var(--desk-small) var(--mono)}
.single-desk .metrics{flex:none;min-height:55px;height:55px;background:var(--card);overflow:hidden}
.single-desk.app:has(#view-overview.on) .stat{display:grid;grid-template-columns:1fr auto;padding:5px 10px;gap:1px 6px;border-right:1px solid var(--line);align-items:center}
.single-desk.app:has(#view-overview.on) .stat:last-child{border-right:0}
.single-desk.app:has(#view-overview.on) .stat .l{grid-column:1/-1;font-size:var(--desk-font);line-height:1.1;color:#54564f}
.single-desk.app:has(#view-overview.on) .stat .v{grid-column:1;grid-row:2;font:700 25px/1 var(--mono);letter-spacing:-1px}
.single-desk.app:has(#view-overview.on) .stat .stat-note{grid-column:2;grid-row:2;max-width:none;text-align:right;font:var(--desk-micro)/1.2 var(--sans)}
.single-desk .stat[data-details=finance]{background:linear-gradient(120deg,#2b54b5,#23459e)}
.single-desk .stat[data-details=finance] .l,.single-desk .stat[data-details=finance] .v,.single-desk .stat[data-details=finance] .stat-note{color:#fffdf5!important}
.single-desk .stat.hot{background:linear-gradient(120deg,#f7e5c8,#f7dbc2)}
.single-desk.app:has(#view-overview.on) .coach:not(.decision){min-height:33px;padding:3px 8px;gap:9px;flex:none;border:1px solid #d2bc77;background:#f1e6bb}
.single-desk.app:has(#view-overview.on) .coach.alarm:not(.decision){border-color:var(--orange);background:linear-gradient(100deg,#fbe8cf,#f4d9c1);box-shadow:inset 0 0 0 2px #fff8e580}
.single-desk .coach:not(.decision) .copy{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.single-desk .coach:not(.decision) .copy strong{font-size:13px;line-height:1.15}
.single-desk .coach:not(.decision) .copy span{font-size:var(--desk-font);margin:0;line-height:1.2}
.single-desk .coach:not(.decision)>.btn{height:26px;min-height:26px;padding:4px 9px;font:600 var(--desk-font) var(--sans)}
.single-desk .coach.alarm>.btn.primary{background:var(--orange);border-color:#a4351c}
.single-desk .eventbar{min-height:25px;padding:2px 0;flex:none}
.single-desk .phase-track{gap:14px}.single-desk .phase{min-width:0}
.single-desk .phase b{font-size:var(--desk-small)}.single-desk .phase small{font-size:var(--desk-micro)}
.single-desk .phase i{height:3px;border-radius:1px}
.single-desk .event-next{font:var(--desk-font) var(--sans)}
.single-desk .desk-left,.single-desk .desk-right,.single-desk .desk-center{display:flex;flex-direction:column;gap:var(--desk-gap);min-width:0;min-height:0}
.single-desk .desk-systems,.single-desk .desk-team,.single-desk #tokens-all{height:auto;max-height:none;width:100%;flex:none;overflow:visible}
.single-desk .desk-system-list{display:grid;flex:none;grid-template-rows:none}
.single-desk .desk-system{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:14px 22px 2px;justify-content:stretch;gap:0;height:var(--system-row);min-height:0;padding:1px 7px;border-bottom:1px solid var(--line)}
.single-desk .desk-system header{height:auto;min-height:0;gap:5px}
.single-desk .system-name{gap:4px;min-width:0}.single-desk .system-name>svg{width:12px;height:12px;color:var(--ink)}
.single-desk .system-name strong{font-size:var(--desk-font);font-weight:700}
.single-desk .system-level{font:var(--desk-micro)/1 var(--mono);padding:2px 3px;background:#ebe4c9;color:var(--ink)}
.single-desk .desk-reading{display:flex;flex-direction:row-reverse;align-items:baseline;gap:3px}
.single-desk .desk-reading b{font:700 13px/1 var(--mono)!important}.single-desk .desk-reading small{font-size:var(--desk-micro)}
.single-desk .desk-system-controls{height:auto;min-height:0;align-items:center}
.single-desk .desk-system-meta{font:var(--desk-small)/1.15 var(--sans);color:#52564e;white-space:nowrap;max-width:none}
.single-desk .desk-system-meta small{display:inline;font:var(--desk-micro)/1.15 var(--mono);margin-left:4px}
.single-desk .desk-upgrade{font:var(--desk-small) var(--mono);height:22px;min-height:22px;padding:2px 5px;min-width:78px;color:#fffcef;background:var(--ink)}
.single-desk .desk-system>.bar{height:2px;margin:0;background:#dfd8c3}.single-desk .desk-system>.bar b{height:5px;opacity:.65}
.single-desk .desk-quick{padding:4px 6px;gap:4px;flex-wrap:nowrap;min-height:29px;border-top:0}
.single-desk .desk-quick>span{display:none}.single-desk .desk-quick .btn{height:22px;min-height:22px;padding:2px 3px;font:var(--desk-micro) var(--sans);flex:1}
.single-desk .desk-quick .btn:nth-of-type(2):not(:disabled):not([aria-disabled="true"]){background:#f9eb9a;border-color:#dac875}
.single-desk .team-member{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;height:var(--team-row);padding:2px 7px;gap:0 4px;border-bottom:1px solid var(--line)}
.single-desk .team-member:last-child{border-bottom:0}.single-desk .team-member.hired{box-shadow:none}
.single-desk .team-person{display:flex;align-items:center;gap:5px;min-width:0;border:0;padding:0;background:none;text-align:left}
.single-desk .team-person strong{font-size:var(--desk-font);line-height:1.1;white-space:nowrap}
.single-desk .team-person small{font-size:var(--desk-micro);line-height:1.1;white-space:nowrap;color:#53574f}
.single-desk .team-next{grid-column:1;grid-row:2;font:var(--desk-small)/1.1 var(--sans);color:#626258;white-space:nowrap}
.single-desk .team-buy{grid-column:2;grid-row:1/3;height:23px;min-height:23px;min-width:78px;padding:2px 5px;font:var(--desk-small) var(--mono);color:#fffcef;background:var(--blue);border-color:#28468c}
.single-desk .team-person:hover strong{color:var(--blue);text-decoration:underline}
.single-desk .listing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.single-desk .listing-pair{display:flex;align-items:center;justify-content:space-between;gap:4px;height:var(--listing-row);padding:2px 7px;min-width:0;border-bottom:1px solid var(--line)}
.single-desk .listing-pair:nth-child(odd){border-right:1px solid var(--line)}.single-desk .listing-pair:nth-last-child(-n+2){border-bottom:0}
.single-desk .listing-pair.selected{background:linear-gradient(100deg,#f7e9ac,#f8efcb);box-shadow:none}
.single-desk .listing-pick{display:grid;align-content:center;gap:0;min-width:0;flex:1;background:none;border:0;padding:0;text-align:left}
.single-desk .listing-pick strong{font:700 var(--desk-font)/1 var(--sans);letter-spacing:.1px}
.single-desk .listing-pick small{font:var(--desk-micro)/1.1 var(--mono);color:#55594f}
.single-desk .listing-buy{height:21px;min-height:21px;padding:2px 5px;font:var(--desk-micro) var(--mono);background:#fcf1b5;border-color:#baa95b}
.single-desk .listing-status{border:0;background:none;padding:0;font:var(--desk-micro) var(--mono);white-space:nowrap}
.single-desk .desk-night{display:flex;flex-direction:column;gap:var(--desk-gap);width:100%;align-self:stretch;height:auto;min-height:0;flex:none;overflow:visible;box-shadow:none}
.single-desk .desk-playbook{display:flex;flex-direction:column;flex:none;overflow:visible}
.single-desk .desk-tabs{height:26px;flex:none;border-bottom:2px solid var(--ink)}
.single-desk .desk-tabs button{height:24px;font:600 var(--desk-font) var(--sans);padding:3px;border-right:1px solid var(--ink);background:linear-gradient(#e9e5cf,#dddac4)}
.single-desk .desk-tabs button.on{background:linear-gradient(#fbea75,#f4df5c);box-shadow:none;color:#171a12}
.single-desk .desk-pane,.single-desk .desk-night .menu{flex:none;overflow:visible;min-height:0}
.single-desk .desk-pane[hidden]{display:none!important}
.single-desk .desk-cash,.single-desk .desk-target-strip{height:30px;padding:3px 7px;gap:6px;flex:none;background:transparent;border-bottom:1px solid var(--line)}
.single-desk .desk-cash strong{font:700 17px/1 var(--mono)}.single-desk .desk-cash b{font:700 12px var(--mono)}
.single-desk .desk-cash small{font:var(--desk-micro)/1 var(--sans)}
.single-desk .desk-cash .btn,.single-desk .desk-target-strip>.btn{height:24px;min-height:24px;padding:3px 6px;font:var(--desk-small) var(--sans)}
.single-desk .desk-target-strip label{display:flex;align-items:center;gap:8px;font:var(--desk-micro) var(--sans);min-width:0}
.single-desk .desk-target-strip select{width:100%;min-width:0;height:24px;min-height:24px;padding:2px 6px;font-size:var(--desk-font)}
.single-desk .desk-list-labels,.single-desk .desk-choice-row{grid-template-columns:minmax(0,1fr) 75px 64px;gap:5px}
.single-desk .desk-list-labels{height:14px;padding:1px 7px;font:var(--desk-micro)/1.2 var(--sans);letter-spacing:0;border-bottom:1px solid var(--line)}
.single-desk .desk-choices,.single-desk .desk-night:has(#poach-person) .desk-choices,.single-desk .desk-night:has(.requirement) .desk-choices{height:auto;min-height:0;flex:none;overflow:visible}
.single-desk .desk-choice-row,.single-desk .desk-night:has(#poach-person) .desk-choice-row,.single-desk .desk-night:has(.requirement) .desk-choice-row{height:var(--play-row);min-height:var(--play-row);padding:1px 7px;font:var(--desk-font)/1.1 var(--sans);border-bottom:1px solid var(--line)}
.single-desk .desk-choice-row:last-child{border-bottom:0}
.single-desk .desk-choice-row>b{font:var(--desk-font) var(--mono)}.single-desk .desk-choice-row>small{font:var(--desk-small) var(--mono);color:var(--orange-ink)}
.single-desk .desk-choice-row.selected{background:linear-gradient(95deg,#eed972,#f8e9a8);box-shadow:none}
.single-desk .desk-selected{flex:none;padding:4px 7px;background:linear-gradient(110deg,#fffdf2,#f0e7cf);overflow:visible}
.single-desk .desk-selected header{min-height:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.single-desk .desk-selected h2{margin:0;font:700 var(--desk-heading)/1.15 var(--sans)!important}
.single-desk .desk-selected .link{min-height:14px}
.single-desk .desk-terms{margin-top:4px;gap:3px}.single-desk .desk-terms p{font:var(--desk-small)/1.25 var(--sans)}
.single-desk .desk-effect{font:var(--desk-small)/1.25 var(--sans);margin:3px 0}
.single-desk .desk-recon{font:var(--desk-small)/1.2 var(--sans)}
.single-desk .desk-recon>.btn{height:20px;min-height:20px;padding:2px 7px;font:var(--desk-small) var(--sans)}
.single-desk .desk-action{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 7px;margin-top:3px}
.single-desk .desk-action>.requirement{grid-column:1/-1;font:var(--desk-micro)/1.2 var(--sans);margin:0}
.single-desk .desk-action-risk{border:0;padding:0;display:flex;flex-direction:column;gap:3px;font:var(--desk-small)/1.2 var(--sans)}
.single-desk .desk-action-risk>span:last-child{text-align:left}
.single-desk .desk-action>.btn,.single-desk .desk-action>.chip{height:24px;min-height:24px;min-width:0;padding:3px 8px;font:var(--desk-small) var(--sans);align-self:center;width:auto}
.single-desk .desk-action:has(#poach-person){grid-template-columns:minmax(0,1fr) auto;gap:4px}
.single-desk .desk-action:has(#poach-person)>.desk-action-risk{grid-column:1/-1;flex-direction:row;justify-content:space-between}
.single-desk .desk-action:has(#poach-person) select{height:24px;min-height:24px;padding:2px 5px;font-size:var(--desk-small)}
.single-desk .desk-center #market-panel{display:flex;flex-direction:column;min-height:0;flex:1}
.single-desk .desk-center .market-head{min-height:39px;height:39px;padding:5px 8px;gap:7px;flex:none;flex-wrap:nowrap}
.single-desk .market-head .mk{width:23px;height:23px;margin:0;font-size:12px}
.single-desk .market-head strong{font-size:14px}.single-desk .market-head .price{font-size:22px;letter-spacing:-1px}
.single-desk .market-head .change{font:700 11px var(--mono)}.single-desk .market-head .chip{font-size:8px;height:16px;padding:0 3px}
.single-desk .market-head .seg{margin-left:auto!important;flex:none}.single-desk .seg button{font-size:9px;height:22px;padding:1px 5px}
.single-desk .desk-center #market-panel .chart-wrap{flex:1;min-height:50px;height:auto;padding:5px 8px}
.single-desk .desk-center .liveline{height:44px!important;margin:4px 7px!important;padding:3px 6px!important;border:1px solid #c1ae6a;background:linear-gradient(110deg,#f1e4b0,#f7edc5)}
.single-desk .liveline strong{font-size:var(--desk-font)}.single-desk .liveline .tag{font-size:var(--desk-micro)}
.single-desk .liveline .chip{font-size:var(--desk-small)}.single-desk .street-event-copy>.meta{font:var(--desk-small)/1.2 var(--sans)}
.single-desk .street-reaction{width:81px;height:39px;background:none}.single-desk .street-reaction svg{width:78px;height:35px;margin-top:4px}
.single-desk .street-reaction>small{font-size:7px;background:none}
.single-desk .desk-center .vitals{height:30px;min-height:30px;margin:0 7px 5px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none}
.single-desk .desk-center .vit{padding:4px 6px;font-size:var(--desk-small);gap:4px;white-space:nowrap;flex-wrap:nowrap}
.single-desk .desk-center .vit b{font:700 var(--desk-font) var(--mono)}
.single-desk .desk-center .economy-vitals{grid-template-columns:repeat(4,minmax(0,1fr))}
.single-desk .desk-center .economy-vitals .vit{font-size:var(--desk-micro);gap:3px;padding:4px 5px}
.single-desk .desk-center .economy-vitals .vit b{font-size:var(--desk-small)}
.single-desk .desk-trade{flex:none;overflow:visible}
.single-desk .order-ticket{display:grid;grid-template-columns:1fr 1fr;padding:5px 8px;gap:4px}
.single-desk .order-ticket>label,.single-desk .order-fields,.single-desk .order-note,.single-desk .order-facts,.single-desk .order-ticket>strong{grid-column:1/-1}
.single-desk .order-ticket>label{display:grid;grid-template-columns:51px 1fr;align-items:center;gap:5px}
.single-desk .order-ticket label{font:var(--desk-small)/1.1 var(--sans);gap:2px}
.single-desk .order-ticket select{width:100%;height:var(--field-height);min-height:var(--field-height);padding:2px 6px;font-size:var(--desk-font)}
.single-desk .order-fields{grid-template-columns:1.4fr 1fr 1fr;gap:5px}
.single-desk .order-quote{display:grid;grid-template-columns:1fr 1fr;padding:0;margin:0;gap:5px;align-self:stretch;background:none;border:0}
.single-desk .order-quote span{padding:2px 5px;border:1px solid #d5c89a;background:#efe7cb;display:flex;flex-direction:column;gap:0;font:var(--desk-micro) var(--sans)}
.single-desk .order-quote b{font:700 var(--desk-small) var(--mono)}
.single-desk .order-actions{gap:5px;align-self:stretch}.single-desk .order-actions .btn{height:auto;min-height:28px;padding:3px 8px;font:var(--desk-font) var(--sans)}
.single-desk .order-note{font:var(--desk-micro)/1.2 var(--sans);margin:0;color:#626258}
.single-desk .order-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.single-desk .order-facts span{font-size:var(--desk-small)}.single-desk .order-facts b{font:700 12px var(--mono);margin-top:3px}
.single-desk .order-ticket>.order-facts~.order-actions{grid-column:1/-1}
.single-desk .foot{border:0;flex:none;min-height:22px;height:22px;padding:0;background:none;gap:0;box-shadow:none}
.single-desk .foot .tab{height:22px;font:var(--desk-small) var(--sans);padding:2px 10px}
.single-desk .foot .tab.on{font-family:var(--mono)}.single-desk .foot .status{font-size:var(--desk-micro);padding-right:0}
.economy-table{width:100%;border-collapse:collapse;font:12px var(--mono)}
.economy-table th,.economy-table td{text-align:right;padding:6px 4px;border-bottom:1px solid var(--line)}
.economy-table th:first-child,.economy-table td:first-child{text-align:left}

@media(min-width:1101px){
 .single-desk.app:has(#view-overview.on){height:100dvh;min-height:0;padding:8px 12px 6px;gap:6px;overflow:hidden}
 .single-desk.app:has(#view-overview.on) .top{min-height:44px}
 .single-desk.app:has(#view-overview.on) .metrics{height:55px;min-height:55px}
 .single-desk .view.overview.on{display:grid;grid-template-columns:minmax(280px,1fr) minmax(370px,1.42fr) minmax(330px,1.11fr);gap:8px;min-height:0;overflow:visible;align-items:stretch}
 .single-desk .desk-left,.single-desk .desk-right,.single-desk .desk-center{height:100%}
 .single-desk .desk-center>.decision{flex:none;padding:6px 8px!important;gap:4px!important;min-height:0!important}
 .single-desk .desk-center>.decision .lead strong{font-size:11px;line-height:1.2}
 .single-desk .desk-center>.decision .lead small,.single-desk .desk-center>.decision .lead .meta{font-size:9px}
 .single-desk .desk-center>.decision .choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .single-desk .desk-center>.decision .choice{padding:4px 5px;border-radius:0}
 .single-desk .desk-center>.decision .choice>span{font-size:10px;line-height:1.15;align-items:flex-start}
 .single-desk .desk-center>.decision .choice small{font-size:9px;line-height:1.2}
 .single-desk .desk-center>.decision .choice>span i{display:none}
 .single-desk .desk-center>.decision .timer b{font-size:19px}
 .single-desk .desk-center:has(>.decision) #market-panel{min-height:0}
 .single-desk .desk-center:has(>.decision) #market-panel .chart-wrap{min-height:40px}
 .single-desk .desk-center:has(>.decision) #vitals:has(.economy-vitals){display:block;flex:none}
 .single-desk .desk-center:has(.economy-vitals):has(>.decision) #market-panel>.ck{display:flex}
}

@media(min-width:1101px) and (max-height:899px){
 .single-desk .desk-night:has(#poach-person),.single-desk .desk-night:has(.requirement){--play-row:17px}
}

@media(min-width:1450px) and (min-height:780px) and (max-height:899px){
 .single-desk{--desk-font:12px;--desk-small:11px;--desk-micro:10px;--desk-heading:13px;--panel-head:27px;--system-row:48px;--team-row:33px;--listing-row:30px;--play-row:20px;--field-height:26px}
 .single-desk .desk-system{grid-template-rows:16px 26px 2px}
 .single-desk .desk-system-meta small{display:block;margin:1px 0 0}
 .single-desk .desk-upgrade,.single-desk .team-buy{height:25px;min-height:25px;min-width:89px}
 .single-desk .desk-night:has(#poach-person),.single-desk .desk-night:has(.requirement){--play-row:19px}
}
@media(min-width:1450px) and (min-height:850px) and (max-height:899px){
 .single-desk{--desk-font:13px;--desk-small:12px;--desk-micro:11px;--desk-heading:14px;--panel-head:29px;--system-row:55px;--team-row:37px;--listing-row:34px;--play-row:22px;--field-height:27px}
 .single-desk .desk-system{grid-template-rows:18px 30px 2px;padding:2px 7px}
 .single-desk .desk-upgrade,.single-desk .team-buy{height:27px;min-height:27px;min-width:100px}
 .single-desk .desk-night:has(#poach-person),.single-desk .desk-night:has(.requirement){--play-row:21px}
}

/* The reference's desktop proportions; row heights are fixed, never stretched to fill a sidebar. */
@media(min-width:1450px) and (min-height:900px){
 .single-desk{--desk-font:13px;--desk-small:12px;--desk-micro:11px;--desk-heading:14px;--panel-head:29px;--system-row:59px;--team-row:40px;--listing-row:38px;--play-row:23px;--field-height:27px;--desk-gap:8px}
 .single-desk.app:has(#view-overview.on){padding:10px 15px 5px;gap:6px}
 .single-desk.app:has(#view-overview.on) .top{min-height:53px}
 .single-desk .brand strong{font-size:33px}.single-desk .brand svg{width:36px;height:34px}
 .single-desk .desk-title{font-size:13px}.single-desk .clock b{font-size:29px}.single-desk .clock span{font-size:12px}
 .single-desk .top>.btn{height:38px;min-height:38px}
 .single-desk.app:has(#view-overview.on) .metrics{height:68px;min-height:68px}
 .single-desk.app:has(#view-overview.on) .stat{padding:6px 12px}
 .single-desk.app:has(#view-overview.on) .stat .v{font-size:30px}
 .single-desk.app:has(#view-overview.on) .coach:not(.decision){min-height:39px;padding:3px 9px}
 .single-desk .coach:not(.decision) .copy strong{font-size:17px}.single-desk .coach:not(.decision) .copy span{font-size:14px}
 .single-desk .coach:not(.decision)>.btn{height:31px;min-height:31px;font-size:14px}
 .single-desk .eventbar{min-height:28px}.single-desk .phase-track{flex-basis:745px;max-width:50%}
 .single-desk .desk-system{grid-template-rows:18px 33px 2px;padding:2px 8px}
 .single-desk .desk-system-meta small{display:block;margin:1px 0 0}
 .single-desk .desk-reading b{font-size:14px!important}
 .single-desk .desk-upgrade,.single-desk .team-buy{height:29px;min-height:29px;min-width:104px}
 .single-desk .desk-quick{min-height:33px;padding:4px 7px}.single-desk .desk-quick .btn{height:25px;min-height:25px;font-size:12px}
 .single-desk .listing-buy{height:26px;min-height:26px}.single-desk .listing-pick small{font-size:12px}
 .single-desk .desk-tabs{height:30px}.single-desk .desk-tabs button{height:28px;font-size:14px}
 .single-desk .desk-cash,.single-desk .desk-target-strip{height:39px;padding:5px 8px}
 .single-desk .desk-target-strip select,.single-desk .desk-target-strip>.btn,.single-desk .desk-cash .btn{height:28px;min-height:28px}
 .single-desk .desk-list-labels{height:18px;padding:2px 8px}
 .single-desk .desk-choice-row,.single-desk .desk-night:has(#poach-person) .desk-choice-row{padding:2px 8px}
 .single-desk .desk-night:has(#poach-person),.single-desk .desk-night:has(.requirement){--play-row:21px}
 .single-desk .desk-selected{padding:5px 8px}.single-desk .desk-selected header{min-height:18px}
 .single-desk .desk-effect{margin:5px 0}.single-desk .desk-recon>.btn{height:28px;min-height:28px}
 .single-desk .desk-action{margin-top:4px}.single-desk .desk-action-risk{gap:5px}
 .single-desk .desk-action>.btn{height:29px;min-height:29px}
 .single-desk .desk-center .market-head{height:47px;min-height:47px;padding:7px 9px}
 .single-desk .market-head strong{font-size:16px}.single-desk .market-head .price{font-size:26px}
 .single-desk .market-head .mk{width:28px;height:28px;font-size:14px}
 .single-desk .market-head .change{font-size:13px}.single-desk .market-head .chip{font-size:10px;height:19px}
 .single-desk .seg button{font-size:11px;height:27px;padding:2px 6px}
 .single-desk .desk-center .liveline{height:61px!important;margin:6px 8px!important;padding:5px 8px!important}
 .single-desk .street-reaction{width:100px;height:51px}.single-desk .street-reaction svg{width:96px;height:44px;margin-top:7px}.single-desk .street-reaction>small{font-size:10px}
 .single-desk .desk-center .vitals{height:41px;min-height:41px;margin:0 8px 6px}
 .single-desk .order-ticket{padding:6px 9px;gap:5px}.single-desk .order-ticket>label{grid-template-columns:56px 1fr}
 .single-desk .order-quote span{padding:3px 6px}.single-desk .order-actions .btn{min-height:34px}
}

@media(min-width:601px) and (max-width:1100px){
 .single-desk.app{height:auto;min-height:100dvh;padding:10px;overflow:visible}
 .single-desk .view.overview.on{display:grid;grid-template-columns:minmax(270px,1fr) minmax(350px,1.35fr);gap:8px;overflow:visible}
 .single-desk .desk-left{grid-column:1;grid-row:1/3}.single-desk .desk-center{grid-column:2;grid-row:1}.single-desk .desk-right{grid-column:2;grid-row:2}
 .single-desk .desk-title{display:none}.single-desk #connection{margin-left:auto}
 .single-desk .desk-center #market-panel .chart-wrap{height:240px;flex:none}
}
@media(max-width:600px){
 .single-desk{--desk-font:12px;--desk-small:11px;--desk-micro:10px;--desk-heading:12px;--system-row:54px;--team-row:40px;--listing-row:36px;--play-row:27px;--panel-head:29px;--field-height:31px}
 .single-desk.app{height:auto;min-height:100dvh;padding:8px;overflow:visible;gap:8px}
 .single-desk .desk-title,.single-desk .street-edition{display:none}.single-desk .brand strong{font-size:26px}.single-desk .brand svg{width:25px}
 .single-desk .top{gap:6px;flex-wrap:wrap}.single-desk .clock{margin-left:auto}.single-desk .clock b{font-size:22px}
 .single-desk .top>.btn{height:29px;min-height:29px}.single-desk .street-motion{height:25px;font-size:9px;padding:2px 4px}
 .single-desk .metrics{height:auto;min-height:55px}.single-desk .stat .v{font-size:23px!important}.single-desk .stat .stat-note{max-width:78px!important}
 .single-desk .view.overview.on{display:flex;flex-direction:column;gap:10px;overflow:visible}
 .single-desk .desk-left,.single-desk .desk-center,.single-desk .desk-right{width:100%;height:auto}
 .single-desk .desk-center{order:0}.single-desk .desk-right{order:1}.single-desk .desk-left{order:2}
 .single-desk .desk-center #market-panel .chart-wrap{height:210px;flex:none}
 .single-desk .market-head{gap:5px!important;flex-wrap:wrap!important;height:auto!important}.single-desk .market-head .price{font-size:21px}
 .single-desk .market-head .seg{margin-left:0!important}.single-desk .market-head .change{font-size:10px}
 .single-desk .desk-center .economy-vitals{height:auto;grid-template-columns:1fr 1fr}
 .single-desk .economy-vitals .vit{min-height:25px}.single-desk .economy-vitals .vit:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .single-desk .desk-system{grid-template-rows:16px 30px 2px;padding:2px 7px}.single-desk .desk-system-meta small{display:block;margin:1px 0 0}
 .single-desk .desk-upgrade,.single-desk .team-buy{height:28px;min-height:28px}.single-desk .listing-buy{height:28px;min-height:28px}
 .single-desk .desk-tabs{height:32px}.single-desk .desk-tabs button{height:30px;font-size:13px}
 .single-desk .desk-target-strip,.single-desk .desk-cash{height:38px}.single-desk .desk-target-strip select,.single-desk .desk-target-strip>.btn,.single-desk .desk-cash .btn{height:29px;min-height:29px}
 .single-desk .desk-action>.btn{height:30px;min-height:30px}.single-desk .desk-action:has(#poach-person){grid-template-columns:1fr}.single-desk .desk-action:has(#poach-person)>*{grid-column:1}
 .single-desk .foot{height:auto;min-height:26px;margin:0;flex-wrap:wrap}.single-desk .foot .tab{padding:4px 6px;height:26px;font-size:10px}.single-desk .foot .status{display:none}
 .single-desk~.street-feedback{bottom:40px}
}

/* Help floats above the desk and dialogs; it never changes row height. */
.desk-tooltip {
 position:fixed;inset:auto;margin:0;z-index:1000;max-width:min(330px,calc(100vw - 16px));
 padding:10px 12px;border:2px solid #234cad;border-radius:0;
 background:#fff6cf;color:#20231e;box-shadow:3px 3px 0 #20231e30;
 font:12px/1.45 Arial,sans-serif;white-space:pre-line;overflow-wrap:anywhere;
}
.desk-tooltip[hidden]{display:none}
.single-desk [data-tip][tabindex="0"]{cursor:help}
.single-desk [data-tip][tabindex="0"]:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.single-desk .stat[data-tip] .l,.single-desk .desk-reading[data-tip] small{
 text-decoration:underline dotted #8b897c;text-underline-offset:3px;
}
.single-desk .desk-terms p{grid-template-columns:4.8em minmax(0,1fr)}
.single-desk .desk-terms b{white-space:nowrap}
.single-desk .desk-list-labels,.single-desk .desk-choice-row{grid-template-columns:minmax(0,1fr) 83px 73px}
.single-desk .desk-system-meta small{letter-spacing:-.15px}
.single-desk .desk-system-meta{white-space:normal}
.single-desk .desk-system-meta small{white-space:nowrap}
.single-desk .desk-action-risk{min-width:0}
@media(min-width:1101px) and (max-width:1449px){
 .single-desk .desk-system-meta{font-size:9px;line-height:1.1}
 .single-desk .desk-system-meta small{display:block;font-size:8px;line-height:1.1;margin:1px 0 0}
 .single-desk .desk-system{grid-template-rows:14px 23px 2px}
 .single-desk .desk-quick .btn{font-size:8px}
 .single-desk .desk-choice-row b small{font-size:8px}
}

/* No price history before the selected trading venue lists this coin. */
.single-desk .market-head [hidden],.single-desk .chart-wrap canvas[hidden],.single-desk .chart-empty[hidden]{display:none!important}
.single-desk .chart-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:12px;color:var(--muted)}
.single-desk .chart-empty strong{font-size:14px;color:var(--ink)}
.single-desk .chart-empty>span{max-width:260px;font-size:12px;line-height:1.4}
.single-desk .chart-empty .btn{font-size:11px;padding:5px 9px}
/* Fit the risk strip without hiding actions or introducing sidebar scrolling. */
@media(min-width:1101px) and (max-height:760px){
 .single-desk.rules-eight{--team-row:26px;--listing-row:22px;--play-row:17px;--desk-gap:5px}
 .single-desk.rules-eight .desk-selected{padding:3px 6px}
 .single-desk.rules-eight .desk-terms{margin-top:2px;gap:1px}
 .single-desk.rules-eight .desk-action{margin-top:2px}
 .single-desk.rules-eight .desk-action-risk{gap:1px}
 .single-desk.rules-eight .desk-cash{height:30px}
}
@media(min-width:1101px) and (max-height:760px){
 .single-desk.rules-eight .desk-night:has(#poach-person),.single-desk.rules-eight .desk-night:has(.requirement){--play-row:16px}
}
@media(min-width:1450px) and (min-height:900px) and (max-height:1000px){
 .single-desk.rules-eight{--system-row:52px;--team-row:35px}
 .single-desk.rules-eight .desk-system{grid-template-rows:18px 27px 2px}
}
@media(min-width:1450px) and (min-height:900px) and (max-height:1000px){
 .single-desk.rules-eight{--listing-row:32px;--play-row:21px}
 .single-desk.rules-eight .desk-night:has(#poach-person){--play-row:20px}
}
@media(min-width:1101px) and (min-height:761px) and (max-height:899px){
 .single-desk.rules-eight{--system-row:44px;--team-row:30px;--listing-row:28px;--play-row:19px}
 .single-desk.rules-eight .desk-system{grid-template-rows:16px 22px 2px;padding:1px 7px}
 .single-desk.rules-eight .desk-night:has(#poach-person){--play-row:18px}
}

.single-desk button[data-command][aria-disabled="true"],dialog button[data-command][aria-disabled="true"]{color:#807864;background:#f5f2e9;border-color:#d7d1bf;box-shadow:none;filter:none;transform:none;cursor:help}

/* Swap controls live in the existing Monero details dialog. */
.swap-desk{border:2px solid var(--ink);padding:10px;background:var(--paper)}
.swap-heading,.swap-submit{display:flex;align-items:center;justify-content:space-between;gap:8px}
.swap-desk label{display:block;margin:8px 0;font-size:12px}
.swap-desk select,.swap-desk input{display:block;width:100%;margin-top:4px}
.swap-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line);padding:8px 0;margin:8px 0;font-size:11px}
.swap-numbers b,.swap-numbers small{display:block}.swap-numbers b{font:700 15px var(--mono);margin:3px 0}
.swap-pending{padding:8px 0;font-size:12px}.swap-pending progress{display:block;width:100%;height:7px;accent-color:var(--blue);margin:5px 0}
.swap-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.swap-selects label{min-width:0}
.single-desk .growth-panel{flex:none;padding:0}
.single-desk .growth-panel[hidden]{display:none}
.single-desk .growth-panel .ck{min-height:20px;padding:2px 7px;font:var(--desk-small) var(--mono)}
.single-desk .growth-panel h2{font-size:var(--desk-font)}
.growth-line{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 7px;font-size:var(--desk-font)}
.single-desk .growth-line select{min-width:0;flex:1;font:var(--desk-font) var(--sans);height:24px!important;min-height:24px!important;padding:2px 4px}
.single-desk .growth-line .btn{flex:none;min-height:24px!important;height:24px!important;padding:2px 6px;font:var(--desk-small) var(--mono);background:var(--blue);color:white}
.growth-line>b{white-space:nowrap;font:700 var(--desk-small) var(--sans)}
.growth-panel>p{margin:0;padding:0 7px 4px;font:var(--desk-small)/1.2 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
