/* Shared task surfaces use the existing sheet palette and native controls. */
#task-perspectives {
  display: flex;
  gap: 14px;
  padding: 0 2px 12px;
}
.unified-tile {
  padding: 14px;
  overflow: hidden;
}
.task-group-heading {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  padding: 6px 0 12px;
  min-height: 44px;
}
.task-group-heading small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 5px;
}
.unified-tile .project-task {
  padding: 5px 0;
  border: 0;
}
.unified-tile .project-task-open {
  color: inherit;
}
.task-badges {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--sheet-muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.task-overdue,
.task-danger {
  color: #ef5c58 !important;
}
.task-flag {
  color: #ed982f;
}
.task-flag-toggle {
  background: none;
  border: 0;
  color: inherit;
  min-height: 44px;
  min-width: 36px;
  font-size: 20px;
  opacity: 0.7;
}
.task-flag-toggle.task-flag {
  opacity: 1;
}
.task-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task-title-line .native-field {
  flex: 1;
}
.task-title-line input[type="checkbox"] {
  width: 24px;
  height: 24px;
}
.unified-editor details,
.task-actions {
  border-top: 1px solid var(--sheet-line);
  padding: 10px 0;
  margin-top: 12px;
}
.unified-editor summary,
.task-actions summary {
  min-height: 44px;
  cursor: pointer;
  line-height: 44px;
  font-weight: 600;
}
.unified-editor summary span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--sheet-muted);
}
.unified-editor textarea,
#share-text {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 88px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--sheet-input-border);
  border-radius: 12px;
  background: var(--sheet-input);
  color: var(--sheet-text);
  resize: vertical;
}
.task-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 14px;
  margin-right: 10px;
}
.task-inline input {
  width: 20px;
  height: 20px;
}
.task-date {
  margin-bottom: 15px;
}
.task-date .native-field {
  margin-bottom: 0;
}
.task-note-preview {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.task-note-preview:empty {
  display: none;
}
.task-note-preview p {
  margin: 8px 0;
}
.task-note-preview a {
  color: #489cff;
}
.unified-editor fieldset {
  border: 1px solid var(--sheet-line);
  border-radius: 12px;
  margin: 14px 0;
  padding: 10px;
}
.task-file,
.task-alert {
  padding: 12px;
  border: 1px solid var(--sheet-line);
  border-radius: 12px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.task-file .menuopt {
  display: inline-flex;
  min-width: 65px;
  width: auto;
  padding: 10px;
}
.task-save-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.task-save-actions > * {
  flex: 1;
}
.project-task[style] {
  padding-left: calc(min(var(--task-depth), 8) * 8px);
}
.sheet:has(.unified-editor) {
  overflow-y: auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.unified-editor input:focus-visible,
.unified-editor textarea:focus-visible {
  outline: 2px solid #57a8ff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .unified-editor * {
    animation: none !important;
    transition: none !important;
  }
}
