/* Personal pages: public profile (/u/<id>), my page (/my) and account settings (/settings). */
.person {
  padding: 32px;
}
.person-head {
  display: flex;
  gap: 22px;
  align-items: center;
}
.person-head h1 {
  margin: 4px 0 2px;
  font-size: 30px;
}
.person-head h1 .tag {
  margin: 0 0 0 10px;
}
.person-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #e9ecff;
  display: grid;
  place-items: center;
  color: white;
  font-size: 28px;
  font-weight: 700;
  flex: none;
}
.person-id {
  margin: 0;
  font-size: 13px;
  color: #646e85;
}
.person-bio {
  margin: 20px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 720px;
}
.person-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.person-actions .button {
  font-size: 14px;
  padding: 10px 16px;
}
.person-compact {
  padding: 24px 28px;
}
.person-compact .person-avatar {
  width: 60px;
  height: 60px;
  font-size: 23px;
}
/* Entry state chips; winner stands out, private states are muted. */
.state {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: #4758d9;
  background: #eef0ff;
}
.state-draft,
.state-withdrawn,
.state-ended {
  color: #646e85;
  background: #f0f2f8;
}
.state-review {
  color: #8a5a00;
  background: #fff4dc;
}
.state-revise {
  color: #8a3d00;
  background: #ffe8d6;
}
.state-removed {
  color: #b23a4f;
  background: #fde9ec;
}
.state-locked {
  color: #1f7a5c;
  background: #e3f6ee;
}
.state-winner {
  color: #fff;
  background: #c4892a;
}
.entry-card a {
  display: block;
  height: 100%;
  padding-bottom: 18px;
}
.entry-of {
  margin: 4px 0 0;
  font-size: 13px;
}
.entry-reason {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b23a4f;
}
.my-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.my-tabs a {
  flex: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #5c6680;
}
.my-tabs a:hover {
  background: #eef0fb;
}
.my-tabs a[aria-current='page'] {
  background: #e8ebfc;
  color: #4758d9;
}
.my-tabs + .card,
.my-tabs + .my-note {
  margin-top: 18px;
}
.my-note {
  font-size: 14px;
}
.settings {
  display: grid;
  gap: 20px;
  max-width: 740px;
}
.settings-card h2 {
  margin-bottom: 6px;
}
.settings-card .person-head {
  margin-top: 20px;
}
.settings-card .field {
  margin: 20px 0;
}
.settings-card input[type='color'] {
  width: 76px;
  height: 46px;
  padding: 4px;
  cursor: pointer;
}
.settings-leave {
  border-color: #f2d3d9;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  font-size: 15px;
}
@media (max-width: 720px) {
  .person,
  .person-compact {
    padding: 22px 20px;
  }
  .person-head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .person-head h1 {
    font-size: 24px;
  }
  .person-avatar {
    width: 60px;
    height: 60px;
    font-size: 23px;
  }
  .person-actions {
    margin-left: 0;
    width: 100%;
  }
  .person-actions .button {
    flex: 1;
    text-align: center;
  }
  .entry-card .cover {
    height: 150px;
  }
  .my-tabs a {
    padding: 9px 12px;
  }
}

/* 我的页面顶部一行：个人信息卡 1/3，审核进度 2/3 */
.my-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: stretch;
}
.my-top .person {
  display: flex;
  align-items: center;
}
.my-top .person-head {
  flex-wrap: wrap;
  gap: 16px 18px;
  width: 100%;
}
.my-top .person-actions {
  margin-left: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .my-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 审核进度（提出 → 作品审核 → 公开 → 投稿审核） */
.my-progress {
  padding: 18px 22px 6px;
  container-type: inline-size;
}
.my-progress-empty {
  margin: 0;
  padding: 14px 0 16px;
  border-top: 1px solid #eef0f6;
  color: #646e85;
  font-size: 14px;
}
.my-progress h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.progress-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 180px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eef0f6;
  color: inherit;
}
.progress-row img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #e9edf4;
}
.progress-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.progress-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-name span {
  color: #646e85;
  font-size: 12px;
}
.progress-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.progress-steps .step {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
/* 步骤之间的连线 */
.progress-steps .step + .step {
  position: relative;
  margin-left: 22px;
}
.progress-steps .step + .step::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 3px);
  width: 22px;
  height: 2px;
  background: #e3e6f3;
}
.progress-steps .step-done + .step::before {
  background: var(--blue);
}
.progress-now {
  display: none;
}
.step-done {
  color: #2b3fc7;
  background: #e7eaff;
  font-weight: 650;
}
.step-now {
  color: #8a5300;
  background: #fff1d6;
  font-weight: 650;
}
.step-fix {
  color: #8a3d00;
  background: #ffe8d6;
  font-weight: 650;
}
.step-todo {
  color: #8a90a3;
  background: #f0f2f8;
}
.progress-link {
  color: #4758d9;
  font-size: 13px;
  white-space: nowrap;
}
.progress-row:hover .progress-link {
  text-decoration: underline;
}
/* 卡片窄的时候（手机，或并排时屏幕不够宽）只留色条 */
@container (max-width: 700px) {
  .progress-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .progress-steps {
    grid-column: 2;
    gap: 4px;
  }
  /* 整行都能点，手机上不再单独放链接 */
  .progress-link,
  .progress-steps .review-spinner {
    display: none;
  }
  /* 手机上只留色条，当前一步的文字放在名字下面 */
  .progress-steps .step {
    flex: 1;
    height: 5px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .progress-steps .step + .step {
    margin-left: 0;
  }
  .progress-steps .step + .step::before {
    display: none;
  }
  .step-done {
    background: var(--blue);
  }
  .step-now {
    background: #f0b44c;
  }
  .step-fix {
    background: #e0782e;
  }
  .step-todo {
    background: #e3e6f3;
  }
  .progress-row img {
    width: 52px;
    height: 52px;
    grid-row: span 2;
  }
  .progress-name .progress-now {
    display: block;
    color: #8a5300;
    font-weight: 650;
  }
  .is-fix .progress-name .progress-now {
    color: #8a3d00;
  }
}
.entry-card .info .state-badge {
  margin-bottom: 6px;
}
