/* Desktop growth tools share the existing PC palette and service shells. */
.mine-growth-grid > .mine-certificates { grid-column: 1 / -1; min-width: 0; padding: 22px; border: 1px solid #e9e4f2; border-radius: 20px; }
.pc-growth-heading-actions { display: flex; align-items: center; gap: 14px; }
.pc-certificate-mine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pc-certificate-mine-tile { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 12px 18px; text-align: left; border: 1px solid #eee8f5; border-radius: 14px; background: #fcfbff; cursor: pointer; transition: border-color .2s, background .2s; }
.pc-certificate-mine-tile:hover { background: #f6f1ff; border-color: #c8b7ef; }
.pc-certificate-mine-tile > img { width: 84px; height: 84px; object-fit: contain; border-radius: 8px; }
.pc-certificate-mine-tile > span { flex: 1; min-width: 0; }
.pc-certificate-mine-tile b, .pc-certificate-mine-tile small { display: block; }
.pc-certificate-mine-tile b { color: #332b43; font-size: 15px; }
.pc-certificate-mine-tile small { margin-top: 8px; color: #91869e; font-size: 12px; }
.pc-certificate-mine-tile > .ui-icon { width: 16px; color: #9278bc; }
.pc-certificate-mine-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; min-height: 90px; padding: 18px 22px; background: #faf7ff; border-radius: 14px; }
.pc-certificate-mine-empty > span { display: grid; place-items: center; width: 48px; height: 48px; background: #efe6ff; color: #8056cd; border-radius: 15px; }
.pc-certificate-mine-empty p { margin: 5px 0 0; color: #92869c; font-size: 13px; }
.pc-certificate-mine-empty > button { margin-left: auto; }
.pc-growth-loading, .pc-growth-retry { grid-column: 1 / -1; padding: 26px; text-align: center; color: #8a7a9c; }
.pc-growth-retry { border: 1px dashed #d7cae9; border-radius: 14px; background: #faf7ff; cursor: pointer; }
.pc-certificates-card { width: min(1040px, calc(100vw - 48px)); }
#pcCertificatesPanel > .panel-card { width: min(1040px, calc(100vw - 48px)) !important; }
.pc-certificates-card .panel-head { padding-right: 38px; }
.pc-certificates-card .panel-head > button { margin-left: auto; }
.pc-certificate-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.pc-certificate-library { padding: 18px; border: 1px solid #eae4f2; border-radius: 18px; background: #fcfaff; }
.pc-growth-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.pc-growth-caption b { color: #44334f; font-size: 14px; }
.pc-growth-caption span { color: #998aa4; font-size: 12px; }
#pcCertificatesList { display: grid; gap: 10px; max-height: 440px; overflow-y: auto; }
#pcCertificatesList > button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 10px; border: 1px solid transparent; border-radius: 12px; text-align: left; background: #fff; cursor: pointer; }
#pcCertificatesList > button[aria-pressed="true"] { border-color: #be9fe9; background: #f2eafd; }
#pcCertificatesList > button > span { display: grid; place-items: center; width: 32px; height: 32px; color: #a36dba; background: #f5ecfa; border-radius: 10px; }
#pcCertificatesList > button > div { flex: 1; min-width: 0; }
#pcCertificatesList b, #pcCertificatesList small { display: block; }
#pcCertificatesList b { color: #47324f; font-size: 13px; }
#pcCertificatesList small { margin-top: 6px; color: #99899e; font-size: 11px; }
#pcCertificatesList > button > .ui-icon { width: 13px; color: #a58db3; }
.pc-certificate-library > p { margin: 20px 0 0; color: #9b8fa7; font-size: 12px; line-height: 1.8; }
.pc-certificate-detail { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pc-certificate-preview { position: relative; width: min(100%, 570px, calc(100dvh - 300px)); aspect-ratio: 1; container-type: inline-size; color: #383f47; font-family: "Songti SC", "SimSun", serif; }
.pc-certificate-preview > img { display: block; width: 100%; height: 100%; }
.certificate-style-2 { color: #1f4c1f; }
.certificate-style-3 { color: #152f58; }
.certificate-style-4 { color: #451766; }
.certificate-style-5 { color: #864e0c; }
.pc-certificate-name, .pc-certificate-rank { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-certificate-name { top: 42.1%; font-size: 6.38cqw; }
.pc-certificate-rank { top: 64.43%; font-size: 5.58cqw; }
.pc-certificate-footer { position: absolute; top: 94.25%; left: 5.58%; right: 5.58%; display: flex; justify-content: space-between; gap: 8px; transform: translateY(-50%); font-size: 2.31cqw; }
.pc-certificate-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(100%, 570px); }
.pc-certificate-tools > span { display: flex; align-items: center; gap: 7px; color: #9b8caa; font-size: 12px; }
.pc-certificates-empty { text-align: center; padding: 20px; }
.pc-certificates-empty > img { width: 190px; opacity: .65; }
.pc-certificates-empty h2 { margin: 18px 0 10px; font-size: 22px; color: #43314f; }
.pc-certificates-empty p { color: #9c8da6; font-size: 14px; }
.pc-certificates-empty > button { margin-top: 12px; }
.lq-exp-card:has(#pcLeagueRecap) { width: min(1140px, calc(100vw - 48px)); max-width: min(1140px, calc(100vw - 48px)); }
.lq-exp-body:has(#pcLeagueRecap) { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); align-items: start; gap: 24px; }
.pc-league-current { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pc-league-recap { padding: 24px; border: 1px solid #e6d8f5; border-radius: 18px; background: linear-gradient(150deg, #f6efff, #fffaf4); }
.pc-league-recap > header { display: flex; align-items: center; gap: 12px; }
.pc-league-recap > header > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; color: #9862c1; background: #ebdcfa; }
.pc-league-recap header small { color: #9e85ae; font-size: 11px; }
.pc-league-recap h3 { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: #513967; }
.pc-recap-ranks { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0; padding: 16px; border-radius: 13px; background: #ffffffb8; }
.pc-recap-ranks small, .pc-recap-ranks b { display: block; }
.pc-recap-ranks small { font-size: 11px; color: #a38bb0; }
.pc-recap-ranks b { margin-top: 7px; font-size: 17px; color: #795094; }
.pc-recap-ranks i { font-style: normal; color: #b697c7; }
.pc-league-recap dl { margin: 0; }
.pc-league-recap dl > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #ede3f1; }
.pc-league-recap dt { color: #a089ae; font-size: 13px; }
.pc-league-recap dd { margin: 0; color: #6b447d; font-size: 21px; font-weight: 700; }
.pc-league-recap > p { margin: 19px 0 0; color: #a18ba8; font-size: 12px; line-height: 1.8; }
.pc-recap-error { padding: 24px; border: 1px dashed #dbcde7; border-radius: 16px; color: #927e9f; font-size: 13px; }
.pc-mentor-workspace { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.15fr); gap: 28px; }
#pcMentorDetailPanel > .panel-card { width: min(1000px, calc(100vw - 48px)) !important; }
.pc-mentor-workspace .pc-mentor-detail { display: block; padding: 20px; border: 1px solid #ede5f7; border-radius: 18px; background: linear-gradient(145deg, #f6f0ff, #fff); }
.pc-mentor-workspace .pc-mentor-art { height: 190px; margin-bottom: 16px; background: #ffffff8a; border-radius: 14px; display: grid; place-items: center; }
.pc-mentor-workspace .pc-mentor-art > .mentor-portrait { width: 100%; height: 100%; max-height: 190px; aspect-ratio: auto; overflow: hidden; }
.pc-mentor-workspace .pc-mentor-art img { max-height: 100%; height: 100%; object-fit: contain; }
.pc-mentor-workspace .pc-mentor-copy h2 { margin: 6px 0 12px; font-size: 27px; }
.pc-mentor-kicker { color: #a47cb5; font-size: 11px; letter-spacing: 1px; }
.pc-mentor-workspace .pc-mentor-copy > p { margin: 10px 0; color: #96859f; font-size: 13px; line-height: 1.8; }
.pc-mentor-workspace .pc-mentor-facts { gap: 8px; margin: 14px 0; }
.pc-mentor-workspace .pc-mentor-facts > b { min-width: 0; padding: 10px 7px; font-size: 15px; }
.pc-mentor-study { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pc-mentor-book { padding: 22px; border: 1px solid #ede8f3; border-radius: 18px; background: #fff; }
.pc-mentor-book > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-mentor-book header small { font-size: 11px; color: #a292af; }
.pc-mentor-book h3 { margin: 7px 0 0; color: #483556; font-size: 20px; }
.pc-mentor-book header > span { color: #a08ba9; font-size: 12px; white-space: nowrap; }
.pc-mentor-book-progress { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 22px 0; color: #a18bae; font-size: 12px; }
.pc-mentor-book-progress b { color: #8b5dbc; }
.pc-mentor-book-progress progress { grid-column: 1 / -1; width: 100%; height: 8px; appearance: none; border: 0; border-radius: 9px; overflow: hidden; background: #f0e8f8; }
.pc-mentor-book-progress progress::-webkit-progress-bar { background: #f0e8f8; }
.pc-mentor-book-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #b898ea, #885cc6); border-radius: 9px; }
.pc-mentor-book-progress progress::-moz-progress-bar { background: #885cc6; }
.pc-mentor-chapters { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.pc-mentor-chapters > button { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 12px; border: 1px solid #eee9f4; border-radius: 11px; background: #fcfaff; text-align: left; cursor: pointer; }
.pc-mentor-chapters > button:hover { background: #f2eafb; border-color: #d6c3ea; }
.pc-mentor-chapters > button > em { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: #ede3f8; color: #9061b3; font-weight: 700; font-style: normal; }
.pc-mentor-chapters > button > span { flex: 1; min-width: 0; }
.pc-mentor-chapters b, .pc-mentor-chapters small { display: block; }
.pc-mentor-chapters b { color: #64476f; font-size: 13px; }
.pc-mentor-chapters small { margin-top: 5px; color: #a18daa; font-size: 11px; }
.pc-mentor-chapters > button > .ui-icon { width: 14px; color: #aa92b8; }
.pc-mentor-book > .btn-ghost { width: 100%; margin-top: 14px; }
.pc-mentor-book-empty { padding: 24px 12px; text-align: center; font-size: 13px; color: #a18daa; }
.pc-mentor-offer { padding: 20px; border: 1px solid #e5d7f3; border-radius: 16px; background: #faf5ff; }
.pc-mentor-card.locked:enabled, .qb-mentor-preview.locked:enabled, .qb-mentor-nav-item.locked:enabled { opacity: 1; cursor: pointer; }
.pc-mentor-card.locked:enabled:hover, .qb-mentor-preview.locked:enabled:hover, .qb-mentor-nav-item.locked:enabled:hover { border-color: #c8b9f4; background: #faf8ff; }
.pc-mentor-offer > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-mentor-offer header small, .pc-mentor-offer header > span { color: #957da6; font-size: 12px; }
.pc-mentor-offer h3 { margin: 6px 0; color: #483556; font-size: 18px; }
.pc-mentor-offer > p { color: #816b90; font-size: 13px; line-height: 1.7; }
.pc-mentor-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 16px 0; }
.pc-mentor-offer-price b { color: #794f96; font-size: 23px; }
.pc-mentor-offer-price del, .pc-mentor-offer-price small { color: #957da6; font-size: 12px; }
.pc-mentor-offer-price small { flex-basis: 100%; }
.pc-mentor-offer > button { width: 100%; margin-top: 10px; }
.pc-mentor-offer .pc-mentor-offer-pending { color: #986728; }
.qb-mentor-reader > .pc-mentor-offer { margin-bottom: 20px; padding: 16px; }
.qb-mentor-start:disabled { opacity: .55; cursor: not-allowed; }
.pc-mentor-workspace .pc-mentor-actions { margin: auto 0 0; gap: 12px; }
#pcMentorDetailPanel .pc-mentor-actions > button { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 7px 11px; min-height: 92px; padding: 17px; border: 1px solid #e5d7f3; border-radius: 14px; background: #faf5ff; color: #794f96; text-align: left; cursor: pointer; }
#pcMentorDetailPanel .pc-mentor-actions > button:hover { border-color: #c49bdf; background: #f1e5fc; }
#pcMentorDetailPanel .pc-mentor-actions > button > .ui-icon { grid-row: span 2; align-self: center; width: 23px; height: 23px; }
#pcMentorDetailPanel .pc-mentor-actions b { font-size: 14px; }
#pcMentorDetailPanel .pc-mentor-actions small { font-size: 11px; line-height: 1.6; color: #a084ae; }
#pcMentorDetailPanel .pc-mentor-actions > button:disabled { opacity: .5; cursor: default; }
.pc-photo-card { width: min(1160px, calc(100vw - 48px)); }
#pcPhotoPanel > .panel-card { width: min(1160px, calc(100vw - 48px)) !important; }
.pc-photo-workspace { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(400px, 1.15fr); gap: 28px; align-items: start; }
#pcPhotoPanel .pc-photo-workspace { display: grid !important; gap: 28px !important; align-content: start; }
.pc-photo-source { padding: 22px; border: 1px solid #e9e2f2; border-radius: 18px; background: #fcfaff; }
.pc-photo-source > header, .pc-photo-position > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pc-photo-source header b, .pc-photo-position header b { color: #4a3658; font-size: 15px; }
.pc-photo-source header > span, .pc-photo-position header > span { color: #a291ad; font-size: 11px; }
.pc-photo-position header small { display: block; margin-top: 7px; color: #9e89ae; font-size: 12px; }
.pc-photo-upload { display: grid; place-items: center; width: 100%; height: clamp(180px, 26vh, 250px); overflow: hidden; border: 1px dashed #d4c3e8; border-radius: 14px; background: #f5effc; cursor: pointer; }
.pc-photo-upload > img { width: 100%; height: 100%; object-fit: contain; }
.pc-photo-upload > img[hidden], .pc-photo-upload > span[hidden] { display: none; }
.pc-photo-upload > span { display: grid; justify-items: center; gap: 12px; padding: 20px; text-align: center; }
.pc-photo-upload .ui-icon { width: 38px; height: 38px; color: #b191d0; }
.pc-photo-upload b { color: #8c6ca5; font-size: 14px; }
.pc-photo-upload small { color: #ad97bd; font-size: 12px; }
.pc-photo-file-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pc-photo-file-actions > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a796b1; font-size: 11px; }
.pc-photo-file-actions > button { flex-shrink: 0; }
.pc-photo-recognize { width: 100%; margin-top: 18px; }
.pc-photo-status { min-height: 38px; margin: 14px 0; font-size: 12px; line-height: 1.7; color: #9b88ab; }
.pc-photo-status.error { color: #b25766; }
.pc-photo-guide { display: grid; gap: 13px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid #eae1f3; list-style: none; counter-reset: photo-step; }
.pc-photo-guide > li { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; counter-increment: photo-step; }
.pc-photo-guide li::before { content: counter(photo-step); grid-row: span 2; display: grid; place-items: center; height: 26px; border-radius: 8px; color: #a080ba; background: #f0e7f8; font-size: 12px; }
.pc-photo-guide b { font-size: 12px; color: #8d739f; }
.pc-photo-guide span { margin-top: 4px; font-size: 11px; color: #ad9bb8; }
.pc-photo-position { min-width: 0; }
.pc-photo-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.pc-photo-toolbar > button { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid #e8dfef; border-radius: 9px; background: #fff; color: #9c85ab; font-size: 12px; cursor: pointer; }
.pc-photo-toolbar > button[aria-pressed="true"] { background: #f0e6fb; border-color: #c6a9e4; color: #7e52a0; }
.pc-photo-toolbar .pc-photo-tool-stone { display: block; width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; }
.pc-photo-tool-stone.black { background: #28222e; }
.pc-photo-tool-stone.white { background: #fff; border: 1px solid #cec4d4; }
.pc-photo-toolbar > button:disabled { opacity: .5; cursor: default; }
.pc-photo-board { position: relative; width: min(100%, 500px, calc(100dvh - 440px)); aspect-ratio: 1; margin-inline: auto; border: 1px solid #d5b174; border-radius: 13px; background: linear-gradient(140deg, #f7dfae, #e8c58d); box-shadow: inset 0 0 30px #b9944525, 0 5px 18px #b9986120; }
.pc-photo-board > svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.pc-photo-board > button { position: absolute; display: block; width: 4.7%; height: 4.7%; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pc-photo-board > button.black { background: radial-gradient(circle at 32% 25%, #626064, #19161b 65%, #080709); box-shadow: 1px 2px 2px #49361b70; }
.pc-photo-board > button.white { background: radial-gradient(circle at 32% 25%, #fff, #f7f6f3 65%, #d9d8d1); box-shadow: 1px 2px 2px #49361b70; }
.pc-photo-board > button:enabled:hover { outline: 2px solid #9c69c7; outline-offset: 1px; }
.pc-photo-board > button:focus-visible { outline: 3px solid #8953b5; }
.pc-photo-board > button:disabled { cursor: default; }
.pc-photo-result { min-height: 50px; display: grid; place-items: center; margin-top: 18px; padding: 13px 18px; border: 1px solid #eee5f5; border-radius: 12px; background: #fcf8ff; color: #a18aad; font-size: 12px; text-align: center; }
.pc-photo-result.calculated { color: #744590; background: #f1e5fb; border-color: #d8bce8; font-size: 19px; font-weight: 700; }
.pc-photo-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pc-photo-actions button:disabled, .pc-photo-recognize:disabled { opacity: .5; cursor: default; }
@media (max-height: 820px) and (min-width: 801px) {
  .pc-photo-guide { display: none; }
}
@media (max-width: 1100px) {
  .pc-certificate-mine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-certificate-workspace { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
  .pc-mentor-workspace { gap: 18px; }
  .pc-photo-workspace { grid-template-columns: minmax(250px, .8fr) minmax(340px, 1.2fr); gap: 20px; }
}
@media (max-width: 800px) {
  .pc-certificate-workspace, .pc-mentor-workspace, .pc-photo-workspace, .lq-exp-body:has(#pcLeagueRecap) { grid-template-columns: minmax(0, 1fr); }
  #pcCertificatesList { max-height: 180px; }
  .pc-certificate-mine-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-certificate-mine-empty { flex-wrap: wrap; }
}
