.user-center-page { min-height: 720px; padding: 32px 0 72px; background: var(--surface); }
.user-center-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px; align-items: start; }
.user-center-loading { min-height: 320px; display: grid; place-items: center; color: var(--muted); background: #fff; }
.user-sidebar { min-height: 590px; padding: 24px 18px 18px; background: #fff; border: 1px solid var(--line); }
.user-profile { display: flex; flex-direction: column; align-items: center; padding: 0 0 22px; }
.user-profile-avatar { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; background: #eef6f2; }
.user-profile strong { max-width: 100%; margin-top: 12px; color: var(--ink); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 8px; color: #10ad62; font-size: 12px; background: #e8fbf1; }
.user-menu { display: grid; gap: 4px; }
.user-menu button { width: 100%; height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 20px; border: 0; color: #34424d; background: transparent; text-align: left; }
.user-menu button:hover { color: var(--brand-dark); background: #f3faf6; }
.user-menu button.is-active { color: #08ad5f; background: #e9faf1; font-weight: 600; }
.user-menu img { width: 16px; height: 16px; object-fit: contain; image-rendering: auto; }
.user-logout { width: 100%; margin-top: 26px; padding: 10px; border: 0; color: #87929a; background: transparent; }
.user-logout:hover { color: #b33d3d; }
.user-main { min-width: 0; display: grid; gap: 22px; }
.user-welcome { min-height: 170px; padding: 28px 34px; background-color: #eff8ff; background-position: center right; background-repeat: no-repeat; background-size: cover; }
.user-welcome h1 { margin: 0; color: var(--ink); font-size: 25px; font-weight: 700; }
.user-welcome > p { margin: 7px 0 21px; color: #788791; font-size: 14px; }
.user-welcome-meta { display: flex; align-items: center; gap: 48px; }
.user-welcome-meta > div { display: flex; align-items: center; gap: 12px; }
.user-welcome-meta img { width: 34px; height: 34px; object-fit: contain; }
.user-welcome-meta span { display: grid; color: #82909a; font-size: 12px; }
.user-welcome-meta strong { margin-top: 2px; color: #263744; font-size: 15px; font-weight: 600; }
.user-section-block, .user-chart-card, .user-list-page, .user-auth-card, .user-subpage-head { background: #fff; border: 1px solid #e8edef; }
.user-section-block, .user-list-page { padding: 20px; }
.user-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.user-section-heading h2, .user-chart-heading h2 { position: relative; margin: 0; padding-left: 14px; color: var(--ink); font-size: 18px; font-weight: 700; }
.user-section-heading h2::before, .user-chart-heading h2::before { content: ''; position: absolute; left: 0; top: 2px; width: 3px; height: 18px; background: #10bf57; }
.user-section-heading button { padding: 4px; border: 0; color: #6f7e88; background: transparent; }
.user-section-heading > span { color: #84909a; font-size: 14px; }
.user-project-row { min-width: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: #fff; border: 1px solid #edf1f3; }
.user-project-cover { width: 210px; height: 108px; object-fit: cover; }
.user-project-content { min-width: 0; }
.user-project-content h3 { margin: 0 0 9px; color: var(--ink); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.user-project-tags span, .user-tag-list span { padding: 4px 8px; color: #11a860; font-size: 12px; background: #eafaf2; }
.user-project-tags .project-certification { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.user-project-tags .project-certification.is-certified { color: #079653; background: #e4f8ed; }
.user-project-tags .project-certification.is-uncertified { color: #6f7d86; background: #eef1f3; }
.user-project-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 15px; color: #73808a; font-size: 13px; }
.user-project-actions { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; white-space: nowrap; }
.user-project-actions a { color: #168dd0; text-decoration: none; }
.user-project-action-links { display: flex; align-items: center; gap: 10px; }
.user-project-action-links .project-auth-action { padding: 7px 13px; border: 1px solid #10b967; color: #079653; background: #f3fff8; }
.user-project-action-links .project-auth-action:hover { color: #fff; background: #10b967; }
.project-status { display: flex; align-items: center; gap: 6px; color: #d99c12; font-size: 12px; }
.project-status small { color: #8a969e; font-size: 11px; }
.user-chart-card { padding: 20px 24px 12px; }
.user-chart-heading { display: flex; align-items: center; gap: 14px; }
.user-chart-heading strong { color: #263744; font-size: 18px; }
#projectViewsChart { width: 100%; height: 230px; display: block; margin-top: 12px; }
.user-quick-section { background: transparent; border: 0; padding: 18px 0 0; }
.user-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.user-quick-grid button,
.user-quick-grid a { min-height: 78px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #e7edef; color: #40515c; background: #fff; text-align: left; text-decoration: none; }
.user-quick-grid button:hover,
.user-quick-grid a:hover { color: var(--brand-dark); border-color: #aee6ca; }
.user-quick-grid img { width: 38px; height: 38px; object-fit: contain; }
.user-project-list { display: grid; gap: 12px; }
.user-project-filters { display: flex; align-items: center; gap: 8px; margin: -2px 0 16px; }
.user-project-filters button { min-height: 36px; padding: 7px 14px; border: 1px solid #dce5e9; color: #52626d; background: #fff; font-size: 13px; }
.user-project-filters button span { margin-left: 5px; color: #8b979f; }
.user-project-filters button.is-active { color: #079653; border-color: #85d9ad; background: #ebfaf2; font-weight: 600; }
.user-project-filters button.is-active span { color: #079653; }
.user-tab-page { min-height: 600px; }
.user-content-tabs { display: flex; gap: 38px; margin-bottom: 28px; border-bottom: 1px solid #dfe7ea; }
.user-content-tabs button { position: relative; padding: 6px 2px 14px; border: 0; color: #36454f; background: transparent; font-size: 16px; }
.user-content-tabs button.is-active { color: #0caf61; font-weight: 600; }
.user-content-tabs button.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #0caf61; }
.user-project-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.user-project-card-grid > .user-empty { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); }
.user-project-tile { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e4eaed; }
.user-project-tile-cover { display: block; height: 164px; overflow: hidden; }
.user-project-tile-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.user-project-tile:hover .user-project-tile-cover img { transform: scale(1.025); }
.user-project-tile-body { padding: 16px; }
.user-project-tile h3 { margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-project-tile-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.user-project-tile-metrics span { min-width: 0; color: #273945; font-size: 13px; text-align: center; }
.user-project-tile-metrics small { display: block; margin-bottom: 3px; color: #96a0a6; font-size: 10px; white-space: nowrap; }
.user-project-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #edf1f2; }
.user-project-tile-footer a { color: #0caf61; font-size: 13px; text-decoration: none; }
.user-project-tile-footer time { color: #99a3aa; font-size: 11px; }
.user-institution-tile { background: #fff; border: 1px solid #e4eaed; }
.user-institution-tile > a { display: block; color: inherit; text-decoration: none; }
.user-institution-tile img { width: 100%; height: 164px; object-fit: cover; background: #eef4f6; }
.user-institution-tile div { padding: 16px; }
.user-institution-tile span { color: #0caf61; font-size: 12px; }
.user-institution-tile h3 { margin: 7px 0; color: var(--ink); font-size: 17px; }
.user-institution-tile p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.user-subpage-head { padding: 24px 28px; }
.user-subpage-head h1 { margin: 0 0 6px; color: var(--ink); font-size: 24px; }
.user-subpage-head p { margin: 0; color: var(--muted); }
.user-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border: 1px solid var(--line); }
.user-stat-grid-three { grid-template-columns: repeat(3, 1fr); }
.user-stat-grid > div { display: grid; gap: 7px; padding: 24px 28px; border-right: 1px solid var(--line); }
.user-stat-grid > div:last-child { border-right: 0; }
.user-stat-grid span { color: var(--muted); font-size: 13px; }
.user-stat-grid strong { color: #079554; font-size: 27px; }
.user-record-list > div, .user-member-list > div, .user-task-list > div { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 4px; border-bottom: 1px solid #edf1f2; }
.user-record-list > div:last-child, .user-member-list > div:last-child, .user-task-list > div:last-child { border-bottom: 0; }
.user-record-list span, .user-member-list span, .user-task-list span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.user-record-list small, .user-member-list small, .user-task-list small { color: #86939b; }
.user-record-list b { color: #68757e; }
.user-record-list b.is-positive, .user-member-list b, .user-task-list b { color: #08a85d; }
.user-points-banner { min-height: 160px; display: flex; align-items: center; padding: 28px 34px; border: 1px solid #e0e9e4; background-color: #eafaf1; background-position: center; background-size: cover; }
.user-points-banner h1 { margin: 0 0 8px; color: #243630; font-size: 24px; font-weight: 700; }
.user-points-banner h1 strong { color: #10b95d; }
.user-points-banner p { margin: 0; color: #73857c; font-size: 12px; }
.user-points-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 30px; }
.user-points-overview > div,
.user-points-overview > button { min-width: 0; min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid #e5ebee; background: #fff; color: inherit; text-align: left; }
.user-points-overview > button:hover,
.user-points-overview > button.is-active { border-color: #89d9af; background: #f4fff9; }
.user-points-overview img { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.user-points-overview span { min-width: 0; display: grid; gap: 5px; flex: 1; }
.user-points-overview strong { color: var(--ink); font-size: 15px; }
.user-points-overview strong b { margin-left: 4px; color: #15252e; font-size: 24px; }
.user-points-overview small { overflow: hidden; color: #9aa5ac; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-points-overview em { color: #18a8df; font-size: 11px; font-style: normal; }
.user-points-panel { min-width: 0; }
.user-points-panel + .project-form-message { margin-top: 16px; }
.user-points-panel[data-points-panel="logs"] { max-width: 760px; margin: 0 auto; padding: 26px; border: 1px solid #e5ebee; background: #fff; }
.user-points-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.user-points-detail-head h2 { position: relative; margin: 0; padding-left: 14px; color: var(--ink); font-size: 19px; font-weight: 700; }
.user-points-detail-head h2::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; background: #10bf57; }
.user-points-detail-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: #7e898f; background: transparent; font-size: 20px; }
.user-points-detail-head button:hover { color: #263740; background: #f1f4f5; }
.user-point-log-filters { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; padding: 5px; border: 1px solid #e1e8eb; }
.user-point-log-filters button { min-height: 40px; border: 0; color: #5f6c74; background: transparent; font-size: 14px; }
.user-point-log-filters button.is-active { color: #0caf61; background: #e9faf1; font-weight: 600; }
.user-point-log-list { display: grid; gap: 8px; }
.user-point-log-list article { min-height: 72px; display: flex; align-items: center; gap: 14px; padding: 11px 15px; background: #f8f9fa; }
.user-point-log-list article img { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
.user-point-log-list article span { min-width: 0; display: grid; gap: 3px; flex: 1; }
.user-point-log-list article strong { overflow: hidden; color: #34434c; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.user-point-log-list article small { color: #9ca6ac; font-size: 11px; }
.user-point-log-list article b { color: #4e5a61; font-size: 14px; white-space: nowrap; }
.user-point-log-list article b.is-positive { color: #0bbd5b; }
.user-point-log-pagination { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.user-point-log-pagination button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dce4e8; color: #4d5b63; background: #fff; font-size: 13px; }
.user-point-log-pagination button:hover:not(:disabled), .user-point-log-pagination button.is-active { border-color: #0bc45a; color: #fff; background: #0bc45a; }
.user-point-log-pagination button:disabled { color: #b6bfc4; background: #f7f9fa; }
.user-goods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.user-goods-grid > .user-empty { grid-column: 1 / -1; }
.user-goods-card { min-width: 0; overflow: hidden; border: 1px solid #e4eaed; background: #fff; }
.user-goods-card > img { width: 100%; aspect-ratio: 1.65 / 1; display: block; object-fit: cover; background: #eef3f5; }
.user-goods-card > div { padding: 13px; }
.user-goods-card h3 { overflow: hidden; margin: 0 0 5px; color: var(--ink); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-goods-card p { overflow: hidden; height: 34px; margin: 0 0 10px; color: #84919a; font-size: 11px; line-height: 1.55; }
.user-goods-card span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-goods-card span b { color: #05ac59; font-size: 18px; }
.user-goods-card span small { color: #a1abb1; font-size: 11px; }
.user-goods-card button { width: 100%; height: 38px; margin-top: 12px; border: 0; background: #0bc45a; color: #fff; font-size: 13px; }
.user-goods-card button:disabled { cursor: not-allowed; background: #b9c5bf; }
.user-exchange-list { display: grid; gap: 10px; }
.user-exchange-list article { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 92px; padding: 10px 14px; border: 1px solid #e5ebee; background: #fff; }
.user-exchange-list img { width: 74px; height: 60px; object-fit: cover; }
.user-exchange-list div { min-width: 0; display: grid; gap: 3px; }
.user-exchange-list strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.user-exchange-list span, .user-exchange-list small { color: #8a969e; font-size: 11px; }
.user-exchange-list b { color: #df6b38; font-size: 13px; white-space: nowrap; }
.user-exchange-list em { padding: 5px 8px; color: #92700c; background: #fff5d7; font-size: 11px; font-style: normal; white-space: nowrap; }
.project-form-message { display: none; padding: 12px 16px; }
.project-form-message.is-error { display: block; background: #fff1f1; color: #a52f2f; }
.project-form-message.is-success { display: block; background: #eafff3; color: var(--brand-dark); }
.user-member-list img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.user-task-list em { min-width: 76px; padding: 7px 12px; color: #fff; font-style: normal; text-align: center; background: var(--brand); }
.user-task-list em.is-complete { color: #86939b; background: #eef2f3; }
.user-auth-card { display: flex; align-items: center; gap: 18px; padding: 28px; }
.user-auth-card > img { width: 56px; height: 56px; object-fit: contain; }
.user-auth-card > div { flex: 1; }
.user-auth-card h2 { margin: 3px 0; font-size: 22px; }
.user-auth-card p, .user-auth-card span { margin: 0; color: var(--muted); }
.user-auth-card > .user-verified { color: #10ad62; }
.user-auth-entry-list { display: grid; gap: 12px; }
.user-auth-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 86px; padding: 16px 20px; border: 1px solid #e7edef; background: #fff; }
.user-auth-entry > img { width: 42px; height: 42px; object-fit: contain; }
.user-auth-entry h2 { margin: 0 0 5px; color: var(--ink); font-size: 16px; font-weight: 650; }
.user-auth-entry p { margin: 0; color: #839098; font-size: 12px; }
.user-auth-entry > a { min-width: 94px; padding: 9px 16px; border-radius: 4px; background: #0bc55a; color: #fff; text-align: center; text-decoration: none; }
.user-auth-entry > small { grid-column: 3; color: #a1a9ae; text-align: center; }
.user-auth-privacy { margin: 0; padding: 0 14px; color: #a0a9af; font-size: 12px; }
.user-auth-record-section { padding-top: 10px; }
.user-auth-record-list { display: grid; gap: 12px; }
.user-auth-record { display: flex; align-items: center; justify-content: space-between; min-height: 104px; padding: 18px 22px; border: 1px solid #e7edef; background: #fff; color: inherit; text-decoration: none; }
.user-auth-record:hover { border-color: #b8e8ce; color: inherit; }
.user-auth-record > div { min-width: 0; }
.user-auth-record strong { color: var(--ink); font-size: 15px; }
.user-auth-record p { margin: 8px 0 4px; color: #475866; font-size: 13px; }
.user-auth-record small { color: #9aa4aa; font-size: 11px; }
.user-auth-record em { display: block; margin-top: 7px; color: #b56c2d; font-size: 12px; font-style: normal; }
.user-auth-record > i { color: #a2acb1; }
.auth-status { display: inline-flex; margin-left: 8px; padding: 2px 7px; font-size: 11px; font-weight: 500; }
.auth-status.is-pending { background: #fff5d9; color: #b9850c; }
.auth-status.is-approved { background: #e7faef; color: #0aa85a; }
.auth-status.is-rejected { background: #fff0f0; color: #c54848; }
.auth-status.is-muted { background: #eef2f3; color: #7d898f; }
.user-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.user-tag-list p { color: var(--muted); }
.user-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #929da4; }
.user-empty i { font-size: 26px; }
.user-login-required { max-width: 460px; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 40px auto; padding: 36px; text-align: center; background: #fff; border: 1px solid var(--line); }
.user-login-required img { width: 72px; height: 72px; border-radius: 50%; }
.user-login-required h1 { margin: 18px 0 8px; font-size: 24px; }
.user-login-required p { color: var(--muted); }
.user-primary-button { min-width: 160px; padding: 10px 20px; color: #fff; background: var(--brand); text-decoration: none; }

@media (max-width: 991px) {
  .user-center-shell { grid-template-columns: 1fr; }
  .user-sidebar { min-height: 0; padding-bottom: 12px; }
  .user-profile { flex-direction: row; justify-content: center; gap: 12px; padding-bottom: 16px; }
  .user-profile-avatar { width: 52px; height: 52px; }
  .user-profile strong { margin: 0; }
  .user-profile .user-verified { margin: 0; }
  .user-menu { grid-template-columns: repeat(8, minmax(92px, 1fr)); overflow-x: auto; }
  .user-menu button { justify-content: center; padding: 0 10px; }
  .user-logout { display: none; }
}

@media (max-width: 767px) {
  .user-center-page { padding-top: 18px; }
  .user-center-shell { gap: 16px; }
  .user-profile { justify-content: flex-start; }
  .user-welcome { min-height: 188px; padding: 22px; background-position: 62% center; }
  .user-welcome-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .user-project-row { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .user-project-cover { width: 108px; height: 80px; }
  .user-project-meta { gap: 8px 14px; }
  .user-project-actions { grid-column: 1 / -1; flex-direction: row; }
  .user-project-filters { overflow-x: auto; }
  .user-project-filters button { flex: 0 0 auto; }
  .user-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .user-project-card-grid { grid-template-columns: 1fr; }
  .user-points-overview { grid-template-columns: 1fr; }
  .user-goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-stat-grid, .user-stat-grid-three { grid-template-columns: 1fr; }
  .user-stat-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .user-stat-grid > div:last-child { border-bottom: 0; }
  .user-task-list > div { align-items: flex-start; flex-wrap: wrap; }
  .user-auth-entry { grid-template-columns: 40px minmax(0, 1fr); }
  .user-auth-entry > a { grid-column: 1 / -1; }
  .user-auth-entry > small { grid-column: 1 / -1; text-align: left; }
  .user-exchange-list article { grid-template-columns: 64px minmax(0, 1fr); }
  .user-exchange-list img { width: 64px; height: 54px; }
  .user-exchange-list b, .user-exchange-list em { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .user-points-banner { min-height: 110px; padding: 20px; background-position: 60% center; }
  .user-points-banner h1 { max-width: 210px; font-size: 18px; }
  .user-goods-grid { grid-template-columns: 1fr; }
  .user-points-panel[data-points-panel="logs"] { padding: 18px 14px; }
  .user-point-log-list article { padding: 10px; }
  .user-point-log-list article img { width: 34px; height: 34px; }
  .user-point-log-list article b { font-size: 12px; }
}
