[hidden]{display:none!important}.login{max-width:620px;margin:40px auto;padding:28px}.login p{margin:18px 0}.telegram-link{display:inline-block;text-decoration:none;padding:12px 18px;border-radius:8px}.topbar{height:auto;min-height:68px;padding:calc(16px + var(--safe-top,0px)) 24px 16px}.topbar .brand{color:white}.topbar .local-label{color:#c3d4df}.d-fields{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}body{padding-bottom:calc(16px + var(--safe-bottom,0px))}#derivatives{max-width:1250px}#derivatives .page-heading .tag{display:none}.result-tabs{position:sticky;top:0;background:#fff;z-index:3}.d-leg input,.d-fields input,.d-fields select{font-size:16px}.d-scroll{overscroll-behavior:contain}#da-chart svg{min-width:520px}@media(max-width:600px){.login{margin:20px 12px}.topbar .local-label{display:none}.brand{gap:10px}#derivatives{padding:12px}.d-fields{grid-template-columns:1fr 1fr;gap:12px}.d-fields>*,.scenario-toolbar>*{min-width:0}.d-leg{padding:14px}#derivatives .panel{padding:16px}.page-heading h1{font-size:25px}.result-tabs button{flex:1}.scenario-toolbar{grid-template-columns:1fr}.summary-cards{grid-template-columns:1fr}.d-leg .section-heading{gap:8px}}@media(max-width:380px){.d-fields{grid-template-columns:1fr}}

.topbar .brand>span:last-child{display:inline;color:#c1d3e1}

.topbar{background:#10263e;color:#fff}.topbar .brand strong{color:#fff}
/* Telegram layout: no fixed-width content can widen the document. */
#derivatives,#derivatives section,#derivatives article,#derivatives details,#derivatives .result-pane,#derivatives .derivative-workspace{min-width:0;max-width:100%}
#derivatives .d-scroll,#derivatives .table-scroll{min-width:0;max-width:100%;width:100%;-webkit-overflow-scrolling:touch}
#derivatives #da-chart{width:100%;min-width:0;max-width:100%;overflow:hidden}
#derivatives #da-chart svg{display:block;width:100%;min-width:0;max-width:100%;height:auto;touch-action:pan-y}
#derivatives input,#derivatives select,#derivatives button{max-width:100%}
#derivatives input,#derivatives select{min-width:0;box-sizing:border-box}
#derivatives input[type=date]{display:block;-webkit-appearance:none;appearance:none;min-height:44px}
#derivatives input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
#derivatives .scenario-toolbar label{min-width:0}
.mobile-scroll-note{display:none}
@media(max-width:640px){
 .topbar{padding-left:14px;padding-right:14px;gap:8px}.topbar .brand{white-space:normal;font-size:13px}.topbar .brand strong{font-size:15px}
 #derivatives{padding:16px 10px}#derivatives .panel{padding:14px;margin-bottom:16px}
 #derivatives .page-heading{display:block}#derivatives .subtitle{font-size:13px}
 #derivatives .d-fields,#derivatives .risk-budget-strip .d-fields{grid-template-columns:minmax(0,1fr);gap:14px}
 #derivatives .d-fields label{font-size:13px}#derivatives input,#derivatives select{font-size:16px;min-height:46px}
 #derivatives input[type=checkbox]{min-height:20px;flex:0 0 20px;width:20px}
 #derivatives button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 #derivatives .section-heading{flex-wrap:wrap;align-items:flex-start;gap:10px}
 #derivatives .section-heading h3,#derivatives .small-note,#derivatives summary{overflow-wrap:anywhere}
 #derivatives .d-leg{padding:12px}#derivatives .scenario-toolbar{display:grid;grid-template-columns:minmax(0,1fr);padding:12px}
 #derivatives .result-tabs{top:var(--safe-top,0px);width:100%;gap:0}#derivatives .result-tabs button{padding:11px 8px;flex:1;white-space:normal}
 #derivatives .summary-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 #derivatives .summary-cards article{min-width:0}#derivatives .summary-cards strong{font-size:24px;overflow-wrap:anywhere}
 #derivatives .d-chart-legend{gap:6px 12px}#derivatives .d-chart-legend label{min-height:44px}
 #derivatives .d-chart-legend input{margin:0}#derivatives #da-chart text{font-size:11px}
 #derivatives .mobile-record-scroll{max-height:none;overflow:visible;border:0}
 #derivatives table.mobile-records{display:block;white-space:normal;width:100%;min-width:0;border:0}
 #derivatives .mobile-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #derivatives .mobile-records tbody{display:block;width:100%}
 #derivatives .mobile-records tr{display:block;border:1px solid var(--line);border-radius:8px;margin:12px 0;background:#fff;overflow:hidden}
 #derivatives .mobile-records td,#derivatives .mobile-records tbody th{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:6px 12px;text-align:right;white-space:normal;min-width:0;max-width:none;padding:10px 12px;font-size:13px;border:0;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere;position:static}
 #derivatives .mobile-records td:before,#derivatives .mobile-records tbody th:before{content:attr(data-label);color:var(--muted);font-size:12px;font-weight:500;text-align:left;grid-column:1;grid-row:1}
 #derivatives .mobile-records td br{display:none}
 #derivatives .mobile-records td small{grid-column:2;text-align:right}
 #derivatives .mobile-records td:first-child,#derivatives .mobile-records tbody th:first-child{background:#f2f6fa;font-weight:650}
 #derivatives .mobile-records td:last-child{border-bottom:0}
 #derivatives .d-scroll:not(.mobile-record-scroll){border-radius:6px}
 #derivatives .heatmap{min-width:520px;font-size:12px}#derivatives .heatmap th,#derivatives .heatmap td{padding:9px}
 #derivatives .heatmap th:first-child{position:sticky;left:0;z-index:1;background:#f2f6fa}
 .mobile-scroll-note{display:block;margin:10px 0 4px;font-size:12px}
}
