:root{
  --bg:#f5f7fa;
  --surface:#fff;
  --ink:#1d2b3d;
  --muted:#778398;
  --line:#e9edf3;
  --nav:#142236;
  --accent:#167b70;
  --green:#18775c;
  --amber:#a86b19;
  --radius:12px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  font-synthesis:none
}
*{
  box-sizing:border-box
}
html{
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body{
  margin:0;
  background:var(--bg);
  font-size:13px;
  line-height:1.5
}
button,input,select{
  font:inherit
}
button,a,select,input{
  outline-offset:4px
}
button,select{
  cursor:pointer
}
button:disabled{
  cursor:not-allowed;
  opacity:.5
}
a{
  color:inherit;
  text-decoration:none
}
svg{
  width:18px;
  height:18px;
  display:block;
  flex:none
}
button svg{
  width:16px;
  height:16px
}
h1,h2,p{
  margin:0
}
h1{
  font-size:29px;
  font-weight:650;
  letter-spacing:-1px;
  line-height:1.3
}
h2{
  font-size:15px;
  font-weight:650;
  letter-spacing:-.2px
}
strong{
  font-weight:600
}
.mono,.numeric,.metric-value{
  font-variant-numeric:tabular-nums
}
.numeric{
  text-align:right;
  white-space:nowrap
}
.eyebrow,.small-label{
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:650
}
.eyebrow{
  color:var(--muted);
  margin-bottom:7px
}
.sidebar{
  width:222px;
  background:var(--nav);
  color:#e5eaf2;
  position:fixed;
  inset:0 auto 0 0;
  padding:29px 17px;
  display:flex;
  flex-direction:column;
  z-index:10
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:600;
  letter-spacing:-.55px;
  padding:0 8px
}
.brand-light{
  font-weight:400;
  color:#a6b6ca
}
.brand-mark{
  width:31px;
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#267f76;
  border-radius:8px;
  font-size:19px;
  font-weight:600;
  letter-spacing:-2px;
  padding-right:2px
}
.brand-mark>span{
  color:#b3e2d7
}
.workspace-label{
  color:#697d97;
  font-size:9px;
  letter-spacing:1.7px;
  margin:45px 11px 15px
}
.main-nav{
  display:grid;
  gap:6px
}
.nav-item{
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 13px;
  border-radius:7px;
  color:#a2b0c4;
  font-size:12px
}
.nav-item svg{
  width:17px;
  height:17px
}
.nav-item.active{
  background:#23364e;
  color:#fff;
  box-shadow:inset 2px 0 #65b8a7
}
.nav-item:hover{
  background:#203149;
  color:#fff
}
.nav-count{
  margin-left:auto;
  padding:1px 6px;
  background:#31475f;
  color:#c8d6e8;
  font-size:10px;
  border-radius:4px
}
.sidebar-context{
  margin:34px 9px
}
.small-label{
  font-size:9px;
  letter-spacing:1.1px;
  color:#6e819b;
  margin-bottom:18px
}
.sidebar-account{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:20px
}
.account-symbol{
  border:1px solid #3b526a;
  border-radius:6px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  color:#b6d7d0;
  font-size:11px;
  background:#203247
}
.sidebar-account strong{
  display:block;
  font-size:11px;
  letter-spacing:.4px;
  color:#d9e3ef
}
.sidebar-account div>span{
  font-size:10px;
  display:block;
  color:#7e92aa;
  margin-top:2px
}
.tiny-dot{
  width:5px;
  height:5px;
  background:#75b9ab;
  border-radius:50%;
  margin-left:auto
}
.sidebar-account.muted{
  opacity:.57
}
.sidebar-bottom{
  margin-top:auto;
  border-top:1px solid #283b52;
  padding:21px 11px 0;
  display:flex;
  gap:11px;
  align-items:center
}
.sidebar-bottom strong{
  display:block;
  font-size:11px;
  color:#a8bacf
}
.sidebar-bottom div>span{
  display:block;
  color:#6f849e;
  font-size:10px;
  margin-top:3px
}
.readonly-lock{
  color:#7c93aa
}
.app-shell{
  margin-left:222px
}
.topbar{
  height:69px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
  padding:0 36px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.breadcrumb{
  font-size:11px;
  color:#98a3b2
}
.breadcrumb span{
  margin:0 12px;
  color:#cad2de
}
.breadcrumb strong{
  color:#5c6c80;
  font-weight:500
}
.topbar-right{
  display:flex;
  gap:22px;
  align-items:center
}
.preview-pill{
  display:flex;
  gap:7px;
  align-items:center;
  color:#5c6d85;
  font-size:10px
}
.preview-pill>span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d7a24e
}
.avatar{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#edf1f7;
  color:#586a83;
  font-size:10px;
  font-weight:650
}
main{
  max-width:1580px;
  margin:0 auto;
  padding:31px 36px 18px
}
.page-title-row{
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin-bottom:23px
}
.page-subtitle{
  color:var(--muted);
  font-size:12px;
  margin-top:7px
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 13px;
  border-radius:6px;
  border:1px solid transparent;
  font-size:11px;
  white-space:nowrap;
  font-weight:550;
  min-height:36px
}
.secondary{
  background:#fff;
  border-color:#dce3eb;
  color:#56667c;
  box-shadow:0 1px 2px #10203905
}
.secondary:not(:disabled):hover{
  border-color:#9cafa9;
  color:var(--accent)
}
.primary{
  background:var(--accent);
  color:#fff
}
.offline-banner{
  display:flex;
  align-items:center;
  gap:10px;
  background:#eaf1fa;
  border:1px solid #dbe7f7;
  border-radius:8px;
  padding:12px 14px;
  color:#537295;
  font-size:11px;
  margin-bottom:22px
}
.offline-banner svg{
  width:16px;
  height:16px;
  color:#678db3
}
.offline-banner strong{
  font-weight:600
}
.banner-tag{
  font-size:8px;
  letter-spacing:1px;
  border:1px solid #c4d6eb;
  border-radius:4px;
  padding:3px 6px;
  white-space:nowrap;
  margin-left:auto;
  color:#58779d
}
.account-toolbar{
  display:flex;
  align-items:center;
  gap:21px;
  margin-bottom:18px
}
.account-toolbar label{
  display:block;
  color:#8692a4;
  font-size:10px;
  margin-bottom:5px
}
.account-toolbar select{
  border:1px solid #dce3eb;
  color:#3e4f65;
  background:#fff;
  border-radius:6px;
  height:36px;
  font-weight:550;
  padding:0 34px 0 12px;
  max-width:100%;
  min-width:215px;
  font-size:11px
}
.scenario-selector-wrap select{
  min-width:215px;
  font-weight:400
}
.toolbar-date{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  color:#8a96a6;
  font-size:10px;
  padding-top:18px;
  white-space:nowrap
}
.toolbar-date svg{
  width:14px;
  height:14px
}
.health-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:19px;
  font-size:10px;
  color:#8390a2
}
.health-primary{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0
}
.health-primary strong{
  color:#54816f;
  font-size:10px;
  white-space:nowrap
}
.health-dot{
  width:6px;
  height:6px;
  background:#3ba07e;
  border-radius:50%;
  box-shadow:0 0 0 3px #e5f3eb;
  flex:none
}
.health-dot.stale{
  background:#c59b50;
  box-shadow:0 0 0 3px #fbf0df
}
.health-dot.uncertain{
  background:#d08c41;
  box-shadow:0 0 0 3px #fff0e0
}
.health-dot.unsupported{
  background:#9ca8ba;
  box-shadow:0 0 0 3px #e9edf2
}
.divider{
  height:10px;
  background:#d8dfe8;
  width:1px;
  margin:0 3px
}
.metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:22px
}
.metric{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 19px 16px;
  min-width:0
}
.metric-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#78869a;
  font-size:10px
}
.metric-top svg{
  color:#aab6c6;
  width:15px;
  height:15px
}
.metric-value{
  font-size:26px;
  font-weight:600;
  letter-spacing:-.9px;
  line-height:1.2;
  margin-top:12px;
  color:#203248;
  white-space:nowrap
}
.metric-currency{
  font-size:10px;
  color:#9aa7b8;
  font-weight:400;
  margin-left:6px;
  letter-spacing:0
}
.metric-note{
  font-size:10px;
  color:#94a0b0;
  margin-top:9px;
  display:flex;
  gap:6px;
  align-items:center
}
.metric-note .up{
  color:var(--green)
}
.overview-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 285px;
  gap:19px;
  margin-bottom:22px
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-width:0;
  overflow:hidden
}
.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:20px 21px 17px
}
.card-header p{
  color:#929eaf;
  font-size:10px;
  margin-top:4px
}
.count-badge{
  background:#f0f3f7;
  color:#7d8b9e;
  border-radius:4px;
  font-size:10px;
  padding:2px 6px;
  margin-left:5px;
  vertical-align:middle
}
.subtle-tag{
  font-size:9px;
  letter-spacing:.6px;
  background:#f5f7fa;
  border:1px solid #edf0f4;
  border-radius:4px;
  color:#8190a3;
  padding:3px 7px
}
.position{
  padding:5px 21px 20px
}
.position-top{
  display:flex;
  gap:11px;
  align-items:center;
  margin:3px 0 18px
}
.symbol-avatar{
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  background:#eaf3f1;
  color:var(--accent);
  border-radius:9px;
  font-size:13px;
  font-weight:600
}
.position-symbol{
  font-size:14px;
  font-weight:600;
  color:#2d4056
}
.position-instrument{
  font-size:10px;
  color:#93a0b1
}
.side-pill{
  background:#e8f5ee;
  color:#34795e;
  font-size:9px;
  letter-spacing:.2px;
  border-radius:4px;
  padding:3px 7px;
  margin-left:3px;
  display:inline-block
}
.side-pill.short{
  background:#faeeee;
  color:#b76e6e
}
.position-quantity{
  margin-left:auto;
  text-align:right
}
.quantity-value{
  font-size:22px;
  font-weight:600;
  letter-spacing:-.5px
}
.quantity-label{
  color:#9ba6b6;
  font-size:9px
}
.position-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  background:#f8fafc;
  border:1px solid #f0f3f7;
  border-radius:7px;
  padding:12px 13px
}
.detail-label{
  font-size:9px;
  color:#96a1b2;
  display:block;
  margin-bottom:5px
}
.detail-value{
  font-size:12px;
  color:#56677b;
  font-variant-numeric:tabular-nums
}
.positive{
  color:var(--green)
}
.position-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  margin-top:17px
}
.ownership{
  color:#94a1b1;
  font-size:10px
}
.small-action{
  color:#4b8276;
  background:#fff;
  border:1px solid #cfe1dc;
  border-radius:5px;
  padding:6px 10px;
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:5px
}
.small-action:not(:disabled):hover{
  background:#edf7f3
}
.small-action svg{
  width:13px;
  height:13px
}
.card-footnote{
  display:flex;
  align-items:flex-start;
  gap:7px;
  padding:12px 21px;
  background:#fcfdfe;
  border-top:1px solid var(--line);
  color:#8d9bad;
  font-size:9px
}
.card-footnote svg{
  width:13px;
  height:13px
}
.attention-card .card-header{
  padding-bottom:7px
}
.attention-card .eyebrow{
  font-size:8px;
  letter-spacing:1.2px;
  margin-bottom:5px
}
.attention-icon{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  color:#c28e44;
  background:#fcf4e7;
  border-radius:7px
}
.attention-icon svg{
  width:14px;
  height:14px
}
#attention-content{
  padding:14px 21px 19px
}
.attention-heading{
  color:#9e7238;
  font-size:12px;
  font-weight:600;
  margin-bottom:8px
}
.attention-text{
  font-size:11px;
  color:#8b94a3;
  line-height:1.8
}
.attention-stat{
  margin-top:16px;
  display:flex;
  align-items:baseline;
  gap:7px
}
.attention-stat strong{
  font-size:29px;
  letter-spacing:-.8px;
  color:#36475d
}
.attention-stat span{
  font-size:10px;
  color:#97a1b0
}
.attention-note{
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:13px;
  font-size:9px;
  color:#9aa5b4;
  line-height:1.7
}
.search-field{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #e4e9f0;
  border-radius:6px;
  padding:7px 10px;
  color:#a4aebc
}
.search-field svg{
  width:14px;
  height:14px
}
.search-field input{
  border:0;
  background:transparent;
  outline:none;
  width:169px;
  font-size:10px;
  color:#5c6b7d
}
.search-field input::placeholder{
  color:#a0aaba
}
.search-field:focus-within{
  outline:2px solid #80aa9f;
  outline-offset:2px
}
.order-controls{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 21px;
  border-bottom:1px solid var(--line)
}
.tabs{
  display:flex;
  gap:22px
}
.tab{
  padding:0 0 12px;
  border:0;
  background:transparent;
  color:#91a0b1;
  font-size:10px;
  display:flex;
  gap:6px;
  align-items:center;
  border-bottom:2px solid transparent
}
.tab.active{
  color:#277b6d;
  border-bottom-color:#348f7e;
  font-weight:600
}
.tab span{
  font-weight:500;
  color:#9aa8b8;
  background:#f2f5f8;
  border-radius:4px;
  padding:0 5px;
  font-size:9px
}
.tab.active span{
  background:#e8f4ef;
  color:#4f8e7c
}
.quiet-caption{
  font-size:9px;
  color:#a3adbb;
  padding-bottom:10px
}
.table-scroll{
  overflow-x:auto
}
table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px
}
th{
  font-size:9px;
  color:#91a0b2;
  font-weight:500;
  padding:12px 11px;
  background:#fafbfd;
  white-space:nowrap;
  border-bottom:1px solid #edf0f5
}
th:first-child,td:first-child{
  padding-left:21px
}
th:last-child,td:last-child{
  padding-right:21px
}
td{
  padding:15px 11px;
  border-bottom:1px solid #f0f3f7;
  color:#55667d;
  vertical-align:middle;
  font-variant-numeric:tabular-nums
}
tr:last-child td{
  border-bottom:0
}
.orders-table{
  min-width:820px
}
.order-id{
  font-size:10px;
  font-weight:550;
  color:#596b83;
  display:block
}
.subtext{
  font-size:9px;
  display:block;
  color:#a3afbe;
  margin-top:3px
}
.symbol-text{
  font-weight:600;
  color:#344c65
}
.status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:9px;
  border-radius:4px;
  padding:3px 7px;
  white-space:nowrap;
  background:#f2f4f7;
  color:#8f9bad
}
.status:before{
  content:"";
  width:4px;
  height:4px;
  border-radius:50%;
  background:currentColor
}
.status.working{
  color:#5b83af;
  background:#edf3fb
}
.status.partial{
  color:#b78947;
  background:#fbf5e9
}
.status.filled{
  color:#4d9478;
  background:#edf7f1
}
.action-cell{
  text-align:right
}
.cancel-link{
  border:0;
  background:transparent;
  color:#8c9ab0;
  font-size:10px;
  padding:5px 0
}
.cancel-link:not(:disabled):hover{
  color:#a96846
}
.cancel-link:disabled{
  opacity:.45
}
.card-footer{
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 21px;
  color:#9ca8b7;
  font-size:9px
}
.history-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:19px;
  margin-top:22px
}
.history-grid td{
  font-size:10px;
  padding-top:12px;
  padding-bottom:12px
}
.timeline{
  padding:2px 22px 19px
}
.timeline-item{
  position:relative;
  padding:0 0 19px 20px;
  border-left:1px solid #e7edf2;
  margin-left:3px
}
.timeline-item:last-child{
  border:0;
  padding-bottom:0
}
.timeline-item:before{
  position:absolute;
  content:"";
  width:6px;
  height:6px;
  background:#8ab6a8;
  border-radius:50%;
  left:-3px;
  top:5px;
  border:2px solid #fff;
  box-sizing:content-box
}
.timeline-item.warning:before{
  background:#d7b477
}
.timeline-item time{
  float:right;
  color:#a5afbe;
  font-size:9px;
  padding-left:10px
}
.timeline-title{
  font-size:10px;
  font-weight:550;
  color:#617288
}
.timeline-detail{
  color:#9ca7b7;
  font-size:9px;
  line-height:1.7;
  margin-top:3px
}
.endpoint-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:13px;
  margin-top:19px;
  padding:12px 0;
  color:#a1adbc;
  font-size:9px
}
.endpoint-strip strong{
  font-size:9px;
  color:#8d9bae;
  font-weight:500
}
.endpoint-strip>span{
  margin-left:auto
}
.endpoint-strip>div{
  display:flex;
  gap:13px;
  flex-wrap:wrap
}
.endpoint-strip b{
  font-weight:500;
  color:#74879d
}
.page-footer{
  display:flex;
  justify-content:space-between;
  gap:15px;
  border-top:1px solid #e5eaf0;
  padding:14px 0 4px;
  font-size:9px;
  color:#a6afbe
}
.footer-dot{
  padding:0 6px
}
.empty-state{
  padding:35px 22px;
  text-align:center;
  color:#94a0af;
  font-size:12px
}
.empty-state strong{
  display:block;
  font-size:13px;
  color:#65768b;
  margin-bottom:7px
}
.error-banner{
  padding:12px 16px;
  background:#fff0ed;
  border:1px solid #efc9c0;
  color:#9b5141;
  border-radius:8px;
  margin-bottom:16px;
  font-size:12px
}
.skip-link{
  position:fixed;
  left:10px;
  top:-100px;
  z-index:100;
  background:#fff;
  padding:10px 15px
}
.skip-link:focus{
  top:10px
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden]{
  display:none!important
}
dialog{
  width:min(505px,calc(100vw - 28px));
  padding:25px;
  border:1px solid #e1e8ee;
  border-radius:14px;
  color:var(--ink);
  box-shadow:0 22px 100px #15253933
}
dialog::backdrop{
  background:#12223675;
  backdrop-filter:blur(3px)
}
.dialog-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px
}
.dialog-icon{
  display:grid;
  place-items:center;
  background:#eaf3ef;
  color:var(--accent);
  border-radius:9px;
  width:38px;
  height:38px
}
.icon-button{
  background:transparent;
  border:0;
  padding:7px;
  color:#8b99ab;
  cursor:pointer
}
.dialog-eyebrow{
  font-size:9px;
  letter-spacing:1.2px;
  color:#9aa6b7;
  margin-bottom:9px
}
dialog h2{
  font-size:23px;
  letter-spacing:-.6px
}
.dialog-description{
  font-size:12px;
  color:#8896a8;
  line-height:1.8;
  margin-top:10px
}
.dialog-context{
  display:flex;
  gap:9px;
  font-size:10px;
  background:#f4f7fa;
  border-radius:6px;
  padding:10px 12px;
  margin:17px 0;
  color:#64768d;
  flex-wrap:wrap
}
.dialog-field{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:9px 0;
  border-bottom:1px solid #edf1f5;
  font-size:11px;
  color:#92a0b1
}
.dialog-field strong{
  color:#4b5f77;
  font-weight:550;
  text-align:right
}
.dialog-guard{
  font-size:11px;
  line-height:1.7;
  border:1px solid #eed9b9;
  background:#fff9ef;
  border-radius:7px;
  color:#a07843;
  padding:10px 12px;
  margin-top:15px
}
.dialog-notice{
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:#94a1b2;
  font-size:10px;
  line-height:1.8;
  margin-top:18px
}
.dialog-notice svg{
  width:14px;
  height:14px;
  margin-top:2px
}
.dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px
}
@media(min-width:1500px){
  main{
    padding-top:39px
  }
  .metric{
    padding:22px 24px
  }
  .metric-value{
    font-size:30px
  }
  .overview-grid{
    grid-template-columns:minmax(0,1fr) 330px
  }
  .positions-card .position{
    padding-top:10px
  }
  .page-title-row{
    margin-bottom:28px
  }
}
@media(max-width:1160px){
  .sidebar{
    width:192px;
    padding-left:12px;
    padding-right:12px
  }
  .brand{
    font-size:14px;
    gap:8px
  }
  .app-shell{
    margin-left:192px
  }
  main{
    padding-left:24px;
    padding-right:24px
  }
  .topbar{
    padding:0 24px
  }
  .metric-grid{
    gap:10px
  }
  .metric{
    padding:15px
  }
  .metric-value{
    font-size:23px
  }
  .overview-grid{
    grid-template-columns:minmax(0,1fr) 250px;
    gap:14px
  }
  .toolbar-date{
    display:none
  }
  .card-header{
    padding-left:17px;
    padding-right:17px
  }
  .position{
    padding-left:17px;
    padding-right:17px
  }
  .attention-card #attention-content{
    padding-left:17px;
    padding-right:17px
  }
  .page-footer{
    flex-direction:column;
    gap:4px
  }
  .history-grid{
    gap:14px
  }
  .endpoint-strip>span{
    margin-left:0
  }
  .quiet-caption{
    display:none
  }
}
@media(max-width:860px){
  .sidebar{
    width:70px;
    padding:25px 9px
  }
  .brand{
    padding:0;
    justify-content:center
  }
  .brand>span:last-child,.workspace-label,.nav-item:not(.active)>.nav-count,.sidebar-context,.sidebar-bottom div{
    display:none
  }
  .brand-mark{
    width:32px;
    height:32px
  }
  .main-nav{
    margin-top:34px
  }
  .nav-item{
    font-size:0;
    padding:13px;
    gap:0;
    justify-content:center
  }
  .nav-count{
    display:none
  }
  .nav-item svg{
    width:20px;
    height:20px
  }
  .sidebar-bottom{
    justify-content:center;
    padding:20px 0 0
  }
  .app-shell{
    margin-left:70px
  }
  h1{
    font-size:25px
  }
  .metric-value{
    font-size:22px
  }
  .metric-currency{
    display:block;
    margin:4px 0 0;
    font-size:8px
  }
  .metric-note{
    font-size:9px
  }
  .overview-grid{
    grid-template-columns:minmax(0,1fr) 230px
  }
  .history-grid{
    grid-template-columns:1fr
  }
  .offline-banner{
    font-size:10px
  }
  .banner-tag{
    display:none
  }
  .health-primary .divider,#health-detail{
    display:none
  }
}
@media(max-width:650px){
  .sidebar{
    display:none
  }
  .app-shell{
    margin-left:0
  }
  .topbar{
    height:54px;
    padding:0 18px
  }
  .topbar-right{
    gap:12px
  }
  .breadcrumb{
    font-size:10px
  }
  main{
    padding:22px 15px
  }
  .page-title-row{
    align-items:flex-start;
    margin-bottom:19px
  }
  h1{
    font-size:23px;
    letter-spacing:-.8px
  }
  .eyebrow{
    font-size:9px
  }
  .page-subtitle{
    max-width:250px;
    font-size:11px;
    line-height:1.7
  }
  .page-title-row>.button{
    font-size:0;
    min-width:33px;
    padding:8px
  }
  .page-title-row>.button svg{
    width:16px;
    height:16px
  }
  .offline-banner{
    align-items:flex-start;
    font-size:10px;
    line-height:1.7;
    padding:11px 12px;
    margin-bottom:17px
  }
  .offline-banner>span{
    margin-top:3px
  }
  .account-toolbar{
    gap:10px;
    align-items:flex-start
  }
  .account-selector-wrap,.scenario-selector-wrap{
    min-width:0;
    width:50%
  }
  .account-toolbar select{
    width:100%;
    min-width:0;
    font-size:10px;
    padding-left:9px;
    padding-right:15px
  }
  .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:15px
  }
  .metric{
    padding:15px
  }
  .metric-value{
    font-size:25px
  }
  .metric-currency{
    display:inline;
    margin-left:5px
  }
  .overview-grid{
    grid-template-columns:1fr;
    gap:15px;
    margin-bottom:15px
  }
  .position-details{
    gap:8px;
    padding:11px
  }
  .position-bottom{
    flex-wrap:wrap
  }
  .attention-card .card-header{
    padding-top:17px
  }
  .attention-card #attention-content{
    padding-top:6px
  }
  .attention-stat{
    margin-top:7px
  }
  .attention-stat strong{
    font-size:24px
  }
  .attention-note{
    margin-top:9px;
    padding-top:9px
  }
  .orders-card .card-header{
    align-items:flex-start;
    flex-direction:column;
    gap:13px
  }
  .search-field{
    width:100%
  }
  .search-field input{
    width:100%
  }
  .order-controls{
    padding:0 17px
  }
  .card-footer{
    flex-direction:column;
    gap:4px
  }
  .health-strip{
    font-size:9px;
    gap:5px
  }
  .health-primary strong{
    font-size:9px
  }
  .history-grid{
    margin-top:15px
  }
  .page-footer{
    font-size:9px
  }
  .endpoint-strip{
    font-size:9px;
    gap:9px
  }
  .endpoint-strip>div{
    gap:10px
  }
  .dialog-actions{
    flex-direction:column-reverse
  }
  .dialog-actions .button{
    width:100%
  }
  dialog{
    padding:21px
  }
  .dialog-field{
    font-size:11px
  }
}
@media(prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto
  }
}
/* Secondary copy stays readable on white and pale surfaces. */
.card-header p,.metric-note,.detail-label,.quantity-label,.ownership,.subtext,.card-footnote,.card-footer,.quiet-caption,.timeline-detail,.timeline-item time,.endpoint-strip,.page-footer,.position-instrument{
  color:#6f7d90
}
th,.account-toolbar label,.toolbar-date,.health-strip,.metric-top,.attention-text,.attention-stat span,.attention-note{
  color:#6c7c91
}
.dialog-description,.dialog-field,.dialog-notice{
  color:#6c7c91
}
body[data-health="stale"] .metric-value,body[data-health="stale"] .quantity-value{
  color:#79869a
}
[hidden]{display:none!important}
.auth-panel{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.auth-panel>span{flex:1;min-width:160px;color:#53647a}
#older-history{margin:12px 18px}
body[data-health="uncertain"] .metric-value{color:#79869a}
