/* HTNS v281 — My Schedule unified compact list.
   Removes the section kicker and team badge, and turns the schedule into
   one clean card with flat divider rows instead of nested row cards. */

/* Legacy metadata is intentionally not shown in My Schedule. */
#modal .my-schedule-kicker,
#modal .my-schedule-time,
#modal .my-schedule-team,
#modal .my-schedule-body{
  display:none !important;
}

/* Keep the modal visually light and slightly more compact. */
#modal .my-schedule-sheet{
  width:min(100%,430px) !important;
  max-width:430px !important;
  max-height:min(78dvh,590px) !important;
}

#modal .my-schedule-header{
  padding:14px 48px 10px 14px !important;
}

#modal .my-schedule-sheet h3{
  margin:0 0 3px !important;
  font-size:17px !important;
}

#modal .my-schedule-hint{
  font-size:9.3px !important;
  line-height:1.3 !important;
}

#modal .my-schedule-close{
  top:11px !important;
  right:11px !important;
}

/* One outer schedule card instead of a stack of nested cards. */
#modal .my-schedule-list{
  display:block !important;
  margin:10px 11px 11px !important;
  padding:0 !important;
  max-height:calc(min(78dvh,590px) - 78px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  -webkit-overflow-scrolling:touch !important;

  border:1px solid #DDE6ED !important;
  border-radius:14px !important;
  background:#FFFFFF !important;
  box-shadow:none !important;
}

/* Flat compact rows separated by one hairline divider. */
#modal .my-schedule-row{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) !important;
  align-items:center !important;
  gap:8px !important;

  min-height:39px !important;
  margin:0 !important;
  padding:6px 10px !important;

  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

#modal .my-schedule-row + .my-schedule-row{
  border-top:1px solid #E7EDF2 !important;
}

#modal .my-schedule-row::before{
  display:none !important;
  content:none !important;
}

#modal .my-schedule-top{
  display:contents !important;
}

#modal .my-schedule-date{
  min-width:0 !important;
  color:#0B315D !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:950 !important;
  white-space:nowrap !important;
}

#modal .my-schedule-meta{
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  gap:4px !important;
}

/* Roles remain scannable, but use soft tag styling rather than nested outlined cards. */
#modal .my-schedule-role{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  min-height:21px !important;
  padding:3px 7px !important;

  border:0 !important;
  border-radius:999px !important;
  background:#F1F6FA !important;
  color:#173658 !important;

  font-size:8.4px !important;
  line-height:1.05 !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  text-align:center !important;
}

/* Empty state belongs inside the same unified card. */
#modal .my-schedule-empty{
  margin:0 !important;
  padding:18px 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#7A8B9C !important;
  box-shadow:none !important;
}

[data-theme="dark"] #modal .my-schedule-list{
  background:#102F50 !important;
  border-color:#315777 !important;
}

[data-theme="dark"] #modal .my-schedule-row + .my-schedule-row{
  border-top-color:#294D6B !important;
}

[data-theme="dark"] #modal .my-schedule-role{
  background:#173D5F !important;
  color:#EEF6FD !important;
}

@media(max-width:430px){
  #modal .my-schedule-sheet{
    width:100% !important;
    max-width:390px !important;
    max-height:76dvh !important;
  }

  #modal .my-schedule-header{
    padding:13px 45px 9px 13px !important;
  }

  #modal .my-schedule-sheet h3{
    font-size:16px !important;
  }

  #modal .my-schedule-list{
    margin:8px 9px 9px !important;
    max-height:calc(76dvh - 72px) !important;
    border-radius:13px !important;
  }

  #modal .my-schedule-row{
    grid-template-columns:58px minmax(0,1fr) !important;
    min-height:37px !important;
    gap:6px !important;
    padding:5px 8px !important;
  }

  #modal .my-schedule-date{
    font-size:13.5px !important;
  }

  #modal .my-schedule-meta{
    gap:3px !important;
  }

  #modal .my-schedule-role{
    min-height:20px !important;
    padding:3px 6px !important;
    font-size:8.1px !important;
  }
}

@media(max-height:580px){
  #modal .my-schedule-sheet{
    max-height:calc(100dvh - 24px) !important;
  }

  #modal .my-schedule-list{
    max-height:calc(100dvh - 94px) !important;
  }
}
