
/* Layout */
.task-list-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pull-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 12px;
  transition: height 0.2s ease;
}
.pull-refresh.active {
  transition: none;
}
.pull-refresh-text {
  padding: 8px 0;
}

.load-more {
  text-align: center;
  padding: 12px 0 4px;
  color: var(--text-sub);
  font-size: 12px;
}

/* Header */
.app-header {
  background: var(--card);
  padding: 12px 16px 0 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  z-index: 10;
  flex-shrink: 0;
  position: relative;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.btn-publish-nav {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.tabs-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.global-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  flex: 1;
}
.global-tabs::-webkit-scrollbar { display: none; }

.g-tab {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
  padding: 4px 0;
}
.g-tab.active {
  color: var(--blue);
  font-weight: 700;
}
.g-tab.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}

/* More Dropdown */
.g-tab-more {
  position: relative;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}
.g-tab-more.active {
  color: var(--blue);
  background: #e6f7ff;
  font-weight: 700;
}

.g-tab-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 100;
  min-width: 120px;
  margin-top: 8px;
}

.g-tab-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  transition: background 0.2s;
}
.g-tab-item:hover {
  background: #f5f5f5;
}
.g-tab-item.active {
  color: var(--blue);
  font-weight: 700;
  background: #e6f7ff;
}

/* Task Card */
.task-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}
.task-card.is-secret {
  border-left: 4px solid var(--red);
}

.quadrant-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 0 0 0 8px;
}
.bg-q1 { background: var(--red); }
.bg-q2 { background: var(--orange); }
.bg-q3 { background: var(--blue); }
.bg-q4 { background: var(--green); }

.card-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  margin-top: 16px;
}
.cn-item {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.cn-item.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

.card-body {
  padding: 20px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.tag-secret {
  background: #fff1f0;
  color: var(--red);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tag-countdown {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
}
.tag-countdown.urgent {
  color: var(--red);
  background: #fff1f0;
}

.main-title-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.main-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin: 0;
}

/* Team */
.team-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 8px;
}
.team-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.team-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto !important;
  height: auto !important;
  min-height: 28px;
  line-height: 1.1;
}
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s;
  color: var(--text-sub);
}
.action-btn:hover {
  background: var(--blue);
  color: #fff;
}
.action-btn.active {
  background: var(--blue);
  color: #fff;
}
.action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f0f0f0;
  color: #ccc;
}

/* Files */
.mt-files-section {
  margin-top: 24px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}
.sec-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.file-row-simple {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 8px;
}
.fr-icon { font-size: 20px; }
.fr-info { flex: 1; }
.fr-name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.fr-meta { font-size: 11px; color: var(--text-sub); }

/* Main Comments */
.main-comments-box {
  margin-top: 24px;
  border-top: 1px dashed #e0e0e0;
  padding-top: 16px;
}
.mc-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.mc-row-new {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.mc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.mc-content-right {
  flex: 1;
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 0 12px 12px 12px;
}
.mc-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}
.mc-u { font-weight: 700; color: var(--text-main); }
.mc-time { color: var(--text-sub); }
.mc-source { 
  background: rgba(0,0,0,0.05); 
  padding: 1px 4px; 
  border-radius: 2px;
}
.mc-source.s-sub { color: var(--blue); background: rgba(24,144,255,0.1); }
.mc-txt {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.mc-imgs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mc-img-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
}

/* History */
.history-timeline {
  padding-left: 16px;
  border-left: 2px solid #f0f0f0;
  margin-top: 16px;
}
.h-item {
  position: relative;
  margin-bottom: 24px;
}
.h-dot {
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d9d9;
  border: 2px solid #fff;
}
.h-item.h-audit .h-dot { background: var(--orange); }
.h-item.h-audit { background: #fffbe6; padding: 8px; border-radius: 4px; }

.h-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.h-content {
  font-size: 13px;
  color: var(--text-main);
}

/* Modal Transfer */
.modal-transfer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.mt-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  border-bottom: 1px solid #eee;
}
.mt-tabs {
  display: flex;
}
.mt-tab {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-sub);
}
.mt-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}
.mt-content-box {
  padding: 20px;
  min-height: 200px;
}
.mt-actions {
  display: flex;
  border-top: 1px solid #eee;
}
.mt-btn {
  flex: 1;
  border: none;
  background: #fff;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.mt-cancel { color: var(--text-sub); border-right: 1px solid #eee; }
.mt-confirm { color: var(--blue); }

.mt-selection-view {
  text-align: center;
}
.mt-label {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-sub);
}
.mt-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.mt-avt-lg { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 8px; }
.mt-name-lg { font-size: 16px; font-weight: 700; }
.mt-empty-tip { color: #ccc; margin-bottom: 20px; }
.btn-open-selector {
  border: 1px dashed var(--blue);
  color: var(--blue);
  background: #f0f9ff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.mt-collab-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.mt-collab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 13px;
}
.mt-avt { width: 20px; height: 20px; border-radius: 50%; }
.mt-del { color: #999; cursor: pointer; margin-left: 4px; }

/* Status Switcher Grid */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.status-option {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.status-option:hover {
  background: #f9f9f9;
  border-color: var(--blue);
}
.status-option.active {
  background: #e6f7ff;
  border-color: var(--blue);
}
.status-desc {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}
