/* Task center: screenshot-style partition (总控/日常/活动/俱乐部/周月/收菜). */

.task-center-inline-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 560px;
  padding: 14px 12px 22px;
  background: #eef1f6;
  border: 0;
  border-radius: 18px;
}

.task-center-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px;
}

.task-center-inline-head h2 {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.task-center-inline-head p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.task-center-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.task-center-inline-body {
  min-width: 0;
}

.task-group-partition {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.task-group-tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.task-group-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: #e5e9f0;
  border-radius: 999px;
  -webkit-overflow-scrolling: touch;
}

.task-group-tabs::-webkit-scrollbar {
  display: none;
}

.task-group-tabs label {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 34px;
  padding: 0 14px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

#tgp-control:checked ~ .task-group-tabs label[for="tgp-control"],
#tgp-daily:checked ~ .task-group-tabs label[for="tgp-daily"],
#tgp-activity:checked ~ .task-group-tabs label[for="tgp-activity"],
#tgp-club:checked ~ .task-group-tabs label[for="tgp-club"],
#tgp-weekly:checked ~ .task-group-tabs label[for="tgp-weekly"],
#tgp-harvest:checked ~ .task-group-tabs label[for="tgp-harvest"] {
  color: #111827;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tgp-alert {
  padding: 10px 12px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 12px;
}

.task-select-summary {
  display: none;
}

.task-group-panels {
  min-width: 0;
}

.task-group-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

#tgp-control:checked ~ .task-group-panels .panel-control,
#tgp-daily:checked ~ .task-group-panels .panel-daily,
#tgp-activity:checked ~ .task-group-panels .panel-activity,
#tgp-club:checked ~ .task-group-panels .panel-club,
#tgp-weekly:checked ~ .task-group-panels .panel-weekly,
#tgp-harvest:checked ~ .task-group-panels .panel-harvest {
  display: flex;
}

.tgp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.tgp-section-head .tgp-row-actions {
  gap: 10px;
}

.tgp-section-head h3 {
  margin: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.tgp-section-head span,
.tgp-section-meta {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tgp-category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tgp-category-banner-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgp-category-banner-copy strong {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.tgp-category-banner-copy span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.tgp-category-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tgp-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  background: #eff6ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.tgp-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tgp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}

.tgp-card-head-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.tgp-card-module-kicker {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
}
.tgp-activity-challenge-schedule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 10px 16px 14px;
  background: #f8fbff;
}
.tgp-activity-challenge-friday { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; color: #334155; font-size: 13px; }
.tgp-activity-challenge-friday strong { color: #2563eb; font-size: 13px; }
.tgp-activity-challenge-friday em, .tgp-activity-challenge-time em { color: #64748b; font-size: 12px; font-style: normal; }
.tgp-activity-challenge-times { display: block; }
.tgp-activity-challenge-time { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; color: #475569; font-size: 13px; }
.tgp-activity-challenge-time .xy-time-picker { min-width: 72px; }
.tgp-activity-challenge-unified .tgp-activity-challenge-time { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.tgp-activity-challenge-unified .tgp-activity-challenge-time > span,
.tgp-activity-challenge-unified .tgp-activity-challenge-time > em { white-space: nowrap; }
.tgp-activity-challenge-unified .tgp-activity-challenge-time > .xy-time-picker { width: 124px; flex: 0 0 124px; }

.tgp-card-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.tgp-card-head span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.tgp-card-head .tgp-card-schedule-note {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.tgp-card-head:has(.tgp-card-schedule-note) {
  align-items: flex-start;
}

.tgp-card-head:has(.tgp-card-schedule-note) > .tgp-row-actions {
  flex: 0 0 auto;
}

.tgp-card-list {
  display: flex;
  flex-direction: column;
}

.tgp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-top: 1px dashed #e8edf5;
  cursor: pointer;
}

.tgp-card-list > .tgp-row:first-child,
.tgp-card-head + .tgp-card-list > .tgp-row:first-child {
  border-top: 1px dashed #e8edf5;
}

.tgp-card:not(:has(.tgp-card-head)) .tgp-card-list > .tgp-row:first-child {
  border-top: 0;
}

.tgp-row:hover {
  background: #fafbfc;
}

.tgp-row-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tgp-row-copy strong {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.tgp-row-copy span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.tgp-row-copy span.tgp-daily-time-warning {
  color: #d93025;
  font-weight: 700;
}

.tgp-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tgp-row-actions .task-pick-config-btn {
  min-width: 32px;
  height: 32px;
  padding: 0;
}

.tgp-row-static {
  cursor: default;
}

.tgp-row-static:hover {
  background: transparent;
}

.tgp-hms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tgp-hms input {
  box-sizing: border-box;
  width: 42px;
  height: 32px;
  padding: 0 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.tgp-hms input:disabled {
  opacity: 0.55;
}

.tgp-hms em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.tgp-lineup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.tgp-lineup-btn::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  opacity: 0.55;
}

.tgp-lineup-btn.open,
.tgp-lineup-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.tgp-lineup-popover.el-popper {
  padding: 8px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14) !important;
}

.tgp-lineup-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 156px;
}

.tgp-lineup-menu-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 200px;
}

.tgp-lineup-option {
  min-height: 32px;
  padding: 0 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.tgp-lineup-option:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.tgp-lineup-option.active {
  color: #fff;
  background: #4f46e5;
  border-color: #4f46e5;
}

.dark .tgp-lineup-popover.el-popper,
body.dark-mode .tgp-lineup-popover.el-popper {
  background: #17171c !important;
  border-color: #2a2a32 !important;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35) !important;
}

.dark .tgp-lineup-option,
body.dark-mode .tgp-lineup-option {
  color: #e5e7eb;
  background: #202028;
  border-color: #2a2a32;
}

.dark .tgp-lineup-option:hover,
body.dark-mode .tgp-lineup-option:hover {
  background: #2a2a38;
  border-color: #4f46e5;
  color: #c7d2fe;
}

.tgp-daily-schedule-card {
  margin-bottom: 12px;
}

.tgp-arena-inline-config {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
}

.tgp-arena-inline-config .tgp-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tgp-daily-time-field {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tgp-daily-time-field .el-date-editor,
.tgp-daily-time-field .xy-time-picker,
.tgp-daily-time-field .el-input {
  width: 118px !important;
  max-width: 118px;
}

/* 周/月日期下拉：只控宽度，不再套外层框 */
.tgp-daily-time-field .tgp-schedule-day.el-select,
.tgp-daily-time-field .tgp-schedule-day.xy-select {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
}

.tgp-daily-time-field .tgp-schedule-day-month.el-select,
.tgp-daily-time-field .tgp-schedule-day-month.xy-select {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
}

.tgp-schedule-day-dropdown.el-select__popper,
.tgp-schedule-day-dropdown {
  min-width: 120px !important;
}

.tgp-schedule-day-dropdown .el-select-dropdown__item {
  padding-right: 20px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.tgp-minutes-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tgp-evo-interval {
  flex-wrap: wrap;
  background: #f8fbff;
}

.tgp-evo-interval .tgp-row-copy {
  flex: 1 1 130px;
}

.tgp-minutes-field input {
  box-sizing: border-box;
  width: 76px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
}

.tgp-minutes-field input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.tgp-minutes-field input::-webkit-outer-spin-button,
.tgp-minutes-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.tgp-minutes-field input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.tgp-control-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tgp-control-card > label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.tgp-control-card > label span {
  color: #ef4444;
}

.task-group-partition .tgp-control-card input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--text-primary, #0f172a);
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
}

.task-group-partition .tgp-control-card .task-role-picker,
.task-group-partition .tgp-control-card .task-rule-panel {
  margin: 0;
}

.tgp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tgp-stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tgp-stat-card strong {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tgp-stat-card span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.tgp-stat-card-name {
  justify-content: center;
  gap: 8px;
}

.tgp-stat-card-name > span {
  color: #ef4444;
}

.tgp-opened-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgp-opened-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.tgp-opened-task-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tgp-opened-task-copy strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tgp-opened-task-copy span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tgp-opened-task-copy em {
  color: #2563eb;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tgp-opened-task-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.tgp-stat-name-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  outline: none;
}

.tgp-stat-name-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.tgp-stat-name-input:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

label.tgp-stat-card-action {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

label.tgp-stat-card-action:hover {
  background: #f8fafc;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

label.tgp-stat-card-action:active {
  transform: scale(0.98);
}

.tgp-library-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.tgp-library-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.tgp-library-toggle:checked + .tgp-library-modal {
  display: flex;
}

.tgp-roles-picker .task-role-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgp-roles-picker .task-role-item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.tgp-roles-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.tgp-roles-done:hover {
  background: #1d4ed8;
}

.tgp-library-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.tgp-library-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(78vh, 720px);
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.tgp-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eef2f7;
}

.tgp-library-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.tgp-library-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.tgp-library-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tgp-library-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #64748b;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.tgp-library-close:hover {
  background: #f1f5f9;
  color: #111827;
}

.tgp-library-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 14px 16px;
}

.tgp-library-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.tgp-template-library-empty {
  padding: 36px 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.tgp-template-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgp-template-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tgp-template-item:hover {
  background: #f1f5f9;
}

.tgp-template-item.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.tgp-template-item.is-selected {
  border-color: #86efac;
}

.tgp-template-item.is-disabled .tgp-template-item-copy strong {
  color: #9ca3af;
}

.tgp-template-item-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.tgp-template-item-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tgp-template-item-copy strong {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tgp-template-item-copy span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tgp-template-item-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tgp-empty {
  padding: 28px 16px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background: #fff;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .task-center-inline-editor {
    padding: 12px 10px 18px;
  }

  .task-center-inline-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .task-center-inline-actions {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .task-center-inline-actions > * {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    justify-content: center;
  }

  .task-center-inline-actions .el-button,
  .task-center-inline-actions .van-button,
  .task-center-inline-actions button {
    width: 100%;
  }

  .tgp-category-banner-copy strong {
    font-size: 20px;
  }

  .tgp-category-banner {
    align-items: flex-start;
  }

  .tgp-library-dialog {
    max-height: min(84vh, 720px);
  }

  .tgp-template-item {
    flex-wrap: wrap;
  }

  .tgp-template-item-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 38px;
  }

  .tgp-row-static {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .tgp-row-static .tgp-row-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tgp-row-static .tgp-row-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* 周/月时间选择：窄屏时放到标题文字下方 */
  .tgp-daily-schedule-card .tgp-row-static {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }

  .tgp-daily-schedule-card .tgp-row-static .tgp-row-copy {
    flex: 0 0 auto;
    width: 100%;
  }

  .tgp-daily-schedule-card .tgp-row-static .tgp-row-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .tgp-daily-schedule-card .tgp-daily-time-field {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .tgp-minutes-field {
    gap: 4px;
  }

  .tgp-minutes-field input {
    width: 68px;
    height: 34px;
  }
}

body.dark-mode .task-center-inline-editor,
.dark .task-center-inline-editor {
  background: #16181d;
}

body.dark-mode .task-group-tabs,
.dark .task-group-tabs {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode #tgp-control:checked ~ .task-group-tabs label[for="tgp-control"],
body.dark-mode #tgp-daily:checked ~ .task-group-tabs label[for="tgp-daily"],
body.dark-mode #tgp-activity:checked ~ .task-group-tabs label[for="tgp-activity"],
body.dark-mode #tgp-club:checked ~ .task-group-tabs label[for="tgp-club"],
body.dark-mode #tgp-weekly:checked ~ .task-group-tabs label[for="tgp-weekly"],
body.dark-mode #tgp-harvest:checked ~ .task-group-tabs label[for="tgp-harvest"],
.dark #tgp-control:checked ~ .task-group-tabs label[for="tgp-control"],
.dark #tgp-daily:checked ~ .task-group-tabs label[for="tgp-daily"],
.dark #tgp-activity:checked ~ .task-group-tabs label[for="tgp-activity"],
.dark #tgp-club:checked ~ .task-group-tabs label[for="tgp-club"],
.dark #tgp-weekly:checked ~ .task-group-tabs label[for="tgp-weekly"],
.dark #tgp-harvest:checked ~ .task-group-tabs label[for="tgp-harvest"] {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.dark-mode .tgp-opened-task-row,
.dark .tgp-opened-task-row {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
}

body.dark-mode .tgp-opened-task-copy strong,
.dark .tgp-opened-task-copy strong {
  color: #f8fafc;
}

body.dark-mode .tgp-card,
body.dark-mode .tgp-control-card,
body.dark-mode .tgp-stat-card,
body.dark-mode .tgp-empty,
.dark .tgp-card,
.dark .tgp-control-card,
.dark .tgp-stat-card,
.dark .tgp-empty {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

body.dark-mode .tgp-alert,
.dark .tgp-alert {
  color: #fdba74;
  background: rgba(154, 52, 18, 0.18);
  border-color: rgba(251, 146, 60, 0.45);
}

body.dark-mode .task-center-inline-head h2,
body.dark-mode .tgp-category-banner-copy strong,
body.dark-mode .tgp-card-head strong,
body.dark-mode .tgp-row-copy strong,
body.dark-mode .tgp-control-card > label,
body.dark-mode .tgp-stat-card strong,
.dark .task-center-inline-head h2,
.dark .tgp-category-banner-copy strong,
.dark .tgp-card-head strong,
.dark .tgp-row-copy strong,
.dark .tgp-control-card > label,
.dark .tgp-stat-card strong {
  color: #f8fafc;
}

body.dark-mode .tgp-row,
.dark .tgp-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tgp-row:hover,
.dark .tgp-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .tgp-library-dialog,
.dark .tgp-library-dialog {
  background: #1c1f26;
}

body.dark-mode .tgp-library-head,
body.dark-mode .tgp-library-foot,
.dark .tgp-library-head,
.dark .tgp-library-foot {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .tgp-library-head h3,
body.dark-mode .tgp-template-item-copy strong,
.dark .tgp-library-head h3,
.dark .tgp-template-item-copy strong {
  color: #f8fafc;
}

body.dark-mode .tgp-library-head p,
body.dark-mode .tgp-template-item-copy span,
body.dark-mode .tgp-template-library-empty,
body.dark-mode .tgp-library-foot,
.dark .tgp-library-head p,
.dark .tgp-template-item-copy span,
.dark .tgp-template-library-empty,
.dark .tgp-library-foot {
  color: #94a3b8;
}

body.dark-mode .tgp-library-close:hover,
.dark .tgp-library-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

body.dark-mode .tgp-template-item,
.dark .tgp-template-item {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .tgp-template-item:hover,
.dark .tgp-template-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .tgp-template-item.is-active,
.dark .tgp-template-item.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.16);
}

body.dark-mode label.tgp-stat-card-action:hover,
.dark label.tgp-stat-card-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .tgp-minutes-field,
.dark .tgp-minutes-field {
  color: #94a3b8;
}

body.dark-mode .tgp-minutes-field input,
.dark .tgp-minutes-field input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

body.dark-mode .tgp-minutes-field input:focus,
.dark .tgp-minutes-field input:focus {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

body.dark-mode .tgp-stat-name-input,
.dark .tgp-stat-name-input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

body.dark-mode .tgp-stat-name-input:focus,
.dark .tgp-stat-name-input:focus {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

body.dark-mode .tgp-roles-picker .task-role-item,
.dark .tgp-roles-picker .task-role-item {
  background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .tgp-roles-done,
.dark .tgp-roles-done {
  background: #3b82f6;
}

body.dark-mode .tgp-roles-done:hover,
.dark .tgp-roles-done:hover {
  background: #2563eb;
}
