/* The profile subpages keep their native authenticated controls, amounts and actions. */
html[data-frontend-theme="companion_island"] .cp-experience:is(.ce-page-account,.ce-page-wallet,.ce-page-wallet-history,.ce-page-gifts) {
  --detail-gutter: clamp(14px, 5vw, 22px);
  color: #4d385b;
  background: #fdfcfe;
}

html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-wallet-balance {
  box-sizing: border-box;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 126px;
  margin: 14px var(--detail-gutter) 0;
  padding: 18px 20px;
  border: 1px solid #e8deef;
  border-radius: 16px;
  background: linear-gradient(135deg,#f9f4fc,#f0e7f7);
  color: #655176;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-wallet-balance > strong {
  max-width: 100%;
  color: #785990;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-wallet-history {
  display: inline-flex; align-items: center; min-height: 32px; color: #775889; font-size: 13px;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-wallet-body {
  min-height: 0; margin: 0; padding: 20px var(--detail-gutter) 28px; background: transparent;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-topup {
  min-width: 0; padding: 13px 6px; gap: 6px; border-radius: 12px; background: #fcf9fd; color: #725b82; overflow-wrap: anywhere;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet .ce-topup.is-active {
  background: #f0e7f7; border-color: #a484bb; color: #684782;
}
html[data-frontend-theme="companion_island"] .ce-page-wallet-history .ce-wallet-history-summary {
  padding: 22px var(--detail-gutter); background: #f5eff9; color: #715082; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}

html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-catalog {
  padding: 12px var(--detail-gutter) 20px;
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  background: transparent;
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-grid:empty { display: none; }
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-item {
  min-width: 0; padding: 18px 9px 13px; gap: 7px; border: 1px solid #e9def1; border-radius: 15px;
  background: linear-gradient(140deg,#fff9fc,#f0e8fa);
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-item img {
  box-sizing: border-box; width: 55px; height: 55px; padding: 4px; border-radius: 18px; object-fit: contain; background: #eee2f4;
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-item > strong {
  font-size: 13px; font-weight: 600; color: #654f73; line-height: 1.4;
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-item > small {
  max-width: 100%; font-size: 11px; color: #786781; overflow-wrap: anywhere;
}
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-item.is-unlit img { filter: grayscale(1); opacity: .75; }
html[data-frontend-theme="companion_island"] .ce-page-gifts .ce-gift-give {
  min-height: 32px; padding: 4px 14px; border-radius: 15px; color: #78548d; border-color: #d8c4e5; font-size: 12px;
}

html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor { gap: 16px; }
html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor .ce-form-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border-bottom: 0;
}
html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor .ce-row-label {
  color: #7c638c; font-size: 12px; line-height: 1.6;
}
html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor input:not([type="file"]) {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px;
  border: 1px solid #e6dced; border-radius: 11px; color: #654f73; background: #fff;
}
html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor input[type="file"] {
  max-width: 100%; min-width: 0; color: #786781;
}
html[data-frontend-theme="companion_island"] .ce-page-account .ce-profile-editor .ce-primary { min-height: 44px; margin-top: 3px; border-radius: 12px; }
