.broker-start-description{max-width:620px;font-size:15px;line-height:1.8;color:#758298;margin:8px 0 28px}.broker-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:820px}.broker-start-card{display:flex;align-items:center;gap:16px;text-align:left;background:#fff;border:1px solid #e0e6ef;border-radius:10px;padding:22px 18px;color:#24364f;cursor:pointer;min-width:0}.broker-start-card:hover{border-color:#718ba9;background:#f6f9fd}.broker-start-card:focus-visible{outline:3px solid #557fb9;outline-offset:3px}.broker-start-card img{width:40px;height:40px;object-fit:contain;border-radius:8px;flex:none}.broker-start-card strong{display:block;font-size:16px}.broker-start-card small{display:block;font-size:11px;color:#8692a4;margin-top:7px}.broker-start-arrow{margin-left:auto;color:#7c8fa8}.broker-start-card span{min-width:0}#token-badge[hidden],#broker-portal[hidden]{display:none!important}#settings-open:disabled{opacity:.45;cursor:default}@media(max-width:1100px){.broker-start-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.broker-start-card{padding:17px 15px}.broker-start-description{font-size:13px;margin-bottom:20px}}
#anchors.floating-menu:empty{display:none}

/* Start with the broker chooser; navigation appears after a selection. */
body.portal-page.broker-start{grid-template-columns:minmax(0,1fr)}
.portal-page.broker-start>.primary,.portal-page.broker-start>.secondary,
.portal-page.broker-start .document-top,.portal-page.broker-start .doc-label,
.portal-page.broker-start #group,.portal-page.broker-start .document-bottom{display:none}
.portal-page.broker-start>#document{grid-column:1/-1;width:100%;min-width:0}
.portal-page.broker-start #document article{width:100%;max-width:1000px;margin:0 auto;padding:clamp(32px,7vh,76px) 40px 48px}
.portal-page.broker-start .doc-heading{display:block}
.portal-page.broker-start #title{font-size:clamp(24px,3vw,34px);margin:0 0 12px;line-height:1.45}
.portal-page.broker-start .broker-start-grid{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.portal-page.broker-start .broker-start-card{min-height:102px;padding:24px}
.portal-page.broker-start .broker-start-description{max-width:none;margin:0 0 32px}
@media(max-width:760px){
 .portal-page.broker-start #document article{padding:30px 20px 40px}
 .portal-page.broker-start .broker-start-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .portal-page.broker-start .broker-start-card{min-height:86px;padding:18px}
 .portal-page.broker-start .broker-start-description{margin-bottom:24px}
}

/* Clearly identify the selected broker's external developer portal. */
.portal-page .primary .broker-portal-link{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:12px 10px;margin:0 0 16px;border:1px solid var(--brand-nav-line);border-left:3px solid var(--brand-accent);border-radius:4px;background:var(--brand-soft);color:var(--brand-ink);text-decoration:none}
.portal-link-copy{display:block;min-width:0}
.portal-link-copy small{display:block;font-size:10px;line-height:1.5;margin-bottom:4px;opacity:.85}
.portal-link-copy strong{display:block;font-size:12px;font-weight:700;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
.portal-link-arrow{flex:none;font:700 22px/1 "Segoe UI",sans-serif}
.portal-page .primary .broker-portal-link:hover{background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand-accent);box-shadow:0 2px 7px #172c4c12;text-decoration:underline;text-underline-offset:3px}
.portal-page .primary .broker-portal-link:focus-visible{outline:2px solid var(--brand-accent);outline-offset:3px}
@media(max-width:760px){.portal-page .primary .broker-portal-link{grid-column:1/-1;grid-row:4;margin:4px 0;min-height:60px;padding:10px 12px}}
/* Compact broker directories, with suggestions loaded only on demand. */
.portal-finder{margin-bottom:30px;max-width:850px}.portal-finder label{display:block;font-size:17px;font-weight:700;margin-bottom:12px}.portal-finder input{width:100%;padding:15px 17px;border:1px solid #bacbe2;border-radius:7px;background:#fff;font:inherit;font-size:16px}.portal-finder input:focus{outline:2px solid #6087c0;outline-offset:2px}.portal-find-status{font-size:12px;color:#718198;line-height:1.6;margin:10px 0}.portal-find-options{list-style:none;margin:0;padding:0;border:1px solid #dce4ef;border-radius:6px;max-height:380px;overflow:auto;background:#fff}.portal-find-options li{display:flex;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid #e9edf3;cursor:pointer}.portal-find-options li:hover,.portal-find-options li[aria-selected=true]{background:#edf4ff}.portal-find-options img{width:25px;height:25px;object-fit:contain}.portal-find-options strong{display:block;font-size:14px}.portal-find-options small{display:block;margin-top:5px;color:#75869d;font-size:11px}.portal-find-options span{min-width:0;overflow-wrap:anywhere}
.portal-page.broker-start .broker-start-grid{display:block}.broker-start-row{display:grid;grid-template-columns:175px minmax(0,1fr);align-items:start;gap:15px;padding:15px 0;border-top:1px solid #e2e8f0}.portal-page.broker-start .broker-start-card{min-height:36px;padding:4px 0;border:0;border-radius:0;gap:10px;background:transparent}.broker-start-card img{width:26px;height:26px;border-radius:4px}.broker-start-card strong{font-size:14px}.broker-start-categories{display:flex;flex-wrap:wrap;gap:7px 12px;padding-top:3px}.broker-start-categories button{border:0;background:transparent;color:#526986;font:inherit;font-size:12px;line-height:1.6;padding:5px 3px;cursor:pointer}.broker-start-categories button:hover{color:#225eb4;text-decoration:underline}.broker-start-categories button:focus-visible{outline:2px solid #6087c0;outline-offset:2px}.portal-page.broker-start .broker-start-description{font-size:13px;margin:0 0 12px}.portal-page.broker-start #document article{padding-top:35px}.portal-page.broker-start #title{font-size:28px}
@media(max-width:760px){.broker-start-row{grid-template-columns:1fr;gap:6px;padding:12px 0}.portal-page.broker-start .broker-start-card{min-height:32px;padding:0}.broker-start-categories{gap:4px 10px}.portal-page.broker-start #title{font-size:23px}.portal-finder input{padding:13px 12px}}
.portal-page.broker-start .doc-heading{display:none}.portal-finder label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.portal-find-status:empty{display:none}.portal-finder{max-width:none;margin-bottom:28px}.portal-finder input{background:#f8faff;border-color:#c9d8ec;padding:18px 20px}.broker-start-card small{margin-top:5px;font-size:11px;color:#7b8ca2}.broker-start-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;width:100%}.broker-menu{min-width:0;border-bottom:1px solid #edf0f5;padding:3px 0}.broker-menu summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:9px 2px;font-size:13px;font-weight:600;color:#334c6e;list-style:none}.broker-menu summary::-webkit-details-marker{display:none}.broker-menu summary:after{content:'⌄';margin-left:auto;color:#8494aa}.broker-menu[open] summary:after{content:'⌃'}.broker-menu summary small{font-size:10px;font-weight:400;color:#8391a5;white-space:nowrap}.broker-submenus{padding:2px 0 9px 10px;border-left:2px solid #e5edf8;margin:0 0 8px 2px}.broker-submenus button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:6px 3px;font-size:12px}.broker-submenus small{font-size:10px;color:#8c99ac;white-space:nowrap}.broker-menu summary:focus-visible{outline:2px solid #6087c0;outline-offset:2px}
@media(max-width:760px){.broker-start-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.portal-finder input{padding:16px 12px}.broker-start-row{padding:17px 0}.broker-menu summary{font-size:12px}}
/* Explain the outcome before offering search and the broker directory. */
.portal-start-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;margin:8px 0 42px}.portal-start-eyebrow{font-size:10px;letter-spacing:1.6px;color:#7b8da5;margin:0 0 16px}.portal-start-intro h1{font-size:28px;line-height:1.5;letter-spacing:-1px;color:#223651;margin:0;word-break:keep-all}.portal-start-copy{font-size:14px;line-height:1.9;color:#74839a;margin:17px 0 0;word-break:keep-all;max-width:430px}.portal-workspace-preview{border:1px solid #dce5f0;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #21395808;background:white}.workspace-example-top{display:flex;align-items:center;gap:10px;padding:12px 15px;background:#f7f9fc;border-bottom:1px solid #e7edf5}.workspace-example-top>span{display:flex;gap:4px}.workspace-example-top i{display:block;width:5px;height:5px;border-radius:50%;background:#a9bad3}.workspace-example-top strong{font-size:11px;color:#5a708d}.workspace-example-top small{margin-left:auto;font-size:10px;color:#8998ac}.workspace-example-body{padding:20px}.workspace-example-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}.workspace-example-title small{font-size:8px;letter-spacing:1px;color:#7e92b1}.workspace-example-title h2{font-size:16px!important;margin:5px 0 0!important;padding:0!important;border:0!important;color:#304967}.workspace-example-title>span{font-size:9px;color:#6586bd;background:#edf3ff;padding:5px 8px;border-radius:5px}.workspace-example-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px}.workspace-example-watch>div{padding:10px 0;border-bottom:1px solid #edf1f6;display:flex;justify-content:space-between;gap:5px;font-size:10px}.workspace-example-watch span{color:#62748f}.workspace-example-watch strong{font-size:9px;color:#5782ba;font-weight:500}.workspace-example-chart{min-width:0}.workspace-example-chart>span{font-size:10px;color:#8697af}.workspace-example-chart svg{width:100%;height:102px;display:block;margin-top:10px}.workspace-example-bottom{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;padding-top:15px;border-top:1px solid #edf1f7;font-size:10px;color:#6580a6}.workspace-example-bottom b{font-weight:400;color:#b0bdd0}.portal-page.broker-start .portal-finder{margin-bottom:40px}.portal-page.broker-start .broker-start-row{padding:24px 0}.portal-page.broker-start .broker-start-categories{gap:12px 20px}
@media(max-width:760px){.portal-start-hero{grid-template-columns:1fr;gap:25px;margin:0 0 30px}.portal-start-intro h1{font-size:25px}.portal-start-copy{font-size:13px;margin-top:12px}.portal-workspace-preview{width:100%;max-width:480px}.portal-page.broker-start .portal-finder{margin-bottom:28px}.portal-page.broker-start .broker-start-row{padding:20px 0;gap:12px}.workspace-example-body{padding:16px}.workspace-example-grid{gap:12px}}
.portal-workspace-preview{background:#101722;border:1px solid #293549;color:#d8e4f6;box-shadow:0 18px 45px #10203c20}.investment-top{display:flex;justify-content:space-between;gap:8px;padding:14px 17px;border-bottom:1px solid #283346;font-size:10px;letter-spacing:.5px}.investment-top strong{color:#c5d4e9}.investment-top span{font-size:9px;color:#869ab5;letter-spacing:0}.investment-tabs{display:flex;gap:6px;padding:13px 16px 0}.investment-tabs button{border:1px solid #2b394f;border-radius:5px;background:#172131;color:#8196b4;padding:7px 10px;font:inherit;font-size:10px;cursor:pointer}.investment-tabs button[aria-pressed=true]{background:#263d60;color:#e1edff;border-color:#4b70a5}.investment-tabs .investment-pause{margin-left:auto}.investment-tabs button:focus-visible{outline:2px solid #8bb9ff;outline-offset:2px}.investment-quote{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 17px 12px}.investment-symbol{display:block;font-size:10px;color:#8fa4c0}.investment-price{display:block;font-size:25px;color:#f2f6ff;margin:7px 0;font-variant-numeric:tabular-nums}.investment-change{font-size:11px;color:#f5818b}.investment-live{font-size:8px;color:#7c94b4;letter-spacing:.5px}.investment-live i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#60c1b0;margin-right:4px;animation:investment-pulse 1.6s ease-in-out infinite}.investment-chart-title{display:flex;justify-content:space-between;margin:0 17px 5px;color:#a4b6cf;font-size:10px}.investment-chart-title small{font-size:9px;color:#5f789b}.investment-chart{display:block;width:calc(100% - 34px);height:112px;margin:0 17px 14px}.investment-lower{display:grid;grid-template-columns:1fr 1.1fr;gap:16px;margin:0 17px 14px}.investment-lower h3{font-size:11px!important;color:#c3d2e8;margin:0 0 9px!important;display:flex;justify-content:space-between;align-items:center}.investment-lower h3 small{font-size:8px;font-weight:400;color:#637c9e}.investment-book-row{display:flex;justify-content:space-between;position:relative;padding:5px 7px;font-size:10px;font-variant-numeric:tabular-nums;margin-bottom:2px}.investment-book-row:before{content:'';position:absolute;right:0;top:0;height:100%;width:var(--depth);background:#568df51c}.investment-book-row.ask{color:#79acff}.investment-book-row.bid{color:#f58b94}.investment-book-row.bid:before{background:#ea687c1c}.investment-book-row span,.investment-book-row strong{position:relative}.investment-trade{display:flex;justify-content:space-between;gap:5px;padding:5px 0;font-size:9px;font-variant-numeric:tabular-nums;border-bottom:1px solid #1b293b}.investment-trade time{color:#607a9e;font-size:8px}.investment-trade>span{color:#8ea2bd}.investment-trade.up strong{color:#f58b94}.investment-trade.down strong{color:#79acff}.investment-foot{padding:11px 14px;border-top:1px solid #263347;color:#617b9e;font-size:9px;text-align:center}.investment-paused .investment-live i{animation:none}@keyframes investment-pulse{50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.investment-live i{animation:none}}@media(max-width:760px){.investment-price{font-size:23px}.investment-lower{gap:12px}.investment-top{padding:12px}.investment-top span{font-size:8px}.investment-tabs{padding-left:12px;padding-right:12px}}
/* Keep preview spacing independent of API document formatting. */
.spec .investment-chart-title{margin:0 17px 5px}
.spec .investment-lower{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);margin:0 17px 14px}
.investment-lower section{min-width:0}
.spec .investment-book-row{margin-bottom:2px}
.spec .portal-start-hero{margin:8px 0 42px}
@media(max-width:760px){.spec .portal-start-hero{margin:0 0 30px}}

@media(max-width:760px){.portal-page.broker-start .broker-start-categories{display:none}.portal-page.broker-start .broker-start-card{width:100%;padding:8px 0}.portal-page.broker-start .broker-start-card>span{display:flex;align-items:center;justify-content:space-between;flex:1;gap:16px}.portal-page.broker-start .broker-start-card small{margin:0;white-space:nowrap}}

/* Compact trading preview: chart beside quotes and the example order controls. */
.spec .investment-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;padding:0 16px 14px}
.investment-workspace section{min-width:0}
.spec .investment-workspace .investment-chart-title{margin:0 0 10px}
.investment-workspace .investment-chart{width:100%;height:150px;margin:0}
.investment-order-panel{border-left:1px solid #283346;padding-left:12px}
.investment-order-panel h3{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#c3d2e8;margin:0 0 6px}
.investment-order-panel h3 small{font-size:8px;color:#8196b4;font-weight:400}
.investment-order-panel .investment-book-row{padding:2px 4px;font-size:9px}
.spec .investment-order-fields{display:grid;gap:3px;margin:7px 0}
.investment-order-fields>span{display:flex;justify-content:space-between;font-size:9px;color:#8fa4c0;border:1px solid #2b394f;border-radius:3px;padding:3px 5px}
.investment-order-fields b{color:#d8e4f6;font-weight:500}
.investment-order-actions{display:flex;gap:5px}
.investment-order-actions button{flex:1;border:1px solid #85424d;border-radius:4px;background:#472732;color:#ffa6b0;font:inherit;font-size:10px;padding:4px;cursor:pointer}
.investment-order-actions button[data-side=sell]{border-color:#3d5f90;background:#203350;color:#9bc3ff}
.investment-order-actions button[aria-pressed=true]{outline:1px solid currentColor;outline-offset:1px}
.investment-order-actions button:focus-visible{outline:2px solid white;outline-offset:2px}
.investment-quote{padding:12px 17px 10px}.investment-price{font-size:22px;margin:3px 0}
.investment-top{padding:10px 17px}.investment-tabs{padding-top:9px}.investment-foot{padding:7px 10px;font-size:8px}
@media(max-width:760px){.spec .investment-workspace{gap:10px;padding:0 12px 12px}.investment-order-panel{padding-left:8px}.investment-live{font-size:7px}}
.portal-workspace-preview{line-height:1.5}.portal-workspace-preview .investment-order-panel h3{margin:0 0 6px;padding:0;border:0;line-height:1.5}
