.task-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.task-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) repeat(3, minmax(150px, 0.42fr));
  gap: 12px;
  align-items: center;
}
.task-toolbar select,
.task-toolbar input,
.task-editor input,
.task-editor textarea,
.task-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #f8f9fa;
  outline: none;
}
.task-toolbar select,
.task-toolbar input,
.task-editor input,
.task-editor select {
  height: 42px;
  padding: 0 12px;
}
.task-date-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.task-date-nav button {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #59615c;
  background: #fff;
  cursor: pointer;
}
.task-date-nav input {
  min-width: 0;
  width: 160px;
}
.task-board {
  padding-top: 8px;
}
.web-task-list {
  display: flex;
  flex-direction: column;
}
.web-task-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px minmax(190px, auto);
  gap: 22px;
  padding: 18px 2px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.web-task-row:first-child {
  border-top: 0;
}
.web-task-main {
  min-width: 0;
}
.web-task-main .data-meta {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-labels {
  display: flex;
  margin-top: 9px;
  flex-wrap: wrap;
  gap: 6px;
}
.task-label {
  padding: 3px 8px;
  border-radius: 999px;
  color: #477060;
  background: #eaf7f0;
  font-size: 11px;
}
.task-label.tag {
  color: #6f6780;
  background: #f2eff7;
}
.web-task-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.web-task-time strong {
  color: var(--green);
}
.web-task-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.web-task-actions button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #cfe9db;
  border-radius: 10px;
  color: var(--action-secondary-text, #168e57);
  background: var(--action-secondary-bg, #f2fbf6);
  cursor: pointer;
}
.web-task-actions .danger-text {
  border-color: #f0d6d4;
  color: var(--danger);
  background: #fff7f6;
}
.task-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  padding: 30px;
  place-items: center;
  background: #16211c73;
  backdrop-filter: blur(4px);
}
.task-editor {
  width: min(720px, 100%);
  max-height: calc(100vh - 60px);
  padding: 26px;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px #15241d45;
}
.task-editor > label {
  display: block;
  margin-top: 15px;
  color: #59615d;
  font-size: 12px;
}
.task-editor textarea {
  height: 92px;
  margin-top: 7px;
  padding: 11px;
  resize: vertical;
}
.task-editor > label > input {
  margin-top: 7px;
}
.task-editor-grid {
  display: grid;
  margin-top: 15px;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.task-editor-grid label {
  color: #59615d;
  font-size: 12px;
}
.task-editor-grid input,
.task-editor-grid select {
  margin-top: 7px;
}
.task-editor fieldset {
  margin: 17px 0 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.task-editor legend {
  padding: 0 6px;
  color: #59615d;
  font-size: 12px;
}
.task-editor .task-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.task-editor .task-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.task-editor-actions {
  display: flex;
  margin-top: 22px;
  justify-content: flex-end;
  gap: 10px;
}
.task-editor-actions .secondary-button {
  display: inline-block;
  margin: 0;
}
.task-editor-actions .primary-button {
  min-width: 130px;
}
@media (max-width: 1100px) {
  .task-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .web-task-row {
    grid-template-columns: minmax(220px, 1fr) 150px;
  }
  .web-task-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .task-toolbar,
  .task-editor-grid {
    grid-template-columns: 1fr;
  }
  .web-task-row {
    grid-template-columns: 1fr;
  }
  .web-task-actions {
    grid-column: auto;
  }
  .task-date-nav {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .task-date-nav input {
    width: 100%;
  }
  .task-date-nav #webTaskToday {
    width: 100%;
    grid-column: 1/-1;
  }
  .task-editor-backdrop {
    padding: 12px;
  }
}
.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.web-subtask-summary {
  display: flex;
  margin-top: 12px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.web-subtask-summary progress {
  appearance: none;
  -webkit-appearance: none;
  height: 5px;
  overflow: hidden;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: var(--line);
}
.web-subtask-summary progress::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--line);
}
.web-subtask-summary progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--green);
}
.web-subtask-summary progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--green);
}
.web-subtask-list {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.web-subtask {
  display: flex;
  min-height: 34px;
  padding: 6px 9px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card);
  text-align: left;
  cursor: pointer;
}
.web-subtask-indicator {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid #bfc8c3;
  border-radius: 50%;
  color: #fff;
}
.web-subtask-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.web-subtask.completed { color: var(--muted); }
.web-subtask.completed .web-subtask-indicator { border-color: var(--action-primary-bg); background: var(--action-primary-bg); }
.web-subtask.completed .web-subtask-indicator::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: rotate(45deg);
}
.web-subtask.completed .web-subtask-title { text-decoration: line-through; }
.web-subtask:disabled { cursor: default; opacity: 0.7; }
.web-task-actions button:disabled { cursor: not-allowed; opacity: 0.55; }
@media (max-width: 760px) {
  .web-subtask-list { grid-template-columns: 1fr; }
}
