/* Central Orbit 5.42.0 — Tablet vNext Foundation
   Tablet keeps the approved desktop control-center DNA, but reflows it for touch and portrait/landscape widths.
   Phone (<=760px) and desktop (>1200px) are intentionally untouched. */

@media (min-width:761px) and (max-width:1200px){
  html,body,#app{width:100%;max-width:100%;min-height:100%;overflow-x:hidden!important}
  body{font-size:14px!important;background:radial-gradient(circle at 50% -12%,#062530 0,#02131b 34%,#01090e 76%,#01070b 100%)!important}
  .mobile-vnext{display:none!important}

  /* Tablet topbar: desktop-like, but calm and touch-safe. */
  .topbar-shell{
    height:58px!important;
    grid-template-columns:154px minmax(0,1fr) auto!important;
    padding:0 8px!important;
    gap:4px!important;
    width:100%!important;
    max-width:100%!important;
    background:rgba(1,12,18,.96)!important;
  }
  .brand-shell{gap:5px!important;min-width:0}
  .brand-shell img{width:54px!important;height:39px!important}
  .brand-text{font-size:17px!important;gap:3px!important}
  .nav-shell{
    min-width:0!important;
    justify-content:flex-start!important;
    gap:2px!important;
    padding:0 3px!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .nav-shell::-webkit-scrollbar{display:none}
  .nav-shell>a,.nav-more-button{
    flex:0 0 auto!important;
    height:36px!important;
    padding:0 7px!important;
    gap:5px!important;
    font-size:9px!important;
    border-radius:9px!important;
  }
  .nav-shell>a svg,.nav-more-button svg{width:14px!important;height:14px!important}
  .nav-more{position:relative!important;flex:0 0 auto!important}
  .nav-more::after{display:none!important}
  .nav-more-menu{
    display:none!important;
    position:fixed!important;
    top:64px!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:220px!important;
    min-width:220px!important;
    max-height:min(68vh,560px)!important;
    overflow-y:auto!important;
    grid-template-columns:1fr!important;
    z-index:130!important;
    padding:7px!important;
    border-radius:13px!important;
    background:rgba(3,17,23,.985)!important;
    box-shadow:0 20px 48px rgba(0,0,0,.48),0 0 28px rgba(38,202,190,.07)!important;
  }
  .nav-more.tablet-open .nav-more-menu{display:grid!important;gap:3px!important}
  .nav-more-menu a,.nav-more-menu .nav-more-action{min-height:38px!important;font-size:10px!important}

  .top-actions{gap:5px!important}
  .top-actions .live-pill{display:none!important}
  .icon-button,.account-pill{height:38px!important;border-radius:10px!important}
  .icon-button{width:38px!important}
  .account-pill{width:40px!important;grid-template-columns:30px!important;padding:0 4px!important;gap:0!important}
  .account-pill>span:nth-child(2),.account-pill>b{display:none!important}
  .avatar{width:30px!important;height:30px!important}

  /* Full-width tablet canvas. No desktop 110% zoom trick here. */
  .shell-wrap{width:100%!important;max-width:none!important;margin:0!important;padding:8px 8px 12px!important}
  .dashboard-inline-editor{top:64px!important;margin-bottom:8px!important}

  /* 12-column tablet grid: same cards, responsive geometry. */
  .top-grid,.row-two,.row-three,.bottom-grid{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    width:100%!important;
    height:auto!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  .row-grid,.bottom-grid{margin-top:8px!important}
  .top-grid{grid-auto-rows:184px!important}
  .row-two,.row-three{grid-auto-rows:188px!important}
  .bottom-grid{grid-auto-rows:176px!important}

  .top-grid>.hero-card,.top-grid>.ai-card,.top-grid>.system-card{grid-column:span 4!important}

  .row-two>.card,.row-three>.card,.bottom-grid>.card{grid-column:span 3!important;min-height:0!important;height:auto!important}
  .row-two>.card[data-card-size="narrow"],.row-three>.card[data-card-size="narrow"]{grid-column:span 2!important}
  .row-two>.card[data-card-size="standard"],.row-three>.card[data-card-size="standard"]{grid-column:span 3!important}
  .row-two>.card[data-card-size="wide"],.row-three>.card[data-card-size="wide"]{grid-column:span 4!important}
  .bottom-grid>.card[data-card-size="narrow"]{grid-column:span 3!important}
  .bottom-grid>.card[data-card-size="standard"]{grid-column:span 3!important}
  .bottom-grid>.card[data-card-size="wide"]{grid-column:span 4!important}
  .bottom-grid>.fitness-card{grid-column:span 6!important}
  .bottom-grid>.fitness-card[data-card-size="narrow"]{grid-column:span 4!important}
  .bottom-grid>.fitness-card[data-card-size="standard"]{grid-column:span 5!important}
  .bottom-grid>.fitness-card[data-card-size="wide"]{grid-column:span 6!important}

  /* Compact internals for narrower tablet cards, without changing the visual language. */
  .card-head{height:33px!important;padding:8px 10px 5px!important}
  .head-title{font-size:11.5px!important;gap:6px!important}.head-title svg{width:14px!important;height:14px!important}
  .head-meta{font-size:7.5px!important;gap:6px!important}

  .hero-content{padding:15px 16px!important}.hero-greeting h1{font-size:18px!important}.hero-content>p{margin-left:17px!important;font-size:9px!important}.hero-time{left:16px!important;bottom:38px!important;font-size:38px!important}.hero-date{left:16px!important;bottom:15px!important;font-size:9.5px!important}.hero-content blockquote{right:16px!important;bottom:18px!important;max-width:170px!important;font-size:8.5px!important}

  .ai-card{padding:20px 13px 12px!important}.ai-input-shell{height:56px!important;grid-template-columns:38px 1px 1fr 38px!important;gap:8px!important;padding-left:10px!important}.ai-orb{width:30px!important;height:30px!important}.ai-divider{height:29px!important}.ai-placeholder{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-send{width:34px!important;height:34px!important;font-size:18px!important}.ai-actions{gap:5px!important;margin-top:10px!important}.ai-actions button{height:51px!important;padding:2px!important}.ai-actions small{font-size:7.2px!important;line-height:1.15!important}.qa-icon{height:18px!important}.qa-icon svg{width:16px!important;height:16px!important}

  .system-card{padding:0 8px 8px!important}.health-ok{font-size:7.5px!important}.ok-badge{width:17px!important;height:17px!important}.system-stats{gap:4px!important}.net-stat{height:50px!important;grid-template-columns:24px minmax(0,1fr)!important;padding:0 5px!important}.stat-icon{width:22px!important;height:22px!important;font-size:13px!important}.stat-icon svg{width:14px!important;height:14px!important}.net-stat div{column-gap:2px!important}.net-stat strong{font-size:14px!important}.net-stat small{font-size:7px!important}.net-stat em{font-size:5.8px!important}.system-bottom{grid-template-columns:.7fr .78fr 1.15fr!important;gap:4px!important;margin-top:5px!important;min-height:57px!important}.docker-dot{width:27px!important;height:27px!important;font-size:16px!important}.container-count{gap:5px!important}.container-count strong{font-size:14px!important}.container-count small{font-size:6px!important}.spark-lines{height:45px!important;gap:2px!important}.spark-lines i{width:3px!important}.service-list{font-size:6.2px!important;gap:3px!important}.service-list span{width:5px!important;height:5px!important}

  .weather-card{padding:0 7px 7px!important}.weather-main{grid-template-columns:48px minmax(0,1fr) 62px!important;gap:5px!important;padding:1px 5px 5px!important}.weather-main>img{width:44px!important;height:44px!important}.weather-temp strong{font-size:25px!important}.weather-temp span{font-size:9px!important}.weather-temp small{font-size:6.8px!important}.weather-meta{font-size:7px!important}.forecast-row{padding-top:5px!important}.forecast-row b{font-size:7px!important}.forecast-row small{font-size:6px!important}

  .now-card{padding:0 7px 7px!important}.now-item{min-height:42px!important;padding:4px 7px!important}.now-item strong{font-size:9px!important}.now-item small{font-size:6.6px!important}.now-icon{width:28px!important;height:28px!important}.now-icon svg{width:15px!important;height:15px!important}.now-right strong{font-size:8.3px!important}.now-right small{font-size:6.2px!important}

  .music-card{padding:0 8px 8px!important}.music-body{grid-template-columns:68px minmax(0,1fr)!important;gap:8px!important}.music-cover{width:68px!important;height:68px!important}.music-copy>strong{font-size:12px!important}.music-copy>span{font-size:8px!important}.music-copy>small{font-size:7px!important}.music-controls{margin-top:8px!important}

  .compact-list>div{min-height:25px!important}.compact-list strong{font-size:8.5px!important}.compact-list time{font-size:6.7px!important}.agenda-row{min-height:26px!important}.agenda-row strong{font-size:8px!important}.agenda-row small,.agenda-row time,.agenda-row em{font-size:6.7px!important}.notes-list>div{min-height:46px!important}.notes-list strong{font-size:8.2px!important}.notes-list small{font-size:6.7px!important}.notes-list time{font-size:6.5px!important}.shop-list>div,.routine-list>div{min-height:24px!important}.shop-list strong,.routine-list strong{font-size:8.3px!important}.shop-list time,.routine-list time{font-size:6.6px!important}

  .fitness-card{padding:0 8px 6px!important}.fitness-main{grid-template-columns:82px repeat(4,minmax(0,1fr))!important;gap:5px!important}.fitness-ring{width:76px!important;height:76px!important}.fitness-ring strong{font-size:17px!important}.fitness-ring small{font-size:6px!important}.fitness-metric{padding:5px!important}.fm-top{grid-template-columns:22px minmax(0,1fr)!important}.fm-top>span{width:22px!important;height:22px!important}.fm-top svg{width:16px!important;height:16px!important}.fm-top small{font-size:5.7px!important}.fm-top strong{font-size:8.7px!important}.fm-top em{font-size:5.4px!important}.bars{height:22px!important;gap:2px!important}.days{font-size:5px!important;word-spacing:4px!important}.fitness-footer{gap:4px!important}.fitness-footer>div{height:31px!important}.fitness-footer small{font-size:5.5px!important}.fitness-footer strong{font-size:7.8px!important}
  .therapy-info{height:30px!important}.therapy-quote{height:52px!important;font-size:7px!important}.news-list>div{height:32px!important}.news-list img{width:47px!important;height:25px!important}.news-list strong{font-size:7.5px!important}.news-list small{font-size:6.2px!important}.news-list time{font-size:6.2px!important}

  /* Tablet editor: same profile system, touch-sized controls. */
  .dashboard-editor-backdrop{padding:12px!important}.dashboard-editor{width:min(920px,96vw)!important;max-height:92vh!important}.dashboard-choice-grid,.dashboard-choice-grid.cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dashboard-choice{height:46px!important;font-size:9px!important}.dashboard-nav-order-move button{height:46px!important;width:32px!important}.dashboard-size-switch button{height:30px!important;min-width:38px!important}.dashboard-inline-actions button{min-height:34px!important}
}

/* Portrait tablet: keep the same cards, but use a two-column rhythm instead of squeezing desktop columns. */
@media (min-width:761px) and (max-width:960px){
  .topbar-shell{grid-template-columns:145px minmax(0,1fr) auto!important}
  .brand-shell img{width:49px!important}.brand-text{font-size:16px!important}
  .nav-shell>a,.nav-more-button{font-size:8.5px!important;padding:0 6px!important}
  .top-actions #dashboardSearchButton{display:none!important}

  .top-grid{grid-auto-rows:180px!important}
  .top-grid>.hero-card,.top-grid>.ai-card{grid-column:span 6!important}
  .top-grid>.system-card{grid-column:1/-1!important}

  .row-two,.row-three{grid-auto-rows:184px!important}
  .row-two>.card,.row-three>.card{grid-column:span 6!important}
  .row-two>.card[data-card-size="narrow"],.row-three>.card[data-card-size="narrow"]{grid-column:span 4!important}
  .row-two>.card[data-card-size="standard"],.row-three>.card[data-card-size="standard"]{grid-column:span 6!important}
  .row-two>.card[data-card-size="wide"],.row-three>.card[data-card-size="wide"]{grid-column:1/-1!important}

  .bottom-grid{grid-auto-rows:176px!important}
  .bottom-grid>.fitness-card,.bottom-grid>.fitness-card[data-card-size="narrow"],.bottom-grid>.fitness-card[data-card-size="standard"],.bottom-grid>.fitness-card[data-card-size="wide"]{grid-column:1/-1!important}
  .bottom-grid>.therapy-card,.bottom-grid>.news-card{grid-column:span 6!important}

  .hero-greeting h1{font-size:17px!important}.hero-content blockquote{max-width:150px!important;font-size:8px!important}
  .ai-card{padding-left:12px!important;padding-right:12px!important}.ai-actions small{font-size:7px!important}
  .system-card{padding-left:12px!important;padding-right:12px!important}.net-stat strong{font-size:16px!important}.service-list{font-size:7px!important}

  .dashboard-choice-grid,.dashboard-choice-grid.cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
