/* Service authoring integration: wide work surface, compact identity preview. */
.cs-v4-profile-editor-page .cs-ready-workspace-shell { width: 100%; max-width: none; }
.cs-v4-profile-editor-page .cs-ready-workspace-main,
.cs-v4-profile-editor-page [data-ready-workspace-main] { width: calc(100% - (var(--ready-gutter) * 2)) !important; max-width: none !important; }
.cs-v4-profile-editor-page .cs-v4-profile-editor-shell { width: calc(100% - 32px); max-width: none; }
.cs-v4-profile-editor-page .cs-ready-workspace-content { width: 100%; min-width: 0; max-width: none; }
.cs-v4-profile-editor-page .cs-v4-profile-editor-layout { display: block !important; width: 100%; min-width: 0; max-width: none; grid-template-columns: minmax(0, 1fr) !important; }
.cs-v4-profile-editor-page .cs-v4-profile-editor-form { display: flex; width: 100%; min-width: 0; max-width: none; flex-direction: column; }
.cs-v4-profile-editor-page .cs-ready-workspace-shell,
.cs-v4-profile-editor-page .cs-ready-workspace-content,
.cs-v4-profile-editor-page .cs-v4-profile-editor-layout,
.cs-v4-profile-editor-page .cs-v4-profile-editor-form,
.cs-v4-profile-editor-page .cs-service-authoring-panel,
.cs-v4-profile-editor-page [data-consult-service-authoring],
.cs-v4-profile-editor-page [data-consult-service-authoring] > .ica-shell { box-sizing: border-box !important; }
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav { border-color: #173629; background: linear-gradient(180deg, #173629 0%, #1d4131 100%); }
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav .cs-ready-workspace-nav-list > a,
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav .cs-ready-workspace-nav-foot a { color: rgba(237, 248, 241, .78); }
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav .cs-ready-workspace-nav-list > a:hover,
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav .cs-ready-workspace-nav-list > a:focus-visible,
.cs-v4-profile-editor-page .cs-ready-workspace-nav.cs-market-console-nav .cs-ready-workspace-nav-list > a.is-active { background: rgba(156, 220, 181, .17); color: #fff; }
.cs-v4-profile-editor-page .cs-profile-compact-preview {
  margin: 18px 0 0;
  padding: 0 !important;
  border: 1px solid #dce7e1;
  border-radius: 14px;
  background: #fff;
}
.cs-profile-compact-preview > summary { box-sizing: border-box; display: flex; width: 100%; min-height: 0; height: 42px; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 0 14px; color: #183427; font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; list-style: none; }
.cs-profile-compact-preview > summary::-webkit-details-marker { display: none; }
.cs-profile-compact-preview > summary small { color: #718279; font-size: 11px; }
.cs-profile-compact-preview-body { display: grid; grid-template-columns: auto auto minmax(180px, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid #e4ece7; padding: 12px 16px; }
.cs-profile-compact-preview .cs-v4-profile-preview-avatar { width: 48px; height: 48px; border-radius: 13px; }
.cs-profile-compact-preview-copy { display: grid; gap: 1px; min-width: 120px; }
.cs-profile-compact-preview-copy > span { color: #438260; font-size: 11px; font-weight: 800; }
.cs-profile-compact-preview-copy > strong { color: #183427; font-size: 14px; }
.cs-profile-compact-preview-copy > small { color: #718279; font-size: 11px; }
.cs-profile-compact-preview-body > p { overflow: hidden; margin: 0; color: #42584b; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cs-v4-profile-editor-page .cs-service-authoring-panel { display: block; width: 100%; min-width: 0; max-width: none; padding: 28px; }
.cs-service-authoring-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 22px; }
.cs-service-authoring-head h2 { margin: 7px 0 0; color: #1b3528; font-size: 24px; letter-spacing: -.04em; }
.cs-service-authoring-head > p { max-width: 760px; margin: 0; color: #66796e; font-size: 13px; line-height: 1.65; }
[data-consult-service-authoring],
[data-consult-service-authoring] > .ica-shell { display: block; width: 100% !important; min-width: 0 !important; max-width: none !important; }
[data-consult-service-authoring] .ica-top,
[data-consult-service-authoring] .ica-meta,
[data-consult-service-authoring] .ica-toolbar,
[data-consult-service-authoring] .ica-editor { width: 100% !important; min-width: 0 !important; max-width: none !important; }
.cs-service-status { min-height: 20px; margin: 12px 0 0; color: #397655; font-size: 13px; font-weight: 700; }
.cs-service-status.is-error { color: #ae4141; }
.cs-attachment-library { overflow: clip; border: 1px solid #dce7e1; border-radius: 16px; background: #f8fbf9; }
.cs-attachment-library > summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; color: #284535; cursor: pointer; list-style: none; }
.cs-attachment-library > summary::-webkit-details-marker { display: none; }
.cs-attachment-library > summary span:first-child { display: grid; gap: 3px; }
.cs-attachment-library > summary b { font-size: 14px; }
.cs-attachment-library > summary small { color: #718279; font-size: 12px; }
.cs-attachment-library[open] > summary { border-bottom: 1px solid #dce7e1; }
.cs-attachment-library > .cp-manager { margin: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

/* Profile management stays square without changing public marketplace cards. */
.cs-v4-profile-editor-page :where(
  .cs-ready-workspace-shell, .cs-ready-workspace-nav, .cs-ready-workspace-content,
  .cs-v4-profile-editor-shell, .cs-v4-profile-editor-panel,
  .cs-v4-profile-image-panel, .cs-v4-listing-image-panel,
  .cs-v4-profile-image-preview, .cs-v4-listing-image-preview,
  .cs-v4-profile-preview-avatar,
  .cs-v4-profile-editor-preview, .cs-v4-profile-editor-tip,
  .cs-profile-compact-preview, .cs-service-authoring-panel,
  .cs-attachment-library
) {
  border-radius: var(--workspace-radius, 0);
  box-shadow: var(--workspace-shadow, none);
}

.cs-v4-profile-editor-page :where(
  .cs-ready-workspace-nav-list > a, .cs-ready-workspace-nav-foot a,
  .cs-btn, .cs-input, .cs-textarea, .cs-select
) {
  border-radius: var(--workspace-radius, 0);
}

.cs-v4-profile-editor-page .cs-attachment-library > .cp-manager { padding: 16px; }

/* These selectors intentionally outrank the component rules in consult-v4.css. */
.cs-v4-profile-editor-page .cs-profile-compact-preview,
.cs-v4-profile-editor-page .cs-v4-profile-editor-form > .cs-service-authoring-panel,
.cs-v4-profile-editor-page .cs-v4-profile-editor-form > .cs-v4-profile-editor-panel,
.cs-v4-profile-editor-page .cs-v4-profile-editor-form > .cs-v4-profile-image-panel,
.cs-v4-profile-editor-page .cs-v4-profile-editor-form > .cs-v4-listing-image-panel,
.cs-v4-profile-editor-page .cs-v4-profile-image-preview,
.cs-v4-profile-editor-page .cs-v4-listing-image-preview,
.cs-v4-profile-editor-page .cs-v4-profile-editor-preview,
.cs-v4-profile-editor-page .cs-v4-profile-editor-tip,
.cs-v4-profile-editor-page .cs-attachment-library,
.cs-v4-profile-editor-page .cs-chip {
  border-radius: var(--workspace-radius, 0);
  box-shadow: var(--workspace-shadow, none);
}

.cs-v4-profile-editor-page .cs-profile-compact-preview .cs-v4-profile-preview-avatar {
  border-radius: var(--workspace-radius, 0);
}

/* Public profile: wider service narrative while preserving the booking sidebar. */
.crm-profile-page .crm-profile-shell { width: 100%; max-width: none; }
.crm-authored-services { margin-top: 22px; }
.crm-authored-services > nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.crm-authored-services > nav button { min-height: 42px; padding: 8px 15px; border: 1px solid #dce7e1; border-radius: 999px; background: #fff; color: #496156; font-size: 13px; font-weight: 800; cursor: pointer; }
.crm-authored-services > nav button[aria-pressed="true"] { border-color: #173629; background: #173629; color: #fff; }
.crm-authored-services > article { overflow: hidden; border: 1px solid #dce7e1; border-radius: 16px; background: #fff; }
.crm-authored-service-body { padding: clamp(22px, 4vw, 50px); }
.crm-authored-service-body img { max-width: 100%; height: auto; }
.crm-authored-services > article > footer { display: flex; justify-content: flex-end; border-top: 1px solid #e4ece7; padding: 16px 22px; background: #f6faf7; }
.crm-authored-services > article > footer a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 9px; background: #173629; color: #fff; font-size: 13px; font-weight: 800; }
.crm-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.crm-product-card { display: flex; min-height: 220px; flex-direction: column; justify-content: space-between; gap: 22px; padding: 24px; border: 1px solid #dce7e1; border-radius: 16px; background: #fff; }
.crm-product-card p { margin: 0 0 8px; color: #438260; font-size: 12px; font-weight: 800; }
.crm-product-card h3 { margin: 0; color: #173629; font-size: 20px; letter-spacing: -.035em; }
.crm-product-card div > span { display: block; margin-top: 10px; color: #607269; font-size: 13px; line-height: 1.65; }
.crm-product-card footer { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.crm-product-card footer div { display: grid; gap: 3px; }
.crm-product-card footer strong { color: #173629; font-size: 18px; }
.crm-product-card footer small { color: #718279; }
.crm-product-card footer a, .crm-product-primary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 9px; background: #173629; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }

.crm-product-page { background: #f5f8f6; }
.crm-product-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 72px; }
.crm-product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; margin-top: 20px; }
.crm-product-document { overflow: hidden; border: 1px solid #dce7e1; border-radius: 18px; background: #fff; }
.crm-product-document > header { padding: clamp(28px, 5vw, 52px); border-bottom: 1px solid #e4ece7; background: #f9fcfa; }
.crm-product-document > header p { margin: 0 0 10px; color: #438260; font-size: 12px; font-weight: 800; }
.crm-product-document > header h1 { margin: 0; color: #173629; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.045em; }
.crm-product-document > header span { display: block; margin-top: 14px; color: #607269; line-height: 1.7; }
.crm-product-purchase { position: sticky; top: 24px; display: grid; gap: 16px; padding: 22px; border: 1px solid #dce7e1; border-radius: 16px; background: #fff; }
.crm-product-consultant { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.crm-product-consultant > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eaf3ee; color: #286044; font-weight: 900; }
.crm-product-consultant div { display: grid; gap: 1px; }
.crm-product-consultant small, .crm-product-consultant em, .crm-product-purchase > small { color: #718279; font-size: 11px; font-style: normal; line-height: 1.5; }
.crm-product-consultant strong { color: #173629; font-size: 14px; }
.crm-product-price { display: grid; gap: 5px; padding: 16px 0; border-block: 1px solid #e4ece7; }
.crm-product-price strong { color: #173629; font-size: 24px; }
.crm-product-price span { color: #607269; font-size: 13px; }
.crm-product-unavailable { margin: 0; padding: 13px; border-radius: 9px; background: #f1f5f2; color: #607269; font-size: 13px; text-align: center; }

@media (max-width: 760px) {
  .cs-profile-compact-preview-body { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cs-profile-compact-preview-body > p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .cs-service-authoring-panel { padding: 20px 16px; }
  .cs-service-authoring-head { align-items: start; flex-direction: column; gap: 9px; }
  .crm-authored-service-body { padding: 20px 16px; }
  .crm-product-grid, .crm-product-layout { grid-template-columns: 1fr; }
  .crm-product-shell { width: calc(100% - 32px); padding-top: 18px; }
  .crm-product-purchase { position: static; }
}
