/* Solution previews share a frame; each uses the working surface its task needs. */
.solution-explorer { align-items: start; }
.solution-tabs { padding-top: 0; }
.demo-workspace { padding: 26px 26px 16px; }
.demo-workspace h3 { margin: 14px 0 22px; }
.demo-sequence { min-height: 352px; font: 12px/1.5 var(--sans); color: #243c30; }
.demo-sequence *, .demo-sequence *::before, .demo-sequence *::after { box-sizing: border-box; }
.demo-sequence h4, .demo-sequence h5, .demo-sequence p { margin: 0; }
.demo-sequence h4, .demo-sequence h5 { font-family: var(--sans); font-weight: 500; }
.demo-sequence strong { font-weight: 500; }
.demo-sequence .sx-label { display: block; font: 8px/1.5 var(--mono); letter-spacing: .06em; color: #617368; }
.sx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.sx-toolbar strong { display: block; margin-top: 4px; font-size: 13px; }
.sx-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 3px; font: 9px/1.3 var(--sans); color: #365e43; background: #e7efe5; white-space: nowrap; }
.sx-badge.amber { color: #80531d; background: #f6ead5; }
.sx-badge.blue { color: #426777; background: #e4edf0; }
.sx-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #e4e9e0; color: #53664f; font: 8px var(--mono); }
.sx-muted { color: #6c7a71; font-size: 11px; font-weight: 400; }
.sx-board, .sx-shipment, .sx-inventory { background: #fafcf8; border: 1px solid #d6dfd2; }
.sx-kanban { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 12px 16px; }
.sx-lane { min-width: 0; background: #edf1e9; padding: 10px 8px; }
.sx-lane h4 { display: flex; gap: 5px; align-items: center; font-size: 10px; margin-bottom: 13px; }
.sx-lane h4>span { margin-left: auto; color: #73806f; font: 9px var(--mono); }
.sx-dot { width: 5px; height: 5px; border-radius: 50%; background: #6b8f62; }
.sx-dot.amber { background: #b88a46; }.sx-dot.blue { background: #6f93a1; }
.sx-task { border: 1px solid #dce3d7; background: white; padding: 13px 10px; box-shadow: 0 3px 6px #233d2b04; }
.sx-task h5 { font-size: 12px; line-height: 1.4; margin: 10px 0 8px; min-height: 34px; }
.sx-task p { color: #677564; font-size: 10px; min-height: 44px; }
.sx-task footer { display: flex; gap: 5px; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid #e8ece4; font-size: 9px; }
.sx-task>small { display: block; font-size: 8px; color: #788171; margin-top: 12px; }
.sx-portal { display: grid; grid-template-columns: 120px minmax(0,1fr); background: #fff; border: 1px solid #cbd7d9; }
.sx-portal-rail { background: #233e49; color: #d1dfe3; padding: 21px 12px; display: flex; flex-direction: column; }
.sx-portal-mark { font: 23px var(--serif); display: flex; gap: 8px; align-items: center; color: #f1f4ed; }
.sx-portal-mark>span { font: 7px/1.6 var(--mono); letter-spacing: .08em; }
.sx-portal-nav { display: grid; gap: 7px; margin-top: 32px; font-size: 10px; }
.sx-portal-nav>span { padding: 8px; display: flex; justify-content: space-between; }
.sx-portal-nav .selected { background: #ffffff13; border-left: 2px solid #b6d6c8; color: #fff; }
.sx-portal-nav b { font-weight: 400; color: #b9cdd1; }
.sx-portal-rail>small { margin-top: auto; padding-top: 26px; font: 7px var(--mono); color: #b1c3c8; }
.sx-portal-main { padding: 16px 20px; }.sx-portal-main .sx-toolbar { padding: 0 0 14px; }
.sx-portal-main h4 { font-size: 19px; letter-spacing: -.035em; }.sx-portal-main>p { color: #758087; font-size: 10px; margin-top: 3px; }
.sx-portal-cargo { margin-top: 18px; background: #f1f5f6; border: 1px solid #dfe7e8; padding: 13px; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sx-portal-cargo strong { display: block; font-size: 14px; margin: 3px 0; }.sx-portal-cargo div>span:last-child { font-size: 10px; color: #667982; }
.sx-portal-route { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; }
.sx-portal-route>span:nth-child(2) { color: #88a0a6; overflow: hidden; white-space: nowrap; }
.sx-portal-cargo footer { width: 100%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #dce4e5; padding-top: 8px; font-size: 9px; }.sx-portal-cargo footer strong { font-size: 11px; }
.sx-portal-action { margin-top: 12px; border-left: 2px solid #c6a05b; padding: 0 0 0 11px; }.sx-portal-action strong { display: block; font-size: 11px; margin: 5px 0 2px; }.sx-portal-action>span:last-child { font-size: 9px; color: #758087; }
.sx-portal-file { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid #e6ebea; margin-top: 13px; padding-top: 12px; font-size: 10px; }.sx-portal-file b { margin-right: 5px; color: #728b8b; }
.sx-voyage { display: flex; align-items: center; gap: 22px; padding: 26px 22px; background: repeating-linear-gradient(0deg,transparent,transparent 19px,#60877f0a 20px),#e9f0eb; border-block: 1px solid #dae4d9; }
.sx-voyage>div:last-child { text-align: right; }.sx-voyage strong { display: block; font: 27px var(--serif); margin: 4px 0; }.sx-voyage small { font-size: 10px; color: #688072; }
.sx-sea { position: relative; flex: 1; height: 35px; display: grid; align-items: center; }.sx-sea i { display: block; border-top: 1px dashed #7f9c8b; }.sx-sea span { position: absolute; left: 52%; background: #d9e6db; padding: 2px 9px; font-size: 20px; color: #456c54; }
.sx-milestones { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 23px 18px 20px; margin: 0; }.sx-milestones li { position: relative; font-size: 10px; }.sx-milestones li:not(:last-child)::before { content: ''; position: absolute; top: 10px; left: 22px; right: 0; border-top: 1px solid #cfdbce; }.sx-milestones .done::before { border-color: #6b9477!important; }.sx-milestones i { display: grid; place-items: center; width: 21px; height: 21px; background: #edf1e9; border: 1px solid #d5dfd0; border-radius: 50%; font: 9px var(--mono); margin-bottom: 10px; }.sx-milestones .done i { background: #345c43; color: white; border-color: #345c43; }.sx-milestones .current i { background: #f4e6cf; border-color: #b99453; color: #78561e; }.sx-milestones strong, .sx-milestones span, .sx-milestones small { display: block; }.sx-milestones span { margin-top: 3px; font-size: 9px; color: #687b6e; }.sx-milestones small { color: #9b6b27; font-size: 8px; margin-top: 4px; }
.sx-exception { border-top: 1px solid #e0dfce; background: #f6f3e9; padding: 14px 18px; }.sx-exception strong { display: block; font-size: 11px; margin: 6px 0 3px; }.sx-exception p, .sx-exception footer { font-size: 10px; color: #7d7760; }.sx-exception footer { margin-top: 10px; font-size: 8px; }
.sx-documents { background: #e9e9e1; border: 1px solid #d8dace; }.sx-document-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }.sx-paper { min-width: 0; background: #fffefa; border: 1px solid #d9d9cd; padding: 17px 14px 12px; box-shadow: 0 3px 6px #322e1906; }.sx-paper header { display: flex; gap: 9px; align-items: center; font-size: 10px; }.sx-paper header small { display: block; color: #7d8174; font-size: 8px; margin-top: 3px; }.sx-file-icon { display: grid; place-items: center; width: 28px; height: 34px; border: 1px solid #c9d1c3; font: 8px var(--mono); color: #728169; flex-shrink: 0; }.sx-paper-lines { height: 31px; margin: 17px 0; background: repeating-linear-gradient(to bottom,#e9e9df 0 2px,transparent 2px 9px); width: 74%; }.sx-highlight { padding: 9px 6px; margin: 6px -4px 14px!important; border: 1px solid #dcc6a0; background: #fcf3e1; font-size: 11px; }.sx-highlight mark { background: #efd6a8; color: #78501c; padding: 2px; }.sx-paper dl { font-size: 9px; }.sx-paper dl>div { display: flex; justify-content: space-between; gap: 7px; padding: 5px 0; }.sx-paper dt { color: #7a806f; }.sx-paper dd { margin: 0; }.sx-paper-page { display: block; font: 7px var(--mono); color: #828975; border-top: 1px solid #e8e8df; padding-top: 17px; margin-top: 24px; }.sx-document-verdict { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid #d8dace; background: #faf9f2; }.sx-document-verdict p { font-size: 10px; color: #786e53; }
.sx-quantity-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 18px; border-block: 1px solid #dfe6d9; }.sx-quantity-summary strong { display: block; font: 26px var(--serif); margin-top: 7px; }.sx-quantity-summary strong small { font: 9px var(--mono); color: #75856d; }.sx-quantity-summary>span { color: #9baa93; }.sx-variance { border-left: 1px solid #dce2d5; padding-left: 20px; }.sx-variance strong { color: #976631; }.sx-variance>span:last-child { font-size: 8px; color: #937852; }.sx-table-wrap { padding: 7px 18px 15px; overflow-x: auto; }.sx-quality-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; }.sx-quality-table caption { text-align: left; font-weight: 500; padding: 12px 0; font-size: 12px; }.sx-quality-table th { font-weight: 400; }.sx-quality-table thead { font-size: 8px; color: #73846c; }.sx-quality-table td, .sx-quality-table th { padding: 10px 6px; border-bottom: 1px solid #e2e8dc; white-space: nowrap; }.sx-quality-table td:first-child, .sx-quality-table th:first-child { padding-left: 0; }.sx-quality-table .sx-badge { font-size: 8px; }.sx-records { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 18px; background: #edf2e7; font-size: 9px; color: #6d8063; }
.sx-settlement { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d5dbce; background: #fafcf6; }.sx-invoice { background: #fffef9; padding: 18px; border-right: 1px solid #dfe1d4; }.sx-invoice .sx-toolbar { padding: 0 0 17px; }.sx-invoice h4 { font: 28px var(--serif); }.sx-invoice>p { font-size: 10px; color: #7a806d; margin-top: 4px; }.sx-invoice dl { font-size: 10px; margin: 25px 0; }.sx-invoice dl>div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; }.sx-invoice dt { color: #75806b; }.sx-invoice dd { margin: 0; }.sx-invoice-total { border-block: 1px solid #e0e3d5; padding: 17px 0; }.sx-invoice-total strong { display: block; font: 31px var(--serif); margin-top: 7px; }.sx-invoice footer { margin-top: 18px; }.sx-approval { padding: 20px 17px; }.sx-approval ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 18px; }.sx-approval li { display: flex; gap: 8px; }.sx-approval li strong { display: block; font-size: 11px; }.sx-approval li small { display: block; font-size: 9px; color: #7c866f; margin-top: 3px; }.sx-check { color: #5c8256; }.sx-check.amber { color: #ad7b37; }.sx-exposure { background: #f1eddf; padding: 12px; }.sx-exposure strong { display: block; font: 24px var(--serif); color: #85663b; margin: 4px 0; }.sx-exposure p { font-size: 9px; color: #877c61; }.sx-approval>footer { display: flex; align-items: center; gap: 7px; font-size: 9px; margin-top: 16px; color: #768368; }

.demo-sequence.play .sx-enter { animation: step-in .5s both; }.demo-sequence.play .sx-enter:nth-child(2) { animation-delay: .1s; }.demo-sequence.play .sx-enter:nth-child(3) { animation-delay: .2s; }
@media (max-width: 1100px) and (min-width: 901px) { .solution-explorer { grid-template-columns: 270px 1fr; gap: 24px; }.demo-workspace { padding-inline: 18px; }.sx-kanban { gap: 5px; padding-inline: 6px; }.sx-lane { padding-inline: 5px; }.sx-task { padding-inline: 8px; }.sx-portal { grid-template-columns: 100px minmax(0,1fr); }.sx-portal-main { padding-inline: 14px; } }
@media (max-width: 900px) { .solution-tabs { padding-top: 0; }.demo-sequence { min-height: 0; } }
@media (max-width: 600px) {
  .demo-workspace { padding: 22px 12px 10px; }.demo-workspace h3 { font-size: 25px; }.demo-context { font-size: 8px; }.demo-bottom { gap: 6px; font-size: 8px; }.demo-bottom>span { max-width: 73%; line-height: 1.5; }.demo-bottom button { flex-shrink: 0; }
  .sx-toolbar { padding: 13px 12px; gap: 6px; }.sx-toolbar strong { font-size: 12px; }.sx-muted { display: block; font-size: 10px; }.sx-label { font-size: 7px!important; }
  .sx-kanban { grid-template-columns: 1fr; gap: 8px; padding: 0 10px 12px; }.sx-lane { padding: 10px; }.sx-lane h4 { margin-bottom: 8px; }.sx-task { padding: 11px; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; }.sx-task>.sx-label, .sx-task h5, .sx-task p { grid-column: 1; }.sx-task h5, .sx-task p { min-height: 0; margin: 0; }.sx-task>.sx-badge { grid-column: 2; grid-row: 1 / 3; align-self: center; }.sx-task footer { grid-column: 1; margin: 3px 0 0; border: 0; padding: 0; }.sx-task>small { grid-column: 2; align-self: end; margin: 0; font-size: 7px; }
  .sx-portal { grid-template-columns: 1fr; }.sx-portal-rail { padding: 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }.sx-portal-mark { font-size: 22px; }.sx-portal-mark>span { display: none; }.sx-portal-nav { display: flex; gap: 3px; margin: 0; font-size: 9px; }.sx-portal-nav>span { padding: 5px 7px; gap: 5px; }.sx-portal-nav .selected { border-left: 0; border-bottom: 1px solid #b6d6c8; }.sx-portal-rail>small { display: none; }.sx-portal-main { padding: 15px; }
  .sx-voyage { padding: 22px 12px; gap: 12px; }.sx-voyage strong { font-size: 24px; }.sx-milestones { padding: 20px 11px; }.sx-milestones strong { font-size: 9px; }.sx-milestones span { font-size: 8px; }.sx-milestones small { font-size: 7px; }
  .sx-document-pair { gap: 8px; padding: 0 8px 12px; }.sx-paper { padding: 12px 9px; }.sx-paper header { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 9px; }.sx-highlight { font-size: 10px; min-height: 50px; }.sx-paper dl>div { flex-direction: column; gap: 2px; }.sx-paper-lines { width: 85%; }.sx-document-verdict { flex-wrap: wrap; gap: 8px; }
  .sx-quantity-summary { flex-wrap: wrap; gap: 12px 8px; padding: 18px 12px; }.sx-quantity-summary strong { font-size: 26px; }.sx-variance { flex-basis: 100%; border-left: 0; border-top: 1px solid #dce2d5; padding: 12px 0 0; display: flex; align-items: baseline; gap: 10px; }.sx-variance strong { font-size: 23px; }.sx-variance>span:last-child { margin-left: auto; }.sx-table-wrap { padding-inline: 10px; }.sx-quality-table { font-size: 9px; }.sx-quality-table td, .sx-quality-table th { padding-inline: 4px; }.sx-quality-table .sx-badge { font-size: 7px; padding-inline: 4px; }
  .sx-settlement { grid-template-columns: 1fr; }.sx-invoice { border-right: 0; border-bottom: 1px solid #dfe1d4; padding: 15px; }.sx-invoice dl { margin: 14px 0; }.sx-invoice-total { padding: 12px 0; }.sx-approval { padding: 16px; }.sx-approval ul { margin-block: 16px; gap: 13px; }
}
/* Allow portal content to shrink inside the narrowest phone viewport. */
.sx-portal-main, .sx-portal-rail, .sx-portal-route { min-width: 0; }
@media (max-width: 600px) { .sx-portal { grid-template-columns: minmax(0, 1fr); } }

/* Research starts with a question and produces a chart alongside a desk briefing. */
.sx-research-question { display: flex; justify-content: flex-end; align-items: flex-start; gap: 9px; margin: 0 0 16px 40px; }
.sx-research-question .sx-avatar { margin-top: 4px; }
.sx-research-question>div { max-width: 480px; padding: 11px 14px; background: #e1e9df; border: 1px solid #cfdbcb; border-radius: 8px 8px 2px 8px; }
.sx-research-question p { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.sx-research-answer { background: #fffdf7; border: 1px solid #dcd9ca; padding: 16px 18px; }
.sx-research-answer>header { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid #e0e2d5; }
.sx-research-mark { display: grid; place-items: center; width: 25px; height: 25px; background: #274a36; color: #f4f6ed; font: 13px var(--serif); }
.sx-research-answer>header strong { display: block; font-size: 11px; margin-bottom: 2px; }
.sx-research-answer>header>.sx-badge { margin-left: auto; }
.sx-research-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 18px 0; }
.sx-research-chart { min-width: 0; margin: 0; }
.sx-research-chart figcaption strong { display: block; font-size: 11px; }
.sx-research-chart figcaption>span { display: block; margin-top: 3px; font-size: 9px; color: #77806c; }
.sx-research sup { font: 8px var(--mono); color: #907341; }
.sx-chart-scale { display: flex; justify-content: space-between; margin: 16px 0 9px 46px; color: #7c876e; font: 8px var(--mono); }
.sx-chart-bars { margin: 0; display: grid; gap: 11px; }
.sx-chart-bars>div { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 6px; }
.sx-chart-bars dt { font: 8px var(--mono); color: #6f7c65; }
.sx-chart-bars dd { margin: 0; height: 20px; background: repeating-linear-gradient(90deg, #dce2d2 0 1px, transparent 1px 50%); }
.sx-chart-bars dd>span { display: flex; align-items: center; justify-content: flex-end; height: 100%; width: var(--bar); background: #b9cbb3; border-radius: 0 2px 2px 0; }
.sx-chart-bars b { padding-right: 5px; font: 9px var(--mono); color: #2e4e32; }
.sx-chart-bars .latest dd>span { background: #3d6247; }.sx-chart-bars .latest b { color: #f1f7ec; }
.sx-research-chart>p { font-size: 9px; color: #5b7353; margin: 13px 0 0 46px; }
.sx-research-brief { border-left: 1px solid #e0e2d5; padding-left: 20px; }
.sx-research-brief h4 { font: 24px/1.1 var(--serif); letter-spacing: -.02em; margin: 7px 0 10px; }
.sx-research-brief p { font-size: 10px; line-height: 1.6; color: #6a765e; }
.sx-research-brief>div { margin-top: 13px; border-top: 1px solid #e6e6d9; padding-top: 11px; }
.sx-research-brief>div p { margin-top: 5px; }
.sx-research-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid #e0e2d5; }
.sx-research-sources ol { display: flex; gap: 12px; min-width: 0; overflow-x: auto; list-style: none; counter-reset: research-source; padding: 0; margin: 0; font: 8px/1.7 var(--sans); color: #707b63; }
.sx-research-sources li { flex-shrink: 0; white-space: nowrap; counter-increment: research-source; }
.sx-research-sources li::before { content: counter(research-source) ". "; }
.sx-research-sources .sx-badge { margin-left: auto; font-size: 8px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .sx-research-findings { gap: 14px; }.sx-research-brief { padding-left: 14px; }.sx-research-brief h4 { font-size: 22px; }
}
@media (max-width: 600px) {
  .sx-research-question { margin-left: 10px; gap: 7px; }.sx-research-question>div { padding: 10px 12px; }.sx-research-question p { font-size: 11px; }
  .sx-research-answer { padding: 14px; }.sx-research-answer>header { gap: 7px; }.sx-research-answer>header>.sx-badge { font-size: 8px; }
  .sx-research-findings { grid-template-columns: 1fr; gap: 20px; }.sx-research-brief { border-left: 0; border-top: 1px solid #e0e2d5; padding: 16px 0 0; }
  .sx-research-sources { align-items: flex-start; }.sx-research-sources>.sx-label { flex-basis: 100%; }.sx-research-sources .sx-badge { margin-left: 0; }
}

/* Trading workspace: book totals, a trade blotter, and traceable margin. */
.sx-trading { background: #fafcf8; border: 1px solid #d3ddd0; }
.sx-trading-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; }
.sx-trading-header strong { display: block; margin-top: 3px; font-size: 12px; }
.sx-trading-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 17px; gap: 16px; border-block: 1px solid #d8e2d2; background: #eaf1e6; }
/* Each tile bleeds to the band's edges so every divider runs the band's full
   height rather than stopping at the text. */
.sx-trading-metrics>div+div { padding-left: 16px; border-left: 1px solid #cfdcc8; margin-block: -12px; padding-block: 12px; }
.sx-trading-metrics dt { font-size: 10px; color: #5c7153; }
.sx-trading-metrics dd { margin: 5px 0 3px; font: 29px/1.1 var(--serif); letter-spacing: -.025em; color: #2b563a; }
.sx-trading-metrics dd>span { font: 10px var(--mono); }
.sx-trading-metrics small { display: block; font-size: 8px; color: #6f7f64; }
.sx-blotter-wrap { padding: 0 17px 12px; overflow-x: auto; }
/* Fixed layout keeps the figures grouped next to the trade rather than letting
   the counterparty column absorb the free space and push them to the far edge. */
.sx-blotter { width: 100%; table-layout: fixed; border-collapse: collapse; font: 10px/1.5 var(--sans); text-align: right; white-space: nowrap; }
.sx-blotter th:first-child { width: 34%; }
.sx-blotter caption { text-align: left; padding: 14px 0 10px; font-size: 12px; font-weight: 500; }
.sx-blotter caption>span { float: right; font: 8px var(--mono); color: #75846b; padding-top: 4px; }
.sx-blotter th, .sx-blotter td { padding: 8px 7px; border-bottom: 1px solid #e1e7db; font-weight: 400; }
.sx-blotter th:first-child { text-align: left; padding-left: 0; }
.sx-blotter th:last-child, .sx-blotter td:last-child { padding-right: 0; }
.sx-blotter thead { font-size: 8px; color: #77876c; }
.sx-blotter small { display: block; font-size: 8px; color: #77876c; }
.sx-blotter td:last-child { color: #356245; }
.sx-blotter td.sx-pnl-loss { color: #9d6141; }
.sx-blotter .closed { background: #f1f5ec; }
.sx-trading-analysis { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #dce4d5; }
.sx-position-chart { margin: 0; padding: 14px 17px; min-width: 0; }
.sx-position-chart figcaption { font-size: 11px; font-weight: 500; }
.sx-position-chart figcaption>span { display: block; font-size: 8px; font-weight: 400; color: #77876c; margin-top: 2px; }
.sx-position-chart>div { display: grid; grid-template-columns: 69px minmax(0, 1fr) 32px; align-items: center; gap: 7px; margin-top: 14px; font-size: 8px; }
.sx-position-chart i { display: block; width: var(--position); height: 10px; background: #6f9271; border-radius: 0 2px 2px 0; }
.sx-position-chart>div:nth-of-type(2) i { background: #a4b599; }
.sx-position-chart strong { text-align: right; font: 9px var(--mono); }
.sx-position-chart>p { margin-top: 15px; font: 8px var(--mono); color: #7b8b70; }
.sx-margin { padding: 14px 17px; border-left: 1px solid #dce4d5; background: #f5f6ed; }
.sx-margin h4 { font-size: 11px; margin-bottom: 8px; }
.sx-margin dl { margin: 0; font-size: 10px; }
.sx-margin dl>div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.sx-margin dt { color: #6c7c62; }
.sx-margin dt small { font-size: 7px; color: #829175; margin-left: 5px; }
.sx-margin dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-margin dl>.sx-margin-net { border-top: 1px solid #d6dfcc; margin-top: 9px; padding-top: 8px; }
.sx-margin-net dd { color: #356245; font-weight: 500; }
@media (max-width: 1100px) and (min-width: 901px) {
  .sx-trading-metrics { gap: 10px; padding-inline: 12px; }.sx-trading-metrics>div+div { padding-left: 10px; }.sx-trading-metrics dd { font-size: 26px; }
  .sx-blotter-wrap { padding-inline: 12px; }.sx-blotter { font-size: 9px; }.sx-blotter th, .sx-blotter td { padding-inline: 4px; }
  .sx-position-chart, .sx-margin { padding-inline: 12px; }.sx-margin dt small { display: block; margin: 0; }
}
@media (max-width: 600px) {
  .sx-trading-header { padding: 12px; flex-wrap: wrap; gap: 8px; }.sx-trading-header>.sx-badge { font-size: 8px; }
  .sx-trading-metrics { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 12px; }.sx-trading-metrics dd { font-size: 25px; }.sx-trading-metrics dt { font-size: 9px; }.sx-trading-metrics small { font-size: 7px; }.sx-trading-metrics>div+div { padding-left: 10px; margin-block: -10px; padding-block: 10px; }
  /* On a phone the open position drops to its own full-width row under the two
     P&L figures, so it sits on the card rather than carrying the band's tint. */
  .sx-trading-metrics>div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #cfdcc8; background: #fafcf8; margin: 0 -12px -10px; padding: 10px 12px 10px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }.sx-trading-metrics>div:last-child small { flex-basis: 100%; }
  .sx-blotter-wrap { padding-inline: 12px; overflow-x: visible; }
  .sx-trading-analysis { grid-template-columns: 1fr; }.sx-margin { border-left: 0; border-top: 1px solid #dce4d5; }
  /* Five columns will not fit a phone, and a side-scrolling table hides half the
     book. Each trade becomes a labelled block instead. */
  /* The book fits a phone by giving the counterparty column less of the width
     and letting it wrap, rather than by shrinking the figures. */
  .sx-blotter { font-size: 10px; }
  /* Each figure column gets what its widest value needs, so nothing crowds. */
  .sx-blotter th:first-child { width: 36%; }
  .sx-blotter thead th:nth-child(2) { width: 17%; }
  .sx-blotter thead th:nth-child(3) { width: 14%; }
  .sx-blotter thead th:nth-child(4) { width: 16%; }
  .sx-blotter thead th:nth-child(5) { width: 17%; }
  .sx-blotter thead { font-size: 8px; }
  .sx-blotter th, .sx-blotter td { padding: 6px 2px; }
  .sx-blotter th[scope=row] { white-space: normal; line-height: 1.35; }
  .sx-blotter small { font-size: 8px; }
  .sx-blotter caption { font-size: 11px; }
  .sx-blotter caption>span { font-size: 8px; }
}

/* Draft generation precedes comparison against the bank-issued LC. */
.sx-document-generation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 14px; padding: 12px; background: #f2f6eb; border: 1px solid #d3dfc8; }
.sx-document-generation ul { display: flex; flex-wrap: wrap; gap: 5px 13px; list-style: none; padding: 0; margin: 7px 0 0; font-size: 9px; color: #496940; }
.sx-documents .sx-paper-lines { height: 18px; margin-block: 12px; }
.sx-documents .sx-paper-page { padding-top: 12px; margin-top: 16px; }
@media (max-width: 600px) {
  .sx-document-generation { margin-inline: 8px; padding: 10px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .sx-document-generation ul { gap: 4px 10px; }
}

/* Every solution uses the same frame; detailed examples have short, selectable views. */
.solution-stage { height: 620px; display: grid; grid-template-rows: minmax(0, 1fr) 76px; }
.demo-workspace { min-height: 0; padding: 16px 18px 12px; display: grid; grid-template-rows: 12px 48px minmax(0, 1fr) 28px; gap: 8px; }
.demo-workspace h3 { margin: 0; align-self: center; font-size: 25px; line-height: 1.05; }
.demo-sequence { min-height: 0; }
.demo-bottom { margin-top: 0; gap: 10px; }
.demo-bottom button { padding: 7px; }
.solution-caption { padding: 12px 18px; }
.solution-caption p { font-size: 12px; }
.sx-preview-switch { display: flex; gap: 5px; padding: 8px 12px; border-bottom: 1px solid #dce4d5; }
.sx-preview-switch button { border: 0; border-radius: 3px; padding: 6px 9px; color: #62765b; background: transparent; font: 10px var(--sans); cursor: pointer; }
.sx-preview-switch button[aria-pressed=true] { background: #e1ebdb; color: #2b5237; }
.sx-preview-group[data-preview-mode=mobile] .sx-preview-switch { display: none; }
.sx-preview-group[data-preview-mode=always] [data-preview-panel][data-preview-active=false] { display: none; }
.sx-trading-header { padding-block: 10px; }
.sx-trading-metrics { padding-block: 12px; }
.sx-blotter caption { padding-block: 9px 6px; }
.sx-blotter th, .sx-blotter td { padding-block: 6px; }
.sx-trading-analysis { border-top: 0; }
.sx-portal-main { padding-block: 12px; }
.sx-portal-main .sx-toolbar { padding-bottom: 8px; }
.sx-portal-cargo { margin-top: 12px; padding-block: 10px; }
.sx-voyage { padding-block: 20px; }
.sx-milestones { padding-block: 18px 16px; }
.sx-documents .sx-toolbar { padding-block: 12px; }
.sx-document-generation { padding-block: 9px; margin-bottom: 10px; }
.sx-documents .sx-paper { padding-block: 12px 10px; }
.sx-documents .sx-paper-lines { height: 10px; margin-block: 10px; }
.sx-documents .sx-paper-page { margin-top: 10px; padding-top: 10px; }
.sx-document-verdict { padding-block: 10px; }
.sx-quantity-summary { padding-block: 16px; }
.sx-quality-table td, .sx-quality-table th { padding-block: 8px; }
.sx-research-question { margin-bottom: 10px; }
.sx-research-question>div { padding-block: 9px; }
.sx-research-answer { padding-block: 12px; }
.sx-research-answer>header { padding-bottom: 10px; }
.sx-research-findings { padding-block: 12px; }
.sx-research-brief h4 { font-size: 22px; margin-block: 5px 7px; }
.sx-research-brief>div { margin-top: 8px; padding-top: 8px; }
.sx-research-sources { padding-top: 9px; }
.sx-chart-scale { margin-top: 11px; }
.sx-chart-bars { gap: 8px; }
@media (max-width: 600px) {
  .solution-stage { height: 640px; grid-template-rows: minmax(0, 1fr) 100px; }
  .demo-workspace { padding: 12px 12px 10px; grid-template-rows: 12px 52px minmax(0, 1fr) 28px; gap: 6px; }
  .demo-workspace h3 { font-size: 24px; line-height: 1.08; }
  .solution-caption { padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .solution-caption a { margin: 0; }
  .sx-preview-group[data-preview-mode=mobile] .sx-preview-switch { display: flex; }
  .sx-preview-group[data-preview-mode=mobile] [data-preview-panel][data-preview-active=false] { display: none; }
  .sx-trading-metrics { padding-block: 10px; gap: 7px; }
  .sx-trading-metrics dd { font-size: 23px; }
  .sx-trading-metrics>div:last-child { padding-top: 7px; gap: 5px 8px; }
  .sx-trading-metrics>div:last-child small { flex-basis: auto; margin-left: auto; }
  .sx-blotter caption { padding-block: 7px 4px; }
  .sx-blotter-wrap { padding-bottom: 7px; }
  .sx-trading-analysis { grid-template-columns: 1fr 1fr; }
  .sx-position-chart, .sx-margin { padding: 10px; }
  .sx-position-chart>div { grid-template-columns: minmax(0, 1fr) 30px; gap: 5px; margin-top: 10px; }
  .sx-position-chart>div>span { grid-column: 1 / -1; }
  .sx-position-chart>p { font-size: 7px; line-height: 1.5; }
  .sx-margin { border-left: 1px solid #dce4d5; border-top: 0; }
  .sx-margin h4, .sx-position-chart figcaption { font-size: 10px; }
  .sx-margin dl { font-size: 9px; }
  .sx-margin dl>div { display: block; }
  .sx-margin dt small { display: none; }
  .sx-margin dd { margin-top: 2px; }
  .sx-kanban { gap: 6px; padding: 0 8px 8px; }
  .sx-lane { padding: 7px; }
  .sx-lane h4 { margin-bottom: 5px; }
  .sx-task { padding: 8px; gap: 3px 6px; }
  .sx-task footer { margin-top: 0; }
  .sx-task .sx-avatar { width: 18px; height: 18px; }
  .sx-task h5 { font-size: 11px; }
  .sx-task p { font-size: 9px; }
  .sx-task>small { font-size: 6px; }
  .sx-document-generation { gap: 5px; margin-bottom: 8px; }
  .sx-document-generation ul { margin-top: 4px; font-size: 8px; }
  .sx-documents .sx-paper header { gap: 5px; }
  .sx-documents .sx-file-icon { width: 24px; height: 25px; }
  .sx-documents .sx-highlight { min-height: 0; margin-bottom: 8px!important; padding-block: 6px; }
  .sx-documents .sx-paper dl>div { padding-block: 3px; }
  .sx-document-verdict { gap: 5px; }
  .sx-settlement { display: block; }
  .sx-invoice { border: 0; padding: 14px; }
  .sx-invoice .sx-toolbar { padding-bottom: 10px; }
  .sx-invoice footer { margin-top: 12px; }
  .sx-research-question { margin-left: 0; }
  .sx-research-question>div { padding: 8px 10px; }
  .sx-research-question p { font-size: 10px; }
  .sx-research-answer { padding: 10px 12px; }
  .sx-research-answer .sx-preview-switch { padding-inline: 0; }
  .sx-research-findings { display: block; padding-block: 10px; min-height: 187px; }
  .sx-research-brief { border: 0; padding: 0; }
  .sx-research-sources { gap: 4px 8px; }
  .sx-research-sources>.sx-label { flex-basis: auto; }
  .sx-research-sources .sx-badge { margin: 0; }
  .sx-research-chart>p { margin-top: 9px; }
  .sx-chart-bars dd { height: 17px; }
}
/* Replay stays in the header, leaving the full middle of the frame for the example. */
.demo-workspace { position: relative; grid-template-rows: 12px 48px minmax(0, 1fr); }
.demo-bottom { position: absolute; top: 8px; right: 12px; }
.demo-bottom>span { display: none; }
@media (max-width: 600px) {
  .solution-stage { grid-template-rows: minmax(0, 1fr) 88px; }
  .demo-workspace { grid-template-rows: 12px 52px minmax(0, 1fr); }
  .sx-documents .sx-paper-lines, .sx-documents .sx-paper-page { display: none; }
  .sx-documents .sx-paper header { margin-bottom: 9px; }
  .sx-documents .sx-document-pair { padding-bottom: 8px; }
  .sx-portal-main>p { font-size: 9px; }
}
@media (max-width: 600px) {
  .sx-trading-header strong, .sx-task p, .sx-documents .sx-file-icon { display: none; }
  .sx-trading-header { gap: 6px; }
  .sx-documents .sx-paper header { min-height: 46px; }
}
/* Grid items default to min-width:auto, so the blotter's own min-width inflated
   the whole stage past the viewport instead of scrolling inside its wrapper. */
.demo-workspace, .demo-sequence, .demo-workspace > * { min-width: 0; }

/* Below 900px the tab rail becomes a horizontal scroller with no affordance, so
   the solutions are chosen from a select instead, matching the industries picker. */
#solution-select { display: none; }
@media (max-width: 900px) {
  #solution-select { display: block; width: 100%; font: 13px var(--sans); padding: 12px 38px 12px 13px; border: 1px solid #d4dcd5; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2355605B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; background-size: 12px 8px; appearance: none; }
  .solution-tabs { display: none; }
}

.demo-sequence.play .sx-enter { animation-name: preview-in; }
@keyframes preview-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .sx-research-findings { min-height: 183px; } }
.demo-sequence>.sx-preview-group:not(.sx-research),
.demo-sequence>.sx-board, .demo-sequence>.sx-portal,
.demo-sequence>.sx-shipment, .demo-sequence>.sx-documents,
.demo-sequence>.sx-inventory { min-height: 100%; }

/* Same iOS Safari accent-colour default as the industry picker. */
#solution-select { color: var(--ink); -webkit-text-fill-color: var(--ink); }

/* Market research connects the observed move to a desk exposure scenario. */
.sx-scenario-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sx-scenario-controls select { min-width: 0; max-width: 55%; padding: 5px 6px; border: 1px solid #cbd6c5; border-radius: 3px; background: #f6f8ef; color: #365e43; font: 10px var(--sans); }
.sx-scenario-controls output { white-space: nowrap; color: #365e43; font: 16px var(--serif); }
.sx-scenario-controls output[data-negative=true] { color: #9a593a; }
.sx-market-scenario>p { font-size: 8px; }
.sx-research { min-height: 100%; display: flex; flex-direction: column; }
.sx-research-answer { flex: 1; display: flex; flex-direction: column; }
.sx-research-findings { flex: 1; align-items: start; }
