/* Presentation only: each workspace uses its actual available width.
   Keep the existing navigation, handlers, data, and reading order. */
html.t3-reimagined body.aaron-today-native .device #cardHost{
 container:workspace / inline-size;
 width:100%;min-width:0;
}

/* Account Execution: add complete cards as space becomes available. */
html.t3-reimagined body.aaron-today-account .mobile-notification-alerts{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));
 align-items:start;
}
html.t3-reimagined body.aaron-today-account .mobile-notification-alerts>.mobile-notification-empty{
 grid-column:1/-1;
}

/* Trades: independent asset groups can sit alongside one another. */
html.t3-reimagined .th-root{
 max-width:none;width:100%;min-width:0;container:t4-trades / inline-size;
}
html.t3-reimagined .th-root .th-groups{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,740px),1fr));
 align-items:start;gap:18px;
}
html.t3-reimagined .th-root .th-groups>.th-empty-state{grid-column:1/-1}
html.t3-reimagined .th-root .th-group{min-width:0;container:t4-trade-card / inline-size}
html.t3-reimagined .th-root .th-table-wrap{max-width:100%;overflow:auto}
@container t4-trades (min-width:1000px){
 html.t3-reimagined .th-root .th-metrics,
 html.t3-reimagined .th-root .th-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container t4-trade-card (max-width:800px){
 html.t3-reimagined .th-root .th-group>summary{
  grid-template-columns:38px minmax(0,1fr) 92px 16px;
  gap:7px 8px;padding:14px 11px;
 }
 html.t3-reimagined .th-root .th-logo{grid-column:1;grid-row:1/4;width:38px;height:38px;min-width:38px}
 html.t3-reimagined .th-root .th-identity{grid-column:2;grid-row:1/4;display:grid;gap:2px}
 html.t3-reimagined .th-root .th-signal-count{grid-column:3;grid-row:1}
 html.t3-reimagined .th-root summary>.th-status{grid-column:3;grid-row:2}
 html.t3-reimagined .th-root .th-last{display:block;grid-column:2/4;grid-row:4;justify-self:start}
 html.t3-reimagined .th-root .th-chevron{grid-column:4;grid-row:1/4}
}

/* Settings: the existing three groups share the width on large workspaces. */
html.t3-reimagined .as-settings{
 max-width:none;width:100%;min-width:0;container:t4-settings / inline-size;
}
@container t4-settings (min-width:960px){
 html.t3-reimagined .as-settings[data-section=preferences] .as-grid{
  grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);
 }
 html.t3-reimagined .as-settings[data-section=preferences] .as-alerts{grid-row:span 2}
}
@container t4-settings (min-width:1440px){
 html.t3-reimagined .as-settings[data-section=preferences] .as-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;
 }
 html.t3-reimagined .as-settings[data-section=preferences] .as-alerts{grid-row:auto}
}
@container t4-settings (max-width:959px){
 html.t3-reimagined .as-settings[data-section=preferences] .as-grid{grid-template-columns:minmax(0,1fr)}
 html.t3-reimagined .as-settings[data-section=preferences] .as-alerts{grid-row:auto}
}

/* Broker-owned pages stay isolated; only AARON's surrounding workspace changes. */
html.t3-reimagined #aaron-invest .iv-wrap{
 max-width:none;width:100%;min-width:0;container:t4-broker / inline-size;
}
html.t3-reimagined #aaron-invest :is(.iv-broker-grid,.iv-metrics,.ao-trade-grid,.ao-workspace,.iv-holdings){min-width:0}
@container t4-broker (min-width:700px){
 html.t3-reimagined #aaron-invest .iv-broker-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
 }
 html.t3-reimagined #aaron-invest .iv-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 html.t3-reimagined #aaron-invest .iv-metric.is-featured{grid-column:auto}
}
@container t4-broker (max-width:900px){
 html.t3-reimagined #aaron-invest .iv-orders .ao-trade-grid{grid-template-columns:minmax(0,1fr)}
 html.t3-reimagined #aaron-invest .iv-orders .ao-ticket-panel{
  border-left:0;border-top:1px solid #48657845;padding-top:20px;
 }
}
@container t4-broker (min-width:1600px){
 html.t3-reimagined #aaron-invest .iv-orders .ao-workspace{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);
  align-items:start;gap:18px 22px;
 }
 html.t3-reimagined #aaron-invest .iv-orders .ao-workspace>.ao-unified-workspace{
  grid-column:1;grid-row:1/3;margin-bottom:0;
 }
 html.t3-reimagined #aaron-invest .iv-orders .ao-workspace>.ao-planning-capital{grid-column:2;margin:0}
 html.t3-reimagined #aaron-invest .iv-orders .ao-workspace>fieldset{grid-column:2;min-width:0}
 html.t3-reimagined #aaron-invest .iv-orders .ao-workspace>.ao-execution-details{grid-column:1/-1;margin-top:0}
 html.t3-reimagined #aaron-invest .iv-orders .ao-unified-workspace .ao-executor-history{
  flex-wrap:wrap;min-width:0;
 }
}

/* Force: readings remain unchanged; panels fit the width left by the sidebar. */
html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-panel{container:t4-force / inline-size}
html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-content{
 display:grid;grid-template-columns:minmax(0,1fr);align-content:start;
}
@container t4-force (max-width:900px){
 html.t3-reimagined #aaron-market-force-drawer .tfw-hero{grid-template-columns:minmax(0,1fr)}
 html.t3-reimagined #aaron-market-force-drawer .tfw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.t3-reimagined #aaron-market-force-drawer .tfw-details .aaron-force-sensors{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
 }
}
@container t4-force (min-width:901px){
 html.t3-reimagined #aaron-market-force-drawer .tfw-hero{
  grid-template-columns:minmax(290px,.8fr) minmax(0,1.9fr);
 }
 html.t3-reimagined #aaron-market-force-drawer .tfw-metrics{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));
 }
}
@container t4-force (min-width:1600px){
 html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-content{
  grid-template-columns:minmax(0,2.15fr) minmax(340px,1fr);column-gap:22px;
 }
 html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-content>
 :is(.tfw-basket-context,.aaron-force-live-meta,.tfw-reading,.aaron-force-footer){grid-column:1/-1}
 html.t3-reimagined #aaron-market-force-drawer .tfw-hero{grid-column:1}
 html.t3-reimagined #aaron-market-force-drawer .tfw-drivers{grid-column:2;margin-top:0;min-width:0}
 html.t3-reimagined #aaron-market-force-drawer .tfw-drivers-head{flex-wrap:wrap;gap:12px}
 html.t3-reimagined #aaron-market-force-drawer .tfw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.t3-reimagined #aaron-market-force-drawer .tfw-metric{display:block;min-width:0}
 html.t3-reimagined #aaron-market-force-drawer .tfw-metric:last-child:nth-child(odd){grid-column:1/-1}
}

/* Transparency has a selected detail and a separate record list. */
html.t3-reimagined .tp-root{
 max-width:none;width:100%;min-width:0;container:t4-transparency / inline-size;
}
@container t4-transparency (max-width:850px){
 html.t3-reimagined .tp-root .tp-workspace{grid-template-columns:minmax(0,1fr)}
}
@container t4-transparency (min-width:1600px){
 html.t3-reimagined .tp-root .tp-workspace{
  grid-template-columns:minmax(400px,.8fr) minmax(0,1.6fr);
 }
}

/* Wish List is an AARON dialog; expand its existing rows rather than duplicating them. */
@media(min-width:1200px){
 html.t3-reimagined:not([data-aaron-native-mobile]) .t4-wl-dialog{
  inset:20px 24px 20px var(--t3-workspace-left,236px);
  width:auto;height:auto;margin:0;max-height:none;container:t4-wishlist / inline-size;
 }
 html.t3-reimagined:not([data-aaron-native-mobile]) .t4-wl-shell{height:100%;max-height:100%}
}
@container t4-wishlist (min-width:960px){
 html.t3-reimagined .t4-wl-list{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr));
  align-content:start;gap:12px 18px;padding:0 26px;
 }
 html.t3-reimagined .t4-wl-row{min-width:0;border:1px solid #b5c9d426;border-radius:12px}
 html.t3-reimagined .t4-wl-empty{grid-column:1/-1}
}

/* These selectors take effect only in the owned Advisor / report documents
   when this same stylesheet is linked there; no iframe content is injected. */
body.at-advisor-preview .advisor-shell,
body.at-advisor-preview .report-shell{max-width:none;width:100%;min-width:0}
body.at-advisor-preview .advisor-shell{container:t4-advisor / inline-size}
body.at-advisor-preview .report-shell{container:t4-report / inline-size}
body.at-advisor-preview .report-main{max-width:none;width:100%;min-width:0}
body.at-advisor-preview .advisor-layout{min-width:0}
@container t4-advisor (min-width:1050px){
 body.at-advisor-preview .advisor-layout{
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);
  align-items:start;gap:24px;padding-inline:28px;
 }
 body.at-advisor-preview .advisor-chat{min-width:0}
 body.at-advisor-preview .at-advisor-context{min-width:0}
 body.at-advisor-preview .advisor-transcript{max-height:58dvh}
}
@container t4-report (min-width:1500px){
 body.at-advisor-preview .report-main{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:24px;
 }
 body.at-advisor-preview .report-main>
 :is(.report-hero,.report-actions,.report-chapter-nav,.report-closing-chapters,.report-assets){grid-column:1/-1}
 body.at-advisor-preview .report-main>section{min-width:0}
 body.at-advisor-preview .report-main>
 :is(.report-overview,.report-chart-section,.report-analysis,.report-method)>.report-section-head{margin-top:8px}
 body.at-advisor-preview .report-closing-chapters{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;
 }
 body.at-advisor-preview .report-closing-chapters>.report-chapter:first-child{grid-column:1/-1}
 body.at-advisor-preview .report-chapter{min-width:0}
 body.at-advisor-preview .report-horizon-assets{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
 }
}
@media print{
 body.at-advisor-preview .report-main{display:block}
 body.at-advisor-preview .report-closing-chapters{grid-template-columns:minmax(0,1fr)}
}

/* Compact page boundaries; retain complete content and control hit areas. */
html.t3-reimagined body.aaron-today-theme #aaron-today-root[data-t3-view=today]>.at-top{
 margin-bottom:8px;padding-bottom:10px;
}
html.t3-reimagined .as-settings{padding-top:14px}
html.t3-reimagined .as-settings .as-sections{margin-top:16px;padding-bottom:8px}
html.t3-reimagined .as-settings .as-save-status{min-height:0;padding-block:8px}
html.t3-reimagined .as-settings .as-save-status:empty{padding:0}
html.t3-reimagined .as-settings .as-grid{gap:16px}
html #aaron-today-menu.tm-drawer .tm-head{margin-bottom:12px}
html #aaron-today-menu.tm-drawer h2{margin-top:14px}
html #aaron-today-menu.tm-drawer h3{margin-top:16px}
html.t3-reimagined #aaron-top20-activity>.sad-dossier{margin-top:14px}
html.t3-reimagined #aaron-top20-activity .sad-dossier-head{padding-bottom:12px}
html.t3-reimagined #aaron-top20-activity .sad-section-nav{padding-bottom:12px}
html.t3-reimagined #aaron-top20-activity .sad-section>header{padding-bottom:12px;margin-bottom:14px}
html.t3-reimagined body.aaron-today-account #aaron-account-heading{margin-bottom:10px}
html.t3-reimagined body.aaron-today-account .mobile-executor-horizon-switch{margin-bottom:10px!important}
html.t3-reimagined .t4-executor-workspace{padding-top:6px}
html.t3-reimagined .th-replay .tr-head{margin-bottom:12px}
html.t3-reimagined .th-replay .tr-modes{margin-bottom:12px}
html.t3-reimagined .th-replay .tr-config{margin-bottom:10px}
html.t3-reimagined .th-replay .tr-tools{margin-block:10px}
html.t3-reimagined #aaron-invest .iv-brandbar{margin-bottom:18px}
html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-panel{padding:14px 18px 18px}
html.t3-reimagined #aaron-market-force-drawer .aaron-market-force-head{padding-bottom:10px!important}
html.t3-reimagined #aaron-market-force-drawer .aaron-force-live-meta{margin-bottom:10px}
html.t3-reimagined .tp-root{padding-top:12px}
html.t3-reimagined .tp-root .tp-heading{margin-bottom:14px}
html.t3-reimagined .tp-root .tp-filters{margin-bottom:12px}
html.t3-reimagined .tp-root .tp-metrics{margin-bottom:14px}
body.at-advisor-preview .advisor-layout{row-gap:16px}
body.at-advisor-preview .report-main{row-gap:16px}

/* Phone toolbar: smaller visible periods, full touch targets, inline session. */
@media(max-width:699px){
 html.t3-reimagined body.aaron-today-theme #aaron-today-root[data-t3-view=today]>.at-top{
  margin-bottom:0;padding-block:8px 4px;min-height:54px;
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-horizon-row{
  flex-wrap:nowrap;align-items:center;min-height:48px;padding-block:0;gap:8px;
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-horizon-row>.at-periods{
  flex:0 0 162px;width:162px;min-width:0;max-width:100%;padding:1px;border-radius:10px;
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-horizon-row>.at-periods>button{
  position:relative;min-width:44px;min-height:32px;padding:3px 5px;font-size:11px!important;line-height:1.3;border-radius:8px;
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-horizon-row>.at-periods>button::after{
  content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%);
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-horizon-row>.t4-top20-note{
  flex:1 1 0%;min-width:0;width:auto;font-size:10px;line-height:1.3;text-align:right;white-space:normal;
 }
 html.t3-reimagined #aaron-today-root[data-t3-view=today]>.at-carousel{
  padding-top:2px;padding-bottom:6px;
 }
}
