/*
 * Admin utility classes — extracted from inline style="..." attrs as part of
 * the CSP `style-src 'unsafe-inline'` migration (BUG-0012 / BUG-0509).
 *
 * Each class here replaces one high-frequency inline-style pattern found in
 * admin.html (audit via `npm run audit:inline-styles`). Migration is
 * incremental per PR; utility classes are additive and never remove existing
 * behavior.
 *
 * Naming: `u-<purpose>` prefix to avoid collision with component classes.
 * Specificity: single-class selectors; rely on source order with no !important
 * unless the replaced inline style was overriding a component class (inline
 * styles always win over class rules, so !important preserves the win).
 */

/* Wave 1: display:none — 46 instances in admin.html.
 * Inline `style="display:none"` always overrode component defaults via
 * specificity. The class replacement needs !important to match. */
.u-hidden { display: none !important; }

/* Wave 1 batch 2: next 10 highest-frequency patterns (127 attrs total). */
.u-th-header         { padding: 10px 12px; font-weight: 600; }      /* 53× */
.u-overflow-x-auto   { overflow-x: auto; }                           /* 14× */
.u-bg-cream          { background: #f5f0e8; }                        /* 12× */
.u-flex-gap-8        { display: flex; gap: 8px; align-items: center; } /* 9× */
.u-mb-16             { margin-bottom: 16px; }                        /* 9× */
.u-flex-1            { flex: 1; }                                    /* 8× */
.u-muted-14          { color: #767676; font-size: 14px; }            /* 8× */
.u-w-full            { width: 100%; }                                /* 5× */
.u-inline-flex       { display: inline-flex; }                       /* 5× */
.u-nowrap            { white-space: nowrap; }                        /* 4× */

/* Wave 1 batch 3: next 15 patterns (123 attrs). Mostly multi-property
 * text + spacing combos used in admin dashboards/forms. */
.u-empty-state       { padding: 24px; color: #767676; text-align: center; }                                             /* 13× */
.u-help-text         { font-size: 13px; color: #767676; margin-bottom: 16px; line-height: 1.6; }                        /* 13× */
.u-card-title        { font-size: 15px; font-weight: 700; margin-bottom: 6px; }                                         /* 12× */
.u-muted-13          { font-size: 13px; color: #4b5563; }                                                               /* 12× */
.u-modal-card        { display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 700px; } /* 12× */
.u-th-header-dark    { padding: 10px 12px; font-weight: 600; color: #333; }                                             /* 11× */
.u-data-table        { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }                     /*  8× */
.u-grid-2            { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }                                      /*  8× */
.u-eyebrow           { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #666; } /* 7× */
.u-field-label       { font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; }                         /*  7× */
.u-field-label-sm    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #666; display: block; margin-bottom: 4px; } /* 7× */
.u-help-text-short   { font-size: 13px; color: #767676; margin-bottom: 16px; }                                          /*  6× */
.u-section-title     { font-size: 17px; font-weight: 700; margin-bottom: 4px; }                                         /*  5× */
.u-pad-8-10          { padding: 8px 10px; }                                                                              /*  5× */
.u-mt-12             { margin-top: 12px; }                                                                               /*  4× */

/* Wave 1 batch 4: patterns with 4-5 instances. Long-tail cleanup.
 * 24 patterns × ~4 instances each = ~96 attrs. */
.u-textarea          { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; resize: vertical; }  /* 5× */
.u-th-left           { text-align: left; padding: 10px 12px; }                                                                                      /* 4× */
.u-th-right          { padding: 10px 14px; text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #767676; font-weight: 700; } /* 4× */
.u-th-header-right   { padding: 10px 12px; font-weight: 600; text-align: right; }                                                                   /* 4× */
.u-card-outlined     { margin-bottom: 24px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; }          /* 4× */
.u-mb-12             { margin-bottom: 12px; }                                                                                                       /* 4× */
.u-subheader         { margin: 0 0 12px; font-size: 14px; font-weight: 600; }                                                                       /* 4× */
.u-color-preview     { height: 48px; border-radius: 6px; display: none; }                                                                           /* 4× */
.u-icon-lg           { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }                                                          /* 4× */
.u-card-title-lg     { font-size: 15px; font-weight: 700; margin-bottom: 16px; }                                                                    /* 4× */
.u-card-heading      { font-size: 15px; font-weight: 700; color: #1a1a1a; }                                                                         /* 4× */
.u-insight-heading   { font-size: 14px; font-weight: 700; color: #1e1b4b; margin-bottom: 2px; }                                                     /* 4× */
.u-section-heading   { font-size: 13px; font-weight: 700; color: #444; margin: 16px 0 8px; }                                                        /* 4× */
.u-help-text-14      { font-size: 13px; color: #767676; margin-bottom: 14px; }                                                                      /* 4× */
.u-eyebrow-sm        { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #666; margin-bottom: 6px; }                             /* 4× */
.u-label-strong-12   { font-size: 12px; font-weight: 600; color: #666; }                                                                            /* 4× */
.u-muted-12          { font-size: 12px; color: #767676; }                                                                                           /* 4× */
.u-hint              { font-size: 12px; color: #737373; line-height: 1.5; }                                                                         /* 4× */
.u-caps-tag          { font-size: 11px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .5px; }                           /* 4× */
.u-flex-1-sm         { flex: 1; font-size: 12px; }                                                                                                  /* 4× */
.u-flex-between      { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }                                   /* 4× */
.u-flex-gap-6        { display: flex; gap: 6px; }                                                                                                   /* 4× */
.u-choice-card       { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e0e7ff; border-radius: 8px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; font-family: inherit; width: 100%; } /* 4× */

/* Wave 1 batch 5: patterns with 3-4 instances (long tail continued). */
.u-preview-img-hidden { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; display: none; }          /* 4× */
.u-textarea-sm       { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; margin-top: 6px; } /* 3× */
.u-color-picker      { width: 100%; height: 40px; border: 1px solid #ddd; border-radius: 6px; padding: 2px; cursor: pointer; }            /* 3× */
.u-data-table-lg     { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }                                       /* 3× */
.u-data-table-plain  { width: 100%; border-collapse: collapse; font-size: 13px; }                                                         /* 3× */
.u-input-lg          { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit; } /* 3× */
.u-chip-sm           { padding: 4px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-size: 11px; cursor: pointer; color: #666; font-family: inherit; } /* 3× */
.u-min-h-80          { min-height: 80px; }                                                                                                /* 3× */
.u-min-h-64          { min-height: 64px; }                                                                                                /* 3× */
.u-max-w-520         { max-width: 520px; }                                                                                                /* 3× */
.u-thumb-hidden      { height: 56px; width: 56px; object-fit: cover; border-radius: 6px; display: none; }                                 /* 3× */
.u-section-title-tight { font-size: 17px; font-weight: 700; margin-bottom: 3px; }                                                         /* 3× */
.u-card-heading-tight { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }                                         /* 3× */
.u-flex-between-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; } /* 3× */
.u-flex-gap-8-wrap   { display: flex; gap: 8px; flex-wrap: wrap; }                                                                        /* 3× */
.u-flex-row-pad      { display: flex; align-items: center; margin-top: 12px; padding: 8px 0; }                                            /* 3× */
.u-flex-between-tight { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }                        /* 3× */
.u-flex-icon-row     { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }                                                /* 3× */
.u-flex-wrap-row     { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }                             /* 3× */
.u-panel-outlined    { border: 1px solid var(--border); border-radius: 10px; padding: 18px; }                                             /* 3× */
.u-panel-card        { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; } /* 3× */

/* Tenant blog rich-text editor (#11883). */
.pm-blog-editor-source { display: none; }
.pm-blog-editor-file { display: none; }
.pm-blog-editor { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }
.pm-blog-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.pm-blog-editor-btn { min-width: 36px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #1f2937; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pm-blog-editor-btn:hover,
.pm-blog-editor-btn:focus-visible { border-color: var(--accent); outline: 2px solid transparent; }
.pm-blog-editor-canvas { min-height: 240px; padding: 14px; line-height: 1.6; outline: none; overflow-wrap: anywhere; }
.pm-blog-editor-canvas:empty::before { content: "Write the post body..."; color: #6b7280; }
.pm-blog-editor-canvas h2 { margin: 20px 0 8px; font-size: 1.35rem; }
.pm-blog-editor-canvas h3 { margin: 16px 0 8px; font-size: 1.12rem; }
.pm-blog-editor-canvas img { max-width: 100%; height: auto; border-radius: 6px; }
.pm-blog-read-more { display: block; margin: 16px 0; border: 0; border-top: 2px dashed var(--border); }
.pm-blog-editor-footer { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--border); color: #4b5563; font-size: 12px; background: #fff; }

/* Wave 4: staff-day.html mobile-sheet UI patterns. */
.u-mb-14             { margin-bottom: 14px; }                                                                                                                   /* 8× */
.u-field-label-uc-12 { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #666; letter-spacing: .5px; display: block; margin-bottom: 6px; }   /* 6× */
.u-field-label-uc-11 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #666; display: block; margin-bottom: 5px; }                         /* 6× */
.u-sheet-grabber     { width: 36px; height: 4px; background: #e0e0e0; border-radius: 2px; margin: 0 auto 18px; }                                                /* 5× */
.u-btn-neutral-44    { width: 100%; padding: 13px; background: #f0f0f0; color: #555; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 44px; } /* 5× */
.u-visually-hidden   { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }               /* 5× */
.u-pill-outline-44   { padding: 14px; border: 2px solid #e4e4e4; border-radius: 10px; font-size: 16px; font-weight: 700; background: #fff; cursor: pointer; font-family: inherit; min-height: 44px; } /* 5× */
.u-sheet-backdrop    { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9999; align-items: flex-end; justify-content: center; }  /* 5× */
.u-sheet-container   { background: #fff; border-radius: 20px 20px 0 0; padding: 24px 20px calc(32px + env(safe-area-inset-bottom)); width: 100%; max-width: 480px; } /* 5× */
.u-input-bordered    { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; box-sizing: border-box; } /* 4× */
.u-pill-outline-sm   { padding: 10px 4px; border: 2px solid #e4e4e4; border-radius: 10px; font-size: 12px; font-weight: 700; background: #fff; cursor: pointer; font-family: inherit; min-height: 44px; } /* 4× */
.u-help-text-18      { font-size: 14px; color: #666; margin-bottom: 18px; }                                                                                     /* 4× */
.u-input-bordered-bg { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; box-sizing: border-box; background: #fff; } /* 3× */
.u-chip-rounded      { padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 20px; font-size: 12px; background: #fff; cursor: pointer; font-family: inherit; min-height: 44px; } /* 3× */
.u-pill-dense-44     { padding: 12px 8px; border: 2px solid #e4e4e4; border-radius: 10px; font-size: 13px; font-weight: 700; background: #fff; cursor: pointer; font-family: inherit; text-align: center; min-height: 44px; } /* 3× */

/* Wave 5: my-account.html + manage-booking.html patterns. */
.u-dow-col           { text-align: center; font-size: 11px; font-weight: 700; color: #4b5563; padding: 4px 0; }                                      /* 7× (my-account) */
.u-checkbox-accent   { width: 24px; height: 24px; accent-color: var(--brand-primary); cursor: pointer; flex-shrink: 0; }                            /* 4× (my-account) */
.u-bold-14           { font-size: 14px; font-weight: 600; }                                                                                          /* 4× (my-account) */
.u-meta-12-mt-2      { font-size: 12px; color: #4b5563; margin-top: 2px; line-height: 1.5; }                                                          /* 4× (my-account) */
.u-hint-11-mt-6      { font-size: 11px; color: #4b5563; margin-top: 6px; margin-bottom: 3px; }                                                       /* 3× (my-account) */
.pw-strength-heading { color: #4b5563; font-weight: 600; }
.u-muted-10          { font-size: 10px; color: #4b5563; }                                                                                            /* 3× (my-account) */
.u-row-choice        { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; min-height: 44px; } /* 3× (my-account) */
.u-m-0               { margin: 0; }                                                                                                                  /* 7× (manage-booking) */
.u-btn-close-lg      { font-size: 28px; background: none; border: none; cursor: pointer; padding: 2px; opacity: .3; transition: opacity .15s, transform .15s; min-width: 44px; min-height: 44px; } /* 5× (manage-booking) */
.u-icon-18           { font-size: 18px; flex-shrink: 0; }                                                                                            /* 4× (manage-booking) */
.u-check-row         { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #555; }                                            /* 4× (manage-booking) */

/* ── Branding & Imagery editor (Phase 3 of imagery rollout, 2026-04-30) ─── */
.branding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.branding-card {
  background: #fff;
  border: 1px solid rgba(17, 34, 68, 0.08);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branding-card-wide {
  grid-column: 1 / -1;
}

.branding-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.branding-card-head h3 {
  margin: 0;
  font-size: 17px;
}

.branding-card-meta {
  font-size: 12px;
  color: #6b7280;
}

.branding-preview {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #fafbff;
  padding: 10px;
  overflow: hidden;
}

.branding-preview-wide {
  min-height: 180px;
}

.branding-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.branding-preview-empty {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  padding: 20px;
}

.branding-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.branding-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.branding-upload:hover .branding-upload-btn { background: #1e40af; }

.branding-alt-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.branding-alt-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.branding-alt-row input {
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.branding-alt-row input:focus-visible {
  outline: 0;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.branding-reset-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}

.branding-reset-btn:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}

.branding-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.branding-gallery-item {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
}

/* #11543 — a gallery photo missing its screen-reader description gets a clear
   amber outline so the admin can spot + fix it. */
.branding-gallery-item.needs-alt {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
}

.branding-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.branding-gallery-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(17, 34, 68, 0.7);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.branding-gallery-remove:hover {
  background: #b91c1c;
}

/* #11543 — per-photo alt-text controls (description input + decorative opt-out). */
.branding-gallery-alt {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

.branding-gallery-alt-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #374151;
}

.branding-gallery-alt-hint {
  color: #6b7280;
  font-weight: 400;
}

.branding-gallery-alt-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

.branding-gallery-item.needs-alt .branding-gallery-alt-input {
  border-color: #f59e0b;
}

.branding-gallery-decorative {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.branding-empty {
  margin: 8px 0;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  background: #fafbff;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}

.branding-font-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.branding-font-preview {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
}

.branding-font-preview strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.branding-font-preview span {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.branding-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.branding-font-family {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #fafbff;
}

.branding-font-family-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.branding-font-family-head h4 {
  margin: 0;
  font-size: 15px;
}

.branding-font-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #374151;
}

.branding-font-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 10px;
}

.branding-font-row,
.branding-font-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.branding-font-row {
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.branding-font-row button {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #991b1b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.branding-font-upload-row select {
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

@media (max-width: 600px) {
  .branding-grid {
    grid-template-columns: 1fr;
  }
}

/* Brand-consistent admin (founder rule 2026-05-07).
   No !important — let per-page inline rules win where intentional;
   the variable fills in for pages without their own nav-logo color. */
.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active { color: var(--brand-text-on-primary, #fff); }

/* Social-import button row in the Gallery tab. */
.gallery-import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.75rem 0 0.5rem 0; }
.gallery-import-row .u-help-text { flex: 1 1 260px; min-width: 220px; }

/* Gallery management grid in the Edit Website → Gallery tab. */
.gallery-manage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.gallery-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--brand-bg, #e5e7eb);
  border-radius: 8px;
  background: #fff;
}
.gallery-row--hidden { opacity: 0.55; background: #fafafa; }
.gallery-row-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.gallery-row-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gallery-row-name { font-weight: 600; font-size: 14px; color: var(--brand-text, #1a1a1a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-row-source { font-size: 12px; color: var(--brand-muted, #888); }
.gallery-row-actions { display: flex; gap: 4px; }
.gallery-row-actions button { min-height: 36px; min-width: 36px; padding: 4px 8px; font-size: 16px; }

/* #11139 — WCAG contrast preview swatches (Branding panel).
   Reads runtime CSS custom properties set by the WCAG preview script
   (pm-wcag-preview parent gets --pm-wcag-bg / --pm-wcag-primary /
   --pm-wcag-accent via setProperty). Moved out of inline style="..."
   to clear the CSP `style-src` inline-attribute violation. */
.pm-wcag-swatch {
  background: var(--pm-wcag-bg, #fff);
  color: var(--pm-wcag-primary, #000);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  font-weight: 600;
}
.pm-wcag-swatch--accent {
  margin-left: 12px;
  background: var(--pm-wcag-primary, #000);
  color: var(--pm-wcag-accent, #fff);
  border: 0;
}

/* #11178 — Email/SMS templates panel utilities. Moved out of inline
   style="..." (CSP style-src violation cleanup). */
.u-divider-tight { margin: 24px 0; }
.u-row-flex-wrap { display: flex; gap: 8px; flex-wrap: wrap; }

/* Issue #11135 — brand-color card surfaced into the dedicated #branding view
   (separate from the legacy Edit Website → Branding tab). Card is wider so
   colors + WCAG preview sit side-by-side on desktop and stack on mobile. */
.branding-color-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .branding-color-card { grid-template-columns: 1fr; }
}
.branding-color-pickers { display: flex; flex-direction: column; gap: 12px; }
.branding-color-pickers label { font-weight: 600; font-size: 14px; }
.branding-color-pickers input[type=color] { width: 64px; height: 36px; padding: 0; border: 1px solid #d0d0d0; border-radius: 6px; cursor: pointer; }
.branding-color-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.branding-wcag-mini-row { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; }
.branding-wcag-mini-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.branding-wcag-mini-badge--pass { background: #d1fae5; color: #065f46; }
.branding-wcag-mini-badge--fail { background: #fee2e2; color: #991b1b; }

/* Issue #12206 — service category color legend + palette override editor. */
.branding-category-palette-card { grid-column: 1 / -1; }
.branding-category-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.branding-category-swatch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; }
.branding-category-swatch-icon { font-size: 14px; line-height: 1; }
.branding-category-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.branding-category-table th, .branding-category-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e5e7eb; font-size: 14px; vertical-align: middle; }
.branding-category-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; }

/* Issue #11136 — template/theme switcher card in #branding view. */
.branding-template-card { grid-column: 1 / -1; }
.branding-template-card select { min-height: 40px; padding: 6px 10px; min-width: 240px; }
.branding-template-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.branding-template-current { font-weight: 600; }

/* #12874 — final inline-style fleet sweep (admin.html cohorts + LTV section,
   manage-booking.html one-click-rebook block, my-account.html email-change +
   referral + web-push rows). Replaces 21 surviving `style="..."` attributes
   that were blocking the CSP fleet-coverage gate. Initial-hidden elements use
   the HTML `hidden` attribute (semantic + zero-specificity, doesn't fight
   runtime `.hidden = false` toggles in the page JS). */
.u-mt-6  { margin-top: 6px; }
.u-mt-8  { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-full-width { width: 100%; }
.u-text-right { text-align: right; }
.u-my-half-em { margin: 0.5em 0; }
.u-flex-gap-8-my-8 { display: flex; gap: 8px; margin: 8px 0; }
.u-flex-wrap-center-half { display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: center; }
.u-btn-outline-current { background: transparent; border: 1px solid currentColor; }
.u-text-err { color: #991b1b; }
.u-section-collapsed-bordered {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
}
.cohort-summary-card {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cohort-retention-cell { text-align: center; min-width: 72px; }
.cohort-retention-empty { background: #f9fafb; }
.cohort-retention-very-low { background: #fef3c7; }
.cohort-retention-low { background: #dcfce7; }
.cohort-retention-mid { background: #bbf7d0; }
.cohort-retention-good { background: #4ade80; }
.cohort-retention-high { background: #16a34a; color: #fff; }
.cohort-retention-best { background: #14532d; color: #fff; }

/* Wave 13836 generated inline-style migration START */
/* Generated from remaining production HTML style attributes. */
.u-csp-13836-1b0f4999d2 { margin-top:16px; }
.u-csp-13836-21e8bb66a9 { max-width:160px; }
.u-csp-13836-25b5288699 { display:flex;gap:6px;align-items:center; }
.u-csp-13836-30165188da { display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:12px; }
.u-csp-13836-317e135363 { margin:0 auto;max-width:100%;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;background:#fff;width:375px; }
.u-csp-13836-35cb4f5973 { margin:0 0 12px;font-size:16px; }
.u-csp-13836-3ac041e790 { display:none;margin-top:14px; }
.u-csp-13836-3de8f987ba { display:flex;gap:8px;flex-wrap:wrap; }
.u-csp-13836-426aa78e9a { width:100%;max-height:180px;object-fit:cover;border-radius:8px; }
.u-csp-13836-493a8fce4d { display:flex; gap:8px; justify-content:flex-end; margin-top:8px; }
.u-csp-13836-4d6bbf7290 { display:none;border-top:1px solid #e4ddd0;margin-top:16px;padding-top:14px; }
.u-csp-13836-4e73ee2ddc { display:none;margin-top:18px; }
.u-csp-13836-56f4356299 { margin-top:12px; }
.u-csp-13836-60746827b0 { width:110px; }
.u-csp-13836-660716ac94 { position:absolute;inset:28px;border-radius:50%;background:#fff; }
.u-csp-13836-6b99de8b69 { display:none; }
.u-csp-13836-73a14019bb { display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-top:12px; }
.u-csp-13836-74f9e8fd6b { width:100%;height:640px;border:0;display:block; }
.u-csp-13836-759e41d83d { margin:0 0 10px; }
.u-csp-13836-81351bd1ac { font-size:24px; }
.u-csp-13836-85f9538f7d { font-size:15px;margin:0 0 8px; }
.u-csp-13836-86de7ac63a { margin-top:18px; }
.u-csp-13836-87c136dfd0 { margin-bottom:16px; }
.u-csp-13836-881f70f973 { font-size:22px; }
.u-csp-13836-893d679f6e { margin-top:1.5rem;border-top:1px solid var(--border, #e5e7eb);padding-top:1.5rem; }
.u-csp-13836-8a77e5a311 { margin-top:8px; }
.u-csp-13836-915cdef7eb { min-height:20px;margin-top:6px;color:#374151;font-size:13px; }
.u-csp-13836-9202fe4c7e { width:100%;margin-top:10px; }
.u-csp-13836-958f4ea3da { display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px; }
.u-csp-13836-97445a8d93 { flex:1; }
.u-csp-13836-97ce9e7cb2 { font-size:15px;margin:14px 0 6px; }
.u-csp-13836-99409a76b3 { list-style:none;margin:0;padding:0; }
.u-csp-13836-9e2ab2f5e9 { margin:0 0 .75rem; }
.u-csp-13836-9f6be7915b { margin:6px 0 0;padding-left:18px; }
.u-csp-13836-a27006d43c { font-weight:600;margin-bottom:4px; }
.u-csp-13836-a828909e66 { max-width:200px; }
.u-csp-13836-b776d7e99c { font-weight:400;color:#4b5563;margin:0 0 10px; }
.u-csp-13836-ba35c6f108 { margin-top:10px;display:block; }
.u-csp-13836-c28bd948da { text-align:left; }
.u-csp-13836-c6b76b8577 { margin-right:4px; }
.u-csp-13836-c94d43e279 { margin:8px 0 0; }
.u-csp-13836-d09171ac69 { margin-top:6px;font-weight:600; }
.u-csp-13836-d2c171b18b { margin-top:10px; }
.u-csp-13836-d6f2af6e0a { margin-top:14px; }
.u-csp-13836-d8a0bf6b93 { width:132px;height:132px;border-radius:50%;background:#e5e7eb;position:relative; }
.u-csp-13836-dac4fe6c9b { text-align:center; }
.u-csp-13836-dec9a9a36a { margin:0 0 8px;font-size:20px; }
.u-csp-13836-e3f9a6b4bd { margin:0 0 .5rem; }
.u-csp-13836-e698a016b6 { font-style:italic; }
.u-csp-13836-e8849f1764 { font-size:28px;margin:8px 0; }
.u-csp-13836-e8fbb2a390 { margin-top:18px;background:var(--accent,#6366f1);color:#fff;border:none;border-radius:10px;padding:14px;font-size:16px;font-weight:700;min-height:48px;width:100%; }
.u-csp-13836-eaa3f144c9 { width:2.5rem; }
.u-csp-13836-f2c280d4f0 { display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between; }
.u-csp-13836-f9a91f060b { border:1px solid var(--border,#e5e7eb);border-radius:8px;padding:10px;margin:8px 0; }
.u-csp-13836-fe7b4979fe { margin-top:6px; }
/* Wave 13836 generated inline-style migration END */
