/* Compact black/emerald command desk, based on Valjean's selected concept. */
body.tc-upgrade{--acc:#00e8c3;--accent:#00e8c3;--green:#00e8c3;--line:#123b35;--mut:#a6b8bf;background:#020708;font-size:13px}
body.tc-upgrade :is(.ambient,.grain,#bgCanvas,.ctabar){display:none}
body.tc-upgrade .tc-icon{display:inline-block;width:20px;height:20px;object-fit:contain;flex-shrink:0;filter:invert(88%) sepia(81%) saturate(1810%) hue-rotate(102deg) brightness(96%) contrast(102%)}
body.tc-upgrade header{height:64px;min-height:64px;padding:8px 12px 8px 96px;gap:14px;flex-wrap:nowrap;background:#020708;border-bottom:0;position:relative;backdrop-filter:none}
body.tc-upgrade .logo .mark{display:none}
body.tc-upgrade .logo b{font-size:20px;letter-spacing:-.5px;white-space:nowrap}
body.tc-upgrade .logo .sub{font-size:11px;letter-spacing:1px;color:var(--mut);margin-top:5px}
body.tc-upgrade header .hchip,body.tc-upgrade header .badge{font-size:11px;letter-spacing:.1px;padding:9px 14px;border-color:#223532;background:#030c0d;white-space:nowrap}
body.tc-upgrade header .hchip b{letter-spacing:0}
body.tc-upgrade header .hchip .tc-icon{width:15px;height:15px}
body.tc-upgrade header .clock{font-size:22px}
body.tc-upgrade header .clockdate{font-size:10px;color:var(--mut);letter-spacing:.1px}
body.tc-upgrade header .btn{border-radius:50%;padding:8px}
body.tc-upgrade .rail{width:84px;padding:10px 0;gap:2px;background:#020b0c;border-right:1px solid #12342e;overflow-y:auto;backdrop-filter:none}
body.tc-upgrade .brandmark{width:52px;height:52px;min-height:52px;margin-bottom:12px;font-size:24px;background:#00d6b2;box-shadow:0 0 20px #00e8c326;border:1px solid #60ffe4;border-radius:14px}
/* Approved 3D brand emblem; keep the dashboard's readable text treatment. */
body.tc-upgrade .brandmark.tc-brandmark{display:grid;place-items:center;width:64px;height:64px;min-height:64px;margin-bottom:8px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-decoration:none;flex-shrink:0}
body.tc-upgrade .tc-brand-emblem{display:block;width:100%;height:100%;object-fit:contain}
body.tc-upgrade .tc-brandmark:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:8px}
@media(max-width:720px){body.tc-upgrade .brandmark.tc-brandmark{width:48px;height:48px;min-height:48px}}
body.tc-upgrade .rbtn{display:flex;flex-direction:column;justify-content:center;gap:7px;width:78px;min-height:60px;height:60px;border-radius:8px;font:400 11px var(--sans);color:#c4d2d7;text-align:center}
body.tc-upgrade .rbtn .tc-icon{width:21px;height:21px;filter:invert(85%) sepia(4%) saturate(1239%) hue-rotate(153deg) brightness(93%) contrast(89%)}
body.tc-upgrade .rbtn.on{background:#00392e;border-color:#00b795;color:#00ffce;box-shadow:inset 3px 0 #00e8c3}
body.tc-upgrade .rbtn.on .tc-icon{filter:invert(88%) sepia(81%) saturate(1810%) hue-rotate(102deg) brightness(96%) contrast(102%)}
body.tc-upgrade .wrap{max-width:none;margin:0 12px 0 94px;padding:0 0 8px}
body.tc-upgrade .tc-status{display:flex;align-items:center;gap:16px;min-height:29px;margin-bottom:7px;padding:3px 10px;border:1px solid #263b30;border-radius:5px;background:#06110e;font:400 11px var(--mono);white-space:nowrap}
body.tc-upgrade .tc-status-label{display:flex;align-items:center;gap:7px;color:var(--acc);font-weight:600}
body.tc-upgrade .tc-status-label .tc-icon{width:15px;height:15px}
body.tc-upgrade .tc-status #tc-refresh{margin-left:auto}
body.tc-upgrade .tc-market{display:grid;grid-template-columns:1.12fr 1fr 1fr 1fr 1fr 1.1fr;gap:8px;margin-bottom:9px}
body.tc-upgrade .tc-market-card,body.tc-upgrade .tc-search{border:1px solid var(--line);border-radius:8px;background:#030d0e;min-width:0;height:86px;padding:9px 11px}
body.tc-upgrade .tc-market-card{display:flex;align-items:center;position:relative}
body.tc-upgrade .tc-market-copy{position:relative;z-index:1;max-width:70%}
body.tc-upgrade .tc-market-card strong{font:600 21px/1.3 var(--mono);color:var(--bright);display:block;margin-top:2px}
body.tc-upgrade .tc-market-card small{font:400 10px/1.4 var(--mono);color:var(--mut);display:block;margin-top:2px}
body.tc-upgrade .tc-market-card.tc-session,body.tc-upgrade .tc-vix{display:block}
body.tc-upgrade .tc-session strong{font:600 17px/1.3 var(--sans);margin:4px 0}
body.tc-upgrade .tc-session small{font-size:10px}
body.tc-upgrade .tc-eyebrow{font:400 11px/1.3 var(--sans);color:#d5e1e5;text-transform:uppercase;white-space:nowrap}
body.tc-upgrade .tc-micro{font-size:10px;color:var(--mut);text-transform:none;font-weight:400}
body.tc-upgrade .tc-spark{position:absolute;right:8px;bottom:11px;width:38%;height:52px;opacity:.95}
body.tc-upgrade .tc-search{display:flex;align-items:center;gap:8px}
body.tc-upgrade .tc-search input{width:100%;min-width:0;background:#091416;border:1px solid #2a3b3f;color:var(--txt);border-radius:5px;padding:12px 9px;font:400 12px var(--sans)}
body.tc-upgrade .tc-search button{background:transparent;border:0;cursor:pointer;padding:0}
body.tc-upgrade .tc-search .tc-icon{width:21px;height:21px}
body.tc-upgrade .tc-kpis{display:grid;grid-template-columns:1.5fr 1.1fr repeat(6,1fr);gap:8px;margin-bottom:9px}
body.tc-upgrade .tc-kpi{position:relative;display:flex;align-items:flex-start;gap:12px;border:1px solid #126454;border-top:2px solid #00bfa2;border-radius:7px;background:#04100f;padding:10px 9px;height:87px;min-width:0;box-shadow:0 0 8px #00d0ad0b}
body.tc-upgrade .tc-kpi>div{min-width:0}
body.tc-upgrade .tc-kpi-icon{background:#003e32;border:1px solid #096954;border-radius:7px;padding:6px;display:flex}
body.tc-upgrade .tc-kpi-icon .tc-icon{width:23px;height:23px}
body.tc-upgrade .tc-kpi b{font:600 clamp(20px,1.5vw,27px)/1.25 var(--mono);display:block;margin:2px 0;color:#f3fbf9;letter-spacing:-1px;white-space:nowrap}
body.tc-upgrade .tc-kpi small{display:block;color:var(--mut);font:400 10px/1.4 var(--mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
body.tc-upgrade .tc-kpi-equity b{font-size:29px}
body.tc-upgrade .tc-kpi-dd{border-color:#746024;border-top-color:#d7b249}
body.tc-upgrade .tc-kpi-dd .tc-kpi-icon{background:#393416;border-color:#746024}
body.tc-upgrade .tc-kpi-dd b{color:var(--amber)}
body.tc-upgrade .tc-desk{display:grid;grid-template-columns:1.02fr 1.03fr 1fr;grid-template-rows:336px 224px;gap:8px;margin-bottom:8px;min-width:0}
body.tc-upgrade .tc-panel{background:#020d0e;border:1px solid #147760;border-radius:8px;padding:9px 10px;min-width:0;overflow:hidden;position:relative}
body.tc-upgrade .tc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:23px;margin-bottom:6px;min-width:0}
body.tc-upgrade .tc-panel h2{display:flex;align-items:center;gap:7px;font:600 14px/1.3 var(--sans);color:#eef5f6;margin:0;text-transform:uppercase;letter-spacing:-.2px;white-space:nowrap}
body.tc-upgrade .tc-panel h2 .tc-icon{padding:2px;border:1px solid #068d72;border-radius:4px;width:23px;height:23px}
body.tc-upgrade .tc-link{color:var(--acc);background:none;border:0;padding:0;font:400 11px var(--sans);display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
body.tc-upgrade .tc-link .tc-icon{width:14px;height:14px}
body.tc-upgrade .tc-chip{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font:400 9px var(--mono);border:1px solid #235449;border-radius:4px;color:var(--acc);background:#06241b;padding:3px 5px;letter-spacing:0}
body.tc-upgrade .tc-tabs{display:flex;gap:5px;margin:6px 0 9px;flex-wrap:wrap}
body.tc-upgrade .tc-tabs button{border:1px solid #1d3236;background:#081416;color:#c4d2d8;font:500 10px var(--sans);text-transform:uppercase;border-radius:5px;padding:6px 10px;cursor:pointer;min-height:27px}
body.tc-upgrade .tc-tabs button.on{background:var(--acc);color:#001f18;border-color:#29fbe1;box-shadow:0 0 11px #00efbf24}
body.tc-upgrade .tc-table-scroll{overflow:auto;max-height:244px;scrollbar-width:thin;scrollbar-color:#176856 #031311}
body.tc-upgrade .tc-table{width:100%;border-collapse:collapse;font:400 11px/1.4 var(--mono);border:1px solid #0d2925;border-radius:5px;text-align:left}
body.tc-upgrade .tc-table th{background:#091619;color:#c4d3da;font-weight:400;text-transform:uppercase;padding:5px 5px;font-size:10px;position:sticky;top:0;z-index:1;white-space:nowrap}
body.tc-upgrade .tc-table td{border-bottom:1px solid #102a27;padding:7px 5px;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-table tr:hover td{background:#07201a}
body.tc-upgrade .tc-table tr.selected td{background:#06291f}
body.tc-upgrade .tc-symbol{background:transparent;border:0;color:#eff9f6;padding:0;font:600 11px var(--mono);cursor:pointer}
body.tc-upgrade .tc-symbol:hover{color:var(--acc)}
body.tc-upgrade .tc-pill{display:inline-flex;align-items:center;justify-content:center;min-width:46px;border:1px solid #32896f;border-radius:4px;background:#05241b;color:#00ecc7;font:400 10px var(--mono);padding:3px 5px;cursor:pointer}
body.tc-upgrade .tc-pill.tc-amber{border-color:#807132;background:#2c2710;color:var(--amber)}
body.tc-upgrade .tc-green,body.tc-upgrade .tc-mint{color:var(--acc)!important}
body.tc-upgrade .tc-amber{color:var(--amber)!important}
body.tc-upgrade .tc-red{color:var(--red)!important}
body.tc-upgrade .tc-bottom-note{font:400 10px/1.4 var(--sans);color:var(--mut);margin-top:6px}
body.tc-upgrade #tc-radar{grid-column:1;grid-row:1}
body.tc-upgrade #tc-chart{grid-column:2;grid-row:1}
body.tc-upgrade #tc-portfolio{grid-column:3;grid-row:1}
body.tc-upgrade #tc-alerts{grid-column:1;grid-row:2}
body.tc-upgrade #tc-news{grid-column:3;grid-row:2}
body.tc-upgrade .tc-middle-lower{grid-column:2;grid-row:2;display:grid;grid-template-columns:1.05fr 1fr;gap:8px;min-width:0}
body.tc-upgrade .tc-middle-lower .tc-panel{padding:7px}
body.tc-upgrade .tc-middle-lower .tc-panel-head{flex-wrap:wrap;margin-bottom:4px}
body.tc-upgrade .tc-middle-lower h2{font-size:11px;gap:4px;letter-spacing:-.3px}
body.tc-upgrade .tc-middle-lower .tc-chip{font-size:8px;padding:2px 4px}
body.tc-upgrade .tc-middle-lower .tc-table{font-size:10px}
body.tc-upgrade .tc-middle-lower .tc-table th,body.tc-upgrade .tc-middle-lower .tc-table td{padding:5px 3px}
body.tc-upgrade .tc-middle-lower .tc-table-scroll{max-height:121px}
body.tc-upgrade .tc-chart-controls{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;height:29px;gap:8px}
body.tc-upgrade .tc-chart-controls h2{display:flex;align-items:center;gap:6px;font:600 14px var(--mono);min-width:0;text-transform:none}
body.tc-upgrade .tc-chart-controls h2 .tc-icon{border:0;padding:0;width:20px;height:20px}
body.tc-upgrade .tc-chart-controls>span{margin-left:auto;display:flex;min-width:0}
body.tc-upgrade #symbox{width:70px!important;font-size:11px;border-radius:4px!important;padding:5px 6px!important}
body.tc-upgrade .tc-chart-controls .btn{padding:7px 9px;font-size:10px;border-radius:4px}
body.tc-upgrade #chartcard{background:#030d0d;border:1px solid #163e32;padding:5px!important;border-radius:5px;box-shadow:none;overflow:hidden}
body.tc-upgrade #chartsvg{min-height:0!important;height:164px}
body.tc-upgrade #chartsvg>svg{height:164px;width:100%}
body.tc-upgrade #chartlegend{gap:8px!important;margin-top:3px!important;font-size:8px!important;line-height:1.4;max-height:22px;overflow:auto}
body.tc-upgrade .tc-chart-meta{font:400 9px/1.4 var(--mono);color:var(--mut);margin:3px 0 6px}
body.tc-upgrade .tc-trade-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #123d32;padding-top:5px;font:500 10px var(--sans);color:var(--acc)}
body.tc-upgrade .tc-trade-head span{color:var(--mut);font-size:9px}
body.tc-upgrade .tc-plan{font:400 11px var(--mono);padding-top:4px}
body.tc-upgrade .tc-plan-fields{display:grid;grid-template-columns:1.3fr 1.7fr 1fr 1fr .6fr;gap:4px}
body.tc-upgrade .tc-plan-fields>div{background:#071718;border:1px solid #1e3736;border-radius:4px;padding:4px 5px;min-width:0}
body.tc-upgrade .tc-plan-fields small{display:block;color:var(--mut);font:400 9px var(--sans)}
body.tc-upgrade .tc-plan-fields b{font:500 10px var(--mono);white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-plan-reason{color:var(--mut);font:400 9px/1.3 var(--sans);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-position-table{height:189px;max-height:189px}
body.tc-upgrade .tc-flat-book{height:155px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:var(--mut)}
body.tc-upgrade .tc-flat-book .tc-icon{width:27px;height:27px}
body.tc-upgrade .tc-flat-book b{color:#dcebe6;font:500 13px var(--sans)}
body.tc-upgrade .tc-flat-book span{font:400 11px var(--sans)}
body.tc-upgrade .tc-portfolio-bottom{display:grid;grid-template-columns:1.08fr 1fr;gap:10px;border:1px solid #0d3429;border-radius:5px;padding:7px;margin-top:6px;height:96px}
body.tc-upgrade .tc-portfolio-bottom h3{font:400 9px var(--sans);text-transform:uppercase;color:#cddbe1;margin:0 0 5px;letter-spacing:0}
body.tc-upgrade .tc-allocation{display:flex;align-items:center;gap:9px;min-width:0}
body.tc-upgrade .tc-donut{position:relative;width:77px;height:77px;flex-shrink:0}
body.tc-upgrade .tc-donut>span{position:absolute;left:0;right:0;top:27px;text-align:center;font:600 11px var(--mono);color:var(--acc)}
body.tc-upgrade .tc-donut>span small{display:block;font:400 6px var(--mono);color:var(--mut);margin-top:3px}
body.tc-upgrade .tc-legend-row{display:flex;justify-content:space-between;gap:9px;font:400 9px var(--mono);line-height:1.8}
body.tc-upgrade .tc-exposure{border-left:1px solid #153c32;padding-left:9px;min-width:0}
body.tc-upgrade .tc-exposure-row{display:flex;justify-content:space-between;font:400 9px/1.7 var(--mono)}
body.tc-upgrade .tc-exposure-row b{font-weight:500}
body.tc-upgrade .tc-exposure small{font:400 8px/1.4 var(--sans);color:var(--mut)}
body.tc-upgrade meter{appearance:none;border:0;border-radius:4px;height:6px;background:#1c2e2f;display:block;width:100%;overflow:hidden}
body.tc-upgrade meter::-webkit-meter-bar{background:#1c2e2f;border:0;box-shadow:none;border-radius:4px}
body.tc-upgrade meter::-webkit-meter-optimum-value{background:#00cba7;border-radius:4px}
body.tc-upgrade meter::-moz-meter-bar{background:#00cba7}
body.tc-upgrade .tc-alert-rows{height:139px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#176856 #031311}
body.tc-upgrade .tc-alert-row{display:grid;grid-template-columns:20px 45px minmax(0,1fr) 49px;gap:9px;align-items:center;width:100%;text-align:left;padding:7px 0;color:var(--txt);background:none;border:0;border-bottom:1px solid #12302b;font:400 11px var(--sans);cursor:pointer}
body.tc-upgrade .tc-alert-row .tc-icon{width:17px;height:17px}
body.tc-upgrade .tc-alert-row>span:not(.tc-pill){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
body.tc-upgrade .tc-alert-row .tc-pill{font-size:9px}
body.tc-upgrade .tc-gauges{display:flex;justify-content:space-between;gap:5px;height:78px;margin:0 0 3px}
body.tc-upgrade .tc-gauge{position:relative;flex:1;min-width:0;text-align:center}
body.tc-upgrade .tc-gauge canvas{width:100%!important;height:55px!important}
body.tc-upgrade .tc-gauge b{position:absolute;top:35px;left:0;right:0;font:500 14px var(--mono);color:#f0f6f5}
body.tc-upgrade .tc-gauge small{display:block;font:400 9px var(--sans);color:var(--mut);margin-top:2px}
body.tc-upgrade .tc-limit{display:grid;grid-template-columns:75px 1fr auto;gap:4px;align-items:center;font:400 9px/1.6 var(--sans)}
body.tc-upgrade .tc-limit b{font:400 8px var(--mono)}
body.tc-upgrade .tc-risk-limits{margin-top:3px}
body.tc-upgrade #tc-risk .tc-bottom-note,body.tc-upgrade #tc-calendar .tc-bottom-note{font-size:8px;line-height:1.4}
body.tc-upgrade .tc-feed-empty{display:flex;gap:12px;align-items:center;height:145px;padding:13px 7px}
body.tc-upgrade .tc-feed-empty>.tc-icon{width:35px;height:35px}
body.tc-upgrade .tc-feed-empty strong{font:500 13px var(--sans);color:#d8e7e2}
body.tc-upgrade .tc-feed-empty p{color:var(--mut);font:400 11px/1.6 var(--sans);margin:6px 0 10px}
body.tc-upgrade .tc-council{padding:7px 8px;margin-bottom:6px}
body.tc-upgrade .tc-council h2{font-size:12px}
body.tc-upgrade .tc-council h2>span{font:400 9px var(--mono);color:var(--mut);margin-left:5px}
body.tc-upgrade .tc-consensus{display:flex;align-items:center;gap:8px;margin-left:auto;font:400 9px var(--mono)}
body.tc-upgrade .tc-council .tc-panel-head{gap:14px;margin-bottom:5px}
body.tc-upgrade .tc-council-seats{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
body.tc-upgrade .tc-agent{min-width:0;display:flex;gap:7px;align-items:flex-start;padding:8px 7px;background:#031113;border:1px solid #125246;border-radius:5px;color:var(--txt);cursor:pointer;text-align:left;height:66px;font:400 11px var(--sans)}
body.tc-upgrade .tc-agent>div{min-width:0;width:100%}
body.tc-upgrade .tc-agent-icon .tc-icon{width:24px;height:24px}
body.tc-upgrade .tc-agent-name{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
body.tc-upgrade .tc-agent-name b{font:600 10px var(--sans);white-space:nowrap}
body.tc-upgrade .tc-seat-status{font:400 6px var(--mono);border:1px solid #1c5c47;border-radius:3px;padding:1px 3px}
body.tc-upgrade .tc-agent small{font:400 7px/1.5 var(--sans);text-transform:uppercase;color:var(--mut);display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:3px 0}
body.tc-upgrade .tc-agent-model{font:400 7px var(--mono);color:#c6dbd4;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.tc-upgrade .tc-secondary{margin:0;border:0}
body.tc-upgrade .tc-secondary>summary{font:400 10px var(--sans);color:var(--mut);cursor:pointer;padding:4px 2px}
body.tc-upgrade .tc-secondary[open]{padding-top:16px}
body.tc-upgrade .tc-secondary[open]>summary{font-size:14px;color:var(--acc);padding:12px 0}
body.tc-upgrade .foot{font:400 10px var(--sans);margin:3px 0 0;padding:5px 0 0;text-align:left;border-color:#12382d;color:var(--mut)}
body.tc-upgrade .foot span{float:right}
body.tc-upgrade :is(button,a,input,summary):focus-visible{outline:2px solid var(--acc);outline-offset:3px}
body.tc-upgrade :is(.tc-panel,.tc-secondary,.section-h){scroll-margin-top:12px}
body.tc-upgrade .tc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1450px){body.tc-upgrade header{gap:8px}body.tc-upgrade header .hchip,body.tc-upgrade header .badge{font-size:9px;padding:8px 10px}body.tc-upgrade .logo b{font-size:17px}body.tc-upgrade .tc-kpi{gap:7px}body.tc-upgrade .tc-kpi-icon{padding:4px}body.tc-upgrade .tc-kpi-icon .tc-icon{width:19px;height:19px}body.tc-upgrade .tc-kpi b{font-size:20px}body.tc-upgrade .tc-eyebrow{font-size:9px}body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(4,minmax(0,1fr))}body.tc-upgrade .tc-middle-lower{grid-template-columns:1fr 1fr}body.tc-upgrade .tc-limit{grid-template-columns:1fr auto}body.tc-upgrade .tc-limit meter{display:none}body.tc-upgrade .tc-panel h2{font-size:12px}body.tc-upgrade .tc-status{font-size:10px;gap:10px}body.tc-upgrade .tc-table{font-size:10px}body.tc-upgrade .tc-middle-lower h2{font-size:9px}}
@media(max-width:1150px){body.tc-upgrade header{height:auto;min-height:64px;flex-wrap:wrap}body.tc-upgrade .tc-status{flex-wrap:wrap;white-space:normal}body.tc-upgrade .tc-market{grid-template-columns:repeat(3,minmax(0,1fr))}body.tc-upgrade .tc-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}body.tc-upgrade .tc-desk{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:336px 336px 244px}body.tc-upgrade #tc-radar{grid-column:1;grid-row:1}body.tc-upgrade #tc-chart{grid-column:2;grid-row:1}body.tc-upgrade #tc-portfolio{grid-column:2;grid-row:2}body.tc-upgrade #tc-alerts{grid-column:1;grid-row:2}body.tc-upgrade #tc-news{grid-column:2;grid-row:3}body.tc-upgrade .tc-middle-lower{grid-column:1;grid-row:3}body.tc-upgrade .tc-middle-lower h2{font-size:10px}body.tc-upgrade .tc-alert-rows{height:240px}body.tc-upgrade .tc-council .tc-panel-head{flex-wrap:wrap}body.tc-upgrade .tc-consensus{margin-left:0}body.tc-upgrade .tc-eyebrow{font-size:11px}body.tc-upgrade .tc-kpi b{font-size:24px}}
@media(max-width:720px){body.tc-upgrade .rail{width:66px}body.tc-upgrade .rbtn{width:60px;min-height:54px;height:54px;font-size:9px}body.tc-upgrade .brandmark{width:42px;height:42px;min-height:42px;font-size:20px}body.tc-upgrade .wrap{margin-left:74px;margin-right:8px}body.tc-upgrade header{padding-left:74px;padding-right:8px;gap:7px}body.tc-upgrade header .spacer{display:none}body.tc-upgrade .logo{width:100%;margin-top:8px}body.tc-upgrade .clockblk{margin-left:auto}body.tc-upgrade header .clock{font-size:17px}body.tc-upgrade .tc-market{grid-template-columns:repeat(2,minmax(0,1fr))}body.tc-upgrade .tc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.tc-upgrade .tc-desk{display:flex;flex-direction:column}body.tc-upgrade #tc-chart{order:0;min-height:336px}body.tc-upgrade #tc-radar{order:1;min-height:336px}body.tc-upgrade #tc-portfolio{order:2;min-height:336px}body.tc-upgrade #tc-alerts{order:3;min-height:224px}body.tc-upgrade .tc-alert-rows{height:160px}body.tc-upgrade .tc-middle-lower{order:4;min-height:244px;grid-template-columns:1fr}body.tc-upgrade #tc-risk{min-height:224px}body.tc-upgrade #tc-calendar{min-height:224px}body.tc-upgrade #tc-news{order:5;min-height:224px}body.tc-upgrade .tc-middle-lower h2{font-size:12px}body.tc-upgrade .tc-middle-lower .tc-table{font-size:11px}body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(2,minmax(0,1fr))}body.tc-upgrade .tc-council h2{flex-wrap:wrap;white-space:normal}body.tc-upgrade .tc-council h2>span{width:100%;font-size:8px}body.tc-upgrade .tc-market-card strong{font-size:18px}body.tc-upgrade .tc-session strong{font-size:14px}body.tc-upgrade .tc-market-copy{max-width:100%}body.tc-upgrade .tc-spark{opacity:.2}body.tc-upgrade .tc-table-scroll{max-width:100%}body.tc-upgrade .tc-table{min-width:340px}body.tc-upgrade .tc-flat-book span{font-size:9px;white-space:normal}body.tc-upgrade .foot span{float:none;display:block;margin-top:4px}body.tc-upgrade .tc-portfolio-bottom{grid-template-columns:1fr;height:auto;min-height:120px}body.tc-upgrade #tc-portfolio{height:auto;min-height:360px}body.tc-upgrade .tc-exposure{border-left:0;padding:0}body.tc-upgrade .tc-chart-controls h2{font-size:12px}body.tc-upgrade .tc-status{font-size:9px}body.tc-upgrade .tc-position-table .tc-table{min-width:380px}}
@media(prefers-reduced-motion:reduce){body.tc-upgrade *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Measured concept layout; original fonts and operational states are preserved. */
body.tc-upgrade{background:#010708;--acc:#00efc6;--line:#145048;--mut:#a8bdc5}
body.tc-upgrade header{height:56px;min-height:56px;gap:12px;padding-top:5px;padding-bottom:5px}
body.tc-upgrade .logo b{font-size:21px;font-weight:600}
body.tc-upgrade header .clock{font-size:23px;line-height:1.1;font-weight:600}
body.tc-upgrade header .hchip{padding:8px 13px;border-color:#203d36}
body.tc-upgrade header .badge.paper{color:#ffe15a;border-color:#807218;background:#171700;box-shadow:0 0 12px #ffe80012}
body.tc-upgrade .tc-header-actions{display:flex;align-items:center;gap:8px}
body.tc-upgrade .tc-header-icon,body.tc-upgrade .tc-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;border:1px solid #193c35;border-radius:50%;background:#030c0d;color:#00efc6;cursor:pointer}
body.tc-upgrade .tc-header-icon .tc-icon{width:18px;height:18px}
body.tc-upgrade .tc-avatar{font:500 21px var(--sans);border-color:#087b58}
body.tc-upgrade .tc-status{min-height:24px;height:24px;margin-bottom:5px;padding:2px 9px;border-color:#254533;background:#04100c;font-size:10px}
body.tc-upgrade .tc-status-label{font-size:9px}
body.tc-upgrade .tc-market{margin-bottom:8px;gap:8px}
body.tc-upgrade .tc-market-card,body.tc-upgrade .tc-search{height:80px;padding:8px 10px;background:#030c0d;border-color:#174139}
body.tc-upgrade .tc-market-card strong{font-size:22px;letter-spacing:-.6px}
body.tc-upgrade .tc-session strong{font-size:17px;letter-spacing:0}
body.tc-upgrade .tc-spark{height:54px;width:40%;bottom:10px}
body.tc-upgrade .tc-kpis{grid-template-columns:1.8fr 1.12fr repeat(6,minmax(0,1fr));margin-bottom:8px;gap:8px}
body.tc-upgrade .tc-kpi{height:84px;padding:8px 9px;gap:10px;border-color:#08785d;border-top-color:#00bca0;background:#020f0e;box-shadow:inset 0 0 15px #00d5aa08,0 0 7px #00efc612}
body.tc-upgrade .tc-kpi-icon{padding:7px;background:#00372b;border-color:#096d57}
body.tc-upgrade .tc-kpi-icon .tc-icon{width:24px;height:24px}
body.tc-upgrade .tc-kpi b{font-size:25px;letter-spacing:-.5px}
body.tc-upgrade .tc-kpi-equity b{font-size:30px}
body.tc-upgrade .tc-kpi-spark{position:absolute;right:9px;bottom:17px;width:29%;height:44px;pointer-events:none}
body.tc-upgrade .tc-kpi-spark canvas{width:100%!important;height:100%!important}
body.tc-upgrade .tc-kpi-dd{border-color:#867126;border-top-color:#d9bb38}
body.tc-upgrade .tc-panel{background:#020b0c;border-color:#0d7962;box-shadow:inset 0 0 18px #007b4e05;padding:8px 9px;border-radius:8px}
body.tc-upgrade .tc-panel h2{font-size:14px;font-weight:600;letter-spacing:-.3px}
body.tc-upgrade .tc-panel-head{min-height:23px;margin-bottom:5px}
body.tc-upgrade .tc-panel h2 .tc-icon{width:23px;height:23px}
body.tc-upgrade .tc-desk{grid-template-columns:1.03fr 1.04fr 1fr;grid-template-rows:280px 42px 194px;gap:8px;margin-bottom:8px}
body.tc-upgrade #tc-radar{grid-column:1;grid-row:1}
body.tc-upgrade #tc-chart{grid-column:2;grid-row:1/3}
body.tc-upgrade #tc-portfolio{grid-column:3;grid-row:1/3}
body.tc-upgrade #tc-alerts{grid-column:1;grid-row:2/4}
body.tc-upgrade .tc-middle-lower{grid-column:2/4;grid-row:3;grid-template-columns:1.06fr 1.06fr 1.18fr;gap:8px}
body.tc-upgrade .tc-middle-lower #tc-news{grid-column:auto;grid-row:auto}
body.tc-upgrade .tc-middle-lower .tc-panel{padding:7px}
body.tc-upgrade .tc-middle-lower .tc-panel-head{min-height:23px;flex-wrap:nowrap;margin-bottom:5px}
body.tc-upgrade .tc-middle-lower h2{font-size:12px}
body.tc-upgrade .tc-middle-lower .tc-chip{font-size:8px;padding:2px 4px}
body.tc-upgrade .tc-tabs{margin:5px 0 8px;gap:6px}
body.tc-upgrade .tc-tabs button{font-size:10px;padding:5px 10px;min-height:26px;box-shadow:none}
body.tc-upgrade .tc-tabs button.on{box-shadow:0 0 9px #00e8c338}
body.tc-upgrade .tc-table{font-size:11px;line-height:1.3}
body.tc-upgrade .tc-table th{padding:6px 5px;font-size:10px}
body.tc-upgrade .tc-table td{padding:6px 5px}
body.tc-upgrade #tc-radar .tc-table-scroll{max-height:181px}
body.tc-upgrade .tc-bottom-note{font-size:9px;margin-top:5px}
body.tc-upgrade .tc-chart-controls{height:25px;gap:5px;margin-bottom:5px}
body.tc-upgrade .tc-chart-controls h2{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-chart-controls>span{margin-left:auto;flex-shrink:0}
body.tc-upgrade #symbox{width:57px!important;padding:4px 5px!important;font-size:10px}
body.tc-upgrade .tc-chart-controls .btn{padding:5px 7px;font-size:9px}
body.tc-upgrade .tc-chart-ranges{display:flex;gap:2px;flex-shrink:0}
body.tc-upgrade .tc-chart-ranges button{cursor:pointer;padding:4px 5px;min-height:24px;font:400 9px var(--mono);border:1px solid #1e3832;background:#091617;color:#d2dedf;border-radius:4px}
body.tc-upgrade .tc-chart-ranges button.on{background:#00cda9;border-color:#00eac5;color:#00221a;box-shadow:0 0 9px #00cda936}
body.tc-upgrade #tc-price-chart{height:162px;width:100%;position:relative;border:1px solid #163b30;border-radius:3px;overflow:hidden;background:#030b0c}
body.tc-upgrade .tc-chart-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#a8bdc5;font:400 11px var(--sans);background:#030b0c;z-index:2}
body.tc-upgrade .tc-volume-state{position:absolute;bottom:23px;left:7px;font:400 8px var(--mono);color:#829a93;pointer-events:none;z-index:2}
body.tc-upgrade .tc-chart-key{display:flex;align-items:center;gap:9px;height:18px;font:400 9px var(--mono)}
body.tc-upgrade .tc-blue{color:#52a2ff}
body.tc-upgrade .tc-chart-key button{background:none;border:0;border-radius:2px;font:400 9px var(--mono);color:#a8bfc2;cursor:pointer;padding:1px 0}
body.tc-upgrade .tc-chart-key button[aria-pressed="true"]{color:#00eac5}
body.tc-upgrade .tc-chart-key a{color:#829b9a;margin-left:auto;font-size:8px}
body.tc-upgrade .tc-chart-meta{font-size:9px;margin:0 0 4px;line-height:1.3}
body.tc-upgrade .tc-trade-head{padding-top:4px;font-size:10px}
body.tc-upgrade .tc-plan{padding-top:4px;min-height:29px}
body.tc-upgrade .tc-plan-fields{grid-template-columns:1.2fr 1.7fr 1fr 1fr .6fr}
body.tc-upgrade .tc-plan-fields>div{padding:4px 5px}
body.tc-upgrade .tc-plan-reason{display:none}
body.tc-upgrade .tc-position-table{height:176px;max-height:176px}
body.tc-upgrade .tc-flat-book{height:140px}
body.tc-upgrade .tc-flat-book b{font-size:13px}
body.tc-upgrade .tc-portfolio-bottom{height:102px;margin-top:6px;padding:7px;gap:7px;grid-template-columns:1.1fr 1fr}
body.tc-upgrade .tc-donut{height:84px;width:84px}
body.tc-upgrade .tc-donut canvas{width:100%!important;height:100%!important}
body.tc-upgrade .tc-donut>span{top:30px}
body.tc-upgrade .tc-portfolio-bottom h3{font-size:10px}
body.tc-upgrade .tc-legend-row,body.tc-upgrade .tc-exposure-row{font-size:10px}
body.tc-upgrade .tc-alert-rows{height:163px}
body.tc-upgrade .tc-alert-row{padding:9px 0;grid-template-columns:20px 48px minmax(0,1fr) 48px;gap:8px;font-size:11px}
body.tc-upgrade .tc-alert-row>span:not(.tc-pill){font-size:11px}
body.tc-upgrade .tc-gauges{height:74px;margin-bottom:3px}
body.tc-upgrade .tc-gauge canvas{height:54px!important}
body.tc-upgrade .tc-gauge b{font-size:18px;top:34px}
body.tc-upgrade .tc-gauge small{font-size:10px}
body.tc-upgrade .tc-middle-lower .tc-limit{grid-template-columns:84px 1fr auto;font-size:10px;line-height:1.8}
body.tc-upgrade .tc-middle-lower .tc-limit b{font-size:9px}
body.tc-upgrade .tc-middle-lower .tc-limit meter{display:block}
body.tc-upgrade .tc-middle-lower .tc-table-scroll{max-height:118px}
body.tc-upgrade .tc-middle-lower .tc-bottom-note{font-size:9px;line-height:1.3}
body.tc-upgrade .tc-feed-empty{height:117px;padding:8px 4px;gap:10px}
body.tc-upgrade .tc-feed-empty>.tc-icon{width:29px;height:29px}
body.tc-upgrade .tc-feed-empty strong{font-size:12px}
body.tc-upgrade .tc-feed-empty p{font-size:11px;line-height:1.4;margin:5px 0 8px}
body.tc-upgrade .tc-council{height:100px;padding:7px 8px;margin-bottom:4px}
body.tc-upgrade .tc-council h2{font-size:13px}
body.tc-upgrade .tc-council h2>span{font-size:9px}
body.tc-upgrade .tc-council .tc-panel-head{min-height:23px;margin-bottom:5px;gap:10px}
body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
body.tc-upgrade .tc-agent{height:56px;padding:6px 6px;gap:6px}
body.tc-upgrade .tc-agent-icon .tc-icon{width:24px;height:24px}
body.tc-upgrade .tc-agent-name{flex-wrap:nowrap;gap:3px}
body.tc-upgrade .tc-agent-name b{font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-seat-status{flex-shrink:0;font-size:6px;padding:1px 2px}
body.tc-upgrade .tc-agent small{font-size:8px;line-height:1.4;margin:3px 0}
body.tc-upgrade .tc-agent-model{font-size:8px;line-height:1.3}
body.tc-upgrade .tc-agent-color-0 .tc-icon{filter:invert(75%) sepia(58%) saturate(822%) hue-rotate(344deg) brightness(104%) contrast(107%)}
body.tc-upgrade .tc-agent-color-1 .tc-icon{filter:invert(95%) sepia(8%) saturate(151%) hue-rotate(123deg) brightness(99%) contrast(89%)}
body.tc-upgrade .tc-agent-color-2 .tc-icon{filter:invert(58%) sepia(99%) saturate(1254%) hue-rotate(193deg) brightness(103%) contrast(102%)}
body.tc-upgrade .tc-secondary:not([open])>summary{display:none}
body.tc-upgrade .tc-secondary[open]{padding-top:14px}
body.tc-upgrade .tc-original-chart{margin:16px 0 20px}
body.tc-upgrade .tc-original-chart p{color:var(--mut);font-size:12px}
body.tc-upgrade .tc-original-chart #chartsvg,body.tc-upgrade .tc-original-chart #chartsvg>svg{height:auto;min-height:340px!important}
body.tc-upgrade .tc-original-chart #chartlegend{max-height:none;font-size:12px!important}
body.tc-upgrade #chartsym,body.tc-upgrade [hidden]{display:none!important}
body.tc-upgrade .foot{font-size:10px;padding-top:4px;margin-top:0}
@media(max-width:1450px) and (min-width:1151px){
 body.tc-upgrade header{gap:7px}
 body.tc-upgrade .logo b{font-size:17px}
 body.tc-upgrade header .clock{font-size:21px}
 body.tc-upgrade header .hchip,body.tc-upgrade header .badge{font-size:9px;padding:7px 9px}
 body.tc-upgrade .tc-header-actions{gap:5px}
 body.tc-upgrade .tc-header-icon,body.tc-upgrade .tc-avatar{width:29px;height:29px}
 body.tc-upgrade .tc-kpi{gap:6px;padding:8px 7px}
 body.tc-upgrade .tc-kpi-icon{padding:4px}
 body.tc-upgrade .tc-kpi-icon .tc-icon{width:19px;height:19px}
 body.tc-upgrade .tc-kpi b{font-size:21px}
 body.tc-upgrade .tc-kpi-equity b{font-size:27px}
 body.tc-upgrade .tc-kpi-power b{font-size:19px}
 body.tc-upgrade .tc-eyebrow{font-size:9px}
 body.tc-upgrade .tc-market-card strong{font-size:20px}
 body.tc-upgrade .tc-market-copy{max-width:100%}
 body.tc-upgrade .tc-spark{width:35%;opacity:.6}
 body.tc-upgrade .tc-panel h2{font-size:12px}
 body.tc-upgrade .tc-middle-lower h2{font-size:10px}
 body.tc-upgrade .tc-middle-lower .tc-panel-head{flex-wrap:wrap;min-height:28px}
 body.tc-upgrade .tc-middle-lower .tc-chip{font-size:7px}
 body.tc-upgrade .tc-middle-lower .tc-limit{grid-template-columns:1fr auto;font-size:9px}
 body.tc-upgrade .tc-middle-lower .tc-limit meter{display:none}
 body.tc-upgrade .tc-donut{width:65px;height:65px}
 body.tc-upgrade .tc-donut>span{top:22px;font-size:10px}
 body.tc-upgrade .tc-donut>span small{font-size:5px}
 body.tc-upgrade .tc-allocation{gap:5px}
 body.tc-upgrade .tc-portfolio-bottom h3{font-size:8px}
 body.tc-upgrade .tc-legend-row,body.tc-upgrade .tc-exposure-row{font-size:8px}
 body.tc-upgrade .tc-chart-controls h2{font-size:11px}
 body.tc-upgrade #symbox{width:43px!important;font-size:9px}
 body.tc-upgrade .tc-chart-controls .btn{font-size:8px;padding:5px}
 body.tc-upgrade .tc-chart-ranges button{font-size:8px;padding:4px}
 body.tc-upgrade .tc-table{font-size:10px}
 body.tc-upgrade .tc-table th{font-size:9px}
 body.tc-upgrade .tc-tabs button{padding:5px 7px;font-size:9px}
 body.tc-upgrade .tc-council h2>span{font-size:8px}
 body.tc-upgrade .tc-agent-icon .tc-icon{width:18px;height:18px}
 body.tc-upgrade .tc-agent{gap:4px;padding:6px 4px}
 body.tc-upgrade .tc-agent-name b{font-size:10px}
 body.tc-upgrade .tc-seat-status{font-size:5px}
 body.tc-upgrade .tc-agent small,body.tc-upgrade .tc-agent-model{font-size:7px}
}
@media(max-width:1150px){
 body.tc-upgrade header{height:auto;min-height:64px;flex-wrap:wrap}
 body.tc-upgrade .tc-header-actions{margin-left:auto}
 body.tc-upgrade .tc-status{height:auto;min-height:26px;flex-wrap:wrap;white-space:normal}
 body.tc-upgrade .tc-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.tc-upgrade .tc-desk{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:330px 330px 220px}
 body.tc-upgrade #tc-radar{grid-column:1;grid-row:1}
 body.tc-upgrade #tc-chart{grid-column:2;grid-row:1}
 body.tc-upgrade #tc-portfolio{grid-column:2;grid-row:2}
 body.tc-upgrade #tc-alerts{grid-column:1;grid-row:2}
 body.tc-upgrade .tc-middle-lower{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.tc-upgrade #tc-alerts{min-height:0}
 body.tc-upgrade .tc-alert-rows{height:236px}
 body.tc-upgrade #tc-radar .tc-table-scroll{max-height:231px}
 body.tc-upgrade .tc-council{height:auto;min-height:100px}
 body.tc-upgrade .tc-council .tc-panel-head{flex-wrap:wrap}
 body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.tc-upgrade .tc-middle-lower .tc-panel-head{flex-wrap:wrap}
 body.tc-upgrade .tc-middle-lower h2{font-size:11px}
 body.tc-upgrade .tc-chart-controls h2{font-size:12px}
 body.tc-upgrade .tc-eyebrow{font-size:11px}
 body.tc-upgrade .tc-kpi b{font-size:24px}
}
@media(max-width:720px){
 body.tc-upgrade .tc-kpi-spark{display:none}
 body.tc-upgrade .rail{width:66px;flex-direction:column;align-items:center;top:0;bottom:0;height:100dvh;padding:10px 0;overflow-x:hidden;overflow-y:auto;gap:2px}
 body.tc-upgrade:has(.rail) header{padding:10px 8px 10px 74px;gap:8px}
 body.tc-upgrade .logo b{font-size:16px}
 body.tc-upgrade .tc-header-actions{margin-left:0}
 body.tc-upgrade:has(.rail) .wrap{padding:0 0 8px}
 body.tc-upgrade .tc-market{grid-template-columns:1fr 1fr}
 body.tc-upgrade .tc-market-card{height:82px}
 body.tc-upgrade .tc-market-card strong{font-size:19px}
 body.tc-upgrade .tc-market-card small{font-size:9px}
 body.tc-upgrade .tc-kpis{grid-template-columns:1fr 1fr}
 body.tc-upgrade .tc-kpi{height:92px;gap:7px}
 body.tc-upgrade .tc-kpi-icon{padding:4px}
 body.tc-upgrade .tc-kpi-icon .tc-icon{width:19px;height:19px}
 body.tc-upgrade .tc-kpi b{font-size:21px}
 body.tc-upgrade .tc-kpi-power b{font-size:17px}
 body.tc-upgrade .tc-eyebrow{font-size:9px}
 body.tc-upgrade .tc-desk{display:flex;flex-direction:column}
 body.tc-upgrade #tc-radar{height:364px;min-height:364px}
 body.tc-upgrade #tc-chart{height:418px;min-height:418px}
 body.tc-upgrade #tc-portfolio{height:350px}
 body.tc-upgrade #tc-alerts{height:250px;min-height:250px}
 body.tc-upgrade .tc-alert-rows{height:154px}
 body.tc-upgrade .tc-chart-controls{flex-wrap:wrap;height:52px}
 body.tc-upgrade .tc-chart-controls h2{font-size:12px}
 body.tc-upgrade .tc-chart-controls>span{flex-shrink:0}
 body.tc-upgrade .tc-chart-ranges{margin-left:auto}
 body.tc-upgrade .tc-plan-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.tc-upgrade .tc-plan-fields b{white-space:normal;overflow-wrap:anywhere}
 body.tc-upgrade #tc-price-chart{height:170px}
 body.tc-upgrade .tc-middle-lower{display:flex;flex-direction:column}
 body.tc-upgrade .tc-middle-lower .tc-panel{min-height:210px}
 body.tc-upgrade .tc-middle-lower h2{font-size:12px}
 body.tc-upgrade .tc-middle-lower .tc-limit{grid-template-columns:1fr 1fr auto;font-size:10px}
 body.tc-upgrade .tc-council h2>span{display:none}
 body.tc-upgrade .tc-consensus{margin-left:0;font-size:8px}
 body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tc-upgrade .tc-agent{height:70px}
 body.tc-upgrade .tc-agent-name{flex-wrap:wrap}
 body.tc-upgrade .tc-agent-name b{font-size:11px}
 body.tc-upgrade .tc-agent small{font-size:8px}
 body.tc-upgrade .foot{font-size:9px;line-height:1.7}
 body.tc-upgrade .foot span{float:none;display:block}
}
@media(prefers-reduced-motion:reduce){body.tc-upgrade *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* ===================================================================== */
/* PHOTO-MATCH OVERRIDES — 2026-10-11 · green/black terminal, 4-row desk  */
/* Appended last so these win at equal specificity. Real-data layout:     */
/* market+indices / 6 stat tiles / radar+performance+risk-matrix /        */
/* AI agent council / green attribution footer.                           */
/* ===================================================================== */
body.tc-upgrade{--acc:#3df5a5;--accent:#3df5a5;--green:#3df5a5;--amber:#ffc857;--red:#ff5c6c}
body.tc-upgrade .tc-mint,body.tc-upgrade .tc-green{color:#3df5a5!important}
body.tc-upgrade .tc-dim,body.tc-upgrade .tc-dim-cell{color:#6f7d84}
body.tc-upgrade .tc-secondary>summary{display:flex;align-items:center;gap:7px}

/* keep the overview tool-strip from the old build hidden if present */
body.tc-upgrade .tc-overview>.tc-status{display:none}

/* ---- Row 1: market + index tiles ---- */
body.tc-upgrade .tc-market{grid-template-columns:1.25fr 1fr 1fr 1fr 1fr 1.15fr;gap:9px;margin-bottom:9px}
body.tc-upgrade .tc-market-card.tc-session-card{display:block}
body.tc-upgrade .tc-session-card strong{font:600 17px/1.3 var(--sans);margin:4px 0;display:block}
body.tc-upgrade .tc-index .tc-market-copy{max-width:66%}
body.tc-upgrade .tc-index-chg{font:500 10.5px/1.4 var(--mono);display:block;margin-top:3px;white-space:nowrap}

/* ---- Row 2: six stat tiles ---- */
body.tc-upgrade .tc-kpis{grid-template-columns:1.35fr repeat(5,1fr)!important;gap:9px;margin-bottom:10px}
body.tc-upgrade .tc-kpi{height:92px;align-items:flex-start}
body.tc-upgrade .tc-kpi-body{min-width:0;flex:1}
body.tc-upgrade .tc-kpi b{font-size:25px}
body.tc-upgrade .tc-kpi-equity b{font-size:29px}
body.tc-upgrade .tc-kpi-tag{display:inline-block;margin-left:6px;font:500 8px/1 var(--mono);color:#9dffd6;border:1px solid #1c5c47;border-radius:4px;padding:2px 5px;vertical-align:middle;text-transform:none}
body.tc-upgrade .tc-kpi-risk b,body.tc-upgrade .tc-kpi-win b{color:#f3fbf9}

/* ---- Row 3: radar / performance / risk matrix ---- */
body.tc-upgrade .tc-desk{grid-template-columns:1.12fr 1.18fr 1fr!important;grid-template-rows:auto!important;grid-auto-rows:auto;gap:9px;min-height:380px}
body.tc-upgrade .tc-desk>.tc-panel{min-height:380px;display:flex;flex-direction:column;overflow:hidden}
body.tc-upgrade #tc-radar{grid-column:1!important;grid-row:1!important}
body.tc-upgrade #tc-perf{grid-column:2!important;grid-row:1!important}
body.tc-upgrade #tc-risk{grid-column:3!important;grid-row:1!important}
body.tc-upgrade .tc-radar-table th:nth-child(4),body.tc-upgrade .tc-radar-table td:nth-child(4){text-align:right}
body.tc-upgrade #tc-radar .tc-table-scroll{max-height:252px;flex:1}
body.tc-upgrade .tc-trend{font-size:12px;font-weight:700}
body.tc-upgrade .tc-pill.tc-green{border-color:#2f8f5f;background:rgba(61,245,165,.12);color:#3df5a5}
body.tc-upgrade .tc-pill.tc-red-pill{border-color:#7a2f38;background:rgba(255,92,108,.12);color:#ff5c6c}
body.tc-upgrade .tc-pill.tc-amber{border-color:#807132;background:rgba(255,200,87,.12);color:#ffc857}

/* performance */
body.tc-upgrade .tc-perf-ranges{display:flex;gap:3px;flex-shrink:0}
body.tc-upgrade .tc-perf-ranges button{cursor:pointer;padding:4px 8px;min-height:24px;font:500 9.5px var(--mono);border:1px solid #1e3832;background:#091617;color:#c4d2d8;border-radius:5px}
body.tc-upgrade .tc-perf-ranges button.on{background:#3df5a5;border-color:#29fbe1;color:#04140d;box-shadow:0 0 9px #3df5a533}
body.tc-upgrade .tc-perf-head{display:flex;align-items:flex-end;justify-content:space-between;margin:4px 0 6px}
body.tc-upgrade .tc-perf-eq{display:flex;align-items:baseline;gap:8px}
body.tc-upgrade .tc-perf-eq b{font:600 22px/1 var(--mono);color:#f2f7f8;letter-spacing:-.5px}
body.tc-upgrade .tc-perf-chart{position:relative;flex:1;min-height:150px;border:1px solid #163b30;border-radius:5px;background:#030b0c;padding:4px;overflow:hidden}
body.tc-upgrade .tc-perf-chart canvas{width:100%!important;height:100%!important}
body.tc-upgrade .tc-perf-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:8px}
body.tc-upgrade .tc-perf-stat{background:#071718;border:1px solid #143c33;border-radius:5px;padding:6px 7px;min-width:0}
body.tc-upgrade .tc-perf-stat small{display:block;font:500 8.5px/1.3 var(--mono);color:#6f7d84;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-perf-stat b{display:block;font:600 14px/1.2 var(--mono);color:#f2f7f8;margin-top:3px;white-space:nowrap}

/* risk matrix */
body.tc-upgrade #tc-risk .tc-table-scroll{max-height:252px;flex:1}
body.tc-upgrade .tc-matrix-table td{font-size:11px}
body.tc-upgrade .tc-matrix-foot{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;margin-top:8px;border-top:1px solid #143c33;padding-top:8px}
body.tc-upgrade .tc-matrix-foot small{display:block;font:500 8.5px/1.3 var(--mono);color:#6f7d84;text-transform:uppercase;letter-spacing:.6px}
body.tc-upgrade .tc-matrix-foot b{display:block;font:600 14px/1.2 var(--mono);color:#f2f7f8;margin-top:3px}

/* ---- Row 4: AI agent council ---- */
body.tc-upgrade .tc-council{height:auto;padding:10px 11px;margin:0 0 10px}
body.tc-upgrade .tc-council-head{gap:12px;flex-wrap:wrap}
body.tc-upgrade .tc-council-sub{font:400 9px var(--mono);color:#6f7d84;margin-left:6px;text-transform:uppercase;letter-spacing:.8px}
body.tc-upgrade .tc-consensus{display:flex;align-items:center;gap:7px;margin-left:auto;font:500 9px var(--mono)}
body.tc-upgrade .tc-consensus-label{color:#9fb0b7;text-transform:uppercase;letter-spacing:.8px}
body.tc-upgrade .tc-cbar{border:1px solid #1d3236;border-radius:5px;padding:5px 10px;color:#8ea0a6;white-space:nowrap}
body.tc-upgrade .tc-cbar-bull.on{background:rgba(61,245,165,.16);border-color:#2f8f5f;color:#3df5a5}
body.tc-upgrade .tc-cbar-neu.on{background:rgba(255,200,87,.14);border-color:#807132;color:#ffc857}
body.tc-upgrade .tc-cbar-veto.on{background:rgba(255,92,108,.14);border-color:#7a2f38;color:#ff5c6c}
body.tc-upgrade .tc-council-seats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px}
body.tc-upgrade .tc-agent{display:flex;flex-direction:column;gap:6px;height:auto;min-height:132px;padding:9px 9px;background:#031113;border:1px solid #125246;border-radius:7px;cursor:default}
body.tc-upgrade .tc-agent.is-off{opacity:.72;border-color:#2a3a38}
body.tc-upgrade .tc-agent-top{display:flex;align-items:center;gap:7px;width:100%}
body.tc-upgrade .tc-agent-icon{flex-shrink:0;display:flex;background:#00261e;border:1px solid #0b4a3a;border-radius:7px;padding:5px}
body.tc-upgrade .tc-agent-icon .tc-icon{width:20px;height:20px}
body.tc-upgrade .tc-agent-id{min-width:0;flex:1}
body.tc-upgrade .tc-agent-id b{display:block;font:600 11px var(--sans);color:#eef5f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tc-upgrade .tc-agent-id small{display:block;font:400 8px/1.3 var(--sans);color:#6f7d84;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
body.tc-upgrade .tc-agent-dot{flex-shrink:0;font:600 7.5px var(--mono);letter-spacing:.5px;border-radius:4px;padding:3px 5px}
body.tc-upgrade .tc-agent-dot.on{color:#3df5a5;background:rgba(61,245,165,.12);border:1px solid #2f8f5f}
body.tc-upgrade .tc-agent-dot.off{color:#ff5c6c;background:rgba(255,92,108,.1);border:1px solid #7a2f38}
body.tc-upgrade .tc-agent-rows{display:flex;flex-direction:column;gap:3px;width:100%;margin-top:1px}
body.tc-upgrade .tc-agent-rows>div{display:flex;justify-content:space-between;gap:6px;font:400 9px/1.4 var(--mono)}
body.tc-upgrade .tc-agent-rows span{color:#6f7d84}
body.tc-upgrade .tc-agent-rows b{color:#c6dbd4;font-weight:500}
body.tc-upgrade .tc-agent-model{font:400 8px var(--mono);color:#7f9a92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:1px solid #0f2f2a;padding-top:5px;margin-top:auto}
body.tc-upgrade .tc-council-votenote{grid-column:1/-1;font:400 9px var(--mono);color:#6f7d84;margin-top:6px}

/* ---- Footer: green attribution bar + ACCESS CTA ---- */
body.tc-upgrade .tc-footbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 8px;padding:12px 16px;border:1px solid #1c6e52;border-radius:9px;background:linear-gradient(180deg,rgba(61,245,165,.08),rgba(61,245,165,.02))}
body.tc-upgrade .tc-foot-main{font:600 13px/1.4 var(--sans);color:#3df5a5}
body.tc-upgrade .tc-foot-sub{font:500 10.5px/1.5 var(--mono);color:#7fe9bf;margin-top:3px}
body.tc-upgrade .tc-cta{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;background:#3df5a5;color:#04140d;border:0;border-radius:8px;padding:11px 20px;font:600 13px var(--sans);cursor:pointer;box-shadow:0 0 16px rgba(61,245,165,.22)}
body.tc-upgrade .tc-cta:hover{background:#5bffb9}
body.tc-upgrade .tc-cta-arrow{font-size:15px}

/* ---- Bell badge ---- */
body.tc-upgrade .tc-bell{position:relative}
body.tc-upgrade .tc-bell-badge{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;padding:0 3px;border-radius:999px;background:#ff5c6c;color:#fff;font:600 8.5px/15px var(--mono);text-align:center}

/* ---- Responsive: stack the three main columns ---- */
@media(max-width:1250px){
 body.tc-upgrade .tc-market{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.tc-upgrade .tc-kpis{grid-template-columns:repeat(3,1fr)!important}
 body.tc-upgrade .tc-desk{grid-template-columns:1fr 1fr!important;grid-auto-rows:auto}
 body.tc-upgrade #tc-radar{grid-column:1!important}
 body.tc-upgrade #tc-perf{grid-column:2!important}
 body.tc-upgrade #tc-risk{grid-column:1/-1!important;grid-row:2!important;min-height:300px}
 body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.tc-upgrade .tc-consensus{margin-left:0}
}
@media(max-width:820px){
 body.tc-upgrade .tc-market{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tc-upgrade .tc-kpis{grid-template-columns:repeat(2,1fr)!important}
 body.tc-upgrade .tc-desk{display:flex!important;flex-direction:column}
 body.tc-upgrade .tc-desk>.tc-panel{min-height:340px}
 body.tc-upgrade .tc-perf-stats{grid-template-columns:repeat(3,1fr)}
 body.tc-upgrade .tc-council-seats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.tc-upgrade .tc-footbar{flex-direction:column;align-items:flex-start;gap:10px}
}

/* Full 3D wordmark band above the footer bar. No frame: the image's black field is masked out into the page. */
body.tc-upgrade .tc-brand-band{display:block;margin:18px auto 6px;max-width:980px;line-height:0}
body.tc-upgrade .tc-brand-band img{display:block;width:100%;height:auto;-webkit-mask-image:radial-gradient(ellipse 62% 70% at 50% 46%,#000 58%,transparent 100%);mask-image:radial-gradient(ellipse 62% 70% at 50% 46%,#000 58%,transparent 100%)}

/* Header wordmark image (3D lettering, transparent field — no box). */
body.tc-upgrade .logo .tc-wordmark{line-height:0}
body.tc-upgrade .logo .tc-wordmark img{display:block;height:44px;width:auto;max-width:42vw;object-fit:contain}
@media(max-width:720px){body.tc-upgrade .logo .tc-wordmark img{height:32px;max-width:56vw}}
