/* Personal center: account dashboard, panels, and responsive controls. */
.gw-user-center { padding: 42px 0 80px; background: #f4f7f6; }
.gw-user-center__hero, .gw-user-center__nav, .gw-user-center__content { border: 1px solid #dce7e2; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(31, 67, 55, .07); }
.gw-user-center__hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 31px 34px; overflow: hidden; }
.gw-user-center__hero::before { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: #397a68; content: ''; }
.gw-user-center__identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.gw-user-avatar { position: relative; flex: 0 0 82px; width: 82px; height: 82px; padding: 0; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: #e8f5f0; box-shadow: 0 0 0 2px #8bbdac, 0 10px 22px rgba(31, 67, 55, .17); cursor: pointer; }
.gw-user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gw-user-avatar span { position: absolute; right: 0; bottom: 0; left: 0; padding: 5px 0; background: rgba(22, 51, 42, .76); color: #fff; font-size: 10px; line-height: 1; opacity: 0; transition: opacity var(--gw-transition-fast); }
.gw-user-avatar:hover span, .gw-user-avatar:focus-visible span { opacity: 1; }
.gw-user-avatar:focus-visible, .gw-user-center__nav a:focus-visible, .gw-user-center__mobile-nav select:focus-visible, .gw-user-profile input:focus-visible, .gw-user-profile textarea:focus-visible, .gw-points-actions input:focus-visible, .gw-user-task-modal__dialog input:focus-visible { outline: 3px solid rgba(57, 122, 104, .24); outline-offset: 2px; }
.gw-user-center__identity p, .gw-user-panel-title p { margin: 0 0 6px; color: #397a68; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.gw-user-center__identity h1 { margin: 0 0 6px; overflow: hidden; color: var(--gw-heading); font-size: 26px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gw-user-center__identity > div > span { display: block; overflow: hidden; color: var(--gw-text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.gw-user-center__metrics { display: flex; gap: 0; }
.gw-user-center__metrics span { display: grid; gap: 5px; min-width: 92px; padding: 0 17px; border-left: 1px solid #e2ebe7; color: var(--gw-text-muted); font-size: 11px; white-space: nowrap; }
.gw-user-center__metrics strong { color: var(--gw-heading); font-size: 21px; line-height: 1.1; }
.gw-user-center__metrics span:first-child strong { color: #a56e0d; }.gw-user-center__metrics span:nth-child(2) strong { color: #397a68; }
.gw-user-center__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.gw-user-center__mobile-nav { display: none; }
.gw-user-center__nav { position: sticky; top: 92px; height: max-content; padding: 9px; }
.gw-user-center__nav a { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 42px; padding: 0 12px; border-radius: 5px; color: var(--gw-text-secondary); font-size: 13px; font-weight: 700; text-decoration: none; transition: background var(--gw-transition-fast), color var(--gw-transition-fast); }
.gw-user-center__nav a:hover { background: #f1f8f5; color: #216b59; }.gw-user-center__nav a.is-active { background: #e8f5f0; color: #216b59; }.gw-user-center__nav a .gw-icon { flex: 0 0 15px; width: 15px; height: 15px; }.gw-user-center__nav a em { flex: 1; min-width: 0; font-style: normal; }
.gw-user-center__nav b { display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border-radius: 99px; background: var(--gw-danger); color: #fff; font-size: 9px; }
.gw-user-center__nav .is-danger { margin-top: 8px; border-top: 1px solid #e2ebe7; border-radius: 0; color: var(--gw-danger); }
.gw-user-center__content { min-width: 0; padding: 31px; }
.gw-user-panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 25px; }.gw-user-panel-title h2 { margin: 0; color: var(--gw-heading); font-size: 25px; line-height: 1.2; }
.gw-user-status { max-width: 320px; margin: 0; padding: 9px 11px; border-radius: 5px; background: #edfff3; color: #227042; font-size: 12px; line-height: 1.45; }.gw-user-status:empty { display: none; }.gw-user-status.is-error { background: #fff0ef; color: #b14343; }.gw-user-status.is-loading { background: #e8f5f0; color: #216b59; }
.gw-user-stat-grid, .gw-points-summary, .gw-task-center__overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.gw-user-stat-grid { margin-bottom: 25px; }
.gw-user-stat-grid a, .gw-points-summary > div, .gw-points-level, .gw-points-actions > div, .gw-points-actions form, .gw-task-center__overview > div, .gw-task-checkin { border: 1px solid #e0e9e5; border-radius: 7px; background: #fbfcfb; }
.gw-user-stat-grid a { display: grid; gap: 6px; min-width: 0; padding: 16px; color: var(--gw-text-muted); font-size: 12px; text-decoration: none; transition: border-color var(--gw-transition-fast), background var(--gw-transition-fast), transform var(--gw-transition-fast); }.gw-user-stat-grid a:hover { border-color: #9bcab9; background: #f2f9f6; transform: translateY(-2px); }.gw-user-stat-grid strong { overflow: hidden; color: var(--gw-heading); font-size: 24px; text-overflow: ellipsis; }
.gw-user-list-section { margin-top: 22px; border-top: 1px solid #e2ebe7; }.gw-user-list-section h3, .gw-points-actions h3, .gw-points-history h3, .gw-task-list h3 { margin: 0; color: var(--gw-heading); font-size: 15px; }.gw-user-list-section h3 { padding: 18px 0 12px; }
.gw-user-list-row, .gw-user-favorite, .gw-points-history__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid #e8eeeb; color: var(--gw-text-secondary); font-size: 13px; text-decoration: none; }.gw-user-list-row:hover, .gw-user-favorite a:hover { color: #216b59; }
.gw-user-list-row > span, .gw-user-list-row > strong, .gw-user-favorite span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.gw-user-list-row strong { color: #a56e0d; }.gw-user-list-row time, .gw-user-favorite time, .gw-points-history__row time { color: var(--gw-text-muted); font-size: 11px; white-space: nowrap; }
.gw-user-list-row.is-stack { grid-template-columns: minmax(0, 1fr) auto; }.gw-user-list-row.is-stack strong, .gw-user-list-row.is-stack span { grid-column: 1; }.gw-user-list-row.is-stack time { grid-column: 2; grid-row: 1; }.gw-user-list-row.is-unread { padding-left: 10px; border-left: 3px solid #397a68; background: #f3faf7; }
.gw-user-favorite { grid-template-columns: minmax(0, 1fr) auto; }.gw-user-favorite a { display: grid; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.gw-user-favorite button, .gw-user-profile button, .gw-points-actions button, .gw-task-checkin button, .gw-task-card__action button, .gw-user-task-modal__dialog > button:not(.gw-user-task-modal__close) { min-height: 40px; border: 0; border-radius: 5px; background: #397a68; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gw-user-favorite button { padding: 8px 11px; background: #e8f5f0; color: #216b59; }.gw-user-favorite button:hover { background: #d9eee6; }.gw-user-profile button, .gw-points-actions button, .gw-task-checkin button, .gw-task-card__action button, .gw-user-task-modal__dialog > button:not(.gw-user-task-modal__close) { padding: 10px 15px; }.gw-user-profile button:hover, .gw-points-actions button:hover, .gw-task-checkin button:hover, .gw-task-card__action button:hover, .gw-user-task-modal__dialog > button:not(.gw-user-task-modal__close):hover { background: #216b59; }
.gw-user-favorite button:disabled, .gw-user-profile button:disabled, .gw-points-actions button:disabled, .gw-task-checkin button:disabled, .gw-task-card__action button:disabled { cursor: not-allowed; opacity: .6; }
.gw-user-empty { margin: 0; padding: 30px 0; color: var(--gw-text-muted); font-size: 13px; text-align: center; }.gw-user-submissions__intro { margin: 0 0 13px; }.gw-user-submissions__intro a, .gw-user-submissions .gw-user-list-row a, .gw-user-profile > a { color: #216b59; font-size: 13px; font-weight: 700; text-decoration: none; }.gw-user-submissions__intro a:hover, .gw-user-submissions .gw-user-list-row a:hover, .gw-user-profile > a:hover { text-decoration: underline; }
.gw-user-profile { display: grid; gap: 17px; max-width: 680px; }.gw-user-profile label { display: grid; gap: 7px; color: var(--gw-heading); font-size: 13px; font-weight: 700; }
.gw-user-profile input, .gw-user-profile textarea, .gw-points-actions input, .gw-user-task-modal__dialog input, .gw-user-sponsor input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cfded8; border-radius: 5px; background: #fff; color: var(--gw-text); font: inherit; font-size: 14px; }.gw-user-profile textarea { min-height: 96px; resize: vertical; }.gw-user-profile input:focus, .gw-user-profile textarea:focus, .gw-points-actions input:focus, .gw-user-task-modal__dialog input:focus, .gw-user-sponsor input:focus { border-color: #397a68; outline: 0; box-shadow: 0 0 0 3px rgba(57, 122, 104, .12); }.gw-user-profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.gw-user-profile button { width: max-content; padding: 10px 19px; }
.gw-user-profile input[readonly] { background: #f2f6f4; color: var(--gw-text-muted); cursor: default; }
.gw-user-profile__preferences { display: grid; gap: 11px; margin: 0; padding: 17px; border: 1px solid #e0e9e5; border-radius: 7px; background: #fbfcfb; }.gw-user-profile__preferences legend { padding: 0 4px; color: var(--gw-heading); font-size: 13px; font-weight: 700; }.gw-user-profile__preferences p { margin: -2px 0 2px; color: var(--gw-text-muted); font-size: 12px; line-height: 1.6; }.gw-user-profile__preferences label { display: flex; align-items: flex-start; gap: 9px; color: var(--gw-text-secondary); font-weight: 500; line-height: 1.45; }.gw-user-profile__preferences input { flex: 0 0 auto; width: 16px; min-height: 16px; margin: 1px 0 0; padding: 0; }
.gw-user-sponsor { display: grid; justify-items: start; gap: 15px; max-width: 620px; padding: 25px; border: 1px solid #cfe5dc; border-radius: 8px; background: #f4faf7; }.gw-user-sponsor p, .gw-user-sponsor strong { margin: 0; color: var(--gw-text-secondary); line-height: 1.7; }.gw-user-sponsor strong { color: var(--gw-heading); }.gw-user-sponsor form { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 9px; }.gw-user-sponsor form button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 5px; background: #397a68; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }.gw-user-sponsor form button:hover { background: #216b59; }.gw-user-sponsor > a { color: #216b59; font-size: 13px; font-weight: 700; text-decoration: none; }.gw-user-sponsor > a:hover { text-decoration: underline; }.gw-user-sponsor__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }.gw-user-sponsor__link-card { display: grid; gap: 4px; min-height: 70px; padding: 14px; border: 1px solid #dceae4; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }.gw-user-sponsor__link-card:hover { border-color: #9bcab9; }.gw-user-sponsor__link-card span { color: #397a68; font-size: 12px; }
.gw-points-center, .gw-task-center { display: grid; gap: 20px; }.gw-points-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }.gw-points-summary > div, .gw-points-level, .gw-points-actions > div, .gw-points-actions form, .gw-task-center__overview > div, .gw-task-checkin { padding: 18px; }.gw-points-summary span, .gw-points-level span, .gw-task-center__overview span, .gw-task-checkin span { color: var(--gw-text-muted); font-size: 12px; }.gw-points-summary strong, .gw-task-center__overview strong { display: block; margin-top: 6px; color: var(--gw-heading); font-size: 23px; }.gw-points-level { display: grid; gap: 11px; }.gw-points-level > div:first-child { display: flex; justify-content: space-between; gap: 12px; }.gw-points-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e1ebe7; }.gw-points-progress i { display: block; height: 100%; border-radius: inherit; background: #397a68; transition: width var(--gw-transition-fast); }.gw-points-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.gw-points-actions h3 { margin-bottom: 7px; }.gw-points-actions p { min-height: 40px; margin: 0 0 13px; color: var(--gw-text-secondary); font-size: 13px; line-height: 1.55; }.gw-points-actions input { margin: 0 0 10px; }.gw-points-history { border-top: 1px solid #e2ebe7; }.gw-points-history h3 { padding-top: 18px; margin-bottom: 7px; }.gw-points-history__row strong { color: var(--gw-success); }
.gw-task-checkin { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.gw-task-checkin div { display: grid; gap: 4px; }.gw-task-checkin strong { color: var(--gw-heading); font-size: 15px; }.gw-task-list h3 { margin-bottom: 8px; font-size: 16px; }.gw-task-card { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 4px; border-top: 1px solid #e2ebe7; }.gw-task-card__type { width: max-content; max-width: 108px; padding: 5px 7px; border-radius: 4px; background: #e8f5f0; color: #397a68; font-size: 11px; font-weight: 700; }.gw-task-card h4 { margin: 0; color: var(--gw-heading); font-size: 14px; }.gw-task-card p { margin: 5px 0; color: var(--gw-text-secondary); font-size: 13px; line-height: 1.55; }.gw-task-card small { color: #a56e0d; font-size: 12px; font-weight: 700; }.gw-task-card__action > span { color: var(--gw-success); font-size: 12px; font-weight: 700; }.gw-task-card.is-complete { opacity: .66; }
.gw-user-task-modal[hidden] { display: none; }.gw-user-task-modal { position: fixed; z-index: 1300; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(19, 41, 34, .54); }.gw-user-task-modal__dialog { position: relative; display: grid; gap: 13px; width: min(100%, 430px); max-height: calc(100vh - 36px); overflow-y: auto; padding: 25px; border-radius: 8px; background: #fff; box-shadow: var(--gw-shadow-lg); }.gw-user-task-modal__dialog h3, .gw-user-task-modal__dialog p { margin: 0; }.gw-user-task-modal__dialog p { color: var(--gw-text-secondary); font-size: 13px; line-height: 1.6; white-space: pre-line; }.gw-user-task-modal__dialog a { width: max-content; color: #216b59; font-size: 13px; font-weight: 700; }.gw-user-task-modal__dialog img { width: min(180px, 100%); border: 1px solid var(--gw-border); border-radius: 5px; }.gw-user-task-modal__close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 5px; background: transparent; color: var(--gw-text-muted); font-size: 25px; cursor: pointer; }.gw-user-task-modal__close:hover { background: #f1f8f5; color: #216b59; }.gw-user-task-modal__dialog [data-task-modal-status] { min-height: 20px; color: var(--gw-danger); }
@media (max-width: 900px) { .gw-user-center__hero { align-items: flex-start; flex-direction: column; }.gw-user-center__metrics { width: 100%; }.gw-user-center__metrics span:first-child { padding-left: 0; border-left: 0; }.gw-user-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gw-user-center { padding: 20px 0 calc(92px + env(safe-area-inset-bottom)); }.gw-user-center__hero { gap: 21px; padding: 22px 20px; }.gw-user-center__hero::before { width: 4px; }.gw-user-avatar { flex-basis: 68px; width: 68px; height: 68px; }.gw-user-center__identity h1 { max-width: calc(100vw - 124px); font-size: 21px; }.gw-user-center__identity > div > span { max-width: calc(100vw - 124px); }.gw-user-center__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }.gw-user-center__metrics span { min-width: 0; padding: 0 9px; overflow: hidden; text-overflow: ellipsis; }.gw-user-center__metrics strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; }.gw-user-center__layout { display: block; margin-top: 14px; }.gw-user-center__mobile-nav { display: grid; gap: 7px; margin-bottom: 14px; padding: 12px; border: 1px solid #dce7e2; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px rgba(31, 67, 55, .06); }.gw-user-center__mobile-nav label { color: #397a68; font-size: 11px; font-weight: 800; letter-spacing: .06em; }.gw-user-center__mobile-nav select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #c8dbd3; border-radius: 5px; background: #f7fbf9; color: var(--gw-heading); font: inherit; font-size: 14px; font-weight: 700; }.gw-user-center__mobile-nav noscript nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }.gw-user-center__mobile-nav noscript a { padding: 9px; border-radius: 4px; background: #f1f8f5; color: #216b59; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; }.gw-user-center__nav { display: none; }.gw-user-center__content { padding: 21px 16px; border-radius: 8px; }.gw-user-panel-title { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 20px; }.gw-user-panel-title h2 { font-size: 21px; }.gw-user-status { max-width: none; }.gw-user-list-row, .gw-user-favorite, .gw-points-history__row { gap: 8px; padding: 14px 0; }.gw-user-list-row > span, .gw-user-list-row > strong, .gw-user-favorite span { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.5; }.gw-user-list-row:not(.is-stack) { grid-template-columns: minmax(0, 1fr) auto; }.gw-user-list-row:not(.is-stack) time { grid-column: 1; }.gw-user-list-row.is-stack { grid-template-columns: minmax(0, 1fr) auto; }.gw-user-list-row.is-stack time { align-self: start; }.gw-user-favorite { grid-template-columns: minmax(0, 1fr) auto; }.gw-user-favorite button { min-height: 40px; }.gw-user-profile button { width: 100%; }.gw-user-sponsor { padding: 20px; }.gw-user-sponsor form { grid-template-columns: 1fr; }.gw-user-sponsor form button { width: 100%; }.gw-task-center__overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }.gw-task-center__overview > div { padding: 14px; }.gw-task-center__overview strong { font-size: 19px; }.gw-task-card { grid-template-columns: 1fr; gap: 9px; padding: 16px 0; }.gw-task-card__action button { width: 100%; }.gw-task-checkin { align-items: stretch; flex-direction: column; }.gw-task-checkin button { width: 100%; } }
@media (max-width: 520px) { .gw-user-center__hero { padding: 20px 17px; }.gw-user-center__identity { gap: 13px; }.gw-user-center__metrics span { padding: 0 6px; white-space: normal; }.gw-user-stat-grid, .gw-points-summary, .gw-points-actions, .gw-user-sponsor__links { grid-template-columns: 1fr; }.gw-points-level > div:first-child { align-items: flex-start; flex-direction: column; gap: 5px; }.gw-points-history__row { grid-template-columns: minmax(0, 1fr) auto; }.gw-points-history__row time { grid-column: 1; }.gw-task-center__overview { grid-template-columns: 1fr; }.gw-task-center__overview > div { padding: 16px; }.gw-user-task-modal { padding: 12px; }.gw-user-task-modal__dialog { max-height: calc(100vh - 24px); padding: 22px 18px; } }
@media (max-width: 390px) { .gw-user-center__identity h1, .gw-user-center__identity > div > span { max-width: calc(100vw - 112px); }.gw-user-center__metrics strong { font-size: 15px; }.gw-user-favorite { grid-template-columns: 1fr; }.gw-user-favorite button { width: 100%; }.gw-user-profile__grid { grid-template-columns: 1fr; } }
