/* Final37: account-detail emphasis and readable, compact Analytics components. */
#tsapp #ts10Account-overview .ts37-account-summary>div{background:#edf4ff;border:1px solid #d8e5f8;border-radius:8px;color:#111e3a;min-width:0;display:flex;flex-direction:column;gap:6px}
#tsapp #ts10Account-overview .ts37-account-summary .hub-hint{color:#334b6b}
#tsapp #ts10Account-overview .ts37-account-summary strong{color:#111e3a;font-size:25px;line-height:1.2;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#tsapp #ts10Account-overview .ts37-account-summary small{color:#425873;font-size:11px;line-height:1.5}
#tsapp .ts37-account-trades-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
#tsapp .ts37-account-trades-head h3{margin:0;flex:1}
#tsapp #ts10Account-trades input[type=checkbox]{width:18px;height:18px;accent-color:#1769f3;margin:5px}
#tsapp #ts10Account-trades td,#tsapp #ts10Account-trades th{vertical-align:middle}
#tsapp #ts10Account-trades td:nth-last-child(2){min-width:145px;max-width:240px;overflow-wrap:anywhere}
#tsapp #ts10Account-payouts .tslistitem small{display:block;color:#53647b;font-size:11px;margin-top:4px}
@media(max-width:600px){#tsapp #ts37AccountDetails .ts10-account-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}#tsapp #ts37AccountDetails .ts10-account-tabs button{min-width:0;width:100%}#tsapp #ts37AccountDetails .ts37-account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Analytics repair: short summaries, independent lists and a bounded detail workspace. */
#tsapp .ts38-analytics{--ts38-line:#e5ecf6;--ts38-muted:#63748e;--ts38-blue:#1769f3;max-width:1500px;margin:0 auto}
#tsapp .ts38-analytics .ts-audit-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}
#tsapp .ts38-analytics .ts-audit-title{font-size:28px;line-height:1.2;margin:0}
#tsapp .ts38-analytics .ts-audit-header p{font-size:12px;margin:5px 0 0}
#tsapp .ts38-scope-count{font-size:11px;color:var(--ts38-muted);white-space:nowrap}
#tsapp .ts38-analytics .tspanel{min-height:0;height:auto;padding:16px;border:1px solid var(--ts38-line);border-radius:10px;box-shadow:0 2px 6px #18345d03;margin:0}
#tsapp .ts38-analytics .ts37-analytics-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px;min-width:0}
#tsapp .ts38-analytics .ts37-analytics-filters>.ts-final-filters{margin:0;flex:0 1 auto;min-width:0}
#tsapp .ts38-analytics .ts37-analysis-extras{display:flex;align-items:flex-end;gap:10px;flex:1 1 310px;min-width:0}
#tsapp .ts38-analytics .ts37-analysis-extras>.ts5-filter{flex:1 1 140px;min-width:120px;margin:0}
#tsapp .ts38-analytics .ts5-filter>span:first-child{font-size:11px;line-height:1.4;white-space:normal}
#tsapp .ts38-analytics .ts16-picker-caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;line-height:1.3}
#tsapp .ts38-analytics .ts16-picker-button{height:39px;min-height:39px;align-items:center}
#tsapp .ts38-analytics .ts16-picker-chevron{flex-shrink:0}
#tsapp .ts38-analytics .ts38-selection-detail{display:none;max-width:100%;overflow-wrap:anywhere;font-size:11px;line-height:1.5;color:#445a78;font-weight:400;margin-top:5px}
#tsapp .ts38-analytics .ts5-filter:focus-within>.ts38-selection-detail{display:block}
#tsapp .ts38-analytics .ts37-analysis-extras>.ts5-filter>.ts38-selection-detail{position:absolute;z-index:65;background:#fff;padding:8px;border:1px solid #dce5f4;border-radius:6px;max-width:330px;box-shadow:0 5px 18px #1731541a}
#tsapp .ts38-analytics .ts37-more{min-width:0;z-index:30}
#tsapp .ts38-analytics .ts37-more>summary{min-height:39px;box-sizing:border-box;display:flex;align-items:center;gap:7px;white-space:nowrap}
#tsapp .ts38-analytics .ts37-more>summary b{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 3px;border-radius:5px;background:#dceaff;color:#1769f3;font-size:10px}
#tsapp .ts38-analytics .ts37-more .ts5-more-body{position:fixed;right:auto;bottom:auto;width:min(360px,calc(100vw - 24px));min-width:0;box-sizing:border-box;gap:14px;padding:16px;overflow:auto;overscroll-behavior:contain;z-index:100;max-height:calc(100dvh - 96px);border-radius:10px}
#tsapp .ts38-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e5ecf6;font-size:13px}
#tsapp .ts38-analytics .ts37-more .ts5-filter{display:grid;gap:6px;width:100%;font-size:12px;line-height:1.45;margin:0}
#tsapp .ts38-analytics .ts37-more .tsmuted{font-size:11px;line-height:1.5;margin:0}
#tsapp .ts38-analytics .ts37-more .ts38-selection-detail{margin:0}
#tsapp .ts38-reset{height:39px;min-width:42px;border:0;padding:0 3px;background:transparent;font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;color:#546985;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#tsapp .ts38-analytics .ts37-analytics-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}
#tsapp .ts38-analytics .ts37-analytics-kpis .ts-audit-metric{display:flex;flex-direction:column;justify-content:flex-start;gap:9px;min-height:108px;height:auto;padding:14px;border:1px solid var(--ts38-line);border-radius:9px;box-shadow:none;background:#fff;min-width:0}
#tsapp .ts38-analytics .ts-audit-metric-head{font-size:11px;line-height:1.4;min-height:29px;font-weight:600;color:#445773}
#tsapp .ts38-analytics .ts-audit-metric-value{font-size:25px;line-height:1.1;font-weight:700;letter-spacing:-.6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:#111e3a}
#tsapp .ts38-analytics .ts-audit-metric-context{font-size:10px;line-height:1.35;margin-top:auto;color:#63748e;min-height:0}
#tsapp .ts38-analytics .ts37-result-curve{padding:14px 16px;margin:0 0 14px}
#tsapp .ts38-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0;margin:0 0 10px}
#tsapp .ts38-analytics .ts38-card-heading h2{font-size:14px;line-height:1.35;font-weight:700;margin:0;min-width:0}
#tsapp .ts38-card-heading>span{font-size:10px;line-height:1.4;color:#63748e;flex-shrink:0}
#tsapp .ts38-analytics .ts37-usd-curve{display:block;width:100%;height:150px;max-height:150px}
#tsapp .ts38-analytics .ts37-usd-curve text{font:11px system-ui,sans-serif;fill:#63748e}
#tsapp .ts38-analytics .ts37-usd-curve circle:focus{outline:2px solid #1769f3;outline-offset:3px}
#tsapp .ts38-analytics .ts37-insight-pair{display:grid;grid-template-columns:1.1fr 1fr;gap:14px;align-items:start;margin:0 0 14px}
#tsapp .ts38-analytics .ts37-insight-pair>section{align-self:start;min-width:0}
#tsapp .ts38-plan-table{display:grid;font-size:11px;line-height:1.4}
#tsapp .ts38-plan-table>[role=row]{display:grid;grid-template-columns:minmax(0,1fr) 40px 56px;gap:8px;align-items:center;padding:0 10px}
#tsapp .ts38-plan-columns{min-height:29px;background:#eaf2ff;color:#111e3a;font-weight:700;border-bottom:1px solid #d7e5fa;border-radius:4px 4px 0 0}
#tsapp .ts38-plan-row{min-height:32px;border-bottom:1px solid #edf1f7}
#tsapp .ts38-plan-table [role=cell]:nth-child(n+2),#tsapp .ts38-plan-table [role=columnheader]:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
#tsapp .ts38-plan-row button{display:flex;align-items:center;gap:8px;border:0;padding:6px 0;background:transparent;color:#233959;font:inherit;text-align:left;cursor:pointer;min-height:32px}
#tsapp .ts38-plan-row button:disabled{cursor:default;color:#718096}
#tsapp .ts38-status-dot{display:block;width:6px;height:6px;border-radius:50%;flex:0 0 6px;background:#9aa8bb}
#tsapp .ts38-status-dot[data-plan-state=passed]{background:#267b76}
#tsapp .ts38-status-dot[data-plan-state=violated]{background:#c56c77}
#tsapp .ts38-status-dot[data-plan-state=incomplete]{background:#b89248}
#tsapp .ts38-plan-footer{font-size:10px;line-height:1.55;color:#63748e;margin:9px 0 0}
#tsapp .ts38-plan-footer span{display:block}
#tsapp .ts38-rating-main{display:flex;align-items:center;gap:18px;min-height:46px;margin-bottom:12px}
#tsapp .ts38-analytics .ts37-rating-value{font-size:34px;line-height:1.05;white-space:nowrap;color:#111e3a;letter-spacing:-1px}
#tsapp .ts38-analytics .ts37-rating-value small{font-size:13px;font-weight:500;color:#63748e;letter-spacing:0}
#tsapp .ts38-rating-main p{font-size:11px;line-height:1.5;color:#536b8d;margin:0;max-width:230px}
#tsapp .ts38-analytics .ts5-rating-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0 0 10px}
#tsapp .ts38-analytics .ts5-rating-grid>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0;background:transparent;border:0;min-width:0}
#tsapp .ts38-analytics .ts5-rating-grid span{font-size:10px;line-height:1.4;color:#445b7c}
#tsapp .ts38-analytics .ts5-rating-grid small{font-size:9px;color:#78879d;white-space:nowrap}
#tsapp .ts38-analytics .ts5-rating-grid strong{font-size:12px;color:#152a4a;font-variant-numeric:tabular-nums}
#tsapp .ts38-rating-empty{padding:12px;background:#f3f7fe;border-radius:6px;color:#536b8d;font-size:11px;line-height:1.5;margin-bottom:10px}
#tsapp .ts38-analytics .ts-ra-methodology{padding:0;margin:9px 0 0;border:0;box-shadow:none}
#tsapp .ts38-analytics .ts-ra-methodology summary{font-size:10px;color:#526d93;cursor:pointer;line-height:1.5}
#tsapp .ts38-analytics .ts-ra-methodology p{font-size:10px;line-height:1.65;color:#63748e;margin:8px 0 0}
#tsapp .ts38-analytics .ts-ra-contributions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;margin:0 0 14px}
#tsapp .ts38-analytics .ts-ra-breakdown{height:auto;align-self:start;min-width:0;overflow:hidden}
#tsapp .ts38-contribution .ts38-card-heading>span{padding:2px 6px;border-radius:4px;background:#f0f5fd;color:#52729a;font-variant-numeric:tabular-nums}
#tsapp .ts38-contribution-labels{display:flex;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-bottom:1px solid #e4ecf7;font-size:9px;color:#6c7d96;line-height:1.4}
#tsapp .ts38-contribution-rows{display:grid}
#tsapp .ts38-contribution-row{display:grid;grid-template-columns:minmax(0,1fr) auto 10px;align-items:center;gap:7px;min-height:48px;width:100%;padding:7px 0;border:0;border-bottom:1px solid #edf1f7;background:transparent;text-align:left;color:#203655;cursor:pointer;font:inherit}
#tsapp .ts38-contribution-row:last-child{border-bottom:0}
#tsapp .ts38-contribution-row:hover{background:#f7faff}
#tsapp .ts38-contribution-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.4}
#tsapp .ts38-contribution-row small{display:block;font-size:9px;font-weight:400;line-height:1.4;color:#7687a0;margin-top:2px}
#tsapp .ts38-contribution-amount{font-size:13px;font-weight:650;line-height:1.4;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#tsapp .ts38-contribution-amount small{font-size:9px;max-width:95px;white-space:normal}
#tsapp .ts38-row-arrow{color:#7f9bc3;font-size:11px}
#tsapp .ts38-show-all{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:36px;margin:7px 0 0;padding:5px 0 0;border:0;background:transparent;color:#1769f3;font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer;text-align:left}
#tsapp .ts38-small-empty{font-size:11px;line-height:1.6;color:#63748e;margin:8px 0 0}
#tsapp .ts38-additional{margin:0 0 12px!important}
#tsapp .ts38-direction-strip{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
#tsapp .ts38-direction-strip>button{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1 1 180px;min-height:36px;padding:7px 0;border:0;background:transparent;color:#233959;font-size:11px;text-align:left;cursor:pointer}
#tsapp .ts38-direction-strip small{font-size:10px;color:#7687a0;margin-left:6px}
#tsapp .ts38-direction-strip strong{font-size:12px;font-variant-numeric:tabular-nums}
#tsapp .ts38-direction-strip>details{flex:1 1 180px;font-size:11px;color:#536b8d}
#tsapp .ts38-direction-strip details p{font-size:10px;line-height:1.6}
#tsapp .ts38-valuation-details{font-size:10px;color:#6d7f98;margin:12px 0 0}
#tsapp .ts38-valuation-details p{font-size:10px;line-height:1.6}
#tsapp .ts38-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:190px;padding:24px 20px;text-align:center;margin:0 0 14px;border:1px dashed #d4e1f4;border-radius:10px}
#tsapp .ts38-empty h2{font-size:18px;margin:12px 0 5px;color:#1b3154}
#tsapp .ts38-empty p{font-size:12px;line-height:1.5;color:#63748e;max-width:400px;margin:0 0 15px}
#tsapp .ts38-empty-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;background:#e9f2ff;color:#1769f3}
#tsapp .ts38-empty-icon svg{width:18px;height:18px}
#tsapp .ts38-account-coverage{display:block;max-width:250px;white-space:normal;line-height:1.5}
#tsapp .ts38-account-coverage.is-partial{color:#966419;font-weight:600}
#tsapp .ts38-analytics :is(button,summary):focus-visible,#tsapp .ts38-analytics-dialog :is(button,summary):focus-visible{outline:2px solid #1769f3;outline-offset:3px;border-radius:4px}
#tsapp #tsHubModal .ts38-analytics-dialog{box-sizing:border-box;display:flex;flex-direction:column;position:fixed;inset:0;margin:auto;width:min(1050px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;background:#fff;border:1px solid #d9e4f2;border-radius:12px;box-shadow:0 24px 90px #152c5140;overflow:hidden;color:#17304f}
#tsapp #tsHubModal .ts38-analytics-dialog::backdrop{background:#162d4d55;backdrop-filter:blur(2px)}
#tsapp .ts38-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 14px;border-bottom:1px solid #e4ecf6;flex-shrink:0}
#tsapp .ts38-eyebrow{font-size:9px;letter-spacing:1px;font-weight:700;color:#7185a2}
#tsapp .ts38-detail-head h2{font-size:20px;line-height:1.3;margin:5px 0 0;overflow-wrap:anywhere}
#tsapp .ts38-detail-head>.tsbutton{font-size:11px;min-height:36px;white-space:nowrap;flex-shrink:0}
#tsapp .ts38-detail-context{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 20px;background:#f5f8fe;border-bottom:1px solid #e4ecf6;flex-shrink:0}
#tsapp .ts38-detail-context>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#tsapp .ts38-detail-context strong{font-size:17px;color:#17304f;font-variant-numeric:tabular-nums}
#tsapp .ts38-detail-context span,#tsapp .ts38-detail-context>small{font-size:10px;color:#637895;line-height:1.5}
#tsapp .ts38-detail-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 20px}
#tsapp .ts38-detail-note{font-size:11px;line-height:1.5;color:#637895;margin:0 0 12px}
#tsapp .ts38-detail-table-wrap{overflow:auto;border:1px solid #e4ecf6;border-radius:7px}
#tsapp .ts38-detail-table{width:100%;border-collapse:collapse;font-size:12px;min-width:440px;margin:0}
#tsapp .ts38-trade-table{min-width:720px}
#tsapp .ts38-detail-table :is(th,td){padding:9px 12px;line-height:1.4;border-bottom:1px solid #e9eff7;max-width:280px;overflow-wrap:anywhere;vertical-align:middle;font-size:11px}
#tsapp .ts38-detail-table tr:last-child td{border-bottom:0}
#tsapp .ts38-detail-table td small{display:block;font-size:9px;color:#7185a2;margin-top:2px}
#tsapp .ts38-detail-table th{background:#eaf2ff;color:#17304f;font-weight:700;position:sticky;top:0;z-index:1}
#tsapp .ts38-detail-table td:nth-child(2),#tsapp .ts38-detail-table td:nth-last-child(2){font-variant-numeric:tabular-nums}
#tsapp .ts38-open-record{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;border:1px solid #dce7f6;border-radius:6px;background:#fff;color:#1769f3;font-size:15px;cursor:pointer}
#tsapp .ts38-open-record:hover{background:#edf4ff}
#tsapp .ts38-detail-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-height:60px;padding:10px 20px;border-top:1px solid #e4ecf6;flex-shrink:0;background:#fff}
#tsapp .ts38-detail-footer span{font-size:11px;color:#637895;line-height:1.5}
#tsapp .ts38-detail-footer button{font-size:11px;min-height:36px}
#tsapp .ts38-back{display:inline-flex;align-items:center;min-height:32px;margin:0 0 12px;padding:0;border:0;background:transparent;color:#1769f3;font-size:11px;cursor:pointer;text-align:left}
#tsapp .ts38-trade-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin:0}
#tsapp .ts38-trade-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid #e9eff7;min-width:0}
#tsapp .ts38-trade-facts dt{font-size:11px;color:#6c7f99;line-height:1.5}
#tsapp .ts38-trade-facts dd{font-size:12px;font-weight:600;line-height:1.5;margin:0;overflow-wrap:anywhere}
#tsapp .ts38-trade-note h3{font-size:13px;margin:18px 0 8px}
#tsapp .ts38-trade-note p{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
#tsapp .ts38-valuation-pending{font-size:11px;line-height:1.5;padding:12px;border-radius:6px;background:#fff8eb;color:#966419}
#tsapp .ts38-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}
@media(max-width:1100px){#tsapp .ts38-analytics .ts37-analysis-extras{flex:1 1 100%}#tsapp .ts38-analytics .ts37-analytics-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#tsapp .ts38-analytics .ts-ra-contributions{gap:10px}#tsapp .ts38-analytics .ts-ra-breakdown{padding:12px}}
@media(max-width:790px){#tsapp .ts38-analytics .ts-audit-title{font-size:25px}#tsapp .ts38-analytics .ts37-analytics-filters{gap:10px;margin-bottom:14px}#tsapp .ts38-analytics .ts37-analytics-filters>.ts-final-filters{flex:1 1 100%}#tsapp .ts38-analytics .ts37-insight-pair{grid-template-columns:1fr}#tsapp .ts38-analytics .ts-ra-contributions{grid-template-columns:1fr}#tsapp .ts38-contribution-row{min-height:48px}#tsapp .ts38-contribution-name{font-size:12px}#tsapp .ts38-contribution-amount{font-size:14px}#tsapp .ts38-analytics .ts37-usd-curve{height:130px;max-height:130px}#tsapp .ts38-detail-context{align-items:flex-start;flex-direction:column;gap:4px}#tsapp .ts38-trade-facts{grid-template-columns:1fr}}
@media(max-width:600px){#tsapp .ts38-analytics .ts-audit-header{gap:8px;margin-bottom:13px}#tsapp .ts38-analytics .ts-audit-header p{font-size:11px;line-height:1.5;max-width:260px}#tsapp .ts38-scope-count{display:none}#tsapp .ts38-analytics .ts37-analysis-extras{flex-wrap:wrap;gap:8px}#tsapp .ts38-analytics .ts37-analysis-extras>.ts5-filter{flex:1 1 100%}#tsapp .ts38-analytics .ts37-more{flex:1}#tsapp .ts38-analytics .ts37-more>summary{justify-content:center}#tsapp .ts38-reset{min-width:70px}#tsapp .ts38-analytics .ts37-analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#tsapp .ts38-analytics .ts37-analytics-kpis .ts-audit-metric{min-height:104px;padding:12px;gap:6px}#tsapp .ts38-analytics .ts37-analytics-kpis .ts-audit-metric:last-child{grid-column:1/-1;min-height:91px}#tsapp .ts38-analytics .ts-audit-metric-head{min-height:26px;font-size:10px}#tsapp .ts38-analytics .ts-audit-metric-value{font-size:24px}#tsapp .ts38-analytics .ts37-analytics-kpis .ts-audit-metric:last-child .ts-audit-metric-head{min-height:0}#tsapp .ts38-analytics .ts38-card-heading{gap:8px;flex-wrap:wrap}#tsapp .ts38-analytics .ts38-card-heading h2{font-size:14px}#tsapp .ts38-analytics .tspanel{padding:14px}#tsapp .ts38-analytics .ts37-result-curve .ts38-card-heading>span{font-size:9px}#tsapp .ts38-plan-table>[role=row]{grid-template-columns:minmax(0,1fr) 30px 44px;gap:6px;padding:0 8px}#tsapp .ts38-plan-row{min-height:36px}#tsapp .ts38-plan-row button{min-height:36px}#tsapp .ts38-direction-strip{gap:0}#tsapp .ts38-direction-strip>button{flex:1 1 100%;min-height:44px;border-bottom:1px solid #edf1f7}#tsapp .ts38-direction-strip>details{padding-top:12px}#tsapp #tsHubModal .ts38-analytics-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:9px}#tsapp .ts38-detail-head{padding:14px 12px;gap:10px}#tsapp .ts38-detail-head h2{font-size:17px}#tsapp .ts38-detail-head>.tsbutton{padding:7px 9px;font-size:10px}#tsapp .ts38-detail-body{padding:12px}#tsapp .ts38-detail-context{padding:10px 12px}#tsapp .ts38-detail-footer{padding:10px 12px;gap:10px}#tsapp .ts38-detail-footer button{flex:1;max-width:130px}#tsapp .ts38-detail-footer span{font-size:10px}#tsapp .ts38-trade-facts>div{grid-template-columns:1fr 1.4fr;gap:10px}}

#tsapp .ts38-curve-axis{display:flex;justify-content:space-between;padding:0 5.4%;font-size:9px;color:#7a8da9;line-height:1.5;margin-top:3px}

/* A single trade ends at its content; long lists keep their bounded workspace. */
#tsapp #tsHubModal .ts38-analytics-dialog[data-screen=trade]{height:auto;top:50%;bottom:auto;transform:translateY(-50%)}
#tsapp .ts38-analytics-dialog[data-screen=trade] .ts38-detail-body{flex:0 1 auto;max-height:calc(100dvh - 250px)}
