/* 任务中心 — 左右布局（参照应用中心 /market） */

.plaza-main.tc-layout {
  --plaza-aside-w: 20%;
  grid-template-columns: minmax(0, 1fr) var(--plaza-aside-w);
  gap: 20px;
  align-items: start;
}

.plaza-main.tc-layout > .tc-feed {
  min-width: 0;
  gap: 16px;
}

.plaza-main.tc-layout > .plaza-aside {
  min-width: 0;
}

.plaza-main .plaza-feed > .tc-head,
.plaza-main .plaza-feed > .tc-toolbar,
.plaza-main .plaza-feed > .tc-task-list,
.plaza-main .plaza-feed > .tc-my-panel,
.plaza-main .plaza-feed > .tc-empty-board,
.plaza-main .plaza-aside > .aside-card {
  margin-bottom: 0;
}

/* ========== 页头 ========== */
.tc-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 14%, var(--card)) 0%,
    color-mix(in srgb, var(--accent) 5%, var(--card)) 42%,
    color-mix(in srgb, var(--accent-soft, var(--accent)) 45%, var(--card)) 100%
  );
  border: 0;
  border-radius: var(--radius, 20px);
  padding: 24px 24px 20px;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.tc-head::before,
.tc-head::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.tc-head::before {
  width: min(320px, 70%);
  height: min(320px, 140%);
  top: -55%;
  right: -8%;
  background: radial-gradient(
    circle at 40% 40%,
    color-mix(in srgb, var(--accent) 24%, transparent) 0%,
    transparent 72%
  );
  opacity: 0.85;
}

.tc-head::after {
  width: min(220px, 44%);
  height: min(220px, 110%);
  left: -6%;
  bottom: -60%;
  background: radial-gradient(
    circle at 50% 45%,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%,
    transparent 74%
  );
  opacity: 0.75;
}

.tc-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.tc-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tc-head-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tc-head-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 72%, #764ba2)
  );
  border: 0;
  color: var(--accent-ink, #fff);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.tc-head-text {
  min-width: 0;
}

.tc-head-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tc-head-sub {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tc-head-refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(6px);
}

.tc-head-actions .btn-primary {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 24%, transparent);
}

.tc-head-tabs {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 18%, transparent);
  position: relative;
  z-index: 1;
}

.tc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
  background: color-mix(in srgb, var(--card) 76%, transparent);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tc-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--accent);
}

.tc-tab:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

.tc-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink, #fff);
  font-weight: 600;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 28%, transparent);
}

.tc-tab.on em {
  background: color-mix(in srgb, var(--accent-ink, #fff) 18%, transparent);
  color: var(--accent-ink, #fff);
}

.tc-filter-empty {
  margin-top: 0;
}

/* 排序 + 布局工具栏 */
.tc-toolbar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.tc-sort-tabs .feed-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tc-sort-tabs .feed-tab:hover {
  color: var(--text);
}

.tc-sort-tabs .feed-tab.on {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
}

/* 双列列表：PC 保持横向卡片，≤960px 自适应为矩阵紧凑卡片 */
.tc-task-list.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tc-task-list.cols-2 .tc-task-card {
  min-width: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.tc-task-list.cols-2 .tc-task-layout {
  flex: 1 1 auto;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.tc-task-list.cols-2 .tc-task-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.tc-task-list.cols-2 .tc-task-icon {
  border-radius: 14px;
}

.tc-task-list.cols-2 .tc-task-title {
  font-size: 14px;
  line-height: 1.35;
}

.tc-task-list.cols-2 .tc-task-right {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0 0 0 8px;
  margin-top: 0;
  border: none;
  justify-content: center;
  align-self: center;
}

.tc-task-list.cols-2 .tc-task-actions-side .btn,
.tc-task-list.cols-2 .tc-btn-going,
.tc-task-list.cols-2 .tc-btn-done,
.tc-task-list.cols-2 .tc-btn-ended,
.tc-task-list.cols-2 .tc-btn-published {
  min-width: 80px;
  width: 80px;
  max-width: none;
  height: 34px;
  min-height: 34px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .tc-task-list.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tc-task-list.cols-2 .tc-task-card {
    padding: 12px;
    border-radius: 14px;
  }

  .tc-task-list.cols-2 .tc-task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "title"
      "reward"
      "action";
    gap: 8px;
    align-items: start;
  }

  .tc-task-list.cols-2 .tc-task-left,
  .tc-task-list.cols-2 .tc-task-stack,
  .tc-task-list.cols-2 .tc-task-head-bar,
  .tc-task-list.cols-2 .tc-task-meta-panel {
    display: contents;
  }

  .tc-task-list.cols-2 .tc-task-icon {
    grid-area: icon;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .tc-task-list.cols-2 .tc-task-icon > i {
    font-size: 42cqmin;
  }

  .tc-task-list.cols-2 .tc-task-title {
    grid-area: title;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
  }

  .tc-task-list.cols-2 .tc-desc-text,
  .tc-task-list.cols-2 .tc-task-meta-extra,
  .tc-task-list.cols-2 .tc-task-meta-progress,
  .tc-task-list.cols-2 .tc-progress-inline,
  .tc-task-list.cols-2 .tc-task-tags,
  .tc-task-list.cols-2 .tc-submit-info {
    display: none;
  }

  .tc-task-list.cols-2 .tc-task-meta-reward {
    grid-area: reward;
    display: block;
    white-space: normal;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .tc-task-list.cols-2 .tc-my-published-card .tc-task-meta-reward {
    display: none !important;
  }

  .tc-task-list.cols-2 .tc-my-published-card .tc-task-meta-extra.tc-my-published-meta {
    display: flex !important;
    grid-area: reward;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
  }

  .tc-task-list.cols-2 .tc-task-right {
    grid-area: action;
    width: 100%;
    padding: 0;
    margin: 0;
    align-self: stretch;
  }

  .tc-task-list.cols-2 .tc-task-actions-side {
    width: 100%;
  }

  .tc-task-list.cols-2 .tc-task-actions-side .btn,
  .tc-task-list.cols-2 .tc-btn-going,
  .tc-task-list.cols-2 .tc-btn-done,
  .tc-task-list.cols-2 .tc-btn-ended,
  .tc-task-list.cols-2 .tc-btn-published {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    font-size: 12px;
  }
}

/* ========== 右侧栏（对齐 market aside） ========== */
.aside-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.aside-author-row .uc-avatar-badge {
  background: var(--avatar-ring, var(--accent));
  border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  color: #fff !important;
}

.aside-author-row .uc-avatar-badge.is-img {
  background: transparent !important;
  box-shadow: none;
  border-radius: 0;
}

.aside-author-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aside-author-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.aside-author-name a {
  color: inherit;
  text-decoration: none;
}

.aside-author-name a:hover {
  color: var(--accent);
}

.aside-author-name .work-level {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  border-radius: 99px;
  padding: 1px 5px;
  line-height: 1.3;
  transform: scale(.9);
  transform-origin: left center;
  flex: 0 0 auto;
  font-style: normal;
}

.aside-author-meta > span {
  font-size: 13px;
  color: var(--muted);
}

.aside-author-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.aside-author-stat {
  text-align: center;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--chip);
}

.aside-author-stat b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.aside-author-stat span {
  font-size: 11px;
  color: var(--muted);
}

.rl-member-assets {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.rl-member-assets span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rl-member-assets i {
  font-size: 16px;
  color: var(--accent);
}

.rl-member-assets b {
  color: var(--text);
  font-weight: 500;
}

.aside-author-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.aside-author-actions .btn {
  flex: 1;
  justify-content: center;
}

.aside-author-actions .btn.is-active {
  border-color: color-mix(in srgb, var(--accent, #4f46e5) 35%, var(--line, #dbe3ea));
  color: var(--accent, #4f46e5);
  background: color-mix(in srgb, var(--accent, #4f46e5) 8%, var(--card, #fff));
}

.tc-my-panel {
  display: none;
}

.tc-my-panel.on {
  display: block;
}

.tc-btn-published.status-1 {
  color: #16a34a !important;
  border-color: color-mix(in srgb, #16a34a 35%, var(--line)) !important;
  background: color-mix(in srgb, #16a34a 8%, var(--card)) !important;
}

.tc-btn-published.status-0 {
  color: #d97706 !important;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line)) !important;
  background: color-mix(in srgb, #f59e0b 8%, var(--card)) !important;
}

.tc-btn-published:not(.status-0):not(.status-1) {
  color: var(--muted) !important;
  border-color: color-mix(in srgb, var(--muted) 35%, var(--line)) !important;
  background: color-mix(in srgb, var(--muted) 6%, var(--card)) !important;
}

.rl-member-login {
  text-align: center;
}

.rl-member-login .rl-avatar-big {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-member-login h1 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}

.rl-member-login p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.tc-aside-guide {
  padding-bottom: 16px;
}

.tc-aside-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-aside-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--chip);
}

.tc-aside-tip i {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  margin-top: 2px;
}

.tc-aside-tip strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tc-aside-tip span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tc-aside-activity {
  padding-bottom: 14px;
}

.tc-activity-viewport {
  overflow: hidden;
  position: relative;
  height: 290px;
}

.tc-activity-track {
  will-change: transform;
}

.tc-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  box-sizing: border-box;
}

.tc-activity-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--text-soft);
  font-size: 16px;
}

.tc-activity-icon.is-publish {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--chip));
}

.tc-activity-icon.is-claim {
  color: #6366f1;
  background: color-mix(in srgb, #6366f1 10%, var(--chip));
}

.tc-activity-icon.is-complete {
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 10%, var(--chip));
}

.tc-activity-body {
  flex: 1;
  min-width: 0;
}

.tc-activity-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

.tc-activity-text strong {
  font-weight: 650;
  color: var(--text);
}

.tc-activity-task {
  color: var(--muted);
}

.tc-activity-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.tc-activity-empty {
  padding: 8px 0 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ========== 任务列表 ========== */
.tc-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-task-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 15px;
  background: var(--card);
  box-sizing: border-box;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-task-card:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 10%, transparent);
}

.tc-task-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tc-task-left {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.tc-task-left > .tc-task-icon {
  grid-column: 1;
  grid-row: 1;
}

.tc-task-left > .tc-task-stack {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.tc-task-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding-left: 12px;
  border: none;
}

.tc-task-actions-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 0;
  height: auto;
  min-height: 0;
}

.tc-task-actions-side .btn,
.tc-btn-going,
.tc-btn-done,
.tc-btn-ended,
.tc-btn-published {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 92px;
  width: 92px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
}

.tc-task-actions-side .btn.btn-primary {
  border-radius: 12px;
}

.tc-task-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tc-task-icon {
  flex: none;
  width: auto;
  height: 100%;
  align-self: stretch;
  aspect-ratio: 1 / 1;
  min-height: 76px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--chip));
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card) 60%, transparent);
  container-type: size;
}

.tc-task-icon > i {
  line-height: 1;
  font-size: 42cqmin;
}

.tc-task-icon img {
  width: 70%;
  height: 70%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.tc-task-stack {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.tc-task-head-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.tc-task-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-task-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
}

.tc-task-tags .tc-status-badge,
.tc-task-tags .tc-grant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 25px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  border-radius: 999px;
  flex-shrink: 0;
}

.tc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  border-radius: 999px;
  font-weight: 650;
  background: var(--chip);
  color: var(--muted);
  border: 1px solid var(--line);
}

.tc-prize-text,
.tc-task-meta-reward,
.tc-meta-reward {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tc-task-meta-reward span,
.tc-prize-text span,
.tc-meta-reward span {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.tc-task-meta-reward span + span::before,
.tc-prize-text span + span::before,
.tc-meta-reward span + span::before {
  content: '、';
}

.tc-progress-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 72px;
  max-width: none;
}

.tc-desc-text {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-task-meta-panel {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.tc-task-meta-extra {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.tc-task-meta-extra .tc-meta-quota,
.tc-task-meta-extra .tc-meta-deadline {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.tc-task-meta-progress {
  flex: 1 1 auto;
  min-width: 72px;
  max-width: none;
}

.tc-task-meta-panel .tc-progress-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.tc-desc-block .tc-task-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 12px;
  line-height: 1.45;
  min-width: 0;
}

.tc-desc-block .tc-task-meta > span,
.tc-desc-block .tc-task-meta .tc-meta-reward,
.tc-desc-block .tc-task-meta .tc-meta-quota,
.tc-desc-block .tc-task-meta .tc-meta-deadline {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.tc-desc-block .tc-task-meta .tc-desc-text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-desc-block .tc-task-meta .tc-prize-text,
.tc-desc-block .tc-task-meta .tc-meta-reward {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tc-task-meta-panel .tc-progress-inline,
.tc-task-meta-row .tc-progress-inline,
.tc-desc-block .tc-task-meta .tc-progress-inline {
  flex: 1 1 auto;
  min-width: 72px;
  max-width: none;
  margin: 0;
}

.tc-progress-bar {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 48px;
}

.tc-progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .35s ease;
}

.tc-progress-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.tc-btn-done {
  color: #16a34a !important;
  border-color: color-mix(in srgb, #16a34a 35%, var(--line)) !important;
  background: color-mix(in srgb, #16a34a 8%, var(--card)) !important;
  opacity: 1;
  cursor: default;
}

.tc-btn-going {
  color: var(--accent) !important;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
  background: color-mix(in srgb, var(--accent) 6%, var(--card)) !important;
  opacity: 1;
  cursor: default;
}

.tc-btn-ended {
  color: var(--muted) !important;
  border-color: color-mix(in srgb, var(--muted) 35%, var(--line)) !important;
  background: color-mix(in srgb, var(--muted) 6%, var(--card)) !important;
  opacity: 1;
  cursor: default;
}

.tc-status-badge.status-3 {
  color: #dc2626;
  border-color: color-mix(in srgb, #ef4444 35%, var(--line));
  background: color-mix(in srgb, #ef4444 8%, var(--chip));
}

.tc-status-badge.status-unclaimed {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--chip));
}

.tc-prize-text {
  font-size: 12px;
  color: var(--muted);
}

.tc-claim-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tc-claim-hint i {
  margin-right: 4px;
  color: var(--accent);
}

.tc-claim-panel {
  max-width: none;
}

/* 任务中心弹窗内容 */
.tc-claim-detail {
  margin: 0 0 12px;
  text-align: left;
}

.tc-modal-meta {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.tc-modal-section {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--chip);
  border: 1px solid var(--line);
}

.tc-modal-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tc-modal-rewards-empty {
  margin: 0;
}

.tc-submit-hint {
  margin-top: -8px;
}

.tc-claim-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.tc-claim-reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.tc-claim-reward-item i {
  font-size: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}

.tc-claim-reward-item strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.tc-claim-reward-item span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.tc-claim-reward-item.grant-manual {
  border-color: color-mix(in srgb, #f59e0b 30%, var(--line));
  background: color-mix(in srgb, #f59e0b 5%, var(--card));
}

.tc-claim-reward-item.grant-manual span {
  color: #d97706;
  font-weight: 600;
}

.tc-status-badge.status-2 {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--line));
  background: color-mix(in srgb, #16a34a 8%, var(--chip));
}

.tc-status-badge.status-1 {
  color: #d97706;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: color-mix(in srgb, #f59e0b 8%, var(--chip));
}

.tc-status-badge.status-3 {
  color: #dc2626;
  border-color: color-mix(in srgb, #ef4444 35%, var(--line));
  background: color-mix(in srgb, #ef4444 8%, var(--chip));
}

.tc-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tc-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.tc-type-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-weight: 650;
  color: var(--text-soft);
}

.tc-rewards {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-rewards-inline {
  margin-top: 0;
  gap: 6px;
}

.tc-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--chip));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  color: var(--text-soft);
  max-width: 100%;
}

.tc-task-tags .tc-grant-chip,
.tc-rewards-inline .tc-grant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 25px;
  padding: 0 10px;
  font-size: 10px;
  line-height: 1;
  border-radius: 999px;
  font-weight: 650;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tc-task-tags .tc-grant-chip.grant-manual,
.tc-rewards-inline .tc-grant-chip.grant-manual {
  color: #d97706;
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: color-mix(in srgb, #f59e0b 8%, var(--chip));
}

.tc-task-tags .tc-grant-chip.grant-auto,
.tc-rewards-inline .tc-grant-chip.grant-auto {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--chip));
}

.tc-reward-chip i {
  color: var(--accent);
  font-size: 14px;
  flex: 0 0 auto;
}

.tc-reward-label {
  font-weight: 650;
  min-width: 0;
}

.tc-grant-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  flex: 0 0 auto;
}

.tc-reward-chip.grant-manual .tc-grant-tag {
  color: #d97706;
  border-color: color-mix(in srgb, #f59e0b 30%, var(--line));
}

.tc-progress-side {
  flex: 0 0 auto;
  text-align: center;
  min-width: 80px;
}

.tc-progress-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.tc-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tc-ring-bg {
  fill: none;
  stroke: var(--chip);
  stroke-width: 3;
}

.tc-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray .35s ease;
}

.tc-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.tc-progress-side .tc-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}

.tc-task-actions {
  margin-top: 12px;
}

.tc-task-right .tc-task-actions {
  margin-top: 0;
  height: auto;
  min-height: 0;
}

.tc-submit-note.inline {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tc-submit-note.inline i {
  margin-right: 4px;
  vertical-align: -1px;
}

.tc-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius, 20px);
  background: var(--card);
  border: 1px solid var(--line);
}

.tc-empty-board {
  padding: 56px 24px;
}

.tc-empty i {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
  opacity: .7;
}

.tc-empty p {
  margin: 0 0 16px;
  font-size: 14px;
}

/* 提交弹窗 */
.tc-submit-panel {
  max-width: none;
}

.tc-submit-panel .uc-modal-field {
  margin-bottom: 12px;
}

.tc-submit-form {
  margin-bottom: 4px;
}

.tc-form-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-soft);
}

.tc-submit-form .uc-modal-input,
.tc-submit-form .uc-modal-textarea {
  margin-bottom: 0;
  box-sizing: border-box;
  font-size: 14px;
}

.tc-submit-panel .uc-modal-input {
  height: 48px;
  padding: 0 14px;
  line-height: 48px;
}

.tc-submit-panel .uc-modal-textarea {
  min-height: 84px;
  height: auto;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.tc-submit-info.inline {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tc-submit-info.inline p {
  margin: 4px 0 0;
}

.tc-submit-info-title {
  margin: 0;
  font-weight: 650;
  color: var(--text-soft);
}

.tc-submit-info-title i {
  margin-right: 4px;
  vertical-align: -1px;
}

@media (max-width: 960px) {
  .plaza-main.tc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tc-aside-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tc-task-left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: stretch;
  }

  .tc-task-list.cols-2 .tc-task-left {
    display: contents;
  }

  .tc-task-icon {
    height: 100%;
    min-height: 76px;
  }

  .tc-task-meta-panel {
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .tc-task-meta-panel .tc-task-meta-reward,
  .tc-task-meta-extra .tc-meta-quota,
  .tc-task-meta-extra .tc-meta-deadline,
  .tc-task-meta-panel .tc-progress-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .tc-task-meta-panel .tc-progress-inline {
    flex: 1 1 auto;
    min-width: 64px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .tc-aside-stats {
    gap: 4px;
  }

  .tc-aside-stats .aside-author-stat {
    padding: 8px 2px;
  }

  .tc-aside-stats .aside-author-stat b {
    font-size: 14px;
  }

  .tc-aside-stats .aside-author-stat span {
    font-size: 10px;
  }

  .tc-task-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tc-task-right {
    min-width: 0;
    width: 100%;
    padding-left: 0;
    border: none;
    padding-top: 0;
  }

  .tc-task-left {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: stretch;
  }

  .tc-task-icon {
    height: 100%;
    min-height: 72px;
    border-radius: 14px;
  }

  .tc-task-stack {
    gap: 6px;
    justify-content: center;
  }

  .tc-desc-text,
  .tc-task-meta-panel,
  .tc-task-meta-panel .tc-task-meta-reward,
  .tc-task-meta-extra .tc-meta-quota,
  .tc-task-meta-extra .tc-meta-deadline,
  .tc-task-meta-panel .tc-progress-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .tc-task-list:not(.cols-2) .tc-task-meta-panel {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tc-task-list:not(.cols-2) .tc-task-meta-panel::-webkit-scrollbar {
    display: none;
  }

  .tc-task-list:not(.cols-2) .tc-task-meta-panel .tc-progress-inline {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 64px;
    max-width: none;
    gap: 6px;
  }

  .tc-task-list:not(.cols-2) .tc-task-meta-panel .tc-progress-bar {
    min-width: 40px;
    height: 5px;
  }

  .tc-task-head-bar {
    min-width: 0;
    gap: 4px;
  }

  .tc-task-title {
    font-size: 14px;
    line-height: 20px;
  }

  .tc-task-tags .tc-status-badge,
  .tc-task-tags .tc-grant-chip {
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .tc-progress-side {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .tc-progress-ring {
    margin: 0;
  }

  .tc-progress-side .tc-progress-text {
    margin-top: 0;
  }

  .tc-head {
    padding: 22px 18px;
  }

  .tc-task-list:not(.cols-2) .tc-task-actions-side {
    width: 100%;
    align-items: stretch;
  }

  .tc-task-list:not(.cols-2) .tc-task-actions-side .btn,
  .tc-task-list:not(.cols-2) .tc-btn-going,
  .tc-task-list:not(.cols-2) .tc-btn-done,
  .tc-task-list:not(.cols-2) .tc-btn-ended,
  .tc-task-list:not(.cols-2) .tc-btn-published {
    width: 100%;
    min-width: 0;
  }
}

.tc-publish-fixed {
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--text-soft);
  box-sizing: border-box;
}

.tc-publish-hint {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tc-publish-balance {
  margin: 6px 0 0;
  color: var(--accent);
}

.tc-publish-total {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.tc-publish-total strong {
  color: var(--accent);
}

.tc-publish-panel input[type="datetime-local"].tc-modal-input {
  min-height: 38px;
}

.tc-task-meta {
  margin: 6px 0 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  line-height: 1.45;
  font-size: 12px;
}

.tc-publish-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 6px;
}

.tc-publish-level-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.tc-publish-level-item input {
  margin: 0;
}

.tc-publish-level-empty {
  color: var(--muted);
}

.tc-publish-panel .tc-submit-form select.tc-modal-input {
  appearance: auto;
}

/* Publish page — head: icon + title/description */
.tc-publish-head-section {
  margin-bottom: 20px;
}

.tc-publish-head-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-publish-head-fields .compose-meta-item label small {
  font-weight: 400;
  color: var(--muted);
}

/* Publish page — compose layout supplements */
.tc-publish-shell .input {
  width: 100%;
  box-sizing: border-box;
}

.tc-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tc-reward-cell {
  min-width: 0;
  display: none;
}

.tc-publish-reward-section[data-reward="coins"] .tc-cell-type,
.tc-publish-reward-section[data-reward="coins"] .tc-cell-quantity,
.tc-publish-reward-section[data-reward="coins"] .tc-cell-amount,
.tc-publish-reward-section[data-reward="coins"] .tc-cell-end,
.tc-publish-reward-section[data-reward="gold"] .tc-cell-type,
.tc-publish-reward-section[data-reward="gold"] .tc-cell-quantity,
.tc-publish-reward-section[data-reward="gold"] .tc-cell-amount,
.tc-publish-reward-section[data-reward="gold"] .tc-cell-end,
.tc-publish-reward-section[data-reward="badge"] .tc-cell-type,
.tc-publish-reward-section[data-reward="badge"] .tc-cell-badge,
.tc-publish-reward-section[data-reward="badge"] .tc-cell-quantity,
.tc-publish-reward-section[data-reward="badge"] .tc-cell-end,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-type,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-prize-name,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-prize-desc,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-contact,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-quantity,
.tc-publish-reward-section[data-reward="prize"] .tc-cell-end,
.tc-publish-reward-section[data-reward="custom"] .tc-cell-prize-name,
.tc-publish-reward-section[data-reward="custom"] .tc-cell-prize-desc,
.tc-publish-reward-section[data-reward="custom"] .tc-cell-quantity,
.tc-publish-reward-section[data-reward="custom"] .tc-cell-end {
  display: block;
}

.tc-publish-shell .input:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--chip) 65%, var(--surface));
}

.tc-publish-shell .compose-meta-row[hidden],
.tc-publish-shell .compose-meta-item[hidden] {
  display: none !important;
}

.tc-publish-task-rule-row.is-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .tc-reward-grid,
  .tc-publish-task-rule-row.is-triple {
    grid-template-columns: 1fr;
  }
}

.tc-compose-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tc-compose-total {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.tc-compose-total strong {
  color: var(--accent);
}

.tc-datetime-input {
  min-height: 38px;
  box-sizing: border-box;
}

.tc-claim-levels {
  margin-left: 0;
}

/* Theme datetime picker */
.tc-dt-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.tc-dt-wrap .input,
.tc-dt-wrap .js-tc-datetime {
  width: 100%;
  padding-right: 36px;
  cursor: pointer;
  box-sizing: border-box;
}

.tc-dt-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.tc-dt-clear:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.tc-dt-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 80;
  width: min(320px, 92vw);
  padding: 12px;
  border-radius: 14px;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.tc-dt-pop.is-open {
  display: block;
}

.tc-dt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tc-dt-title {
  color: var(--text);
}

.tc-dt-nav {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.tc-dt-nav:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.tc-dt-weeks,
.tc-dt-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.tc-dt-weeks {
  margin-bottom: 4px;
}

.tc-dt-weeks span {
  color: var(--muted);
  padding: 4px 0;
}

.tc-dt-day {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.tc-dt-day:hover {
  background: var(--chip);
}

.tc-dt-day.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}

.tc-dt-days .is-empty {
  height: 32px;
}

.tc-dt-time {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tc-dt-col {
  flex: 1;
  min-width: 0;
}

.tc-dt-col-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.tc-dt-list {
  max-height: 132px;
  overflow: auto;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tc-dt-list::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.tc-dt-opt {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.tc-dt-opt:hover {
  background: rgba(0, 0, 0, 0.05);
}

.tc-dt-opt.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}

.tc-dt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.tc-dt-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  cursor: pointer;
  color: var(--text);
}

.tc-dt-btn.tc-dt-ok {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tc-dt-btn:hover {
  filter: brightness(1.03);
}
