/* frontend-src/styles/app-shell/00-styles.css */
    :root {
      --pg-density-max: 1760px;
      --pg-density-readable-max: 1440px;
      --pg-density-gutter: clamp(16px, 4vw, 80px);
      --pg-density-gutter-tight: clamp(12px, 2.4vw, 40px);
      --pg-density-page-top: clamp(14px, 1.8vw, 28px);
      --pg-density-page-bottom: clamp(30px, 4vw, 56px);
      --pg-density-gap: clamp(12px, 1.25vw, 20px);
      --pg-density-panel-pad: clamp(14px, 1.35vw, 22px);
      --pg-density-control-h: 36px;
      --pg-density-topbar-h: 56px;
      --pg-density-radius: 8px;
      --pg-density-left-rail: clamp(260px, 20vw, 340px);
      --pg-density-right-rail: clamp(300px, 22vw, 400px);
      --pg-density-font-base: 14px;
      --pg-density-font-small: 12px;
      --pg-modal-border: rgba(180, 245, 232, .16);
      --pg-modal-border-strong: rgba(180, 245, 232, .24);
      --pg-modal-glass: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
      --pg-modal-surface: linear-gradient(150deg, rgba(13, 24, 32, .965), rgba(5, 10, 18, .985));
      --pg-modal-topline: linear-gradient(90deg, transparent, rgba(126, 238, 224, .72), rgba(246, 202, 118, .58), transparent);
      --pg-modal-grid: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
      --pg-modal-primary: linear-gradient(135deg, rgba(110,231,223,.98), rgba(245,193,108,.96));
      --pg-modal-shadow: 0 34px 120px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.035) inset, 0 1px 0 rgba(255,255,255,.12) inset;
    }
    @media (min-width: 1920px) {
      :root {
        --pg-density-max: 1840px;
        --pg-density-gutter: clamp(48px, 5vw, 96px);
      }
    }
    @media (min-width: 2560px) {
      :root {
        --pg-density-max: 1880px;
        --pg-density-gutter: clamp(80px, 8vw, 180px);
      }
    }
    @media (max-width: 1366px), (max-height: 780px) {
      :root {
        --pg-density-gutter: clamp(14px, 2.4vw, 36px);
        --pg-density-gutter-tight: clamp(10px, 1.8vw, 24px);
        --pg-density-page-top: 14px;
        --pg-density-page-bottom: 32px;
        --pg-density-gap: 12px;
        --pg-density-panel-pad: 14px;
        --pg-density-control-h: 34px;
        --pg-density-topbar-h: 52px;
        --pg-density-left-rail: clamp(240px, 21vw, 300px);
        --pg-density-right-rail: clamp(280px, 23vw, 360px);
      }
    }
    html,
    body {
      margin: 0;
      background: #06090f;
    }
    .pg-auth-loading body > .container { visibility: hidden; }
    .pg-update-banner {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 2147482500;
      display: flex;
      align-items: center;
      gap: 12px;
      max-width: min(420px, calc(100vw - 32px));
      padding: 12px 14px;
      border: 1px solid rgba(130, 232, 215, .42);
      border-radius: 18px;
      background: rgba(8, 14, 18, .94);
      color: #eefcf8;
      box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
      backdrop-filter: blur(14px);
      font: 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-update-banner span { min-width: 0; }
    .pg-update-banner button {
      flex: 0 0 auto;
      border: 0;
      border-radius: 999px;
      padding: 8px 12px;
      background: #80f0d8;
      color: #071110;
      font-weight: 800;
      cursor: pointer;
    }
    .pg-auth-gate {
      position: fixed;
      inset: 0;
      z-index: 2147482000;
      display: grid;
      place-items: center;
      padding: 24px;
      background:
        linear-gradient(120deg, rgba(33, 83, 89, .26) 0%, transparent 36%),
        linear-gradient(180deg, rgba(5, 9, 15, .66), rgba(2, 5, 10, .86));
      backdrop-filter: blur(22px) saturate(1.12);
      color: #f7fbff;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-auth-panel {
      position: relative;
      width: min(500px, 100%);
      padding: 30px 34px 28px;
      border: 1px solid rgba(180, 245, 232, .14);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
        linear-gradient(150deg, rgba(13, 24, 32, .96), rgba(5, 10, 18, .985));
      box-shadow:
        0 34px 120px rgba(0,0,0,.58),
        0 0 0 1px rgba(255,255,255,.035) inset,
        0 1px 0 rgba(255,255,255,.12) inset;
      overflow: hidden;
      isolation: isolate;
    }
    .pg-auth-panel,
    .pg-auth-panel * {
      box-sizing: border-box;
    }
    .pg-auth-panel::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(126, 238, 224, .72), rgba(246, 202, 118, .58), transparent);
      pointer-events: none;
    }
    .pg-auth-panel::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 44px 44px;
      opacity: .24;
      mask-image: linear-gradient(180deg, rgba(0,0,0,.88), transparent 74%);
    }
    .pg-auth-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 12px;
      color: rgba(247,251,255,.72);
      background: rgba(255,255,255,.055);
      cursor: pointer;
      font-size: 17px;
      font-weight: 850;
      line-height: 1;
      box-shadow: 0 10px 26px rgba(0,0,0,.18);
    }
    .pg-auth-close:hover,
    .pg-auth-close:focus-visible {
      outline: none;
      color: #fff;
      border-color: rgba(137, 238, 225, .38);
      background: rgba(137, 238, 225, .12);
    }
    .pg-auth-panel h1 {
      margin: 6px 44px 10px 0;
      color: rgba(250,252,255,.98);
      font-size: clamp(27px, 3.4vw, 36px);
      font-weight: 940;
      line-height: 1.05;
      letter-spacing: 0;
    }
    .pg-auth-panel p {
      margin: 0 40px 24px 0;
      max-width: 390px;
      color: rgba(226,235,239,.72);
      font-size: 16px;
      font-weight: 680;
      line-height: 1.5;
    }
    .pg-auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 18px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 13px;
      background: rgba(2, 6, 12, .42);
    }
    .pg-auth-tabs[hidden] { display: none; }
    .pg-auth-reset-progress {
      margin: 2px 0 18px;
      padding: 10px 12px;
      border-left: 2px solid rgba(126, 238, 224, .72);
      background: linear-gradient(90deg, rgba(126, 238, 224, .09), transparent);
      color: rgba(214, 247, 241, .78);
      font: 750 11px/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
      letter-spacing: .04em;
    }
    .pg-auth-reset-progress[hidden] { display: none; }
    .pg-auth-tab,
    .pg-cloud-btn {
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 10px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)),
        rgba(255,255,255,.045);
      color: #fff;
      padding: 10px 12px;
      cursor: pointer;
      font-weight: 880;
      white-space: nowrap;
      transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
    }
    .pg-auth-tab.active,
    .pg-cloud-btn.primary {
      border-color: rgba(126, 238, 224, .38);
      color: #061013;
      background:
        linear-gradient(135deg, rgba(110,231,223,.98), rgba(245,193,108,.96));
      box-shadow:
        0 16px 34px rgba(85,205,196,.18),
        inset 0 1px 0 rgba(255,255,255,.42);
    }
    .pg-auth-tab:hover,
    .pg-auth-tab:focus-visible,
    .pg-cloud-btn:hover,
    .pg-cloud-btn:focus-visible {
      outline: none;
      border-color: rgba(255,255,255,.28);
      background: rgba(255,255,255,.11);
    }
    .pg-cloud-btn.primary:hover,
    .pg-cloud-btn.primary:focus-visible {
      transform: translateY(-1px);
      box-shadow:
        0 18px 42px rgba(85,205,196,.24),
        inset 0 1px 0 rgba(255,255,255,.46);
    }
    .pg-auth-form { display: grid; gap: 14px; }
    .pg-auth-form [hidden] { display: none !important; }
    .pg-auth-code-row {
      display: grid;
      grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
      gap: 10px;
      align-items: stretch;
    }
    .pg-auth-code-row .pg-cloud-btn {
      min-width: 126px;
      padding-inline: 14px;
      white-space: nowrap;
    }
    .pg-auth-link {
      justify-self: end;
      border: 0;
      padding: 0;
      color: rgba(126, 238, 224, .86);
      background: transparent;
      cursor: pointer;
      font: 700 13px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-auth-link:hover,
    .pg-auth-link:focus-visible {
      outline: none;
      color: #fff;
      text-decoration: underline;
    }
    .pg-auth-capability-hint {
      min-height: 18px;
      color: rgba(226,235,239,.62);
      font-size: 12px;
      line-height: 1.4;
    }
    .pg-auth-form input,
    .pg-cloud-select,
    .pg-profile-textarea {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 12px;
      background: rgba(4, 9, 17, .78);
      color: #fff;
      padding: 15px 16px;
      font: inherit;
      outline: none;
      font-size: 15px;
      font-weight: 650;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .pg-auth-form input::placeholder,
    .pg-profile-textarea::placeholder {
      color: rgba(228,235,239,.44);
    }
    .pg-auth-form input:focus,
    .pg-cloud-select:focus,
    .pg-profile-textarea:focus {
      border-color: rgba(126, 238, 224, .46);
      background: rgba(7, 13, 23, .9);
      box-shadow:
        0 0 0 3px rgba(85,205,196,.12),
        inset 0 1px 0 rgba(255,255,255,.06);
    }
    .pg-auth-form input:-webkit-autofill {
      -webkit-text-fill-color: #f7fbff;
      -webkit-box-shadow: 0 0 0 1000px rgba(7, 13, 23, .98) inset;
      box-shadow: 0 0 0 1000px rgba(7, 13, 23, .98) inset;
      caret-color: #f7fbff;
      border-color: rgba(126, 238, 224, .36);
      transition: background-color 9999s ease-out, color 9999s ease-out;
    }
    .pg-auth-form input:-webkit-autofill:hover,
    .pg-auth-form input:-webkit-autofill:focus,
    .pg-auth-form input:-webkit-autofill:active {
      -webkit-text-fill-color: #f7fbff;
      -webkit-box-shadow:
        0 0 0 1000px rgba(7, 13, 23, .98) inset,
        0 0 0 3px rgba(85,205,196,.12);
      box-shadow:
        0 0 0 1000px rgba(7, 13, 23, .98) inset,
        0 0 0 3px rgba(85,205,196,.12);
      caret-color: #f7fbff;
    }
    .pg-auth-form .pg-cloud-btn.primary {
      min-height: 50px;
      margin-top: 4px;
      font-size: 16px;
    }
    .pg-auth-error {
      min-height: 22px;
      color: #ffb0a8;
      font-size: 14px;
      line-height: 1.45;
    }
    .pg-home-auth-card {
      position: relative;
      min-height: 142px;
      display: grid;
      align-content: center;
      justify-items: start;
      gap: 10px;
      padding: 16px;
      border: 1px solid rgba(180, 245, 232, .18);
      border-radius: 18px;
      background:
        linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.022)),
        linear-gradient(150deg, rgba(20, 38, 42, .72), rgba(7, 12, 20, .9));
      color: rgba(226,235,239,.76);
      box-shadow:
        0 22px 70px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.08);
      overflow: hidden;
      isolation: isolate;
    }
    .pg-home-auth-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 1px;
      background: linear-gradient(90deg, rgba(126, 238, 224, .75), rgba(246, 202, 118, .55), transparent);
      pointer-events: none;
    }
    .pg-home-auth-card::after {
      content: "";
      position: absolute;
      inset: 10px;
      z-index: -1;
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 12px;
      pointer-events: none;
    }
    .pg-home-auth-card strong {
      display: block;
      color: #fff;
      font-size: 20px;
      font-weight: 940;
      line-height: 1.15;
    }
    .pg-home-auth-card p {
      margin: 0;
      max-width: 240px;
      color: rgba(226,235,239,.7);
      font-size: 13px;
      font-weight: 680;
      line-height: 1.45;
    }
    .pg-home-auth-card button {
      justify-self: start;
      border: 1px solid rgba(126, 238, 224, .42);
      border-radius: 10px;
      padding: 9px 13px;
      color: #071014;
      background: linear-gradient(135deg, #80f0d8, #f3c56d);
      box-shadow: 0 16px 34px rgba(85,205,196,.2);
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }
    .pg-home-auth-card button:hover,
    .pg-home-auth-card button:focus-visible {
      outline: none;
      transform: translateY(-1px);
      filter: brightness(1.04);
      box-shadow: 0 18px 42px rgba(85,205,196,.26);
    }
    .pg-cloud-bar {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: none;
      align-items: center;
      gap: 10px;
      min-height: var(--pg-density-topbar-h);
      padding: 8px var(--pg-density-gutter-tight);
      background: rgba(7, 13, 24, .92);
      border-bottom: 0;
      box-shadow: 0 1px 0 rgba(0,0,0,.34);
      backdrop-filter: blur(14px);
      color: #f7fbff;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-cloud-bar.show { display: flex; }
    .pg-title-icon {
      width: 36px;
      height: 36px;
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      color: #f7fbff;
      background: rgba(255,255,255,.08);
      cursor: pointer;
    }
    .pg-title-icon:hover,
    .pg-title-icon:focus-visible {
      border-color: rgba(85,205,196,.52);
      background: rgba(85,205,196,.14);
      outline: none;
    }
    .pg-title-icon svg { width: 18px; height: 18px; }
    .pg-home-icon {
      width: 36px;
      height: 36px;
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      color: #f7fbff;
      background: rgba(255,255,255,.08);
      cursor: pointer;
    }
    .pg-home-icon:hover,
    .pg-home-icon:focus-visible {
      border-color: rgba(85,205,196,.52);
      background: rgba(85,205,196,.14);
      outline: none;
    }
    .pg-home-icon svg { width: 18px; height: 18px; }
    .pg-title-icon.is-attention {
      position: relative;
      border-color: rgba(245, 193, 108, .5);
      background: rgba(245, 193, 108, .14);
      color: #fff5da;
    }
    .pg-title-icon.is-attention::after {
      content: "";
      position: absolute;
      top: 7px;
      right: 7px;
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #f5c16c;
      box-shadow: 0 0 0 4px rgba(245, 193, 108, .12);
    }
    .pg-cloud-btn.is-attention {
      position: relative;
    }
    .pg-cloud-btn.is-attention::after {
      content: "";
      position: absolute;
      top: 6px;
      right: 6px;
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #f5c16c;
      box-shadow: 0 0 0 3px rgba(245, 193, 108, .12);
    }
    .pg-cloud-spacer { flex: 1; }
    .pg-cloud-meta { color: rgba(247,251,255,.72); font-size: 13px; }
    .pg-cloud-btn { padding: 8px 10px; font-size: 13px; }
    .pg-cloud-btn:disabled,
    .pg-view-toggle-btn:disabled,
    .pg-home-new-project-btn:disabled {
      opacity: .52;
      cursor: not-allowed;
      filter: grayscale(.28);
    }
    .pg-view-toggle-btn:disabled:hover,
    .pg-view-toggle-btn:disabled:focus-visible,
    .pg-home-new-project-btn:disabled:hover,
    .pg-home-new-project-btn:disabled:focus-visible {
      color: rgba(247,251,255,.72);
      background: transparent;
      filter: grayscale(.28);
      outline: none;
    }
    .pg-cloud-select { display: none; }
    .pg-profile-textarea {
      display: block;
      min-height: 120px;
      resize: vertical;
      line-height: 1.6;
    }
    .pg-promotion-agreement {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 12px 0 18px;
      line-height: 1.6;
    }
    .pg-promotion-agreement input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      margin-top: 3px;
      accent-color: #79e4d0;
    }
    .pg-promotion-agreement a {
      color: #79e4d0;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .pg-profile-field-error {
      display: block;
      min-height: 20px;
      margin-top: 6px;
      color: #ff9c9c;
      font-size: 13px;
      line-height: 1.5;
    }
    .pg-view-toggle {
      display: none;
      align-items: center;
      gap: 4px;
      padding: 3px;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
    }
    .pg-view-toggle.show { display: inline-flex; }
    .pg-home-active .pg-view-toggle {
      display: none !important;
    }
    .pg-view-toggle-btn {
      min-height: 28px;
      border: 0;
      border-radius: 6px;
      padding: 6px 10px;
      color: rgba(247,251,255,.72);
      background: transparent;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .pg-view-toggle-btn:hover,
    .pg-view-toggle-btn:focus-visible {
      outline: none;
      color: #fff;
      background: rgba(255,255,255,.09);
    }
    .pg-view-toggle-btn.active {
      color: #071014;
      background: #80f0d8;
    }
    .pg-project-picker {
      position: relative;
      flex: 0 1 260px;
      min-width: 180px;
      max-width: 300px;
    }
    .pg-project-trigger {
      width: 100%;
      min-height: 36px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 16px;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      background: rgba(0,0,0,.28);
      color: #fff;
      padding: 8px 10px;
      font: inherit;
      font-size: 13px;
      text-align: left;
      cursor: pointer;
    }
    .pg-project-trigger:hover,
    .pg-project-trigger:focus-visible,
    .pg-project-picker.open .pg-project-trigger {
      border-color: rgba(85,205,196,.52);
      background: rgba(85,205,196,.12);
      outline: none;
    }
    .pg-project-trigger-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-project-trigger-caret {
      width: 16px;
      height: 16px;
      transition: transform .18s ease;
      opacity: .72;
    }
    .pg-project-picker.open .pg-project-trigger-caret { transform: rotate(180deg); }
    .pg-project-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      z-index: 1500;
      width: min(360px, calc(100vw - 24px));
      max-height: min(420px, calc(100vh - 88px));
      display: none;
      overflow: auto;
      padding: 6px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: rgba(12,18,30,.98);
      box-shadow: 0 18px 60px rgba(0,0,0,.42);
    }
    .pg-project-picker.open .pg-project-menu { display: grid; gap: 4px; }
    .pg-project-menu-create {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 34px;
      margin: 2px 0 0;
      padding: 8px 12px;
      border: 1px solid rgba(85,205,196,.38);
      border-radius: 8px;
      background: rgba(85,205,196,.12);
      color: #eaf9f7;
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }
    .pg-project-menu-create:hover,
    .pg-project-menu-create:focus-visible {
      outline: none;
      background: rgba(85,205,196,.22);
      border-color: rgba(85,205,196,.62);
      color: #fff;
    }    .pg-project-menu-empty {
      padding: 10px 12px;
      color: rgba(247,251,255,.58);
      font-size: 13px;
    }
    .pg-project-menu-item {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 32px 32px;
      align-items: center;
      gap: 6px;
      border-radius: 8px;
      color: rgba(247,251,255,.88);
    }
    .pg-project-menu-item.active {
      background: rgba(85,205,196,.12);
      color: #fff;
    }
    .pg-project-menu-open,
    .pg-project-menu-rename,
    .pg-project-menu-delete {
      min-height: 32px;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
    }
    .pg-project-menu-open {
      min-width: 0;
      padding: 8px 10px;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font: inherit;
      font-size: 13px;
    }
    .pg-project-menu-rename,
    .pg-project-menu-delete {
      width: 32px;
      display: inline-grid;
      place-items: center;
      border-radius: 8px;
      color: rgba(247,251,255,.66);
    }
    .pg-project-menu-open:hover,
    .pg-project-menu-open:focus-visible,
    .pg-project-menu-rename:hover,
    .pg-project-menu-rename:focus-visible,
    .pg-project-menu-delete:hover,
    .pg-project-menu-delete:focus-visible {
      outline: none;
      background: rgba(255,255,255,.09);
      color: #fff;
    }
    .pg-project-menu-delete:hover,
    .pg-project-menu-delete:focus-visible {
      background: rgba(235,76,76,.16);
      color: #ff8a8a;
    }
    .pg-project-menu-rename svg,
    .pg-project-menu-delete svg { width: 15px; height: 15px; }
    .pg-project-context-menu {
      position: fixed;
      z-index: 2147481500;
      min-width: 132px;
      display: grid;
      gap: 4px;
      padding: 6px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      background: rgba(12,18,30,.98);
      box-shadow: 0 18px 60px rgba(0,0,0,.44);
      color: #f7fbff;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-project-context-menu button {
      min-height: 32px;
      display: flex;
      align-items: center;
      gap: 8px;
      border: 0;
      border-radius: 6px;
      padding: 8px 10px;
      background: transparent;
      color: rgba(247,251,255,.86);
      font: inherit;
      font-size: 13px;
      text-align: left;
      cursor: pointer;
    }
    .pg-project-context-menu button:hover,
    .pg-project-context-menu button:focus-visible {
      outline: none;
      background: rgba(255,255,255,.09);
      color: #fff;
    }
    .pg-project-context-menu .danger:hover,
    .pg-project-context-menu .danger:focus-visible {
      background: rgba(255,80,80,.13);
      color: #ffb4b4;
    }
    .pg-account-menu {
      position: relative;
      display: inline-flex;
      align-items: center;
      max-width: min(260px, 32vw);
      min-height: 34px;
      overflow: visible;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      background: rgba(255,255,255,.07);
      color: rgba(247,251,255,.82);
      isolation: isolate;
    }
    .pg-account-menu.open {
      z-index: 2147481600;
      border-color: rgba(85,205,196,.35);
      background: rgba(255,255,255,.09);
    }
    .pg-account-name {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      max-width: 100%;
      border: 0;
      padding: 8px 12px;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      text-align: left;
      overflow: hidden;
      white-space: nowrap;
      font-size: 13px;
    }
    .pg-account-name:hover,
    .pg-account-name:focus-visible {
      outline: none;
      color: #fff;
      background: rgba(255,255,255,.05);
    }
    .pg-account-email {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-role-badge {
      flex: 0 0 auto;
      min-height: 20px;
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(85,205,196,.44);
      border-radius: 999px;
      padding: 2px 7px;
      background: rgba(85,205,196,.1);
      color: #8ff0e6;
      font-size: 11px;
      font-weight: 900;
      line-height: 1;
    }
    .pg-role-badge[data-role="admin"] {
      border-color: rgba(123,216,143,.48);
      background: rgba(123,216,143,.1);
      color: #9df2ad;
    }
    .pg-account-actions {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 2;
      display: grid;
      gap: 4px;
      min-width: 150px;
      padding: 6px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: rgba(12,18,30,.98);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-4px);
      transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease, box-shadow .24s ease;
      box-shadow: 0 12px 24px rgba(0,0,0,0);
    }
    .pg-account-action {
      min-height: 34px;
      min-width: 0;
      border: 0;
      border-radius: 6px;
      padding: 8px 10px;
      color: rgba(247,251,255,.86);
      background: transparent;
      font-weight: 900;
      font-size: 13px;
      text-align: left;
      white-space: nowrap;
      cursor: pointer;
    }
    .pg-account-action + .pg-account-action {
      border-left: 0;
    }
    .pg-account-action:hover,
    .pg-account-action:focus-visible {
      outline: none;
      background: rgba(85,205,196,.13);
      color: #fff;
    }
    .pg-account-action:disabled,
    .pg-account-action[aria-disabled="true"] {
      cursor: not-allowed;
      color: rgba(247,251,255,.42);
      background: transparent;
    }
    .pg-account-action:disabled:hover,
    .pg-account-action[aria-disabled="true"]:hover {
      color: rgba(247,251,255,.42);
      background: transparent;
    }
    .pg-account-logout:hover,
    .pg-account-logout:focus-visible {
      background: rgba(255,80,80,.13);
      color: #ffb4b4;
    }
    .pg-account-menu.open .pg-account-actions {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
      box-shadow: 0 12px 24px rgba(0,0,0,.22);
    }
    .pg-member-diamond {
      width: 36px;
      height: 34px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255, 215, 154, .64);
      border-radius: 8px;
      color: #3c2207;
      background:
        linear-gradient(180deg, rgba(255, 236, 190, .2), rgba(255, 170, 74, .08)),
        rgba(13, 10, 8, .82);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.32),
        0 9px 28px rgba(245, 178, 91, .24);
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
    }
    .pg-member-diamond-icon {
      width: 24px;
      height: 24px;
      display: block;
      filter: drop-shadow(0 3px 8px rgba(255, 190, 103, .32));
    }
    .pg-member-diamond-icon .gem-fill { fill: url(#pgMemberDiamondGold); }
    .pg-member-diamond-icon .gem-line {
      fill: none;
      stroke: #1b130d;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .pg-member-diamond:hover,
    .pg-member-diamond:focus-visible {
      outline: none;
      transform: translateY(-1px);
      border-color: rgba(255, 227, 179, .9);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.36),
        0 12px 34px rgba(245, 178, 91, .34);
      filter: saturate(1.08);
    }
    .pg-profile-backdrop {
      position: relative;
      display: none;
      min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      overflow: visible;
      padding: 28px 0 36px;
      background:
        radial-gradient(circle at 18% 12%, rgba(85,205,196,.16), transparent 30%),
        linear-gradient(135deg, rgba(5,10,16,.98), rgba(13,19,27,.98) 48%, rgba(18,19,25,.98));
    }
    .pg-profile-backdrop.show { display: block; }
    .pg-profile-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147481750;
      display: grid;
      place-items: center;
      overflow: auto;
      padding: 24px 18px;
      background:
        radial-gradient(circle at 18% 12%, rgba(85,205,196,.18), transparent 30%),
        rgba(2, 7, 12, .82);
      backdrop-filter: blur(10px);
    }
    .pg-profile-modal-backdrop .pg-profile-dialog {
      width: min(900px, calc(100vw - 36px));
      max-height: calc(100vh - 48px);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
    }
    .pg-profile-modal-backdrop .pg-profile-body {
      overflow: auto;
    }
    .pg-profile-modal-backdrop[data-promotion-application-backdrop] .pg-profile-dialog {
      width: min(680px, calc(100vw - 36px));
    }
    .pg-profile-dialog {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      width: min(1180px, calc(100% - 36px));
      margin: 0 auto;
      border: 1px solid var(--pg-modal-border);
      border-radius: 18px;
      background:
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      box-shadow: var(--pg-modal-shadow);
      color: #f7fbff;
    }
    .pg-profile-head,
    .pg-member-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      padding: 18px;
      border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .pg-profile-head h2,
    .pg-member-head h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: 0; }
    .pg-profile-head p,
    .pg-member-head p { margin: 0; color: rgba(247,251,255,.66); }
    .pg-profile-close {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
      color: #f7fbff;
      cursor: pointer;
      font-size: 18px;
      font-weight: 900;
    }
    .pg-profile-body {
      display: grid;
      gap: 14px;
      padding: 18px;
    }
    .pg-profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }
    .pg-profile-card {
      min-width: 0;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 14px;
      background: rgba(255,255,255,.04);
    }
    .pg-profile-card strong { display: block; margin-bottom: 6px; }
    .pg-profile-card span,
    .pg-profile-card p { color: rgba(247,251,255,.68); }
    .pg-storage-meter {
      height: 12px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255,255,255,.1);
    }
    .pg-storage-meter-fill {
      height: 100%;
      min-width: 2px;
      border-radius: inherit;
      background: linear-gradient(90deg, #55cdc4, #f5c26b);
    }
    .pg-profile-list {
      display: grid;
      gap: 8px;
      max-height: 260px;
      overflow: auto;
    }
    .pg-profile-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 10px 12px;
      background: rgba(0,0,0,.14);
      font-size: 13px;
    }
    .pg-profile-row span { color: rgba(247,251,255,.64); }
    .pg-profile-task-row > div:first-child {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .pg-profile-task-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      text-align: right;
    }
    .pg-profile-task-actions .pg-cloud-btn {
      min-height: 32px;
      padding: 6px 10px;
      white-space: nowrap;
    }
    @media (max-width: 760px) {
      .pg-profile-task-row,
      .pg-profile-task-actions {
        align-items: stretch;
        flex-direction: column;
        text-align: left;
      }
    }
    .pg-profile-invite-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 0 10px;
    }
    .pg-profile-invite-summary span {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 999px;
      padding: 3px 9px;
      background: rgba(85,205,196,.08);
      color: #a7f7ef;
      font-size: 12px;
      font-weight: 900;
    }
    .pg-profile-invite-list {
      display: grid;
      gap: 10px;
      max-height: 420px;
      overflow: auto;
    }
    .pg-profile-invite-item {
      display: grid;
      gap: 10px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 12px;
      background:
        linear-gradient(135deg, rgba(85,205,196,.07), rgba(255,255,255,.025)),
        rgba(0,0,0,.14);
    }
    .pg-profile-invite-item.is-enterprise-svip {
      border-color: rgba(245,194,107,.34);
      background:
        linear-gradient(135deg, rgba(245,194,107,.12), rgba(85,205,196,.07)),
        rgba(0,0,0,.16);
    }
    .pg-profile-invite-main {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .pg-profile-invite-code {
      min-width: 0;
      font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      color: #fff;
      font-size: 14px;
      font-weight: 950;
      overflow-wrap: anywhere;
    }
    .pg-profile-status {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      min-height: 22px;
      border: 1px solid rgba(85,205,196,.3);
      border-radius: 999px;
      padding: 3px 8px;
      color: #8ff0e6;
      background: rgba(85,205,196,.09);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-profile-status.used { border-color: rgba(245,194,107,.34); color: #ffd88d; background: rgba(245,194,107,.09); }
    .pg-profile-status.disabled,
    .pg-profile-status.expired { border-color: rgba(255,130,130,.34); color: #ffb4b4; background: rgba(255,80,80,.08); }
    .pg-profile-invite-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 7px;
    }
    .pg-profile-invite-meta span {
      min-width: 0;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 7px;
      padding: 7px 8px;
      background: rgba(255,255,255,.035);
      color: rgba(247,251,255,.68);
      font-size: 12px;
      line-height: 1.45;
    }
    .pg-profile-invite-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .pg-profile-invite-actions .pg-cloud-btn {
      min-height: 30px;
      padding: 6px 10px;
      font-size: 12px;
    }
    .pg-profile-card-wide {
      grid-column: 1 / -1;
    }
    .pg-profile-card-headline {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .pg-profile-card-headline strong {
      margin: 0;
    }
    .pg-profile-card-headline span {
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-referral-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }
    .pg-referral-summary span,
    .pg-referral-level,
    .pg-earnings-status {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 999px;
      padding: 3px 8px;
      color: #8ff0e6;
      background: rgba(85,205,196,.09);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-referral-tree {
      display: grid;
      gap: 12px;
    }
    .pg-referral-branches {
      display: grid;
      gap: 10px;
      padding-left: 18px;
      border-left: 1px solid rgba(85,205,196,.22);
    }
    .pg-referral-branch,
    .pg-referral-children {
      display: grid;
      gap: 8px;
    }
    .pg-referral-branch-row {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      margin-left: calc(var(--pg-referral-depth, 0) * 18px);
    }
    .pg-referral-toggle {
      width: 28px;
      height: 28px;
      border: 1px solid rgba(85,205,196,.34);
      border-radius: 7px;
      color: #8ff0e6;
      background: rgba(85,205,196,.1);
      cursor: pointer;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
    }
    .pg-referral-toggle:disabled {
      border-color: rgba(255,255,255,.08);
      color: rgba(247,251,255,.28);
      background: rgba(255,255,255,.03);
      cursor: default;
    }
    .pg-referral-children {
      margin-left: 38px;
      padding-left: 14px;
      border-left: 1px dashed rgba(245,194,107,.24);
    }
    .pg-referral-node {
      min-width: 0;
      display: grid;
      gap: 10px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 12px;
      background:
        linear-gradient(135deg, rgba(85,205,196,.08), rgba(255,255,255,.025)),
        rgba(0,0,0,.12);
    }
    .pg-referral-node.is-self {
      border-color: rgba(245,194,107,.35);
      background:
        linear-gradient(135deg, rgba(245,194,107,.12), rgba(85,205,196,.05)),
        rgba(0,0,0,.16);
    }
    .pg-referral-node-main {
      min-width: 0;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr);
      align-items: center;
      gap: 8px;
    }
    .pg-referral-node-main strong,
    .pg-earnings-main strong {
      min-width: 0;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-referral-node-main span:last-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: rgba(247,251,255,.6);
      font-size: 12px;
    }
    .pg-referral-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 7px;
    }
    .pg-referral-meta span {
      min-width: 0;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 7px;
      padding: 7px 8px;
      background: rgba(255,255,255,.035);
      color: rgba(247,251,255,.68);
      font-size: 12px;
      line-height: 1.45;
    }
    .pg-referral-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 2px;
    }
    .pg-referral-actions .pg-cloud-btn {
      min-height: 30px;
      padding: 6px 10px;
      font-size: 12px;
    }
    .pg-referral-actions .pg-cloud-btn.is-pending {
      border-color: rgba(245,194,107,.55);
      background: rgba(245,194,107,.14);
      color: #ffd88d;
    }
    .pg-referral-actions .pg-cloud-btn.is-approved {
      border-color: rgba(111,230,164,.55);
      background: rgba(111,230,164,.14);
      color: #9df1bc;
    }
    .pg-referral-empty,
    .pg-earnings-empty {
      border: 1px dashed rgba(255,255,255,.14);
      border-radius: 8px;
      padding: 14px;
      color: rgba(247,251,255,.54);
      background: rgba(0,0,0,.1);
      font-size: 13px;
    }
    .pg-earnings-ledger {
      display: grid;
      gap: 8px;
      max-height: 360px;
      overflow: auto;
    }
    .pg-earnings-row {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
      gap: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 11px 12px;
      background: rgba(0,0,0,.14);
    }
    .pg-earnings-main {
      min-width: 0;
      display: grid;
      gap: 5px;
      align-content: start;
    }
    .pg-earnings-main span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: rgba(247,251,255,.58);
      font-size: 12px;
    }
    .pg-earnings-metrics {
      display: grid;
      grid-template-columns: repeat(5, minmax(72px, 1fr));
      gap: 7px;
    }
    .pg-earnings-metric {
      display: grid;
      gap: 3px;
      min-width: 0;
      border-radius: 7px;
      padding: 7px 8px;
      background: rgba(255,255,255,.035);
      color: rgba(247,251,255,.76);
      font-size: 12px;
      line-height: 1.35;
    }
    .pg-earnings-metric b {
      color: rgba(247,251,255,.44);
      font-size: 11px;
      font-weight: 900;
    }
    .pg-earnings-status {
      width: max-content;
      border-color: rgba(245,194,107,.3);
      color: #ffd88d;
      background: rgba(245,194,107,.09);
    }
    .pg-profile-actions,
    .pg-member-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .pg-role-badge[data-role="vip"],
    .pg-role-badge[data-role="svip"],
    .pg-role-badge[data-role="enterprise_vip"],
    .pg-role-badge[data-role="free_trial"] {
      border-color: rgba(245,194,107,.5);
      background: rgba(245,194,107,.12);
      color: #f5c26b;
    }
    .pg-role-badge[data-role="lifetime_svip"] {
      border-color: rgba(255, 99, 99, .62);
      background: rgba(255, 74, 74, .14);
      color: #ff9b9b;
    }
    .pg-wallet-balance {
      display: inline-grid;
      place-items: center;
      min-height: 30px;
      padding: 6px 10px;
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 8px;
      color: rgba(247,251,255,.86);
      background: rgba(85,205,196,.08);
      font-size: 13px;
      white-space: nowrap;
      cursor: pointer;
    }
    .pg-wallet-balance-text {
      grid-area: 1 / 1;
      transition: opacity .16s ease;
    }
    .pg-wallet-balance-hover {
      opacity: 0;
    }
    .pg-wallet-balance:hover .pg-wallet-balance-current,
    .pg-wallet-balance:focus-visible .pg-wallet-balance-current {
      opacity: 0;
    }
    .pg-wallet-balance:hover .pg-wallet-balance-hover,
    .pg-wallet-balance:focus-visible .pg-wallet-balance-hover {
      opacity: 1;
    }
    .pg-home-active body > .container,
    .pg-home-active .workflow-steps,
    .pg-home-active .pg-canvas-shell {
      display: none !important;
    }
    .pg-profile-active body > .container,
    .pg-profile-active .workflow-steps,
    .pg-profile-active .pg-canvas-shell,
    .pg-member-active body > .container,
    .pg-member-active .workflow-steps,
    .pg-member-active .pg-canvas-shell {
      display: none !important;
    }
    .pg-workflow-preparing body > .container,
    .pg-workflow-preparing .workflow-steps,
    .pg-workflow-loading body > .container,
    .pg-workflow-loading .workflow-steps {
      visibility: hidden;
    }
    .pg-workflow-loading-overlay {
      position: fixed;
      inset: 0;
      z-index: 2147481800;
      display: none;
      place-items: center;
      padding: 24px;
      background:
        radial-gradient(circle at 18% 18%, rgba(85,205,196,.12), transparent 34%),
        rgba(4, 8, 14, .72);
      backdrop-filter: blur(12px);
    }
    .pg-workflow-loading-overlay.show {
      display: grid;
    }
    .pg-workflow-loading-panel {
      min-width: min(320px, calc(100vw - 48px));
      display: inline-grid;
      justify-items: center;
      gap: 14px;
      padding: 26px 28px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background:
        linear-gradient(145deg, rgba(18,27,37,.95), rgba(8,13,22,.98)),
        rgba(15,20,34,.94);
      color: #f7fbff;
      box-shadow: 0 24px 80px rgba(0,0,0,.42);
      font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

/* The parent remains usable even if the Canvas entry module cannot download. */
.pg-canvas-shell{position:relative}
.pg-canvas-entry-error{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:#080d13;color:#eefaf8}
.pg-canvas-entry-error strong{font-size:20px;font-weight:600}
.pg-canvas-entry-error p{color:#a5bab7;font-size:14px;line-height:1.8}
.pg-canvas-entry-error button{margin-top:14px;border:1px solid #80d8cc;border-radius:10px;padding:10px 24px;background:#94e6d6;color:#092522;cursor:pointer}
.pg-canvas-entry-error button:focus-visible{outline:2px solid #ddfff8;outline-offset:4px}

/* frontend-src/styles/app-shell/01-styles.css */

    .pg-seo-entry {
      min-height: 100vh;
      box-sizing: border-box;
      display: grid;
      place-items: center;
      padding: 72px 24px;
      color: rgba(247,251,255,.94);
      background:
        radial-gradient(circle at 18% 18%, rgba(65, 191, 176, .18), transparent 34%),
        radial-gradient(circle at 82% 24%, rgba(83, 114, 229, .16), transparent 36%),
        #050a0d;
      font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    .pg-seo-entry-inner {
      width: min(920px, 100%);
    }
    .pg-seo-entry-kicker {
      margin: 0 0 18px;
      color: #80f0d8;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .18em;
    }
    .pg-seo-entry h1 {
      max-width: 820px;
      margin: 0;
      color: #fff;
      font-size: clamp(38px, 6vw, 72px);
      line-height: 1.08;
      letter-spacing: -.04em;
    }
    .pg-seo-entry-summary {
      max-width: 760px;
      margin: 24px 0 0;
      color: rgba(247,251,255,.72);
      font-size: clamp(16px, 2vw, 20px);
      line-height: 1.8;
    }
    .pg-seo-entry-features {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 30px 0 0;
      padding: 0;
      list-style: none;
    }
    .pg-seo-entry-features li {
      padding: 10px 14px;
      border: 1px solid rgba(128,240,216,.18);
      border-radius: 999px;
      color: rgba(247,251,255,.78);
      background: rgba(255,255,255,.045);
      font-size: 14px;
    }

    .pg-workflow-loading-spinner {
      width: 34px;
      height: 34px;
      border: 3px solid rgba(255,255,255,.12);
      border-top-color: #80f0d8;
      border-radius: 50%;
      box-sizing: border-box;
      animation: pgWorkflowLoadingSpin .82s linear infinite;
    }
    .pg-workflow-loading-text {
      color: rgba(247,251,255,.84);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0;
    }
    @keyframes pgWorkflowLoadingSpin {
      to { transform: rotate(360deg); }
    }
    .pg-canvas-active body > .container,
    .pg-canvas-active .workflow-steps {
      display: none !important;
    }
    .pg-canvas-active,
    .pg-canvas-active body {
      height: 100%;
      overflow: hidden !important;
      overscroll-behavior: none;
    }
    .pg-canvas-shell {
      display: none;
      width: 100%;
      height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      min-height: 0;
      max-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      overflow: hidden;
      background: #05070c;
    }
    .pg-canvas-shell.show {
      display: block;
    }
    .pg-canvas-frame {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
      background: #05070c;
    }
    .pg-settings-overlay {
      position: fixed;
      inset: 0;
      z-index: 2147481500;
      display: none;
      place-items: center;
      padding: 20px;
      background:
        linear-gradient(120deg, rgba(33, 83, 89, .2) 0%, transparent 38%),
        rgba(4,8,14,.78);
      backdrop-filter: blur(22px) saturate(1.12);
    }
    .pg-settings-overlay.show { display: grid; }
    .pg-settings-dialog {
      position: relative;
      isolation: isolate;
      width: min(560px, 100%);
      max-height: min(760px, calc(100vh - 40px));
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--pg-modal-border);
      border-radius: 18px;
      background:
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      color: #f7fbff;
      box-shadow: var(--pg-modal-shadow);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-settings-dialog::before,
    .pg-dialog::before,
    .pg-update-dialog::before,
    .pg-profile-dialog::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0 0 auto;
      height: 1px;
      background: var(--pg-modal-topline);
      pointer-events: none;
    }
    .pg-settings-dialog::after,
    .pg-dialog::after,
    .pg-update-dialog::after,
    .pg-profile-dialog::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background: var(--pg-modal-grid);
      background-size: 44px 44px;
      opacity: .22;
      mask-image: linear-gradient(180deg, rgba(0,0,0,.86), transparent 74%);
    }
    .pg-settings-dialog > *,
    .pg-dialog > *,
    .pg-update-dialog > *,
    .pg-profile-dialog > * {
      position: relative;
      z-index: 1;
    }
    .pg-settings-header,
    .pg-settings-footer {
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 22px;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .pg-settings-footer {
      justify-content: flex-end;
      border-top: 1px solid rgba(255,255,255,.08);
      border-bottom: 0;
      background: rgba(5,8,14,.28);
    }
    .pg-settings-clear-key { margin-right: auto; }
    .pg-settings-title {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .pg-settings-title > span:not(.pg-settings-title-mark):not(.pg-settings-title-copy) {
      color: #fff;
      font-size: 17px;
      font-weight: 850;
      line-height: 1.2;
    }
    .pg-settings-title-mark {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 8px;
      background: rgba(85,205,196,.1);
      color: #99f6ea;
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }
    .pg-settings-title-copy {
      display: grid;
      gap: 2px;
      min-width: 0;
    }
    .pg-settings-title-copy strong {
      color: #fff;
      font-size: 17px;
      font-weight: 850;
      line-height: 1.2;
    }
    .pg-settings-title-copy span {
      color: rgba(247,251,255,.54);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.2;
    }
    .pg-settings-close {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 10px;
      color: rgba(247,251,255,.8);
      background: rgba(255,255,255,.08);
      cursor: pointer;
      font-weight: 850;
      line-height: 1;
    }
    .pg-settings-close:hover,
    .pg-settings-close:focus-visible {
      outline: none;
      color: #fff;
      border-color: rgba(255,255,255,.24);
      background: rgba(255,255,255,.12);
    }
    .pg-settings-body {
      flex: 1 1 auto;
      min-height: 0;
      display: grid;
      gap: 12px;
      padding: 18px 22px;
      overflow: auto;
    }
    .pg-settings-status {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 12px;
      background: rgba(255,255,255,.045);
      color: rgba(247,251,255,.76);
      font-size: 13px;
      line-height: 1.4;
    }
    .pg-settings-status #apiStatusIcon {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 54px;
      height: 24px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 0 9px;
      background: rgba(255,255,255,.06);
      color: rgba(247,251,255,.68);
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }
    .pg-settings-status.success {
      border-color: rgba(85,205,196,.3);
      background: linear-gradient(135deg, rgba(85,205,196,.11), rgba(255,255,255,.04));
    }
    .pg-settings-status.success #apiStatusIcon {
      border-color: rgba(85,205,196,.32);
      background: rgba(85,205,196,.14);
      color: #9af4eb;
    }
    .pg-settings-status.warning {
      border-color: rgba(245,167,88,.34);
      background: linear-gradient(135deg, rgba(245,167,88,.1), rgba(255,255,255,.04));
    }
    .pg-settings-status.warning #apiStatusIcon {
      border-color: rgba(245,167,88,.34);
      background: rgba(245,167,88,.13);
      color: #ffd29a;
    }
    .pg-settings-field {
      display: grid;
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
      background: rgba(255,255,255,.052);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    }
    .pg-settings-field label {
      display: grid;
      gap: 6px;
      color: #fff;
      font-weight: 780;
      line-height: 1.25;
    }
    .pg-settings-field small {
      color: rgba(247,251,255,.54);
      font-weight: 500;
      line-height: 1.45;
    }
    .pg-settings-field input {
      width: 100%;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      background: rgba(5,8,14,.58);
      color: #fff;
      padding: 13px 14px;
      outline: none;
    }
    .pg-settings-field input:focus {
      border-color: rgba(85,205,196,.48);
      box-shadow: 0 0 0 3px rgba(85,205,196,.1);
    }
    .pg-settings-key-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .pg-settings-key-row input { min-width: 0; }
    .pg-key-help-btn { white-space: nowrap; }
    .pg-provider-auth-list {
      display: grid;
      gap: 10px;
    }
    .pg-provider-auth-row {
      display: grid;
      gap: 10px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
      background: rgba(5,8,14,.28);
    }
    .pg-provider-auth-row > span {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
    }
    .pg-provider-auth-row strong {
      color: #fff;
      font-weight: 800;
    }
    .pg-provider-auth-row [data-provider-auth-status] {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 999px;
      padding: 2px 8px;
      background: rgba(255,255,255,.045);
      color: rgba(247,251,255,.62);
      font-size: 12px;
      line-height: 1.2;
      white-space: nowrap;
    }
    .pg-provider-auth-row.is-authorized {
      border-color: rgba(85,205,196,.3);
      background: rgba(85,205,196,.075);
    }
    .pg-provider-auth-row.is-authorized [data-provider-auth-status] {
      border-color: rgba(85,205,196,.3);
      background: rgba(85,205,196,.12);
      color: #a7f4eb;
    }
    .pg-provider-auth-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 110px) auto auto auto;
      gap: 8px;
      align-items: center;
    }
    .pg-provider-auth-actions input {
      min-width: 0;
      padding: 9px 10px;
    }
    [data-provider-auth="jimeng"] .pg-provider-auth-actions {
      grid-template-columns: auto auto auto;
      justify-content: start;
    }
    .pg-settings-dialog .pg-cloud-btn {
      min-height: 36px;
      border-color: rgba(255,255,255,.13);
      background: rgba(255,255,255,.07);
      color: rgba(247,251,255,.86);
      font-size: 13px;
      font-weight: 780;
    }
    .pg-settings-dialog .pg-cloud-btn:hover,
    .pg-settings-dialog .pg-cloud-btn:focus-visible {
      outline: none;
      border-color: rgba(255,255,255,.24);
      background: rgba(255,255,255,.11);
      color: #fff;
    }
    .pg-settings-dialog .pg-cloud-btn.primary {
      border-color: rgba(85,205,196,.38);
      background: var(--pg-modal-primary);
      color: #061013;
      box-shadow:
        0 16px 34px rgba(85,205,196,.18),
        inset 0 1px 0 rgba(255,255,255,.42);
    }
    .pg-settings-dialog .pg-cloud-btn.danger {
      border-color: rgba(255,106,106,.38);
      background: rgba(255,106,106,.12);
      color: #ffb9b9;
      box-shadow: none;
    }
    .pg-settings-dialog .pg-cloud-btn.danger:hover,
    .pg-settings-dialog .pg-cloud-btn.danger:focus-visible {
      border-color: rgba(255,130,130,.48);
      background: rgba(255,106,106,.18);
      color: #fff;
      filter: none;
    }
    .pg-password-form .pg-settings-field {
      display: grid;
      gap: 12px;
    }
    .pg-password-error {
      min-height: 20px;
      color: #ff9c9c;
      font-size: 13px;
      line-height: 1.5;
    }
    .pg-admin-settings {
      display: none;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 8px;
      background: rgba(255,255,255,.04);
    }
    .pg-admin-settings.show {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .pg-admin-settings strong {
      display: block;
      margin-bottom: 4px;
      color: #fff;
      font-weight: 800;
    }
    .pg-admin-settings span {
      color: rgba(247,251,255,.68);
      font-size: 13px;
      line-height: 1.5;
    }
    .pg-home-page {
      position: relative;
      display: none;
      --pg-home-pad-left: var(--pg-density-gutter);
      --pg-home-pad-right: var(--pg-density-gutter);
      min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      overflow-x: hidden;
      padding: clamp(10px, 1.2vw, 18px) var(--pg-home-pad-right) var(--pg-density-page-bottom) var(--pg-home-pad-left);
      background:
        linear-gradient(115deg, rgba(14, 51, 56, .78) 0%, rgba(10, 15, 24, .2) 34%, transparent 60%),
        linear-gradient(160deg, #06090f 0%, #101620 50%, #17151e 100%);
      color: #f7fbff;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    html.pg-home-active {
      scrollbar-width: thin;
      scrollbar-color: rgba(110,231,223,.62) rgba(3,8,14,.42);
    }
    html.pg-home-active::-webkit-scrollbar,
    html.pg-home-active body::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    html.pg-home-active::-webkit-scrollbar-track,
    html.pg-home-active body::-webkit-scrollbar-track {
      background: rgba(3,8,14,.42);
      border-radius: 999px;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    }
    html.pg-home-active::-webkit-scrollbar-thumb,
    html.pg-home-active body::-webkit-scrollbar-thumb {
      min-height: 44px;
      border: 2px solid rgba(3,8,14,.42);
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(110,231,223,.9), rgba(245,193,108,.78));
      box-shadow: 0 0 10px rgba(85,205,196,.22);
    }
    html.pg-home-active::-webkit-scrollbar-thumb:hover,
    html.pg-home-active body::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(129,248,240,.98), rgba(255,210,130,.9));
      box-shadow: 0 0 14px rgba(85,205,196,.32);
    }
    html.pg-home-active::-webkit-scrollbar-corner,
    html.pg-home-active body::-webkit-scrollbar-corner {
      background: transparent;
    }
    .pg-home-page,
    .pg-home-page * {
      box-sizing: border-box;
    }
    .pg-home-page::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,.22) 100%);
      background-size: 84px 84px, 84px 84px, 100% 100%;
      mask-image: linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.18));
      opacity: .34;
    }
    .pg-home-page.show { display: block; }
    .pg-home-inner {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: min(var(--pg-density-readable-max), calc(100vw - var(--pg-home-pad-left) - var(--pg-home-pad-right)));
      margin: 0 auto;
    }
    .pg-site-footer {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 8px 14px;
      margin: 34px auto 0;
      padding: 22px 16px 26px;
      color: rgba(247,251,255,.5);
      font-size: 12px;
      line-height: 1.6;
      text-align: center;
    }
    .pg-site-footer a {
      color: rgba(247,251,255,.62);
      text-decoration: none;
    }
    .pg-site-footer .beian-record-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .pg-site-footer .beian-record-link img {
      width: 18px;
      height: 20px;
      flex: 0 0 auto;
    }
    .pg-site-footer a:hover,
    .pg-site-footer a:focus-visible {
      color: #8ff0e6;
      outline: none;
    }
    .pg-home-hero {
      display: grid;
      grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
      align-items: center;
      gap: 24px;
      padding: 0;
      min-height: 0;
    }
    .pg-home-copy {
      position: relative;
      min-width: 0;
      display: grid;
      grid-template-rows: auto auto;
      justify-items: start;
      align-content: start;
      width: 100%;
      min-height: 0;
      height: auto;
      box-sizing: border-box;
      padding: 10px 22px 8px;
      border-radius: 0;
      overflow: visible;
      background: transparent;
      box-shadow: none;
    }
    .pg-home-copy::before {
      display: none;
    }
    .pg-home-brandline {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      position: relative;
      z-index: 1;
      margin: 0;
      padding: 4px 9px 4px 4px;
      border: 0;
      border-radius: 999px;
      color: rgba(247,251,255,.78);
      background: rgba(255,255,255,.035);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .pg-home-brandmark {
      width: 26px;
      height: 26px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(85,205,196,.34);
      border-radius: 9px;
      color: #071014;
      background: linear-gradient(135deg, #55cdc4 0%, #f5a758 100%);
      box-shadow: 0 14px 34px rgba(85,205,196,.18);
      font-weight: 950;
      letter-spacing: 0;
    }
    .pg-home-kicker {
      display: none;
      margin: 0 0 7px;
      color: rgba(85,205,196,.9);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .18em;
      text-transform: uppercase;
    }
    .pg-home-title-stack {
      position: relative;
      z-index: 1;
      align-self: start;
      padding: 8px 0 0;
    }
    .pg-home-title {
      margin: 0;
      max-width: 620px;
      font-size: 42px;
      line-height: 1;
      letter-spacing: 0;
    }
    .pg-home-subtitle {
      position: relative;
      z-index: 1;
      margin: 5px 0 0;
      max-width: 620px;
      color: rgba(247,251,255,.68);
      font-size: 14px;
      line-height: 1.5;
    }
    .pg-home-membership-promo {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin: 10px 0 2px;
      padding: 10px 16px;
      border: 1px solid rgba(229, 200, 111, .42);
      border-radius: 12px;
      background: linear-gradient(105deg, rgba(93, 79, 38, .42), rgba(19, 46, 43, .34));
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 42px rgba(0, 0, 0, .16);
    }
    .pg-home-membership-promo-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .pg-home-membership-promo-kicker {
      color: #e9cc82;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .pg-home-membership-promo-copy strong {
      color: rgba(255, 249, 224, .96);
      font-size: 15px;
      line-height: 1.35;
    }
    .pg-home-membership-promo-copy > span:last-child {
      color: rgba(247, 251, 255, .68);
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-home-membership-promo-action {
      flex: 0 0 auto;
      min-height: 36px;
      border: 1px solid rgba(245, 217, 147, .64);
      border-radius: 7px;
      padding: 0 14px;
      color: #1b1b14;
      background: linear-gradient(135deg, #f6da94, #d5ae5a);
      font: inherit;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }
    .pg-home-membership-promo-action:hover,
    .pg-home-membership-promo-action:focus-visible {
      outline: none;
      border-color: #fff1b8;
      background: linear-gradient(135deg, #ffe9ae, #e5c16e);
    }
    .pg-home-immersive-hint {
      display: inline-flex;
      align-items: center;
      margin: 0 0 0 2px;
      padding: 2px 9px;
      border: 1px solid rgba(255,255,255,.10);
      border-radius: 999px;
      background: rgba(255,255,255,.05);
      color: rgba(247,251,255,.62);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: none;
      white-space: nowrap;
    }
    .pg-home-immersive-hint::before { content: none; }
    .pg-home-immersive-keys {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 7px;
      min-width: 78px;
    }
    .pg-home-immersive-key {
      position: relative;
      min-width: 72px;
      height: 32px;
      padding: 0 9px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 7px;
      color: #071014;
      background: linear-gradient(135deg, #81e6d9, #f5c16c);
      font-size: 13px;
      font-weight: 950;
      letter-spacing: 0;
      box-shadow: 0 12px 28px rgba(85,205,196,.18);
      white-space: nowrap;
    }
    .pg-home-immersive-key.mac {
      background: linear-gradient(135deg, rgba(247,251,255,.96), rgba(194,203,218,.92));
      color: #111827;
      font-size: 14px;
    }
    .pg-home-immersive-copy {
      position: relative;
      z-index: 1;
      min-width: 0;
      display: grid;
      gap: 3px;
    }
    .pg-home-immersive-copy strong {
      color: rgba(247,251,255,.9);
      font-size: 14px;
      line-height: 1.2;
      font-weight: 900;
    }
    .pg-home-immersive-copy span {
      color: rgba(247,251,255,.58);
      font-size: 11px;
      line-height: 1.35;
      font-weight: 700;
    }
    .pg-home-capabilities {
      display: none;
      flex-wrap: wrap;
      gap: 5px;
      position: relative;
      z-index: 1;
      margin-top: 18px;
      padding: 4px;
      border: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.035);
    }
    .pg-home-capability {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 5px 10px;
      border: 0;
      border-radius: 999px;
      color: rgba(247,251,255,.78);
      background: rgba(255,255,255,.045);
      font-size: 11px;
      font-weight: 800;
    }
    .pg-home-flow-panel {
      position: relative;
      min-width: 0;
      overflow: hidden;
      align-self: stretch;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) 42px;
      gap: 10px;
      min-height: 218px;
      width: min(50vw, 100%);
      justify-self: end;
      box-sizing: border-box;
      padding: 13px;
      border: 0;
      border-radius: 0;
      background:
        radial-gradient(circle at 18% 12%, rgba(85,205,196,.12), transparent 34%),
        linear-gradient(90deg, transparent 0%, rgba(9,18,30,.16) 48%, transparent 100%);
      box-shadow: none;
      backdrop-filter: none;
    }
    .pg-home-flow-panel::after {
      content: none;
    }
    .pg-home-flow-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin: 0;
    }
    .pg-home-panel-kicker {
      display: block;
      margin-bottom: 3px;
      color: rgba(85,205,196,.82);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .pg-home-flow-head strong {
      display: block;
      color: #fff;
      font-size: 18px;
      line-height: 1.18;
    }
    .pg-home-stat {
      min-width: 62px;
      padding: 7px 8px;
      border: 1px solid rgba(85,205,196,.24);
      border-radius: 14px;
      background: rgba(85,205,196,.09);
      text-align: center;
    }
    .pg-home-stat strong { display: block; font-size: 22px; line-height: 1; margin-bottom: 3px; }
    .pg-home-stat span { color: rgba(247,251,255,.64); font-size: 10px; font-weight: 800; }
    .pg-home-flow-list {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-items: stretch;
      gap: 0;
      margin: 0;
      padding: 8px 7px;
      list-style: none;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 17px;
      background: rgba(2,6,12,.22);
    }
    .pg-home-flow-step {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;
      gap: 5px;
      align-items: start;
      align-content: center;
      padding: 0 7px;
      border: 0;
      border-radius: 0;
      background: transparent;
    }
    .pg-home-flow-step + .pg-home-flow-step {
      border-left: 1px solid rgba(255,255,255,.08);
    }
    .pg-home-flow-index {
      width: 24px;
      height: 22px;
      display: inline-grid;
      place-items: center;
      border-radius: 10px;
      color: #dffdfa;
      background: rgba(85,205,196,.13);
      font-size: 10px;
      font-weight: 950;
    }
    .pg-home-flow-title {
      display: block;
      color: rgba(247,251,255,.92);
      font-weight: 900;
      line-height: 1.2;
      font-size: 12px;
    }
    .pg-home-flow-text {
      display: none;
      margin-top: 2px;
      color: rgba(247,251,255,.58);
      font-size: 10px;
      line-height: 1.35;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .pg-home-preview-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin: 0;
    }
    .pg-home-preview-strip img {
      width: 100%;
      height: 42px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 13px;
      background: rgba(255,255,255,.04);
    }
    .pg-home-composer {
      position: relative;
      isolation: isolate;
      display: grid;
      gap: 12px;
      width: min(820px, calc(100vw - var(--pg-home-pad-left) - var(--pg-home-pad-right)));
      margin: 28px auto 0;
      padding: 12px;
      border: 1px solid var(--pg-modal-border);
      border-radius: 26px;
      background:
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      box-shadow:
        0 28px 95px rgba(0,0,0,.42),
        0 0 0 1px rgba(255,255,255,.035) inset,
        0 1px 0 rgba(255,255,255,.12) inset;
      backdrop-filter: blur(22px) saturate(1.12);
      overflow: visible;
    }
    .pg-home-composer::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0 0 auto;
      height: 1px;
      background: var(--pg-modal-topline);
      pointer-events: none;
    }
    .pg-home-composer::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      border-radius: inherit;
      pointer-events: none;
      background: var(--pg-modal-grid);
      background-size: 44px 44px;
      opacity: .2;
      mask-image: linear-gradient(180deg, rgba(0,0,0,.86), transparent 72%);
    }
    .pg-home-composer > * {
      position: relative;
      z-index: 1;
    }
    .pg-home-composer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 4px 4px 0;
    }
    .pg-home-start-toggle {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      background: rgba(2, 6, 12, .48);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    }
    .pg-home-start-option {
      min-height: 30px;
      border: 0;
      border-radius: 999px;
      padding: 7px 12px;
      color: rgba(247,251,255,.66);
      background: transparent;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      transition: background .16s ease, color .16s ease, box-shadow .16s ease;
    }
    .pg-home-start-option:hover {
      color: #fff;
      background: rgba(255,255,255,.08);
    }
    .pg-home-start-option:disabled,
    .pg-home-start-option:disabled:hover {
      color: rgba(247,251,255,.3);
      background: rgba(255,255,255,.025);
      box-shadow: none;
      cursor: not-allowed;
    }
    .pg-home-start-option.active {
      color: #071014;
      background: var(--pg-modal-primary);
      box-shadow:
        0 10px 24px rgba(85,205,196,.16),
        inset 0 1px 0 rgba(255,255,255,.42);
    }
    .pg-home-composer-meta {
      color: rgba(247,251,255,.52);
      font-size: 12px;
      white-space: nowrap;
    }
    .pg-home-composer-body {
      display: grid;
      grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
      gap: 10px;
    }
    .pg-home-composer-actions {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }
    .pg-home-upload {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 76px;
      min-width: 0;
      border: 1px solid rgba(126,238,224,.2);
      border-radius: 24px;
      padding: 0 9px;
      color: rgba(232,249,247,.78);
      background: rgba(9,18,27,.82);
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
      transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
    }
    .pg-home-upload[hidden] { display: none; }
    .pg-home-upload:hover {
      border-color: rgba(126,238,224,.42);
      color: #f7fbff;
      background: rgba(15,28,38,.94);
    }
    .pg-home-upload.is-selected {
      border-color: rgba(126,238,224,.46);
      color: #baf9ef;
      background: rgba(44,104,98,.22);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 3px rgba(85,205,196,.07);
    }
    .pg-home-upload.is-loading { cursor: wait; opacity: .7; }
    .pg-home-upload[data-tooltip]::before,
    .pg-home-upload[data-tooltip]::after {
      position: absolute;
      z-index: 12;
      pointer-events: none;
      opacity: 0;
      transition: opacity .16s ease, transform .16s ease;
    }
    .pg-home-upload[data-tooltip]::before {
      content: "";
      right: 24px;
      bottom: calc(100% + 5px);
      width: 9px;
      height: 9px;
      border-right: 1px solid rgba(139,225,215,.18);
      border-bottom: 1px solid rgba(139,225,215,.18);
      background: rgba(9,17,26,.98);
      transform: translateY(3px) rotate(45deg);
    }
    .pg-home-upload[data-tooltip]::after {
      content: attr(data-tooltip);
      right: 0;
      bottom: calc(100% + 10px);
      width: max-content;
      max-width: 290px;
      border: 1px solid rgba(139,225,215,.18);
      border-radius: 10px;
      padding: 8px 10px;
      color: rgba(239,250,249,.88);
      background: rgba(9,17,26,.98);
      box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.45;
      letter-spacing: .01em;
      text-align: left;
      white-space: normal;
      transform: translateY(4px);
    }
    .pg-home-upload[data-tooltip]:hover::before,
    .pg-home-upload[data-tooltip]:hover::after,
    .pg-home-upload[data-tooltip]:focus-within::before,
    .pg-home-upload[data-tooltip]:focus-within::after {
      opacity: 1;
    }
    .pg-home-upload[data-tooltip]:hover::before,
    .pg-home-upload[data-tooltip]:focus-within::before {
      transform: translateY(0) rotate(45deg);
    }
    .pg-home-upload[data-tooltip]:hover::after,
    .pg-home-upload[data-tooltip]:focus-within::after {
      transform: translateY(0);
    }
    .pg-home-upload-input {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }
    .pg-home-upload svg { flex: 0 0 auto; width: 17px; height: 17px; }
    .pg-home-upload span {
      display: block;
      min-width: 24px;
      overflow: hidden;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.14;
      text-align: center;
      text-overflow: ellipsis;
      white-space: pre-line;
    }
    .pg-home-upload span.is-filename {
      min-width: 0;
      white-space: nowrap;
    }
    .pg-home-composer textarea {
      min-height: 76px;
      resize: vertical;
      border: 1px solid rgba(255,255,255,.14);
      outline: none;
      border-radius: 24px;
      padding: 14px 18px;
      color: #f7fbff;
      background: rgba(4, 9, 17, .78);
      font: inherit;
      line-height: 1.6;
      scrollbar-width: thin;
      scrollbar-color: rgba(126,238,224,.3) transparent;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
      transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    }
    .pg-home-composer textarea::-webkit-scrollbar { width: 8px; }
    .pg-home-composer textarea::-webkit-scrollbar-track { background: transparent; }
    .pg-home-composer textarea::-webkit-scrollbar-thumb {
      min-height: 30px;
      border: 2px solid rgba(4,9,17,.78);
      border-radius: 999px;
      background: rgba(126,238,224,.28);
    }
    .pg-home-composer textarea::-webkit-scrollbar-thumb:hover { background: rgba(126,238,224,.46); }
    .pg-home-composer textarea::-webkit-scrollbar-corner { background: transparent; }
    .pg-home-composer textarea:focus {
      border-color: rgba(126, 238, 224, .46);
      background: rgba(7, 13, 23, .9);
      box-shadow:
        0 0 0 3px rgba(85,205,196,.12),
        inset 0 1px 0 rgba(255,255,255,.06);
    }
    .pg-home-composer textarea::placeholder { color: rgba(247,251,255,.45); }
    .pg-home-mode-guide[hidden],
    .pg-home-novel-guide[hidden] { display: none; }
    .pg-home-mode-guide {
      --pg-home-guide-items: 3;
      display: grid;
      grid-template-columns: minmax(210px, .72fr) minmax(0, 1.55fr);
      gap: 6px;
      padding: 7px;
      border: 1px solid rgba(126,238,224,.14);
      border-radius: 17px;
      background: linear-gradient(135deg, rgba(85,205,196,.075), rgba(255,205,105,.035));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    }
    .pg-home-mode-guide[data-home-mode-guide="long"] { --pg-home-guide-items: 5; }
    .pg-home-mode-guide[data-home-mode-guide="novel"] { --pg-home-guide-items: 6; }
    .pg-home-mode-guide-format,
    .pg-home-mode-guide-detail {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 7px 8px;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 12px;
      background: rgba(3,8,15,.42);
    }
    .pg-home-mode-guide-format > span,
    .pg-home-mode-guide-detail header > span {
      color: rgba(137,238,222,.82);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    .pg-home-mode-guide-format strong {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      overflow: hidden;
      color: rgba(247,251,255,.82);
      font-size: 11px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-home-mode-guide-format i {
      display: inline-grid;
      flex: 0 0 auto;
      width: 22px;
      height: 18px;
      place-items: center;
      border-radius: 7px;
      color: #071014;
      background: var(--pg-modal-primary);
      font-size: 8px;
      font-style: normal;
      font-weight: 950;
    }
    .pg-home-mode-guide-detail header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .pg-home-mode-guide-detail header small {
      color: rgba(247,251,255,.38);
      font-size: 9px;
      white-space: nowrap;
    }
    .pg-home-mode-guide-detail > div {
      display: grid;
      grid-template-columns: repeat(var(--pg-home-guide-items), minmax(0, 1fr));
      gap: 4px;
      min-width: 0;
    }
    .pg-home-mode-guide-detail > div span {
      display: grid;
      gap: 1px;
      min-width: 0;
      min-height: 30px;
      padding: 4px 5px;
      border-radius: 8px;
      color: rgba(247,251,255,.74);
      background: rgba(255,255,255,.045);
      font-size: 9px;
      line-height: 1.15;
    }
    .pg-home-mode-guide-detail > div b {
      overflow: hidden;
      color: rgba(247,251,255,.96);
      font-size: 9px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-home-mode-guide > p {
      grid-column: 1 / -1;
      margin: 0;
      min-width: 0;
      overflow: hidden;
      padding: 0 2px;
      color: rgba(247,251,255,.46);
      font-size: 9px;
      line-height: 1.3;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-home-mode-guide[data-home-mode-guide="novel"] > p { white-space: nowrap; }
    .pg-home-send {
      flex: 0 0 108px;
      min-width: 108px;
      border: 0;
      border-radius: 24px;
      color: #071014;
      background: var(--pg-modal-primary);
      font-weight: 900;
      cursor: pointer;
      box-shadow:
        0 16px 34px rgba(85,205,196,.18),
        inset 0 1px 0 rgba(255,255,255,.42);
    }
    .pg-home-send:disabled { opacity: .62; cursor: wait; }
    .pg-home-projects { margin-top: 8px; }
    .pg-home-section-head {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      margin: 0 0 16px;
    }
    .pg-home-project-count {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      min-height: 32px;
      margin-right: auto;
      padding: 0;
      border: 0;
      border-radius: 4px;
      color: rgba(226,236,241,.68);
      background: transparent;
      font-family: inherit;
      font-size: 12px;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      cursor: pointer;
    }
    .pg-home-project-count[hidden],
    .pg-home-project-capacity-warning[hidden] { display: none; }
    .pg-home-project-count:hover { color: #f7fbff; }
    .pg-home-project-count:focus-visible { outline: 2px solid #6ee7df; outline-offset: 4px; }
    .pg-home-project-count.is-full { color: #ff7b85; font-weight: 700; }
    .pg-home-project-count.is-full:hover { color: #ffa5ad; }
    .pg-home-project-capacity-warning { display: inline-flex; }
    .pg-home-project-capacity-warning svg { width: 17px; height: 17px; }
    .pg-home-new-project-btn {
      border: 0;
      border-radius: 8px;
      padding: 11px 16px;
      color: #071014;
      background: linear-gradient(145deg, #6ee7df 0%, #f5c16c 100%);
      box-shadow: 0 14px 30px rgba(85,205,196,.18);
      cursor: pointer;
      font-weight: 900;
    }
    .pg-home-new-project-btn.secondary {
      border: 1px solid rgba(255,255,255,.14);
      color: #f7fbff;
      background: rgba(255,255,255,.08);
      box-shadow: none;
    }
    .pg-home-trash-btn {
      width: 42px;
      height: 42px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 10px;
      color: rgba(226,236,241,.88);
      background: rgba(255,255,255,.065);
      cursor: pointer;
      transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
    }
    .pg-home-trash-btn svg { width: 19px; height: 19px; }
    .pg-home-trash-btn:hover,
    .pg-home-trash-btn:focus-visible {
      border-color: rgba(110,231,223,.52);
      color: #b9fff8;
      background: rgba(85,205,196,.13);
      outline: none;
      transform: translateY(-1px);
    }
    .pg-home-new-project-btn:hover,
    .pg-home-new-project-btn:focus-visible {
      filter: brightness(1.04);
      outline: none;
    }
    .pg-home-new-project-btn:disabled:hover,
    .pg-home-new-project-btn:disabled:focus-visible {
      border-color: rgba(255,255,255,.14);
      color: rgba(247,251,255,.72);
      background: rgba(255,255,255,.08);
    }
    .pg-project-search { display: flex; gap: 8px; padding: 8px 0; min-width: 0; }
    .pg-project-search input { flex: 1; min-width: 0; padding: 8px 10px; color: inherit; background: #10191f; border: 1px solid #43535e; border-radius: 8px; }
    .pg-project-search button, .pg-project-page-more { padding: 8px 12px; color: inherit; background: #202f39; border: 1px solid #43535e; border-radius: 8px; cursor: pointer; }
    .pg-project-page-more { display: block; margin: 8px auto; }
    .pg-project-page-more:disabled { opacity: .6; cursor: wait; }
    [data-home-project-search] { flex: 0 1 280px; width: min(280px, 34vw); min-width: 0; margin-right: auto; }
    .pg-project-search.pg-project-search--home { display: flex; width: 100%; min-height: 38px; padding: 0 10px 0 13px; gap: 6px; box-sizing: border-box; }
    .pg-project-search--home input { border: 0; border-radius: 0; padding: 0; outline: none; background: transparent; }
    .pg-project-search--home input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
    .pg-project-search--home button { display: inline-grid; place-items: center; flex: 0 0 24px; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
    .pg-project-search--home button:hover { background: rgba(110,231,223,.1); }
    .pg-project-search--home:focus-within { border-color: rgba(110,231,223,.5); }
    .pg-project-search--home button:focus-visible { outline: 2px solid rgba(110,231,223,.65); outline-offset: 2px; }
    .pg-project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
      gap: var(--pg-density-gap);
    }
    .pg-project-expand-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      min-height: 38px;
      margin-top: 16px;
    }
    .pg-project-expand-wrap .pg-project-page-more { margin: 0; min-height: 38px; padding: 8px 16px; font-size: 13px; font-weight: 700; }
    .pg-project-expand-wrap .pg-project-page-more:hover:not(:disabled),
    .pg-project-expand-wrap .pg-project-page-more:focus-visible { border-color: rgba(110,231,223,.5); outline: none; background: #273d46; }
    .pg-project-expand-toggle[aria-expanded="true"] { min-height: 38px; font-size: 13px; letter-spacing: 0; }
    .pg-project-expand-toggle[aria-expanded="true"] .pg-project-expand-icon { width: 24px; }
    .pg-project-expand-toggle[aria-expanded="true"] .pg-project-expand-icon svg { width: 22px; transform: rotate(180deg); }
    .pg-project-expand-wrap[hidden] { display: none; }
    .pg-project-expand-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 36px;
      padding: 2px 10px;
      border: 0;
      color: rgba(231, 247, 245, .76);
      background: transparent;
      cursor: pointer;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: .08em;
      transition: color .18s ease, transform .18s ease;
    }
    .pg-project-expand-toggle:hover,
    .pg-project-expand-toggle:focus-visible {
      color: #f7fbff;
      outline: none;
      transform: translateY(1px);
    }
    .pg-project-expand-icon {
      display: inline-grid;
      place-items: center;
      width: 38px;
      height: 30px;
      filter: drop-shadow(0 0 8px rgba(110, 231, 223, .22));
      transition: transform .22s ease, filter .22s ease;
    }
    .pg-project-expand-icon svg {
      width: 34px;
      height: 27px;
      overflow: visible;
    }
    .pg-project-expand-toggle:hover .pg-project-expand-icon,
    .pg-project-expand-toggle:focus-visible .pg-project-expand-icon {
      filter: drop-shadow(0 0 12px rgba(245, 193, 108, .34));
      transform: translateY(2px) scale(1.06);
    }
    .pg-project-expand-count {
      color: rgba(216, 224, 229, .48);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .02em;
    }
    .pg-project-card {
      position: relative;
      min-height: 142px;
      display: grid;
      align-content: space-between;
      gap: 12px;
      padding: 15px 16px;
      border: 1px solid rgba(255,255,255,.105);
      border-radius: 18px;
      color: #f7fbff;
      background:
        linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.018)),
        rgba(5, 9, 15, .9);
      background-size: cover;
      background-position: center;
      cursor: pointer;
      text-align: left;
      box-shadow: 0 14px 34px rgba(0,0,0,.16);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
      overflow: hidden;
      isolation: isolate;
    }
    .pg-project-card[hidden] { display: none; }
    .pg-project-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background: var(--pg-project-bg, linear-gradient(135deg, rgba(18,27,37,.94), rgba(8,13,22,.96)));
      background-size: cover;
      background-position: center;
      filter: blur(.8px) saturate(1.04) brightness(.96);
      transform: scale(1.02);
      opacity: .5;
      mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.55) 34%, #000 100%);
    }
    .pg-project-card.has-style::before { opacity: .92; }
    .pg-project-card.has-project-cover::before {
      opacity: .96;
      filter: saturate(1.03) brightness(.9);
      background-position: center;
      transform: scale(1.01);
    }
    .pg-project-card.has-project-cover::after {
      background:
        linear-gradient(90deg, rgba(5,9,15,.93) 0%, rgba(5,9,15,.7) 48%, rgba(5,9,15,.24) 100%),
        linear-gradient(180deg, rgba(7,12,20,.04), rgba(7,12,20,.34));
    }
    .pg-project-card.no-style::before {
      opacity: .65;
      filter: blur(8px);
      mask-image: none;
      background:
        radial-gradient(circle at 76% 26%, rgba(85,205,196,.12), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(245,167,88,.08), transparent 32%),
        linear-gradient(135deg, rgba(5,10,17,.95), rgba(14,20,30,.9));
    }
    .pg-project-card::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(90deg, rgba(5,9,15,.96) 0%, rgba(5,9,15,.84) 48%, rgba(5,9,15,.68) 100%),
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.07), transparent 34%);
    }
    .pg-project-card.has-style::after {
      background:
        linear-gradient(90deg, rgba(5,9,15,.86) 0%, rgba(5,9,15,.58) 32%, rgba(5,9,15,.22) 100%),
        radial-gradient(circle at 16% 12%, rgba(255,255,255,.06), transparent 34%);
    }
    .pg-project-card.no-style::after {
      background:
        linear-gradient(90deg, rgba(5,9,15,.94) 0%, rgba(8,13,22,.82) 48%, rgba(8,13,22,.72) 100%),
        radial-gradient(circle at 76% 24%, rgba(85,205,196,.09), transparent 38%);
    }
    .pg-project-card:hover,
    .pg-project-card:focus-visible {
      border-color: rgba(255,255,255,.2);
      outline: none;
      transform: translateY(-1px);
      box-shadow: 0 16px 38px rgba(0,0,0,.22);
    }
    .pg-project-card.is-deleting {
      cursor: wait;
      transform: none;
      border-color: rgba(255,255,255,.18);
      box-shadow: 0 14px 34px rgba(0,0,0,.16);
    }
    .pg-project-card.is-deleting > :not(.pg-project-deleting-mask) {
      opacity: .42;
    }
    .pg-project-card.is-deleting .pg-project-actions {
      pointer-events: none;
    }
    .pg-project-deleting-mask {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: grid;
      place-items: center;
      gap: 10px;
      background: rgba(5, 9, 15, .62);
      backdrop-filter: blur(2px);
      color: rgba(247,251,255,.94);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .03em;
    }
    .pg-project-deleting-spinner {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      border: 3px solid rgba(255,255,255,.24);
      border-top-color: rgba(110,231,223,.96);
      animation: pgProjectDeletingSpin .8s linear infinite;
    }
    @keyframes pgProjectDeletingSpin {
      to { transform: rotate(360deg); }
    }
    .pg-project-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .pg-project-index {
      color: rgba(145,235,226,.82);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .16em;
      text-transform: uppercase;
    }
    .pg-project-entry {
      display: inline-flex;
      align-items: center;
      min-height: 18px;
      padding: 0 7px;
      border: 1px solid rgba(145,235,226,.28);
      border-radius: 999px;
      color: rgba(211,255,248,.9);
      background: rgba(85,205,196,.1);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .05em;
      white-space: nowrap;
    }
    .pg-project-card.entry-canvas .pg-project-entry {
      border-color: rgba(255, 213, 90, .58);
      color: rgba(255, 244, 198, .96);
      background: linear-gradient(135deg, rgba(255, 213, 90, .34), rgba(255, 171, 64, .2));
      box-shadow: 0 0 0 1px rgba(255, 226, 120, .08), 0 6px 18px rgba(255, 184, 54, .14);
    }
    .pg-project-open-hint {
      color: rgba(220,226,224,.56);
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .06em;
    }
    .pg-project-card-main {
      display: block;
      min-width: 0;
    }
    .pg-project-name {
      display: block;
      margin: 0 0 8px;
      overflow-wrap: anywhere;
      color: rgba(250,252,255,.96);
      font-size: 18px;
      font-weight: 880;
      line-height: 1.18;
      text-shadow: 0 2px 18px rgba(0,0,0,.5);
    }
    .pg-project-time {
      display: block;
      color: rgba(216,224,229,.66);
      font-size: 11px;
      text-align: left;
      letter-spacing: .01em;
    }
    .pg-project-actions {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
    }
    .pg-project-open { display: none; }
    .pg-project-copy,
    .pg-project-delete,
    .pg-project-rename {
      border: 1px solid rgba(255,255,255,.105);
      border-radius: 999px;
      color: rgba(229,234,235,.68);
      background: rgba(255,255,255,.045);
      padding: 5px 9px;
      font-size: 11px;
      font-weight: 750;
      cursor: pointer;
    }
    .pg-project-copy:hover { color: #fff; border-color: rgba(119,176,255,.52); background: rgba(76,132,255,.14); }
    .pg-project-delete:hover { color: #fff; border-color: rgba(255,138,138,.52); background: rgba(255,80,80,.12); }
    .pg-project-rename:hover { color: #fff; border-color: rgba(85,205,196,.52); background: rgba(85,205,196,.12); }
    .pg-project-trash-modal {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: none;
      place-items: center;
      padding: 24px;
      background: rgba(1, 5, 10, .72);
      backdrop-filter: blur(8px);
    }
    .pg-project-trash-modal.open { display: grid; }
    .pg-project-trash-dialog {
      width: min(650px, 100%);
      max-height: min(680px, calc(100vh - 48px));
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 20px;
      overflow: hidden;
      color: #f7fbff;
      background: linear-gradient(160deg, rgba(20,29,40,.98), rgba(7,12,20,.98));
      box-shadow: 0 26px 80px rgba(0,0,0,.48);
    }
    .pg-project-trash-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 20px 22px 16px;
      border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .pg-project-trash-head h2 { margin: 0 0 6px; font-size: 19px; }
    .pg-project-trash-head p { margin: 0; color: rgba(226,236,241,.62); font-size: 13px; line-height: 1.5; }
    .pg-project-trash-actions { display: flex; align-items: center; gap: 8px; }
    .pg-project-trash-empty-all {
      border: 1px solid rgba(255,132,132,.46);
      border-radius: 8px;
      padding: 7px 10px;
      color: #ffd1d1;
      background: rgba(255,80,80,.13);
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .pg-project-trash-empty-all:hover:not(:disabled) { color: #fff; background: rgba(255,80,80,.25); }
    .pg-project-trash-empty-all:disabled { cursor: default; opacity: .45; }
    .pg-project-trash-close {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 8px;
      color: rgba(247,251,255,.72);
      background: rgba(255,255,255,.07);
      font-size: 21px;
      line-height: 1;
      cursor: pointer;
    }
    .pg-project-trash-close:hover { color: #fff; background: rgba(255,255,255,.14); }
    .pg-project-trash-list { min-height: 120px; overflow: auto; padding: 12px; }
    .pg-project-trash-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 12px;
      border-radius: 12px;
    }
    .pg-project-trash-item + .pg-project-trash-item { border-top: 1px solid rgba(255,255,255,.08); }
    .pg-project-trash-item strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
    .pg-project-trash-item small { display: block; margin-top: 6px; color: rgba(226,236,241,.58); font-size: 12px; }
    .pg-project-trash-restore {
      flex: 0 0 auto;
      border: 1px solid rgba(110,231,223,.32);
      border-radius: 9px;
      padding: 8px 11px;
      color: #b9fff8;
      background: rgba(85,205,196,.1);
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .pg-project-trash-restore:hover { background: rgba(85,205,196,.2); }
    .pg-project-trash-empty,
    .pg-project-trash-state { display: grid; min-height: 150px; place-items: center; color: rgba(226,236,241,.58); font-size: 13px; text-align: center; }
    .pg-project-trash-state { gap: 12px; padding: 24px; }
    .pg-project-trash-state button { border: 1px solid rgba(125,230,199,.4); border-radius: 999px; padding: 7px 14px; background: rgba(125,230,199,.12); color: #baf9e8; cursor: pointer; }
    .pg-showcase {
      margin-top: 34px;
      display: none;
    }
    .pg-showcase.show { display: block; }
    .pg-showcase-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 0 0 14px;
    }
    .pg-showcase-title {
      margin: 0;
      color: rgba(250,252,255,.96);
      font-size: 20px;
      font-weight: 920;
      letter-spacing: 0;
    }
    .pg-showcase-tools {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .pg-showcase-search {
      width: min(280px, 34vw);
      min-height: 38px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 18px;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 0 13px;
      background: rgba(3,8,14,.52);
    }
    .pg-showcase-search input {
      min-width: 0;
      border: 0;
      outline: none;
      color: #f7fbff;
      background: transparent;
      font: inherit;
      font-size: 13px;
    }
    .pg-showcase-search input::placeholder { color: rgba(247,251,255,.38); }
    .pg-showcase-search-box {
      min-width: 0;
      min-height: 22px;
      display: flex;
      align-items: center;
      overflow: hidden;
      color: #f7fbff;
      font: inherit;
      font-size: 13px;
      line-height: 1.4;
      outline: none;
      white-space: nowrap;
    }
    .pg-showcase-search-box:empty::before {
      content: attr(data-placeholder);
      color: rgba(247,251,255,.38);
      pointer-events: none;
    }
    .pg-showcase-search svg {
      width: 17px;
      height: 17px;
      color: rgba(247,251,255,.46);
    }
    .pg-showcase-filters {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 14px;
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 1px;
    }
    .pg-showcase-filters::-webkit-scrollbar { display: none; }
    .pg-showcase-filter {
      flex: 0 0 auto;
      min-height: 32px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      padding: 7px 12px;
      color: rgba(247,251,255,.64);
      background: rgba(255,255,255,.045);
      font: inherit;
      font-size: 13px;
      font-weight: 820;
      cursor: pointer;
    }
    .pg-showcase-filter:hover,
    .pg-showcase-filter:focus-visible {
      outline: none;
      color: #fff;
      border-color: rgba(85,205,196,.34);
      background: rgba(85,205,196,.1);
    }
    .pg-showcase-filter.active {
      color: #071014;
      border-color: transparent;
      background: linear-gradient(145deg, #6ee7df 0%, #f5c16c 100%);
    }
    .pg-showcase-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
      gap: 14px;
    }
    .pg-showcase-card {
      position: relative;
      min-height: 210px;
      display: grid;
      align-content: end;
      gap: 9px;
      overflow: hidden;
      isolation: isolate;
      border: 1px solid rgba(255,255,255,.105);
      border-radius: 18px;
      padding: 14px;
      color: #f7fbff;
      background: rgba(5, 9, 15, .9);
      cursor: pointer;
      text-align: left;
      box-shadow: 0 14px 34px rgba(0,0,0,.16);
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .pg-showcase-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background: var(--pg-showcase-bg, linear-gradient(135deg, rgba(18,27,37,.94), rgba(8,13,22,.96)));
      background-size: cover;
      background-position: center;
      transform: scale(1.01);
      transition: transform .24s ease;
    }
    .pg-showcase-card::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(180deg, rgba(5,9,15,.04) 0%, rgba(5,9,15,.32) 44%, rgba(5,9,15,.94) 100%),
        radial-gradient(circle at 16% 12%, rgba(255,255,255,.06), transparent 34%);
    }
    .pg-showcase-card.no-cover::before {
      background:
        radial-gradient(circle at 76% 26%, rgba(85,205,196,.12), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(245,167,88,.08), transparent 32%),
        linear-gradient(135deg, rgba(5,10,17,.95), rgba(14,20,30,.9));
    }
    .pg-showcase-card:hover,
    .pg-showcase-card:focus-visible {
      border-color: rgba(255,255,255,.2);
      outline: none;
      transform: translateY(-1px);
      box-shadow: 0 16px 38px rgba(0,0,0,.22);
    }
    .pg-showcase-card:hover::before,
    .pg-showcase-card:focus-visible::before {
      transform: scale(1.04);
    }
    .pg-showcase-play {
      width: 36px;
      height: 36px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      color: #071014;
      background: rgba(247,251,255,.92);
      box-shadow: 0 10px 28px rgba(0,0,0,.24);
    }
    .pg-showcase-play svg { width: 16px; height: 16px; margin-left: 2px; }
    .pg-showcase-card-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      color: rgba(250,252,255,.98);
      font-size: 16px;
      font-weight: 900;
      line-height: 1.24;
      text-shadow: 0 2px 18px rgba(0,0,0,.52);
    }
    .pg-showcase-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: rgba(229,234,235,.68);
      font-size: 11px;
      font-weight: 760;
    }
    .pg-showcase-card-meta span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-showcase-card-tags {
      display: flex;
      gap: 6px;
      overflow: hidden;
    }
    .pg-showcase-tag {
      flex: 0 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 4px 7px;
      color: rgba(247,251,255,.74);
      background: rgba(255,255,255,.07);
      font-size: 10px;
      font-weight: 800;
    }
    .pg-showcase-modal {
      position: fixed;
      inset: 0;
      z-index: 2147481600;
      display: none;
      place-items: center;
      padding: 22px;
      background:
        linear-gradient(120deg, rgba(33,83,89,.2) 0%, transparent 38%),
        rgba(4,8,14,.8);
      backdrop-filter: blur(22px) saturate(1.12);
    }
    .pg-showcase-modal.show { display: grid; }
    .pg-showcase-dialog {
      width: min(1180px, 100%);
      max-height: calc(100vh - 44px);
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
      overflow: hidden;
      border: 1px solid rgba(180, 245, 232, .16);
      border-radius: 18px;
      color: #f7fbff;
      background:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
        #0b111c;
      box-shadow:
        0 34px 120px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.08);
    }
    .pg-showcase-media {
      position: relative;
      min-height: 360px;
      background:
        var(--pg-showcase-preview-bg, linear-gradient(135deg, rgba(18,27,37,.94), rgba(8,13,22,.96))) center / cover no-repeat,
        #050910;
    }
    /* 读到视频宽高比后（app-shell.js 的 has-ratio）按真实比例改播放框：
       横屏用宽扁窗口、竖屏用窄高窗口，右侧详情列始终保留。 */
    .pg-showcase-dialog.has-ratio {
      width: min(calc(var(--pg-showcase-media-w) + 340px), calc(100vw - 44px));
      grid-template-columns: minmax(0, var(--pg-showcase-media-w)) minmax(240px, 1fr);
    }
    .pg-showcase-dialog.has-ratio .pg-showcase-media {
      min-height: 0;
      height: var(--pg-showcase-media-h);
      max-height: calc(100vh - 44px);
    }
    .pg-showcase-media::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, transparent 58%, rgba(5,9,15,.7));
    }
    .pg-showcase-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #050910;
      cursor: pointer;
    }
    .pg-showcase-video[hidden] { display: none; }
    .pg-showcase-video-fallback {
      position: absolute;
      left: 16px;
      bottom: 70px;
      z-index: 2;
      display: none;
      max-width: calc(100% - 32px);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      padding: 7px 10px;
      color: rgba(247,251,255,.82);
      background: rgba(3,8,14,.64);
      font-size: 12px;
      font-weight: 800;
      backdrop-filter: blur(10px);
    }
    .pg-showcase-video-fallback.show { display: block; }
    .pg-showcase-loader {
      position: absolute;
      inset: 0;
      z-index: 4;
      display: none;
      place-items: center;
      pointer-events: none;
      background: radial-gradient(circle at center, rgba(3,8,14,.34), transparent 42%);
    }
    .pg-showcase-loader.show { display: grid; }
    .pg-showcase-loader-inner {
      display: grid;
      place-items: center;
      gap: 10px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      padding: 12px 16px;
      color: rgba(247,251,255,.88);
      background: rgba(3,8,14,.72);
      box-shadow: 0 12px 34px rgba(0,0,0,.34);
      backdrop-filter: blur(12px);
      font-size: 12px;
      font-weight: 900;
    }
    .pg-showcase-spinner {
      width: 28px;
      height: 28px;
      border: 3px solid rgba(255,255,255,.22);
      border-top-color: #6ee7df;
      border-radius: 999px;
      animation: pg-showcase-spin .8s linear infinite;
    }
    @keyframes pg-showcase-spin {
      to { transform: rotate(360deg); }
    }
    .pg-showcase-controls {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 14px;
      z-index: 5;
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr) 38px;
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 8px;
      background: rgba(3,8,14,.72);
      backdrop-filter: blur(16px) saturate(1.1);
      box-shadow: 0 16px 46px rgba(0,0,0,.3);
      transform: translateY(0);
      opacity: 1;
      transition: transform .24s ease, opacity .2s ease;
    }
    .pg-showcase-media.controls-hidden .pg-showcase-controls {
      transform: translateY(72px);
      opacity: 0;
      pointer-events: none;
    }
    .pg-showcase-control {
      width: 38px;
      height: 38px;
      display: inline-grid;
      place-items: center;
      border: 0;
      border-radius: 999px;
      color: #071014;
      background: rgba(247,251,255,.92);
      cursor: pointer;
    }
    .pg-showcase-control svg { width: 17px; height: 17px; }
    .pg-showcase-progress {
      width: 100%;
      accent-color: #6ee7df;
      cursor: pointer;
    }
    .pg-showcase-volume {
      position: relative;
      display: inline-grid;
      place-items: center;
    }
    .pg-showcase-volume-popover {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 12px);
      z-index: 6;
      width: 40px;
      height: 128px;
      display: none;
      place-items: center;
      padding: 12px 0;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      background: rgba(3,8,14,.82);
      box-shadow: 0 14px 36px rgba(0,0,0,.34);
      backdrop-filter: blur(12px);
      transform: translateX(-50%);
    }
    .pg-showcase-volume.volume-open .pg-showcase-volume-popover { display: grid; }
    .pg-showcase-volume-slider {
      width: 18px;
      height: 104px;
      accent-color: #6ee7df;
      cursor: pointer;
      writing-mode: vertical-rl;
      direction: rtl;
    }
    .pg-showcase-detail {
      min-width: 0;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 14px;
      overflow: auto;
      padding: 24px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
        rgba(8, 13, 22, .72);
    }
    .pg-showcase-detail-head {
      display: flex;
      justify-content: flex-end;
    }
    .pg-showcase-close {
      width: 40px;
      height: 40px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 12px;
      color: rgba(247,251,255,.82);
      background: rgba(255,255,255,.075);
      cursor: pointer;
      box-shadow: 0 10px 26px rgba(0,0,0,.18);
    }
    .pg-showcase-close:hover,
    .pg-showcase-close:focus-visible {
      outline: none;
      color: #fff;
      border-color: rgba(137, 238, 225, .38);
      background: rgba(137, 238, 225, .12);
    }
    .pg-showcase-close svg {
      width: 18px;
      height: 18px;
      stroke-width: 2.4;
    }
    .pg-showcase-detail-body {
      display: grid;
      align-content: start;
      gap: 14px;
    }
    .pg-showcase-detail h2 {
      margin: 0;
      color: rgba(250,252,255,.98);
      font-size: 28px;
      font-weight: 940;
      line-height: 1.2;
      letter-spacing: 0;
    }
    .pg-showcase-author {
      color: rgba(247,251,255,.58);
      font-size: 13px;
      font-weight: 780;
    }
    .pg-showcase-desc {
      margin: 0;
      color: rgba(247,251,255,.72);
      font-size: 13px;
      line-height: 1.7;
    }
    .pg-showcase-detail-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

/* frontend-src/styles/app-shell/01zz-credits.css */
.pg-billing-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 152px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(139, 227, 194, .2);
  border-radius: 6px;
  background: rgba(4, 14, 13, .7);
}
.pg-cloud-bar .pg-billing-mode { flex: 0 0 auto; }
.pg-billing-mode[hidden] { display: none; }
.pg-settings-dialog [hidden] { display: none !important; }
.pg-billing-mode button {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(234, 246, 241, .55);
  font-size: 11px;
  cursor: pointer;
}
.pg-billing-mode button.active {
  background: #8de8c3;
  color: #07110e;
  font-weight: 700;
}
.pg-billing-mode button:disabled { cursor: wait; opacity: .55; }
@media (max-width: 940px) {
  .pg-billing-mode { width: 118px; }
  .pg-billing-mode button { font-size: 10px; }
}

/* frontend-src/styles/app-shell/02-styles.css */

    .pg-home-empty {
      min-height: 132px;
      display: grid;
      place-items: center;
      padding: 28px;
      border: 1px dashed rgba(255,255,255,.2);
      border-radius: 22px;
      color: rgba(247,251,255,.68);
      text-align: center;
      background: rgba(255,255,255,.045);
    }
    .pg-home-empty strong {
      display: block;
      margin-bottom: 8px;
      color: #fff;
      font-size: 18px;
    }
    .pg-home-empty span {
      display: block;
      line-height: 1.6;
    }
    .pg-dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147481000;
      display: grid;
      place-items: center;
      padding: 20px;
      background:
        linear-gradient(120deg, rgba(33,83,89,.18) 0%, transparent 38%),
        rgba(4,8,14,.72);
      backdrop-filter: blur(20px) saturate(1.1);
    }
    .pg-dialog {
      position: relative;
      isolation: isolate;
      width: min(480px, 100%);
      padding: 26px;
      border: 1px solid var(--pg-modal-border);
      border-radius: 18px;
      color: #f7fbff;
      background:
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      box-shadow: var(--pg-modal-shadow);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-dialog,
    .pg-dialog * {
      box-sizing: border-box;
    }
    .pg-dialog h2 {
      margin: 0 0 10px;
      color: rgba(250,252,255,.98);
      font-size: 24px;
      font-weight: 920;
      line-height: 1.18;
      letter-spacing: 0;
    }
    .pg-dialog p {
      margin: 0 0 18px;
      color: rgba(226,235,239,.72);
      line-height: 1.65;
      white-space: pre-line;
    }
    .pg-dialog-backdrop.has-dialog-details {
      grid-template-columns: minmax(0, 480px) minmax(280px, 340px);
      gap: 14px;
    }
    .pg-dialog-message-action {
      display: inline;
      margin: 0;
      padding: 0;
      border: 0;
      color: #82e9dc;
      background: transparent;
      font: inherit;
      font-weight: 800;
      line-height: inherit;
      text-decoration: underline;
      text-underline-offset: 3px;
      cursor: pointer;
    }
    .pg-dialog-message-action:hover,
    .pg-dialog-message-action:focus-visible {
      color: #b9fff5;
      outline: none;
      text-decoration-thickness: 2px;
    }
    .pg-dialog-detail-panel {
      align-self: center;
      width: 100%;
      max-height: min(560px, calc(100vh - 40px));
      padding: 18px;
      overflow: hidden;
      border: 1px solid var(--pg-modal-border-strong);
      border-radius: 8px;
      color: #f7fbff;
      background: rgba(7, 14, 21, .98);
      box-shadow: 0 24px 80px rgba(0,0,0,.48);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-dialog-detail-panel[hidden] { display: none; }
    .pg-dialog-detail-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .pg-dialog-detail-header h3 {
      margin: 0;
      font-size: 16px;
      line-height: 1.3;
      letter-spacing: 0;
    }
    .pg-dialog-detail-close {
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
      padding: 0;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 50%;
      color: rgba(245,250,252,.82);
      background: rgba(255,255,255,.05);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }
    .pg-dialog-detail-close:hover,
    .pg-dialog-detail-close:focus-visible {
      border-color: rgba(130,233,220,.52);
      color: #fff;
      outline: none;
      background: rgba(130,233,220,.1);
    }
    .pg-dialog-detail-list {
      display: grid;
      gap: 8px;
      max-height: min(480px, calc(100vh - 112px));
      overflow-y: auto;
    }
    .pg-dialog-detail-item {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      min-height: 68px;
      padding: 6px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 6px;
      background: rgba(255,255,255,.035);
    }
    .pg-dialog-detail-media {
      display: grid;
      place-items: center;
      width: 56px;
      height: 56px;
      overflow: hidden;
      border-radius: 4px;
      color: rgba(255,255,255,.74);
      background: rgba(255,255,255,.08);
      font-weight: 800;
    }
    .pg-dialog-detail-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .pg-dialog-detail-copy {
      min-width: 0;
    }
    .pg-dialog-detail-copy strong,
    .pg-dialog-detail-copy span {
      display: block;
      overflow-wrap: anywhere;
    }
    .pg-dialog-detail-copy strong {
      color: #f7fbff;
      font-size: 14px;
      line-height: 1.4;
    }
    .pg-dialog-detail-copy span {
      margin-top: 3px;
      color: rgba(226,235,239,.6);
      font-size: 12px;
      line-height: 1.45;
    }
    @media (max-width: 760px) {
      .pg-dialog-backdrop.has-dialog-details {
        grid-template-columns: minmax(0, 480px);
        grid-template-rows: auto auto;
        align-content: center;
        overflow-y: auto;
      }
      .pg-dialog-detail-panel {
        max-height: min(320px, calc(45vh - 20px));
      }
      .pg-dialog-detail-list {
        max-height: min(240px, calc(45vh - 92px));
      }
    }
    .pg-dialog input {
      width: 100%;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      background: rgba(4, 9, 17, .78);
      color: #fff;
      padding: 13px 14px;
      outline: none;
      font-weight: 650;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    }
    .pg-dialog input:focus {
      border-color: rgba(126, 238, 224, .46);
      background: rgba(7, 13, 23, .9);
      box-shadow:
        0 0 0 3px rgba(85,205,196,.12),
        inset 0 1px 0 rgba(255,255,255,.06);
    }
    .pg-dialog input.invalid {
      border-color: rgba(255,112,112,.72);
      box-shadow: 0 0 0 3px rgba(255,80,80,.14);
    }
    .pg-dialog-error {
      display: none;
      margin-top: 8px;
      color: #ff8a8a;
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-dialog-error.show { display: block; }
    .pg-dialog-choices {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 12px;
    }
    .pg-dialog-choice {
      flex: 1 1 0;
      min-width: 120px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 12px 13px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      background: rgba(4, 9, 17, .55);
      cursor: pointer;
      font-weight: 600;
      color: rgba(255,255,255,.86);
      transition: border-color .15s ease, background .15s ease;
    }
    .pg-dialog-choice:hover { border-color: rgba(126,238,224,.34); }
    .pg-dialog-choice:has(input:checked) {
      border-color: rgba(126,238,224,.56);
      background: rgba(85,205,196,.12);
      color: #fff;
    }
    .pg-dialog-choices input[type="radio"] {
      width: 16px;
      height: 16px;
      flex: none;
      padding: 0;
      margin: 0;
      border: none;
      background: none;
      box-shadow: none;
      accent-color: #7eeee0;
    }
    .pg-dialog-choices input[type="radio"]:focus-visible {
      outline: 2px solid rgba(126,238,224,.46);
      outline-offset: 2px;
    }
    .pg-dialog-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }
    .pg-cloud-btn.warning {
      border-color: rgba(255, 204, 92, .5);
      color: #241700;
      background: linear-gradient(135deg, #ffd66b, #f4ad32);
      box-shadow: 0 10px 24px rgba(244, 173, 50, .2);
    }
    .pg-cloud-btn.warning:hover,
    .pg-cloud-btn.warning:focus-visible {
      border-color: rgba(255, 231, 163, .82);
      background: linear-gradient(135deg, #ffe08b, #f8bb48);
    }
    .pg-cloud-btn.success {
      border-color: rgba(88, 220, 157, .46);
      color: #041a10;
      background: linear-gradient(135deg, #62dfa4, #2fbd7c);
      box-shadow: 0 10px 24px rgba(47, 189, 124, .2);
    }
    .pg-cloud-btn.success:hover,
    .pg-cloud-btn.success:focus-visible {
      border-color: rgba(171, 255, 218, .76);
      background: linear-gradient(135deg, #7be9b7, #3dcc8d);
    }
    .pg-update-dialog-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147481800;
      display: none;
      place-items: center;
      padding: 20px;
      background:
        linear-gradient(120deg, rgba(33,83,89,.18) 0%, transparent 38%),
        rgba(4,8,14,.76);
      backdrop-filter: blur(20px) saturate(1.1);
    }
    .pg-update-dialog-backdrop.show { display: grid; }
    .pg-update-dialog {
      position: relative;
      isolation: isolate;
      width: min(560px, 100%);
      box-sizing: border-box;
      max-height: calc(100dvh - 40px);
      overflow-y: auto;
      overflow-wrap: anywhere;
      padding: 28px;
      border: 1px solid var(--pg-modal-border);
      border-radius: 18px;
      background:
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      color: #f7fbff;
      box-shadow: var(--pg-modal-shadow);
    }
    .pg-update-dialog-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 12px;
    }
    .pg-update-dialog-head h2 {
      margin: 0;
      font-size: 24px;
      font-weight: 920;
      line-height: 1.25;
    }
    .pg-update-dialog-version {
      display: inline-flex;
      flex-shrink: 0;
      white-space: nowrap;
      align-items: center;
      min-height: 24px;
      padding: 0 10px;
      border-radius: 999px;
      background: rgba(128,240,216,.14);
      color: #9bf3e1;
      font-size: 12px;
      font-weight: 900;
    }
    .pg-update-dialog p {
      margin: 0;
      color: rgba(247,251,255,.74);
      line-height: 1.7;
    }
    .pg-update-dialog-list {
      margin: 18px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 10px;
    }
    .pg-update-dialog-list li {
      position: relative;
      padding-left: 16px;
      color: rgba(247,251,255,.86);
      line-height: 1.65;
    }
    .pg-update-dialog-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .7em;
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #80f0d8;
    }
    .pg-update-dialog-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 22px;
    }
    .pg-legacy-svip-promotion .pg-update-dialog {
      width: min(520px, 100%);
      border-color: rgba(229, 200, 111, .54);
      background:
        linear-gradient(135deg, rgba(229, 200, 111, .1), transparent 46%),
        var(--pg-modal-glass),
        var(--pg-modal-surface);
    }
    .pg-legacy-svip-promotion .pg-update-dialog-head h2 {
      margin-top: 10px;
      color: #fff6d8;
    }
    .pg-legacy-svip-promotion .pg-legacy-svip-note {
      margin-top: 10px;
      color: rgba(245, 217, 147, .82);
    }
    html[data-update-center-open="true"],
    html[data-update-center-open="true"] body {
      overflow: hidden;
      overscroll-behavior: none;
    }
    .pg-update-center {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 2147481700;
      width: min(480px, calc(100vw - 24px));
      max-width: 100vw;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 0;
      padding: 0;
      border-left: 1px solid rgba(159,232,222,.13);
      background:
        radial-gradient(circle at 78% -10%, rgba(96,214,198,.08), transparent 34%),
        linear-gradient(180deg, #101824 0%, #0a111b 34%, #080e17 100%);
      color: #f7fbff;
      box-shadow: -28px 0 80px rgba(0,0,0,.46);
      transform: translateX(100%);
      transition: transform .28s cubic-bezier(.22,.8,.25,1);
      overflow: hidden;
      overscroll-behavior: contain;
      touch-action: pan-y;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-update-center::before {
      content: "";
      position: absolute;
      inset: 0 auto auto 0;
      width: 100%;
      height: 1px;
      background: linear-gradient(90deg, #65d9cb, rgba(245,193,108,.68), transparent 82%);
      pointer-events: none;
    }
    .pg-update-center-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147481690;
      display: block;
      background: rgba(2,6,11,.56);
      backdrop-filter: blur(3px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .24s ease;
    }
    .pg-update-center-backdrop.show {
      opacity: 1;
      pointer-events: auto;
    }
    .pg-update-center.show {
      transform: translateX(0);
    }
    .pg-update-center-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 27px 26px 20px;
    }
    .pg-update-center-title {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: 10px;
      row-gap: 4px;
      min-width: 0;
    }
    .pg-update-center-title strong {
      color: rgba(250,252,255,.98);
      font-size: 21px;
      font-weight: 780;
      line-height: 1.15;
      letter-spacing: -.02em;
    }
    .pg-update-center-title > span:last-child {
      grid-column: 1 / -1;
      color: rgba(211,222,230,.56);
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-update-center-title .pg-update-center-eyebrow {
      min-width: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 3px 6px 2px;
      border: 1px solid rgba(112,226,211,.28);
      border-radius: 5px;
      color: #83e7da;
      background: rgba(91,205,192,.07);
      font-size: 9px;
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: .14em;
    }
    .pg-update-center-close {
      width: 34px;
      height: 34px;
      flex: 0 0 auto;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 999px;
      background: rgba(255,255,255,.035);
      color: rgba(225,233,239,.68);
      font-size: 19px;
      line-height: 1;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
    }
    .pg-update-center-close:hover,
    .pg-update-center-close:focus-visible {
      outline: none;
      border-color: rgba(112,226,211,.42);
      background: rgba(85,205,196,.1);
      color: #fff;
      transform: rotate(4deg);
    }
    .pg-update-center-tabs {
      position: relative;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0;
      padding: 0 20px;
      border-bottom: 1px solid rgba(255,255,255,.075);
      background: rgba(5,10,17,.18);
    }
    .pg-update-center-tab {
      position: relative;
      min-height: 47px;
      border: 0;
      background: transparent;
      color: rgba(221,229,235,.5);
      font: inherit;
      font-size: 12px;
      font-weight: 650;
      letter-spacing: .01em;
      cursor: pointer;
      transition: color .18s ease, background .18s ease;
    }
    .pg-update-center-tab::after {
      content: "";
      position: absolute;
      right: 18px;
      bottom: -1px;
      left: 18px;
      height: 2px;
      border-radius: 999px 999px 0 0;
      background: #70ded1;
      box-shadow: 0 -3px 14px rgba(112,222,209,.28);
      opacity: 0;
      transform: scaleX(.4);
      transition: opacity .18s ease, transform .2s ease;
    }
    .pg-update-center-tab:hover,
    .pg-update-center-tab:focus-visible {
      color: rgba(247,251,255,.86);
      outline: none;
      background: rgba(255,255,255,.025);
    }
    .pg-update-center-tab.active {
      color: #f7fbff;
      background: transparent;
    }
    .pg-update-center-tab.active::after {
      opacity: 1;
      transform: scaleX(1);
    }
    .pg-update-center-tab [data-personal-message-count] {
      min-width: 17px;
      height: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 6px;
      padding: 0 5px;
      border-radius: 999px;
      color: #081512;
      background: #f1c77e;
      font-size: 9px;
      font-weight: 850;
      vertical-align: 1px;
    }
    .pg-update-center-tab [data-personal-message-count]:empty {
      display: none;
    }
    .pg-update-center-list {
      min-height: 0;
      overflow: auto;
      overscroll-behavior: contain;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 20px 20px 30px;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,.24) rgba(255,255,255,.04);
    }
    .pg-update-center-list > * {
      flex: 0 0 auto;
    }
    .pg-update-center-list::-webkit-scrollbar {
      width: 8px;
    }
    .pg-update-center-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,.04);
      border-radius: 999px;
    }
    .pg-update-center-list::-webkit-scrollbar-thumb {
      border: 2px solid #0a111b;
      border-radius: 999px;
      background: rgba(255,255,255,.22);
    }
    .pg-update-center-list::-webkit-scrollbar-thumb:hover {
      background: rgba(255,255,255,.32);
    }
    .pg-update-center-card {
      display: grid;
      gap: 0;
      padding: 16px;
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 14px;
      background: rgba(255,255,255,.025);
      box-shadow: 0 12px 28px rgba(0,0,0,.09);
      transition: border-color .18s ease, background .18s ease, transform .18s ease;
    }
    .pg-update-center-card:hover {
      border-color: rgba(132,217,207,.16);
      background: rgba(255,255,255,.036);
    }
    .pg-update-center-card[data-expanded="true"] {
      border-color: rgba(112,222,209,.18);
      background: rgba(16,29,39,.88);
    }
    .pg-update-center-card-head {
      display: grid;
      grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
      align-items: center;
      column-gap: 8px;
      row-gap: 2px;
    }
    .pg-update-center-card-title {
      display: flex;
      align-items: baseline;
      gap: 8px;
      min-width: 0;
      grid-column: 1 / 2;
      grid-row: 1 / 2;
    }
    .pg-update-center-card-title strong {
      line-height: 1.35;
      word-break: break-word;
      color: rgba(250,252,255,.94);
      font-size: 14px;
      font-weight: 700;
    }
    .pg-update-center-card-title span {
      color: rgba(215,224,231,.46);
      font-size: 10px;
      line-height: 1.4;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .pg-update-center-card-text {
      color: rgba(247,251,255,.66);
      font-size: 13px;
      line-height: 1.65;
    }
    .pg-update-center-card-summary {
      color: rgba(220,228,234,.64);
      font-size: 12px;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      overflow: hidden;
      min-height: 16px;
      grid-column: 1 / 2;
      grid-row: 2 / 3;
      margin-top: 6px;
    }
    .pg-update-center-card[data-expanded="true"] .pg-update-center-card-summary {
      display: block;
      -webkit-line-clamp: unset;
      min-height: 0;
    }
    .pg-update-center-card-body {
      display: none;
      gap: 10px;
    }
    .pg-update-center-card[data-expanded="true"] .pg-update-center-card-body {
      display: grid;
      padding-top: 10px;
      margin-top: 10px;
      border-top: 1px solid rgba(255,255,255,.07);
      background: rgba(2,7,12,.22);
      border-radius: 10px;
      padding: 12px;
    }
    .pg-update-center-card-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px;
    }
    .pg-update-center-card-list li {
      position: relative;
      padding-left: 14px;
      color: rgba(247,251,255,.82);
      font-size: 13px;
      line-height: 1.65;
    }
    .pg-update-center-card-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .72em;
      width: 5px;
      height: 5px;
      border-radius: 999px;
      background: #80f0d8;
    }
    .pg-update-center-card-badge {
      flex: 0 0 auto;
      min-height: 20px;
      display: inline-flex;
      align-items: center;
      padding: 0 7px;
      border-radius: 999px;
      border: 1px solid rgba(128,240,216,.12);
      background: rgba(128,240,216,.07);
      color: #84dfd4;
      font-size: 9px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-update-center-card[data-item-type="notice"] .pg-update-center-card-badge {
      border-color: rgba(245,193,108,.13);
      background: rgba(245,193,108,.07);
      color: #eac58b;
    }
    .pg-update-center-card-actions {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      grid-column: 2 / 3;
      grid-row: 1 / 3;
      align-self: start;
    }
    .pg-update-center-card-toggle {
      width: 24px;
      height: 24px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 999px;
      background: rgba(255,255,255,.025);
      color: rgba(247,251,255,.82);
      cursor: pointer;
    }
    .pg-update-center-card-toggle:hover,
    .pg-update-center-card-toggle:focus-visible {
      background: rgba(255,255,255,.1);
      outline: none;
    }
    .pg-update-center-card-toggle-icon {
      display: inline-block;
      line-height: 1;
      font-size: 11px;
      transition: transform .18s ease;
    }
    .pg-update-center-card[data-expanded="true"] .pg-update-center-card-toggle-icon {
      transform: rotate(180deg);
    }
    .pg-update-center-empty,
    .pg-update-center-view-state {
      min-height: 160px;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 12px;
      padding: 20px;
      border: 1px dashed rgba(255,255,255,.12);
      border-radius: 14px;
      color: rgba(247,251,255,.54);
      text-align: center;
      line-height: 1.7;
      background: rgba(255,255,255,.03);
    }
    .pg-update-center-view-state-error {
      border-color: rgba(255,130,130,.28);
      color: #ffb6b6;
      background: rgba(255,80,80,.08);
    }
    .pg-personal-message-group {
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.075);
      border-radius: 14px;
      background: rgba(255,255,255,.022);
      box-shadow: 0 12px 30px rgba(0,0,0,.08);
      transition: border-color .18s ease, background .18s ease;
    }
    .pg-personal-message-group.is-expanded {
      border-color: rgba(112,222,209,.14);
      background: rgba(255,255,255,.03);
    }
    .pg-personal-message-group-toggle {
      width: 100%;
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 15px;
      border: 0;
      background: transparent;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }
    .pg-personal-message-group-toggle:hover,
    .pg-personal-message-group-toggle:focus-visible {
      outline: none;
      background: rgba(128,240,216,.045);
    }
    .pg-personal-message-group-toggle > span {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .pg-personal-message-group-toggle > span:first-child::before {
      content: "";
      width: 28px;
      height: 28px;
      flex: 0 0 auto;
      border: 1px solid rgba(103,220,206,.2);
      border-radius: 9px;
      background:
        radial-gradient(circle at 50% 42%, #80e5d8 0 2px, transparent 2.5px),
        radial-gradient(ellipse at 50% 76%, rgba(128,229,216,.75) 0 5px, transparent 5.5px),
        rgba(95,210,197,.07);
      box-shadow: inset 0 0 18px rgba(107,226,211,.04);
    }
    .pg-personal-message-group[data-message-category*="推广"] .pg-personal-message-group-toggle > span:first-child::before {
      border-color: rgba(241,194,113,.22);
      background:
        linear-gradient(135deg, transparent 40%, rgba(244,199,123,.82) 41% 49%, transparent 50%),
        radial-gradient(circle at 67% 34%, #f2c982 0 3px, transparent 3.5px),
        rgba(245,193,108,.065);
    }
    .pg-personal-message-group-toggle strong {
      color: rgba(243,248,251,.9);
      font-size: 13px;
      font-weight: 700;
    }
    .pg-personal-message-group-toggle small {
      color: rgba(221,229,235,.42);
      font-size: 11px;
    }
    .pg-personal-message-group-toggle b {
      padding: 3px 7px 2px;
      border-radius: 999px;
      background: rgba(245,193,108,.1);
      color: #efca8b;
      font-size: 10px;
    }
    .pg-personal-message-group-toggle i {
      width: 7px;
      height: 7px;
      display: block;
      border-right: 2px solid rgba(247,251,255,.5);
      border-bottom: 2px solid rgba(247,251,255,.5);
      transform: rotate(45deg) translateY(-2px);
      transition: transform .18s ease;
    }
    .pg-personal-message-group.is-expanded .pg-personal-message-group-toggle i {
      transform: rotate(225deg) translate(-1px, -1px);
    }
    .pg-personal-message-group-list {
      display: grid;
      gap: 7px;
      padding: 0 8px 8px;
      background: transparent;
    }
    .pg-personal-message-card {
      position: relative;
      width: 100%;
      display: grid;
      gap: 7px;
      padding: 13px 36px 12px 13px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: rgba(2,7,12,.19);
      color: inherit;
      text-align: left;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, transform .18s ease;
    }
    .pg-personal-message-card::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 16px;
      width: 6px;
      height: 6px;
      border-top: 1.5px solid rgba(230,238,243,.34);
      border-right: 1.5px solid rgba(230,238,243,.34);
      transform: translateY(-50%) rotate(45deg);
      transition: border-color .18s ease, transform .18s ease;
    }
    .pg-personal-message-card:hover,
    .pg-personal-message-card:focus-visible {
      outline: none;
      border-color: rgba(112,222,209,.15);
      background: rgba(112,222,209,.055);
      transform: translateX(2px);
    }
    .pg-personal-message-card:hover::after,
    .pg-personal-message-card:focus-visible::after {
      border-color: #82e4d8;
      transform: translate(2px, -50%) rotate(45deg);
    }
    .pg-personal-message-card.is-unread {
      border-color: rgba(245,193,108,.09);
      background: linear-gradient(90deg, rgba(245,193,108,.055), rgba(255,255,255,.018) 42%);
    }
    .pg-personal-message-card.is-unread::before {
      content: "";
      position: absolute;
      left: 5px;
      top: 18px;
      width: 4px;
      height: 4px;
      border-radius: 999px;
      background: #f5c16c;
    }
    .pg-personal-message-card-head,
    .pg-personal-message-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: rgba(218,227,233,.45);
      font-size: 10px;
    }
    .pg-personal-message-card-head strong {
      min-width: 0;
      overflow: hidden;
      color: rgba(248,251,253,.92);
      font-size: 13px;
      font-weight: 680;
      line-height: 1.4;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-personal-message-card-time {
      justify-self: end;
      flex: 0 0 auto;
      color: rgba(218,227,233,.4);
      font-size: 10px;
    }
    .pg-personal-message-membership {
      display: block;
      margin: 0;
      color: #8fd8cc;
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-personal-message-thread-head .pg-personal-message-membership {
      margin-top: 6px;
    }
    .pg-personal-message-preview {
      overflow: hidden;
      color: rgba(221,229,235,.63);
      font-size: 12px;
      line-height: 1.6;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-personal-message-meta b {
      padding: 2px 6px;
      border-radius: 999px;
      color: #ecc783;
      background: rgba(245,193,108,.08);
      font-size: 9px;
    }

    /* Message center aligned with the homepage's cinematic glass language. */
    .pg-update-center {
      width: min(500px, calc(100vw - 24px));
      min-height: 0;
      border-left-color: var(--pg-modal-border);
      background:
        linear-gradient(115deg, rgba(14,51,56,.34) 0%, transparent 42%),
        var(--pg-modal-glass),
        var(--pg-modal-surface);
      box-shadow: var(--pg-modal-shadow);
    }
    .pg-update-center::before {
      height: 1px;
      background: var(--pg-modal-topline);
    }
    .pg-update-center-head {
      align-items: flex-start;
      padding: 18px 22px 14px;
    }
    .pg-update-center-title {
      grid-template-columns: 1fr;
      gap: 0;
    }
    .pg-update-center-title .pg-update-center-eyebrow {
      min-width: 0;
      width: max-content;
      margin-bottom: 6px;
      padding: 3px 7px 2px;
      border: 1px solid rgba(126,238,224,.2);
      border-radius: 999px;
      color: #8fe9dd;
      background: rgba(85,205,196,.07);
      font-family: inherit;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .16em;
    }
    .pg-update-center-title strong {
      color: #f7fbff;
      font-size: 24px;
      font-weight: 760;
      line-height: 1;
      letter-spacing: -.045em;
    }
    .pg-update-center-title > span:last-child {
      grid-column: 1;
      margin-top: 6px;
      color: rgba(226,236,241,.58);
      font-size: 11px;
      letter-spacing: .02em;
    }
    .pg-update-center-close {
      margin-top: 1px;
      border-color: rgba(255,255,255,.12);
      background: rgba(255,255,255,.035);
      color: rgba(247,251,255,.72);
    }
    .pg-update-center-tabs {
      gap: 7px;
      padding: 0 18px 12px;
      border-bottom: 1px solid rgba(255,255,255,.075);
      background: transparent;
    }
    .pg-update-center-tab {
      min-width: 0;
      min-height: 44px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-content: center;
      align-items: center;
      gap: 3px 8px;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.095);
      border-radius: 10px;
      color: rgba(226,236,241,.55);
      background: rgba(255,255,255,.025);
      text-align: left;
    }
    .pg-update-center-tab::after {
      display: none;
    }
    .pg-update-center-tab small {
      grid-row: 1 / 3;
      align-self: start;
      margin-top: 2px;
      color: inherit;
      font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
      font-size: 8px;
      font-weight: 650;
      letter-spacing: .05em;
      opacity: .68;
    }
    .pg-update-center-tab strong {
      overflow: hidden;
      font-size: 12px;
      font-weight: 680;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-update-center-tab:hover,
    .pg-update-center-tab:focus-visible {
      border-color: rgba(126,238,224,.28);
      color: #f7fbff;
      background: rgba(85,205,196,.055);
    }
    .pg-update-center-tab.active {
      border-color: rgba(126,238,224,.5);
      color: #071014;
      background: var(--pg-modal-primary);
      box-shadow: 0 10px 26px rgba(85,205,196,.14);
    }
    .pg-update-center-tab [data-personal-message-count] {
      position: absolute;
      top: 7px;
      right: 7px;
      min-width: 16px;
      height: 16px;
      margin: 0;
      color: #08120f;
      background: #f5c16c;
    }
    .pg-update-center-list {
      gap: 0;
      height: auto;
      min-height: 0;
      overflow-y: auto;
      padding: 14px 20px 24px;
    }
    .pg-update-center[data-tab="messages"] .pg-update-center-list {
      gap: 10px;
    }
    .pg-update-center-card {
      padding: 18px 0;
      border: 0;
      border-top: 1px solid rgba(255,255,255,.09);
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .pg-update-center-card:last-child {
      border-bottom: 1px solid rgba(255,255,255,.09);
    }
    .pg-update-center-card:hover,
    .pg-update-center-card[data-expanded="true"] {
      border-color: rgba(126,238,224,.18);
      background: transparent;
      transform: none;
    }
    .pg-update-center-card-title strong {
      color: #f7fbff;
      font-size: 15px;
      font-weight: 680;
    }
    .pg-update-center-card-summary {
      color: rgba(225,231,234,.58);
      font-size: 12px;
    }
    .pg-update-center-card[data-expanded="true"] .pg-update-center-card-body {
      margin-top: 14px;
      padding: 5px 0 5px 16px;
      border: 0;
      border-left: 2px solid #7eeee0;
      border-radius: 0;
      background: transparent;
    }
    .pg-update-center-card-badge {
      border: 0;
      color: rgba(126,238,224,.86);
      background: transparent;
    }
    .pg-update-center-card[data-item-type="notice"] .pg-update-center-card-badge {
      border: 0;
      color: rgba(245,193,108,.76);
      background: transparent;
    }
    .pg-personal-message-toolbar {
      min-height: 28px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      color: rgba(226,236,241,.48);
      font-family: inherit;
      font-size: 9px;
      letter-spacing: .12em;
    }
    .pg-personal-message-toolbar button {
      padding: 0 0 3px;
      border: 0;
      border-bottom: 1px solid rgba(126,238,224,.48);
      color: #8fe9dd;
      background: transparent;
      font: inherit;
      letter-spacing: .06em;
      cursor: pointer;
    }
    .pg-personal-message-toolbar button:hover,
    .pg-personal-message-toolbar button:focus-visible {
      border-bottom-color: #f7fbff;
      color: #f7fbff;
      outline: none;
    }
    .pg-personal-message-group,
    .pg-personal-message-group.is-expanded {
      flex: 0 0 auto;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 14px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.015)),
        rgba(5,9,15,.38);
      box-shadow: 0 14px 32px rgba(0,0,0,.12);
    }
    .pg-personal-message-group:last-child {
      border-bottom-color: rgba(255,255,255,.09);
    }
    .pg-personal-message-group-toggle {
      min-height: 52px;
      padding: 10px 12px;
      background: rgba(85,205,196,.04);
    }
    .pg-personal-message-group-toggle:hover,
    .pg-personal-message-group-toggle:focus-visible {
      background: transparent;
    }
    .pg-personal-message-group-toggle > span:first-child::before,
    .pg-personal-message-group[data-message-category*="推广"] .pg-personal-message-group-toggle > span:first-child::before {
      content: attr(data-message-index);
      width: 27px;
      height: 27px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(126,238,224,.18);
      border-radius: 8px;
      color: #8fe9dd;
      background: rgba(85,205,196,.07);
      box-shadow: none;
      font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
      font-size: 9px;
      letter-spacing: .08em;
    }
    .pg-personal-message-group-toggle strong {
      color: #f7fbff;
      font-size: 15px;
      font-weight: 680;
      letter-spacing: -.015em;
    }
    .pg-personal-message-group-toggle small {
      color: rgba(226,232,235,.42);
      font-family: inherit;
      font-size: 9px;
    }
    .pg-personal-message-group-toggle em {
      color: rgba(226,232,235,.44);
      font-size: 10px;
      font-style: normal;
      font-weight: 550;
    }
    .pg-personal-message-group-toggle b {
      color: #ffd18a;
      background: rgba(245,193,108,.08);
    }
    .pg-personal-message-group-toggle i {
      border-color: rgba(247,251,255,.5);
    }
    .pg-personal-message-group-list {
      flex: 0 0 auto;
      gap: 0;
      margin-left: 0;
      padding: 0 14px 12px 52px;
    }
    .pg-personal-message-group-list[hidden] {
      display: none;
    }
    .pg-personal-message-card {
      padding: 15px 34px 14px 0;
      border: 0;
      border-top: 1px solid rgba(255,255,255,.075);
      border-radius: 0;
      background: transparent;
    }
    .pg-personal-message-card:hover,
    .pg-personal-message-card:focus-visible,
    .pg-personal-message-card.is-unread {
      border-color: rgba(126,238,224,.12);
      background: rgba(85,205,196,.025);
      transform: none;
    }
    .pg-personal-message-card.is-unread::before {
      left: -15px;
      top: 20px;
      width: 5px;
      height: 5px;
      background: #f5c16c;
    }
    .pg-personal-message-card-head strong {
      color: rgba(247,251,255,.94);
      font-size: 13px;
    }
    .pg-personal-message-preview {
      color: rgba(225,231,234,.58);
    }
    .pg-personal-message-meta b {
      padding: 0;
      color: #ffd18a;
      background: transparent;
    }
    .pg-personal-message-dialog {
      padding: 20px;
    }
    .pg-personal-message-panel {
      position: relative;
      box-sizing: border-box;
      width: 100%;
      max-height: min(760px, calc(100dvh - 40px));
      display: grid;
      grid-template-rows: minmax(0, 1fr);
      margin: auto;
      padding: 22px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(20,28,40,.99), rgba(10,14,22,.99));
      color: #f7fbff;
      box-shadow: 0 30px 90px rgba(0,0,0,.56);
    }
    .pg-personal-message-panel > .pg-update-center-close {
      position: absolute;
      top: 18px;
      right: 18px;
      z-index: 2;
    }
    [data-personal-message-thread] {
      min-height: 0;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto auto;
      gap: 14px;
      overflow: hidden;
    }
    .pg-personal-message-thread-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 48px;
      padding-right: 24px;
    }
    .pg-personal-message-thread-head span {
      color: #8ff0e6;
      font-size: 11px;
      font-weight: 900;
    }
    .pg-personal-message-thread-head h2 {
      margin: 5px 0 0;
      font-size: 20px;
    }
    .pg-personal-message-thread-head > b {
      padding: 5px 9px;
      border-radius: 999px;
      background: rgba(245,193,108,.12);
      color: #ffd79c;
      font-size: 11px;
      white-space: nowrap;
    }
    .pg-personal-message-thread-list {
      min-height: 0;
      max-height: 430px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      overflow: auto;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 12px;
      background: rgba(255,255,255,.025);
    }
    .pg-personal-message-bubble {
      box-sizing: border-box;
      width: min(86%, 520px);
      display: grid;
      gap: 6px;
      align-self: flex-start;
      padding: 10px 12px;
      border-radius: 4px 12px 12px 12px;
      background: rgba(255,255,255,.08);
    }
    .pg-personal-message-bubble.is-mine {
      align-self: flex-end;
      border-radius: 12px 4px 12px 12px;
      background: rgba(85,205,196,.16);
    }
    .pg-personal-message-bubble.is-decision {
      width: 100%;
      align-self: stretch;
      border: 1px solid rgba(245,193,108,.22);
      background: rgba(245,193,108,.08);
    }
    .pg-personal-message-bubble header {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      color: rgba(247,251,255,.56);
      font-size: 10px;
    }
    .pg-personal-message-bubble p {
      margin: 0;
      white-space: pre-wrap;
      word-break: break-word;
      font-size: 13px;
      line-height: 1.65;
    }
    .pg-personal-message-attachments {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
      gap: 8px;
      margin-top: 4px;
    }
    .pg-personal-message-attachments button {
      min-width: 0;
      padding: 0;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 9px;
      background: rgba(0,0,0,.2);
      cursor: zoom-in;
    }
    .pg-personal-message-attachments img {
      width: 100%;
      height: 92px;
      display: block;
      object-fit: cover;
      transition: transform .18s ease;
    }
    .pg-personal-message-attachments button:hover img,
    .pg-personal-message-attachments button:focus-visible img {
      transform: scale(1.035);
    }
    .pg-personal-message-image-lightbox {
      position: fixed;
      inset: 0;
      z-index: 2147481900;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(2,5,10,.9);
      backdrop-filter: blur(14px);
    }
    .pg-personal-message-image-lightbox section {
      position: relative;
      width: min(1120px, calc(100vw - 48px));
      height: min(860px, calc(100vh - 48px));
      display: grid;
      place-items: center;
    }
    .pg-personal-message-image-lightbox img {
      max-width: 100%;
      max-height: 100%;
      display: block;
      object-fit: contain;
      border-radius: 10px;
      box-shadow: 0 28px 80px rgba(0,0,0,.55);
    }
    .pg-personal-message-image-lightbox .pg-update-center-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 1;
    }
    .pg-personal-message-reply {
      display: grid;
      gap: 8px;
    }
    .pg-personal-message-reply textarea {
      box-sizing: border-box;
      width: 100%;
      min-height: 86px;
      resize: vertical;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 10px;
      padding: 10px 12px;
      background: rgba(0,0,0,.2);
      color: #fff;
      font: inherit;
    }
    .pg-personal-message-reply > div,
    .pg-personal-message-thread-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }
    .pg-personal-message-reply [role="alert"] {
      margin-right: auto;
      color: #ffb6b6;
      font-size: 12px;
    }
    .pg-personal-message-thread-actions a {
      text-decoration: none;
    }
    @media (max-width: 600px) {
      .pg-personal-message-thread-head {
        gap: 12px;
        padding-right: 36px;
      }
    }
    .pg-cloud-btn.danger {
      border-color: rgba(255,106,106,.44);
      color: #fff;
      background: linear-gradient(135deg, #e5484d, #ff6b6b);
      box-shadow: 0 10px 24px rgba(229,72,77,.24);
    }
    .pg-cloud-btn.danger:hover,
    .pg-cloud-btn.danger:focus-visible {
      border-color: rgba(255,160,160,.72);
      background: linear-gradient(135deg, #ff4d55, #ff7a7a);
      filter: brightness(1.03);
    }
    @media (max-width: 1120px) {
      .pg-home-title { font-size: 40px; }
      .pg-home-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 12px;
      }
      .pg-home-copy {
        min-height: 0;
        padding: 18px 22px 14px;
      }
      .pg-home-immersive-hint {
        margin-left: 0;
      }
      .pg-home-flow-panel {
        order: 2;
        width: 100%;
        justify-self: stretch;
      }
      .pg-home-composer {
        margin-top: 30px;
      }
    }
    @media (max-width: 780px) {
      .pg-cloud-bar { flex-wrap: wrap; padding: 10px 12px; }
      .pg-project-picker { flex-basis: min(260px, calc(100vw - 138px)); max-width: calc(100vw - 138px); }
      .pg-account-menu { max-width: calc(100vw - 92px); }
      .pg-update-center {
        width: min(100vw, 100%);
        padding: 0;
      }
      .pg-update-center-head {
        padding: 22px 18px 17px;
      }
      .pg-update-center-tabs {
        padding: 0 10px;
      }
      .pg-update-center-list {
        padding: 16px 12px 24px;
      }
      .pg-settings-overlay { padding: 12px; }
      .pg-settings-dialog { max-height: calc(100vh - 24px); }
      .pg-settings-header,
      .pg-settings-footer,
      .pg-settings-body { padding-left: 14px; padding-right: 14px; }
      .pg-settings-footer { flex-wrap: wrap; }
      .pg-settings-clear-key { width: 100%; margin-right: 0; }
      .pg-settings-key-row { align-items: stretch; flex-direction: column; }
      .pg-provider-auth-row > span { align-items: flex-start; flex-direction: column; }
      .pg-provider-auth-actions,
      [data-provider-auth="jimeng"] .pg-provider-auth-actions {
        grid-template-columns: 1fr;
      }
      .pg-home-page {
        --pg-home-pad-left: 18px;
        --pg-home-pad-right: 18px;
        padding-top: 22px;
        padding-bottom: 48px;
      }
      .pg-home-inner,
      .pg-home-composer {
        width: min(100%, calc(100vw - var(--pg-home-pad-left) - var(--pg-home-pad-right)));
      }
      .pg-home-composer {
        margin-top: 30px;
      }
      .pg-home-copy {
        min-height: 0;
        padding: 20px 18px;
      }
      .pg-home-immersive-hint { display: none; }
      .pg-home-immersive-keys {
        min-width: 70px;
      }
      .pg-home-immersive-key {
        min-width: 66px;
        height: 30px;
        padding: 0 8px;
      }
      .pg-home-title { font-size: 32px; }
      .pg-home-brandline { max-width: 100%; }
      .pg-home-capabilities {
        width: 100%;
        border-radius: 18px;
      }
      .pg-home-capability {
        flex: 1;
        justify-content: center;
        min-width: 0;
      }
      .pg-home-composer-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .pg-home-start-toggle { width: 100%; }
      .pg-home-start-option { flex: 1; min-width: 0; }
      .pg-home-composer-meta { white-space: normal; }
      .pg-home-composer-body { grid-template-columns: 1fr; }
      .pg-home-composer-actions { width: 100%; }
      .pg-home-upload,
      .pg-home-send { flex: 1 1 0; min-height: 46px; }
      .pg-home-mode-guide { grid-template-columns: 1fr; }
      .pg-home-mode-guide-detail > div {
        grid-template-columns: repeat(var(--pg-home-guide-items), minmax(82px, 1fr));
        overflow-x: auto;
        scrollbar-width: thin;
      }
      .pg-home-mode-guide > p {
        display: -webkit-box;
        min-height: 22px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
      }
      .pg-home-flow-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 7px 5px;
      }
      .pg-home-flow-step {
        align-content: center;
        padding: 0 5px;
      }
      .pg-home-flow-step + .pg-home-flow-step {
        border-left: 1px solid rgba(255,255,255,.08);
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
      }
      .pg-home-flow-index {
        width: 22px;
        height: 20px;
        font-size: 9px;
      }
      .pg-home-flow-title { font-size: 11px; }
      .pg-home-flow-text { display: none; }
      .pg-home-preview-strip img { height: 36px; }
      .pg-home-section-head {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
      }
      [data-home-project-search] { grid-column: 1 / -1; width: min(280px, 100%); }
      .pg-home-new-project-btn { width: 100%; }
      .pg-project-grid { grid-template-columns: 1fr; }
      .pg-showcase-head {
        align-items: stretch;
        flex-direction: column;
      }
      .pg-showcase-tools { width: 100%; }
      .pg-showcase-search { width: 100%; }
      .pg-showcase-grid { grid-template-columns: 1fr; }
      .pg-showcase-modal {
        align-items: end;
        padding: 12px;
      }
      .pg-showcase-dialog {
        max-height: calc(100vh - 24px);
        grid-template-columns: 1fr;
      }
      .pg-showcase-media { min-height: 260px; }
      /* 窄屏改为单列，播放框按视频比例自适应宽度（不套用桌面端算出来的像素） */
      .pg-showcase-dialog.has-ratio {
        width: 100%;
        grid-template-columns: 1fr;
      }
      .pg-showcase-dialog.has-ratio .pg-showcase-media {
        /* 窄屏竖屏：宽度也按比例收窄并居中，不让播放框被拦腰截断留出黑边 */
        width: min(100%, calc(58vh * var(--pg-showcase-ratio, 1)));
        margin-inline: auto;
        height: auto;
        min-height: 0;
        max-height: 58vh;
        aspect-ratio: var(--pg-showcase-ratio, 16 / 9);
      }
      .pg-showcase-detail { padding: 14px; }
      .pg-showcase-detail h2 { font-size: 20px; }
    }
    @media (max-width: 520px) {
      .pg-home-flow-panel {
        grid-template-rows: auto auto 36px;
        min-height: auto;
      }
      .pg-home-flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
      }
      .pg-home-flow-step,
      .pg-home-flow-step + .pg-home-flow-step {
        min-height: 54px;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 12px;
        background: rgba(2,6,12,.24);
      }
      .pg-home-preview-strip img { height: 34px; }
    }
    @media (min-width: 761px) {
      .workflow-steps { top: var(--pg-cloud-bar-height, 0px) !important; }
    }

/* frontend-src/styles/app-shell/02z-session-replacement.css */
    .pg-session-replaced-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147483000;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(4, 8, 14, .78);
      backdrop-filter: blur(20px) saturate(1.1);
    }
    .pg-session-replaced-dialog {
      width: min(440px, 100%);
      padding: 28px;
      border: 1px solid var(--pg-modal-border);
      border-radius: 18px;
      color: #f7fbff;
      text-align: center;
      background: var(--pg-modal-glass), var(--pg-modal-surface);
      box-shadow: var(--pg-modal-shadow);
    }
    .pg-session-replaced-dialog h2 {
      margin: 0 0 10px;
      font-size: 24px;
      line-height: 1.3;
      letter-spacing: 0;
    }
    .pg-session-replaced-dialog p {
      margin: 0 0 22px;
      color: rgba(226, 235, 239, .68);
      font-size: 13px;
      line-height: 1.6;
    }
    .pg-session-replaced-dialog button {
      min-width: 112px;
      min-height: 42px;
      border: 1px solid rgba(126, 238, 224, .48);
      border-radius: 10px;
      color: #071411;
      background: var(--pg-modal-primary);
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }
    .pg-session-replaced-dialog button:focus-visible {
      outline: 3px solid rgba(126, 238, 224, .22);
      outline-offset: 3px;
    }

/* frontend-src/styles/app-shell/03-profile-page.css */
    /* Profile is a route-level account page, not a modal surface. */
    .pg-profile-backdrop {
      --profile-bg: #050b0b;
      --profile-panel: rgba(11, 20, 20, .82);
      --profile-line: rgba(196, 255, 229, .13);
      --profile-text: #f2f8f5;
      --profile-muted: rgba(228, 241, 235, .58);
      --profile-mint: #8df0c8;
      --profile-gold: #e6c27a;
      isolation: isolate;
      min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      padding: 0;
      overflow: visible;
      overflow-x: clip;
      color: var(--profile-text);
      background:
        radial-gradient(circle at 78% -10%, rgba(70, 179, 139, .13), transparent 37%),
        var(--profile-bg);
    }
    .pg-profile-backdrop::before {
      content: "";
      position: absolute;
      z-index: 0;
      inset: 0;
      pointer-events: none;
      opacity: .22;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: linear-gradient(to bottom, #000, transparent 78%);
    }
    .pg-profile-backdrop::after {
      content: "";
      position: absolute;
      z-index: 0;
      top: 10vh;
      right: -15vw;
      width: 34vw;
      height: 34vw;
      min-width: 360px;
      min-height: 360px;
      border: 1px solid rgba(141,240,200,.12);
      border-radius: 50%;
      box-shadow: 0 0 120px rgba(64,187,139,.08) inset;
      pointer-events: none;
    }
    .pg-profile-backdrop > .pg-profile-dialog {
      position: relative;
      z-index: 1;
      width: min(1180px, calc(100% - 44px));
      min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      margin: 0 auto;
      display: block;
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      color: var(--profile-text);
      font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
    }
    .pg-profile-backdrop > .pg-profile-dialog::before,
    .pg-profile-backdrop > .pg-profile-dialog::after {
      content: none;
    }
    .pg-profile-backdrop > .pg-profile-dialog > * {
      position: relative;
      z-index: auto;
    }
    .pg-profile-page > .pg-profile-head {
      position: relative;
      min-height: 136px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 28px;
      padding: 16px 6px 22px;
      border: 0;
    }
    .pg-profile-hero-copy {
      min-width: 0;
    }
    .pg-profile-page .pg-profile-eyebrow {
      margin: 0 0 7px;
      color: var(--profile-mint);
      font: 600 9px/1.3 ui-monospace, "SFMono-Regular", monospace;
      letter-spacing: .22em;
    }
    .pg-profile-page .pg-profile-head h1 {
      max-width: 760px;
      margin: 0;
      color: var(--profile-text);
      font: 400 clamp(32px, 4vw, 48px)/1.04 Georgia, "Songti SC", serif;
      letter-spacing: 0;
    }
    .pg-profile-page .pg-profile-head h1 em {
      color: var(--profile-mint);
      font-style: normal;
    }
    .pg-profile-page .pg-profile-head [data-profile-subtitle] {
      max-width: 650px;
      margin: 9px 0 0;
      color: var(--profile-muted);
      font-size: 13px;
      line-height: 1.5;
    }
    .pg-profile-seal {
      width: 88px;
      height: 88px;
      flex: 0 0 auto;
      display: grid;
      place-content: center;
      justify-items: center;
      border: 1px dashed rgba(141,240,200,.3);
      border-radius: 50%;
      box-shadow: 0 0 60px rgba(62,178,135,.08);
    }
    .pg-profile-seal span {
      color: var(--profile-text);
      font: 400 28px/1 Georgia, serif;
    }
    .pg-profile-seal small {
      margin-top: 5px;
      color: var(--profile-muted);
      font: 600 7px/1 ui-monospace, monospace;
      letter-spacing: .2em;
    }
    .pg-profile-page > .pg-profile-body {
      padding: 0 0 28px;
      overflow: visible;
    }
    .pg-profile-layout {
      display: grid;
      grid-template-columns: 210px minmax(0, 1fr);
      gap: 38px;
      align-items: start;
    }
    .pg-profile-index {
      position: sticky;
      top: calc(var(--pg-cloud-bar-height, 0px) + 28px);
      max-height: 100%;
      padding: 24px 0;
      border-top: 1px solid var(--profile-line);
    }
    .pg-profile-index > p {
      margin: 0 0 22px;
      color: rgba(238,248,243,.35);
      font: 600 9px/1 ui-monospace, monospace;
      letter-spacing: .25em;
    }
    .pg-profile-index-group {
      display: grid;
      margin-top: 20px;
    }
    .pg-profile-index-group:first-of-type {
      margin-top: 0;
    }
    .pg-profile-index-group > span {
      margin-bottom: 5px;
      color: rgba(141,240,200,.62);
      font: 600 9px/1.4 ui-monospace, monospace;
      letter-spacing: .16em;
    }
    .pg-profile-index-group > a {
      position: relative;
      display: block;
      padding: 11px 0 11px 18px;
      color: var(--profile-muted);
      font-size: 13px;
    }
    .pg-profile-index-group > a::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      width: 5px;
      height: 1px;
      background: var(--profile-muted);
      transition: .2s ease;
    }
    .pg-profile-index-group > a:hover {
      color: var(--profile-text);
    }
    .pg-profile-index-group > a.is-active,
    .pg-profile-index-group > a[aria-current="page"] {
      color: var(--profile-text);
    }
    .pg-profile-index-group > a:hover::before {
      width: 11px;
      background: var(--profile-mint);
    }
    .pg-profile-index-group > a.is-active::before,
    .pg-profile-index-group > a[aria-current="page"]::before {
      width: 11px;
      height: 2px;
      background: var(--profile-mint);
      box-shadow: 0 0 10px rgba(141,240,200,.45);
    }
    .pg-profile-index-note {
      margin-top: 30px;
      padding: 16px;
      border: 1px solid rgba(141,240,200,.12);
      background: rgba(141,240,200,.035);
      color: rgba(221,245,235,.62);
      font-size: 11px;
      line-height: 1.6;
    }
    .pg-profile-index-note span {
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-right: 8px;
      border-radius: 50%;
      background: var(--profile-mint);
      box-shadow: 0 0 10px var(--profile-mint);
    }
    .pg-profile-stack,
    .pg-profile-section-stack {
      min-width: 0;
      display: grid;
      gap: 24px;
    }
    .pg-profile-stack {
      align-content: start;
      box-sizing: border-box;
      overflow: visible;
      padding: 0 6px 64px 0;
    }
    .pg-profile-stack > [data-profile-section][hidden] {
      display: none;
    }
    #profile-overview,
    #profile-recent-tasks,
    #profile-active-tasks,
    #profile-promotion {
      scroll-margin-top: calc(var(--pg-cloud-bar-height, 0px) + 24px);
    }
    .pg-profile-overview,
    .pg-profile-history-panel,
    .pg-profile-stack > .pg-profile-card,
    .pg-profile-section-stack > .pg-profile-card {
      min-width: 0;
      border: 1px solid var(--profile-line);
      border-radius: 0;
      background: linear-gradient(145deg, rgba(16,28,27,.88), rgba(7,14,14,.82));
      box-shadow: 0 22px 80px rgba(0,0,0,.16);
    }
    .pg-profile-section-head {
      min-height: 96px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 24px 30px;
      border-bottom: 1px solid var(--profile-line);
    }
    .pg-profile-section-head p {
      margin: 0 0 8px;
      color: var(--profile-mint);
      font: 600 10px/1.4 ui-monospace, "SFMono-Regular", monospace;
      letter-spacing: .22em;
    }
    .pg-profile-section-head h2 {
      margin: 0;
      color: var(--profile-text);
      font: 400 24px/1.2 Georgia, "Songti SC", serif;
    }
    .pg-profile-section-head > span {
      padding: 7px 11px;
      border: 1px solid rgba(141,240,200,.2);
      color: var(--profile-mint);
      font-size: 10px;
      letter-spacing: .08em;
    }
    .pg-profile-page .pg-profile-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
    }
    .pg-profile-page .pg-profile-tools-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pg-profile-page .pg-profile-grid > .pg-profile-card {
      min-height: 150px;
      padding: 26px 30px;
      border: 0;
      border-right: 1px solid var(--profile-line);
      border-radius: 0;
      background: transparent;
    }
    .pg-profile-page .pg-profile-grid > .pg-profile-card:last-child {
      border-right: 0;
    }
    .pg-profile-page .pg-profile-card {
      color: var(--profile-text);
    }
    .pg-profile-stack > .pg-profile-card,
    .pg-profile-section-stack > .pg-profile-card {
      padding: 28px 30px;
    }
    .pg-profile-history-content {
      padding: 0 30px;
    }
    .pg-profile-history-head {
      align-items: flex-end;
    }
    .pg-profile-history-toolbar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      color: var(--profile-muted);
      font-size: 11px;
    }
    .pg-profile-history-toolbar > span {
      color: var(--profile-muted);
    }
    .pg-profile-history-toolbar label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .pg-profile-page-size {
      height: 34px;
      padding: 0 28px 0 10px;
      border: 1px solid var(--profile-line);
      border-radius: 0;
      background: #07100f;
      color: var(--profile-text);
      font: inherit;
    }
    .pg-profile-pagination {
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: var(--profile-muted);
      font-size: 11px;
    }
    .pg-profile-pagination > div {
      display: flex;
      gap: 8px;
    }
    .pg-profile-pagination .pg-cloud-btn {
      min-width: 70px;
    }
    .pg-profile-group-head {
      padding: 4px 2px 0;
    }
    .pg-profile-promotion-actions {
      margin: 18px 0 24px;
      border: 1px solid var(--profile-line);
      background: rgba(141,240,200,.025);
    }
    .pg-withdrawal-rules {
      display: grid;
      gap: 10px;
      margin-top: 18px;
      padding: 16px 18px;
      border: 1px solid rgba(141,240,200,.12);
      background: rgba(141,240,200,.035);
    }
    .pg-withdrawal-rules p {
      margin: 0;
      font-size: 12px;
    }
    .pg-withdrawal-rules strong {
      color: var(--profile-mint);
    }
    .pg-profile-promotion-overview {
      margin: 0 0 18px;
      padding: 18px 22px;
      border: 1px solid rgba(141,240,200,.18);
      background: linear-gradient(145deg, rgba(16,31,28,.82), rgba(7,14,14,.68));
    }
    .pg-profile-promotion-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      margin-top: 14px;
      border: 1px solid rgba(196,255,229,.1);
      background: rgba(196,255,229,.1);
    }
    .pg-profile-promotion-metrics > div {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 10px 12px;
      background: rgba(7,15,14,.86);
    }
    .pg-profile-promotion-metrics b {
      color: rgba(228,241,235,.48);
      font-size: 10px;
      font-weight: 500;
    }
    .pg-profile-promotion-metrics strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--profile-text);
      font: 600 15px/1.2 Inter, "PingFang SC", sans-serif;
    }
    .pg-profile-invite-toolbar {
      display: flex;
      justify-content: flex-end;
      margin: 0 0 8px;
    }
    .pg-profile-invite-pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 10px;
      color: var(--profile-muted);
      font-size: 11px;
    }
    .pg-profile-invite-pagination > div {
      display: flex;
      gap: 6px;
    }
    .pg-profile-invite-pagination .pg-cloud-btn {
      min-height: 28px;
      padding: 4px 9px;
      font-size: 11px;
    }
    .pg-profile-page .pg-profile-invite-list,
    .pg-profile-page .pg-earnings-ledger {
      max-height: none;
      overflow: visible;
    }
    .pg-profile-page .pg-profile-invite-list { gap: 4px; }
    .pg-profile-page .pg-profile-invite-item {
      grid-template-columns: minmax(130px, .85fr) minmax(0, 2.4fr) auto;
      align-items: center;
      gap: 10px;
      padding: 7px 9px;
      border-radius: 4px;
    }
    .pg-profile-page .pg-profile-invite-main { align-items: center; }
    .pg-profile-page .pg-profile-invite-code { font-size: 12px; }
    .pg-profile-page .pg-profile-status {
      min-height: 18px;
      padding: 2px 6px;
      font-size: 10px;
    }
    .pg-profile-page .pg-profile-invite-meta {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 8px;
    }
    .pg-profile-page .pg-profile-invite-meta span {
      min-width: 0;
      padding: 0;
      overflow: hidden;
      border: 0;
      border-radius: 0;
      background: transparent;
      font-size: 10px;
      line-height: 1.3;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-profile-page .pg-profile-invite-actions { gap: 5px; }
    .pg-profile-page .pg-profile-invite-actions .pg-cloud-btn {
      min-height: 26px;
      padding: 4px 8px;
      font-size: 10px;
    }
    .pg-profile-page .pg-referral-tree { gap: 6px; }
    .pg-profile-page .pg-referral-branches { gap: 5px; }
    .pg-profile-page .pg-referral-node {
      gap: 5px;
      padding: 7px 9px;
      border-radius: 4px;
    }
    .pg-profile-page .pg-referral-meta { gap: 4px; }
    .pg-profile-page .pg-referral-meta span {
      padding: 3px 5px;
      border-radius: 4px;
      font-size: 10px;
      line-height: 1.3;
    }
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge {
      border-radius: 999px;
      font-weight: 900;
    }
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge.is-free_trial {
      border-color: rgba(85,205,196,.5);
      color: #8ff0e6;
      background: rgba(85,205,196,.12);
    }
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge.is-vip,
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge.is-svip,
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge.is-enterprise_vip {
      border-color: rgba(245,194,107,.5);
      color: #ffd88d;
      background: rgba(245,194,107,.12);
    }
    .pg-profile-page .pg-referral-meta .pg-referral-membership-badge.is-lifetime_svip {
      border-color: rgba(255, 99, 99, .62);
      color: #ff9b9b;
      background: rgba(255, 74, 74, .14);
    }
    .pg-profile-page .pg-earnings-ledger { gap: 4px; }
    .pg-profile-page .pg-earnings-row {
      gap: 8px;
      padding: 7px 9px;
      border-radius: 4px;
    }
    .pg-profile-page .pg-earnings-main { gap: 3px; }
    .pg-profile-page .pg-earnings-main span { font-size: 10px; }
    .pg-profile-page .pg-earnings-metrics { gap: 4px; }
    .pg-profile-page .pg-earnings-metric {
      gap: 2px;
      padding: 4px 5px;
      border-radius: 4px;
      font-size: 10px;
      line-height: 1.25;
    }
    .pg-profile-page .pg-earnings-metric b { font-size: 9px; }
    .pg-profile-group-head p {
      margin: 0 0 7px;
      color: var(--profile-mint);
      font: 600 10px/1.4 ui-monospace, monospace;
      letter-spacing: .18em;
    }
    .pg-profile-group-head h2 {
      margin: 0;
      color: var(--profile-text);
      font: 400 24px/1.2 Georgia, "Songti SC", serif;
      letter-spacing: 0;
    }
    .pg-profile-page .pg-profile-card > strong,
    .pg-profile-page .pg-profile-card-headline strong {
      margin: 0 0 8px;
      color: var(--profile-text);
      font: 400 21px/1.25 Georgia, "Songti SC", serif;
    }
    .pg-profile-page .pg-profile-card p,
    .pg-profile-page .pg-profile-card span {
      color: var(--profile-muted);
      line-height: 1.65;
    }
    .pg-profile-page .pg-profile-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 22px 30px;
      border-top: 1px solid var(--profile-line);
    }
    .pg-profile-page .pg-profile-card .pg-profile-actions {
      padding: 18px 0 0;
      border-top: 0;
    }
    .pg-profile-page .pg-cloud-btn {
      min-height: 40px;
      padding: 0 18px;
      border: 1px solid rgba(196,255,229,.18);
      border-radius: 0;
      background: rgba(255,255,255,.03);
      box-shadow: none;
      color: rgba(241,249,245,.82);
      font-size: 12px;
      font-weight: 500;
      transition: border-color .2s, color .2s, transform .2s;
    }
    .pg-profile-page .pg-cloud-btn:hover:not(:disabled) {
      border-color: rgba(141,240,200,.4);
      color: #fff;
      transform: translateY(-1px);
    }
    .pg-profile-page .pg-cloud-btn.primary {
      border-color: transparent;
      background: linear-gradient(135deg, #b7f6dc, #6fd5ad);
      box-shadow: 0 10px 30px rgba(73,198,149,.15);
      color: #07100d;
      font-weight: 700;
    }
    .pg-profile-page .pg-cloud-btn.danger {
      border-color: rgba(255,157,152,.24);
      color: #ffb0ab;
    }
    .pg-profile-page .pg-cloud-select {
      min-height: 42px;
      border: 1px solid var(--profile-line);
      border-radius: 0;
      background: rgba(2,7,7,.52);
      color: var(--profile-text);
    }
    .pg-profile-page .pg-storage-meter {
      height: 4px;
      margin-top: 16px;
      border-radius: 0;
      background: rgba(255,255,255,.08);
    }
    .pg-profile-page .pg-storage-meter-fill {
      border-radius: 0;
      background: linear-gradient(90deg, var(--profile-mint), var(--profile-gold));
    }
    .pg-profile-page .pg-profile-list {
      display: grid;
      gap: 0;
      max-height: none;
      overflow: visible;
      margin-top: 18px;
      border-bottom: 1px solid rgba(196,255,229,.08);
    }
    .pg-profile-page .pg-profile-row {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 17px 0;
      border: 0;
      border-top: 1px solid rgba(196,255,229,.08);
      border-radius: 0;
      background: transparent;
      font-size: 12px;
    }
    .pg-profile-page .pg-profile-task-row {
      align-items: flex-start;
    }
    .pg-profile-page .pg-profile-task-actions {
      min-width: 220px;
      align-items: flex-end;
      text-align: right;
    }
    .pg-profile-page .pg-profile-history-row > div:first-child {
      min-width: 0;
      flex: 1;
    }
    .pg-profile-page .pg-profile-task-steps {
      display: block;
      margin-top: 6px;
      color: rgba(247,251,255,.62);
      line-height: 1.55;
    }
    .pg-profile-page .pg-profile-task-diagnostics {
      margin-top: 8px;
      color: rgba(247,251,255,.72);
    }
    .pg-profile-page .pg-profile-task-diagnostics summary {
      width: fit-content;
      cursor: pointer;
      color: var(--profile-mint);
    }
    .pg-profile-page .pg-profile-task-diagnostics pre {
      max-width: 100%;
      max-height: 240px;
      margin: 10px 0 0;
      padding: 12px;
      overflow: auto;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      border: 1px solid rgba(196,255,229,.12);
      background: rgba(0,0,0,.18);
      color: rgba(247,251,255,.78);
      font: inherit;
    }

    @media (max-width: 1000px) and (min-width: 901px) {
      .pg-profile-page .pg-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 900px) {
      .pg-profile-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
      }
      .pg-profile-index {
        position: static;
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 10px 0;
        overflow-x: auto;
        border-bottom: 1px solid var(--profile-line);
        scrollbar-width: thin;
      }
      .pg-profile-index > p,
      .pg-profile-index-note,
      .pg-profile-index-group > span {
        display: none;
      }
      .pg-profile-index-group,
      .pg-profile-index-group:first-of-type {
        display: flex;
        flex: 0 0 auto;
        margin: 0;
      }
      .pg-profile-index-group > a {
        padding: 9px 12px;
        border: 1px solid var(--profile-line);
      }
      .pg-profile-index-group > a::before {
        content: none;
      }
      .pg-profile-seal {
        width: 76px;
        height: 76px;
      }
      .pg-profile-page .pg-profile-grid > .pg-profile-card {
        border-bottom: 1px solid var(--profile-line);
      }
    }

    @media (max-width: 680px) {
      .pg-profile-promotion-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .pg-profile-page .pg-profile-invite-item { grid-template-columns: 1fr; }
      .pg-profile-page .pg-profile-invite-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .pg-profile-backdrop > .pg-profile-dialog {
        width: min(100% - 24px, 1180px);
      }
      .pg-profile-page > .pg-profile-head {
        min-height: 118px;
        padding: 14px 4px 18px;
      }
      .pg-profile-page .pg-profile-head h1 {
        font-size: 34px;
      }
      .pg-profile-seal {
        display: none;
      }
      .pg-profile-section-head {
        min-height: 84px;
        padding: 20px;
      }
      .pg-profile-section-head > span {
        display: none;
      }
      .pg-profile-page .pg-profile-grid {
        grid-template-columns: 1fr;
      }
      .pg-profile-page .pg-profile-grid > .pg-profile-card,
      .pg-profile-page .pg-profile-grid > .pg-profile-card:last-child {
        min-height: 0;
        padding: 22px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--profile-line);
      }
      .pg-profile-stack > .pg-profile-card,
      .pg-profile-section-stack > .pg-profile-card {
        padding: 24px 20px;
      }
      .pg-profile-history-content {
        padding: 0 20px;
      }
      .pg-profile-history-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .pg-profile-history-toolbar {
        width: 100%;
        justify-content: space-between;
      }
      .pg-profile-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0 20px;
      }
      .pg-profile-page .pg-profile-actions {
        padding: 20px;
      }
      .pg-profile-page .pg-profile-row,
      .pg-profile-page .pg-profile-task-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }
      .pg-profile-page .pg-profile-task-actions {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
      }
    }

/* frontend-src/styles/app-shell/03a-withdrawal.css */
.pg-withdrawal-summary { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:24px 0 18px; color:#a5b7b2; }
.pg-profile-backdrop:has([data-withdrawal-form]) { overflow-x:clip; }
.pg-withdrawal-summary strong { color:#a0f4d7; font-size:22px; margin-left:10px; }
.pg-withdrawal-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.pg-withdrawal-fields label,.pg-withdrawal-account-select,.pg-withdrawal-note,.pg-withdrawal-invoice { display:flex; flex-direction:column; gap:9px; margin-bottom:18px; font-size:14px; color:#c9d5d3; }
[data-withdrawal-form] .pg-cloud-select,[data-withdrawal-account-dialog] .pg-cloud-select { display:block; width:100%; min-width:0; box-sizing:border-box; }
.pg-withdrawal-account-row { display:flex; align-items:flex-end; gap:16px; margin-bottom:18px; }
.pg-withdrawal-account-row .pg-withdrawal-account-select { flex:1; min-width:0; margin-bottom:0; }
.pg-withdrawal-account-row > button { flex:0 0 auto; }
[data-withdrawal-form] [hidden] { display:none !important; }
.pg-withdrawal-buyer { padding:20px 0; border-top:1px solid #263c36; border-bottom:1px solid #263c36; margin-bottom:20px; }
.pg-withdrawal-buyer>div { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.pg-withdrawal-buyer p,.pg-withdrawal-hint { font-size:13px; color:#91a7a0; line-height:1.8; overflow-wrap:anywhere; }
.pg-withdrawal-check { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#b5c7c0; margin:16px 0; line-height:1.8; }
.pg-withdrawal-check input { margin-top:6px; flex:0 0 auto; accent-color:#87e1c1; }
.pg-withdrawal-check a,.pg-withdrawal-tax-note a,.pg-withdrawal-record a { color:#8ce2ca; }
.pg-withdrawal-saved { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:16px 0 24px; }
.pg-withdrawal-saved span { overflow-wrap:anywhere; }
.pg-profile-modal-backdrop .pg-withdrawal-dialog { max-width:680px; grid-template-rows:auto minmax(0,1fr) auto; }
.pg-withdrawal-footer { padding:16px 28px; margin:0; border-top:1px solid #30453e; display:flex; gap:10px; }
.pg-withdrawal-dialog .pg-profile-body { display:block; padding:24px 28px; }
.pg-withdrawal-net { padding:6px 0 24px; border-bottom:1px solid #30453e; }
.pg-withdrawal-net span { display:block; font-size:14px; color:#b0c4bc; margin-bottom:10px; }
.pg-withdrawal-net strong { display:block; font-size:clamp(32px,5vw,44px); font-variant-numeric:tabular-nums; color:#9df0d2; line-height:1.2; }
.pg-withdrawal-breakdown { margin:16px 0 24px; font-size:14px; }
.pg-withdrawal-breakdown div { display:flex; justify-content:space-between; gap:16px; padding:9px 0; }
.pg-withdrawal-breakdown dt { color:#b0c4bc; }.pg-withdrawal-breakdown dd { margin:0; font-variant-numeric:tabular-nums; color:#edf5f0; }
.pg-withdrawal-tax-note { border-left:2px solid #cab96e; padding:2px 0 2px 16px; margin:24px 0; }
.pg-withdrawal-tax-note strong { color:#e2ce8b; font-size:14px; }
.pg-withdrawal-tax-note p,.pg-withdrawal-tax-note a,.pg-withdrawal-payee p { font-size:13px; line-height:1.8; color:#b6c6c0; margin:10px 0; overflow-wrap:anywhere; }
.pg-withdrawal-payee { border-top:1px solid #30453e; padding-top:20px; font-size:14px; }
.pg-withdrawal-record>div { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.pg-withdrawal-record { gap:20px; }.pg-withdrawal-record span { line-height:1.7; }
@media(max-width:600px) { .pg-withdrawal-fields { grid-template-columns:1fr; gap:0; }.pg-withdrawal-dialog .pg-profile-body { padding:20px; }.pg-withdrawal-saved,.pg-withdrawal-record,.pg-withdrawal-account-row { align-items:flex-start; flex-direction:column; }.pg-withdrawal-account-row .pg-withdrawal-account-select { width:100%; }.pg-withdrawal-record .pg-cloud-btn { white-space:normal; } }

/* frontend-src/styles/app-shell/04-commission-ledger.css */
.pg-commission-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: end;
}
.pg-commission-filters label { display: grid; gap: 6px; min-width: 0; font-size: 12px; }
.pg-commission-filters .pg-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color-scheme: dark;
  padding: 9px 10px;
  border: 1px solid rgba(139, 179, 166, .24);
  border-radius: 6px;
  background: #101c19;
  color: #e3eee8;
  font: inherit;
  min-height: 38px;
}
.pg-commission-filters .pg-input:focus { outline: 2px solid #83dcc2; outline-offset: 1px; }
.pg-commission-filters > div { display: flex; gap: 8px; }
.pg-commission-note { color: var(--pg-text-muted, #92a09d); font-size: 12px; line-height: 1.6; }
[data-commission-results] .pg-earnings-main span { overflow-wrap: anywhere; }
[data-commission-results] .pg-earnings-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-commission-net { color: #b3efd8; border: 1px solid rgba(131, 220, 194, .2); }
.pg-commission-refund-status { color: #e6cc93 !important; }
.pg-commission-refunds { grid-column: 1 / -1; min-width: 0; border-top: 1px solid rgba(139, 179, 166, .16); padding-top: 10px; font-size: 12px; }
.pg-commission-refunds summary { width: fit-content; cursor: pointer; color: #b3d9ce; padding: 4px 0; }
.pg-commission-refunds summary:focus-visible { outline: 2px solid #83dcc2; outline-offset: 4px; }
.pg-commission-refunds p { color: #a1afa9; line-height: 1.65; margin: 6px 0; }
.pg-commission-refunds ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.pg-commission-refunds li { padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, .035); overflow-wrap: anywhere; }
.pg-commission-refunds li > div { display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; }
.pg-commission-refunds li > span, .pg-commission-refunds time { color: #94a29c; line-height: 1.7; }
.pg-commission-refunds .pg-commission-history-note { color: #e6cc93; }
@media (max-width: 720px) {
  [data-commission-results] .pg-earnings-row { grid-template-columns: minmax(0, 1fr); }
  [data-commission-results] .pg-earnings-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-commission-results] .pg-earnings-metric { overflow-wrap: anywhere; }
  [data-commission-results] .pg-earnings-metric:last-child { grid-column: 1 / -1; }
  [data-commission-results] .pg-earnings-main span { white-space: normal; }
}
@media (max-width: 1050px) {
  .pg-commission-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-commission-filters > label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .pg-commission-filters { grid-template-columns: minmax(0, 1fr); }
}

/* frontend-src/styles/app-shell/04-feedback-community.css */
    .pg-support-backdrop { position: fixed; inset: 0; z-index: 2147481700; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 14, .72); }
    .pg-support-dialog { width: min(560px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(141, 224, 207, .32); border-radius: 14px; background: #101923; color: #f3fbfa; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
    .pg-support-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .pg-support-head span { color: #83dbc9; font-size: 11px; letter-spacing: .08em; font-weight: 800; }
    .pg-support-head h2 { margin: 8px 0 0; font-size: 22px; }
    .pg-support-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.7); font-size: 24px; cursor: pointer; }
    .pg-support-body { display: grid; gap: 12px; padding: 22px 24px 24px; }
    .pg-support-label { color: rgba(242,250,249,.78); font-size: 13px; font-weight: 800; }
    .pg-support-body textarea { min-height: 150px; resize: vertical; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px; background: rgba(0,0,0,.22); color: #fff; font: inherit; }
    .pg-feedback-meta, .pg-feedback-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(242,250,249,.52); font-size: 12px; }
    .pg-feedback-file-button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid rgba(131,219,201,.38); border-radius: 7px; color: #a9eee0; cursor: pointer; }
    .pg-feedback-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
    .pg-feedback-attachments { display: flex; flex-wrap: wrap; gap: 10px; }
    .pg-feedback-attachment { position: relative; width: 92px; height: 72px; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
    .pg-feedback-attachment img { width: 100%; height: 100%; object-fit: cover; }
    .pg-feedback-attachment button { position: absolute; right: 3px; bottom: 3px; border: 0; border-radius: 4px; padding: 2px 5px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; cursor: pointer; }
    .pg-support-primary { min-height: 42px; border: 0; border-radius: 9px; background: linear-gradient(120deg, #83dbc9, #e9c66e); color: #06120f; font-weight: 900; cursor: pointer; }
    .pg-support-primary:disabled { cursor: not-allowed; opacity: .45; }
    .pg-support-error { margin: 0; color: #ffaaa5; font-size: 13px; }
    .pg-support-muted, .pg-support-qr-hint { margin: 0; color: rgba(242,250,249,.68); line-height: 1.6; }
    .pg-support-success { display: grid; gap: 12px; text-align: center; padding: 28px 10px 8px; }
    .pg-support-success strong { font-size: 24px; color: #a9eee0; }
    .pg-support-success p { margin: 0 0 8px; color: rgba(242,250,249,.72); }
    .pg-community-dialog { width: min(460px, 100%); }
    .pg-community-qr { width: min(300px, 100%); aspect-ratio: 1; justify-self: center; object-fit: contain; border-radius: 8px; background: #fff; }
    .pg-support-qr-hint { text-align: center; }
    .pg-support-empty { display: grid; gap: 8px; min-height: 190px; place-items: center; align-content: center; text-align: center; }
    .pg-support-empty strong { color: #e9c66e; font-size: 20px; }
    @media (max-width: 600px) { .pg-support-backdrop { padding: 12px; } .pg-support-head, .pg-support-body { padding-left: 16px; padding-right: 16px; } .pg-support-head h2 { font-size: 19px; } }

/* frontend-src/styles/app-shell/04-invite-link.css */
    .pg-auth-form input[data-auth-invite-autofilled]:disabled { opacity: 1; color: #8df0c8; -webkit-text-fill-color: #8df0c8; cursor: default; user-select: none; }
    .pg-profile-page .pg-profile-invite-link { display: grid; gap: 10px; padding: 18px 26px; }
    .pg-invite-link-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
    .pg-invite-link-heading > strong { font: 400 18px/1.4 Georgia, "Songti SC", serif; }
    .pg-invite-link-heading > span { color: var(--profile-muted); font-size: 11px; }
    .pg-invite-link-row { display: flex; align-items: center; gap: 12px 20px; min-width: 0; }
    .pg-invite-link-text { flex: 1; min-width: 0; color: var(--profile-text); font: 12px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; user-select: text; }
    .pg-invite-link-text:focus-visible { outline: 1px dashed var(--profile-mint); outline-offset: 3px; }
    .pg-invite-link-empty { flex: 1; color: var(--profile-muted); font-size: 12px; }
    .pg-profile-invite-link .pg-profile-actions { flex-shrink: 0; gap: 8px; margin: 0; }
    .pg-profile-page .pg-profile-invite-link .pg-invite-link-note { margin: 0; color: var(--profile-muted); font-size: 11px; line-height: 1.6; }
    @media (max-width: 640px) {
      .pg-profile-page .pg-profile-invite-link { padding: 16px 18px; }
      .pg-invite-link-row { align-items: stretch; flex-direction: column; gap: 10px; }
    }

/* frontend-src/styles/app-shell/05-auth-feedback.css */
    .pg-auth-panel {
      max-height: calc(100dvh - 48px);
      overflow-x: hidden;
      overflow-y: auto;
    }
    .pg-dialog-backdrop.pg-auth-choice-backdrop {
      z-index: 2147482600;
    }
    .pg-auth-tab:disabled,
    .pg-cloud-btn:disabled {
      opacity: .58;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
    .pg-auth-tab[aria-busy="true"],
    .pg-cloud-btn[aria-busy="true"] { cursor: wait; }
    .pg-auth-field {
      position: relative;
      display: grid;
      gap: 6px;
      min-width: 0;
    }
    .pg-auth-field > span {
      color: rgba(238, 246, 248, .78);
      font-size: 12px;
      font-weight: 820;
      letter-spacing: .02em;
    }
    .pg-auth-field > small {
      display: block;
      min-height: 17px;
      color: rgba(226, 235, 239, .6);
      font-size: 12px;
      line-height: 1.45;
    }
    .pg-auth-field > small[data-state="error"] { color: #ffb0a8; }
    .pg-auth-field > small[data-state="success"] { color: #8ff1dc; }
    .pg-auth-field > small[data-state="warning"] { color: #ffd99a; }
    .pg-auth-form input[aria-invalid="true"] {
      border-color: rgba(255, 140, 130, .78);
      box-shadow: 0 0 0 3px rgba(255, 120, 110, .12);
    }
    .pg-auth-form input[aria-invalid="false"] {
      border-color: rgba(111, 226, 205, .48);
    }
    .pg-auth-capability-hint {
      min-height: 0 !important;
      margin-top: -2px;
    }
    .pg-auth-error[data-state="info"] { color: rgba(226,235,239,.72); }
    .pg-auth-error[data-state="success"] { color: #8ff1dc; }
    .pg-auth-link-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .pg-legal-consent {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      color: rgba(226,235,239,.66);
      font-size: 11px;
      line-height: 1.65;
    }
    .pg-legal-consent input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #8ff1dc; }
    .pg-legal-consent a { color: #8ff1dc; text-decoration: none; }
    .pg-legal-consent a:hover, .pg-legal-consent a:focus-visible { text-decoration: underline; outline: none; }
    .pg-auth-legal-consent[hidden] { display: none; }
    .pg-auth-history-menu {
      position: absolute;
      z-index: 4;
      top: calc(100% - 13px);
      right: 0;
      left: 0;
      display: grid;
      overflow: hidden;
      padding: 5px;
      border: 1px solid rgba(126, 238, 224, .22);
      border-radius: 11px;
      background: rgba(5, 11, 19, .985);
      box-shadow: 0 18px 38px rgba(0, 0, 0, .42);
    }
    .pg-auth-history-menu[hidden] { display: none; }
    .pg-auth-history-menu button {
      overflow: hidden;
      border: 0;
      border-radius: 8px;
      padding: 9px 11px;
      color: rgba(239, 248, 249, .88);
      background: transparent;
      cursor: pointer;
      font: 650 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      text-align: left;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .pg-auth-history-menu button:hover,
    .pg-auth-history-menu button:focus-visible {
      outline: none;
      color: #fff;
      background: rgba(126, 238, 224, .12);
    }
    .pg-registration-credentials { width: min(520px, calc(100vw - 32px)); }
    .pg-registration-credentials .pg-registration-kicker {
      margin: 0 0 8px;
      color: rgba(126, 238, 224, .86);
      font: 800 11px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
      letter-spacing: .12em;
    }
    .pg-registration-credentials dl { display: grid; gap: 10px; margin: 18px 0; }
    .pg-registration-credentials dl div {
      display: grid;
      grid-template-columns: 100px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 11px;
      background: rgba(2, 7, 13, .5);
    }
    .pg-registration-credentials dt { color: rgba(226,235,239,.62); font-size: 12px; }
    .pg-registration-credentials dd {
      overflow-wrap: anywhere;
      margin: 0;
      color: #fff;
      font: 760 14px/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
    }
    .pg-registration-guide {
      display: grid;
      gap: 4px;
      margin-bottom: 18px;
      padding: 12px 14px;
      border-left: 2px solid rgba(245, 193, 108, .9);
      background: linear-gradient(90deg, rgba(245, 193, 108, .11), transparent);
    }
    .pg-registration-guide strong { color: #f7d59d; font-size: 12px; }
    .pg-registration-guide span { color: rgba(239, 244, 246, .78); font-size: 13px; line-height: 1.5; }
    .pg-registration-credentials .pg-dialog-actions { flex-wrap: wrap; }
    @media (max-width: 560px), (max-height: 700px) {
      .pg-auth-gate { align-items: start; padding: 12px; overflow-y: auto; }
      .pg-auth-panel { max-height: none; padding: 22px 18px 20px; }
      .pg-auth-panel h1 { margin-top: 2px; font-size: 27px; }
      .pg-auth-panel p { margin-bottom: 16px; font-size: 14px; }
      .pg-auth-form { gap: 10px; }
      .pg-auth-field { gap: 4px; }
      .pg-auth-field > small { font-size: 11px; }
      .pg-auth-form input { padding: 12px 13px; }
      .pg-auth-code-row .pg-cloud-btn { min-width: 112px; padding-inline: 10px; }
    }

.pg-generation-concurrency-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000000;
  width: min(430px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid #f4c95d;
  border-radius: 14px;
  background: rgba(16, 18, 24, 0.96);
  color: #f7f7f7;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.pg-generation-concurrency-notice strong {
  display: block;
  padding-right: 28px;
  font-size: 16px;
}

.pg-generation-concurrency-notice p {
  margin: 8px 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.65;
}

.pg-generation-concurrency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-generation-concurrency-actions .pg-cloud-btn.primary:hover,
.pg-generation-concurrency-actions .pg-cloud-btn.primary:focus-visible {
  background: linear-gradient(135deg, rgba(110, 231, 223, .98), rgba(245, 193, 108, .96));
}

.pg-generation-concurrency-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 22px;
}

.pg-member-plan.is-guided {
  outline: 2px solid rgba(244, 201, 93, 0.9);
  box-shadow: 0 0 0 6px rgba(244, 201, 93, 0.12);
}

/* frontend-src/styles/app-shell/06-membership-premium.css */
.pg-member-backdrop {
  --member-bg: #060a0d;
  --member-band: #0d1215;
  --member-surface: #111719;
  --member-surface-strong: #151b1b;
  --member-line: rgba(237, 244, 239, .12);
  --member-line-strong: rgba(239, 202, 122, .38);
  --member-text: #f4f7f3;
  --member-muted: rgba(237, 244, 239, .68);
  --member-faint: rgba(237, 244, 239, .44);
  --member-gold: #e1bd70;
  --member-gold-bright: #f5d993;
  --member-green: #69d5b8;
  --member-red: #d97972;
  position: relative;
  display: none;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
  overflow-x: clip;
  color: var(--member-text);
  background: var(--member-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pg-member-backdrop.show { display: block; }
.pg-member-backdrop:has(.pg-member-checkout-backdrop:not([hidden])) { z-index: 1100; }

.pg-member-page {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background:
    linear-gradient(115deg, rgba(11, 65, 64, .66) 0%, rgba(8, 28, 31, .28) 32%, transparent 60%),
    linear-gradient(162deg, #05090d 0%, #0a1216 48%, #17141a 100%);
  isolation: isolate;
}

.pg-member-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .28) 100%);
  background-size: 84px 84px, 84px 84px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .16));
  opacity: .42;
}

.pg-member-page-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  min-width: 0;
  margin: 0 auto;
  padding: 22px 0 64px;
}

.pg-member-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 14px;
}

.pg-member-back,
.pg-member-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--member-line);
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--member-muted);
  background: rgba(244, 240, 230, .045);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.pg-member-back:hover,
.pg-member-back:focus-visible,
.pg-member-close:hover,
.pg-member-close:focus-visible {
  outline: none;
  color: var(--member-text);
  border-color: var(--member-line-strong);
  background: rgba(214, 181, 108, .08);
}

.pg-member-nav-note {
  min-width: 0;
  color: var(--member-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: right;
}

.pg-member-body {
  display: grid;
  min-width: 0;
  gap: 36px;
}

.pg-member-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: center;
  gap: 56px;
  min-width: 0;
  min-height: 220px;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  padding: 26px 0;
}

.pg-member-hero::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 92px;
  height: 2px;
  background: var(--member-gold);
}

.pg-member-hero-copy { min-width: 0; }

.pg-member-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-member-brandmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--member-line-strong);
  border-radius: 6px;
  color: #06110f;
  background: linear-gradient(135deg, #77e2cf 0%, #f3c774 100%);
  box-shadow: 0 12px 30px rgba(85, 205, 196, .16), inset 0 1px 0 rgba(255, 255, 255, .48);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.pg-member-eyebrow,
.pg-member-section-kicker {
  color: var(--member-gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.pg-member-title {
  margin: 17px 0 9px;
  color: var(--member-text);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.pg-member-lead {
  max-width: 700px;
  margin: 0;
  color: var(--member-muted);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
}

.pg-member-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--member-faint);
  font-size: 11px;
  font-weight: 700;
}

.pg-member-trust-list span {
  position: relative;
  padding-left: 13px;
}

.pg-member-trust-list span::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--member-green);
}

.pg-member-status-panel {
  min-width: 0;
  border: 1px solid var(--member-line-strong);
  border-radius: 8px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(105, 213, 184, .09), transparent 42%),
    linear-gradient(155deg, rgba(24, 31, 30, .98), rgba(12, 16, 18, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(244, 247, 243, .08);
}

.pg-member-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-member-status-label {
  color: var(--member-faint);
  font-size: 11px;
  font-weight: 760;
}

.pg-member-status-expiry {
  color: var(--member-gold-bright);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pg-member-current-tier {
  margin-top: 9px;
  color: var(--member-text);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pg-member-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--member-line);
}

.pg-member-status-item {
  min-width: 0;
  padding: 13px 0 0;
}

.pg-member-status-item + .pg-member-status-item {
  border-left: 1px solid var(--member-line);
  padding-left: 16px;
}

.pg-member-status-item strong,
.pg-member-status-item span { display: block; }

.pg-member-status-item strong {
  color: var(--member-text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pg-member-status-item span {
  margin-top: 3px;
  color: var(--member-faint);
  font-size: 10px;
}

.pg-member-success {
  margin-top: 14px;
  border-left: 2px solid var(--member-green);
  padding: 9px 11px;
  color: #bce9da;
  background: rgba(84, 184, 154, .08);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.pg-member-plans-section,
.pg-member-compare-section,
.pg-member-acceptance-tools { min-width: 0; }

.pg-member-refund-policy {
  display: grid;
  grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  padding: 18px 0;
}

.pg-member-refund-policy-head { min-width: 0; }

.pg-member-refund-policy-head > span {
  color: var(--member-gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.pg-member-refund-policy h3 {
  margin: 5px 0 0;
  color: var(--member-text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0;
}

.pg-member-refund-policy-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pg-member-refund-policy-copy p {
  margin: 0;
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.pg-member-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  margin-bottom: 15px;
}

.pg-member-section-title > div { min-width: 0; }

.pg-member-section-title h3 {
  margin: 4px 0 0;
  color: var(--member-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.pg-member-section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--member-faint);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}

.pg-member-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.pg-member-plan {
  --plan-accent-rgb: 105, 213, 184;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--plan-accent-rgb), .28);
  border-radius: 8px;
  padding: 66px 20px 20px;
  color: var(--member-text);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .075) 0%, transparent 25%),
    linear-gradient(160deg, rgba(22, 53, 51, .96), rgba(10, 24, 26, .98) 47%, rgba(9, 14, 18, .99));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(244, 247, 243, .09),
    inset 0 -1px 0 rgba(var(--plan-accent-rgb), .08);
  outline: none;
  transform: translateZ(0);
  transform-origin: center center;
  transition:
    transform .42s cubic-bezier(.22, 1, .36, 1),
    opacity .32s ease,
    filter .32s ease,
    border-color .28s ease,
    box-shadow .42s cubic-bezier(.22, 1, .36, 1);
}

.pg-member-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--plan-accent-rgb), .17), transparent 34%),
    linear-gradient(108deg, transparent 54%, rgba(255, 255, 255, .045) 68%, transparent 82%);
  opacity: .74;
}

.pg-member-promo-tag {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  padding: 6px 10px 7px;
  border-radius: 0 0 7px 0;
  color: #10201a;
  background: linear-gradient(135deg, #9be8bd 0%, #f0cf7d 100%);
  box-shadow: 0 8px 20px rgba(13, 22, 17, .22), inset 0 1px 0 rgba(255, 255, 255, .56);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.pg-member-plan[data-tier="vip"] {
  --plan-accent-rgb: 91, 218, 192;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .075) 0%, transparent 25%),
    linear-gradient(158deg, rgba(18, 73, 67, .96), rgba(9, 31, 33, .98) 48%, rgba(8, 14, 18, .99));
}

.pg-member-plan[data-tier="svip"] {
  --plan-accent-rgb: 224, 196, 104;
  border-color: rgba(229, 200, 111, .62);
  background:
    linear-gradient(125deg, rgba(255, 251, 220, .12) 0%, transparent 27%),
    linear-gradient(158deg, rgba(67, 85, 44, .98), rgba(25, 52, 39, .98) 45%, rgba(12, 19, 19, .99));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(229, 200, 111, .08),
    inset 0 1px 0 rgba(255, 245, 205, .18),
    inset 0 -1px 0 rgba(105, 213, 184, .12);
}

.pg-member-plan[data-tier="lifetime_svip"] {
  --plan-accent-rgb: 255, 99, 99;
  border-color: rgba(255, 99, 99, .72);
  background:
    linear-gradient(125deg, rgba(255, 235, 235, .15) 0%, transparent 28%),
    linear-gradient(158deg, rgba(92, 39, 39, .98), rgba(49, 31, 32, .98) 45%, rgba(12, 19, 19, .99));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 99, 99, .1),
    inset 0 1px 0 rgba(255, 220, 220, .2),
    inset 0 -1px 0 rgba(105, 213, 184, .12);
}

.pg-member-plan[data-tier="enterprise_vip"] {
  --plan-accent-rgb: 225, 164, 104;
  background:
    linear-gradient(125deg, rgba(255, 245, 228, .08) 0%, transparent 25%),
    linear-gradient(158deg, rgba(68, 46, 33, .96), rgba(28, 28, 29, .98) 47%, rgba(10, 25, 26, .99));
}

.pg-member-plan:hover,
.pg-member-plan:focus-visible,
.pg-member-plan:focus-within {
  border-color: rgba(var(--plan-accent-rgb), .72);
}

.pg-member-plan.is-featured {
  border-color: rgba(229, 200, 111, .68);
}

.pg-member-plan[data-tier="lifetime_svip"].is-featured {
  border-color: rgba(255, 99, 99, .76);
}

.pg-member-plan.is-current,
.pg-member-plan.is-covered {
  border-color: rgba(84, 184, 154, .44);
}

.pg-member-plan.is-current::after,
.pg-member-plan.is-covered::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--member-green);
}

.pg-member-featured-ribbon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  min-width: 152px;
  padding: 6px 16px 7px;
  border-radius: 0 0 7px 7px;
  color: #101812;
  background: linear-gradient(90deg, #9be8bd 0%, #f0cf7d 100%);
  box-shadow: 0 10px 26px rgba(13, 22, 17, .24), inset 0 1px 0 rgba(255, 255, 255, .56);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  transform: translateX(-50%);
}

.pg-member-plan-head {
  position: relative;
  z-index: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pg-member-plan-name {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.pg-member-plan-name strong {
  color: var(--member-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pg-member-plan-name span {
  color: var(--member-muted);
  font-size: 11px;
  line-height: 1.45;
}

.pg-member-plan-tag {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 181, 108, .34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--member-gold-bright);
  background: rgba(214, 181, 108, .07);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.pg-member-plan.is-current .pg-member-plan-tag {
  border-color: rgba(84, 184, 154, .45);
  color: #bce9da;
  background: rgba(84, 184, 154, .08);
}

.pg-member-price {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: end;
  column-gap: 7px;
  row-gap: 4px;
  min-width: 0;
  color: var(--member-text);
  font-size: 35px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pg-member-price strong {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

.pg-member-price span {
  color: var(--member-faint);
  font-size: 11px;
  font-weight: 700;
}

.pg-member-price small {
  grid-column: 1 / -1;
  color: var(--member-gold-bright);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.3;
}

.pg-member-plan.is-contact-only .pg-member-price {
  color: var(--member-gold-bright);
  font-size: 28px;
}

.pg-member-plan-metrics {
  position: relative;
  z-index: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  padding: 12px 0;
}

.pg-member-plan-metrics > div { min-width: 0; }

.pg-member-plan-metrics > div + div {
  border-left: 1px solid var(--member-line);
  padding-left: 14px;
}

.pg-member-plan-metrics span,
.pg-member-plan-metrics strong { display: block; }

.pg-member-plan-metrics span {
  color: var(--member-faint);
  font-size: 10px;
}

.pg-member-plan-metrics strong {
  margin-top: 4px;
  color: var(--member-text);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pg-member-plan-divider { display: none; }

.pg-member-feature-list {
  position: relative;
  z-index: 1;
  grid-row: 4;
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-member-feature-list li {
  position: relative;
  min-width: 0;
  padding-left: 17px;
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pg-member-feature-list li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--member-green);
}

.pg-member-plan-alert {
  position: relative;
  z-index: 1;
  grid-row: 5;
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--member-gold);
  padding: 9px 0 9px 11px;
  color: var(--member-gold-bright);
  background: rgba(214, 181, 108, .055);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.5;
}

.pg-member-plan-alert .pg-cloud-btn {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

.pg-member-plan > .pg-cloud-btn {
  position: relative;
  z-index: 1;
  grid-row: 6;
  width: 100%;
  min-height: 40px;
  border-color: rgba(126, 238, 224, .46);
  border-radius: 6px;
  color: #06110f;
  background: linear-gradient(135deg, #79e4d0 0%, #f1c979 100%);
  font-weight: 900;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(85, 205, 196, .16), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.pg-member-plan > .pg-cloud-btn:hover:not(:disabled),
.pg-member-plan > .pg-cloud-btn:focus-visible:not(:disabled) {
  outline: none;
  border-color: rgba(245, 217, 147, .76);
  background: linear-gradient(135deg, #8bedda 0%, #f7d58e 100%);
  box-shadow: 0 18px 42px rgba(85, 205, 196, .25), inset 0 1px 0 rgba(255, 255, 255, .56);
  transform: translateY(-1px);
}

.pg-member-plan.is-featured > .pg-cloud-btn:not(:disabled) {
  border-color: rgba(245, 217, 147, .82);
  background: linear-gradient(135deg, #9aebc4 0%, #f6cf78 100%);
}

.pg-member-plan > .pg-cloud-btn:disabled {
  opacity: 1;
  border-color: rgba(84, 184, 154, .24);
  color: rgba(188, 233, 218, .72);
  background: rgba(84, 184, 154, .08);
}

.pg-member-plan > .pg-cloud-btn[data-provider-unavailable="true"] {
  border-color: var(--member-line);
  color: var(--member-faint);
  background: rgba(244, 240, 230, .04);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .pg-member-plan { will-change: transform, opacity, filter; }

  .pg-member-plan-grid:has(.pg-member-plan:hover) .pg-member-plan:not(:hover):not(:focus-within),
  .pg-member-plan-grid:has(.pg-member-plan:focus-within) .pg-member-plan:not(:hover):not(:focus-within) {
    opacity: .72;
    filter: saturate(.76) brightness(.88);
    transform: scale(.972);
  }

  .pg-member-plan-grid .pg-member-plan:hover,
  .pg-member-plan-grid .pg-member-plan:focus-visible,
  .pg-member-plan-grid .pg-member-plan:focus-within {
    z-index: 3;
    opacity: 1;
    filter: saturate(1.08) brightness(1.05);
    transform: translateY(-8px) scale(1.035);
    box-shadow:
      0 32px 74px rgba(0, 0, 0, .44),
      0 0 0 1px rgba(var(--plan-accent-rgb), .16),
      inset 0 1px 0 rgba(255, 255, 255, .16);
  }
}

.pg-member-payment {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(84, 184, 154, .28);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--member-muted);
  background: rgba(84, 184, 154, .055);
  overflow-wrap: anywhere;
}

.pg-member-payment[hidden] { display: none; }

.pg-member-payment > strong { color: var(--member-text); }

.pg-member-compare-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--member-line);
  border-radius: 8px;
  background: var(--member-band);
  scrollbar-color: rgba(214, 181, 108, .42) rgba(244, 240, 230, .05);
}

.pg-member-compare {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--member-muted);
  font-size: 12px;
}

.pg-member-compare th,
.pg-member-compare td {
  min-width: 130px;
  border-bottom: 1px solid rgba(244, 240, 230, .075);
  padding: 13px 14px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.pg-member-compare th:first-child,
.pg-member-compare td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 138px;
  color: var(--member-text);
  background: #151514;
  font-weight: 800;
}

.pg-member-compare thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--member-text);
  background: #1b1a18;
  font-weight: 850;
  white-space: nowrap;
}

.pg-member-compare thead th:first-child { z-index: 4; }

.pg-member-compare .is-featured {
  background: rgba(214, 181, 108, .055);
}

.pg-member-compare thead .is-featured { color: var(--member-gold-bright); }

.pg-member-compare .is-current {
  color: #bce9da;
  background: rgba(84, 184, 154, .07);
}

.pg-member-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  padding: 16px 0;
}

.pg-member-notes > div {
  min-width: 0;
  padding: 0 18px;
}

.pg-member-notes > div:first-child { padding-left: 0; }
.pg-member-notes > div:last-child { padding-right: 0; }

.pg-member-notes > div + div { border-left: 1px solid var(--member-line); }

.pg-member-notes strong {
  display: block;
  margin-bottom: 5px;
  color: var(--member-text);
  font-size: 11px;
}

.pg-member-notes p {
  margin: 0;
  color: var(--member-faint);
  font-size: 11px;
  line-height: 1.65;
}

.pg-member-canary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pg-member-canary {
  display: grid;
  grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  border: 1px dashed rgba(244, 240, 230, .16);
  border-radius: 8px;
  padding: 15px;
  background: rgba(244, 240, 230, .025);
}

.pg-member-canary h3 {
  margin: 6px 0 5px;
  color: var(--member-text);
  font-size: 15px;
  letter-spacing: 0;
}

.pg-member-canary p {
  margin: 0;
  color: var(--member-faint);
  font-size: 10px;
  line-height: 1.55;
}

.pg-member-canary-badge {
  color: var(--member-green);
  font-size: 9px;
  font-weight: 850;
}

.pg-member-canary-action {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 150px;
}

.pg-member-canary-action > strong {
  color: var(--member-text);
  font-size: 20px;
}

.pg-member-canary-action > span {
  color: var(--member-faint);
  font-size: 9px;
}

.pg-member-canary-action .pg-cloud-btn {
  min-width: 150px;
  margin-top: 3px;
  justify-content: center;
}

.pg-member-checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 7, 8, .82);
  backdrop-filter: blur(12px);
}

.pg-member-checkout-backdrop[hidden] { display: none; }

.pg-member-checkout {
  width: min(540px, 100%);
  max-height: min(760px, 90dvh);
  overflow: auto;
  border: 1px solid var(--member-line-strong);
  border-radius: 8px;
  padding: 22px;
  color: var(--member-text);
  background: #151412;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(244, 240, 230, .06);
}

.pg-member-checkout:has(.pg-member-checkout-scroll) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.pg-member-checkout:has(.pg-member-checkout-scroll) > .pg-member-checkout-head,
.pg-member-checkout:has(.pg-member-checkout-scroll) > .pg-member-checkout-actions { flex-shrink: 0; }
.pg-member-checkout-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pg-member-checkout-price small { display: block; color: var(--member-faint); font-size: 11px; line-height: 1.6; }
.pg-member-checkout-price .pg-member-credit,
.pg-member-upgrade-copy strong { color: var(--member-gold); }
.pg-member-upgrade-copy { margin: -4px 0 14px; color: var(--member-faint); font-size: 12px; line-height: 1.65; }
.pg-member-upgrade-copy p { margin: 3px 0; }
.pg-member-upgrade-copy details { margin-top: 3px; }
.pg-member-upgrade-copy summary { color: var(--member-gold); cursor: pointer; width: fit-content; }
.pg-member-upgrade-copy details[open] { padding-bottom: 6px; }
@media (max-width: 480px) {
  .pg-member-checkout:has(.pg-member-checkout-scroll) { padding: 16px; }
  .pg-member-checkout-scroll .pg-member-checkout-summary { grid-template-columns: 1fr; gap: 8px; }
  .pg-member-checkout-scroll .pg-member-checkout-summary > div { padding: 0; border: 0; }
}

.pg-member-checkout-head,
.pg-member-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pg-member-checkout-head span {
  color: var(--member-gold);
  font-size: 10px;
  font-weight: 800;
}

.pg-member-checkout-head h3 {
  margin: 5px 0 0;
  color: var(--member-text);
  font-size: 23px;
  letter-spacing: 0;
}

.pg-member-checkout-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--member-line);
  border-radius: 6px;
  color: var(--member-muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pg-member-checkout-close:hover,
.pg-member-checkout-close:focus-visible {
  outline: none;
  border-color: var(--member-line-strong);
  color: var(--member-text);
}

.pg-member-checkout-summary,
.pg-member-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 19px 0;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  padding: 12px 0;
}

.pg-member-checkout-summary > div,
.pg-member-order-grid > div {
  min-width: 0;
  padding: 0 11px;
}

.pg-member-checkout-summary > div:first-child,
.pg-member-order-grid > div:first-child { padding-left: 0; }

.pg-member-checkout-summary > div + div,
.pg-member-order-grid > div + div { border-left: 1px solid var(--member-line); }

.pg-member-checkout-summary span,
.pg-member-order-grid span {
  display: block;
  color: var(--member-faint);
  font-size: 10px;
  font-weight: 700;
}

.pg-member-checkout-summary strong,
.pg-member-order-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--member-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.pg-member-provider-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.pg-member-provider-fieldset legend {
  margin-bottom: 9px;
  color: var(--member-muted);
  font-size: 12px;
  font-weight: 850;
}

.pg-member-plan-fieldset { margin-top: 18px; }

.pg-member-checkout-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pg-member-checkout-plan,
.pg-member-provider-option {
  position: relative;
  min-width: 0;
  border: 1px solid var(--member-line);
  border-radius: 6px;
  background: rgba(244, 240, 230, .025);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.pg-member-checkout-plan {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.pg-member-checkout-plan:hover,
.pg-member-checkout-plan.is-selected,
.pg-member-provider-option:hover,
.pg-member-provider-option.is-selected {
  border-color: var(--member-line-strong);
  background: rgba(214, 181, 108, .075);
  box-shadow: inset 0 0 0 1px rgba(214, 181, 108, .08);
}

.pg-member-checkout-plan:focus-within,
.pg-member-provider-option:focus-within {
  border-color: var(--member-gold-bright);
  box-shadow: 0 0 0 3px rgba(214, 181, 108, .13);
}

.pg-member-checkout-plan input,
.pg-member-provider-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pg-member-checkout-plan strong { color: var(--member-text); font-size: 12px; }
.pg-member-checkout-plan span { color: var(--member-faint); font-size: 10px; }

.pg-member-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.pg-member-provider-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px;
}

.pg-member-provider-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
  background: #18aa64;
  font-size: 15px;
  font-weight: 900;
}

.pg-member-provider-mark[data-provider="alipay_page"] { background: #1677ff; }
.pg-member-provider-option strong,
.pg-member-provider-option small { display: block; }
.pg-member-provider-option strong { color: var(--member-text); font-size: 13px; }
.pg-member-provider-option small { margin-top: 2px; color: var(--member-faint); font-size: 10px; }

.pg-member-checkout-warning,
.pg-member-checkout-error {
  margin: 13px 0 0;
  border-left: 2px solid;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.55;
}

.pg-member-checkout-warning {
  border-color: var(--member-gold);
  color: var(--member-gold-bright);
  background: rgba(214, 181, 108, .06);
}

.pg-member-checkout-refund-policy {
  display: block;
  margin-top: 13px;
  border: 1px solid var(--member-line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(244, 240, 230, .025);
}

.pg-member-checkout-refund-policy .pg-member-refund-policy-head > span { font-size: 9px; }
.pg-member-checkout-refund-policy h3 { margin-top: 3px; font-size: 13px; }
.pg-member-checkout-refund-policy-copy { gap: 6px; margin-top: 9px; }
.pg-member-checkout-refund-policy-copy p { color: var(--member-faint); font-size: 10px; line-height: 1.6; }

.pg-member-legal-consent { margin-top: 13px; }
.pg-member-legal-consent input { accent-color: var(--member-gold); }
.pg-member-legal-consent a { color: var(--member-gold-bright); }

.pg-member-checkout-error {
  border-color: var(--member-red);
  color: #f1b4ae;
  background: rgba(217, 121, 114, .07);
}

.pg-member-checkout-error[hidden] { display: none; }

.pg-member-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
}

.pg-member-checkout-actions:has(> .pg-member-legal-consent) {
  display: grid;
  grid-template-columns: minmax(0, 460px) 380px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.pg-member-checkout-actions > .pg-member-legal-consent { margin: 0; min-width: 0; }
.pg-member-checkout-buttons { display: flex; align-items: center; gap: 8px; }

.pg-member-checkout .pg-cloud-btn { border-radius: 6px; }

.pg-member-checkout .pg-cloud-btn.primary {
  border-color: var(--member-gold);
  color: #19150d;
  background: var(--member-gold);
}

.pg-member-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pg-member-payment-methods .pg-cloud-btn:not(.primary) {
  border-color: var(--member-line);
  color: var(--member-muted);
  background: transparent;
}

.pg-member-payment-dialog { width: min(620px, 100%); }

.pg-member-payment-dialog-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 238px;
  border-top: 1px solid var(--member-line-strong);
  border-bottom: 1px solid var(--member-line);
  padding: 18px 0;
}

.pg-member-payment-dialog-stage > .pg-member-provider-mark {
  position: absolute;
  top: 12px;
  right: 0;
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.pg-member-payment-dialog-qr,
.pg-member-payment-dialog-qr-placeholder {
  width: 210px;
  height: 210px;
  border-radius: 6px;
  background: #fff;
}

.pg-member-payment-dialog-qr {
  padding: 9px;
  object-fit: contain;
}

.pg-member-payment-dialog-qr-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #49453d;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.pg-member-payment-dialog-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-right: 28px;
}

.pg-member-payment-dialog-copy strong { color: var(--member-text); font-size: 17px; }
.pg-member-payment-dialog-copy span { color: var(--member-muted); font-size: 12px; line-height: 1.65; }
.pg-member-payment-dialog-copy small { color: var(--member-faint); font-size: 10px; overflow-wrap: anywhere; }

.pg-member-payment-dialog-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--member-muted);
  font-size: 11px;
  font-weight: 760;
}

.pg-member-payment-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--member-green);
  box-shadow: 0 0 0 4px rgba(84, 184, 154, .11);
  animation: pg-member-payment-pulse 1.5s ease-in-out infinite;
}

@keyframes pg-member-payment-pulse {
  0%, 100% { opacity: .5; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}

.pg-member-order-head > div { display: grid; gap: 4px; }
.pg-member-order-head strong { color: var(--member-text); font-size: 19px; }
.pg-member-order-head small { color: var(--member-faint); font-size: 10px; }

.pg-member-order-eyebrow {
  color: var(--member-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.pg-member-order-status {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 181, 108, .34);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--member-gold-bright);
  background: rgba(214, 181, 108, .07);
  font-size: 10px;
  font-weight: 850;
}

.pg-member-order-status.is-closing {
  border-color: rgba(84, 184, 154, .34);
  color: #bce9da;
  background: rgba(84, 184, 154, .07);
}

.pg-member-order-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--member-muted);
  font-size: 12px;
  font-weight: 760;
}

.pg-member-order-help {
  margin: 0;
  color: var(--member-muted);
  font-size: 11px;
  line-height: 1.6;
}

.pg-member-payment .pg-cloud-btn.danger {
  border-color: rgba(217, 121, 114, .28);
  color: #f1b4ae;
  background: rgba(217, 121, 114, .06);
}

.pg-member-qr-image {
  width: 184px;
  height: 184px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.pg-member-qr-link {
  max-width: 100%;
  color: var(--member-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .pg-member-page-inner {
    width: min(720px, calc(100% - 30px));
    padding-top: 16px;
  }

  .pg-member-body { gap: 30px; }

  .pg-member-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 24px 0;
  }

  .pg-member-title { font-size: 38px; }
  .pg-member-status-panel { width: 100%; }

  .pg-member-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .pg-member-section-title p { text-align: left; }
  .pg-member-plan-grid { grid-template-columns: 1fr; }
  .pg-member-plan { grid-template-rows: auto auto auto 1fr auto auto; }
  .pg-member-refund-policy { grid-template-columns: 1fr; gap: 10px; }
  .pg-member-canary-grid { grid-template-columns: 1fr; }
  .pg-member-checkout-summary,
  .pg-member-order-grid { grid-template-columns: 1fr; gap: 10px; }

  .pg-member-checkout-summary > div,
  .pg-member-order-grid > div { padding: 0; }

  .pg-member-checkout-summary > div + div,
  .pg-member-order-grid > div + div {
    border-top: 1px solid var(--member-line);
    border-left: 0;
    padding-top: 10px;
  }
}

@media (max-width: 560px) {
  .pg-member-page-inner {
    width: calc(100% - 24px);
    padding-bottom: 44px;
  }

  .pg-member-nav { align-items: flex-start; }
  .pg-member-nav-note { max-width: 150px; line-height: 1.45; }
  .pg-member-title { font-size: 34px; }
  .pg-member-lead { font-size: 13px; }
  .pg-member-trust-list { gap: 8px 14px; }
  .pg-member-status-panel { padding: 16px; }
  .pg-member-current-tier { font-size: 24px; }
  .pg-member-section-title h3 { font-size: 20px; }
  .pg-member-plan { padding: 58px 17px 17px; }
  .pg-member-featured-ribbon { min-width: 142px; padding-inline: 14px; }
  .pg-member-price { font-size: 32px; }

  .pg-member-notes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pg-member-notes > div,
  .pg-member-notes > div:first-child,
  .pg-member-notes > div:last-child { padding: 0; }

  .pg-member-notes > div + div {
    border-top: 1px solid var(--member-line);
    border-left: 0;
    padding-top: 12px;
  }

  .pg-member-canary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pg-member-canary-action {
    justify-items: start;
    min-width: 0;
  }

  .pg-member-canary-action .pg-cloud-btn { min-width: 0; width: 100%; }
  .pg-member-checkout-backdrop { padding: 9px; }
  .pg-member-checkout { padding: 17px; }
  .pg-member-provider-grid,
  .pg-member-checkout-plan-grid { grid-template-columns: 1fr; }
  .pg-member-checkout-actions { flex-direction: column-reverse; }
  .pg-member-checkout-actions .pg-cloud-btn { width: 100%; justify-content: center; }
  .pg-member-checkout-actions:has(> .pg-member-legal-consent) { grid-template-columns: 1fr; }
  .pg-member-checkout-buttons .pg-cloud-btn { flex: 1; width: auto; }

  .pg-member-payment-dialog-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pg-member-payment-dialog-qr,
  .pg-member-payment-dialog-qr-placeholder {
    width: min(210px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .pg-member-payment-dialog-copy {
    padding-right: 0;
    text-align: center;
  }

  .pg-member-order-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pg-member-order-status { width: fit-content; }
  .pg-member-order-qr { align-items: flex-start; flex-direction: column; }
}

/* frontend-src/styles/app-shell/06-session-recovery.css */
.pg-session-recovery {
  position: fixed;
  inset: 0;
  z-index: 2147481900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #06090f;
  color: #eaf4f3;
  font: 15px/1.6 system-ui, sans-serif;
}
.pg-session-recovery section { max-width: 440px; text-align: center; }
.pg-session-recovery h1 { margin: 0 0 12px; font-size: 22px; }
.pg-session-recovery p { color: #a7b8bc; }
.pg-session-recovery button {
  margin-top: 12px;
  padding: 10px 24px;
  border: 1px solid #80f0d8;
  border-radius: 12px;
  background: #80f0d8;
  color: #071110;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pg-session-recovery button:disabled { opacity: .45; cursor: wait; }
.pg-session-recovery button:focus-visible { outline: 2px solid white; outline-offset: 4px; }

/* frontend-src/styles/app-shell/06-system-update.css */
.pg-system-update-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: #e9edf3;
}
.pg-system-update-dialog::backdrop { background: rgba(5, 10, 19, .64); }
.pg-system-update-dialog .pg-dialog-actions { justify-content: flex-end; }
.pg-system-update-dialog [data-system-update-close] {
  white-space: normal;
  color: #061013;
  border-color: rgba(126, 238, 224, .5);
  background: linear-gradient(135deg, #6ee7df, #f5c16c);
}
.pg-system-update-dialog [data-system-update-close]:focus-visible {
  outline: 2px solid #eafffb;
  outline-offset: 3px;
}

/* ==== pg-studio home viewfinder decoration (aligned with online; static, pure CSS night scene, no external images) ==== */
html[data-pg-studio-view="home"] .pg-home-page { isolation: isolate; }

.pg-studio-scene {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
html[data-pg-studio-view="home"] .pg-studio-scene--home { display: block; }

.pg-studio-scene::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 530px;
  background: radial-gradient(ellipse 560px 320px at var(--pg-studio-light-x, 64%) var(--pg-studio-light-y, 22%), rgba(198,205,210,.10), transparent 80%);
  mask-image: linear-gradient(#000 60%, transparent);
}

.pg-studio-grid {
  position: fixed;
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.3) 6%, #000 18%, #000 82%, rgba(0,0,0,.3) 94%, transparent),
    linear-gradient(transparent, rgba(0,0,0,.3) 9%, #000 22%, #000 78%, rgba(0,0,0,.3) 94%, transparent);
  mask-composite: intersect;
}
html[data-pg-studio-view="home"] .pg-studio-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1.5px 1.5px, rgba(155,207,196,.55) 1.15px, transparent 1.7px) 0 0 / 32px 32px;
  opacity: .14;
}

.pg-studio-optics {
  position: absolute;
  top: 26px;
  right: 9%;
  width: clamp(330px, 31vw, 510px);
  aspect-ratio: 2 / 1;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.pg-studio-optic { position: absolute; inset: 0; border-radius: 37px; }

.pg-studio-viewfinder {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 510px;
  height: 255px;
  margin: -127.5px 0 0 -255px;
  transform-style: preserve-3d;
  transform: scale3d(var(--pg-studio-frame-scale, 1), var(--pg-studio-frame-scale, 1), var(--pg-studio-frame-scale, 1)) rotateX(var(--pg-studio-rx, 10deg)) rotateY(var(--pg-studio-ry, -22deg)) rotateZ(-9deg);
}
.pg-studio-viewfinder .pg-studio-optic { border-radius: 26px; }

.pg-studio-viewfinder .pg-studio-optic--rear {
  inset: 3px;
  border: 14px solid #253640;
  background: linear-gradient(145deg, #334851, #070e15 70%);
  box-shadow: inset 0 1px rgba(228,242,236,.44), 0 1px 0 rgba(182,201,201,.27), 3px 5px 0 #09131b, 14px 27px 42px rgba(0,0,0,.67), 0 0 35px rgba(99,216,200,.03);
  transform: translate3d(6px, 6px, -44px);
}
.pg-studio-viewfinder .pg-studio-optic--side-left,
.pg-studio-viewfinder .pg-studio-optic--side-right {
  top: 14px; bottom: 14px; width: 70px;
  border: 1px solid #0b151d; border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, rgba(0,0,0,.13) 1px 3px), linear-gradient(90deg, #080f17, #2b414a 42%, #10232d 74%, #526970);
  box-shadow: inset 0 1px rgba(184,214,208,.30), inset 0 -1px #000;
  transform: translateZ(-9px) rotateY(90deg);
}
.pg-studio-viewfinder .pg-studio-optic--side-left { left: -28px; right: auto; }
.pg-studio-viewfinder .pg-studio-optic--side-right { left: auto; right: -28px; }
.pg-studio-viewfinder .pg-studio-optic--bottom {
  inset: auto 16px -28px; height: 70px; border-radius: 4px;
  background: linear-gradient(#405760, #0b1720 65%, #050a10);
  box-shadow: inset 0 1px rgba(158,192,187,.40);
  transform: translateZ(-9px) rotateX(90deg);
}
.pg-studio-viewfinder .pg-studio-optic--middle {
  inset: 1px; border: 12px solid #263b46; background: #080f18;
  box-shadow: inset 0 1px rgba(215,237,231,.61), 0 2px 0 #03090e, 0 0 0 1px rgba(146,170,167,.44);
  transform: translateZ(-16px);
}
.pg-studio-viewfinder .pg-studio-optic--aperture {
  inset: 21px; border-radius: 11px;
  clip-path: inset(0 round 11px);
  overflow: hidden;
  opacity: .96;
  filter: saturate(.9) contrast(1.04);
  background: #0a1920;
  box-shadow: inset 0 0 28px rgba(7,18,27,.60);
  transform: translateZ(10px);
}
.pg-studio-viewfinder .pg-studio-optic--front {
  border: 13px solid #344b55;
  background: linear-gradient(135deg, rgba(217,246,237,.03), rgba(7,19,27,.03) 45%, rgba(170,215,208,.02));
  box-shadow: inset 0 1px 1px rgba(239,255,244,.75), inset 0 -1px 2px rgba(2,7,13,.90), 0 0 0 1px rgba(192,212,206,.60), 1px 2px 0 #839a9e, 3px 5px 0 #07131c;
  transform: translateZ(26px);
}
.pg-studio-viewfinder .pg-studio-optic--front::before {
  content: ''; position: absolute; inset: -8px; border-radius: 18px;
  background:
    radial-gradient(circle at 7px 7px, #c7d2cc 1px, #14232c 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) 7px, #c7d2cc 1px, #14232c 2px, transparent 3px),
    radial-gradient(circle at 7px calc(100% - 7px), #c7d2cc 1px, #14232c 2px, transparent 3px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #c7d2cc 1px, #14232c 2px, transparent 3px);
}
.pg-studio-viewfinder .pg-studio-optic--front::after {
  inset: 4px; border: 1px solid rgba(161,231,217,.29); border-radius: 11px;
  background: radial-gradient(ellipse 90% 110% at 26% 37%, rgba(239,255,242,.14), rgba(156,221,216,.03) 38%, transparent 68%),
    linear-gradient(124deg, transparent 20%, rgba(216,255,255,.02) 28%, rgba(234,255,255,.16) 29%, rgba(213,255,245,.06) 35%, transparent 49%);
  box-shadow: inset 0 0 14px rgba(3,11,21,.24);
}

.pg-studio-viewfinder-metal {
  position: absolute; inset: -13px; padding: 13px; border-radius: 26px;
  background:
    repeating-linear-gradient(0deg, transparent 0 1px, rgba(229,243,237,.07) 1.5px, rgba(0,0,0,.08) 2px),
    radial-gradient(ellipse 130% 90% at 26% 37%, rgba(237,255,249,.42), transparent 62%),
    linear-gradient(130deg, #1b2d36, #a6b8ba 7%, #536e78 14%, #263943 29%, #0b1822 46%, #405760 68%, #93aaa7 84%, #152731);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.pg-studio-viewfinder-guides {
  position: absolute;
  inset: 22px;
  background: linear-gradient(#b8f5e9, #b8f5e9) top left / 21px 1px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) top left / 1px 17px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) top right / 21px 1px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) top right / 1px 17px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) bottom left / 21px 1px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) bottom left / 1px 17px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) bottom right / 21px 1px no-repeat,
    linear-gradient(#b8f5e9, #b8f5e9) bottom right / 1px 17px no-repeat;
  opacity: .7;
}
.pg-studio-viewfinder-guides::after {
  content: '';
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  background: linear-gradient(#d6eee8, #d6eee8) center / 14px 1px no-repeat,
    linear-gradient(#d6eee8, #d6eee8) center / 1px 14px no-repeat;
  opacity: .6;
}

.pg-studio-viewfinder-caption {
  position: absolute;
  left: 20px;
  top: -10px;
  color: #c9d9d2;
  font: 600 8px/12px ui-monospace, monospace;
  letter-spacing: .18em;
}

.pg-studio-viewfinder-dial {
  position: absolute;
  right: 54px;
  top: -13px;
  width: 32px;
  height: 24px;
  border: 1px solid rgba(173,199,197,.50);
  border-radius: 50%;
  background: radial-gradient(ellipse, #1b2c34 48%, transparent 52%),
    repeating-conic-gradient(#607b80 0deg 8deg, #0b1820 8deg 16deg);
  box-shadow: inset 0 1px rgba(229,255,245,.55), 0 3px 0 #08111a, 0 5px 6px rgba(0,0,0,.5);
  transform: translateZ(-6px) rotateX(38deg);
}

/* Aperture content: pure-CSS rainy night street (no external images). */
.pg-studio-shot { position: absolute; inset: 0; overflow: hidden; }
.pg-studio-shot-plane { position: absolute; inset: -5%; }
.pg-studio-shot-plane::before,
.pg-studio-shot-plane::after {
  content: '';
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}
.pg-studio-shot-plane--far::before {
  background-image: url('/assets/studio-viewfinder/mv-duet-singing.webp');
}
.pg-studio-shot-plane--far::after {
  background:
    radial-gradient(ellipse 70px 110px at 63% 58%, rgba(255,176,96,.22), transparent 72%),
    radial-gradient(ellipse 46px 70px at 32% 62%, rgba(255,150,84,.16), transparent 70%),
    linear-gradient(124deg, transparent 32%, rgba(216,255,255,.07) 46%, transparent 60%);
}
.pg-studio-shot-plane--near {
  mask-image: linear-gradient(90deg, #000, transparent 23%, transparent 77%, #000);
}
.pg-studio-shot-haze {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 32% 45% at 59% 45%, rgba(181,231,216,.10), transparent 80%);
}
.pg-studio-shot-rain {
  position: absolute;
  inset: -8%;
  background: repeating-linear-gradient(100deg, transparent 0 30px, rgba(213,233,226,.07) 31px, transparent 32px 64px);
  mask-image: linear-gradient(transparent 15%, rgba(0,0,0,.5) 40%, transparent 90%);
}

.pg-studio-viewfinder-hud {
  position: absolute;
  inset: 19px;
  color: #e6f6ee;
  font: 500 7px/1.4 ui-monospace, monospace;
  letter-spacing: .12em;
  text-shadow: 0 1px 3px #000;
}
.pg-studio-viewfinder-rec { position: absolute; top: 9px; left: 10px; }
.pg-studio-viewfinder-rec::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: #f3a08a;
  box-shadow: 0 0 5px rgba(243,160,138,.4);
}
.pg-studio-viewfinder-mode { position: absolute; left: 10px; bottom: 9px; }
.pg-studio-viewfinder-mode--film { opacity: 1; }
.pg-studio-viewfinder-mode--sketch { opacity: 0; }
.pg-studio-viewfinder-timecode { position: absolute; right: 10px; bottom: 9px; font-size: 6px; letter-spacing: .04em; }

@media (max-width: 1050px) {
  .pg-studio-optics { right: -5%; opacity: .85; }
}
@media (max-width: 720px) {
  .pg-studio-optics { right: -145px; top: 56px; opacity: .30; width: 340px; }
}

/* ------------------------------------------------ 个人中心 / 作品管理（04） */
.pg-profile-works {
  min-width: 0;
  border: 1px solid var(--profile-line);
  background: linear-gradient(145deg, rgba(16,28,27,.88), rgba(7,14,14,.82));
  box-shadow: 0 22px 80px rgba(0,0,0,.16);
  scroll-margin-top: calc(var(--pg-cloud-bar-height, 0px) + 24px);
}
.pg-profile-works .pg-profile-section-head > span[data-offline="true"] {
  border-color: rgba(230,194,122,.35);
  color: var(--profile-gold);
}
.pg-works-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--profile-line);
}
.pg-works-summary > span {
  padding: 16px 20px 16px 0;
  margin-right: 20px;
  color: var(--profile-muted);
  font-size: 11.5px;
  letter-spacing: .02em;
}
.pg-works-summary > span strong { color: var(--profile-text); font-size: 15px; font-weight: 600; }
.pg-works-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--profile-line);
}
.pg-works-search { flex: 1 1 220px; min-width: 180px; }
.pg-works-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--profile-line);
  background: rgba(255,255,255,.03);
  color: var(--profile-text);
  font-size: 12px;
  outline: none;
}
.pg-works-search input:focus { border-color: rgba(141,240,200,.5); }
.pg-works-search input::placeholder { color: rgba(228,241,235,.35); }
.pg-works-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-works-filters button {
  padding: 8px 12px;
  border: 1px solid var(--profile-line);
  background: transparent;
  color: var(--profile-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: .16s ease;
}
.pg-works-filters button:hover { color: var(--profile-text); border-color: rgba(141,240,200,.35); }
.pg-works-filters button.is-active { color: #06110d; background: var(--profile-mint); border-color: var(--profile-mint); font-weight: 700; }
.pg-works-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }

/* 作品分类：全部 / MV / 短剧 / 爆款 —— 分段胶囊，和状态筛选分两行 */
.pg-works-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 28px 0;
}
.pg-works-modules button {
  padding: 9px 18px;
  border: 1px solid var(--profile-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--profile-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.pg-works-modules button:hover { color: var(--profile-text); border-color: rgba(141, 240, 200, .38); transform: translateY(-1px); }
.pg-works-modules button.is-active {
  color: #06110d;
  background: var(--profile-mint);
  border-color: var(--profile-mint);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(141, 240, 200, .18);
}

/* 作品卡上的模块来源徽标 */
.pg-work-module-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pg-work-module {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #0b1512;
  background: var(--profile-mint);
}
.pg-work-module.is-shortdrama { background: #f2cd8b; }
.pg-work-module.is-hotvideo { background: #b7a6ff; }

/* 没有封面时（短剧/爆款成片）用文字占位，不留破图 */
.pg-work-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(228, 241, 235, .55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.pg-works-toolbar-actions .pg-cloud-btn { white-space: nowrap; }
.pg-works-toolbar-actions .pg-cloud-btn.danger { color: #ffb6b0; border-color: rgba(255,157,152,.4); }
.pg-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 16px;
  padding: 24px 28px 28px;
}
.pg-work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--profile-line);
  background: rgba(9,18,17,.72);
  transition: border-color .18s ease, transform .18s ease;
}
.pg-work-card:hover { border-color: rgba(141,240,200,.38); transform: translateY(-2px); }
.pg-work-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(24,42,38,.9), rgba(8,15,15,.95));
}
.pg-work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-work-cover img.is-broken { visibility: hidden; }
.pg-work-cover::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(3,8,8,.88));
  pointer-events: none;
}
.pg-work-status {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(196,255,229,.2);
  background: rgba(4,12,11,.78);
  color: var(--profile-muted);
  font-size: 10px;
  letter-spacing: .04em;
}
.pg-work-status.tone-ok { color: var(--profile-mint); border-color: rgba(141,240,200,.45); }
.pg-work-status.tone-running { color: var(--profile-gold); border-color: rgba(230,194,122,.45); }
.pg-work-status.tone-error { color: #ffb6b0; border-color: rgba(255,157,152,.45); }
.pg-work-select { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px; background: rgba(4,12,11,.78); cursor: pointer; }
.pg-work-select input { width: 14px; height: 14px; accent-color: var(--profile-mint); cursor: pointer; }
.pg-work-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(141,240,200,.55);
  border-radius: 50%;
  background: rgba(5,14,12,.62);
  color: var(--profile-mint);
  cursor: pointer;
}
.pg-work-play svg { width: 20px; height: 20px; }
.pg-work-play:hover { background: rgba(141,240,200,.2); }
.pg-work-info { display: grid; align-content: start; gap: 6px; padding: 14px 14px 16px; min-width: 0; }
.pg-work-title { color: var(--profile-text); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-work-rename-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--profile-mint);
  background: rgba(0,0,0,.4);
  color: var(--profile-text);
  font-size: 12px;
  outline: none;
}
.pg-work-meta, .pg-work-sub, .pg-work-note { color: var(--profile-muted); font-size: 10.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-work-note { color: var(--profile-gold); }
.pg-work-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pg-work-btn {
  padding: 5px 9px;
  border: 1px solid var(--profile-line);
  background: transparent;
  color: var(--profile-muted);
  font-size: 10.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.pg-work-btn:hover { color: var(--profile-text); border-color: rgba(141,240,200,.4); }
.pg-work-btn.is-on { color: var(--profile-mint); border-color: rgba(141,240,200,.5); }
.pg-work-btn.is-disabled { opacity: .45; cursor: default; }
.pg-work-btn.danger:hover { color: #ffb6b0; border-color: rgba(255,157,152,.5); }
.pg-works-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 46px 20px;
  border: 1px dashed var(--profile-line);
  text-align: center;
}
.pg-works-empty strong { color: var(--profile-text); font-size: 14px; font-weight: 500; }
.pg-works-empty span { color: var(--profile-muted); font-size: 11.5px; }
.pg-works-note { margin: 0; padding: 0 28px 24px; color: rgba(228,241,235,.45); font-size: 11px; line-height: 1.6; }
.pg-work-card.is-pending .pg-work-cover { opacity: .72; }

@media (max-width: 900px) {
  .pg-works-summary, .pg-works-toolbar { padding-left: 18px; padding-right: 18px; }
  .pg-works-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding: 18px; }
  .pg-works-note { padding-left: 18px; padding-right: 18px; }
  .pg-works-toolbar-actions { margin-left: 0; }
}
@media (max-width: 560px) {
  .pg-works-grid { grid-template-columns: 1fr; }
  .pg-work-cover { aspect-ratio: 16 / 9; }
}

/* ---------- 首页 · 工作流步骤条（01 歌曲/MV创作 → 04 成片输出） ---------- */
.pg-home-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 22px;
  padding: 10px;
  border: 1px solid rgba(160, 189, 181, 0.16);
  border-radius: 14px;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.pg-home-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.pg-home-step-index {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(124, 140, 255, 0.16);
  color: #cfd6ff;
  font-weight: 800;
  font-size: 0.78rem;
}

.pg-home-step-main {
  min-width: 0;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  color: #eef4f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-home-step-sub {
  min-width: 0;
  font-size: 0.78rem;
  color: rgba(190, 210, 204, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .pg-home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .pg-home-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- 作品分享弹窗（封面自动提取 / 上传，AI 标题简介） ---------------- */
.pg-share-dialog { width: min(560px, calc(100vw - 32px)); }
.pg-share-hint { margin: 6px 0 14px; color: rgba(228,241,235,.62); font-size: 12.5px; line-height: 1.6; }
.pg-share-cover-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.pg-share-cover { width: 132px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: rgba(20,34,32,.9); flex: 0 0 auto; }
.pg-share-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-share-cover-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.pg-share-upload-label { cursor: pointer; text-align: center; }
.pg-share-field { display: block; margin-bottom: 12px; }
.pg-share-field span { display: block; margin-bottom: 6px; font-size: 12.5px; color: rgba(228,241,235,.72); }
.pg-share-field input, .pg-share-field textarea { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid rgba(163,206,186,.28); background: rgba(9,18,17,.9); color: #ecf7f1; padding: 9px 11px; font-size: 13px; font-family: inherit; }
.pg-share-field textarea { resize: vertical; min-height: 84px; }
.pg-share-ai-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pg-share-msg { font-size: 12px; color: rgba(228,241,235,.6); }

/* 资产设计逐批采集进度：已采集 / 未采集 / 继续采集 */
.asset-collect-progress {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  line-height: 1.6;
}
.asset-collect-progress p { margin: 2px 0; }
.asset-collect-progress strong { color: #9be3c0; }
.asset-collect-progress button {
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(155, 227, 192, .5);
  background: rgba(155, 227, 192, .12);
  color: #d7f7e7;
  cursor: pointer;
  font-size: 12px;
}
.asset-collect-progress button:hover { background: rgba(155, 227, 192, .22); }
.asset-collect-progress button:disabled { opacity: .55; cursor: default; }

/* 首页「作品观赏」分类筛选：黑金 / 香槟金 */
.pg-showcase-filter {
  border: 1px solid rgba(198, 166, 102, 0.32) !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #262016 0%, #1d1811 100%) !important;
  color: #b8a583 !important;
  box-shadow: inset 0 1px 0 rgba(255, 226, 160, 0.1) !important;
}

.pg-showcase-filter:hover,
.pg-showcase-filter:focus-visible {
  outline: none !important;
  border-color: rgba(233, 200, 128, 0.72) !important;
  background: linear-gradient(180deg, #352c1f 0%, #241e15 100%) !important;
  color: #f4d58c !important;
}

.pg-showcase-filter.active {
  border-color: rgba(230, 199, 134, 0.92) !important;
  background:
    radial-gradient(120% 150% at 50% -20%, rgba(246, 205, 114, 0.18) 0%, rgba(246, 205, 114, 0) 58%),
    linear-gradient(180deg, #403524 0%, #241e15 100%) !important;
  color: #ffe2a0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 184, 0.34),
    0 6px 18px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(230, 199, 134, 0.14) !important;
}

/* 首页 hero 右侧：后台「爆款短视频幻灯片」同步展示 */
.pg-home-hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3.4 / 1;
  overflow: hidden;
  border: 1px solid rgba(198, 166, 102, 0.34);
  border-radius: 12px;
  background: #12100b;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 160, 0.12),
    0 12px 34px rgba(0, 0, 0, 0.34);
}

.pg-home-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}

.pg-home-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pg-home-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-home-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 26px 18px 12px;
  color: #ffe2a0;
  background: linear-gradient(180deg, rgba(10, 9, 6, 0) 0%, rgba(10, 9, 6, 0.82) 78%);
}

.pg-home-slide figcaption strong {
  font-size: 14px;
  font-weight: 820;
}

.pg-home-slide figcaption span {
  color: rgba(255, 226, 160, 0.72);
  font-size: 11.5px;
}

.pg-home-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 2;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.pg-home-slide-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 1px solid rgba(230, 199, 134, 0.55);
  border-radius: 999px;
  background: rgba(18, 16, 11, 0.72);
  cursor: pointer;
}

.pg-home-slide-dot.is-active {
  background: #e6c786;
  box-shadow: 0 0 8px rgba(230, 199, 134, 0.55);
}

@media (max-width: 1120px) {
  .pg-home-hero-slides {
    width: min(100%, 620px);
    justify-self: start;
  }
}
