/* ShiftNevis Calendar & Needs mobile v4 — canonical native needs editor. */
@media (max-width: 760px) {
  .calendar-needs-mobile-detail--needs .calendar-needs-mobile-detail__head {
    grid-template-columns: 34px 40px minmax(0, 1fr) !important;
  }

  .calendar-needs-mobile-native-needs {
    display: grid !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .calendar-needs-mobile-duty,
  .calendar-needs-mobile-needs-block,
  .calendar-needs-mobile-guide {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #e5ddef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 23, 56, .035);
  }

  .calendar-needs-mobile-duty {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 104px;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border-color: #ddcff7;
    background: linear-gradient(145deg, #fff, #faf7ff);
  }

  .calendar-needs-mobile-duty__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #6d28d9;
    background: #efe7ff;
    font-size: 14px;
  }

  .calendar-needs-mobile-duty__copy {
    min-width: 0;
  }

  .calendar-needs-mobile-duty__copy b,
  .calendar-needs-mobile-duty__copy small {
    display: block;
  }

  .calendar-needs-mobile-duty__copy b {
    color: #2d2537;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 950;
  }

  .calendar-needs-mobile-duty__copy small {
    margin-top: 3px;
    color: #8a8094;
    font-size: 7.5px;
    line-height: 1.55;
    font-weight: 750;
  }

  .calendar-needs-mobile-duty__input {
    position: relative;
    min-width: 0;
  }

  .calendar-needs-mobile-duty__input .input {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 10px 0 38px !important;
    border: 1px solid #d9c9f3 !important;
    border-radius: 12px !important;
    color: #2e2438 !important;
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    text-align: center !important;
  }

  .calendar-needs-mobile-duty__input > span {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8195;
    font-size: 7px;
    font-weight: 850;
    pointer-events: none;
  }

  .calendar-needs-mobile-needs-block {
    padding: 11px;
  }

  .calendar-needs-mobile-subhead {
    margin-bottom: 10px;
  }

  .calendar-needs-mobile-subhead--with-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .calendar-needs-mobile-subhead > div {
    min-width: 0;
  }

  .calendar-needs-mobile-subhead span,
  .calendar-needs-mobile-subhead h3,
  .calendar-needs-mobile-subhead p {
    display: block;
  }

  .calendar-needs-mobile-subhead span {
    color: #7c3aed;
    font-size: 7.5px;
    font-weight: 900;
  }

  .calendar-needs-mobile-subhead h3 {
    margin: 2px 0 0;
    color: #2b2235;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 950;
  }

  .calendar-needs-mobile-subhead p {
    margin: 3px 0 0;
    color: #887e92;
    font-size: 7.5px;
    line-height: 1.55;
    font-weight: 750;
  }

  .calendar-needs-mobile-subhead--with-action > button {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid #d8c7f8;
    border-radius: 10px;
    color: #6d28d9;
    background: #f7f2ff;
    font: inherit;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
  }

  .calendar-needs-mobile-requirements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .calendar-needs-mobile-requirement {
    min-width: 0;
    padding: 9px 7px;
    overflow: hidden;
    border: 1px solid #dfd3f5;
    border-radius: 15px;
    background: linear-gradient(160deg, #fff, #f8f4ff);
  }

  .calendar-needs-mobile-requirement > header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 8px;
    text-align: right;
  }

  .calendar-needs-mobile-requirement__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6d28d9;
    background: #ede5ff;
    font-size: 8px;
    font-weight: 950;
  }

  .calendar-needs-mobile-requirement > header > div {
    min-width: 0;
  }

  .calendar-needs-mobile-requirement > header b,
  .calendar-needs-mobile-requirement > header small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-needs-mobile-requirement > header b {
    color: #33283e;
    font-size: 9px;
    font-weight: 950;
  }

  .calendar-needs-mobile-requirement > header small {
    margin-top: 1px;
    color: #91869c;
    font-size: 6.5px;
    font-weight: 750;
  }

  .calendar-needs-mobile-requirement__inputs {
    display: grid;
    gap: 6px;
  }

  .calendar-needs-mobile-requirement__inputs label {
    min-width: 0;
  }

  .calendar-needs-mobile-requirement__inputs label > span {
    display: block;
    margin-bottom: 3px;
    color: #766b82;
    font-size: 7px;
    font-weight: 850;
    text-align: center;
  }

  .calendar-needs-mobile-requirement__inputs .input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 5px !important;
    border: 1px solid #e5dded !important;
    border-radius: 11px !important;
    color: #5b21b6 !important;
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    text-align: center !important;
  }

  .calendar-needs-mobile-shift-list {
    display: grid;
    gap: 9px;
  }

  .calendar-needs-mobile-shift-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3d9ed;
    border-radius: 16px;
    background: #fff;
  }

  .calendar-needs-mobile-shift-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee8f3;
    background: #fbf9fd;
  }

  .calendar-needs-mobile-shift-card__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .calendar-needs-mobile-shift-card__identity > span {
    flex: 0 0 auto;
    min-width: 35px;
    height: 35px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #6d28d9;
    background: #eee7ff;
    font-size: 9px;
    font-weight: 950;
  }

  .calendar-needs-mobile-shift-card__identity > div {
    min-width: 0;
  }

  .calendar-needs-mobile-shift-card__identity b,
  .calendar-needs-mobile-shift-card__identity small {
    display: block;
  }

  .calendar-needs-mobile-shift-card__identity b {
    overflow: hidden;
    color: #2e2538;
    font-size: 10px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-needs-mobile-shift-card__identity small {
    margin-top: 2px;
    color: #8c8297;
    font-size: 7px;
    font-weight: 800;
  }

  .calendar-needs-mobile-shift-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .calendar-needs-mobile-shift-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .calendar-needs-mobile-shift-toggle > span {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #dcd5e4;
    transition: .16s ease;
  }

  .calendar-needs-mobile-shift-toggle > span::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.12);
    transition: .16s ease;
  }

  .calendar-needs-mobile-shift-toggle input:checked + span {
    background: #7c3aed;
  }

  .calendar-needs-mobile-shift-toggle input:checked + span::after {
    right: 17px;
  }

  .calendar-needs-mobile-shift-toggle em {
    color: #7c7285;
    font-size: 7px;
    font-style: normal;
    font-weight: 850;
  }

  .calendar-needs-mobile-shift-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .calendar-needs-mobile-shift-fields > label,
  .calendar-needs-mobile-shift-duration {
    position: relative;
    min-width: 0;
  }

  .calendar-needs-mobile-shift-fields label > span,
  .calendar-needs-mobile-shift-duration > span {
    display: block;
    margin-bottom: 4px;
    color: #786f82;
    font-size: 7.5px;
    font-weight: 850;
  }

  .calendar-needs-mobile-shift-fields .input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 1px solid #e4ddeb !important;
    border-radius: 11px !important;
    color: #2f2639 !important;
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 850 !important;
  }

  .calendar-needs-mobile-shift-fields input[type="time"] {
    direction: ltr !important;
    text-align: center !important;
  }

  .calendar-needs-mobile-shift-fields label > small {
    position: absolute;
    left: 9px;
    bottom: 14px;
    color: #92889b;
    font-size: 7px;
    font-weight: 800;
    pointer-events: none;
  }

  .calendar-needs-mobile-shift-duration {
    min-height: 44px;
    align-self: end;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e7dff0;
    border-radius: 11px;
    background: #f8f5fc;
  }

  .calendar-needs-mobile-shift-duration > span {
    margin: 0;
    font-size: 6.8px;
  }

  .calendar-needs-mobile-shift-duration > b {
    margin-top: 2px;
    color: #5b21b6;
    font-size: 10px;
    font-weight: 950;
  }

  .calendar-needs-mobile-shift-card > footer {
    padding: 0 10px 10px;
  }

  .calendar-needs-mobile-shift-delete {
    width: 100%;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #f2d2d8;
    border-radius: 10px;
    color: #b42345;
    background: #fff7f8;
    font: inherit;
    font-size: 8px;
    font-weight: 900;
  }

  .calendar-needs-mobile-guide {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: #5f5670;
    background: #f7f3ff;
    font-size: 7.5px;
    line-height: 1.65;
    font-weight: 800;
  }

  .calendar-needs-mobile-guide > i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6d28d9;
    background: #fff;
  }

  @media (max-width: 430px) {
    .calendar-needs-mobile-duty {
      grid-template-columns: 38px minmax(0, 1fr) 92px;
      gap: 7px;
      padding: 9px;
    }

    .calendar-needs-mobile-duty__icon {
      width: 38px;
      height: 38px;
    }

    .calendar-needs-mobile-requirements {
      gap: 5px;
    }

    .calendar-needs-mobile-requirement {
      padding: 8px 5px;
    }

    .calendar-needs-mobile-requirement > header {
      gap: 4px;
    }

    .calendar-needs-mobile-requirement__icon {
      width: 25px;
      height: 25px;
    }
  }

  @media (max-width: 360px) {
    .calendar-needs-mobile-duty {
      grid-template-columns: 38px minmax(0, 1fr);
    }

    .calendar-needs-mobile-duty__input {
      grid-column: 1 / -1;
    }

    .calendar-needs-mobile-requirements {
      grid-template-columns: 1fr;
    }

    .calendar-needs-mobile-requirement__inputs {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-needs-mobile-shift-fields {
      grid-template-columns: 1fr;
    }
  }
}
