﻿/* Projects page styles — supplemental sheet (restored after styles.css truncation) */
.proj-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proj-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proj-toolbar-left, .proj-toolbar-right, .proj-subbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-btn-create {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--hz-primary); color: var(--hz-on-primary);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: none; cursor: pointer;
}
.proj-btn-create:hover { filter: brightness(1.05); }
.proj-icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hz-surface-container-high); color: var(--hz-on-surface);
  border: 1px solid transparent; cursor: pointer;
}
.proj-icon-btn:hover, .proj-icon-btn.is-active {
  border-color: var(--hz-primary); color: var(--hz-primary);
}
.proj-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--hz-surface-container-high);
  border-radius: 999px; padding: 6px 12px; min-width: 160px;
}
.proj-search .material-symbols-outlined { font-size: 18px; color: var(--hz-on-surface-variant); }
.proj-search input {
  background: transparent; border: none; outline: none;
  color: var(--hz-on-surface); font-size: 13px; width: 140px;
}
.proj-subbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 0 0 10px; margin-bottom: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
}
.proj-sub-control {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--hz-on-surface-variant); cursor: pointer;
}
.proj-sub-control .material-symbols-outlined { font-size: 18px; }
.proj-sub-control select {
  background: transparent; border: none; color: var(--hz-on-surface);
  font-size: 13px; font-weight: 500; cursor: pointer; max-width: 160px;
}
.proj-archived-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--hz-on-surface-variant); background: none; border: none; cursor: pointer;
}
.proj-archived-link.is-active, .proj-archived-link:hover { color: var(--hz-primary); }
.proj-filter-panel {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--hz-surface-container-low); border: 1px solid var(--hz-outline-variant);
  border-radius: 12px; padding: 14px;
}
.proj-filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
}
.proj-filter-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--hz-on-surface-variant); margin-bottom: 8px; }
.proj-filter-opt {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 6px 0;
  font-size: 13px; color: var(--hz-on-surface); cursor: pointer;
}
.proj-filter-opt:hover { color: var(--hz-primary); }
.proj-filter-opt.is-on { color: var(--hz-primary); font-weight: 600; }
.proj-filter-clear { justify-self: start; align-self: start; font-size: 12px; color: var(--hz-primary); background: none; border: none; cursor: pointer; margin-top: 0; }
.proj-group-head {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--hz-on-surface); cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 0; margin: 0;
}
.proj-group-head.is-static { cursor: default; }
.proj-group-head--inline {
  max-width: 100%;
  min-width: 0;
}
.proj-group-head--inline .proj-group-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-group-head .material-symbols-outlined {
  font-size: 20px;
  color: var(--hz-on-surface-variant);
  flex-shrink: 0;
}
.proj-group-title { color: var(--hz-on-surface); }
.proj-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--hz-surface-container-high); color: var(--hz-on-surface-variant);
  font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* project-table-match-tasks */
.proj-table { overflow-x: auto; border-radius: 0; min-width: 0; }
.proj-table-head, .proj-table-row {
  display: grid;
  gap: 0;
  align-items: center;
  min-width: 780px;
  padding: 8px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.proj-table-head {
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  padding-top: 4px;
  padding-bottom: 8px;
  border-bottom-color: transparent;
}
.proj-table-row:hover { background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent); }
.proj-table-row.is-alt {
  background: color-mix(in srgb, var(--hz-surface-container-low) 70%, transparent);
}
.proj-table-row.is-alt:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent);
}
.proj-table-row.has-tasks-due-today {
  background: color-mix(in srgb, #fbbf24 22%, var(--hz-surface-container-low));
}
.proj-table-row.has-tasks-due-today.is-alt {
  background: color-mix(in srgb, #fbbf24 28%, var(--hz-surface-container-low));
}
.proj-table-row.has-tasks-due-today:hover,
.proj-table-row.has-tasks-due-today.is-alt:hover {
  background: color-mix(in srgb, #fbbf24 34%, var(--hz-surface-container-high));
}
.proj-table-row.is-overdue {
  background: color-mix(in srgb, #ef4444 18%, var(--hz-surface-container-low));
}
.proj-table-row.is-overdue.is-alt {
  background: color-mix(in srgb, #ef4444 24%, var(--hz-surface-container-low));
}
.proj-table-row.is-overdue:hover,
.proj-table-row.is-overdue.is-alt:hover {
  background: color-mix(in srgb, #ef4444 32%, var(--hz-surface-container-high));
}
.proj-col-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  padding: 6px 4px;
}
.proj-table-head .proj-col-name { overflow: visible; }
.proj-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.proj-name-cell .proj-name-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.proj-name-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.proj-task-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.proj-name-meta .ptask-subcount {
  flex-shrink: 0;
  margin-left: 0;
  margin-top: 0;
}
.ptask-subcount--overdue .material-symbols-outlined {
  color: #ef4444;
}
.ptask-subcount--today .material-symbols-outlined {
  color: #f59e0b;
}

.proj-tree-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding-left: calc(var(--proj-depth, 0) * 18px);
}
.proj-tree-toggle {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.proj-tree-toggle:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--hz-on-surface);
}
.proj-tree-toggle .material-symbols-outlined { font-size: 18px; }
.proj-tree-spacer {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.proj-tree-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proj-table-row.is-subproject .proj-name-btn { font-weight: 500; }
.ptask-parent-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--hz-surface-container-high) 70%, transparent);
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.ptask-parent-link:hover { color: var(--hz-on-surface); }
.ptask-parent-link .material-symbols-outlined { font-size: 16px; }
.ptask-parent-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-side-empty {
  margin: 0 0 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}
.ptask-side-add { color: var(--hz-primary) !important; }
.proj-name-btn {
  background: none; border: none; color: var(--hz-on-surface); font-size: 14px; font-weight: 600;
  text-align: left; cursor: pointer; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; max-width: 100%;
}
.proj-name-btn:hover { color: var(--hz-primary); }
.proj-row-more {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.proj-col {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  padding: 4px 12px;
  border-left: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--hz-on-surface);
}
.proj-table-head .proj-col { overflow: visible; }
.proj-col .proj-chip,
.proj-col .proj-person,
.proj-col .proj-date {
  max-width: 100%;
  overflow: hidden;
}
.proj-col .proj-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-col-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.proj-col-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 4px;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
}
.proj-col-head:hover .proj-col-head-btn,
.proj-col-head-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
  color: var(--hz-on-surface);
}
.proj-col-head-btn.is-sorted { color: var(--hz-on-surface); }
.proj-col-head-btn > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.proj-col-head-caret {
  font-size: 16px !important;
  flex-shrink: 0;
  width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--hz-on-surface-variant);
  pointer-events: none;
}
.proj-col-head:hover .proj-col-head-caret,
.proj-col-head-btn[aria-expanded="true"] .proj-col-head-caret {
  width: 16px;
  margin-left: 2px;
  opacity: 1;
}
.proj-col-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 210px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: var(--hz-surface-container-low);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.proj-col-menu.hidden { display: none; }
.proj-col-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.proj-col-menu button:hover,
.proj-col-menu button.is-active {
  background: color-mix(in srgb, var(--hz-surface-container-high) 90%, transparent);
}
.proj-col-menu button .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-col-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
}
.proj-col--type { padding-right: 8px; }
.proj-col--startDate { padding-left: 4px; }
.proj-col-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.proj-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proj-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.proj-prio-icon { font-size: 18px !important; }
.proj-date { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.proj-date .material-symbols-outlined { font-size: 16px; color: var(--hz-on-surface-variant); }
.proj-person { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.proj-avatar {
  width: 22px; height: 22px; border-radius: 999px;
  background: #16a34a; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proj-person-label { font-size: 13px; }
.proj-muted { color: var(--hz-on-surface-variant); }
.proj-overdue { color: #f87171; font-weight: 600; }
.proj-chip-warn { color: #fbbf24; }
.proj-chip-warn .material-symbols-outlined { font-size: 16px; }
.proj-add-row {
  display: block; width: 100%; text-align: left;
  padding: 12px 8px; background: none; border: none;
  color: var(--hz-on-surface-variant); font-size: 13px; cursor: pointer;
}
.proj-add-row:hover { color: var(--hz-primary); }
.proj-empty { padding: 16px 8px; font-size: 13px; color: var(--hz-on-surface-variant); }
.proj-create-modal {
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.proj-create-modal form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.proj-create-modal form > div:last-child {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.proj-create-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
@media (min-width: 640px) {
  .proj-create-grid { grid-template-columns: 1.3fr 0.9fr; }
}
.proj-create-main,
.proj-create-side {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.proj-create-side {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
}
.proj-create-name {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--hz-primary);
  color: var(--hz-on-surface); font-size: 18px; font-weight: 500; padding: 8px 0; outline: none;
}
.proj-task-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-task-name,
.proj-task-desc {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 85%, transparent);
  border-radius: 8px;
  background: var(--hz-surface-container-low);
  color: var(--hz-on-surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.proj-task-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 14px;
}
.proj-task-name::placeholder {
  color: color-mix(in srgb, #f9a8d4 55%, var(--hz-on-surface-variant));
  font-weight: 400;
}
.proj-task-name:focus {
  border-color: color-mix(in srgb, #f9a8d4 65%, var(--hz-outline-variant));
  background: var(--hz-surface-container-high);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #f9a8d4 25%, transparent);
}
.proj-task-desc {
  min-height: 148px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 14px;
}
.proj-task-desc::placeholder { color: var(--hz-on-surface-variant); }
.proj-task-desc:focus {
  border-color: color-mix(in srgb, var(--hz-outline) 35%, var(--hz-outline-variant));
  background: var(--hz-surface-container-high);
}
.proj-task-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.proj-task-repeat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.proj-task-repeat:hover {
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
}
.proj-task-repeat .material-symbols-outlined { font-size: 18px; }
.proj-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.proj-task-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-low);
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.proj-task-action:hover {
  border-color: color-mix(in srgb, var(--hz-primary) 45%, var(--hz-outline-variant));
  color: var(--hz-on-surface);
}
.proj-task-action .material-symbols-outlined { font-size: 18px; }
.proj-task-project,
.proj-person-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hz-on-surface);
  padding: 4px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  min-height: 28px;
}
.proj-task-project .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-meta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 13px;
  color: var(--hz-on-surface);
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 0;
  overflow: visible;
}
.proj-meta-row.is-open {
  z-index: 120;
}
.proj-status-field {
  position: relative;
}
.proj-meta-icon {
  display: none;
}
.proj-meta-label {
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  display: block;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  position: static;
  order: 0;
}
.proj-meta-select {
  background: var(--hz-surface-container-low); border: 1px solid var(--hz-outline-variant);
  border-radius: 8px; color: var(--hz-on-surface); font-size: 13px; padding: 6px 8px; width: 100%;
}
.proj-status-picker { position: relative; width: 100%; z-index: 1; }
.proj-meta-row.is-open .proj-status-picker { z-index: 121; }
.proj-status-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px;
  background: transparent; border: none;
  border-radius: 8px; color: var(--hz-on-surface); font-size: 14px; font-weight: 500;
  padding: 4px 4px 4px 0; cursor: pointer; text-align: left;
  position: relative;
  z-index: 1;
  min-height: 28px;
}
.proj-status-trigger:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent);
}
.ptask-row-status-picker { width: auto; max-width: 100%; }
.proj-status-trigger--row {
  width: auto;
  max-width: 100%;
  padding: 2px 4px;
  gap: 4px;
}
.proj-status-trigger--row .proj-chip { min-width: 0; }
.proj-status-trigger--row .proj-status-chevron {
  font-size: 16px;
  margin-left: 0;
  flex-shrink: 0;
}
.ptask-col:has(.ptask-row-status-picker) { overflow: visible; }
.proj-status-trigger-text { flex: 1; min-width: 0; }
.proj-status-chevron { font-size: 18px; color: var(--hz-on-surface-variant); margin-left: auto; }
.proj-status-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 90;
  background: var(--hz-surface-container-lowest); border: 1px solid var(--hz-outline-variant);
  border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
html.dark .proj-status-menu {
  background: color-mix(in srgb, var(--hz-surface-container-low) 88%, var(--hz-surface-container-lowest));
  border-color: color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
html.dark .proj-status-option.is-selected {
  background: color-mix(in srgb, var(--hz-primary) 30%, var(--hz-surface-container-high));
}
.proj-status-menu.hidden,
.proj-cal-popover.hidden,
.proj-picker-menu.hidden {
  display: none !important;
}
.proj-picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 95;
  background: var(--hz-surface-container-lowest);
  border: 1px solid var(--hz-outline-variant);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: min(360px, 58vh);
  overflow-y: auto;
}
html.dark .proj-picker-menu {
  background: color-mix(in srgb, var(--hz-surface-container-low) 88%, var(--hz-surface-container-lowest));
  border-color: color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.proj-picker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 65%, transparent);
  margin-bottom: 6px;
}
.proj-picker-search .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
  flex-shrink: 0;
}
.proj-picker-search input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hz-on-surface);
  font-size: 13px;
  padding: 6px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.proj-picker-search input::placeholder { color: var(--hz-on-surface-variant); }
.proj-picker-section { padding: 2px 0; }
.proj-picker-section + .proj-picker-section {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.proj-picker-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--hz-on-surface-variant);
  padding: 4px 8px 6px;
}
.proj-picker-org {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  cursor: default;
}
.proj-picker-org-avatar,
.proj-picker-letter {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--hz-surface-container-highest);
  color: var(--hz-on-surface);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proj-picker-letter {
  border-radius: 6px;
  background: color-mix(in srgb, var(--hz-primary) 24%, var(--hz-surface-container-highest));
}
.proj-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.proj-picker-option:hover { background: var(--hz-surface-container-high); }
.proj-picker-option.is-selected {
  background: color-mix(in srgb, var(--hz-primary) 24%, var(--hz-surface-container-high));
}
html.dark .proj-picker-option.is-selected {
  background: color-mix(in srgb, var(--hz-primary) 30%, var(--hz-surface-container-high));
}
.proj-picker-empty {
  font-size: 12px;
  color: var(--hz-on-surface-variant);
  padding: 6px 10px 8px;
}
.proj-create-side input[type="hidden"] {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.proj-status-option {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; border-radius: 8px;
  color: var(--hz-on-surface); font-size: 13px; padding: 10px 10px; cursor: pointer; text-align: left;
}
.proj-status-option:hover { background: var(--hz-surface-container-high); }
.proj-status-option.is-selected { background: color-mix(in srgb, var(--hz-primary) 28%, transparent); }
.proj-status-menu-sep { height: 1px; background: var(--hz-outline-variant); margin: 4px 6px; }
.proj-status-edit { color: var(--hz-on-surface-variant); }
.proj-status-edit .material-symbols-outlined { font-size: 18px; }
.proj-status-icon { font-size: 18px !important; flex-shrink: 0; }
.ptask-status-icon {
  font-size: 18px !important;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proj-status-icon--novo { color: #f9a8d4; }
.proj-status-icon--andamento { color: #f9a8d4; }
.proj-status-icon--espera {
  color: #f59b6c;
  background: color-mix(in srgb, #f59b6c 18%, transparent);
  border-radius: 4px; padding: 1px;
}
.proj-status-icon--concluido { color: #22c55e; }
.proj-type-swatch {
  width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; display: inline-block;
}
.proj-prio-spacer { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; }
.proj-status-trigger-text.is-muted { color: var(--hz-on-surface-variant); font-weight: 400; }
.proj-cal-popover {
  position: absolute; left: 0; right: auto; top: calc(100% + 6px); z-index: 90;
  background: var(--hz-surface-container-lowest); border: 1px solid var(--hz-outline-variant);
  border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.45);
  width: min(280px, 78vw);
}
.proj-cal-popover.is-drop-up {
  top: auto;
  bottom: calc(100% + 6px);
}
#proj-cal-layer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}
#proj-cal-layer[aria-hidden='true'] {
  visibility: hidden;
}
.proj-cal-popover.is-floating {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  top: auto;
  left: auto;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
  z-index: 20;
}
.proj-cal-popover.is-floating.hidden {
  display: none !important;
}
.proj-status-menu.is-floating,
.proj-picker-menu.is-floating {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  pointer-events: auto;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
  z-index: 1;
  overflow-y: auto;
}
.proj-status-menu.is-floating.hidden,
.proj-picker-menu.is-floating.hidden {
  display: none !important;
}
.proj-status-menu.is-drop-up,
.proj-picker-menu.is-drop-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.proj-create-modal.has-picker-open,
.proj-create-modal.has-picker-open .proj-create-grid {
  overflow: visible;
}
.proj-cal-scroll {
  max-height: 280px; overflow-y: auto; padding-right: 2px;
  scrollbar-width: thin;
}
.proj-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 6px; position: sticky; top: 0; background: var(--hz-surface-container-lowest); z-index: 1;
  padding-bottom: 4px;
}
.proj-cal-weekdays span {
  text-align: center; font-size: 11px; color: var(--hz-on-surface-variant); font-weight: 500;
}
.proj-cal-month { margin-bottom: 14px; }
.proj-cal-month-title {
  font-size: 13px; font-weight: 600; color: var(--hz-on-surface); margin: 8px 4px 8px;
}
.proj-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.proj-cal-day {
  aspect-ratio: 1; border: none; background: transparent; border-radius: 999px;
  color: var(--hz-on-surface); font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.proj-cal-day.is-empty { pointer-events: none; }
.proj-cal-day:hover:not(.is-empty) { background: var(--hz-surface-container-high); }
.proj-cal-day.is-today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hz-primary) 55%, transparent); }
.proj-cal-day.is-selected {
  background: var(--hz-primary); color: var(--hz-on-primary); font-weight: 600;
}
.proj-cal-reset {
  width: 100%; margin-top: 8px; padding: 10px 12px; border: none; border-radius: 999px;
  background: var(--hz-surface-container-high); color: var(--hz-on-surface-variant);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.proj-cal-reset:hover { color: var(--hz-on-surface); }
.proj-cal-actions {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--hz-outline-variant);
}
.proj-cal-action {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; border-radius: 8px;
  color: var(--hz-on-surface); font-size: 13px; padding: 10px 8px; cursor: pointer; text-align: left;
}
.proj-cal-action:hover { background: var(--hz-surface-container-high); }
.proj-cal-action .material-symbols-outlined { font-size: 18px; color: var(--hz-on-surface-variant); }
.proj-cal-time-input {
  width: 100%; margin: 0 0 4px; padding: 8px 10px;
  border-radius: 8px; border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-low); color: var(--hz-on-surface); font-size: 13px;
}
.proj-cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hz-on-surface) 55%, transparent);
  background: transparent;
}
.proj-cols-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .proj-cols-grid { grid-template-columns: 1fr 1fr; }
}
.proj-cols-list {
  background: var(--hz-surface-container-low); border: 1px solid var(--hz-outline-variant);
  border-radius: 12px; padding: 6px; min-height: 180px;
}
.proj-col-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 8px; border-radius: 8px; border: none; background: transparent;
  color: var(--hz-on-surface); font-size: 13px; cursor: pointer; text-align: left;
}
.proj-col-item:hover { background: var(--hz-surface-container-high); }
.proj-col-item.is-fixed { cursor: default; opacity: .9; }
.proj-col-item .material-symbols-outlined { font-size: 18px; color: var(--hz-on-surface-variant); }
.proj-drag { cursor: grab; }
@media (max-width: 900px) {
  .proj-table-head .proj-col:nth-child(n+5),
  .proj-table-row .proj-col:nth-child(n+5) { display: none; }
  .proj-table-head, .proj-table-row {
    grid-template-columns: minmax(160px, 1.8fr) repeat(3, minmax(90px, 1fr)) 44px;
    min-width: 620px;
    gap: 0;
  }
}

.ptask-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 0;
  min-height: calc(100vh - 140px);
  margin: -4px -4px 0;
  border: 1px solid var(--hz-outline-variant);
  border-radius: 16px;
  overflow: hidden;
  background: var(--hz-surface-container-lowest);
  position: relative;
}
.ptask-workspace.is-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.ptask-tools-rail {
  display: none;
}
.ptask-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-left: 1px solid var(--hz-outline-variant);
  border-right: none;
  background: var(--hz-surface-container-low);
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ptask-workspace.is-collapsed .ptask-sidebar {
  display: none;
}
.ptask-back {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin-bottom: 10px; padding: 8px;
  border: none; border-radius: 10px; background: transparent;
  color: var(--hz-on-surface); cursor: pointer; text-align: left; font-size: 13px; font-weight: 600;
}
.ptask-back:hover { background: var(--hz-surface-container-high); }
.ptask-side-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--hz-on-surface-variant); padding: 10px 8px 6px;
}
.ptask-side-section--toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.ptask-side-section--toggle:hover { color: var(--hz-on-surface); }
.ptask-side-section--toggle .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}
.ptask-side-subprojects.is-collapsed { display: none; }
.ptask-side-link, .ptask-side-hide {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 10px; border: none; border-radius: 10px;
  background: transparent; color: var(--hz-on-surface-variant); cursor: pointer; text-align: left; font-size: 13px;
}
.ptask-side-link:hover, .ptask-side-hide:hover { background: var(--hz-surface-container-high); color: var(--hz-on-surface); }
.ptask-side-link.is-active { background: var(--hz-surface-container-high); color: var(--hz-on-surface); font-weight: 600; }
.ptask-side-link .material-symbols-outlined, .ptask-side-hide .material-symbols-outlined { font-size: 20px; }
.ptask-side-hide { margin-top: auto; }
@media (min-width: 901px) {
  .ptask-workspace.is-collapsed .ptask-tools-rail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 28px;
    height: 72px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 75%, transparent);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: var(--hz-surface-container-low);
    color: var(--hz-on-surface-variant);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
  .ptask-workspace.is-collapsed .ptask-tools-rail:hover {
    background: var(--hz-surface-container-high);
    color: var(--hz-on-surface);
  }
  .ptask-tools-rail .material-symbols-outlined {
    font-size: 22px;
  }
}
.ptask-main { padding: 14px 16px 20px; overflow: auto; min-width: 0; }
.ptask-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.ptask-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ptask-view-toggle {
  display: inline-flex; background: var(--hz-surface-container-high); border-radius: 10px; padding: 3px;
}
.ptask-view-toggle button {
  border: none; background: transparent; color: var(--hz-on-surface-variant);
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.ptask-view-toggle button.is-active {
  background: var(--hz-surface-container-lowest); color: var(--hz-on-surface); box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.ptask-table { overflow-x: auto; }
.ptask-table--reorder .ptask-head,
.ptask-table--reorder .ptask-row {
  grid-template-columns: 28px minmax(280px, 2.6fr) minmax(128px, 0.95fr) minmax(136px, 0.95fr) minmax(92px, 0.65fr) minmax(92px, 0.65fr) 44px;
}
.ptask-col-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 2px;
}
.ptask-head, .ptask-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.6fr) minmax(128px, 0.95fr) minmax(136px, 0.95fr) minmax(92px, 0.65fr) minmax(92px, 0.65fr) 44px;
  gap: 0;
  align-items: center;
  min-width: 780px;
  padding: 8px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.ptask-table--with-closed .ptask-head,
.ptask-table--with-closed .ptask-row {
  grid-template-columns: minmax(240px, 2.2fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(92px, 0.65fr) minmax(88px, 0.6fr) minmax(148px, 1.05fr) 44px;
  min-width: 940px;
}
.ptask-table--with-closed.ptask-table--reorder .ptask-head,
.ptask-table--with-closed.ptask-table--reorder .ptask-row {
  grid-template-columns: 28px minmax(240px, 2.2fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(92px, 0.65fr) minmax(88px, 0.6fr) minmax(148px, 1.05fr) 44px;
}
.ptask-closed-at {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}
.ptask-closed-at .material-symbols-outlined {
  font-size: 16px;
}
.ptask-head {
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  border-bottom-color: transparent;
  padding-top: 4px;
  padding-bottom: 8px;
}
.ptask-row:hover { background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent); }
.ptask-row:nth-child(even) {
  background: color-mix(in srgb, var(--hz-surface-container-low) 70%, transparent);
}
.ptask-row:nth-child(even):hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent);
}
.ptask-row.is-due-today {
  background: color-mix(in srgb, #fbbf24 24%, var(--hz-surface-container-low)) !important;
}
.ptask-row.is-due-today:hover {
  background: color-mix(in srgb, #fbbf24 34%, var(--hz-surface-container-high)) !important;
}
.ptask-row.has-tasks-due-today {
  background: color-mix(in srgb, #fbbf24 22%, var(--hz-surface-container-low)) !important;
}
.ptask-row.has-tasks-due-today:hover {
  background: color-mix(in srgb, #fbbf24 34%, var(--hz-surface-container-high)) !important;
}
.ptask-row.is-overdue {
  background: color-mix(in srgb, #ef4444 20%, var(--hz-surface-container-low)) !important;
}
.ptask-row.is-overdue:hover {
  background: color-mix(in srgb, #ef4444 30%, var(--hz-surface-container-high)) !important;
}
.proj-date.is-today {
  color: #b45309;
  font-weight: 600;
}
.proj-date.is-overdue {
  color: #dc2626;
  font-weight: 600;
}
.ptask-col-name,
.ptask-col {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  padding: 4px 12px;
}
.ptask-col {
  border-left: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ptask-col-name {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.ptask-col-name .proj-name-btn {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.ptask-subcount {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: 2px;
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
.ptask-subcount .material-symbols-outlined {
  font-size: 16px;
  color: var(--hz-on-surface-variant);
}
.ptask-col .proj-chip,
.ptask-col .proj-person,
.ptask-col .proj-date {
  max-width: 100%;
  overflow: hidden;
}
.ptask-col .proj-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-head-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hz-on-surface);
  font-size: 14px;
  font-weight: 600;
}
.ptask-head-group .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.ptask-head-group--toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ptask-head-group--toggle:hover { opacity: 0.85; }
.ptask-completed-group { margin-top: 16px; }
.ptask-completed-panel.is-collapsed,
.ptask-children-panel.is-collapsed,
.ptask-open-panel.is-collapsed { display: none; }
.ptask-row.is-done {
  opacity: 0.82;
}
.ptask-row.is-done .proj-name-btn {
  color: var(--hz-on-surface-variant);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--hz-on-surface-variant) 55%, transparent);
}
.ptask-row.is-done:hover {
  opacity: 1;
}
.ptask-col-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 4px 6px;
}
.ptask-kanban {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.ptask-kanban-col {
  background: var(--hz-surface-container-low); border: 1px solid var(--hz-outline-variant);
  border-radius: 12px; padding: 10px; min-height: 220px;
}
.ptask-kanban-head {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.ptask-kanban-list { display: flex; flex-direction: column; gap: 8px; }
.ptask-kanban-card {
  width: 100%; text-align: left; padding: 12px; border-radius: 10px; cursor: pointer;
  background: var(--hz-surface-container-lowest); border: 1px solid var(--hz-outline-variant);
}
.ptask-kanban-card:hover { border-color: var(--hz-primary); }
.ptask-placeholder { padding: 40px 12px; }
/* Project members */
.ptask-members-table { overflow-x: auto; }
.ptask-members-table-head { padding: 4px 4px 8px; }
.ptask-members-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 600;
}
.ptask-members-group .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.ptask-members-cols,
.ptask-members-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(110px, 0.8fr);
  gap: 0;
  align-items: center;
  min-width: 720px;
  padding: 8px 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.ptask-members-cols {
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 500;
  border-bottom-color: transparent;
  padding-top: 4px;
  padding-bottom: 8px;
}
.ptask-members-col {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  padding: 4px 12px;
  border-left: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ptask-members-col--user { border-left: none; padding-left: 4px; }
.ptask-members-row:hover {
  background: color-mix(in srgb, var(--hz-surface-container-high) 55%, transparent);
}
.ptask-members-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 12px 4px 4px;
}
.ptask-members-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--hz-on-surface);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-member-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hz-on-surface);
  font-size: 13px;
}
.ptask-member-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
/* Project settings */
.ptask-body--settings { padding-top: 4px; }
.ptask-settings { max-width: 920px; }
.ptask-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ptask-settings-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--hz-on-surface);
  letter-spacing: -0.02em;
}
.ptask-settings-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 75%, transparent);
  margin-bottom: 22px;
}
.ptask-settings-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--hz-on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
}
.ptask-settings-tab:hover { color: var(--hz-on-surface); }
.ptask-settings-tab.is-active {
  color: var(--hz-primary);
  border-bottom-color: var(--hz-primary);
}
.ptask-settings-panel { display: flex; flex-direction: column; gap: 28px; }
.ptask-settings-section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ptask-settings-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--hz-on-surface);
}
.ptask-settings-copy {
  margin: 0;
  font-size: 14px;
  color: var(--hz-on-surface);
}
.ptask-settings-hint {
  margin: 0;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.ptask-settings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ptask-settings-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 85%, transparent);
  background: color-mix(in srgb, var(--hz-surface-container-low) 80%, transparent);
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.ptask-settings-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 80%, transparent);
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ptask-settings-edit-btn:hover {
  background: var(--hz-surface-container-highest, var(--hz-surface-container-high));
  border-color: var(--hz-outline-variant);
}
.ptask-settings-edit-btn.is-primary {
  background: var(--hz-primary);
  border-color: var(--hz-primary);
  color: var(--hz-on-primary, #0b1220);
  font-weight: 600;
}
.ptask-settings-edit-btn.is-primary:hover {
  filter: brightness(1.05);
}
/* Project details (settings > detalhes) */
.ptask-details { display: flex; flex-direction: column; gap: 28px; }
.ptask-details-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 640px;
}
.ptask-details-form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--hz-on-surface-variant);
}
.ptask-details-input,
.ptask-details-textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 85%, transparent);
  border-radius: 10px;
  background: var(--hz-surface-container-low);
  color: var(--hz-on-surface);
  font-size: 14px;
  line-height: 1.45;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ptask-details-input:focus,
.ptask-details-textarea:focus {
  border-color: color-mix(in srgb, var(--hz-primary) 45%, var(--hz-outline-variant));
  background: var(--hz-surface-container-high);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hz-primary) 18%, transparent);
}
.ptask-details-textarea {
  min-height: 108px;
  resize: vertical;
}
.ptask-details-textarea::placeholder { color: var(--hz-on-surface-variant); }
.ptask-details-actions { margin-top: 4px; }
.ptask-details-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.ptask-details-section-head .ptask-settings-section-title { margin: 0; }
.ptask-details-link-btn {
  border: none;
  background: transparent;
  color: var(--hz-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.ptask-details-link-btn:hover { text-decoration: underline; }
.ptask-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  width: 100%;
}
@media (max-width: 720px) {
  .ptask-details-grid { grid-template-columns: 1fr; }
}
.ptask-details-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ptask-details-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--hz-on-surface-variant);
}
.ptask-details-value {
  font-size: 14px;
  color: var(--hz-on-surface);
  min-width: 0;
}
.ptask-details-link {
  border: none;
  background: transparent;
  color: var(--hz-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.ptask-details-link:hover { text-decoration: underline; }


body.project-workspace-open .ptask-workspace--detail .ptask-main--detail {
  overflow: hidden !important;
}

/* Task detail view */
.ptask-main--detail {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.ptask-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.ptask-detail-main {
  overflow-y: auto;
  padding: 20px 24px 28px;
  -webkit-overflow-scrolling: touch;
}
.ptask-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ptask-detail-lead {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.ptask-detail-back {
  width: 28px;
  height: 28px;
  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;
  padding: 0;
}
.ptask-detail-back:hover {
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
}
.ptask-detail-back .material-symbols-outlined {
  font-size: 22px;
}
.ptask-detail-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
  color: var(--hz-on-surface);
}
.ptask-detail-top-actions { display: flex; gap: 4px; }
.ptask-detail-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hz-on-surface);
  margin: 0 0 18px;
}
.ptask-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-bottom: 18px;
}
@media (min-width: 1100px) {
  .ptask-detail-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ptask-detail-meta-label {
  display: block;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
  margin-bottom: 4px;
}
.ptask-detail-meta-value { font-size: 13px; }
.ptask-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.ptask-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-low);
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ptask-detail-action:hover {
  border-color: color-mix(in srgb, var(--hz-primary) 40%, var(--hz-outline-variant));
  color: var(--hz-on-surface);
}
.ptask-detail-action .material-symbols-outlined { font-size: 18px; }
.ptask-detail-action-short { display: none; }
.ptask-detail-section {
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  padding-top: 18px;
  margin-top: 6px;
}
.ptask-detail-section-title,
.ptask-detail-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hz-on-surface);
  margin: 0 0 10px;
}
.ptask-detail-section-head {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.ptask-detail-section-head .material-symbols-outlined { font-size: 18px; color: var(--hz-on-surface-variant); }
.ptask-detail-chevron {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--hz-surface-container-high);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px !important;
}
.ptask-detail-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--hz-on-surface);
  margin: 0;
  white-space: pre-wrap;
}
.ptask-detail-desc .proj-muted {
  color: var(--hz-on-surface-variant);
  font-size: 14px;
}
.ptask-desc-panel { margin-top: 8px; }
.ptask-desc-panel.is-collapsed { display: none; }
.ptask-subtasks-section .ptask-detail-section-head { margin-bottom: 0; }
.ptask-subtasks-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.ptask-subtasks-head .ptask-detail-section-head {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-bottom: 0;
}
.ptask-subtasks-head .ptask-detail-section-head .ptask-detail-chevron { display: none; }
.ptask-detail-chevron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-left: 0;
  position: relative;
  z-index: 2;
}
.ptask-detail-chevron-btn .ptask-detail-chevron { margin-left: 0; }
.ptask-subtask-filter {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ptask-subtask-filter[hidden] { display: none; }
.ptask-subtask-panel.is-pending-only .ptask-subtask-row.is-done { display: none; }
.ptask-subtask-empty[hidden] { display: none; }
.ptask-subtask-filter-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.ptask-subtask-filter-btn:hover {
  color: var(--hz-on-surface);
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
}
.ptask-subtask-filter-btn.is-on {
  color: var(--hz-primary);
  background: color-mix(in srgb, var(--hz-primary) 12%, var(--hz-surface));
}
.ptask-subtask-filter-btn[aria-expanded="true"] {
  color: var(--hz-on-surface);
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
}
.ptask-subtask-filter-btn .material-symbols-outlined { font-size: 18px; }
.ptask-subtask-filter-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-lowest);
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ptask-subtask-filter-pop.hidden { display: none; }
.ptask-subtask-filter-pop button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ptask-subtask-filter-pop button:hover {
  background: var(--hz-surface-container-high);
}
.ptask-subtask-filter-pop button.is-selected {
  color: var(--hz-primary);
  font-weight: 600;
  background: color-mix(in srgb, var(--hz-primary) 10%, transparent);
}
.ptask-subtask-empty {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.ptask-subtask-panel { margin-top: 10px; }
.ptask-subtask-panel.is-collapsed { display: none; }
.ptask-subtask-compose,
.ptask-subtask-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 4px 8px 4px 4px;
  border-radius: 10px;
}
.ptask-subtask-compose > .ptask-subtask-check,
.ptask-subtask-compose > .proj-avatar,
.ptask-subtask-compose > .ptask-subtask-time,
.ptask-subtask-compose > .ptask-subtask-date,
.ptask-subtask-compose > .ptask-subtask-save,
.ptask-subtask-compose > .ptask-subtask-edit-cancel,
.ptask-subtask-row > .ptask-subtask-check,
.ptask-subtask-row > .ptask-subtask-drag,
.ptask-subtask-row > .proj-avatar,
.ptask-subtask-row > .ptask-subtask-row-time,
.ptask-subtask-row > .ptask-subtask-row-date,
.ptask-subtask-row > .ptask-subtask-menu {
  margin-top: 6px;
}
.ptask-subtask-row {
  background: transparent;
}
.ptask-subtask-row--draggable {
  cursor: default;
}
.ptask-subtask-row.is-dragging {
  opacity: 0.55;
}
.ptask-subtask-row.is-drop-target {
  background: color-mix(in srgb, var(--hz-primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hz-primary) 35%, transparent);
}
.ptask-subtask-drag {
  color: var(--hz-on-surface-variant);
  cursor: grab;
  font-size: 18px;
  line-height: 1;
  width: 18px;
  flex-shrink: 0;
  opacity: 0.45;
  user-select: none;
}
.ptask-subtask-row--draggable:hover .ptask-subtask-drag,
.ptask-subtask-row.is-dragging .ptask-subtask-drag {
  opacity: 1;
}
.ptask-subtask-drag:active {
  cursor: grabbing;
}
.ptask-subtask-compose {
  padding: 6px 10px 6px 8px;
  background: color-mix(in srgb, var(--hz-surface-container-high) 88%, var(--hz-surface-container-lowest));
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 65%, transparent);
}
html.dark .ptask-subtask-compose {
  background: color-mix(in srgb, var(--hz-surface-container-high) 72%, var(--hz-surface-container-low));
  border-color: color-mix(in srgb, var(--hz-outline-variant) 42%, transparent);
}
.ptask-subtask-row + .ptask-subtask-row,
.ptask-subtask-row + .ptask-subtask-compose,
.ptask-subtask-compose + .ptask-subtask-row {
  margin-top: 6px;
}
.ptask-subtask-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.ptask-subtask-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.ptask-subtask-check-box {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid color-mix(in srgb, var(--hz-outline-variant) 90%, transparent);
  background: transparent;
  display: block;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
html.dark .ptask-subtask-check-box {
  border-color: color-mix(in srgb, var(--hz-outline-variant) 75%, transparent);
  background: color-mix(in srgb, var(--hz-surface-container-low) 65%, transparent);
}
.ptask-subtask-check input:checked + .ptask-subtask-check-box {
  background: var(--hz-primary);
  border-color: var(--hz-primary);
}
.ptask-subtask-check input:checked + .ptask-subtask-check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--hz-on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ptask-subtask-name {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hz-on-surface);
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  field-sizing: content;
  min-height: 28px;
  max-height: 160px;
  font-family: inherit;
}
.ptask-subtask-name:focus,
.ptask-subtask-time:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none;
}
.ptask-subtask-name::placeholder { color: var(--hz-on-surface-variant); }
.ptask-subtask-time {
  width: 52px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  text-align: right;
  padding: 6px 0;
  outline: none;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}
.ptask-subtask-time::placeholder { color: var(--hz-on-surface-variant); opacity: 0.85; }
.ptask-subtask-compose input[type="text"] {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
}
html.dark .ptask-subtask-compose input[type="text"] {
  color: var(--hz-on-surface);
}
html.dark .ptask-subtask-compose input[type="text"]::placeholder {
  color: var(--hz-on-surface-variant);
}
.ptask-subtask-date {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.ptask-subtask-date:hover {
  background: color-mix(in srgb, var(--hz-surface-container-highest) 70%, transparent);
  color: var(--hz-on-surface);
}
.ptask-subtask-date .material-symbols-outlined { font-size: 18px; }
.ptask-subtask-compose .proj-avatar,
.ptask-subtask-row .proj-avatar {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.ptask-subtask-save {
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--hz-surface-container-highest) 75%, var(--hz-surface-container-high));
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.ptask-subtask-save:not(:disabled):hover {
  background: color-mix(in srgb, var(--hz-primary) 18%, var(--hz-surface-container-high));
  color: var(--hz-on-surface);
}
.ptask-subtask-save:disabled {
  opacity: 0.55;
  cursor: default;
}
html.dark .ptask-subtask-save:disabled {
  background: color-mix(in srgb, var(--hz-surface-container-highest) 55%, var(--hz-surface-container-high));
  color: color-mix(in srgb, var(--hz-on-surface-variant) 72%, transparent);
  opacity: 1;
}
.ptask-subtask-save:not(:disabled) {
  background: color-mix(in srgb, var(--hz-primary) 22%, var(--hz-surface-container-high));
  color: var(--hz-on-surface);
}

.ptask-subtask-add-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ptask-subtask-add-link:hover { color: var(--hz-on-surface); }
.ptask-subtask-menu {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ptask-subtask-more {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-primary, #f59b6c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
}
.ptask-subtask-row:hover .ptask-subtask-more,
.ptask-subtask-more[aria-expanded="true"] {
  opacity: 1;
  background: color-mix(in srgb, var(--hz-surface-container-high) 80%, transparent);
}
.ptask-subtask-more .material-symbols-outlined { font-size: 20px; }
.ptask-subtask-menu-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-lowest);
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ptask-subtask-menu-pop.hidden { display: none; }
.ptask-subtask-menu-pop button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ptask-subtask-menu-pop button:hover {
  background: var(--hz-surface-container-high);
}
.ptask-subtask-menu-pop button .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.ptask-subtask-menu-pop button.is-danger,
.ptask-subtask-menu-pop button.is-danger .material-symbols-outlined {
  color: #f87171;
}
.ptask-subtask-compose.is-editing {
  flex-wrap: wrap;
}
.ptask-subtask-edit-cancel {
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ptask-subtask-edit-cancel:hover {
  color: var(--hz-on-surface);
  background: color-mix(in srgb, var(--hz-surface-container-high) 70%, transparent);
}
.ptask-subtask-row-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--hz-on-surface);
  line-height: 1.4;
  padding: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ptask-subtask-row.is-done .ptask-subtask-row-name {
  color: var(--hz-on-surface-variant);
  text-decoration: line-through;
}
.ptask-subtask-row-time {
  width: 52px;
  text-align: right;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
  flex-shrink: 0;
}
.ptask-subtask-row-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 28px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
  flex-shrink: 0;
}
.ptask-subtask-row-date.is-empty { visibility: hidden; }
.ptask-subtask-row-date .material-symbols-outlined { font-size: 16px; }
.ptask-schedule-panel.is-collapsed { display: none; }
.ptask-schedule-table { margin-top: 8px; }
.ptask-schedule-head,
.ptask-schedule-row {
  display: grid;
  grid-template-columns: 1fr 80px 120px minmax(160px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
}
.ptask-schedule-head {
  color: var(--hz-on-surface-variant);
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
}
.ptask-schedule-row { font-size: 13px; color: var(--hz-on-surface); }
.ptask-schedule-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ptask-timer-play {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: var(--hz-primary);
  color: var(--hz-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ptask-timer-play .material-symbols-outlined { font-size: 18px; }
.ptask-timer-value { font-variant-numeric: tabular-nums; font-size: 13px; }
.ptask-timer-flag {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ptask-schedule-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 0;
}
.ptask-schedule-add:hover { color: var(--hz-primary); }
.ptask-detail-feed {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-low);
  min-height: 0;
}
.ptask-feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  flex-shrink: 0;
}
.ptask-feed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--hz-surface-container-high);
  font-size: 12px;
  font-weight: 500;
  color: var(--hz-on-surface);
}
.ptask-feed-pill .material-symbols-outlined { font-size: 16px; }
.ptask-feed-followers { font-size: 12px; color: var(--hz-on-surface-variant); }
.ptask-feed-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.ptask-feed-date {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface-variant);
  font-size: 11px;
  text-align: center;
  width: fit-content;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.ptask-feed-item { margin-bottom: 14px; }
.ptask-feed-item--system {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.ptask-feed-system {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
  line-height: 1.45;
}
.ptask-feed-actor {
  color: var(--hz-on-surface);
  font-weight: 600;
}
.ptask-feed-action {
  color: var(--hz-on-surface);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ptask-feed-target {
  color: var(--hz-on-surface);
  font-weight: 500;
}
.ptask-feed-time {
  font-size: 11px;
  color: var(--hz-on-surface-variant);
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
}
.ptask-feed-item--comment .ptask-feed-time { margin-top: 4px; }
.ptask-feed-bubble {
  background: var(--hz-surface-container-high);
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 90%;
}
.ptask-feed-user { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ptask-feed-text { font-size: 13px; line-height: 1.4; }
.ptask-feed-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  flex-shrink: 0;
}
.ptask-feed-compose input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--hz-outline-variant);
  border-radius: 999px;
  background: var(--hz-surface-container-lowest);
  color: var(--hz-on-surface);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
}
.ptask-feed-compose input:focus {
  border-color: color-mix(in srgb, var(--hz-primary) 45%, var(--hz-outline-variant));
}
.ptask-feed-attach,
.ptask-feed-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.ptask-feed-send {
  background: var(--hz-primary);
  color: var(--hz-on-primary);
}
.ptask-row { cursor: pointer; }
.ptask-row--draggable { cursor: grab; }
.ptask-row--draggable.is-dragging { cursor: grabbing; opacity: 0.55; }
.ptask-row.is-drop-target {
  background: color-mix(in srgb, var(--hz-primary) 12%, var(--hz-surface-container-high)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hz-primary) 35%, transparent);
}
.ptask-drag {
  color: var(--hz-on-surface-variant);
  cursor: grab;
  font-size: 20px;
  line-height: 1;
  opacity: 0.72;
}
.ptask-row--draggable:hover .ptask-drag,
.ptask-row.is-dragging .ptask-drag {
  opacity: 1;
}
.ptask-row:not(.ptask-row--draggable) .ptask-drag {
  opacity: 0.28;
  cursor: default;
}
@media (max-width: 900px) {
  .ptask-detail {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(200px, 38vh);
  }
  .ptask-detail-main {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 18px;
    min-height: 0;
  }
  .ptask-detail-top {
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .ptask-detail-crumb {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    font-size: 12px;
    line-height: 1.35;
    padding-top: 4px;
  }
  .ptask-detail-title {
    font-size: 24px;
    margin: 0 0 14px;
  }
  .ptask-detail-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  .ptask-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .ptask-detail-action {
    justify-content: center;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .ptask-detail-action-full { display: none; }
  .ptask-detail-action-short { display: inline; }
  .ptask-detail-action[data-ptask-soon="timer"] {
    grid-column: 1 / -1;
  }
  .ptask-detail-actions > .proj-icon-btn {
    display: none;
  }
  .ptask-detail-action .material-symbols-outlined {
    font-size: 17px;
  }
  .ptask-att-drive-badge {
    display: none;
  }
  .ptask-detail-section-head {
    gap: 6px;
    min-width: 0;
  }
  .ptask-detail-feed {
    border-left: none;
    border-top: 1px solid var(--hz-outline-variant);
    max-height: none;
    min-height: 0;
  }
  .ptask-feed-compose {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .ptask-feed-system,
  .ptask-feed-target {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* —— Mobile workspace: drawer + scroll estável + tabela compacta —— */
.ptask-nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(2, 8, 20, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 900px) {
  .ptask-workspace,
  .ptask-workspace.is-collapsed {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
  }

  .ptask-nav-scrim {
    display: none;
  }

  .ptask-workspace.is-mobile-nav-open .ptask-nav-scrim {
    display: block;
  }

  .ptask-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(288px, 86vw);
    z-index: 90;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 2px;
    padding: 12px 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid var(--hz-outline-variant);
    border-right: none !important;
    border-bottom: none !important;
    background: var(--hz-surface-container-low);
    transform: translateX(105%);
    transition: transform 0.22s ease;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.35);
    visibility: visible;
    pointer-events: auto;
  }

  .ptask-workspace.is-mobile-nav-open .ptask-sidebar {
    transform: translateX(0);
  }

  .ptask-workspace.is-collapsed .ptask-sidebar {
    display: flex !important;
  }

  /* No drawer mobile, sempre mostrar rótulos (ignora modo colapsado desktop) */
  .ptask-workspace.is-collapsed .ptask-back-label,
  .ptask-workspace.is-collapsed .ptask-side-section,
  .ptask-workspace.is-collapsed .ptask-side-link span:last-child,
  .ptask-workspace.is-collapsed .ptask-side-hide span:last-child {
    display: initial;
  }

  .ptask-tools-rail,
  .ptask-side-hide {
    display: none !important;
  }

  .ptask-main,
  .ptask-main--detail {
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .ptask-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    box-sizing: border-box;
  }

  .ptask-mobile-menu {
    order: 0;
    flex-shrink: 0;
  }

  .ptask-toolbar > .proj-btn-create {
    order: 1;
    flex-shrink: 0;
    padding: 8px 12px;
  }

  .ptask-toolbar > .proj-icon-btn[data-ptask-filter-toggle] {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ptask-toolbar > .ptask-view-toggle {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    display: flex;
  }

  .ptask-toolbar > .ptask-view-toggle button {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
  }

  .ptask-view-long {
    display: none;
  }

  .ptask-toolbar > .ptask-toolbar-right {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ptask-toolbar .proj-btn-create {
    padding: 8px 12px;
  }

  .ptask-toolbar .proj-search {
    order: unset;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .ptask-toolbar .proj-search input {
    width: 100%;
    min-width: 0;
  }

  .ptask-toolbar-right {
    margin-left: 0;
  }

  .ptask-toolbar-right .proj-avatar {
    display: none;
  }

  .ptask-sidebar {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .ptask-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }

  /* Tabela: nome + status + ações */
  .ptask-head > .ptask-col,
  .ptask-row > .ptask-col {
    display: none !important;
  }

  .ptask-head > .ptask-col-name + .ptask-col,
  .ptask-row > .ptask-col-name + .ptask-col {
    display: flex !important;
    align-items: center;
    min-width: 0;
  }

  .ptask-col-drag {
    display: none !important;
  }

  .ptask-head,
  .ptask-row,
  .ptask-table--reorder .ptask-head,
  .ptask-table--reorder .ptask-row,
  .ptask-table--with-closed .ptask-head,
  .ptask-table--with-closed .ptask-row,
  .ptask-table--with-closed.ptask-table--reorder .ptask-head,
  .ptask-table--with-closed.ptask-table--reorder .ptask-row {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 0.85fr) 44px !important;
    min-width: 0 !important;
    width: 100%;
  }

  .ptask-table {
    overflow-x: hidden;
  }

  .ptask-kanban {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .ptask-kanban-col {
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
  }

  .ptask-members-cols,
  .ptask-members-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px !important;
    min-width: 0 !important;
  }

  .ptask-members-cols > :nth-child(n+3),
  .ptask-members-row > :nth-child(n+3) {
    display: none;
  }

  .ptask-members-cols > :nth-child(1),
  .ptask-members-cols > :nth-child(2),
  .ptask-members-row > :nth-child(1),
  .ptask-members-row > :nth-child(2),
  .ptask-members-row > :last-child {
    display: flex;
  }

  .ptask-settings-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.proj-ctx-menu {
  position: fixed;
  z-index: 400;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--hz-surface-container-lowest);
  border: 1px solid var(--hz-outline-variant);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.proj-ctx-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.proj-ctx-menu button:hover { background: var(--hz-surface-container-high); }
.proj-ctx-menu button .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-ctx-menu button.is-danger,
.proj-ctx-menu button.is-danger .material-symbols-outlined { color: #f87171; }
.proj-ctx-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--hz-outline-variant);
}
.ptask-ctx-menu { min-width: 240px; }
.ptask-ctx-item { position: relative; }
.ptask-ctx-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ptask-ctx-item:hover > .ptask-ctx-main,
.ptask-ctx-item.is-open > .ptask-ctx-main {
  background: var(--hz-surface-container-high);
}
.ptask-ctx-main .proj-type-swatch { flex-shrink: 0; }
.ptask-ctx-main .material-symbols-outlined:first-child {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.ptask-ctx-chevron {
  margin-left: auto !important;
  font-size: 18px !important;
  color: var(--hz-on-surface-variant) !important;
}
.ptask-ctx-sub {
  display: none;
  position: absolute;
  left: calc(100% - 4px);
  top: 0;
  z-index: 5;
  min-width: 180px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--hz-surface-container-lowest);
  border: 1px solid var(--hz-outline-variant);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.ptask-ctx-item.is-open > .ptask-ctx-sub,
.ptask-ctx-item:hover > .ptask-ctx-sub { display: block; }
.ptask-ctx-sub button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ptask-ctx-sub button:hover,
.ptask-ctx-sub button.is-selected { background: var(--hz-surface-container-high); }
.ptask-ctx-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}

.proj-name-btn.is-favorite::before {
  content: 'star';
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  color: #fbbf24;
  margin-right: 4px;
  vertical-align: middle;
}

/* Project type editor modals */
.ptype-modal {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--hz-surface-container-lowest, #1c1c1e);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 80%, transparent);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  overflow: hidden;
}
.ptype-modal.is-dimmed { opacity: 0.35; pointer-events: none; }
.ptype-modal--stack {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ptype-modal--create {
  z-index: 4;
  width: min(420px, calc(100% - 24px));
  max-height: none;
  overflow: visible;
}
.ptype-modal--create .ptype-modal-body {
  overflow: visible;
  flex: 0 0 auto;
}
.modal-backdrop:has([data-ptype-layer]) {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ptype-modal-head {
  padding: 18px 20px 8px;
}
.ptype-modal-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--hz-on-surface);
}
.ptype-modal-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ptype-modal-body {
  padding: 8px 12px 12px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.ptype-modal-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px;
}
.ptype-modal-foot--spread { justify-content: space-between; }
.ptype-list { display: flex; flex-direction: column; }
.ptype-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 18px 1fr 36px;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--hz-on-surface);
}
.ptype-row:hover,
.ptype-row.is-open { background: color-mix(in srgb, var(--hz-surface-container-high) 70%, transparent); }
.ptype-row.is-dragging { opacity: 0.55; }
.ptype-drag {
  font-size: 20px;
  color: var(--hz-on-surface-variant);
  cursor: grab;
  justify-self: center;
}
.ptype-row-label { font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptype-row-more {
  width: 32px; height: 32px; border: none; border-radius: 8px; background: transparent;
  color: var(--hz-on-surface-variant); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
}
.ptype-row:hover .ptype-row-more,
.ptype-row.is-open .ptype-row-more { opacity: 1; }
.ptype-row-more:hover { background: var(--hz-surface-container-highest, var(--hz-surface-container-high)); color: var(--hz-on-surface); }
.ptype-row-menu {
  position: absolute;
  right: 8px;
  top: calc(100% - 4px);
  z-index: 5;
  min-width: 140px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-lowest);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ptype-row-menu button {
  text-align: left;
  border: none;
  background: transparent;
  color: var(--hz-on-surface);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.ptype-row-menu button:hover { background: var(--hz-surface-container-high); }
.ptype-row-menu button.is-danger { color: #f87171; }
.ptype-add-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 8px 0;
  padding: 8px 4px;
  border: none;
  background: none;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
  cursor: pointer;
}
.ptype-add-link:hover { color: var(--hz-on-surface); }
.ptype-add-link .material-symbols-outlined { font-size: 18px; }
.ptype-btn-text {
  border: none; background: none; color: var(--hz-on-surface-variant);
  font-size: 14px; font-weight: 500; padding: 10px 12px; cursor: pointer; border-radius: 8px;
}
.ptype-btn-text:hover { color: var(--hz-on-surface); background: color-mix(in srgb, var(--hz-surface-container-high) 60%, transparent); }
.ptype-btn-save {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 70%, transparent);
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ptype-btn-save:disabled {
  opacity: 0.45;
  cursor: default;
  color: var(--hz-on-surface-variant);
}
.ptype-btn-save:not(:disabled):hover { filter: brightness(1.06); }
.ptype-btn-create-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 75%, transparent);
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ptype-btn-create-new .material-symbols-outlined { font-size: 18px; }
.ptype-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 4px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background: transparent;
  color: var(--hz-on-surface-variant);
}
.ptype-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 14px;
}
.ptype-available-label {
  padding: 0 8px 8px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}
.ptype-add-list { display: flex; flex-direction: column; }
.ptype-add-row {
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.ptype-add-row:hover { background: color-mix(in srgb, var(--hz-surface-container-high) 65%, transparent); }
.ptype-add-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ptype-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--hz-outline-variant);
  justify-self: end;
}
.ptype-add-row input:checked + .ptype-check {
  background: var(--hz-primary);
  border-color: var(--hz-primary);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--hz-surface-container-lowest) 90%, transparent);
}
.ptype-empty {
  padding: 16px 8px;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.ptype-create-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 16px;
}
.ptype-color-wrap { position: relative; flex-shrink: 0; }
.ptype-color-trigger {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-high);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ptype-color-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-lowest);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.ptype-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.ptype-color-swatch.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--hz-primary);
}
.ptype-name-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--hz-outline-variant);
  background-color: var(--hz-surface-container-high, #2c2c2e) !important;
  color: var(--hz-on-surface) !important;
  font-size: 14px;
  outline: none;
  box-shadow: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
}
.ptype-name-input:focus {
  border-color: var(--hz-primary);
}
.ptype-name-input::placeholder {
  color: color-mix(in srgb, var(--hz-on-surface-variant) 80%, transparent);
  opacity: 1;
}
.ptype-name-input:-webkit-autofill,
.ptype-name-input:-webkit-autofill:hover,
.ptype-name-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--hz-surface-container-high, #2c2c2e) inset !important;
  -webkit-text-fill-color: var(--hz-on-surface) !important;
  caret-color: var(--hz-on-surface);
}

/* project-structure-create-menu */
.ptask-create-menu {
  position: fixed;
  z-index: 420;
  min-width: 280px;
  padding: 6px;
  border-radius: 12px;
  background: var(--hz-surface-container-lowest);
  border: 1px solid var(--hz-outline-variant);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.ptask-create-menu button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--hz-on-surface);
  text-align: left;
  cursor: pointer;
}
.ptask-create-menu button:hover {
  background: var(--hz-surface-container-high);
}
.ptask-create-menu button .material-symbols-outlined {
  font-size: 22px;
  color: var(--hz-primary);
  margin-top: 2px;
}
.ptask-create-menu button strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.ptask-create-menu button small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
  line-height: 1.35;
}
.ptask-structure-empty {
  max-width: 560px;
  margin: 48px auto;
  text-align: center;
  padding: 0 16px;
}
.ptask-structure-empty h3 {
  font-size: 18px;
  font-weight: 650;
  color: var(--hz-on-surface);
  margin: 0 0 8px;
}
.ptask-structure-empty p {
  font-size: 14px;
  color: var(--hz-on-surface-variant);
  margin: 0 0 24px;
}
.ptask-structure-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ptask-structure-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--hz-outline-variant);
  background: var(--hz-surface-container-low);
  color: var(--hz-on-surface);
  text-align: left;
  cursor: pointer;
}
.ptask-structure-card:hover {
  border-color: var(--hz-primary);
  background: var(--hz-surface-container-high);
}
.ptask-structure-card .material-symbols-outlined {
  font-size: 28px;
  color: var(--hz-primary);
}
.ptask-structure-card strong {
  font-size: 14px;
}
.ptask-structure-card span:last-child {
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}

/* subproject-task-count-badge */
.ptask-row--subproject .ptask-col-name {
  align-items: center;
}
.ptask-row--subproject .proj-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: hidden;
}
.ptask-sub-icon {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
  vertical-align: middle;
  margin-right: 4px;
}
@media (max-width: 640px) {
  .ptask-structure-actions {
    grid-template-columns: 1fr;
  }
}

/* Anexos (Google Drive) */
.ptask-attachments-section .ptask-att-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 8px;
}
.ptask-att-panel.is-collapsed { display: none; }
.ptask-att-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--hz-outline-variant, #f1e6e1);
  border-radius: 12px;
  background: var(--hz-surface-container-lowest, #fff);
  overflow: hidden;
}
.ptask-att-open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.ptask-att-open:hover { background: var(--hz-surface-container, #f1f5f9); }
.ptask-att-open .material-symbols-outlined {
  font-size: 22px;
  color: var(--hz-primary, #c43d00);
  flex-shrink: 0;
}
.ptask-att-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ptask-att-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--hz-on-surface, #130600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-att-size {
  font-size: 12px;
  color: var(--hz-on-surface-variant, #8a756c);
}
.ptask-att-forward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 2px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface-variant, #8a756c);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.ptask-att-forward:hover {
  background: var(--hz-surface-container, #f1f5f9);
  color: var(--hz-primary, #c43d00);
}
.ptask-att-forward .material-symbols-outlined {
  font-size: 18px;
}
.ptask-att-forward-menu {
  min-width: 180px;
}
.ptask-att-remove {
  margin-right: 4px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .ptask-att-forward {
    padding: 8px 8px;
    font-size: 11px;
    gap: 2px;
  }
  .ptask-att-forward .material-symbols-outlined {
    font-size: 17px;
  }
}
.ptask-att-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--hz-on-surface-variant, #8a756c);
  text-align: center;
}
.ptask-att-empty,
.ptask-att-connect {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: var(--hz-on-surface-variant, #8a756c);
  text-align: center;
}
.ptask-att-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px dashed var(--hz-primary, #c43d00);
  background: #eff6ff;
  color: var(--hz-primary, #c43d00);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}
.ptask-att-upload-label:hover { background: #dbeafe; }
.ptask-att-upload-label--inline {
  margin-top: 8px;
  width: 100%;
  border-style: solid;
  background: var(--hz-surface-container-lowest, #fff);
}
.ptask-att-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ptask-att-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ptask-att-connect .material-symbols-outlined {
  font-size: 28px;
  color: var(--hz-primary, #c43d00);
}
.ptask-att-drive-badge {
  margin-left: auto;
  margin-right: 8px;
  font-size: 11px;
  color: var(--hz-on-surface-variant, #8a756c);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hz-outline-variant, #e6d9d3);
  background: var(--hz-surface-container-lowest, #fff);
  color: var(--hz-primary, #c43d00);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.proj-btn-secondary:hover {
  background: var(--hz-surface-container, #f1f5f9);
}

.proj-drive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hz-outline-variant, #e6d9d3);
  background: var(--hz-surface-container-lowest, #fff);
  color: var(--hz-on-surface-variant, #8a756c);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  max-width: 160px;
}
.proj-drive-badge .material-symbols-outlined { font-size: 18px; }
.proj-drive-badge.is-connected {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.proj-drive-badge-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-pending-att {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--hz-outline-variant, #e6d9d3);
  background: var(--hz-surface-container-low, #f8fafc);
}
.ptask-pending-att-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hz-on-surface-variant, #8a756c);
}
.ptask-pending-att-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ptask-pending-att-row .material-symbols-outlined {
  font-size: 20px;
  color: var(--hz-primary, #c43d00);
}
.ptask-pending-att-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ptask-pending-att-size {
  font-size: 11px;
  color: var(--hz-on-surface-variant, #8a756c);
}

/* —— Mobile Projetos: bento gamificado —— */
.proj-bento {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.proj-bento-pagehead h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hz-on-surface);
  line-height: 1.15;
}
.proj-bento-pagehead p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px;
  background: var(--hz-surface-container);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
  box-shadow: 0 10px 24px -18px rgba(19, 6, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proj-bento-hero-glow {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hz-primary-container, #ff5300) 22%, transparent);
  filter: blur(28px);
  pointer-events: none;
}
.proj-bento-hero-empty {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proj-bento-zenny-pill,
.proj-bento-xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proj-bento-zenny-pill {
  background: var(--hz-surface-container-highest);
  color: var(--hz-tertiary, #ffb596);
}
.proj-bento-zenny-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hz-tertiary, #f59e0b);
  animation: proj-bento-pulse 1.6s ease-in-out infinite;
}
@keyframes proj-bento-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.proj-bento-xp-pill {
  background: color-mix(in srgb, var(--hz-primary-container, #ff5300) 22%, transparent);
  color: var(--hz-primary);
}
.proj-bento-xp-pill .material-symbols-outlined { font-size: 14px; }
.proj-bento-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 12px;
  align-items: stretch;
}
.proj-bento-focus {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.proj-bento-focus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hz-on-surface-variant);
}
.proj-bento-focus-kicker .material-symbols-outlined {
  font-size: 16px;
  color: var(--hz-tertiary, #f59e0b);
}
.proj-bento-focus-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hz-on-surface);
  line-height: 1.2;
}
.proj-bento-progress { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proj-bento-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-progress-row strong { color: var(--hz-primary); font-weight: 700; }
.proj-bento-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--hz-surface-container-highest);
  overflow: hidden;
}
.proj-bento-bar > div {
  height: 100%;
  border-radius: inherit;
  background: var(--hz-primary-container, #ff5300);
}
.proj-bento-next {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--hz-surface-container-low);
  min-width: 0;
}
.proj-bento-next .material-symbols-outlined {
  font-size: 16px;
  color: var(--hz-secondary, #ff7433);
  flex-shrink: 0;
}
.proj-bento-next p {
  margin: 0;
  font-size: 11px;
  color: var(--hz-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-bento-next strong { color: var(--hz-on-surface); font-weight: 600; }
.proj-bento-sprint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hz-surface-container-high) 70%, transparent);
  text-align: center;
}
.proj-bento-ring {
  position: relative;
  width: 64px;
  height: 64px;
}
.proj-bento-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.proj-bento-ring-bg { stroke: var(--hz-surface-container-highest); }
.proj-bento-ring-fg { stroke: var(--hz-primary-container, #ff5300); }
.proj-bento-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.proj-bento-ring-label strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--hz-on-surface);
}
.proj-bento-ring-label span {
  font-size: 10px;
  color: var(--hz-on-surface-variant);
  margin-top: 2px;
}
.proj-bento-sprint-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--hz-on-surface);
}
.proj-bento-sprint-sub {
  font-size: 10px;
  color: var(--hz-on-surface-variant);
  transform: scale(0.96);
}
.proj-bento-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj-bento-create {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--hz-primary-container, #ff5300);
  color: var(--hz-on-primary, #fff);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 18px -12px rgba(255, 83, 0, 0.55);
}
.proj-bento-create .material-symbols-outlined { font-size: 20px; }
.proj-bento-filter {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 600;
}
.proj-bento-filter.is-active {
  outline: 1px solid var(--hz-primary);
  color: var(--hz-primary);
}
.proj-bento-filter .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hz-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 55%, transparent);
}
.proj-bento-search .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--hz-on-surface);
  font-size: 14px;
}
.proj-bento-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--hz-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 45%, transparent);
}
.proj-bento-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
html:not(.dark) .proj-bento-tab:not(.is-active) {
  color: #2a170c;
}
.proj-bento-tab.is-active {
  background: var(--hz-surface-container-high);
  color: var(--hz-primary);
  box-shadow: 0 2px 8px rgba(19, 6, 0, 0.08);
}
.proj-bento-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hz-primary);
  flex-shrink: 0;
}
.proj-bento-tab-count {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: color-mix(in srgb, var(--hz-on-surface) 8%, transparent);
  color: inherit;
}
.proj-bento-tab.is-active .proj-bento-tab-count {
  background: color-mix(in srgb, var(--hz-primary) 14%, transparent);
  color: var(--hz-primary);
}
.proj-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.proj-bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--hz-surface-container);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 50%, transparent);
  box-shadow: 0 8px 20px -16px rgba(19, 6, 0, 0.3);
  cursor: pointer;
  text-align: left;
  color: inherit;
  min-width: 0;
}
.proj-bento-card.is-featured {
  grid-column: 1 / -1;
  gap: 12px;
}
.proj-bento-card.is-wide { grid-column: 1 / -1; }
.proj-bento-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hz-primary), var(--hz-secondary, #f59b6c), var(--hz-primary-container, #ff5300));
}
.proj-bento-card-top,
.proj-bento-card-top-sm {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.proj-bento-card-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.proj-bento-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--hz-primary) 16%, transparent);
  color: var(--hz-primary);
}
.proj-bento-icon.tone-sec {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hz-secondary-container, #ff5300);
  color: var(--hz-on-secondary, #fff);
}
.proj-bento-icon .material-symbols-outlined { font-size: 18px; }
.proj-bento-icon.tone-sec .material-symbols-outlined { font-size: 22px; }
.proj-bento-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.proj-bento-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--hz-on-surface);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.proj-bento-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-bento-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface-variant);
  flex-shrink: 0;
}
.proj-bento-chip.is-new {
  background: color-mix(in srgb, var(--hz-secondary, #f59b6c) 16%, transparent);
  color: var(--hz-secondary, #ff7433);
  text-transform: uppercase;
}
.proj-bento-chip.is-active {
  background: color-mix(in srgb, var(--hz-primary) 12%, transparent);
  color: var(--hz-primary);
}
.proj-bento-chip.is-high {
  background: color-mix(in srgb, var(--hz-tertiary, #f59e0b) 18%, transparent);
  color: var(--hz-tertiary, #b45309);
  font-weight: 800;
}
.proj-bento-more {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.proj-bento-more .material-symbols-outlined { font-size: 20px; }
.proj-bento-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--hz-surface-container-low);
  flex-wrap: wrap;
}
.proj-bento-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hz-on-surface-variant);
}
.proj-bento-metric .material-symbols-outlined {
  font-size: 16px;
  color: var(--hz-primary);
}
.proj-bento-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--hz-outline-variant);
}
.proj-bento-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-bento-card-bottom { margin-top: auto; padding-top: 4px; }
.proj-bento-avatars {
  display: flex;
  flex-direction: row-reverse;
  flex-shrink: 0;
}
.proj-bento-avatar {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--hz-surface-container);
  background: var(--hz-surface-bright);
  color: var(--hz-on-surface);
}
.proj-bento-avatar.tone-1 {
  background: var(--hz-secondary-container, #ff5300);
  color: var(--hz-on-secondary, #fff);
}
.proj-bento-avatar.tone-2 {
  background: var(--hz-tertiary-container, #996100);
  color: var(--hz-on-tertiary, #fff);
}
.proj-bento-avatar.tone-more {
  background: var(--hz-tertiary-container, #996100);
  color: var(--hz-on-tertiary, #fff);
}
.proj-bento-empty {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--hz-on-surface-variant);
  border-radius: 14px;
  background: var(--hz-surface-container-low);
}
.proj-bento-archived {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--hz-surface-container-low);
  border: 1px solid color-mix(in srgb, var(--hz-outline-variant) 45%, transparent);
}
.proj-bento-archived-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.proj-bento-archived-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.proj-bento-archived-title .material-symbols-outlined {
  font-size: 18px;
  color: var(--hz-outline);
}
.proj-bento-archived-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--hz-on-surface);
}
.proj-bento-archived-count {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 0;
  background: var(--hz-surface-container-high);
  color: var(--hz-on-surface-variant);
  font-size: 11px;
  font-weight: 700;
}
.proj-bento-archived-count.is-active {
  background: color-mix(in srgb, var(--hz-primary) 16%, transparent);
  color: var(--hz-primary);
}
.proj-bento-archived-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--hz-surface-container);
  color: var(--hz-on-surface);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.proj-bento-archived-row .material-symbols-outlined:first-child {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-archived-row .material-symbols-outlined:last-child {
  margin-left: auto;
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-muted {
  margin: 0;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}
.proj-bento-zenny {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--hz-surface-container);
}
.proj-bento-zenny-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--hz-tertiary-container, #996100);
  color: var(--hz-on-tertiary, #fff);
}
.proj-bento-zenny-avatar .material-symbols-outlined { font-size: 20px; }
.proj-bento-zenny p {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--hz-on-surface);
  line-height: 1.4;
}
.proj-bento-zenny span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hz-tertiary, #b45309);
}
html:not(.dark) .proj-bento-hero,
html:not(.dark) .proj-bento-card,
html:not(.dark) .proj-bento-zenny,
html:not(.dark) .proj-bento-archived-row {
  background: #fff;
}
html:not(.dark) .proj-bento-archived,
html:not(.dark) .proj-bento-tabs,
html:not(.dark) .proj-bento-search,
html:not(.dark) .proj-bento-metrics,
html:not(.dark) .proj-bento-next {
  background: #eef4ff;
}

/* —— Cronograma (planilha + Gantt) —— */
.proj-schedule-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hz-outline-variant, #d0d7e2);
  font-size: 13px;
  line-height: 1.35;
  color: var(--hz-on-surface);
  cursor: pointer;
}
.proj-schedule-flag input {
  margin-top: 2px;
  accent-color: var(--hz-primary, #2563eb);
}
.ptask-body--schedule {
  padding: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ptask-main:has(.ptask-body--schedule) {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.psched {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--hz-surface-container-lowest, #fff);
}
.psched-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--hz-outline-variant, #d0d7e2);
}
.psched-toolbar-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.psched-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--hz-on-surface);
}
.psched-start {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--hz-on-surface-variant);
}
.psched-start input {
  border: 1px solid var(--hz-outline-variant, #d0d7e2);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--hz-surface, #fff);
  color: var(--hz-on-surface);
  font-size: 12px;
}
.psched-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.psched-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--hz-outline-variant, #d0d7e2);
  background: var(--hz-surface-container-low, #f3f6fb);
  color: var(--hz-on-surface);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
.psched-btn .material-symbols-outlined { font-size: 18px; }
.psched-btn--primary {
  background: var(--hz-primary, #2563eb);
  border-color: transparent;
  color: var(--hz-on-primary, #fff);
}
.psched-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.psched-head,
.psched-row {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}
.psched-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #1f2937;
  color: #f8fafc;
}
.psched-fixed {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 130px 120px 118px 118px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--hz-surface-container-lowest, #fff);
  border-right: 1px solid var(--hz-outline-variant, #d0d7e2);
  flex: 0 0 auto;
  width: 706px;
}
.psched-fixed--head {
  background: #1f2937;
  z-index: 6;
  color: #f8fafc;
}
.psched-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hz-outline-variant, #d0d7e2);
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  min-height: 42px;
  font-size: 12px;
  font-weight: 600;
}
.psched-fixed--head .psched-cell {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(255, 255, 255, 0.08);
}
.psched-cell--task { font-weight: 500; }
.psched-cell--task.is-indent { padding-left: 28px; }
.psched-row--phase .psched-fixed {
  background: color-mix(in srgb, var(--hz-surface-container-low, #eef2f7) 85%, #fff);
}
.psched-row--phase .psched-cell {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 11px;
}
.psched-phase-icon {
  font-size: 18px;
  color: var(--hz-on-surface-variant);
}
.psched-phase-label { flex: 1; min-width: 0; }
.psched-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 2px 0;
}
.psched-input:focus {
  outline: none;
  background: color-mix(in srgb, var(--hz-primary, #2563eb) 8%, transparent);
  border-radius: 4px;
  padding-inline: 4px;
}
.psched-input--phase {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.psched-input--num {
  width: 42px;
  flex: 0 0 auto;
  text-align: right;
}
.psched-input--date {
  font-size: 11px;
  color: var(--hz-on-surface);
}
.psched-pct {
  font-size: 11px;
  color: var(--hz-on-surface-variant);
}
.psched-cell--progress {
  gap: 6px;
}
.psched-progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #22c55e 18%, #e5e7eb);
  overflow: hidden;
  min-width: 36px;
}
.psched-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: inherit;
}
.psched-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hz-on-surface-variant);
  opacity: 0.55;
  flex: 0 0 auto;
}
.psched-icon-btn:hover {
  opacity: 1;
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #dc2626;
}
.psched-icon-btn .material-symbols-outlined { font-size: 16px; }
.psched-timeline,
.psched-timeline-head {
  position: relative;
  flex: 0 0 auto;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 27px,
      rgba(148, 163, 184, 0.28) 27px,
      rgba(148, 163, 184, 0.28) 28px
    );
}
.psched-timeline {
  border-bottom: 1px solid var(--hz-outline-variant, #d0d7e2);
  min-height: 42px;
}
.psched-timeline-head {
  background: #1f2937;
}
.psched-months,
.psched-days {
  display: flex;
}
.psched-month {
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psched-day {
  box-sizing: border-box;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.psched-day.is-weekend { color: #94a3b8; background: rgba(255, 255, 255, 0.04); }
.psched-bar {
  position: absolute;
  top: 12px;
  height: 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  opacity: 0.92;
}
.psched-empty {
  padding: 28px 16px;
  color: var(--hz-on-surface-variant);
  font-size: 13px;
}
html.dark .psched,
html.dark .psched-fixed {
  background: var(--hz-surface-container-lowest, #111827);
}
html.dark .psched-row--phase .psched-fixed {
  background: color-mix(in srgb, #1f2937 80%, #000);
}
html.dark .psched-btn:not(.psched-btn--primary) {
  background: #1f2937;
}
@media (max-width: 900px) {
  .psched-fixed {
    width: 560px;
    grid-template-columns: minmax(160px, 1.4fr) 110px 100px 95px 95px;
  }
  .psched-toolbar {
    padding: 12px;
  }
}
