/* Pendências — hub Kanban (ChargeOnSite-inspired) */
.tasks-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  --tk-orange: var(--hz-primary, #ff5300);
  --tk-card: var(--hz-surface-container-lowest, #fff);
  --tk-soft: color-mix(in srgb, var(--hz-surface-container-low) 88%, #eef1f5);
  --tk-ink: var(--hz-on-surface, #1c1b1f);
  --tk-muted: var(--hz-on-surface-variant, #6b7280);
  --tk-line: color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  --tk-radius: 16px;
  --tk-shadow: 0 8px 24px color-mix(in srgb, #0f172a 6%, transparent);
}

.tasks-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tasks-hub-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--tk-ink);
  line-height: 1.15;
}

.tasks-hub-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tk-muted);
}

.tasks-hub-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tasks-hub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
}

.tasks-hub-tab {
  border: none;
  background: transparent;
  color: var(--tk-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tasks-hub-tab:hover {
  color: var(--tk-ink);
}

.tasks-hub-tab.is-active {
  background: var(--tk-orange);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tk-orange) 35%, transparent);
}

.tasks-hub-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--tk-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tk-orange) 28%, transparent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tasks-hub-add:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.tasks-hub-add .material-symbols-outlined {
  font-size: 18px;
}

.tasks-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tasks-hub-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
}

.tasks-hub-search .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--tk-muted);
  pointer-events: none;
}

.tasks-hub-search input {
  width: 100%;
  border: 1px solid var(--tk-line);
  background: var(--tk-card);
  border-radius: 14px;
  padding: 10px 36px 10px 40px;
  font-size: 13px;
  color: var(--tk-ink);
  outline: none;
}

.tasks-hub-search input:focus {
  border-color: color-mix(in srgb, var(--tk-orange) 55%, var(--tk-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk-orange) 18%, transparent);
}

.tasks-hub-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--tk-muted);
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}

.tasks-hub-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tasks-hub-chip {
  border: 1px solid var(--tk-line);
  background: var(--tk-card);
  color: var(--tk-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tasks-hub-chip:hover {
  color: var(--tk-ink);
}

.tasks-hub-chip.is-active {
  border-color: var(--tk-orange);
  background: color-mix(in srgb, var(--tk-orange) 12%, #fff);
  color: var(--tk-orange);
}

.tasks-hub-chip.is-day {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tasks-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tasks-kpi {
  position: relative;
  overflow: hidden;
  background: var(--tk-card);
  border-radius: var(--tk-radius);
  box-shadow: var(--tk-shadow);
  border: 1px solid color-mix(in srgb, var(--tk-line) 80%, transparent);
  padding: 16px 18px 14px;
  min-height: 92px;
  animation: tasks-kpi-in 0.45s ease both;
}

.tasks-kpi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--tk-orange);
}

.tasks-kpi-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-muted);
  letter-spacing: 0.01em;
}

.tasks-kpi-value {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--tk-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tasks-kpi-icon {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tk-orange) 10%, transparent);
  color: var(--tk-orange);
}

.tasks-kpi-icon .material-symbols-outlined {
  font-size: 18px;
}

.tasks-kpi--date {
  background: linear-gradient(145deg, #1a2332 0%, #0f172a 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px color-mix(in srgb, #0f172a 28%, transparent);
}

.tasks-kpi--date::before {
  background: var(--tk-orange);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tk-orange) 55%, transparent);
}

.tasks-kpi--date .tasks-kpi-label {
  color: color-mix(in srgb, #fff 70%, transparent);
}

.tasks-kpi--date .tasks-kpi-value {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 10px;
  max-width: 78%;
}

.tasks-kpi--date .tasks-kpi-icon {
  background: color-mix(in srgb, var(--tk-orange) 22%, transparent);
  color: #fff;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 6px;
  min-height: 420px;
}

.tasks-col {
  background: color-mix(in srgb, var(--hz-surface-container-low) 92%, #e8ecf1);
  border: 1px solid var(--tk-line);
  border-radius: 18px;
  padding: 12px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tasks-col.is-drop {
  border-color: color-mix(in srgb, var(--tk-orange) 55%, var(--tk-line));
  background: color-mix(in srgb, var(--tk-orange) 8%, var(--hz-surface-container-low));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tk-orange) 20%, transparent);
}

.tasks-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 4px;
}

.tasks-col-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-ink);
}

.tasks-col-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #0f172a 8%, transparent);
  color: var(--tk-muted);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.tasks-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 120px;
}

.tasks-col-empty {
  margin: 24px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--tk-muted);
  opacity: 0.85;
}

.tasks-card {
  position: relative;
  background: var(--tk-card);
  border: 1px solid color-mix(in srgb, var(--tk-line) 85%, transparent);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: 0 4px 14px color-mix(in srgb, #0f172a 4%, transparent);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: tasks-card-in 0.35s ease both;
}

.tasks-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tk-orange) 40%, var(--tk-line));
  box-shadow: 0 12px 28px color-mix(in srgb, #0f172a 10%, transparent);
}

.tasks-card:active {
  cursor: grabbing;
}

.tasks-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
}

.tasks-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tasks-prio {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tasks-prio--high { color: var(--tk-orange); }
.tasks-prio--medium { color: #2563eb; }
.tasks-prio--low { color: #16a34a; }
.tasks-prio--done { color: #16a34a; }

.tasks-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tasks-card:hover .tasks-card-actions,
.tasks-card:focus-within .tasks-card-actions {
  opacity: 1;
}

.tasks-card-actions button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--tk-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tasks-card-actions button:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--tk-ink);
}

.tasks-card-actions button.is-danger:hover {
  color: var(--hz-error, #b3261e);
}

.tasks-card-actions .material-symbols-outlined {
  font-size: 16px;
}

.tasks-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--tk-ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tasks-card.is-done .tasks-card-title {
  color: var(--tk-muted);
}

.tasks-card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--tk-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tasks-card-progress {
  margin-top: 10px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tk-orange) 12%, #e5e7eb);
  overflow: hidden;
}

.tasks-card-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tk-orange), color-mix(in srgb, var(--tk-orange) 70%, #fbbf24));
  transition: width 0.35s ease;
}

.tasks-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.tasks-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 650;
  color: var(--tk-muted);
  background: color-mix(in srgb, var(--hz-surface-container-high) 75%, transparent);
  border-radius: 8px;
  padding: 3px 7px;
  text-transform: capitalize;
}

.tasks-tag .material-symbols-outlined {
  font-size: 12px;
}

.tasks-tag.is-overdue {
  color: var(--hz-error, #b3261e);
  background: color-mix(in srgb, var(--hz-error, #b3261e) 12%, transparent);
}

.tasks-tag.is-ok {
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 12%, transparent);
}

.tasks-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.tasks-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks-list-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--tk-card);
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--tk-shadow);
}

.tasks-list-row.is-done {
  opacity: 0.78;
}

.tasks-list-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--hz-outline, #cac4d0);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
}

.tasks-list-check.is-on {
  border-color: var(--tk-orange);
  background: var(--tk-orange);
}

.tasks-list-check .material-symbols-outlined {
  font-size: 16px;
}

.tasks-list-body {
  flex: 1;
  min-width: 0;
}

.tasks-list-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--tk-ink);
}

.tasks-list-side {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.tasks-list-side button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--tk-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tasks-list-side button:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--tk-ink);
}

.tasks-mini-cal {
  background: var(--tk-card);
  border: 1px solid var(--tk-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--tk-shadow);
  position: sticky;
  top: 12px;
}

.tasks-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tasks-cal-nav button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--tk-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tasks-cal-nav h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--tk-ink);
}

.tasks-cal-nav p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--tk-muted);
}

.tasks-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.tasks-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-muted);
  padding: 4px 0;
}

.tasks-cal-cell {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--tk-ink);
  padding: 0;
}

.tasks-cal-cell.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.tasks-cal-cell.is-today {
  border-color: color-mix(in srgb, var(--tk-orange) 45%, transparent);
}

.tasks-cal-cell.is-selected {
  background: color-mix(in srgb, var(--tk-orange) 14%, transparent);
  border-color: var(--tk-orange);
}

.tasks-cal-cell.has-due .tasks-cal-count {
  background: var(--tk-orange);
  color: #fff;
}

.tasks-cal-cell.is-overdue .tasks-cal-count {
  background: var(--hz-error, #b3261e);
}

.tasks-cal-daynum {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.tasks-cal-count {
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: transparent;
}

.tasks-cal-count.is-blank {
  visibility: hidden;
}

.tasks-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--tk-muted);
  background: var(--tk-card);
  border: 1px dashed var(--tk-line);
  border-radius: 18px;
}

.tasks-empty .material-symbols-outlined {
  font-size: 40px;
  opacity: 0.7;
}

@keyframes tasks-kpi-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tasks-card-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tasks-kpi:nth-child(1) { animation-delay: 0.02s; }
.tasks-kpi:nth-child(2) { animation-delay: 0.06s; }
.tasks-kpi:nth-child(3) { animation-delay: 0.1s; }
.tasks-kpi:nth-child(4) { animation-delay: 0.14s; }
.tasks-kpi:nth-child(5) { animation-delay: 0.18s; }

@media (max-width: 1100px) {
  .tasks-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tasks-board {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
  }
}

@media (max-width: 900px) {
  .tasks-list-layout {
    grid-template-columns: 1fr;
  }
  .tasks-mini-cal {
    position: static;
  }
}

@media (max-width: 720px) {
  .tasks-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tasks-board {
    grid-auto-flow: column;
    grid-template-columns: repeat(4, minmax(240px, 78vw));
  }
}
/* Task detail modal (card detail) */
.task-detail-modal {
  width: min(980px, 100%);
  max-height: min(92vh, 860px);
  background: var(--hz-surface-container-lowest, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 60px color-mix(in srgb, #0f172a 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tasks-card-in 0.28s ease both;
}
.task-detail-modal.is-schedule {
  width: min(98vw, 1600px);
  height: min(96vh, 1080px);
  max-height: min(96vh, 1080px);
}
.task-detail-modal.is-schedule .task-detail-side {
  display: none;
}
.task-detail-modal.is-schedule .task-detail-grid {
  grid-template-columns: 1fr;
}
.task-detail-modal.is-schedule .task-detail-main {
  padding: 10px 14px 12px;
  border-right: 0;
}
.task-detail-modal.is-schedule .task-detail-composer,
.task-detail-modal.is-schedule .task-detail-status,
.task-detail-modal.is-schedule .task-detail-block:has(#task-detail-desc) {
  display: none;
}
.task-detail-modal.is-schedule .task-detail-tabs {
  margin: 0 0 10px;
  flex-shrink: 0;
}
.task-detail-tab-body.is-schedule {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  display: flex;
  flex-direction: column;
}
.task-psched {
  position: relative;
  flex: 1;
  min-height: 0;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
  border-radius: 14px;
  overflow: hidden;
}
.task-psched .psched-ctx {
  position: absolute;
  z-index: 50;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: var(--hz-surface-container-lowest, #fff);
  box-shadow: 0 14px 32px color-mix(in srgb, #0f172a 20%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.task-psched .psched-ctx.hidden { display: none; }
.task-psched .psched-ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--hz-on-surface);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.task-psched .psched-ctx-btn .material-symbols-outlined { font-size: 18px; color: var(--hz-on-surface-variant); }
.task-psched .psched-ctx-btn:hover { background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent); }
.task-psched .psched-ctx-btn:disabled,
.task-psched .psched-ctx-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.task-psched .psched-ctx-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 16%, transparent);
  color: var(--hz-primary, #ff5300);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.task-psched .psched-ctx-count:empty { display: none; }
.task-psched .psched-comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 14%, transparent);
  color: var(--hz-primary, #ff5300);
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.task-psched .psched-comment-panel {
  position: absolute;
  right: 14px;
  top: 64px;
  z-index: 55;
  width: min(360px, calc(100% - 28px));
  max-height: calc(100% - 86px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: var(--hz-surface-container-lowest, #fff);
  box-shadow: 0 18px 40px color-mix(in srgb, #0f172a 22%, transparent);
}
.task-psched .psched-comment-panel.hidden { display: none; }
.task-psched .psched-comment-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.task-psched .psched-comment-panel-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.task-psched .psched-comment-item-name {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}
.task-psched .psched-comment-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-psched .psched-comment-row {
  padding: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--hz-surface-container-low) 70%, #fff);
}
.task-psched .psched-comment-row p {
  margin: 6px 0 0;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}
.task-psched .psched-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
}
.task-psched .psched-comment-empty {
  margin: 8px 0;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.task-psched .psched-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-psched .psched-comment-form textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
  min-height: 72px;
  font: inherit;
  color: var(--hz-on-surface);
  background: var(--hz-surface, #fff);
}
.task-psched .psched-input,
.task-psched .psched-select,
.task-psched .psched-phase-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-psched .psched-toolbar {
  padding: 12px 14px;
  flex-shrink: 0;
}
.task-psched .psched-title {
  font-size: 17px;
}
.task-psched .psched-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  align-items: center;
}
.task-psched .psched-scroll {
  flex: 1;
  min-height: 0;
}
.task-psched .psched-fixed {
  /* width/grid set inline from visible columns */
  width: auto;
  grid-template-columns: none;
}
.task-psched .psched-col-picker {
  position: relative;
}
.task-psched .psched-col-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: var(--hz-surface-container-lowest, #fff);
  box-shadow: 0 12px 28px color-mix(in srgb, #0f172a 18%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.task-psched .psched-col-menu.hidden {
  display: none;
}
.task-psched .psched-col-menu-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hz-on-surface-variant);
  margin-bottom: 2px;
}
.task-psched .psched-col-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hz-on-surface);
  cursor: pointer;
  padding: 4px 2px;
}
.task-psched .psched-col-opt.is-fixed {
  opacity: 0.7;
  cursor: default;
}
.task-psched .psched-col-opt input {
  accent-color: var(--hz-primary, #ff5300);
}
.task-psched .psched-cell {
  min-height: 52px;
  padding: 10px 10px;
  font-size: 13px;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}
.task-psched .psched-cell--head {
  position: relative;
  user-select: none;
  overflow: hidden;
}
.task-psched .psched-head-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.task-psched .psched-col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
  touch-action: none;
}
.task-psched .psched-col-resizer::after {
  content: '';
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 3px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.12s ease;
}
.task-psched .psched-cell--head:hover .psched-col-resizer::after,
.task-psched .psched-col-resizer.is-dragging::after,
.task-psched .psched-col-resizer:hover::after {
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 75%, #64748b);
}
body.psched-col-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
body.psched-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
.task-psched .psched-cell--status {
  min-width: 0;
  padding-inline: 6px;
}
.task-psched .psched-status {
  width: 100%;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 10px;
  line-height: 1.2;
  appearance: none;
  background-image: none;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.task-psched .psched-status[data-status='nao_iniciada'] {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}
.task-psched .psched-status[data-status='cancelada'] {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #d1d5db;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.task-psched .psched-status[data-status='em_andamento'] {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.task-psched .psched-status[data-status='pendente'],
.task-psched .psched-status[data-status='aguardando_aprovacao'] {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.task-psched .psched-status[data-status='em_espera'] {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}
.task-psched .psched-status[data-status='bloqueada'] {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.task-psched .psched-status[data-status='concluida'] {
  background: #ecfdf5;
  color: #15803d;
  border-color: #bbf7d0;
}
.task-psched .psched-cell--progress {
  gap: 8px;
  overflow: visible;
}
.task-psched .psched-cell--progress .psched-progress {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  flex: 0 0 36px;
}
.task-psched .psched-progress-value {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.task-psched .psched-cell--progress .psched-input--num,
.task-psched .psched-input--num {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  text-align: right;
  padding: 0 2px !important;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.task-psched .psched-input--num::-webkit-outer-spin-button,
.task-psched .psched-input--num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}
.task-psched .psched-cell--progress .psched-pct {
  flex: 0 0 auto;
  line-height: 1;
}
.task-psched .psched-cell--date {
  overflow: visible;
}
.task-psched .psched-cell--phase {
  overflow: hidden;
}
.task-psched .psched-row--phase .psched-cell {
  font-size: 13px;
}
.task-psched .psched-row--phase .psched-cell--task {
  gap: 8px;
}
.task-psched .psched-row--phase .psched-input--phase {
  flex: 1;
  min-width: 0;
}
.task-psched .psched-collapse-btn {
  flex: 0 0 auto;
}
.task-psched .psched-collapse-btn .material-symbols-outlined {
  font-size: 20px;
}
.task-psched .psched-phase-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--hz-on-surface-variant, #64748b);
  background: color-mix(in srgb, var(--hz-surface-container-high, #e8e8e8) 85%, transparent);
}
.task-psched .psched-row--phase.is-collapsed .psched-phase-count {
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 16%, transparent);
  color: var(--hz-primary, #ff5300);
}
.task-psched .psched-row--item.is-phase-collapsed {
  display: none;
}
.task-psched .psched-input,
.task-psched .psched-input--date,
.task-psched .psched-select {
  font-size: 14px;
}
.task-psched .psched-input--date {
  width: 100%;
  min-width: 168px;
  max-width: 100%;
  font-size: 12px;
  box-sizing: border-box;
  padding-inline: 4px;
}
.task-psched .psched-select {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  border-radius: 8px;
  background: var(--hz-surface-container-lowest, #fff);
  color: var(--hz-on-surface);
  padding: 6px 8px;
}
.task-psched .psched-input--phase {
  font-size: 14px;
}
.task-psched .psched-zoom {
  display: inline-flex;
  border: 1px solid var(--hz-outline-variant, #d0d7e2);
  border-radius: 10px;
  overflow: hidden;
}
.task-psched .psched-zoom-btn {
  border: 0;
  background: var(--hz-surface-container-low, #f3f6fb);
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  min-width: 34px;
}
.task-psched .psched-zoom-btn.is-active {
  background: var(--hz-primary, #ff5300);
  color: #fff;
}
.task-psched .psched-timeline,
.task-psched .psched-row .psched-timeline {
  min-height: 48px;
}
.task-psched .psched-bar {
  top: 13px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
}
.task-psched .psched-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.task-psched .psched-day {
  height: 32px;
  font-size: 11px;
}
.task-psched .psched-month {
  padding: 8px 10px;
  font-size: 12px;
}
.task-psched[data-day-w="32"] .psched-timeline,
.task-psched[data-day-w="32"] .psched-timeline-head {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 31px,
      rgba(148, 163, 184, 0.28) 31px,
      rgba(148, 163, 184, 0.28) 32px
    );
}
.task-psched[data-day-w="40"] .psched-timeline,
.task-psched[data-day-w="40"] .psched-timeline-head {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 39px,
      rgba(148, 163, 184, 0.28) 39px,
      rgba(148, 163, 184, 0.28) 40px
    );
}
.task-psched[data-day-w="56"] .psched-timeline,
.task-psched[data-day-w="56"] .psched-timeline-head {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 55px,
      rgba(148, 163, 184, 0.28) 55px,
      rgba(148, 163, 184, 0.28) 56px
    );
}
.task-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 12px;
}
.task-detail-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--hz-on-surface, #1c1b1f);
  line-height: 1.3;
  max-width: 85%;
}
.task-detail-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.task-detail-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--hz-on-surface-variant, #6b7280);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.task-detail-icon-btn:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--hz-on-surface);
}
.task-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.task-detail-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 20px 14px;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.task-detail-side {
  padding: 16px 18px 18px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--hz-surface-container-low) 55%, #fff);
}
.task-detail-block { margin-bottom: 16px; flex-shrink: 0; }
.task-detail-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.task-detail-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hz-on-surface-variant, #8a8f98);
}
.task-detail-label-row .task-detail-label { margin: 0; }
.task-detail-desc-hint {
  font-size: 11px;
  color: var(--hz-on-surface-variant, #8a8f98);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.task-detail-desc {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 65%, transparent);
  color: var(--hz-on-surface);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: vertical;
  min-height: 96px;
  max-height: 320px;
  overflow-y: auto;
  outline: none;
  field-sizing: content;
}
.task-detail-desc:focus {
  border-color: color-mix(in srgb, var(--hz-primary, #ff5300) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hz-primary, #ff5300) 14%, transparent);
}
.task-detail-desc.is-empty,
.task-detail-desc::placeholder {
  color: var(--hz-on-surface-variant);
  font-style: italic;
}
.task-detail-desc:not(:placeholder-shown) {
  font-style: normal;
}
.task-detail-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
  margin: 4px 0 12px;
  overflow-x: auto;
}
.task-detail-tab {
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.task-detail-tab.is-active {
  color: var(--hz-primary, #ff5300);
  border-bottom-color: var(--hz-primary, #ff5300);
}
.task-detail-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in srgb, #0f172a 8%, transparent);
  color: var(--hz-on-surface-variant);
  font-size: 10px;
  font-weight: 700;
}
.task-detail-tab-body {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}
.task-detail-empty {
  margin: 18px 0;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.task-detail-activity {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 4px;
}
.task-detail-activity::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: color-mix(in srgb, var(--hz-outline-variant) 80%, transparent);
}
.task-detail-activity-item {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.task-detail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 16%, #fff);
  color: var(--hz-primary, #ff5300);
  font-size: 13px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.task-detail-avatar.is-lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.task-detail-activity-body { flex: 1; min-width: 0; position: relative; }
.task-detail-activity-text {
  margin: 0;
  font-size: 13px;
  color: var(--hz-on-surface);
  line-height: 1.4;
}
.task-detail-activity-when {
  margin-left: 6px;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
  font-weight: 500;
}
.task-detail-activity-note {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 60%, transparent);
  font-size: 12px;
  color: var(--hz-on-surface);
  white-space: pre-wrap;
}
.task-detail-del-comment {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  opacity: 0;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
}
.task-detail-activity-item:hover .task-detail-del-comment { opacity: 1; }
.task-detail-del-comment .material-symbols-outlined { font-size: 16px; }
.task-detail-subtasks { display: flex; flex-direction: column; gap: 8px; }
.task-detail-subtasks-list { display: flex; flex-direction: column; gap: 8px; }
.task-detail-subtasks-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
  margin-bottom: 4px;
}
.task-detail-check-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-detail-check-row .task-detail-check {
  flex: 1;
  min-width: 0;
}
.task-detail-check-del,
.task-detail-file-del {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.task-detail-check-del:hover,
.task-detail-file-del:hover {
  background: color-mix(in srgb, var(--hz-error, #b3261e) 12%, transparent);
  color: var(--hz-error, #b3261e);
}
.task-detail-check-del .material-symbols-outlined,
.task-detail-file-del .material-symbols-outlined {
  font-size: 18px;
}
.task-detail-add-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.task-detail-add-check input {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.task-detail-add-check input:focus {
  border-color: color-mix(in srgb, var(--hz-primary, #ff5300) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hz-primary, #ff5300) 14%, transparent);
}
.task-detail-add-check-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--hz-primary, #ff5300);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.task-detail-add-check-btn .material-symbols-outlined { font-size: 20px; }
.task-detail-file-wrap {
  position: relative;
}
.task-detail-file-wrap .task-detail-file-del {
  position: absolute;
  top: 6px;
  right: 6px;
  background: color-mix(in srgb, #fff 92%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, #0f172a 12%, transparent);
  opacity: 1;
}
.task-detail-progress {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 12%, #e5e7eb);
  overflow: hidden;
}
.task-detail-progress > span {
  display: block;
  height: 100%;
  background: var(--hz-primary, #ff5300);
}
.task-detail-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
  cursor: pointer;
  font-size: 13px;
}
.task-detail-check .is-done {
  text-decoration: line-through;
  color: var(--hz-on-surface-variant);
}
.task-detail-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.task-detail-file-card,
.task-detail-file-thumb {
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 60%, transparent);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.task-detail-file-card img,
.task-detail-file-thumb img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: var(--hz-surface-container-low);
}
.task-detail-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 10%, #fff);
  color: var(--hz-primary, #ff5300);
}
.task-detail-file-icon .material-symbols-outlined {
  font-size: 36px;
}
.task-detail-file-thumb.is-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  max-width: 280px;
  margin-top: 8px;
}
.task-detail-file-thumb.is-pdf .task-detail-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.task-detail-file-thumb.is-pdf .task-detail-file-icon .material-symbols-outlined {
  font-size: 20px;
}
.task-detail-file-name {
  font-size: 12px;
  color: var(--hz-on-surface);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-detail-file-thumb {
  margin-top: 8px;
  max-width: 220px;
}
.task-detail-file-card span {
  display: block;
  padding: 8px;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-detail-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 50%, transparent);
}
.task-detail-composer-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.task-detail-composer-field input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: #fff;
  border-radius: 999px;
  padding: 11px 42px 11px 14px;
  font-size: 13px;
  outline: none;
}
.task-detail-composer-field input:focus {
  border-color: color-mix(in srgb, var(--hz-primary, #ff5300) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hz-primary, #ff5300) 14%, transparent);
}
.task-detail-attach {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.task-detail-attach .material-symbols-outlined { font-size: 18px; }
.task-detail-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 12%, #fff);
  color: var(--hz-primary, #ff5300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.task-detail-send:hover { background: var(--hz-primary, #ff5300); color: #fff; }
.task-detail-send .material-symbols-outlined { font-size: 18px; }
.task-detail-status {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
}
.task-detail-assignee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 60%, transparent);
}
.task-detail-assignee-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--hz-on-surface);
}
.task-detail-assignee-role {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
}
.task-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-bottom: 18px;
}
.task-detail-meta-value {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--hz-on-surface);
  text-transform: capitalize;
}
.task-detail-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}
.task-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: var(--hz-primary, #ff5300);
}
.task-detail-dot.is-cat { background: #ef4444; }
.task-detail-dot.is-high { background: var(--hz-primary, #ff5300); }
.task-detail-dot.is-medium { background: #2563eb; }
.task-detail-dot.is-low { background: #16a34a; }
.task-detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: none;
}
.task-detail-pill.is-high {
  background: color-mix(in srgb, var(--hz-primary, #ff5300) 14%, #fff);
  color: var(--hz-primary, #ff5300);
}
.task-detail-pill.is-medium {
  background: color-mix(in srgb, #2563eb 12%, #fff);
  color: #1d4ed8;
}
.task-detail-pill.is-low {
  background: color-mix(in srgb, #16a34a 12%, #fff);
  color: #15803d;
}
.task-detail-pill.is-todo {
  background: color-mix(in srgb, #64748b 12%, #fff);
  color: #475569;
}
.task-detail-pill.is-progress {
  background: color-mix(in srgb, #2563eb 12%, #fff);
  color: #1d4ed8;
}
.task-detail-pill.is-review {
  background: color-mix(in srgb, #7c3aed 12%, #fff);
  color: #6d28d9;
}
.task-detail-pill.is-done {
  background: color-mix(in srgb, #16a34a 12%, #fff);
  color: #15803d;
}
.task-detail-status-select-wrap { display: inline-block; }
.task-detail-status-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.task-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
  color: var(--hz-on-surface);
  text-transform: capitalize;
}
.task-detail-side-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.task-detail-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.task-detail-kv .task-detail-label { margin: 0; }
.task-detail-kv strong {
  font-size: 13px;
  color: var(--hz-on-surface);
}
.tasks-card { cursor: pointer; }
.tasks-list-row { cursor: pointer; }

@media (max-width: 820px) {
  .task-detail-modal {
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
  }
  .task-detail-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .task-detail-main {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
  }
  .task-detail-side {
    max-height: none;
  }
}
