/* 업무 상세의 빠른 할 일 추가 UI 전용 보정 */
#workDetail .task-add-card.is-collapsed .task-add-head,
#workDetail .task-add-head { min-height: 58px; padding: 10px 12px; }
#workDetail .task-add-chevron { color: var(--muted); font-size: 20px; font-weight: 900; }
#workDetail .project-task-composer.task-composer-expanded { gap: 8px; padding: 10px 12px 12px; }
#workDetail .task-title-field { padding-bottom: 8px; }
#workDetail .task-title-input,
#workDetail .task-field .date-button,
#workDetail .task-field .time-button,
#workDetail .task-field .custom-select { min-height: 40px; height: 40px; border-radius: 9px; padding: 7px 10px; font-size: 13px; }
#workDetail .task-form-grid { display: grid; grid-template-columns: .9fr .9fr .8fr 1.4fr; grid-template-areas: "owner type date time"; gap: 8px; border: 0; }
#workDetail .task-form-column,
#workDetail .task-form-column + .task-form-column { display: contents; }
#workDetail .task-form-column:first-child > .task-field:first-child { grid-area: owner; }
#workDetail .task-form-column:first-child > .task-field:nth-child(2) { grid-area: date; }
#workDetail .task-form-column:nth-child(2) > .task-field:first-child { grid-area: type; }
#workDetail .task-form-column:nth-child(2) > .task-field:nth-child(2) { grid-area: time; }
#workDetail .task-field { gap: 3px; }
#workDetail .task-field > span { font-size: 12px; }
#workDetail .is-conditionally-hidden { display: none !important; }
#workDetail .task-option-row { min-height: 38px; gap: 8px; border: 0; padding: 2px 0; }
#workDetail .task-detail-toggle { justify-self: start; min-height: 34px; background: transparent; color: var(--near); padding: 0 4px; font-size: 12px; font-weight: 850; }
#workDetail .task-detail-field { display: none; padding: 0; }
#workDetail .task-detail-field.is-open { display: grid; }
#workDetail .task-detail-field textarea { min-height: 60px; max-height: 96px; border-radius: 9px; padding: 9px 10px; font-size: 13px; }
#workDetail .task-form-footer { gap: 7px; padding-top: 0; }
#workDetail .task-form-footer .pill { min-height: 38px; padding: 7px 16px; font-size: 12px; }
#workDetail .task-sort-tools { grid-template-columns: auto auto auto 1fr; }
#workDetail .work-task-hide-done { justify-self: end; }
body.picker-scroll-locked { overflow: hidden; overscroll-behavior: none; }
.picker-scroll-locked-panel { overflow: hidden !important; overscroll-behavior: none; }
.basic-save-btn { min-width: 88px; opacity: .58; transition: opacity .16s ease, box-shadow .16s ease, transform .16s ease; }
.basic-save-btn.is-dirty { opacity: 1; box-shadow: 0 0 0 3px rgba(30, 215, 96, .15); }
.basic-save-btn.is-dirty::before { content: "•"; margin-right: 6px; }
.unsaved-basic-modal { z-index: 420; }
.unsaved-basic-card { width: min(470px, calc(100vw - 28px)); }
.unsaved-basic-icon { background: rgba(30, 215, 96, .14); color: var(--accent); }
.unsaved-basic-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unsaved-basic-actions .pill { width: 100%; min-width: 0; }
.date-picker-card, .time-picker-card, .date-picker-days, .time-picker-column { overscroll-behavior: contain; }
.time-picker-card { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 316px; }
.time-picker-heading, .time-picker-actions { display: flex; align-items: center; justify-content: space-between; }
.time-picker-heading small { color: var(--muted); font-size: 11px; }
.time-picker-columns { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 8px; min-height: 0; }
.time-picker-column { max-height: 210px; overscroll-behavior: contain; }
.time-picker-actions { display: flex; gap: 8px; justify-content: flex-end; }
.time-picker-actions button { min-height: 34px; border-radius: 8px; background: var(--surface-2); color: var(--text); padding: 0 14px; font-size: 12px; font-weight: 850; }
.time-picker-actions [data-time-apply] { background: var(--accent); color: #061007; }

/* 영상 프로젝트 할 일 추가를 업무 할 일 추가 양식과 통일 */
#projectDetail .task-add-card.is-collapsed .task-add-head,
#projectDetail .task-add-head { min-height: 58px; padding: 10px 12px; }
#projectDetail .task-add-chevron { color: var(--muted); font-size: 20px; font-weight: 900; }
#projectDetail .project-task-composer.task-composer-expanded { gap: 8px; padding: 10px 12px 12px; }
#projectDetail .task-title-field { padding-bottom: 8px; }
#projectDetail .task-title-input,
#projectDetail .task-field .date-button,
#projectDetail .task-field .time-button,
#projectDetail .task-field .custom-select { min-height: 40px; height: 40px; border-radius: 9px; padding: 7px 10px; font-size: 13px; }
#projectDetail .task-form-grid { display: grid; grid-template-columns: .9fr .9fr .8fr 1.4fr; grid-template-areas: "owner type date time"; gap: 8px; border: 0; }
#projectDetail .task-form-column,
#projectDetail .task-form-column + .task-form-column { display: contents; }
#projectDetail .task-form-column:first-child > .task-field:first-child { grid-area: owner; }
#projectDetail .task-form-column:first-child > .task-field:nth-child(2) { grid-area: date; }
#projectDetail .task-form-column:nth-child(2) > .task-field:first-child { grid-area: type; }
#projectDetail .task-form-column:nth-child(2) > .task-field:nth-child(2) { grid-area: time; }
#projectDetail .task-field { gap: 3px; }
#projectDetail .task-field > span { font-size: 12px; }
#projectDetail .is-conditionally-hidden { display: none !important; }
#projectDetail .task-option-row { min-height: 38px; gap: 8px; border: 0; padding: 2px 0; }
#projectDetail .task-detail-toggle { justify-self: start; min-height: 34px; background: transparent; color: var(--near); padding: 0 4px; font-size: 12px; font-weight: 850; }
#projectDetail .task-detail-field { display: none; padding: 0; }
#projectDetail .task-detail-field.is-open { display: grid; }
#projectDetail .task-detail-field textarea { min-height: 60px; max-height: 96px; border-radius: 9px; padding: 9px 10px; font-size: 13px; }
#projectDetail .task-form-footer { gap: 7px; padding-top: 0; }
#projectDetail .task-form-footer .pill { min-height: 38px; padding: 7px 16px; font-size: 12px; }
@media (max-width: 768px) {
  #projectDetail.detail-shell.open,
  #workDetail.detail-shell.open {
    inset: 0;
    min-height: 100dvh;
    overflow-y: auto;
    background: #05090b;
  }
  #projectDetail .detail-page,
  #workDetail .detail-page {
    min-height: 100dvh;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
    background: #05090b;
  }
  #projectDetail .basic-save-btn,
  #workDetail .basic-save-btn { min-width: 72px; height: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
  .unsaved-basic-card { padding: 18px; border-radius: 20px; }
  .unsaved-basic-actions { gap: 7px; }
  .unsaved-basic-actions .pill { min-height: 44px; padding-inline: 8px; }
  #workDetail .task-add-card.is-collapsed .task-add-head,
  #workDetail .task-add-head { min-height: 52px; padding: 9px 11px; }
  #workDetail .task-add-title small { display: none; }
  #workDetail .project-task-composer.task-composer-expanded { padding: 10px; }
  #workDetail .task-form-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "owner type" "date date" "time time"; }
  #workDetail .task-time-range { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 8px; align-items: end; }
  #workDetail .task-time-range > div { min-width: 0; }
  #workDetail .task-time-range > span { display: grid; place-items: center; width: 18px; }
  #workDetail .task-option-row { gap: 6px; }
  #workDetail .task-detail-toggle { width: 100%; justify-self: stretch; text-align: left; }
  #workDetail .task-form-footer { justify-content: flex-end; }
  #workDetail .task-sort-tools { grid-template-columns: auto auto 1fr; }
  #workDetail .task-sort-tools > span { display: none; }
  .date-picker-layer.open, .time-picker-layer.open { position: fixed; inset: auto 0 0 0; width: 100%; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .62); }
  .date-picker-card, .time-picker-card { width: min(100%, 440px); margin: 0 auto; border-radius: 18px 18px 12px 12px; }
  .time-picker-card { max-height: 320px; }
  .time-picker-column { max-height: 210px; overflow-y: auto; touch-action: pan-y; }
  #workDetail .detail-page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mobile-project-dday,
  .mobile-dday-badge {
    min-width: 54px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
  .mobile-project-dday.safe,
  .mobile-dday-badge.safe { background: rgba(30, 215, 96, .18); color: #45e47f; }
  .mobile-project-dday.mid,
  .mobile-dday-badge.mid { background: rgba(197, 177, 49, .20); color: #e7d45e; }
  .mobile-project-dday.soon,
  .mobile-dday-badge.soon { background: rgba(255, 138, 31, .20); color: #ffac59; }
  .mobile-project-dday.today,
  .mobile-dday-badge.today { background: rgba(211, 55, 62, .28); color: #ff7c84; }
  .mobile-project-dday.overdue,
  .mobile-dday-badge.overdue { background: rgba(126, 58, 68, .42); color: #ff8290; }
  .mobile-project-dday.done,
  .mobile-dday-badge.done { background: rgba(30, 215, 96, .14); color: #45e47f; }
  .mobile-project-dday.none,
  .mobile-dday-badge.none { background: rgba(255, 255, 255, .10); color: #c8cdd1; }
  .mobile-project-side { align-items: center; }

  .mobile-fab {
    display: grid;
    place-items: center;
    position: relative;
    padding: 0;
    font-size: 0;
    line-height: 1;
  }
  .mobile-fab::before,
  .mobile-fab::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: #031006; transform: translate(-50%, -50%); }
  .mobile-fab::before { width: 30px; height: 5px; }
  .mobile-fab::after { width: 5px; height: 30px; }

  #projectDetail .task-main > input[type="checkbox"],
  #workDetail .task-main > input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    aspect-ratio: 1;
    flex: 0 0 22px;
    border: 2px solid #70777d;
    border-radius: 4px;
    background: #171a1d;
    box-shadow: none;
    padding: 0;
  }
  #projectDetail .task-main > input[type="checkbox"]:checked,
  #workDetail .task-main > input[type="checkbox"]:checked {
    border-color: var(--accent);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10.2 8.4 13.5 15.2 6.5' fill='none' stroke='%23020b05' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
  }
}
