/* 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-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;
      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, 1fr) auto;
      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-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-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-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;
      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 {
      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 {
      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 {
      outline: none;
      background: rgba(255,255,255,.09);
      color: #fff;
    }
    .pg-project-menu-rename 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-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-member-backdrop {
      position: relative;
      display: none;
      min-height: calc(100vh - var(--pg-cloud-bar-height, 0px));
      overflow: visible;
      background:
        radial-gradient(circle at 14% 4%, rgba(255, 206, 122, .16), transparent 28%),
        radial-gradient(circle at 78% 12%, rgba(85, 205, 196, .14), transparent 31%),
        linear-gradient(180deg, #070b12 0%, #0a0f18 48%, #070a0f 100%);
      color: #f7fbff;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    .pg-member-backdrop.show { display: block; }
    .pg-member-page {
      min-height: 100%;
      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: 80px 80px;
    }
    .pg-member-page-inner {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      padding: 28px 0 54px;
    }
    .pg-member-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }
    .pg-member-back,
    .pg-member-close {
      min-height: 34px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      padding: 8px 12px;
      background: rgba(255,255,255,.065);
      color: rgba(247,251,255,.86);
      cursor: pointer;
      font-weight: 850;
    }
    .pg-member-back:hover,
    .pg-member-back:focus-visible,
    .pg-member-close:hover,
    .pg-member-close:focus-visible {
      outline: none;
      color: #fff;
      border-color: rgba(255,255,255,.24);
      background: rgba(255,255,255,.1);
    }
    .pg-member-nav-note {
      color: rgba(247,251,255,.52);
      font-size: 13px;
      font-weight: 700;
    }
    .pg-member-body {
      display: grid;
      gap: 24px;
    }
    .pg-member-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
      gap: 20px;
      align-items: stretch;
      padding: 12px 0 16px;
    }
    .pg-member-eyebrow {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      min-height: 26px;
      border: 1px solid rgba(245, 194, 107, .36);
      border-radius: 999px;
      padding: 4px 10px;
      color: #ffd88d;
      background: rgba(245, 194, 107, .09);
      font-size: 12px;
      font-weight: 900;
    }
    .pg-member-title {
      margin: 14px 0 10px;
      color: #fff;
      font-size: clamp(30px, 5vw, 54px);
      line-height: 1.02;
      letter-spacing: 0;
      font-weight: 950;
    }
    .pg-member-lead {
      max-width: 720px;
      margin: 0;
      color: rgba(247,251,255,.68);
      font-size: 15px;
      line-height: 1.8;
    }
    .pg-member-status-panel {
      display: grid;
      align-content: start;
      gap: 14px;
      border: 1px solid rgba(255, 220, 159, .2);
      border-radius: 8px;
      padding: 18px;
      background:
        linear-gradient(150deg, rgba(255, 208, 130, .14), rgba(255,255,255,.035) 50%, rgba(85,205,196,.08)),
        rgba(13, 17, 24, .84);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 56px rgba(0,0,0,.28);
    }
    .pg-member-status-label {
      color: rgba(247,251,255,.58);
      font-size: 12px;
      font-weight: 850;
    }
    .pg-member-current-tier {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      color: #fff;
      font-size: 24px;
      font-weight: 950;
    }
    .pg-member-current-tier span {
      color: #ffd88d;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-member-status-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .pg-member-status-item {
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 8px;
      padding: 10px;
      background: rgba(255,255,255,.045);
    }
    .pg-member-status-item strong {
      display: block;
      color: #fff;
      font-size: 14px;
    }
    .pg-member-status-item span {
      display: block;
      margin-top: 3px;
      color: rgba(247,251,255,.56);
      font-size: 12px;
    }
    .pg-member-success {
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 8px;
      padding: 12px 14px;
      background: rgba(85,205,196,.09);
      color: #bffdf4;
      font-size: 13px;
      font-weight: 850;
    }
    .pg-member-section-title {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .pg-member-section-title h3 {
      margin: 0;
      color: #fff;
      font-size: 22px;
      letter-spacing: 0;
    }
    .pg-member-section-title p {
      margin: 0;
      color: rgba(247,251,255,.54);
      font-size: 13px;
    }
    .pg-member-plan-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .pg-member-canary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 20px;
      border: 1px solid rgba(22,119,255,.34);
      border-radius: 10px;
      padding: 18px;
      background:
        radial-gradient(circle at 100% 0, rgba(22,119,255,.15), transparent 36%),
        linear-gradient(145deg, rgba(22,119,255,.08), rgba(255,255,255,.035)),
        rgba(8,14,24,.88);
    }
    .pg-member-canary h3 {
      margin: 8px 0 6px;
      color: #fff;
      font-size: 20px;
    }
    .pg-member-canary p {
      max-width: 760px;
      margin: 0;
      color: rgba(247,251,255,.62);
      font-size: 13px;
      line-height: 1.65;
    }
    .pg-member-canary-badge {
      display: inline-flex;
      border: 1px solid rgba(22,119,255,.38);
      border-radius: 999px;
      padding: 4px 8px;
      background: rgba(22,119,255,.1);
      color: #a9cfff;
      font-size: 11px;
      font-weight: 900;
    }
    .pg-member-canary-action {
      display: grid;
      justify-items: end;
      gap: 5px;
      min-width: 210px;
    }
    .pg-member-canary-action > strong {
      color: #fff;
      font-size: 26px;
    }
    .pg-member-canary-action > span {
      color: rgba(247,251,255,.54);
      font-size: 11px;
    }
    .pg-member-canary-action .pg-cloud-btn {
      margin-top: 5px;
      justify-content: center;
      min-width: 210px;
    }
    .pg-member-plan {
      position: relative;
      min-width: 0;
      display: grid;
      grid-template-rows: auto auto 1fr auto;
      gap: 14px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      padding: 18px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        rgba(13, 17, 24, .86);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
    }
    .pg-member-plan::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, #b8d7ff, #7c8bff);
      opacity: .9;
    }
    .pg-member-plan[data-tier="vip"]::before { background: linear-gradient(90deg, #d8e8ff, #7d8cff); }
    .pg-member-plan[data-tier="svip"]::before { background: linear-gradient(90deg, #bff8ff, #b5a8ff); }
    .pg-member-plan[data-tier="enterprise_vip"]::before { background: linear-gradient(90deg, #ffe1a1, #d7a33d); }
    .pg-member-plan.is-current,
    .pg-member-plan.is-covered {
      border-color: rgba(245,194,107,.48);
      background:
        linear-gradient(145deg, rgba(245,194,107,.12), rgba(255,255,255,.035)),
        rgba(13, 17, 24, .88);
    }
    .pg-member-plan-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .pg-member-plan-name {
      display: grid;
      gap: 5px;
    }
    .pg-member-plan-name strong {
      color: #fff;
      font-size: 22px;
      font-weight: 950;
      letter-spacing: 0;
    }
    .pg-member-plan-name span {
      color: rgba(247,251,255,.56);
      font-size: 12px;
      line-height: 1.4;
    }
    .pg-member-plan-tag {
      flex: 0 0 auto;
      border: 1px solid rgba(245,194,107,.36);
      border-radius: 999px;
      padding: 4px 8px;
      color: #ffd88d;
      background: rgba(245,194,107,.1);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-member-price {
      display: flex;
      align-items: baseline;
      gap: 6px;
      color: #fff;
      font-size: 36px;
      font-weight: 950;
    }
    .pg-member-price span {
      color: rgba(247,251,255,.54);
      font-size: 13px;
      font-weight: 800;
    }
    .pg-member-feature-list {
      display: grid;
      gap: 9px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .pg-member-feature-list li {
      position: relative;
      padding-left: 18px;
      color: rgba(247,251,255,.72);
      font-size: 13px;
      line-height: 1.55;
    }
    .pg-member-feature-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .62em;
      width: 7px;
      height: 7px;
      border-radius: 99px;
      background: #55cdc4;
      box-shadow: 0 0 0 4px rgba(85,205,196,.1);
    }
    .pg-member-plan .pg-cloud-btn {
      width: 100%;
      justify-content: center;
      min-height: 40px;
      font-weight: 950;
    }
    .pg-member-plan .pg-cloud-btn:disabled {
      opacity: .72;
      color: rgba(247,251,255,.72);
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.12);
    }
    .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) {
      background: rgba(255,255,255,.08);
      border-color: rgba(255,255,255,.18);
      color: rgba(247,251,255,.92);
    }
    .pg-member-checkout-backdrop {
      position: fixed;
      inset: 0;
      z-index: 12000;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(1, 4, 9, .76);
      backdrop-filter: blur(10px);
    }
    .pg-member-checkout-backdrop[hidden] { display: none; }
    .pg-member-checkout {
      width: min(520px, 100%);
      max-height: min(760px, calc(100vh - 40px));
      overflow: auto;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      padding: 22px;
      background:
        radial-gradient(circle at 100% 0, rgba(85,205,196,.12), transparent 34%),
        linear-gradient(155deg, #161d29, #0b1018 58%);
      box-shadow: 0 28px 90px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
    }
    .pg-member-checkout-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }
    .pg-member-checkout-head span {
      color: rgba(247,251,255,.52);
      font-size: 12px;
      font-weight: 850;
    }
    .pg-member-checkout-head h3 {
      margin: 5px 0 0;
      color: #fff;
      font-size: 24px;
    }
    .pg-member-checkout-close {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255,255,255,.13);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
      color: rgba(247,251,255,.78);
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
    }
    .pg-member-checkout-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin: 20px 0;
    }
    .pg-member-checkout-summary > div,
    .pg-member-order-grid > div {
      min-width: 0;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 8px;
      padding: 11px;
      background: rgba(255,255,255,.045);
    }
    .pg-member-checkout-summary span,
    .pg-member-order-grid span {
      display: block;
      color: rgba(247,251,255,.48);
      font-size: 11px;
      font-weight: 800;
    }
    .pg-member-checkout-summary strong,
    .pg-member-order-grid strong {
      display: block;
      margin-top: 4px;
      color: #fff;
      font-size: 15px;
      overflow-wrap: anywhere;
    }
    .pg-member-provider-fieldset {
      margin: 0;
      border: 0;
      padding: 0;
    }
    .pg-member-provider-fieldset legend {
      margin-bottom: 9px;
      color: rgba(247,251,255,.7);
      font-size: 13px;
      font-weight: 900;
    }
    .pg-member-plan-fieldset { margin-top: 18px; }
    .pg-member-checkout-plan-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .pg-member-checkout-plan {
      position: relative;
      display: grid;
      gap: 4px;
      min-width: 0;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 8px;
      padding: 10px;
      background: rgba(255,255,255,.04);
      cursor: pointer;
    }
    .pg-member-checkout-plan:hover,
    .pg-member-checkout-plan.is-selected {
      border-color: rgba(245,194,107,.48);
      background: rgba(245,194,107,.09);
    }
    .pg-member-checkout-plan input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .pg-member-checkout-plan strong { color: #fff; font-size: 13px; }
    .pg-member-checkout-plan span { color: rgba(247,251,255,.54); font-size: 11px; }
    .pg-member-provider-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .pg-member-provider-option {
      position: relative;
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 10px;
      min-width: 0;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 9px;
      padding: 12px;
      background: rgba(255,255,255,.045);
      cursor: pointer;
    }
    .pg-member-provider-option:hover,
    .pg-member-provider-option.is-selected {
      border-color: rgba(85,205,196,.56);
      background: rgba(85,205,196,.1);
      box-shadow: inset 0 0 0 1px rgba(85,205,196,.12);
    }
    .pg-member-provider-option input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .pg-member-provider-mark {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: #18aa64;
      color: #fff;
      font-size: 17px;
      font-weight: 950;
    }
    .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: #fff; font-size: 14px; }
    .pg-member-provider-option small { margin-top: 3px; color: rgba(247,251,255,.5); font-size: 11px; }
    .pg-member-checkout-warning,
    .pg-member-checkout-error {
      margin: 14px 0 0;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 12px;
      line-height: 1.55;
    }
    .pg-member-checkout-warning {
      border: 1px solid rgba(245,194,107,.3);
      background: rgba(245,194,107,.08);
      color: #ffe2aa;
    }
    .pg-member-checkout-error {
      border: 1px solid rgba(255,112,112,.34);
      background: rgba(255,112,112,.09);
      color: #ffc6c6;
    }
    .pg-member-checkout-error[hidden] { display: none; }
    .pg-member-checkout-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 9px;
      margin-top: 20px;
    }
    .pg-member-payment-dialog { width: min(840px, 100%); }
    .pg-member-payment-dialog-stage {
      position: relative;
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 18px;
      min-height: 428px;
      border: 1px solid rgba(85,205,196,.3);
      border-radius: 12px;
      padding: 18px;
      background:
        radial-gradient(circle at 15% 20%, rgba(85,205,196,.13), transparent 42%),
        rgba(5,10,16,.64);
    }
    .pg-member-payment-dialog-stage[data-provider="alipay_page"] {
      border-color: rgba(22,119,255,.38);
      background:
        radial-gradient(circle at 15% 20%, rgba(22,119,255,.15), transparent 42%),
        rgba(5,10,16,.64);
    }
    .pg-member-payment-dialog-stage > .pg-member-provider-mark {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 30px;
      height: 30px;
      font-size: 15px;
    }
    .pg-member-payment-dialog-qr,
    .pg-member-payment-dialog-qr-placeholder {
      width: 400px;
      height: 400px;
      border-radius: 10px;
      background: #fff;
    }
    .pg-member-payment-dialog-qr {
      object-fit: contain;
      image-rendering: pixelated;
    }
    .pg-member-payment-dialog-qr-placeholder {
      display: grid;
      place-items: center;
      padding: 18px;
      color: #465162;
      font-size: 12px;
      font-weight: 900;
      text-align: center;
    }
    .pg-member-payment-dialog-copy {
      display: grid;
      gap: 9px;
      padding-right: 28px;
    }
    .pg-member-payment-dialog-copy strong { color: #fff; font-size: 18px; }
    .pg-member-payment-dialog-copy span {
      color: rgba(247,251,255,.65);
      font-size: 13px;
      line-height: 1.7;
    }
    .pg-member-payment-dialog-copy small {
      color: rgba(247,251,255,.4);
      font-size: 11px;
      overflow-wrap: anywhere;
    }
    .pg-member-payment-dialog-status {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 13px;
      color: rgba(247,251,255,.66);
      font-size: 12px;
      font-weight: 850;
    }
    .pg-member-payment-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #55cdc4;
      box-shadow: 0 0 0 5px rgba(85,205,196,.12);
      animation: pg-member-payment-pulse 1.5s ease-in-out infinite;
    }
    @keyframes pg-member-payment-pulse {
      0%, 100% { opacity: .52; transform: scale(.86); }
      50% { opacity: 1; transform: scale(1); }
    }
    .pg-member-plan-alert {
      display: grid;
      gap: 8px;
      border: 1px solid rgba(245,194,107,.42);
      border-radius: 8px;
      padding: 10px;
      background:
        linear-gradient(135deg, rgba(245,194,107,.18), rgba(85,205,196,.08)),
        rgba(0,0,0,.18);
      color: #fff2c8;
      font-size: 12px;
      font-weight: 900;
      line-height: 1.45;
    }
    .pg-member-plan-alert .pg-cloud-btn {
      width: auto;
      justify-self: start;
      min-height: 30px;
      padding: 6px 10px;
      font-size: 12px;
    }
    .pg-member-payment {
      display: grid;
      gap: 10px;
      border: 1px solid rgba(85,205,196,.28);
      border-radius: 8px;
      padding: 14px;
      background:
        linear-gradient(135deg, rgba(85,205,196,.1), rgba(255,255,255,.04)),
        rgba(8, 14, 20, .86);
      overflow-wrap: anywhere;
    }
    .pg-member-payment[hidden] { display: none; }
    .pg-member-order-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }
    .pg-member-order-head > div { display: grid; gap: 4px; }
    .pg-member-order-head strong { color: #fff; font-size: 20px; }
    .pg-member-order-head small { color: rgba(247,251,255,.5); font-size: 11px; }
    .pg-member-order-eyebrow {
      color: #9ff4ea;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .pg-member-order-status {
      flex: 0 0 auto;
      border: 1px solid rgba(245,194,107,.34);
      border-radius: 999px;
      padding: 5px 9px;
      background: rgba(245,194,107,.09);
      color: #ffe0a3;
      font-size: 12px;
      font-weight: 900;
    }
    .pg-member-order-status.is-closing {
      border-color: rgba(125,140,255,.38);
      background: rgba(125,140,255,.1);
      color: #cbd1ff;
    }
    .pg-member-order-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .pg-member-order-qr {
      display: flex;
      align-items: center;
      gap: 14px;
      color: rgba(247,251,255,.68);
      font-size: 13px;
      font-weight: 800;
    }
    .pg-member-order-help {
      margin: 0;
      color: rgba(247,251,255,.62);
      font-size: 12px;
      line-height: 1.65;
    }
    .pg-member-payment .pg-cloud-btn.danger {
      border-color: rgba(255,112,112,.28);
      background: rgba(255,112,112,.07);
      color: #ffc1c1;
    }
    .pg-member-qr-image {
      width: 184px;
      height: 184px;
      padding: 8px;
      border-radius: 8px;
      background: #fff;
      object-fit: contain;
    }
    .pg-member-qr-link {
      max-width: 100%;
      color: rgba(247,251,255,.62);
      font-size: 12px;
      overflow-wrap: anywhere;
    }
    .pg-member-compare-wrap {
      overflow: auto;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      background: rgba(9,13,20,.82);
    }
    .pg-member-compare {
      width: 100%;
      min-width: 860px;
      border-collapse: collapse;
      color: rgba(247,251,255,.76);
      font-size: 13px;
    }
    .pg-member-compare th,
    .pg-member-compare td {
      border-bottom: 1px solid rgba(255,255,255,.07);
      padding: 13px 14px;
      text-align: left;
      vertical-align: top;
    }
    .pg-member-compare thead th {
      position: sticky;
      top: 0;
      z-index: 1;
      color: #fff;
      background: rgba(24,31,42,.96);
      font-weight: 950;
    }
    .pg-member-compare th:first-child,
    .pg-member-compare td:first-child {
      color: #fff;
      font-weight: 900;
      background: rgba(255,255,255,.035);
    }
    .pg-member-compare .is-current {
      color: #ffe0a3;
      background: rgba(245,194,107,.08);
    }
    .pg-member-notes {
      display: grid;
      gap: 10px;
      border-top: 1px solid rgba(255,255,255,.08);
      padding-top: 16px;
    }
    .pg-member-notes p {
      margin: 0;
      color: rgba(247,251,255,.58);
      font-size: 13px;
      line-height: 1.7;
    }
    @media (max-width: 980px) {
      .pg-member-page-inner { width: min(100% - 28px, 720px); padding-top: 18px; }
      .pg-member-hero,
      .pg-member-plan-grid { grid-template-columns: 1fr; }
      .pg-member-title { font-size: 34px; }
      .pg-member-section-title { align-items: flex-start; flex-direction: column; }
      .pg-member-canary { grid-template-columns: 1fr; }
      .pg-member-canary-action { justify-items: start; min-width: 0; }
      .pg-member-checkout-summary,
      .pg-member-order-grid { grid-template-columns: 1fr; }
      .pg-referral-node-main,
      .pg-earnings-row,
      .pg-earnings-metrics { grid-template-columns: 1fr; }
      .pg-referral-branches,
      .pg-referral-children {
        margin-left: 0;
        padding-left: 12px;
      }
    }
    @media (max-width: 560px) {
      .pg-member-checkout-backdrop { padding: 10px; }
      .pg-member-checkout { padding: 16px; }
      .pg-member-provider-grid { grid-template-columns: 1fr; }
      .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-payment-dialog-stage { grid-template-columns: 1fr; justify-items: center; }
      .pg-member-payment-dialog-qr,
      .pg-member-payment-dialog-qr-placeholder { width: min(280px, 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; }
    }
    .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-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-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;
    }

/* frontend-src/styles/app-shell/01-styles.css */

    .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: var(--pg-density-page-top) 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;
    }
    .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, 1fr) auto;
      align-items: center;
      gap: clamp(28px, 6vw, 96px);
      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: min(680px, 100%);
      min-height: 0;
      height: auto;
      box-sizing: border-box;
      padding: 18px 22px 14px;
      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: 14px 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: 8px 0 0;
      max-width: 620px;
      color: rgba(247,251,255,.68);
      font-size: 14px;
      line-height: 1.5;
    }
    .pg-home-immersive-hint {
      position: relative;
      justify-self: end;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 13px;
      width: min(360px, 36vw);
      min-height: 72px;
      padding: 14px 16px;
      border: 1px solid rgba(129,230,217,.2);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(85,205,196,.13), rgba(102,126,234,.08)),
        rgba(7,12,24,.28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 52px rgba(0,0,0,.2);
      overflow: hidden;
    }
    .pg-home-immersive-hint::before {
      content: "";
      position: absolute;
      inset: 10px auto 10px 0;
      width: 2px;
      border-radius: 99px;
      background: linear-gradient(180deg, rgba(129,230,217,.95), rgba(245,193,108,.84));
      box-shadow: 0 0 18px rgba(129,230,217,.42);
    }
    .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: 50px 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: hidden;
    }
    .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;
      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.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, 1fr) 108px;
      gap: 10px;
    }
    .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;
      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: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-send {
      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-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-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
      gap: var(--pg-density-gap);
    }
    .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::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.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-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;
    }
    .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/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;
    }
    .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-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }
    .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%);
      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;
      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-update-center {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 2147481700;
      width: min(420px, calc(100vw - 24px));
      max-width: 100vw;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      gap: 0;
      padding: 22px 18px 18px;
      border-left: 1px solid rgba(255,255,255,.12);
      background:
        linear-gradient(180deg, rgba(20,28,40,.98), rgba(10,14,22,.98)),
        rgba(8,12,20,.96);
      color: #f7fbff;
      box-shadow: -18px 0 50px rgba(0,0,0,.32);
      transform: translateX(100%);
      transition: transform .24s ease;
      overflow: hidden;
    }
    .pg-update-center-backdrop {
      position: fixed;
      inset: 0;
      z-index: 2147481690;
      display: block;
      background: rgba(4,8,14,.42);
      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: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 16px;
    }
    .pg-update-center-title {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .pg-update-center-title strong {
      font-size: 18px;
      line-height: 1.2;
    }
    .pg-update-center-title span {
      color: rgba(247,251,255,.6);
      font-size: 12px;
      line-height: 1.5;
    }
    .pg-update-center-close {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
      color: rgba(247,251,255,.86);
      cursor: pointer;
    }
    .pg-update-center-close:hover,
    .pg-update-center-close:focus-visible {
      outline: none;
      border-color: rgba(85,205,196,.46);
      background: rgba(85,205,196,.12);
      color: #fff;
    }
    .pg-update-center-tabs {
      display: inline-grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 4px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 8px;
      background: rgba(255,255,255,.05);
      margin-bottom: 16px;
    }
    .pg-update-center-tab {
      min-height: 34px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: rgba(247,251,255,.68);
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }
    .pg-update-center-tab.active {
      color: #071014;
      background: linear-gradient(145deg, #6ee7df 0%, #f5c16c 100%);
      box-shadow: 0 10px 24px rgba(85,205,196,.16);
    }
    .pg-update-center-list {
      min-height: 0;
      overflow: auto;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding-right: 4px;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,.24) rgba(255,255,255,.04);
    }
    .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 rgba(10,14,22,.96);
      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: 10px 0;
      border: 0;
      border-bottom: 1px solid rgba(255,255,255,.08);
      border-radius: 0;
      background: transparent;
    }
    .pg-update-center-card:first-child {
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .pg-update-center-card[data-expanded="true"] {
      padding-bottom: 12px;
    }
    .pg-update-center-card-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      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;
      font-size: 13px;
    }
    .pg-update-center-card-title span {
      color: rgba(247,251,255,.66);
      font-size: 11px;
      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(247,251,255,.78);
      font-size: 11px;
      line-height: 1.45;
      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: 3px;
    }
    .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,.08);
      background: rgba(255,255,255,.03);
      border-radius: 8px;
      padding-left: 10px;
      padding-right: 10px;
      padding-bottom: 10px;
    }
    .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: 18px;
      display: inline-flex;
      align-items: center;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(128,240,216,.12);
      color: #8ff0e6;
      font-size: 9px;
      font-weight: 900;
      white-space: nowrap;
    }
    .pg-update-center-card[data-item-type="notice"] .pg-update-center-card-badge {
      background: rgba(245,193,108,.12);
      color: #ffd79c;
    }
    .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: 22px;
      height: 22px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 5px;
      background: rgba(255,255,255,.04);
      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: 8px;
      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-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 {
        justify-self: start;
        width: min(420px, 100%);
        margin-left: 22px;
      }
      .pg-home-flow-panel {
        order: 2;
        width: 100%;
        justify-self: stretch;
      }
      .pg-home-composer {
        margin-top: 42px;
      }
    }
    @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: 18px 14px 14px;
      }
      .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 {
        width: 100%;
        margin-left: 0;
      }
      .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-send { min-height: 46px; }
      .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 {
        justify-content: stretch;
      }
      .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-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; }
    }
    .workflow-steps { top: var(--pg-cloud-bar-height, 0px) !important; }
