/* Desktop / notebook responsive layout. Mobile rules remain untouched. */
@media (min-width: 900px){
  body{padding:20px 0 110px;background:radial-gradient(circle at 50% -10%,#f7f5ec 0,#edf0e9 48%,#e7ebe4 100%)}
  .app-shell{width:min(calc(100% - 40px),1360px);min-height:calc(100vh - 40px);margin:0 auto;border-radius:30px;overflow:hidden;box-shadow:0 28px 80px rgba(20,48,35,.15);border:1px solid rgba(22,63,46,.07);padding-bottom:96px}
  .topbar{height:82px;padding:0 30px;border-radius:30px 30px 0 0}
  .brand{gap:13px}.brand-crest{width:48px;height:53px}.brand strong{font-size:17px}.brand span{font-size:12px}.top-stats{gap:9px}.stat{font-size:15px;padding:9px 12px}
  .view{padding:28px 32px 44px;min-height:calc(100vh - 190px)}
  .bottom-nav{width:min(calc(100% - 40px),1360px);height:80px;bottom:20px;border-radius:0 0 30px 30px;padding:8px 22px;box-shadow:0 -10px 32px rgba(15,45,32,.055)}
  .nav-item{min-height:62px}.nav-item span{font-size:24px}.nav-item small{font-size:12px}.nav-crissia{width:30px!important;height:30px!important;font-size:15px!important}

  /* Home / trail uses the extra horizontal space instead of stretching one phone column. */
  .trail-top{padding:24px 28px}.trail-world-label b{font-size:25px}.trail-overview{margin:18px 0 16px}.trail-resume{padding:18px 20px}.trail-resume h2{font-size:20px}.trail-resume p{font-size:13px}
  .trail-unit{max-width:920px;margin-left:auto;margin-right:auto;padding:16px 14px 24px}.unit-banner{padding:17px 20px}.unit-banner h3{font-size:18px}.unit-banner p{font-size:12px}
  .duo-path{padding:20px 0 8px}.trail-step{min-height:130px}.trail-node{width:150px;min-height:120px}.trail-node .node-icon{width:78px;height:78px;font-size:30px}.node-title{max-width:145px;font-size:12px}.trail-node small{font-size:9px}
  .next-worlds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px}.next-worlds>.section-title{grid-column:1/-1;margin-bottom:2px}.world-preview{margin:0;min-height:92px;padding:16px}.world-preview>span{width:58px;height:58px;font-size:28px}.world-preview b{font-size:15px}.world-preview p{font-size:11px}.world-preview i{font-size:10px;max-width:100px}
  .mastery-home{padding:20px}.mastery-home h3{font-size:19px}.mastery-home p{font-size:12px}.mastery-home-metrics{grid-template-columns:repeat(3,1fr)}

  /* General dashboard surfaces. */
  .section-title h2{font-size:24px}.section-title p{font-size:14px}.cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mini-card{min-height:150px;padding:20px}.challenge-card{padding:20px}.farm-land{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}.farm-structure{min-height:118px}.farm-structure span{font-size:36px}.farm-structure b{font-size:12px}.farm-roadmap{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.farm-pro{padding:20px}.farm-pro-decision>div{grid-template-columns:repeat(3,minmax(0,1fr))}.farm3-stock-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-hero{padding:30px}.crissia-chat{max-height:56vh}

  /* Sheets become proper desktop dialogs instead of phone-width bottom sheets. */
  .sheet{width:min(92vw,1080px);max-height:90vh;margin:auto;border-radius:28px;padding:0}.sheet-head{padding:18px 24px}.sheet-head>div{font-size:16px}.sheet-body{padding:24px 28px 30px;max-height:78vh}.quiz-question{font-size:21px}.answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.answer{min-height:60px;padding:14px}.explain{font-size:14px}

  /* World-specific desktop compositions. */
  .nutrition-shortcuts,.ento-shortcuts,.fito-shortcuts,.irr-shortcuts,.calc-shortcuts,.crop-shortcuts,.machine-shortcuts,.climate-shortcuts{gap:11px}.nutrition-hero,.ento-hero,.fito-hero,.irr-hero,.calc-hero,.crop-hero,.machine-hero,.climate-hero{padding:25px 28px}.nutrition-hero h2,.ento-hero h2,.fito-hero h2,.irr-hero h2,.crop-hero h2,.machine-hero h2,.climate-hero h2{font-size:28px}.calc-hero h2{font-size:31px}
  .machine-atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.operation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.machine-card{padding:14px}.machine-card b{font-size:13px}.machine-card p{font-size:10px}.machine-parts{grid-template-columns:repeat(3,minmax(0,1fr))}.machine-art{height:190px}.tractor-board{height:250px}
  .crop-atlas{grid-template-columns:repeat(3,minmax(0,1fr))}.season-crops{grid-template-columns:repeat(3,minmax(0,1fr))}.crop-detail-grid,.crop-form{grid-template-columns:repeat(3,minmax(0,1fr))}.season-report-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .weather-station{grid-template-columns:repeat(3,minmax(0,1fr))}.climate-risk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.climate-decision-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.climate-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.climate-station-scene{height:250px}.climate-chart{height:190px}
  .weed-herb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.weed-spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weed-field{height:250px}.weed-map{grid-template-columns:repeat(5,minmax(0,1fr))}
  .formula-lab{grid-template-columns:repeat(3,minmax(0,1fr))}.calc-fields,.calc-unit-converter,.field-scenario{grid-template-columns:repeat(3,minmax(0,1fr))}.calc-finance{grid-template-columns:repeat(4,minmax(0,1fr))}.calc-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  .domain-worlds{grid-template-columns:repeat(2,minmax(0,1fr))}.producer-options{grid-template-columns:repeat(2,minmax(0,1fr))}.adv-stations{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width: 1400px){
  .app-shell,.bottom-nav{width:min(calc(100% - 56px),1480px)}
  .view{padding-left:40px;padding-right:40px}
  .sheet{width:min(90vw,1160px)}
  .next-worlds{grid-template-columns:repeat(3,minmax(0,1fr))}
  .farm-land{grid-template-columns:repeat(5,minmax(0,1fr))}
  .machine-atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .weather-station{grid-template-columns:repeat(5,minmax(0,1fr))}
}