/* Agora workspace: desktop presentation only. Shared components and compact
   layouts remain in styles.css / now-inline-meals.css. */
@media (min-width:1100px) {

  :where(:root[data-app-layout="desktop"]) #homeScreen #nowDaySections {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    grid-column:1!important;
    width:100%;
    min-width:0;
    margin:0;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowDaySections[hidden] {display:none!important}
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    width:100%;
    padding:0 0 16px;
    border-bottom:1px solid var(--line);
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar .now-inline-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    gap:7px;
    width:auto!important;
    min-width:44px!important;
    height:40px!important;
    min-height:40px!important;
    padding:8px 12px!important;
    border-radius:12px;
    font-size:.8rem;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar .now-inline-icon :is(img,svg,.interface-review-import-icon) {width:18px;height:18px;flex:none}
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar .now-inline-action-caption {
    position:static;
    inset:auto;
    transform:none;
    font-size:.75rem;
    line-height:1.2;
    color:inherit;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar .interface-review-now-actions {gap:8px;margin-inline-start:auto}
  :where(:root[data-app-layout="desktop"]) #homeScreen .now-day-block {
    display:grid!important;
    grid-template-columns:minmax(0,1fr);
    gap:12px!important;
    min-width:0;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen .now-day-block > [data-now-section] {
    justify-self:start;
    width:max-content;
    min-width:180px;
    max-width:100%;
    min-height:44px;
    padding:4px 10px 4px 0;
    gap:10px;
    border:0;
    border-radius:10px;
    background:transparent;
    font-size:.9rem;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen .now-day-block > [data-now-section]:hover {background:var(--surface-2)}
  :where(:root[data-app-layout="desktop"]) #homeScreen .now-day-icon {width:30px;height:30px;border-radius:10px}
  :where(:root[data-app-layout="desktop"]) #homeScreen .now-day-block > :is(#todayPanel,#nowTrainingPanel,#nowRestPanel):not([hidden]) {
    grid-column:1;
    width:100%;
    min-width:0;
    margin:0;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel {
    grid-column:1!important;
    min-height:0;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen.now-inline-active .now-inline-meals {
    width:100%;
    max-width:none;
    gap:14px;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen.now-inline-active #todayPanel .now-inline-list {
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    align-items:start;
    width:100%;
    gap:16px;
    padding:0;
    block-size:auto;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-list > .now-inline-card {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:0;
    height:auto;
    align-self:start;
    padding:12px!important;
    border-radius:18px;
    box-shadow:none;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-card.is-open {align-self:start;grid-column:1 / -1;grid-row:1}
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-card .now-inline-toggle {font-size:.82rem;line-height:1.3}
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-foods {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
    align-items:start;
    gap:12px;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-foods > :is(.meal-hydration-tip,[data-rest-water-open]) {
    grid-column:1 / -1;
    justify-self:start;
    width:max-content;
    max-width:100%;
    min-height:36px;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #todayPanel .now-inline-toolbar {
    justify-content:flex-start;
    justify-self:start;
    width:auto;
    padding-top:4px;
    gap:12px;
  }
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowRestPanel {width:100%;max-width:none;justify-items:stretch}
  :where(:root[data-app-layout="desktop"]) #homeScreen :is(#nowWeightCheckin,#nowRestSettings,#nowWaterPanel) {width:min(100%,560px);max-width:100%}
  :where(:root[data-app-layout="desktop"]) #homeScreen .home-actions:not([hidden]):not(.hidden) {grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
  :where(:root[data-app-layout="desktop"]) #homeScreen.home-pre-profile {min-height:auto;gap:16px}
  :where(:root[data-app-layout="desktop"]) #homeScreen.home-pre-profile #homeProfile {display:none}
}
@media (min-width:1100px) and (pointer:coarse) {
  :where(:root[data-app-layout="desktop"]) #homeScreen #nowCheckinToolbar .now-inline-icon {height:44px!important;min-height:44px!important}
}

/* Independent day columns; compact layouts keep the exclusive accordion. */
@media(min-width:1100px){
 :where(:root[data-app-layout="desktop"]) #app #homeScreen #nowDaySections {grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(0,1fr)!important;align-items:start;gap:18px}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen #nowDaySections > :not(.now-day-block) {grid-column:1 / -1}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen #nowDaySections > .now-day-block {grid-column:auto!important;align-content:start;min-width:0;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen .now-day-block > [data-now-section] {width:100%;min-width:0;font-size:.85rem}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen :is(#nowTrainingPanel,#nowRestPanel,#todayPanel) {container-type:inline-size;min-width:0;max-width:100%}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen #todayPanel .now-inline-list {grid-template-columns:minmax(0,1fr)!important}
 :where(:root[data-app-layout="desktop"]) #app #homeScreen :is(#nowTrainingPanel,#nowRestPanel) .grid2 {grid-template-columns:minmax(0,1fr)}
}

/* Descanso in the narrow desktop column: readable choices, stable controls. */
@media(min-width:1100px){
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-day-rating {display:block;min-width:0;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-day-rating > legend {float:none!important;width:auto!important;margin:0 0 8px;padding:0;background:transparent!important;font-size:.78rem;line-height:1.4;letter-spacing:normal;text-transform:none}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-point-scale {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:0}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-point-scale::before {content:none}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-point-scale label {display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:auto;align-items:center;justify-items:start;gap:8px;min-height:44px;padding:6px 8px;border:1px solid var(--line);border-radius:10px;text-align:start}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-point-scale.has-faces label {grid-template-columns:30px 16px minmax(0,1fr);grid-template-rows:auto;min-height:44px}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-point-scale label:has(:checked) {background:var(--blue-soft);border-color:var(--blue)}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-scale-caption {position:static!important;display:block!important;min-width:0;max-width:100%;font-size:12px!important;line-height:1.4!important;letter-spacing:normal!important;text-transform:none!important;white-space:normal!important;overflow-wrap:anywhere;text-align:start}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-scale-face {align-self:center}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-day-rating .rest-choice-line {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-actions {display:flex;flex-wrap:wrap;gap:8px}
 :where(:root[data-app-layout="desktop"]) #app #nowRestPanel .rest-actions button {min-height:44px;padding:8px 14px;font-size:.8rem}
}
