/* Imported reports keep the established white/navy/pink/cyan visual system. */
#mt5-results.mt5-imported{background:#f6fafe;container-type:inline-size;container-name:mt5}
#mt5-results.mt5-imported .mt5-intro{padding:21px 12px 14px;background:radial-gradient(ellipse at 100% 0,#dbfaff,transparent 48%),linear-gradient(135deg,#fff 55%,#fff0f6)}
#mt5-results.mt5-imported .mt5-intro h2{font-size:clamp(24px,6cqi,36px);white-space:normal;letter-spacing:-.045em}
#mt5-results.mt5-imported .mt5-intro .mt5-eyebrow{font-size:max(11px,var(--mt5-font-floor, 0px));font-weight:800;margin-bottom:6px;color:#426580}
#mt5-results.mt5-imported .mt5-status{margin-top:11px}
#mt5-results.mt5-imported .mt5-status span:first-child{min-width:0;font-size:clamp(12px,3.1cqi,19px);padding:5px 18px;background:linear-gradient(110deg,#ff5193,#e8206e)}
#mt5-results.mt5-imported .mt5-imported-warning{font-size:max(11px,var(--mt5-font-floor, 0px))!important;color:#98335b!important;font-weight:750!important;margin-top:8px!important;line-height:1.7}
#mt5-results .mt5-imported-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:0 10px;padding:10px;background:#eaf3fa;border:1px solid #d2e3ef;border-radius:10px}
#mt5-results .mt5-imported-context>div:first-child{grid-column:1/-1}
#mt5-results .mt5-imported-context small{display:block;font-size:max(9px,var(--mt5-font-floor, 0px));font-weight:700;color:#5d748a;line-height:1.6}
#mt5-results .mt5-imported-context strong{display:block;font-size:13px;line-height:1.7;word-break:normal;overflow-wrap:anywhere;color:#164768;font-variant-numeric:tabular-nums}
#mt5-results .mt5-imported-context strong>span{display:block;color:#6b8193;font-size:max(9px,var(--mt5-font-floor, 0px));font-weight:600}
#mt5-results.mt5-imported .mt5-fx{font-size:max(9px,var(--mt5-font-floor, 0px));line-height:1.7;padding:9px 11px;background:none}
#mt5-results.mt5-imported .mt5-overview-summary{padding:0 10px}
#mt5-results.mt5-imported .mt5-page-heading{padding-top:10px}
#mt5-results.mt5-imported .mt5-page-heading h3{font-size:17px}
#mt5-results.mt5-imported .mt5-page-heading>span{font-size:max(8px,var(--mt5-font-floor, 0px));letter-spacing:.035em}
#mt5-results .mt5-imported-provenance{display:flex;align-items:center;gap:9px;padding:11px;margin:5px 0 12px;border-radius:9px;background:linear-gradient(120deg,#e9f9ff,#f7f6fb);border:1px solid #b4dbe9}
#mt5-results .mt5-imported-provenance>span{flex-shrink:0;background:#0782a8;color:#fff;border-radius:20px;padding:3px 9px;font-size:max(9px,var(--mt5-font-floor, 0px));font-weight:850}
#mt5-results .mt5-imported-provenance p{font-size:max(10px,var(--mt5-font-floor, 0px));line-height:1.8;color:#466a84}
#mt5-results .mt5-imported-provenance strong{color:#0c466d}
#mt5-results.mt5-imported .mt5-controls label{font-size:max(10px,var(--mt5-font-floor, 0px))}
#mt5-results .mt5-imported-chart-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#mt5-results .mt5-imported-chart-controls>label{min-width:0}
#mt5-results .mt5-imported-chart-controls>label:nth-child(2){grid-column:1/-1;grid-row:1}
#mt5-results .mt5-imported-chart-controls>label:last-child{grid-column:1/-1}
#mt5-results .mt5-imported-chart-controls select,#mt5-results .mt5-imported-chart-controls input{min-width:0;padding:8px 7px;font-size:max(11px,var(--mt5-font-floor, 0px))}
#mt5-results.mt5-imported .mt5-price-chart svg{min-width:700px;max-width:none}
#mt5-results.mt5-imported .mt5-price-chart{scrollbar-width:thin}
#mt5-results .mt5-imported-marker{cursor:pointer;outline:none}
#mt5-results .mt5-imported-marker:focus-visible>circle:first-of-type{fill:#7ce8f655;stroke:#082e50;stroke-width:3}
#mt5-results.mt5-imported .mt5-chart svg text{font-size:max(11px,var(--mt5-font-floor, 0px))}
#mt5-results.mt5-imported .mt5-legend{font-size:max(9px,var(--mt5-font-floor, 0px));gap:5px 10px}
#mt5-results.mt5-imported .mt5-pagination{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin:10px 0}
#mt5-results.mt5-imported .mt5-pagination button{font-size:max(10px,var(--mt5-font-floor, 0px));min-width:44px;min-height:38px;padding:7px 9px}
#mt5-results.mt5-imported .mt5-pagination>span{font-size:max(10px,var(--mt5-font-floor, 0px));font-weight:700;color:#506c82;text-align:center}
#mt5-results .mt5-imported-deal-detail{padding:7px 10px;margin-top:10px;border:1px solid #c5e0ee;border-radius:8px;background:linear-gradient(120deg,#f5fbff,#fffafd)}
#mt5-results .mt5-imported-deal-detail .mt5-fields{margin:0}
#mt5-results.mt5-imported .mt5-fields dd{word-break:normal;overflow-wrap:anywhere}
#mt5-results.mt5-imported .mt5-fields>div{gap:8px}
#mt5-results.mt5-imported .mt5-calendar{grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;width:100%;gap:3px}
#mt5-results.mt5-imported .mt5-calendar button{min-width:0;min-height:74px;padding:5px 0;gap:4px}
#mt5-results.mt5-imported .mt5-calendar button b{font-size:14px;line-height:1.4}
#mt5-results.mt5-imported .mt5-calendar button small{font-size:max(9px,var(--mt5-font-floor, 0px));line-height:1.7;white-space:nowrap;letter-spacing:-.055em}
#mt5-results.mt5-imported .mt5-calendar button em{font-size:max(8px,var(--mt5-font-floor, 0px));line-height:1.3}
#mt5-results.mt5-imported .mt5-calendar .mt5-imported-outside{background:#f1f4f7;color:#8c9aa7;border-color:#dde5ec}
#mt5-results.mt5-imported .mt5-calendar .mt5-imported-outside small{font-size:max(8px,var(--mt5-font-floor, 0px));letter-spacing:-.04em}
#mt5-results.mt5-imported .mt5-calendar button.mt5-selected{border-color:#087ee9;outline:1px solid #087ee944;background:#e9f7ff}
#mt5-results .mt5-imported-filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px;border:1px solid #d1e1ec;border-radius:9px;background:#edf6fb}
#mt5-results .mt5-imported-filter-controls>label{min-width:0}
#mt5-results .mt5-imported-filter-controls>label:first-child{grid-column:1/-1}
#mt5-results .mt5-imported-filter-controls>button{min-width:0;align-self:end;font-size:max(10px,var(--mt5-font-floor, 0px));padding:8px}
#mt5-results .mt5-imported-page-jump{display:flex;justify-content:center;margin:4px 0 9px}
#mt5-results .mt5-imported-page-jump label{flex-direction:row;align-items:center;gap:8px;font-size:max(10px,var(--mt5-font-floor, 0px));font-weight:500}
#mt5-results .mt5-imported-page-jump input{width:74px;min-height:35px;padding:6px 9px}
#mt5-results.mt5-imported .mt5-table-scroll{max-height:580px}
#mt5-results.mt5-imported .mt5-table-scroll td,#mt5-results.mt5-imported .mt5-table-scroll th{font-size:max(11px,var(--mt5-font-floor, 0px))}
#mt5-results.mt5-imported .mt5-table-scroll td:last-child{max-width:320px;white-space:normal;overflow-wrap:anywhere}
#mt5-results .mt5-imported-footer{padding:13px 12px 16px;border-top:1px solid #dae7f0;background:#fff}
#mt5-results .mt5-imported-footer a{display:block;margin-top:10px;font-size:max(11px,var(--mt5-font-floor, 0px));text-align:center;padding:7px;border:1px solid #bed4e3;border-radius:7px;background:#f6fbff;text-decoration:none;font-weight:700;min-height:38px}
#mt5-results .mt5-imported-sample-link{display:inline-block;font-weight:700;font-size:12px;padding:8px 0}
#mt5-results .mt5-dataset-switch{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:9px 12px;background:#fff7df;border-bottom:1px solid #e7dba8;font-size:max(10px,var(--mt5-font-floor, 0px))}
#mt5-results .mt5-dataset-switch span{font-weight:800;color:#806315}
#mt5-results .mt5-dataset-switch a{font-weight:800;color:#0a669a;padding:4px 0}
#mt5-results .mt5-imported-load-error{margin:15px;padding:18px;border:1px solid #e1aac0;border-radius:10px;background:#fff1f6;color:#933552;font-size:14px;line-height:1.8}
@container mt5 (min-width:640px){
 #mt5-results.mt5-imported .mt5-intro{padding:25px 20px 16px}
 #mt5-results.mt5-imported .mt5-imported-warning{font-size:12px!important}
 #mt5-results .mt5-imported-context{margin:0 20px;grid-template-columns:1.6fr 1.2fr 1fr;padding:13px 17px}
 #mt5-results .mt5-imported-context>div:first-child{grid-column:auto}
 #mt5-results .mt5-imported-context small{font-size:max(10px,var(--mt5-font-floor, 0px))}
 #mt5-results .mt5-imported-context strong{font-size:15px}
 #mt5-results .mt5-imported-context strong>span{display:inline;margin-left:6px;font-size:max(9px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-imported .mt5-overview-summary{padding:0 20px}
 #mt5-results .mt5-imported-provenance p{font-size:12px}
 #mt5-results .mt5-imported-chart-controls{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
 #mt5-results .mt5-imported-chart-controls>label:nth-child(2){grid-column:span 2;grid-row:auto}
 #mt5-results .mt5-imported-chart-controls>label:last-child{grid-column:auto}
 #mt5-results .mt5-imported-chart-controls select,#mt5-results .mt5-imported-chart-controls input{font-size:12px}
 #mt5-results.mt5-imported .mt5-controls label{font-size:max(11px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-imported .mt5-calendar button{min-height:100px;padding:10px 2px;gap:7px}
 #mt5-results.mt5-imported .mt5-calendar button b{font-size:18px}
 #mt5-results.mt5-imported .mt5-calendar button small{font-size:12px;letter-spacing:-.02em}
 #mt5-results.mt5-imported .mt5-calendar button em,#mt5-results.mt5-imported .mt5-calendar .mt5-imported-outside small{font-size:max(10px,var(--mt5-font-floor, 0px))}
 #mt5-results .mt5-imported-filter-controls{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 #mt5-results .mt5-imported-filter-controls>label:first-child{grid-column:span 2}
 #mt5-results .mt5-imported-deal-detail{padding:10px 15px}
 #mt5-results .mt5-imported-footer{padding:15px 24px 20px}
}
@media(max-width:360px){
 #mt5-results .mt5-imported-context{margin-left:6px;margin-right:6px;padding:8px}
 #mt5-results .mt5-imported-context strong{font-size:12px}
 #mt5-results.mt5-imported .mt5-calendar{gap:2px}
 #mt5-results.mt5-imported .mt5-calendar button small{font-size:max(8px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-imported .mt5-calendar button em{font-size:max(7px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-imported .mt5-page-heading h3{font-size:15px}
 #mt5-results.mt5-imported .mt5-page-heading>span{font-size:max(7px,var(--mt5-font-floor, 0px))}
}
@media(prefers-reduced-motion:reduce){
 #mt5-results.mt5-imported *,#mt5-results.mt5-imported *::before,#mt5-results.mt5-imported *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 #mt5-results.mt5-imported .mt5-line{stroke-dasharray:none!important;stroke-dashoffset:0!important}
 #mt5-results.mt5-imported .mt5-candle,#mt5-results.mt5-imported .mt5-trade-marker{opacity:1!important}
}
#mt5-results .mt5-imported-exact-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;padding:9px 11px;border:1px solid #a8d1e5;border-radius:8px;background:#e8f7ff;font-size:max(11px,var(--mt5-font-floor, 0px));font-weight:750;color:#1c5b80}
#mt5-results .mt5-imported-exact-filter button{font-size:max(10px,var(--mt5-font-floor, 0px));min-height:34px;padding:6px 9px}

/* Report directory: all views remain visible. Selection, rather than category,
   carries the brand accent. No overflow menu or duplicated page picker. */
#mt5-results .mt5-imported-report-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 10px 16px}
#mt5-results .mt5-imported-report-nav button{position:relative;min-width:0;min-height:87px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 4px;border:1px solid #b4c9d8;border-radius:7px;background:#fff;color:#183d5a;text-align:center;box-shadow:none}
#mt5-results .mt5-imported-report-nav .mt5-report-nav-icon{display:block;flex-shrink:0;width:27px;height:27px;color:#067caf}
#mt5-results .mt5-report-nav-icon svg{display:block;width:100%;height:100%;max-width:none}
#mt5-results .mt5-imported-report-nav button>b{font-size:max(11px,var(--mt5-font-floor, 0px));font-weight:750;line-height:1.45;overflow-wrap:anywhere;word-break:normal}
#mt5-results .mt5-imported-report-nav button:hover{background:#eef7fb;border-color:#147ea2}
#mt5-results .mt5-imported-report-nav button[aria-current=page]{background:#103d5d;border-color:#103d5d;color:#fff;box-shadow:inset 0 -3px #ef397c}
#mt5-results .mt5-imported-report-nav button[aria-current=page] .mt5-report-nav-icon{color:#71e9ef}
#mt5-results .mt5-imported-report-nav button:focus-visible{outline:3px solid #067caf;outline-offset:2px;z-index:1}
@container mt5 (min-width:540px){
 #mt5-results .mt5-imported-report-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:9px 20px 18px}
 #mt5-results .mt5-imported-report-nav button{min-height:93px;padding:12px 8px}
 #mt5-results .mt5-imported-report-nav button>b{font-size:12px}
 #mt5-results .mt5-imported-report-nav .mt5-report-nav-icon{width:29px;height:29px}
}
@container mt5 (min-width:1000px){
 #mt5-results .mt5-imported-report-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
 #mt5-results .mt5-imported-report-nav button{flex-direction:row;gap:11px;min-height:70px}
}

/* One ruled reporting surface for every KPI collection, real and sample.
   The large summary is a strip; detail collections read as a financial ledger.
   Color describes positive/negative values, never arbitrary card decoration. */
#mt5-results.mt5-report .mt5-kpis{--ledger-rule:#d1dce3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:6px 0 14px;background:#fffefa;border:1px solid var(--ledger-rule);border-top:2px solid #153d59;border-bottom:2px solid #153d59;border-radius:0;box-shadow:none;overflow:hidden}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi{container-type:inline-size;position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;min-width:0;margin:0;padding:13px 11px 14px;background:transparent;border:0;border-radius:0;box-shadow:1px 0 var(--ledger-rule),0 1px var(--ledger-rule);overflow:visible}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi::before,#mt5-results.mt5-report .mt5-kpis>.mt5-kpi::after{display:none}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi>span:not(.mt5-kpi-icon){display:block;grid-column:auto;min-width:0;color:#536978;font-size:max(11px,var(--mt5-font-floor, 0px));font-weight:650;line-height:1.55;align-self:stretch;overflow-wrap:anywhere}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi>strong{display:block;grid-column:auto;align-self:stretch;justify-self:auto;min-width:0;max-width:100%;margin:0;margin-top:auto;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;font-size:clamp(14px,11.5cqi,30px);font-weight:780;line-height:1.25;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.045em;white-space:normal;overflow-wrap:anywhere;text-align:left;color:#15334b}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi>strong>small{font-size:max(.55em,var(--mt5-font-floor, 0px));letter-spacing:0;font-weight:650;white-space:nowrap}
#mt5-results.mt5-report .mt5-kpis>.mt5-kpi .mt5-kpi-caption{display:block;grid-column:auto;align-self:stretch;margin:0;font-size:max(10px,var(--mt5-font-floor, 0px));line-height:1.6;font-weight:450;letter-spacing:0;text-align:left;color:#657784;overflow-wrap:anywhere}
#mt5-results.mt5-report .mt5-overview-summary .mt5-kpis{background:#fdfcf7;border-top:3px solid #153d59;margin-top:8px;margin-bottom:12px}
#mt5-results.mt5-report .mt5-overview-summary .mt5-kpis>.mt5-kpi{padding-top:15px;padding-bottom:15px;gap:9px}
/* Preserve the sample summary's existing symbols as simple ink marks. */
#mt5-results.mt5-report .mt5-reference-kpis>.mt5-kpi>.mt5-kpi-icon{position:static;display:flex;align-items:center;justify-content:flex-start;width:23px;height:23px;margin:0;background:none;color:#406b83;border:0;border-radius:0;box-shadow:none}
#mt5-results.mt5-report .mt5-reference-kpis>.mt5-kpi>.mt5-kpi-icon svg{width:23px;height:23px}
@container mt5 (min-width:640px){
 #mt5-results.mt5-report .mt5-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi{padding:17px 15px 18px;gap:11px}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi>span:not(.mt5-kpi-icon){font-size:12px}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi .mt5-kpi-caption{font-size:max(11px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-report .mt5-overview-summary .mt5-kpis>.mt5-kpi{padding:20px 17px}
}
@container mt5 (max-width:340px){
 #mt5-results .mt5-imported-report-nav{padding-left:6px;padding-right:6px;gap:5px}
 #mt5-results .mt5-imported-report-nav button{min-height:84px;gap:7px;padding:9px 3px}
 #mt5-results .mt5-imported-report-nav button>b{font-size:max(10px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi{padding:12px 8px;gap:7px}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi>span:not(.mt5-kpi-icon){font-size:max(10px,var(--mt5-font-floor, 0px))}
 #mt5-results.mt5-report .mt5-kpis>.mt5-kpi .mt5-kpi-caption{font-size:max(9px,var(--mt5-font-floor, 0px))}
}
