/* K3 emergency layout recovery 2026-10-29 */
@media(min-width:769px){html body #root .rt-core-entry-grid .rt-desk-entry{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important;grid-template-columns:none!important;grid-template-rows:none!important;min-width:0!important;width:100%!important;box-sizing:border-box!important}html body #root .rt-core-entry-grid .rt-desk-entry>div{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important}html body #root .rt-core-entry-grid .rt-desk-entry h3{display:block!important;writing-mode:horizontal-tb!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;width:100%!important;max-width:100%!important;letter-spacing:normal!important}html body #root .rt-core-entry-grid .rt-desk-entry p{width:100%!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}html body #root .rt-core-entry-grid .rt-desk-entry>strong{display:block!important;width:100%!important;flex:0 0 auto!important}}

/* Mobile market overview uses desktop decision components, responsively reflowed */
@media(max-width:768px){
body:has(.rt-core-home) .rt-core-home{width:100%;max-width:100%;gap:12px;padding:0 10px 96px;box-sizing:border-box}
body:has(.rt-core-home) .rt-core-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:8px 2px}
body:has(.rt-core-home) .rt-core-head h1{font-size:25px;line-height:1.2;letter-spacing:-.025em}
body:has(.rt-core-home) .rt-core-head p{font-size:13px;line-height:1.5}
body:has(.rt-core-home) .rt-title-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%}
body:has(.rt-core-home) .rt-title-row .market-view-switch{display:grid;width:100%;grid-template-columns:1fr 1fr;box-sizing:border-box}
body:has(.rt-core-home) .rt-title-row .market-view-switch button{min-width:0;min-height:42px;padding:0 6px;font-size:13px}
body:has(.rt-core-home) .rt-head-actions{display:flex;width:100%;flex-wrap:wrap;justify-content:stretch;gap:8px}
body:has(.rt-core-home) .rt-head-actions button{flex:1 1 145px;min-width:0;min-height:42px;font-size:12px;padding:0 10px}
body:has(.rt-core-home) .rt-core-hero{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;gap:10px}
body:has(.rt-core-home) .rt-btc-decision{min-width:0;padding:16px;border-radius:16px;box-sizing:border-box}
body:has(.rt-core-home) .rt-btc-main{margin-top:18px;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
body:has(.rt-core-home) .rt-btc-main>div:first-child>strong{font-size:42px;line-height:1}
body:has(.rt-core-home) .rt-btc-main p{font-size:12px;line-height:1.5}
body:has(.rt-core-home) .rt-btc-quote{min-width:0;width:122px;padding:9px;grid-template-columns:28px minmax(0,1fr);gap:5px;box-sizing:border-box}
body:has(.rt-core-home) .rt-btc-quote img,body:has(.rt-core-home) .rt-btc-quote svg{max-width:28px}
body:has(.rt-core-home) .rt-btc-quote strong{font-size:13px}
body:has(.rt-core-home) .rt-btc-facts{margin-top:16px;padding-top:12px;grid-template-columns:repeat(4,minmax(0,1fr))}
body:has(.rt-core-home) .rt-btc-facts>span{padding:2px 6px;font-size:9px;overflow-wrap:anywhere}
body:has(.rt-core-home) .rt-btc-facts strong{font-size:13px}
body:has(.rt-core-home) .rt-focus-board{padding:12px;border-radius:16px;min-width:0}
body:has(.rt-core-home) .rt-focus-head b{font-size:15px}
body:has(.rt-core-home) .rt-focus-head small{font-size:10px}
body:has(.rt-core-home) .rt-focus-row{grid-template-columns:18px 38px minmax(0,1fr) auto;gap:7px;padding:9px 7px;min-height:66px;min-width:0}
body:has(.rt-core-home) .rt-focus-asset{gap:7px;min-width:0}
body:has(.rt-core-home) .rt-focus-asset strong{font-size:13px}
body:has(.rt-core-home) .rt-focus-asset small{font-size:10px}
body:has(.rt-core-home) .rt-focus-view{min-width:0}
body:has(.rt-core-home) .rt-focus-view b{font-size:11px}
body:has(.rt-core-home) .rt-focus-view small{font-size:9px;overflow-wrap:anywhere}
body:has(.rt-core-home) .rt-focus-level{display:none}
body:has(.rt-core-home) .rt-focus-open{display:block;font-size:10px;white-space:nowrap}
body:has(.rt-core-home) .rt-core-section-intro>div>p{font-size:15px;line-height:1.55}
body:has(.rt-core-home) .rt-quote-rail{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px}
body:has(.rt-core-home) .rt-quote-title{grid-column:1/-1;padding:7px;border-bottom:1px solid rgba(87,115,126,.25)}
body:has(.rt-core-home) .rt-quote-rail>button{grid-template-columns:24px minmax(0,1fr);gap:5px;padding:8px 5px;min-width:0}
body:has(.rt-core-home) .rt-quote-rail>button>svg{width:22px}
body:has(.rt-core-home) .rt-quote-rail>button em{grid-column:2;font-size:10px}
body:has(.rt-core-home) .rt-quote-rail>button strong{font-size:12px}
body:has(.rt-core-home) .rt-core-entry-grid{grid-template-columns:minmax(0,1fr);gap:10px}
body:has(.rt-core-home) .rt-desk-entry{display:flex!important;flex-direction:column!important;min-height:130px;padding:16px;gap:12px;box-sizing:border-box}
body:has(.rt-core-home) .rt-desk-entry>div{width:100%;min-width:0}
body:has(.rt-core-home) .rt-desk-entry h3{font-size:21px;line-height:1.3;writing-mode:horizontal-tb;white-space:normal;word-break:normal;overflow-wrap:anywhere;letter-spacing:normal}
body:has(.rt-core-home) .rt-desk-entry p{font-size:12px;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
body:has(.rt-core-home) .rt-desk-entry>strong{width:100%;font-size:12px}
body:has(.rt-core-home) .rt-evidence-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body:has(.rt-core-home) .rt-evidence-stack>button{min-height:105px;padding:12px;min-width:0}
body:has(.rt-core-home) .rt-evidence-stack strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}
body:has(.rt-core-home) .rt-evidence-stack small{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
body:has(.rt-core-home) .rt-action-context{grid-template-columns:minmax(0,1fr);gap:8px}
body:has(.rt-core-home) .rt-action-context>button{min-height:90px;padding:14px}
body:has(.rt-core-home) .rt-workspace-grid{grid-template-columns:minmax(0,1fr);gap:10px}
}

/* Realtime overview: keep the quote intact and place the assessment below it. */
@media (max-width:768px){
  body:has(.rt-core-home) .rt-focus-row{
    grid-template-columns:18px minmax(0,1fr) auto;
    grid-template-areas:"rank asset open" ". view view";
    row-gap:5px;
  }
  body:has(.rt-core-home) .rt-focus-rank{grid-area:rank}
  body:has(.rt-core-home) .rt-focus-asset{grid-area:asset}
  body:has(.rt-core-home) .rt-focus-asset>span{min-width:0}
  body:has(.rt-core-home) .rt-focus-asset small{
    white-space:nowrap;
    overflow-wrap:normal;
    word-break:normal;
  }
  body:has(.rt-core-home) .rt-focus-view{grid-area:view}
  body:has(.rt-core-home) .rt-focus-open{grid-area:open}
}
