/* v1.4.59: Home daily/monthly/shift and request sheets share the
   350ms GPU-composited rise used by registration/settings sheets.
   Existing close/drag animations are kept entirely unchanged. */
.v1459-home-motion.v1250-sheet-backdrop,
.v1459-home-motion.v1344-editor-backdrop{
  animation:none!important;
}
.v1459-home-motion.v1250-sheet-backdrop.v1265-sheet-opening .v1250-sheet,
.v1459-home-motion.v1250-sheet-backdrop .v1250-sheet,
.v1459-home-motion.v1344-editor-backdrop .v1344-editor-sheet{
  animation:none!important;
  -webkit-animation:none!important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:transform;
}
/* Stable height avoids a mid-animation jump when a remote response fills the card. */
.v1459-home-motion.v1344-calendar-sheet>.v1250-sheet,
.v1459-home-motion.v1250-sheet-backdrop:has(.v1331-history-loading)>.v1250-sheet{
  min-height:min(72dvh,630px);
}
.v1459-month-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0}
.v1459-month-heading>strong{flex:0 0 auto}
.v1459-total-hours{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:4px 8px;border:1px solid #d5e7d9;border-radius:9px;background:#edf7f0;color:#335f40;line-height:1.2}
.v1459-total-hours small{font-size:9px;font-weight:850}
.v1459-total-hours b{font-size:12px;font-weight:950;font-variant-numeric:tabular-nums}
@media(max-width:440px){
  .v1341-month-title{gap:5px!important}
  .v1459-month-heading{gap:4px 6px}
  .v1341-month-title .v1459-month-heading>strong{font-size:13px}
  .v1459-total-hours{padding:4px 5px;gap:4px}
  .v1459-total-hours small{font-size:8px}
  .v1459-total-hours b{font-size:10px}
  .v1341-month-title .v1341-staff-select{min-width:90px;max-width:110px;padding-left:6px;padding-right:20px;font-size:9px}
}
/* Calendar and results can grow after asynchronous fetch. Lock their outer
   height while loading so the position is unaffected by DOM replacements. */
.v1459-home-motion.v1459-stable>.v1250-sheet{
  height:min(81dvh,680px);
  max-height:calc(100dvh - 6px);
  display:flex;
  flex-direction:column;
}
.v1459-home-motion.v1459-stable>.v1250-sheet>.v1264-sheet-grab-area,
.v1459-home-motion.v1459-stable>.v1250-sheet>.v1250-sheet-head{flex:0 0 auto}
.v1459-home-motion.v1459-stable>.v1250-sheet>.v1250-sheet-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
}

/* 修正履歴 is a view WITHIN the request card, not a second card. */
.v1459-history-rising{animation:v1459HistoryIn .35s cubic-bezier(.30,.34,.26,1) both}
@keyframes v1459HistoryIn{from{opacity:.35;transform:translate3d(0,18px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
