:root{--border:#dbe2ea;--text:#172033;--muted:#667085;--up:#16803c;--down:#c62828;--blue:#155eef;--surface:#ffffff;--soft:#f7f9fc;--shadow:0 4px 18px rgba(16,24,40,.06)}*{box-sizing:border-box}/* CMS 50 index */
.market-subheading{margin:28px 0 12px;font-size:15px;color:#172033}.ipo-tile{background:#fff;border:1px solid #d8e0e9;color:#354052}.ipo-tile em{font-style:normal;font-size:9px;letter-spacing:.05em;color:#7a8699}.cms50-card{display:flex;align-items:center;justify-content:space-between;margin:20px 0 22px;padding:20px 24px;border:1px solid #d8e0e9;border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(20,33,61,.055)}
.jse-hero{width:100%;height:300px;margin:18px 0 22px;border-radius:16px;overflow:hidden;background:#061426;border:1px solid #152942;box-shadow:0 8px 28px rgba(20,33,61,.10);display:flex;align-items:center;justify-content:center}.jse-hero img{width:100%;height:100%;object-fit:cover;object-position:center}.cms50-label{display:block;font-size:9px;letter-spacing:.1em;color:#7a8699;margin-bottom:5px}.cms50-card h2{margin:0;color:#14213d;font-size:25px;letter-spacing:-.025em}.cms50-card p{margin:4px 0 0;color:#7a8699;font-size:11px}.cms50-value{text-align:right}.market-status-wrap{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-bottom:7px}.market-status-label{font-size:9px;letter-spacing:.1em;color:#7a8699}.market-status{display:inline-block;padding:4px 9px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.06em;border:1px solid}.status-live{color:#16803c;background:#eef9f1;border-color:#b9dec4}.status-paused{color:#8a6500;background:#fff8df;border-color:#ead58b}.status-closed{color:#c62828;background:#fff0f0;border-color:#e6b8b8}.status-not-started{color:#667085;background:#f2f4f7;border-color:#dbe2ea}.cms50-value strong{display:block;font-size:28px;letter-spacing:-.03em;color:#172033}.cms50-value span{display:inline-block;margin-top:4px;font-size:11px;font-weight:700}.cms50-up{color:#476650}.cms50-down{color:#8a4b53}
@media(max-width:600px){.cms50-card{padding:16px 18px}.cms50-card h2{font-size:22px}.cms50-value strong{font-size:23px}}
body{margin:0;background:#f6f8fb;color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}.shell{max-width:1400px;margin:auto;padding:22px}.brand{font-weight:800;letter-spacing:.08em;margin-bottom:12px}.site-nav{display:flex;flex-wrap:nowrap;gap:6px;margin:0 0 16px;height:40px;align-items:stretch;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none}.site-nav::-webkit-scrollbar{display:none}.site-nav a{flex:0 0 auto;height:40px;display:flex;align-items:center;padding:0 12px;border:1px solid transparent;border-radius:7px;text-decoration:none;font-size:12px;font-weight:650;line-height:1;color:#344054;background:#fff;transition:.15s ease;white-space:nowrap}.site-nav a:hover{background:#eef4ff;color:#155eef;border-color:#c7d7fe}.site-nav a[aria-current="page"],.site-nav a.active{background:#172b4d;color:#fff;border-color:#172b4d}.ribbon{overflow:hidden;white-space:nowrap;border-block:1px solid var(--border);padding:9px 0}.ticker{display:inline-flex;gap:16px;animation:scroll 90s linear infinite;font-size:12px}.ticker-up{color:var(--up);font-weight:700}.ticker-down{color:var(--down);font-weight:700}.ticker i{color:var(--muted);font-style:normal}@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}.grid,.broker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}.card{border:1px solid var(--border);border-radius:12px;padding:14px;background:#fff;box-shadow:0 4px 18px rgba(16,24,40,.06)}.card b,.card span{display:block}.card span{font-size:12px;color:var(--muted);margin-top:5px}.stock b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock span{font-size:18px;font-weight:750}.stock em{display:block;font-size:11px;font-style:normal;margin-top:4px}.up{color:var(--up)!important}.down{color:var(--down)!important}.heat-stock{border-radius:8px;padding:12px;color:#fff;min-height:92px;display:flex;flex-direction:column;justify-content:space-between}.heat-stock b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.heat-stock span{font-size:18px;font-weight:800}.heat-stock em{font-size:11px;font-style:normal;font-weight:750}.heat-up{background:#e8f3ea;color:#35613f;border:1px solid #bfd8c3}.heat-down{background:#f8e9eb;color:#7a3b43;border:1px solid #e2bcc1}.formcard{max-width:1100px;margin-top:16px}.formcard label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);margin-bottom:10px}.formcard input,.formcard select{padding:10px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:#fff}.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.summary span{border:1px solid var(--border);padding:10px;border-radius:7px;font-size:12px}.summary b{display:block;color:var(--text);font-size:16px;margin-top:4px}button{background:#172033;color:#fff;border:0;border-radius:8px;padding:10px 15px;cursor:pointer;font-weight:750;transition:.15s ease;box-shadow:0 2px 5px rgba(16,24,40,.12)}button:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(16,24,40,.14)}.admin-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:18px 0}.admin-btn{min-height:48px;font-weight:800;letter-spacing:.02em}.admin-btn.start{background:#166534}.admin-btn.pause{background:#92400e}.admin-btn.close{background:#7f1d1d}.admin-btn.finalize{background:#4c1d95}.admin-btn.undo,.admin-btn.redo{background:#374151}.admin-btn.reset{background:#111827}.admin-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.admin-links a{border:1px solid var(--border);border-radius:8px;padding:11px 14px;background:#fff;font-weight:750;text-decoration:none}.admin-links a:hover{background:#f9fafb}a{color:var(--text)}.notice{padding:10px;border:1px solid var(--border);border-radius:7px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:8px}table{width:100%;border-collapse:collapse;min-width:850px}th,td{text-align:left;padding:9px;border-bottom:1px solid var(--border);font-size:12px}th{font-size:10px;text-transform:uppercase;color:var(--muted)}.mono{white-space:pre-wrap;font:12px ui-monospace,monospace}@media(max-width:800px){.summary{grid-template-columns:1fr 1fr}}
/* Market page visual refresh */ 
.market-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px 0 12px;padding:20px 24px;border-radius:15px;background:linear-gradient(135deg,#0d1b2e,#183b5a);color:#fff;box-shadow:0 8px 24px rgba(13,27,46,.15);border:1px solid #254663}
.market-kicker{display:block;font-size:9px;font-weight:900;letter-spacing:.16em;color:#8fb8d9;margin-bottom:5px}
.market-hero h1{margin:0;font-size:27px;letter-spacing:-.025em}
.market-hero p{margin:5px 0 0;color:#b9cadb;font-size:11px}
.hero-live{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.06);font-size:9px;font-weight:900;letter-spacing:.1em;white-space:nowrap}
.hero-live i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.12)}
.market-wall-head{display:flex;justify-content:space-between;align-items:end;margin:4px 0 9px;padding:0 2px}
.market-wall-head span{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;color:#718096}
.market-wall-head b{display:block;margin-top:2px;font-size:16px;color:#14213d}
.wall-legend{font-size:9px;font-weight:800;color:#7a8699;display:flex;align-items:center;gap:5px}
.wall-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-left:8px}
.legend-up{background:#16803c}.legend-down{background:#c62828}
.heat-stock .tile-top{display:flex;align-items:center;justify-content:space-between;gap:5px}
.heat-stock .tile-top small{font-size:7px;font-weight:900;letter-spacing:.07em;opacity:.72;padding:3px 4px;border-radius:4px;background:rgba(255,255,255,.35)}
.heat-stock span{letter-spacing:-.02em}
.heat-stock em{display:flex;justify-content:space-between;align-items:center}
@media(max-width:700px){.market-hero{padding:17px}.market-hero h1{font-size:22px}.hero-live{display:none}.market-wall-head{align-items:flex-start;gap:10px;flex-direction:column}}
/* Market wall: keep tile typography and height large for distance viewing while using more desktop columns. */
/* Market wall: prioritize distance readability while fitting more securities vertically. */
@media(min-width:1400px){
 .shell{max-width:1740px;padding:14px 18px 24px}
 .site-nav{height:36px;margin-bottom:10px;gap:5px}
 .site-nav a{height:36px;padding:0 10px;font-size:11px}
 /* Compact CMS INDEX header so the market wall gets most of the projector screen. */
 .cms50-card{min-height:78px;margin:10px 0 12px;padding:10px 18px;border-radius:10px;box-shadow:0 3px 12px rgba(20,33,61,.045)}
 .cms50-label{font-size:8px;margin-bottom:2px}
 .cms50-card h2{font-size:21px;letter-spacing:-.02em}
 .cms50-card p{font-size:9px;margin:2px 0 0}
 .market-status-wrap{gap:5px;margin-bottom:3px}
 .market-status-label{font-size:8px}
 .market-status{padding:3px 7px;font-size:8px}
 .cms50-value strong{font-size:27px}
 .cms50-value span{margin-top:1px;font-size:12px}
 /* 54 assets fit in 6 rows while retaining large projector-readable type. */
 #stocks{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
 .market-hero{padding:12px 18px;margin:7px 0 8px;border-radius:10px}.market-hero h1{font-size:20px}.market-hero p{font-size:9px;margin-top:2px}.market-kicker{font-size:7px;margin-bottom:2px}.hero-live{padding:6px 9px;font-size:8px}
 .cms50-card{min-height:60px;margin:6px 0 8px;padding:7px 14px}
 #stocks{grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}
 .heat-stock{min-height:72px;padding:8px 9px;border-radius:6px}
 .heat-stock b{font-size:11px}
 .heat-stock span{font-size:17px}
 .heat-stock em{font-size:9px}
 .heat-stock .tile-top small{font-size:5px;padding:2px 3px}
}
@media(min-width:1400px) and (max-height:900px){
 .shell{padding:6px 12px 10px}
 .site-nav{height:30px;margin-bottom:6px}
 .site-nav a{height:30px;font-size:10px;padding:0 8px}
 .market-hero{padding:10px 16px;margin:5px 0 6px}.market-hero h1{font-size:19px}.market-hero p{font-size:8px}.market-kicker{font-size:7px}.hero-live{font-size:7px;padding:5px 8px}
 .cms50-card{min-height:54px;margin:5px 0 7px;padding:6px 12px}.cms50-card h2{font-size:17px}.cms50-card p{font-size:7px}.cms50-value strong{font-size:22px}.cms50-value span{font-size:9px}
 #stocks{grid-template-columns:repeat(9,minmax(0,1fr));gap:5px}.heat-stock{min-height:68px;padding:7px 8px}.heat-stock b{font-size:10px}.heat-stock span{font-size:16px}.heat-stock em{font-size:8px}
}
@media(min-width:1100px) and (max-width:1399px){#stocks{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}}
@media(max-width:1099px) and (min-width:801px){#stocks{grid-template-columns:repeat(6,minmax(0,1fr));}}
/* Admin navigation is hidden until the current user is confirmed as an administrator. */
.admin-only-link{display:none!important}
/* Institutional investor page redesign */

/* Institutional desk v2 — cleaner hierarchy */
body.institutional-page{background:#f5f7fa;color:#172033}
body.institutional-page .shell{max-width:1260px;padding:28px 30px 48px}
body.institutional-page .inst-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:22px 0 16px}
body.institutional-page .inst-heading h1{margin:0;font-size:29px;letter-spacing:-.035em;color:#14213d}
body.institutional-page .inst-heading p{margin:6px 0 0;color:#7a8699;font-size:13px}
body.institutional-page .inst-badge{font-size:10px;letter-spacing:.12em;color:#687386;border:1px solid #d7dee8;background:#fff;border-radius:999px;padding:8px 11px}
body.institutional-page .inst-account{display:grid;grid-template-columns:1.45fr 1fr 1fr .7fr;background:#fff;border:1px solid #dce2ea;border-radius:13px;margin-bottom:16px;box-shadow:0 4px 16px rgba(20,33,61,.04);overflow:hidden}
body.institutional-page .inst-account div{padding:14px 17px;border-right:1px solid #edf0f4}.inst-account div:last-child{border-right:0}
body.institutional-page .inst-account span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#7a8699;margin-bottom:6px}
body.institutional-page .inst-account strong{font-size:16px;color:#172033}
body.institutional-page .inst-trade{padding:19px 21px;border:1px solid #d7dee8;border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(20,33,61,.055);margin-bottom:24px}
body.institutional-page .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}
body.institutional-page .section-head h2{font-size:15px;margin:0;color:#172033}.section-head p{margin:4px 0 0;color:#8490a0;font-size:11px}
body.institutional-page .order-flow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:.06em;color:#7a8699}.order-flow i{font-style:normal;color:#b0bac7}
body.institutional-page #trade{display:grid;grid-template-columns:1.05fr 1fr 1.45fr .75fr .7fr .9fr .95fr 1.15fr;gap:12px;align-items:end;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body.institutional-page #trade label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:9px;text-transform:uppercase;letter-spacing:.065em;color:#667085}
body.institutional-page #trade select,body.institutional-page #trade input{width:100%;height:44px;box-sizing:border-box;border:1px solid #cfd7e3;border-radius:8px;background:#fbfcfe;color:#172033;font-size:13px;font-weight:600;padding:0 11px;outline:none}
body.institutional-page #trade select:focus,body.institutional-page #trade input:focus{border-color:#8d9aab;background:#fff;box-shadow:0 0 0 3px rgba(23,32,51,.05)}
body.institutional-page .inst-trade-value{height:44px;box-sizing:border-box;border:1px solid #dce2ea;border-radius:8px;background:#f8fafc;padding:7px 10px}.inst-trade-value span{display:block;font-size:8px;letter-spacing:.06em;color:#7a8699}.inst-trade-value strong{display:block;margin-top:2px;font-size:13px;color:#172033}body.institutional-page #trade button{height:44px;border-radius:8px;margin:0;background:#172033;font-size:10px;letter-spacing:.045em;white-space:nowrap}body.institutional-page #trade button:disabled{opacity:.55;cursor:wait}
body.institutional-page #trade button:hover{background:#253653}
body.institutional-page .inst-counterparty-note{grid-column:1/8;min-height:18px;padding:8px 10px;border-radius:7px;background:#f8fafc;color:#748094;font-size:10px;line-height:1.35}
body.institutional-page #msg{grid-column:1/9;min-height:18px;margin:1px 0 0;padding:9px 11px;border-radius:7px;background:#f8fafc;color:#748094;font-size:11px}
body.institutional-page #msg.success{background:#f1f7f2;color:#476650}.institutional-page #msg.error{background:#faf0f1;color:#8a4b53}
body.institutional-page .inst-section{margin-top:20px}
body.institutional-page .section-title{display:flex;align-items:baseline;gap:10px;margin-bottom:9px}.section-title h2{font-size:16px;margin:0;color:#172033}.section-title span{font-size:10px;color:#8a94a3}
body.institutional-page .table-wrap{border:1px solid #dce2ea;border-radius:11px;background:#fff;overflow:auto;box-shadow:0 3px 14px rgba(20,33,61,.035)}
body.institutional-page table{width:100%;margin:0;border-collapse:collapse;min-width:720px}body.institutional-page th{background:#fafbfc;color:#737f90;font-size:9px;text-transform:uppercase;letter-spacing:.06em;padding:11px 13px;border-bottom:1px solid #e6eaf0;text-align:left}body.institutional-page td{padding:12px 13px;font-size:11px;border-bottom:1px solid #eef1f4;color:#354052}body.institutional-page tr:last-child td{border-bottom:0}body.institutional-page tbody tr:hover{background:#fbfcfd}
body.institutional-page .status-pill{display:inline-block;border:1px solid #dce2ea;background:#f7f8fa;border-radius:999px;padding:4px 7px;font-size:9px;letter-spacing:.02em;color:#5f6b7c}.institutional-page .empty-row{text-align:center;color:#98a1ae;padding:22px}
@media(max-width:1100px){body.institutional-page #trade{grid-template-columns:1fr 1fr 1.3fr 1fr}body.institutional-page #trade button{grid-column:1/3}body.institutional-page #msg{grid-column:1/5}}@media(max-width:900px){body.institutional-page #trade{grid-template-columns:1fr 1fr 1fr}body.institutional-page #trade button{grid-column:1/3}body.institutional-page #msg{grid-column:1/4}body.institutional-page .inst-account{grid-template-columns:1fr 1fr}.inst-account div:nth-child(2){border-right:0}.inst-account div:nth-child(-n+2){border-bottom:1px solid #edf0f4}}
@media(max-width:600px){body.institutional-page .shell{padding:18px 14px 32px}body.institutional-page .inst-heading{align-items:flex-start;gap:10px}.inst-badge{display:none}body.institutional-page .inst-heading h1{font-size:24px}body.institutional-page .inst-account{grid-template-columns:1fr}.inst-account div{border-right:0!important;border-bottom:1px solid #edf0f4}.inst-account div:last-child{border-bottom:0}body.institutional-page .section-head{align-items:flex-start;gap:12px;flex-direction:column}.order-flow{display:none}body.institutional-page #trade{grid-template-columns:1fr 1fr}body.institutional-page #trade label:nth-child(2){grid-column:1/3}body.institutional-page #trade button,body.institutional-page #msg{grid-column:1/3}body.institutional-page #trade button{width:100%}}
body:has(#trade){background:#f4f6f9}
body:has(#trade) .shell{max-width:1240px;padding:28px 30px 44px}
body:has(#trade) h1{font-size:30px;letter-spacing:-.03em;margin:10px 0 4px;color:#14213d}
body:has(#trade) h1:after{content:"  •  INSTITUTIONAL DESK";font-size:11px;letter-spacing:.1em;color:#7a8699;vertical-align:middle;margin-left:10px}
body:has(#trade) > .shell > .summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 18px}
body:has(#trade) > .shell > .summary span{display:flex;flex-direction:column;border:1px solid #dce2ea;border-radius:12px;background:#fff;padding:15px 17px;color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 5px 18px rgba(20,33,61,.045)}
body:has(#trade) > .shell > .summary b{display:block;margin-top:7px;font-size:20px;letter-spacing:-.02em;color:#172033}
body:has(#trade) section.card{padding:20px 22px;border-radius:16px;border-color:#d7dee8;box-shadow:0 8px 28px rgba(20,33,61,.065);background:#fff}
body:has(#trade) section.card h2{margin:0 0 15px;font-size:16px;color:#172033}
body:has(#trade) #trade{display:grid;grid-template-columns:1.05fr 1.05fr 1.45fr .8fr .8fr 1fr;gap:14px;align-items:end;margin:0;padding:0;border:0;box-shadow:none;background:transparent}
body:has(#trade) #trade label{margin:0;gap:7px;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#667085}
body:has(#trade) #trade select,body:has(#trade) #trade input{height:46px;border-radius:9px;border-color:#cfd7e3;background:#fbfcfe;font-size:14px;font-weight:600;padding:0 12px}
body:has(#trade) #trade select:hover,body:has(#trade) #trade input:hover{background:#fff;border-color:#aeb9c8}
body:has(#trade) #trade button{grid-column:1/3;height:46px;border-radius:9px;background:#172033;font-size:11px;letter-spacing:.04em;white-space:nowrap}
body:has(#trade) #trade button:hover{background:#243553}
body:has(#trade) #msg{grid-column:3/7;margin:0;min-height:20px;padding:11px 13px;border-radius:9px;background:#f8fafc;font-size:12px;color:#667085}
body:has(#trade) h2:not(section h2){margin:25px 0 10px;font-size:17px;color:#172033}
body:has(#trade) .table-wrap{border:1px solid #dce2ea;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(20,33,61,.04);overflow:auto}
body:has(#trade) table{margin:0;min-width:760px}
body:has(#trade) th{background:#f8fafc;color:#667085;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
body:has(#trade) td{font-size:12px}
@media(max-width:1000px){body:has(#trade) #trade{grid-template-columns:1fr 1fr 1.4fr 1fr}body:has(#trade) #trade button{grid-column:1/3}body:has(#trade) #msg{grid-column:3/5}}
@media(max-width:700px){body:has(#trade) .shell{padding:18px 14px 30px}body:has(#trade) h1{font-size:24px}body:has(#trade) h1:after{display:block;margin:5px 0 0}body:has(#trade) > .shell > .summary{grid-template-columns:1fr}body:has(#trade) #trade{grid-template-columns:1fr 1fr}body:has(#trade) #trade label:nth-child(3){grid-column:1/3}body:has(#trade) #trade button,body:has(#trade) #msg{grid-column:1/3}body:has(#trade) #trade button{width:100%}}
/* Order ticket redesign */
body:has(#f){background:#f4f6f9}
body:has(#f) .shell{max-width:1240px;padding:28px 30px 40px}
body:has(#f) h1{font-size:30px;letter-spacing:-.03em;margin:10px 0 4px;color:#14213d}
body:has(#f) h1:after{content:"  •  ORDER TICKET";font-size:11px;letter-spacing:.1em;color:#7a8699;vertical-align:middle;margin-left:10px}
body:has(#f) .formcard{max-width:none;margin-top:20px;padding:22px;border-radius:16px;border-color:#d7dee8;box-shadow:0 8px 28px rgba(20,33,61,.07);background:#fff}
body:has(#f) #tradeFields{display:contents}
body:has(#f) #loanFields{display:none}
body:has(#f) #f{display:grid;grid-template-columns:1.4fr 1.1fr .85fr;gap:15px 14px;align-items:end}
body:has(#f) #f label{margin:0;gap:7px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#667085}
body:has(#f) #f input,body:has(#f) #f select{height:48px;border-radius:9px;border-color:#cfd7e3;font-size:15px;font-weight:600;padding:0 13px;background:#fbfcfe}body:has(#f) #f input:focus,body:has(#f) #f select:focus{outline:none;border-color:#7d8ba0;box-shadow:0 0 0 3px rgba(23,32,51,.07);background:#fff}body:has(#f) #f button:disabled{opacity:.55;cursor:wait}
body:has(#f) #f input:hover,body:has(#f) #f select:hover{border-color:#aeb9c8;background:#fff}
body:has(#f) #f label:nth-of-type(1){grid-column:1/3}
body:has(#f) #f label:nth-of-type(2){grid-column:3}
body:has(#f) #f label:nth-of-type(3){grid-column:1}
body:has(#f) #f label:nth-of-type(4){grid-column:2}
body:has(#f) #f label:nth-of-type(5){grid-column:3}
body:has(#f) #f .summary{grid-column:1/4;grid-template-columns:repeat(4,1fr);gap:10px;margin:2px 0 0;padding-top:16px;border-top:1px solid #edf0f4}
body:has(#f) #f .summary span{border:1px solid #e1e6ed;border-radius:10px;padding:12px 13px;background:#f8fafc;color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
body:has(#f) #f .summary b{font-size:18px;margin-top:6px;color:#172033;letter-spacing:-.02em}
body:has(#f) #f button{grid-column:1;justify-self:start;min-width:170px;height:46px;border-radius:9px;background:#172033;font-size:12px;letter-spacing:.04em}
body:has(#f) #f button:hover{background:#243553}
body:has(#f) #msg{grid-column:2/4;margin:0;padding:11px 13px;border-radius:9px;font-size:12px;background:#f8fafc;color:#667085;min-height:20px}
body:has(#f) .broker-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}
body:has(#f) .broker-grid .card{min-height:78px;padding:13px;border-radius:11px;background:#fff;border-color:#dce2ea;box-shadow:none}
body:has(#f) .broker-grid .card b{font-size:13px;color:#172033}
body:has(#f) .broker-grid .card span{font-size:11px;color:#7a8699}
body:has(#f) .broker-details{margin-top:16px;border-radius:14px}
body:has(#f) .broker-details h2{margin-top:0}
/* Create Order: compact desktop ticket so the complete order workflow fits in one viewport. */
@media(min-width:1201px){
 body:has(#f) .shell{max-width:1400px;padding:18px 22px 36px}
 body:has(#f) h1{font-size:27px;margin:7px 0 2px}
 body:has(#f) .site-nav{margin-bottom:9px}
 body:has(#f) .formcard{margin-top:10px;padding:16px 18px;border-radius:13px}
 body:has(#f) #f{grid-template-columns:1.15fr 1.15fr 1.25fr 1.65fr .9fr .95fr 1fr;gap:10px;align-items:end}
 body:has(#f) #f label:nth-of-type(1),body:has(#f) #f label:nth-of-type(2),body:has(#f) #f label:nth-of-type(3),body:has(#f) #f label:nth-of-type(4),body:has(#f) #f label:nth-of-type(5){grid-column:auto}
 body:has(#f) #f label{font-size:9px;gap:5px}
 body:has(#f) #f input,body:has(#f) #f select{height:42px;font-size:13px;padding:0 10px}
 body:has(#f) #f label small{font-size:9px;line-height:1.2;min-height:0}
 body:has(#f) #f .summary{grid-column:1/8;grid-template-columns:repeat(5,1fr);gap:7px;margin:0;padding-top:10px}
 body:has(#f) #f .summary span{padding:8px 10px;font-size:9px}
 body:has(#f) #f #loanSummary{grid-column:1/8;grid-template-columns:repeat(7,1fr);padding-top:0;border-top:0}
 body:has(#f) #f #loanFields > label{grid-column:1/5}
 body:has(#f) #f #loanFields > label input{height:40px}
 body:has(#f) #f .summary b{font-size:15px;margin-top:3px}
 body:has(#f) #f button{grid-column:1/2;min-width:0;width:100%;height:40px;font-size:11px}
 body:has(#f) #msg{grid-column:2/8;height:40px;min-height:40px;padding:10px 12px}
 body:has(#f) .broker-grid{margin-top:10px}
 body:has(#f) .broker-details{margin-top:10px}
}
@media(min-width:901px) and (max-width:1200px){
 body:has(#f) .formcard{margin-top:12px;padding:18px}
 body:has(#f) #f{grid-template-columns:repeat(4,1fr);gap:11px}
 body:has(#f) #f label:nth-of-type(1){grid-column:1/3}
 body:has(#f) #f label:nth-of-type(2){grid-column:3/5}
 body:has(#f) #f label:nth-of-type(3){grid-column:1}
 body:has(#f) #f label:nth-of-type(4){grid-column:2}
 body:has(#f) #f label:nth-of-type(5){grid-column:3/5}
 body:has(#f) #f .summary{grid-column:1/5;grid-template-columns:repeat(5,1fr)}
 body:has(#f) #f button{grid-column:1/2}
 body:has(#f) #msg{grid-column:2/5}
}
@media(max-width:900px){body:has(#f) #f{grid-template-columns:1fr 1fr}body:has(#f) #f label:nth-of-type(1),body:has(#f) #f label:nth-of-type(2),body:has(#f) #f .summary,body:has(#f) #f #msg{grid-column:1/3}body:has(#f) .broker-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){body:has(#f) .shell{padding:18px 14px 30px}body:has(#f) h1{font-size:24px}body:has(#f) h1:after{display:block;margin:5px 0 0}body:has(#f) #f{grid-template-columns:1fr}body:has(#f) #f label:nth-of-type(n),body:has(#f) #f .summary,body:has(#f) #f #msg{grid-column:1}body:has(#f) #f .summary{grid-template-columns:1fr 1fr}body:has(#f) #f button{grid-column:1;width:100%}body:has(#f) .broker-grid{grid-template-columns:1fr 1fr}}/* Participant portfolio report */
body:has(#app) .portfolio-rank-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}
body:has(#app) #app>section{margin-top:18px}
body:has(#app) #app h2{margin:0 0 10px;color:#172033}
body:has(#app) #app h3{margin:18px 0 10px;color:#172033;font-size:14px}
body:has(#app) #app .table-wrap{background:#fff}
body:has(#app) #app table{min-width:980px}
body:has(#app) #app th{white-space:nowrap}
body:has(#app) #app td{white-space:nowrap}
body:has(#app) #app .portfolio-rank-grid table{min-width:520px}
@media(max-width:900px){body:has(#app) .portfolio-rank-grid{grid-template-columns:1fr}}
@media(max-width:520px){.shell{padding:15px}.summary{grid-template-columns:1fr}}
/* Market page final visual pass */
body:has(#stocks) .shell{max-width:1740px}
body:has(#stocks) .cms50-card{position:relative;border-radius:13px;border-color:#ccd8e5;background:linear-gradient(180deg,#fff,#f8fafc);padding:16px 21px;box-shadow:0 5px 18px rgba(20,33,61,.06)}
body:has(#stocks) .cms50-card:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:#155eef}
body:has(#stocks) .cms50-card h2{font-size:23px}
body:has(#stocks) .cms50-value strong{font-size:30px}
body:has(#stocks) #stocks{gap:8px}
body:has(#stocks) .heat-stock{position:relative;min-height:96px;padding:11px 12px;border-radius:9px;box-shadow:0 2px 7px rgba(16,24,40,.035);overflow:hidden}
body:has(#stocks) .heat-stock:after{content:"";position:absolute;right:-18px;bottom:-22px;width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.18)}
body:has(#stocks) .heat-up{background:linear-gradient(145deg,#edf8f0,#dff0e4);border-color:#c2dec9;color:#275d39}
body:has(#stocks) .heat-down{background:linear-gradient(145deg,#fff0f1,#f8e3e6);border-color:#e4c2c7;color:#793b44}
body:has(#stocks) .heat-stock b{font-size:13px}
body:has(#stocks) .heat-stock span{font-size:20px}
body:has(#stocks) .heat-stock em{font-size:11px}
body:has(#stocks) .heat-stock .tile-top small{font-size:6px}
@media(min-width:1400px){body:has(#stocks) .market-hero{margin-top:8px}body:has(#stocks) .cms50-card{margin:9px 0 11px}body:has(#stocks) .heat-stock{min-height:94px}}
@media(max-width:800px){body:has(#stocks) .cms50-card{gap:15px}.market-wall-head{margin-top:8px}}
/* Market page compact final pass */
body:has(#stocks) .cms50-card{
  min-height:56px;
  margin:6px 0 8px;
  padding:7px 14px;
  border-radius:8px;
  box-shadow:0 2px 9px rgba(20,33,61,.045);
}
body:has(#stocks) .cms50-card:before{top:9px;bottom:9px;width:3px}
body:has(#stocks) .cms50-label{font-size:7px;margin-bottom:1px}
body:has(#stocks) .cms50-card h2{font-size:17px}
body:has(#stocks) .cms50-card p{font-size:7px;margin:1px 0 0}
body:has(#stocks) .cms50-value strong{font-size:21px}
body:has(#stocks) .cms50-value span{font-size:8px;margin-top:1px}
body:has(#stocks) .market-status-wrap{gap:4px;margin-bottom:1px}
body:has(#stocks) .market-status-label{font-size:7px}
body:has(#stocks) .market-status{padding:2px 6px;font-size:7px}
@media(min-width:1400px) and (max-height:900px){
  body:has(#stocks) .cms50-card{min-height:48px;margin:4px 0 6px;padding:5px 11px}
  body:has(#stocks) .cms50-card h2{font-size:15px}
  body:has(#stocks) .cms50-card p{font-size:6px}
  body:has(#stocks) .cms50-value strong{font-size:19px}
  body:has(#stocks) .cms50-value span{font-size:7px}
  body:has(#stocks) .market-status-label{font-size:6px}
  body:has(#stocks) .market-status{padding:2px 5px;font-size:6px}
}
/* CMS Index card — clean medium size */
body:has(#stocks) .cms50-card{
  min-height:76px;
  margin:9px 0 11px;
  padding:12px 18px;
  border-radius:10px;
}
body:has(#stocks) .cms50-card:before{top:11px;bottom:11px;width:3px}
body:has(#stocks) .cms50-card h2{font-size:22px}
body:has(#stocks) .cms50-value strong{font-size:27px}
body:has(#stocks) .market-status-wrap{gap:5px;margin-bottom:3px}
body:has(#stocks) .market-status-label{font-size:8px}
body:has(#stocks) .market-status{padding:3px 7px;font-size:8px}
body:has(#stocks) .cms50-value span{font-size:10px;margin-top:2px}
@media(min-width:1400px) and (max-height:900px){
  body:has(#stocks) .cms50-card{min-height:68px;margin:7px 0 9px;padding:10px 15px}
  body:has(#stocks) .cms50-card h2{font-size:20px}
  body:has(#stocks) .cms50-value strong{font-size:24px}
  body:has(#stocks) .market-status-label{font-size:7px}
  body:has(#stocks) .market-status{padding:3px 6px;font-size:7px}
}
/* CMS Index two-part layout */
body:has(#stocks) .brand{display:none}
body:has(#stocks) .cms50-card{
  position:relative;
  font-family:inherit;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  min-height:76px;
  padding:10px 18px;
}
body:has(#stocks) .cms-brand{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:48px;
  padding-right:24px;
  border-right:1px solid #d8e1ea;
}
body:has(#stocks) .cms-brand{
  align-items:flex-start;
  justify-content:center;
}
body:has(#stocks) .cms-brand span{
  font-size:15px;
  line-height:1;
  font-weight:900;
  letter-spacing:.04em;
  color:#172b4d;
  text-transform:uppercase;
}
body:has(#stocks) .cms-brand b{
  margin-top:3px;
  font-size:14px;
  font-weight:800;
  color:#667085;
  letter-spacing:.04em;
}
body:has(#stocks) .cms50-value{
  padding-left:24px;
  text-align:left;
}
body:has(#stocks) .cms-index-inline{
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  align-items:center;
  gap:12px;
  width:100%;
}
body:has(#stocks) .cms-index-inline>b{
  font-size:15px;
  line-height:1;
  letter-spacing:.03em;
  color:#53657a;
  white-space:nowrap;
}
body:has(#stocks) .cms-index-inline .market-status-wrap{
  justify-content:flex-start;
  margin:0;
  gap:5px;
}
body:has(#stocks) .cms-index-inline .market-status-label{
  display:none;
}
body:has(#stocks) .cms-index-inline #cms50Value{
  margin-left:auto;
  font-size:32px;
  line-height:1;
  text-align:right;
}
body:has(#stocks) .cms-index-inline #cms50Change{
  position:static;
  margin:0;
  font-size:10px;
  white-space:nowrap;
}
body:has(#stocks) .cms50-card .status-live{
  position:absolute;
  top:-14px;
  right:18px;
}
body:has(#stocks) .cms50-value{
  display:flex;
  align-items:center;
  min-width:0;
}
@media(max-width:900px){
  body:has(#stocks) .cms-index-inline{grid-template-columns:auto 1fr}
  body:has(#stocks) .cms-index-inline .market-status-wrap{grid-column:2}
  body:has(#stocks) .cms-index-inline #cms50Value{grid-column:1}
  body:has(#stocks) .cms-index-inline #cms50Change{grid-column:2}
}
body:has(#stocks) .cms50-card h2{font-size:20px}
@media(max-width:600px){
  body:has(#stocks) .cms50-card{grid-template-columns:1fr 1fr;padding:9px 12px}
  body:has(#stocks) .cms-brand{padding-right:12px}
  body:has(#stocks) .cms-brand span{font-size:9px}
  body:has(#stocks) .cms-brand b{font-size:12px}
  body:has(#stocks) .cms50-value{padding-left:12px}
}
@media(min-width:1400px) and (max-height:900px){
  body:has(#stocks) .cms50-card{min-height:68px}
  body:has(#stocks) .cms-brand{min-height:44px}
  body:has(#stocks) .cms-brand span{font-size:18px}
  body:has(#stocks) .cms-brand b{font-size:13px}
}
/* Create Order final spacing pass */
body:has(#f) #f{column-gap:14px;row-gap:16px}
body:has(#f) #f label{min-width:0}
body:has(#f) #f label small{line-height:1.3}
@media(min-width:1201px){
 body:has(#f) .shell{max-width:1180px;padding:24px 20px 44px}
 body:has(#f) .formcard{margin-top:14px;padding:24px}
 body:has(#f) #f{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 14px}
 body:has(#f) #f label:nth-of-type(1){grid-column:1/3}
 body:has(#f) #f label:nth-of-type(2){grid-column:3/6}
 body:has(#f) #f label:nth-of-type(3),body:has(#f) #f label:nth-of-type(4),body:has(#f) #f label:nth-of-type(5),body:has(#f) #f label:nth-of-type(6),body:has(#f) #f label:nth-of-type(7){grid-column:auto}
 body:has(#f) #f label small{min-height:26px;font-size:10px}
 body:has(#f) #f input,body:has(#f) #f select{height:46px;font-size:14px}
 body:has(#f) #f .summary{grid-column:1/6;grid-template-columns:repeat(4,1fr);gap:10px;margin:0;padding-top:16px}
 body:has(#f) #f .summary span{padding:11px 12px}
 body:has(#f) #f #loanSummary{grid-column:1/6;grid-template-columns:repeat(4,1fr);padding-top:0;border-top:0}
 body:has(#f) #f button{grid-column:1/2;width:100%;height:46px}
 body:has(#f) #f #msg{grid-column:2/6;min-height:46px;padding:12px 14px}
}
@media(min-width:901px) and (max-width:1200px){
 body:has(#f) #f{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 12px}
 body:has(#f) #f label:nth-of-type(1){grid-column:1/3}
 body:has(#f) #f label:nth-of-type(2){grid-column:3/5}
 body:has(#f) #f label:nth-of-type(3),body:has(#f) #f label:nth-of-type(4),body:has(#f) #f label:nth-of-type(5),body:has(#f) #f label:nth-of-type(6),body:has(#f) #f label:nth-of-type(7){grid-column:auto}
 body:has(#f) #f .summary{grid-column:1/5;grid-template-columns:repeat(4,1fr)}
 body:has(#f) #f button{grid-column:1/2}
 body:has(#f) #f #msg{grid-column:2/5}
}
.jse-user-chip{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 10px;border-radius:8px;background:#eef4ff;color:#244a80;font-size:10px;font-weight:850;white-space:nowrap;margin-left:auto}
.jse-logout-btn{min-height:36px;padding:0 10px;border:1px solid #d5dde7;border-radius:8px;background:#fff;color:#475467;font-size:10px;font-weight:850;cursor:pointer}
.jse-logout-btn:hover{background:#f8fafc}
@media(max-width:850px){.jse-user-chip{margin-left:0}}
