/* PC secondary business modules: profile / friends / mentors / achievements / world game */
.pc-service-panel .panel-card{width:min(1040px,calc(100vw - 72px));max-height:calc(100vh - 56px);overflow:hidden}.pc-service-panel .panel-body{max-height:calc(100vh - 150px);overflow:auto;padding:24px}.pc-service-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;border-radius:22px;background:linear-gradient(135deg,rgba(91,69,199,.10),rgba(255,255,255,.92));border:1px solid rgba(91,69,199,.12);margin-bottom:20px}.pc-service-hero h2{font-size:44px;line-height:1;margin:6px 0}.pc-service-hero p,.pc-service-hero small{color:var(--muted,#768097)}.pc-service-hero>span{width:76px;height:76px;display:grid;place-items:center;border-radius:24px;background:#fff;box-shadow:0 12px 32px rgba(45,39,90,.10)}.pc-service-hero .ui-icon{width:38px;height:38px}.pc-service-section{padding:20px 0}.pc-service-section+ .pc-service-section{border-top:1px solid rgba(25,30,50,.08)}.pc-service-section>header{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.pc-service-section>header b{font-size:18px}.pc-service-section>header small{color:#8b93a5}.pc-ach-grid,.pc-mentor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pc-ach-card,.pc-mentor-card{position:relative;min-height:170px;border:1px solid rgba(34,40,64,.08);background:#fff;border-radius:18px;padding:16px;text-align:left;box-shadow:0 6px 20px rgba(30,35,60,.05)}.pc-ach-card.locked,.pc-mentor-card.locked{opacity:.55;filter:saturate(.45)}.pc-ach-badge{height:88px;display:grid;place-items:center}.pc-ach-badge img{max-width:78px;max-height:78px}.pc-ach-badge .ui-icon{width:40px;height:40px}.pc-ach-card small{display:block;color:#8b93a5}.pc-ach-card em,.pc-mentor-card b,.pc-mentor-card em,.pc-mentor-card small{display:block;margin-top:5px}.pc-ach-card button{align-self:flex-end;margin-top:auto}.pc-mentor-card>span{display:block;height:105px}.pc-mentor-card .mentor-portrait{height:100%;width:100%;display:flex;align-items:center;justify-content:center}.pc-mentor-card .mentor-portrait img{height:100%;width:auto;object-fit:contain}.pc-mentor-detail{display:grid;grid-template-columns:240px 1fr;gap:30px;align-items:center;padding:24px;border-radius:22px;background:linear-gradient(135deg,#f5f2ff,#fff)}.pc-mentor-art{height:280px;display:flex;align-items:end;justify-content:center}.pc-mentor-art .mentor-portrait{height:100%;width:100%}.pc-mentor-art img{height:100%;width:100%;object-fit:contain}.pc-mentor-copy h2{font-size:34px;margin:8px 0}.pc-mentor-copy p{line-height:1.7;color:#677087}.pc-mentor-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.pc-mentor-facts b{padding:14px;background:rgba(255,255,255,.75);border-radius:14px;font-size:20px}.pc-mentor-facts small{display:block;font-size:12px;color:#7d8596;margin-top:5px}.pc-knowledge{display:flex;gap:8px;flex-wrap:wrap}.pc-knowledge span{padding:8px 12px;border-radius:999px;background:#f2effd}.pc-mentor-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.pc-mentor-actions button{padding:18px;border-radius:18px;text-align:left;display:grid;grid-template-columns:38px 1fr;column-gap:10px}.pc-mentor-actions button small{grid-column:2;color:#7f8797}.pc-friend-search{display:grid;grid-template-columns:1fr 1.4fr;gap:16px;padding:18px;border:1px solid rgba(34,40,64,.08);border-radius:18px}.pc-friend-search>div:nth-child(2){display:flex;gap:8px}.pc-friend-search input{flex:1;min-width:0}.pc-friend-search #pcFriendSearchResults{grid-column:1/-1}.pc-friend-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pc-friend-row,.pc-friend-result{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid rgba(34,40,64,.08);border-radius:14px;background:#fff}.pc-friend-result{grid-template-columns:auto minmax(0,1fr) auto;margin-top:8px}.pc-friend-avatar,.pc-friend-result>span{width:42px;height:42px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#f1effa}.pc-friend-avatar img,.pc-friend-result img{width:100%;height:100%;object-fit:cover}.pc-friend-rank{color:#9aa1b1}.pc-profile-hero{display:flex;align-items:center;gap:18px;padding:22px;border-radius:20px;background:linear-gradient(135deg,#f4f1ff,#fff)}.pc-profile-hero>span{width:84px;height:84px;border-radius:24px;overflow:hidden;display:grid;place-items:center;background:#fff;font-size:28px}.pc-profile-hero img{width:100%;height:100%;object-fit:cover}.pc-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.pc-profile-stats span{padding:16px;border-radius:15px;background:#f7f8fb}.pc-profile-stats b,.pc-profile-stats small{display:block}.pc-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pc-profile-form label{display:grid;gap:6px}.pc-profile-form input{width:100%}.pc-profile-form button{grid-column:1/-1;justify-self:end}.pc-profile-record>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(34,40,64,.06)}
.mine-svc-grid.mine-core-services{margin-top:10px}.mine-user-card{cursor:default}.mine-profile-open{margin-left:auto}
.world-game-card{width:min(1180px,calc(100vw - 60px));max-width:none;height:min(780px,calc(100vh - 48px));display:grid;grid-template-rows:auto 1fr;overflow:hidden}.world-game-main{display:grid;grid-template-columns:minmax(520px,1fr) 300px;gap:24px;padding:24px;min-height:0}.world-game-board-wrap{position:relative;display:grid;place-items:center;min-height:0}.world-game-board{width:min(66vh,680px);height:min(66vh,680px);max-width:100%;max-height:100%}.world-game-side{display:flex;flex-direction:column;gap:16px;padding:8px;min-width:0}.world-game-side h2{font-size:28px;margin:0}.world-game-side p{color:#727b8f;line-height:1.65}.world-game-count{display:flex;align-items:baseline;gap:7px;padding:18px;border-radius:17px;background:#f6f4fd}.world-game-count b{font-size:32px}.world-game-tip{margin-top:auto;padding:14px;border-radius:14px;background:#fafafa;color:#777;line-height:1.7}.world-game-placed-ring{position:absolute;width:30px;height:30px;border:3px solid #9d7cff;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;animation:wg-ring 1.1s ease-out forwards}@keyframes wg-ring{from{opacity:1;transform:translate(-50%,-50%) scale(.5)}to{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@media(max-width:1180px){.pc-ach-grid,.pc-mentor-grid{grid-template-columns:repeat(3,1fr)}.world-game-main{grid-template-columns:1fr 260px}.world-game-board{width:min(60vh,580px);height:min(60vh,580px)}}
@media(max-width:900px){.world-game-main{grid-template-columns:1fr;overflow:auto}.world-game-board{width:min(88vw,520px);height:min(88vw,520px)}.world-game-side h2{font-size:22px}}

/* Service forms share the control sizing and colors of the main workspace. */
.pc-ach-card{display:flex;flex-direction:column;gap:6px;min-width:0}
.pc-ach-card>em{margin:0;font-size:13px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.pc-ach-card>.pc-ach-badge{flex-shrink:0}
.pc-profile-form input,.pc-friend-search input{
  min-width:0;min-height:40px;padding:9px 12px;border:1px solid var(--pc-border-strong);
  border-radius:var(--pc-radius-control);background:#fff;color:var(--ink);font:inherit;line-height:1.5;
}
.pc-profile-form label{min-width:0;color:var(--ink-2);font-size:13px}
.pc-profile-form [data-pcsvc-save-profile],.pc-friend-search [data-pcsvc-search-friends],
.pc-friend-result [data-pcsvc-add-friend],.pc-ach-card [data-pcsvc-claim-ach]{
  min-height:40px;padding:9px 16px;border-radius:var(--pc-radius-control);background:var(--brand);
  color:#fff;font-size:13px;font-weight:800;white-space:nowrap;
}
.pc-profile-form [data-pcsvc-save-profile]:hover,.pc-friend-search [data-pcsvc-search-friends]:hover,
.pc-friend-result [data-pcsvc-add-friend]:hover,.pc-ach-card [data-pcsvc-claim-ach]:hover{filter:brightness(.95)}
.pc-friend-search>div:first-child{display:flex;flex-direction:column;justify-content:center;gap:4px}
.pc-friend-search small,.pc-friend-row small,.pc-friend-result small{display:block;color:var(--ink-2);font-size:12px}
.pc-friend-row>div,.pc-friend-result>div{min-width:0;overflow-wrap:anywhere}
.pc-friend-row em,.pc-friend-result em,.pc-mentor-card em,.pc-ach-card em{font-style:normal}
.pc-friend-row [data-pcsvc-delete-friend]{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--bg);color:var(--ink-2)}
.pc-friend-row [data-pcsvc-delete-friend]:hover{background:#fdeeec;color:#c63f46}
.pc-friend-search #pcFriendSearchResults:empty{display:none}
.pc-service-hero>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
.pc-ach-grid>.empty-state,.pc-mentor-grid>.empty-state,.pc-friend-list>.empty-state,.wrong-list>.empty-state,
.pc-avatar-grid>.empty-state,.pc-roles-grid>.empty-state,.pc-vip-tiers>.empty-state{grid-column:1/-1}

/* APP parity: Settings + owned-role avatar picker */
.topbar-settings{width:38px;height:38px;border:0;border-radius:12px;background:transparent;color:var(--muted,#65707f);display:inline-grid;place-items:center;cursor:pointer;margin-right:8px}
.topbar-settings:hover{background:rgba(92,70,224,.08);color:var(--primary,#6556e8)}
.topbar-settings .ui-icon{width:19px;height:19px}
.mine-core-services{grid-template-columns:repeat(5,minmax(0,1fr))}
.pc-settings-hero{display:flex;gap:18px;align-items:center;padding:22px;border-radius:20px;background:linear-gradient(135deg,rgba(101,86,232,.12),rgba(101,86,232,.035));margin-bottom:20px}
.pc-settings-hero>span{width:58px;height:58px;border-radius:17px;background:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(54,47,110,.10);color:var(--primary,#6556e8)}
.pc-settings-hero>span .ui-icon{width:27px;height:27px}.pc-settings-hero h2{margin:3px 0 2px;font-size:22px}.pc-settings-hero p,.pc-settings-hero small{margin:0;color:var(--muted,#727888)}
.pc-settings-section{margin:18px 0}.pc-settings-section h3{font-size:13px;letter-spacing:.05em;color:var(--muted,#727888);margin:0 0 8px;padding:0 4px}
.pc-settings-section>button,.pc-settings-section>a{width:100%;border:0;background:#fff;text-decoration:none;color:inherit;display:grid;grid-template-columns:42px 1fr 22px;align-items:center;gap:12px;padding:13px 14px;border-radius:14px;cursor:pointer;text-align:left;margin:5px 0}
.pc-settings-section>button:hover,.pc-settings-section>a:hover{background:rgba(101,86,232,.055)}
.pc-settings-section>button>span,.pc-settings-section>a>span{width:38px;height:38px;border-radius:12px;background:rgba(101,86,232,.08);color:var(--primary,#6556e8);display:grid;place-items:center}.pc-settings-section .ui-icon{width:18px;height:18px}.pc-settings-section div{display:flex;flex-direction:column;gap:2px}.pc-settings-section div small{color:var(--muted,#727888)}.pc-settings-section>button>i,.pc-settings-section>a>i{color:#a5abb6}.pc-settings-section>button>i .ui-icon,.pc-settings-section>a>i .ui-icon{width:15px;height:15px}
.pc-settings-section .pc-pref-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;margin:5px 0;background:#fff;cursor:pointer;text-align:left}
.pc-settings-section .pc-pref-row:hover{background:rgba(101,86,232,.055)}
.pc-settings-section .pc-pref-row span{flex:1;display:flex;flex-direction:column;gap:2px}
.pc-settings-section .pc-pref-row input{width:20px;height:20px;accent-color:var(--primary,#6556e8);cursor:pointer;flex:none}
.pc-settings-version{display:flex;justify-content:space-between;gap:18px;padding:16px 4px;color:var(--muted,#727888);border-top:1px solid rgba(31,36,48,.08)}.pc-settings-version span{font-weight:700;color:var(--text,#202531)}
.pc-settings-logout{padding-top:10px}.pc-settings-logout button{width:100%;border:1px solid rgba(218,67,74,.16);background:rgba(218,67,74,.045);color:#c63f46;border-radius:14px;padding:13px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;text-align:left}.pc-settings-logout button>span{display:flex;flex-direction:column;gap:2px}.pc-settings-logout small{color:#9b6064}.pc-settings-logout .ui-icon{width:18px;height:18px}
.pc-settings-logout button.pc-settings-cancel-account{margin-top:9px;border-color:rgba(218,67,74,.26);background:#fff;color:#b2343b}.pc-settings-logout button.pc-settings-cancel-account:hover{background:rgba(218,67,74,.06)}
.pc-profile-avatar-pick{border:1px solid rgba(101,86,232,.18);background:rgba(101,86,232,.06);color:var(--primary,#6556e8);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer;margin-top:-5px}
.pc-avatar-hero{padding:4px 2px 16px}.pc-avatar-hero small{color:var(--primary,#6556e8);font-weight:800}.pc-avatar-hero h2{font-size:23px;margin:4px 0}.pc-avatar-hero p{margin:0;color:var(--muted,#727888)}
.pc-avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.pc-avatar-item{position:relative;border:1px solid rgba(35,42,54,.09);border-radius:16px;background:#fff;padding:10px 8px 9px;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;min-width:0}.pc-avatar-item:hover{border-color:rgba(101,86,232,.28);transform:translateY(-1px)}.pc-avatar-item.active{border-color:var(--primary,#6556e8);box-shadow:0 0 0 2px rgba(101,86,232,.10)}.pc-avatar-item>span{width:64px;height:64px;border-radius:18px;background:rgba(101,86,232,.06);overflow:hidden;display:grid;place-items:center;font-size:22px}.pc-avatar-item img{width:100%;height:100%;object-fit:cover}.pc-avatar-item em{font-style:normal;font-size:12px;font-weight:700;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.pc-avatar-item>b{position:absolute;right:6px;top:6px;font-size:10px;background:var(--primary,#6556e8);color:#fff;padding:2px 6px;border-radius:999px}.pc-avatar-dock{padding:14px 24px 22px;border-top:1px solid rgba(31,36,48,.08);display:flex;justify-content:flex-end}.pc-avatar-dock .btn-primary{min-width:140px}
@media(max-width:1350px){.mine-core-services{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1080px){.pc-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* APP parity: role gallery + VIP */
.pc-roles-card,.pc-vip-card{max-width:1040px}.pc-roles-hero,.pc-vip-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-radius:20px;margin-bottom:18px;background:linear-gradient(135deg,rgba(101,86,232,.13),rgba(101,86,232,.035))}.pc-roles-hero small,.pc-vip-hero small{color:var(--primary,#6556e8);font-weight:800}.pc-roles-hero h2,.pc-vip-hero h2{margin:4px 0;font-size:24px}.pc-roles-hero p,.pc-vip-hero p{margin:0;color:var(--muted,#727888)}.pc-roles-hero>span{width:64px;height:64px;border-radius:20px;background:#fff;display:grid;place-items:center;color:var(--primary,#6556e8);box-shadow:0 10px 28px rgba(48,42,104,.1)}.pc-roles-hero .ui-icon{width:29px;height:29px}
.pc-roles-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.pc-role-card{border:1px solid rgba(34,39,52,.08);border-radius:18px;background:#fff;overflow:hidden;min-width:0}.pc-role-card.locked{opacity:.62}.pc-role-art{height:150px;position:relative;overflow:hidden;background:linear-gradient(150deg,rgba(101,86,232,.10),rgba(31,36,48,.03));display:grid;place-items:center}.pc-role-art img{width:100%;height:100%;object-fit:contain}.pc-role-art>span{font-size:34px;font-weight:800}.pc-role-art>i{position:absolute;right:9px;top:9px;font-style:normal;font-size:10px;padding:4px 7px;border-radius:999px;background:rgba(30,33,42,.7);color:#fff}.pc-role-art>i.owned{background:rgba(50,160,105,.88)}.pc-role-info{padding:12px}.pc-role-info>b{display:block;font-size:15px}.pc-role-info>small{display:block;color:var(--muted,#727888);margin:3px 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-role-info>div{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#7b8190}
.pc-vip-hero>b{border:1px solid rgba(101,86,232,.20);background:#fff;color:var(--muted,#727888);padding:8px 12px;border-radius:999px;font-size:12px}.pc-vip-hero>b.open{color:#9b6b00;background:#fff8dd;border-color:#efd784}.pc-vip-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pc-vip-tier{position:relative;border:1px solid rgba(34,39,52,.10);border-radius:16px;background:#fff;padding:14px;text-align:left;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:5px 10px}.pc-vip-tier.selected{border-color:#b58b31;box-shadow:0 0 0 2px rgba(181,139,49,.11)}.pc-vip-tier>span{display:flex;align-items:center;gap:7px}.pc-vip-tier em{font-style:normal;font-size:9px;background:#b58b31;color:#fff;border-radius:999px;padding:2px 6px}.pc-vip-tier strong{font-size:18px;color:#8c641d}.pc-vip-tier del{font-size:11px;color:#a1a5ae}.pc-vip-tier small{grid-column:2;color:#86724b}.pc-vip-benefits{margin-top:20px;padding:20px;border-radius:18px;background:rgba(181,139,49,.06);border:1px solid rgba(181,139,49,.12)}.pc-vip-benefits h3{margin:0 0 13px}.pc-vip-benefits>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.pc-vip-benefits>div>span{background:#fff;border-radius:14px;padding:14px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:9px}.pc-vip-benefits>div .ui-icon{grid-row:1/3;width:24px;height:24px;color:#a4751b;align-self:center}.pc-vip-benefits>div small{color:var(--muted,#727888)}.pc-vip-benefits ol{margin:16px 0 0;padding-left:20px;color:#6f6658;font-size:12px;line-height:1.7}.pc-vip-pay{width:100%;margin-top:16px;border:0;border-radius:14px;background:#1e2330;color:#fff;padding:13px 16px;font-weight:800;cursor:pointer}.pc-flow-note{text-align:center;color:var(--muted,#727888);font-size:12px;margin:10px 0 0}
@media(max-width:1350px){.pc-roles-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pc-vip-tiers{grid-template-columns:repeat(2,minmax(0,1fr))}}

.wrong-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wrong-card{display:grid;grid-template-columns:124px 1fr;gap:14px;align-items:center;padding:12px;border:1px solid rgba(79,68,123,.12);border-radius:15px;background:#fff}
.wrong-mini-board{width:124px;height:124px;min-width:124px;border-radius:12px;overflow:hidden;background:#d9b77d}
.wrong-copy{min-width:0}.wrong-copy>b{display:block;color:#322d48;font-size:13px}.wrong-copy>small{display:block;margin-top:5px;color:#858093;font-size:11px}.wrong-copy .task-progress{margin-top:8px}.wrong-review-btn{margin-top:9px}
@media(max-width:1120px){.wrong-list{grid-template-columns:1fr}}
