/* Screener-only compact rows and filter sheets; cabinet does not load these controls. */
@media(max-width:599px){
 html body .responsive-compact-table .table-navigation,html body .responsive-compact-table .bond-scrollnav{display:none}
 html body .responsive-compact-table #tablewrap table,html body .responsive-compact-table #bond-table table{display:block;min-width:0!important;width:100%;white-space:normal}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table colgroup,html body .responsive-compact-table :is(#tablewrap,#bond-table) table thead{display:none}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody{display:block}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody tr{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) minmax(96px,.65fr);gap:0;border-bottom:1px solid var(--line);padding:8px 0;background:white}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody td{display:block;min-width:0;width:auto;max-width:none;height:auto;border:0;background:none!important;padding:6px 8px;text-align:left;white-space:normal}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-select{position:static;grid-column:1;grid-row:1 / 3;padding:0;display:grid;place-items:center;align-self:start;min-height:44px}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-select input{width:20px;height:20px}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-identity{position:static!important;grid-column:2;grid-row:1;padding:6px 4px;overflow-wrap:anywhere}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-priority,html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-secondary{grid-column:3;text-align:right;font-variant-numeric:tabular-nums}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-secondary{display:none;order:2}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-row-expanded .responsive-secondary{display:block;grid-column:2 / -1;text-align:right;border-top:1px solid var(--line)}
 html body .responsive-compact-table .responsive-priority:before,html body .responsive-compact-table .responsive-secondary:before{content:attr(data-responsive-label);display:block;color:var(--muted);font-size:12px;margin-bottom:4px;line-height:1.35}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-row-details{display:block;grid-column:2;grid-row:2;padding:0 4px}
 html body .responsive-compact-table .responsive-row-details button{border:0;padding:0;color:var(--blue);background:none;min-height:44px}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table .company-label{max-width:none;white-space:normal}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table td.rankcol>.info{position:static;transform:none}
 html body.compact-stocks .responsive-compact-table .stock-target{align-items:flex-end;text-align:right;min-height:44px}
}
@media(max-width:599px){
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-price-value{grid-row:1}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-sort-value{grid-row:2}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody .responsive-secondary{grid-column:2 / -1}
 html body .responsive-compact-table .responsive-identity .company-label{font-size:14px;line-height:1.4}
 html body .responsive-compact-table .responsive-row-details button{font-size:12px;text-align:left}
 html body .responsive-compact-table .responsive-priority .rank-cell{justify-content:flex-end}
}
/* One existing filter form, in the top layer on narrow screens. */
@media(max-width:1199px){
 html body dialog.responsive-filter-dialog{box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100vw);max-width:none;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:80px 100px;background:var(--if-surface,var(--if-surface));color:var(--if-ink,var(--if-ink))}
 .responsive-filter-dialog::backdrop{background:#172A3666}
 .responsive-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:5;padding:12px 16px;background:var(--if-surface,var(--if-surface));border-bottom:1px solid var(--if-border,var(--if-border))}
 .responsive-filter-heading h2{font-size:20px;margin:0}
 .responsive-filter-heading button{min-height:44px;padding:8px 12px;border:1px solid var(--if-controlBorder,var(--if-controlBorder));border-radius:6px;background:var(--if-surface,var(--if-surface));color:inherit;font:inherit;cursor:pointer}
 html body .responsive-filter-dialog .screening-panel{margin:0!important;padding:16px 16px max(16px,env(safe-area-inset-bottom))!important;border:0!important;max-height:none!important}
 html body .responsive-filter-dialog .screen-basic,html body .responsive-filter-dialog :is(.stock-extra-grid,.screen-extra-grid){grid-template-columns:minmax(0,1fr)!important}
 html body .responsive-filter-dialog input:not([type=checkbox]),html body .responsive-filter-dialog select{font-size:16px!important;min-height:44px!important}
 html body .responsive-filter-dialog .screen-filter-foot{position:sticky;bottom:-16px;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:var(--if-surface,var(--if-surface));z-index:4;display:flex;flex-wrap:wrap;gap:8px}
 html body .responsive-filter-dialog .screen-filter-foot button{min-height:44px}
 html body .responsive-filter-dialog .screen-filter-foot>span{flex-basis:100%}
 html body .responsive-filter-dialog :is(.screen-multi,.screen-select){min-width:0}
}
@media(max-width:599px){html body dialog.responsive-filter-dialog{width:100vw}}

@media(max-width:599px){
 html body .responsive-compact-table .personal-security{display:block;position:static}
 html body .responsive-compact-table .personal-security>.personal-star{position:absolute!important;left:0;top:50px!important;transform:none!important;min-width:36px;min-height:44px}
 html body .responsive-compact-table .company-name{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-height:44px;text-align:left}
 html body .responsive-compact-table .company-name .stock-logo{display:none}
 html body .responsive-compact-table .identityline{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody tr:nth-child(even){background:var(--if-rowStripe,var(--if-rowStripe))}
 html body .responsive-compact-table :is(#tablewrap,#bond-table) table tbody tr.picked{background:var(--if-selection,var(--if-selection))}
 html body :is(#content,#bond-app):not(.responsive-compact-table) :is(#tablewrap,#bond-table) .companycol{width:92px!important;min-width:92px!important;max-width:92px!important;left:36px}
 html body :is(#content,#bond-app):not(.responsive-compact-table) :is(#tablewrap,#bond-table) .checkcol{width:36px!important;min-width:36px!important;max-width:36px!important}
 html body :is(#content,#bond-app):not(.responsive-compact-table) .companycol .stock-logo{display:none}
}
@media(min-width:600px) and (max-width:899px){
 html body :is(#tablewrap,#bond-table) .companycol{width:132px!important;min-width:132px!important;max-width:132px!important;left:36px}
 html body :is(#tablewrap,#bond-table) .checkcol{width:36px!important;min-width:36px!important;max-width:36px!important}
}
@media(max-width:599px){.responsive-choice{display:grid;place-items:center;min-width:36px;min-height:44px;cursor:pointer}}

@media(max-width:599px){html body .responsive-compact-table .console-table-overflow{display:none!important}}
@media(max-width:599px){
 html body .responsive-compact-table .responsive-priority:before{white-space:normal;overflow-wrap:anywhere}
}

html.responsive-filters-open{overflow:hidden}
@media(max-width:1199px){
 html body .filterchips button{min-height:44px;font-size:14px;padding:8px 12px;white-space:normal;text-align:left}
 .responsive-filter-dialog button:focus-visible{outline:2px solid var(--if-focus,var(--if-focus));outline-offset:3px}
}

@media(max-width:1199px){
 html.hybrid-site.console-v3.concept-console .responsive-filter-dialog #responsive-filters .filter-preview-toggle{height:44px!important;min-height:44px!important}
 .responsive-filter-dialog .screen-multi label{min-height:44px;display:flex;align-items:center;gap:8px}
}

/* Mobile rows are independent grid cards. Let the browser skip off-screen layout,
   retaining every cell/action in the DOM. 116px + padding/border matches the
   measured 133px collapsed row; auto remembers the actual rendered height. */
@media screen and (max-width:599px){
 html body .responsive-compact-table #bond-table table tbody tr{
  content-visibility:auto;
  contain-intrinsic-block-size:auto 116px;
 }
}
