/* «Вразвитии», 2026-11-05. Planning clock range: date/start/end,
   Focus timeline start/end labels; actual elapsed timer remains separate. */
.modal-form[data-form="task"] .task-datetime-fields {
  display:grid;
  grid-template-columns:minmax(125px,1.3fr) repeat(2,minmax(91px,1fr));
  column-gap:9px;
  row-gap:11px;
  width:100%;
  min-width:0;
  max-width:100%;
  align-items:start;
}
.modal-form[data-form="task"] .task-datetime-fields[hidden]{display:none!important}
.modal-form[data-form="task"] .task-datetime-fields>.field {
  min-width:0;
  max-width:100%;
  width:100%;
}
.modal-form[data-form="task"] .task-datetime-fields>.field input {
  box-sizing:border-box;
  display:block;
  min-width:0;
  max-width:100%;
  width:100%;
  font-size:16px!important;
  padding:10px 8px;
  min-height:44px;
  font-variant-numeric:tabular-nums;
  overflow:hidden;
  white-space:nowrap;
}
.modal-form[data-form="task"] .task-datetime-fields>.field label{
  display:block;
  margin-bottom:5px;
  font-size:12px;
  white-space:nowrap;
}
.modal-form[data-form="task"] .task-datetime-fields input::-webkit-date-and-time-value{
  min-width:0;
  text-align:left;
}
.modal-form[data-form="task"] .task-datetime-fields input::-webkit-datetime-edit {
  min-width:0;
  padding:0;
}
.modal-form[data-form="task"] .task-datetime-fields input::-webkit-calendar-picker-indicator {
  flex:none;
  margin:0 0 0 2px;
  width:15px;
  height:15px;
}
/* On iPhone the date picker must not be squeezed to an unreadable native
   intrinsic width. Three inputs remain available: date over start + finish. */
@media(max-width:599px){
  .modal-form[data-form="task"] .task-datetime-fields{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .modal-form[data-form="task"] .task-datetime-fields>.field:first-child{
    grid-column:1 / -1;
  }
  .modal-form[data-form="task"] .task-datetime-fields>.field input{
    width:100%;
    min-width:0;
    padding:10px 9px;
    font-size:16px!important;
  }
}
/* The date-only planning option must not show either clock input. */
.modal-form[data-form="task"]:has([name="scheduleMode"] option[value="today"]:checked) .task-datetime-fields{
  grid-template-columns:minmax(0,1fr);
}
.modal-form[data-form="task"]:has([name="scheduleMode"] option[value="today"]:checked) .task-datetime-fields>.field:nth-child(2),
.modal-form[data-form="task"]:has([name="scheduleMode"] option[value="today"]:checked) .task-datetime-fields>.field:nth-child(3){
  display:none!important;
}
/* Focus V7: first line = scheduled start; second = scheduled completion. */
.v7-focus .v7-timeline-row>.v7-tick{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-start;
  align-self:stretch;
  height:100%;
  min-height:66px;
  padding:19px 0 11px;
  gap:7px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.v7-focus .v7-tick-start,
.v7-focus .v7-tick-end{
  display:block;
  font-size:11px;
  line-height:1.15;
  font-weight:700;
  color:#8E775D;
}
.v7-focus .v7-tick-end{color:#A08E79}
.v7-focus .v7-tick-end small{
  display:block;
  white-space:normal;
  font-size:8px;
  font-weight:600;
}
.v7-focus .v7-timeline-row>.v7-tick::after{top:23px}
.v7-focus .v7-timeline-row>.v7-tick::before{
  content:"";
  position:absolute;
  right:-8px;
  bottom:14px;
  width:7px;height:7px;
  border:2px solid #D2B486;
  border-radius:50%;
  background:#FAF7F2;
}
.v7-focus .v7-tick-end{letter-spacing:-.03em}
.v7-focus .v7-event-titles small{
  font-variant-numeric:tabular-nums;
}
@media(max-width:350px){
  .v7-focus .v7-tick-start,.v7-focus .v7-tick-end{font-size:10px}
  .v7-focus .v7-timeline-row>.v7-tick::before{right:-7px}
}

/* Approved 05.11: two compact labels, never a connecting stroke or dash. */
.v7-focus .v7-timeline:before,
.v7-focus .v7-timeline-row>.v7-tick:after,
.v7-focus .v7-timeline-row>.v7-tick:before{display:none!important;content:none!important}
.v7-focus .v7-timeline-row>.v7-tick{
  align-self:start!important;
  height:auto!important;min-height:0!important;
  padding:15px 0 0!important;
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:flex-start!important;
  gap:2px!important;
}
.v7-focus .v7-tick-start,
.v7-focus .v7-tick-end{
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
  font-variant-numeric:tabular-nums;
}
.v7-focus .v7-tick-start{color:#0F2A44!important}
.v7-focus .v7-tick-end{color:#907D67!important}
/* Approved task form: compact three adjacent fields on mainstream iPhones.
   At 320 px there is not enough room for native Safari picker affordances,
   so keep the accessible date-above-two-clocks fallback. */
@media (min-width:375px) and (max-width:599px) {
 .modal-form[data-form="task"] .task-datetime-fields {
   grid-template-columns:minmax(119px,1.35fr) repeat(2,minmax(85px,1fr)) !important;
   column-gap:5px !important;
   row-gap:8px !important;
 }
 .modal-form[data-form="task"] .task-datetime-fields>.field:first-child {
   grid-column:auto !important;
 }
 .modal-form[data-form="task"] .task-datetime-fields>.field input {
   min-width:0!important;
   width:100%!important;
   max-width:100%!important;
   padding:9px 5px!important;
   font-size:16px!important;
   line-height:1.25!important;
 }
 .modal-form[data-form="task"] .task-datetime-fields input::-webkit-calendar-picker-indicator {
   margin-left:0!important;
   width:14px!important;height:14px!important;
 }
}
@media(max-width:374px){
 .modal-form[data-form="task"]{
    grid-template-columns:minmax(0,1fr)!important;
 }
 .modal-form[data-form="task"] .task-datetime-fields {
    width:100%!important;min-width:0!important;max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 .modal-form[data-form="task"] .task-datetime-fields>.field,
 .modal-form[data-form="task"] .task-datetime-fields>.field input {
    min-width:0!important;max-width:100%!important;
 }
}
