/* ==========================================================================
   PRIMARY PLUS HEALTHCARE — PRESENTATION & DESIGN SYSTEM
   Bespoke Vanilla CSS Design System built around the Primary Healthcare PLLC Logo
   Designed specifically for Patients 50+ in Sun City West, AZ
   ========================================================================== */

:root {
  /* Logo-Derived Brand Color Palette */
  --sage-primary: #6E8E76;
  --sage-light: #F0F5F1;
  --sage-border: #D1E1D5;
  --sage-dark: #4A6E53;
  --sage-darker: #334E3A;

  --mauve-accent: #9E6785;
  --mauve-light: #F9F2F6;
  --mauve-border: #E8D3DF;
  --mauve-dark: #7A4664;

  --amber-gold: #D8A758;
  --amber-light: #FCF6EC;
  --amber-dark: #B88536;

  --slate-charcoal: #222E28;
  --slate-muted: #526259;
  --slate-light: #8E9E94;

  --linen-cream: #FAF7F2;
  --linen-soft: #F4EFE6;
  --linen-card: #FFFFFF;

  --border-light: #E5E9E6;
  --border-medium: #D1D9D4;

  /* Typography Stacks */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 4px rgba(34, 46, 40, 0.04);
  --shadow-md: 0 6px 16px rgba(34, 46, 40, 0.07);
  --shadow-lg: 0 14px 32px rgba(34, 46, 40, 0.10);
  --shadow-xl: 0 24px 48px rgba(34, 46, 40, 0.14);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-charcoal);
  background-color: var(--linen-cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Icons helper */
.icon-xs { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.icon-md { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 40px; height: 40px; display: inline-block; vertical-align: middle; }

/* ==========================================================================
   Presentation Top Navigation (Gallery & Briefing)
   ========================================================================== */
.gallery-top-nav {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gallery-nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gallery-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-brand-mark {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.gallery-logo-thumb {
  height: 38px;
  width: auto;
}

.gallery-brand-meta {
  display: flex;
  flex-direction: column;
}

.gallery-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-charcoal);
  letter-spacing: -0.01em;
}

.gallery-brand-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--linen-soft);
  padding: 4px;
  border-radius: var(--radius-full);
}

.gallery-nav-item {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.gallery-nav-item:hover {
  color: var(--slate-charcoal);
}

.gallery-nav-item.active {
  background: #ffffff;
  color: var(--sage-darker);
  box-shadow: var(--shadow-sm);
}

.gallery-nav-item.highlight {
  color: var(--mauve-dark);
}
.gallery-nav-item.highlight.active {
  color: var(--mauve-dark);
  background: #ffffff;
}

.gallery-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-quick-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.quick-label {
  color: var(--slate-muted);
  font-weight: 600;
  display: none;
}

@media (min-width: 1024px) {
  .quick-label { display: inline-block; }
}

.quick-buttons {
  display: flex;
  gap: 6px;
}

.btn-quick-opt {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--slate-charcoal);
  transition: var(--transition-fast);
}

.btn-quick-opt:hover {
  border-color: var(--sage-primary);
  background: var(--sage-light);
  color: var(--sage-darker);
}

.btn-quick-opt.active {
  border-color: var(--sage-primary);
  background: var(--sage-light);
  color: var(--sage-darker);
}

.btn-header-feedback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--mauve-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--mauve-dark);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-header-feedback:hover,
.btn-header-feedback.active {
  border-color: var(--mauve-accent);
  background: var(--mauve-light);
}

.header-feedback-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--mauve-accent);
  color: #ffffff;
  font-size: 0.7rem;
}

.btn-account-link,
.btn-sign-out {
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--slate-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-account-link:hover,
.btn-sign-out:hover { color: var(--mauve-dark); }

.sign-out-form { display: inline-flex; }

/* Toast Notifications */
.global-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideInUp 0.3s ease;
}

.toast-success {
  background: #24422E;
  color: #FFFFFF;
  border-left: 5px solid var(--sage-primary);
}

.toast-alert {
  background: #5C1D24;
  color: #FFFFFF;
  border-left: 5px solid #F87171;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  width: 20px;
  height: 20px;
}

.toast-close {
  background: none;
  border: none;
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  font-size: 1.1rem;
}
.toast-close:hover { opacity: 1; }

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Gallery Hub Showcase (`/`)
   ========================================================================== */
.gallery-hero {
  padding: 64px 0 44px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--linen-cream) 100%);
  border-bottom: 1px solid var(--border-light);
}

.gallery-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .gallery-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.client-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--sage-light);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-full);
  color: var(--sage-darker);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-main-title .gradient-text {
  color: var(--sage-dark);
}

.hero-lead-text {
  font-size: 1.15rem;
  color: var(--slate-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--sage-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(74, 110, 83, 0.28);
  transition: var(--transition-fast);
}

.btn-primary-action:hover {
  background: var(--sage-darker);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 110, 83, 0.35);
}

.btn-secondary-briefing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #ffffff;
  border: 1.5px solid var(--mauve-border);
  color: var(--mauve-dark);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-secondary-briefing:hover {
  background: var(--mauve-light);
  border-color: var(--mauve-accent);
  transform: translateY(-2px);
}

/* Logo Inspection Card */
.logo-analysis-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.logo-display-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 22px;
}

.logo-display-box img {
  max-height: 80px;
  margin: 0 auto;
}

.logo-tagline-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-weight: 500;
}

.palette-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.swatch-color {
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.swatch-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch-hex {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--slate-muted);
}

/* 4 Options Grid */
.gallery-options-section {
  padding: 60px 0 80px;
}

.section-header-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-muted);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.option-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--sage-primary);
}

.option-card-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.option-number-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  margin-bottom: 4px;
}

.option-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.option-badge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.badge-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--linen-soft);
  color: var(--slate-charcoal);
}

.option-card-preview-frame {
  height: 200px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.preview-mockup-content {
  position: relative;
  z-index: 2;
}

.mockup-hero-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.mockup-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.mockup-subtext {
  font-size: 0.85rem;
  opacity: 0.85;
}

.option-card-body {
  padding: 24px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-muted);
}

.spec-desc {
  font-size: 0.92rem;
  color: var(--slate-charcoal);
}

.option-card-footer {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--linen-cream);
  display: flex;
  gap: 12px;
}

.btn-card-preview {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--sage-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.btn-card-preview:hover {
  background: var(--sage-darker);
}

.btn-card-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-charcoal);
}

.btn-card-feedback:hover {
  background: var(--linen-soft);
  border-color: var(--mauve-accent);
  color: var(--mauve-dark);
}

/* Strategic Pitch Banner on Gallery Home */
.pitch-cta-banner {
  background: linear-gradient(135deg, var(--slate-charcoal) 0%, #16241D 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .pitch-cta-banner {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.banner-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-gold);
  margin-bottom: 12px;
}

.banner-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.banner-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.banner-cta-wrap {
  text-align: left;
}
@media (min-width: 992px) {
  .banner-cta-wrap { text-align: right; }
}

.btn-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--amber-gold);
  color: var(--slate-charcoal);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(216, 167, 88, 0.35);
  transition: var(--transition-fast);
}

.btn-banner-action:hover {
  background: #E5B467;
  transform: translateY(-2px);
}

/* Feedback log with an in-context preview for every design option */
.template-feedback-log {
  margin-top: 60px;
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.template-feedback-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.template-feedback-log-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.template-feedback-log-header p {
  margin-top: 3px;
  font-size: 0.92rem;
  color: var(--slate-muted);
}

.template-feedback-log-header > span {
  color: var(--sage-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.template-feedback-groups {
  display: grid;
  gap: 28px;
}

.template-feedback-group {
  overflow: hidden;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--linen-cream);
}

.template-feedback-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.template-feedback-group-header h2,
.template-feedback-group-header h4 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--slate-charcoal);
}

.template-comment-count {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--sage-light);
  color: var(--sage-darker);
  font-size: 0.78rem;
  font-weight: 700;
}

.template-feedback-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  padding: 22px;
}

.template-preview-column,
.template-comments-column {
  min-width: 0;
}

.template-comments-column {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

.template-preview-window {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.template-preview-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}

.template-preview-controls > span {
  margin-right: 4px;
  color: var(--slate-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-viewport-button {
  padding: 6px 10px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--slate-muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.template-viewport-button:hover,
.template-viewport-button.active {
  border-color: var(--sage-primary);
  background: var(--sage-light);
  color: var(--sage-darker);
}

.template-preview-window[data-preview-width="768"],
.template-preview-window[data-preview-width="390"] {
  background: #e5e7eb;
}

.template-preview-window iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 875px;
  margin-left: -720px;
  border: 0;
  pointer-events: none;
  transform: scale(0.4);
  transform-origin: top center;
}

.template-preview-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(24, 35, 30, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-open-template,
.btn-review-on-template {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--sage-darker);
  font-weight: 700;
}

.btn-open-template {
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.btn-review-on-template {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.btn-open-template:hover,
.btn-review-on-template:hover {
  color: var(--mauve-dark);
}

@media (max-width: 900px) {
  .template-feedback-log { padding: 22px; }
  .template-feedback-log-header { align-items: flex-start; flex-direction: column; }
  .template-feedback-group-body { grid-template-columns: 1fr; }
  .template-comments-column { max-height: none; overflow: visible; }
}

@media (max-width: 540px) {
  .template-feedback-log { padding: 16px; }
  .template-feedback-group-body { padding: 14px; }
  .template-preview-window { height: 260px; }
  .template-preview-window iframe { height: 650px; }
}

/* ==========================================================================
   Why OmniLink over Squarespace Briefing Page (`/why-omnilink`)
   ========================================================================== */
.briefing-hero {
  padding: 60px 0 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.briefing-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.briefing-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--slate-charcoal);
  margin-bottom: 18px;
}

.briefing-title span {
  color: var(--mauve-dark);
}

.briefing-lead {
  font-size: 1.2rem;
  color: var(--slate-muted);
  line-height: 1.6;
}

.briefing-jump-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

#platform-comparison,
#migration-plan {
  scroll-margin-top: 96px;
}

/* Executive Comparison Table */
.briefing-table-section {
  padding: 60px 0 40px;
}

.comparison-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-medium);
}

.col-feature {
  width: 28%;
  background: var(--linen-cream);
  color: var(--slate-charcoal);
}

.col-omnilink {
  width: 36%;
  background: var(--sage-light);
  color: var(--sage-darker);
  border-left: 2px solid var(--sage-border);
  border-right: 2px solid var(--sage-border);
}

.col-squarespace {
  width: 36%;
  background: #F9FAFB;
  color: #4B5563;
}

.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cell-omnilink {
  background: rgba(240, 245, 241, 0.4);
  border-left: 2px solid var(--sage-border);
  border-right: 2px solid var(--sage-border);
  font-weight: 500;
  color: var(--slate-charcoal);
}

.cell-squarespace {
  color: #4B5563;
}

.highlight-badge-win {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #24422E;
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.highlight-badge-loss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #E5E7EB;
  color: #374151;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Strategic Pillars Grid */
.pillars-section {
  padding: 72px 0 80px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--slate-muted);
  line-height: 1.6;
}

/* Pitch Cheat-Sheet Card */
.pitch-cheatsheet {
  background: var(--amber-light);
  border: 2px solid var(--amber-gold);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 0;
}

.cheatsheet-header {
  margin-bottom: 20px;
}

.cheatsheet-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #785217;
  display: flex;
  align-items: center;
  gap: 10px;
}

.talking-points-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.talking-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: #4D330A;
}

.tp-bullet {
  background: var(--amber-gold);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Squarespace migration plan */
.migration-plan-section {
  padding: 80px 0 88px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.migration-header {
  max-width: 940px;
  margin-bottom: 42px;
}

.migration-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 46px;
}

.migration-principles > div {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-lg);
  background: var(--sage-light);
}

.migration-principles strong,
.migration-principles span { display: block; }

.migration-principles strong {
  margin-bottom: 7px;
  color: var(--sage-darker);
  font-family: var(--font-display);
  font-size: 1rem;
}

.migration-principles span {
  color: var(--slate-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.migration-timeline {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.migration-phase {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 30px;
}

.migration-phase:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 26px;
  width: 2px;
  background: var(--sage-border);
}

.migration-step {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 7px #ffffff;
}

.migration-phase-content {
  min-width: 0;
  padding: 26px 28px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--linen-cream);
  box-shadow: var(--shadow-sm);
}

.migration-phase-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.migration-phase-heading h3 {
  color: var(--slate-charcoal);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}

.migration-phase-heading span,
.migration-card-label {
  flex-shrink: 0;
  color: var(--mauve-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.migration-phase-content p,
.migration-phase-content li {
  color: var(--slate-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.migration-phase-content ul,
.migration-ownership-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.migration-phase-content li + li,
.migration-ownership-card li + li { margin-top: 6px; }

.migration-deliverable {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--amber-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #ffffff;
  color: var(--slate-charcoal);
  font-size: 0.84rem;
  line-height: 1.55;
}

.migration-ownership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 22px auto 0;
}

.migration-ownership-card {
  padding: 28px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.migration-ownership-card.featured {
  border-color: var(--sage-border);
  background: var(--sage-light);
}

.migration-ownership-card h3 {
  margin-top: 7px;
  color: var(--slate-charcoal);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.migration-ownership-card li {
  color: var(--slate-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.migration-source-note {
  max-width: 1040px;
  margin: 26px auto 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: #F7F5F0;
  color: var(--slate-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.migration-source-note a {
  color: var(--sage-darker);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.briefing-bottom-action {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 760px) {
  .briefing-hero { padding: 42px 0 34px; }
  .briefing-title { font-size: clamp(2rem, 10vw, 2.65rem); }
  .briefing-lead { font-size: 1rem; }
  .briefing-table-section { padding: 42px 0 24px; }
  .comparison-table-wrap { overflow-x: auto; }
  .comparison-table { min-width: 760px; }
  .pillars-section,
  .migration-plan-section { padding: 56px 0 64px; }
  .pillars-grid { gap: 18px; margin-bottom: 32px; }
  .pillar-card,
  .pitch-cheatsheet { padding: 24px 20px; }
  .migration-principles,
  .migration-ownership-grid { grid-template-columns: 1fr; }
  .migration-phase { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .migration-step { width: 42px; height: 42px; font-size: 1rem; box-shadow: 0 0 0 5px #ffffff; }
  .migration-phase:not(:last-child)::before { top: 42px; left: 20px; }
  .migration-phase-content { padding: 22px 18px; }
  .migration-phase-heading { display: block; }
  .migration-phase-heading span { display: block; margin-top: 6px; }
}

/* ==========================================================================
   Client Review Toolbar (Inside Option Preview)
   ========================================================================== */
.template-preview-body {
  margin: 0;
  padding-top: 0; /* Offset for sticky review bar */
  background: #EAE6DF;
}

.embedded-template-preview {
  padding-top: 0;
  background: #ffffff;
}

.embedded-template-preview .client-review-toolbar,
.embedded-template-preview .feedback-modal-backdrop,
.embedded-template-preview .global-toast {
  display: none;
}

.embedded-template-preview .preview-viewport-shell {
  width: 100%;
  min-height: 100vh;
}

.client-review-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  z-index: 1000;
  background: #18231E;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-inner {
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-toolbar-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-toolbar-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.toolbar-option-badge {
  display: flex;
  flex-direction: column;
}

.badge-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #ffffff;
}

.toolbar-center {
  display: none;
}

@media (min-width: 1024px) {
  .toolbar-center {
    display: flex;
    align-items: center;
  }
}

.option-switch-pills {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.opt-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.opt-pill:hover {
  color: #ffffff;
}

.opt-pill.active {
  background: var(--sage-dark);
  color: #ffffff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Viewport Toggle */
.viewport-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 2px;
}

@media (min-width: 900px) {
  .viewport-toggle { display: flex; }
}

.btn-vp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-vp:hover { color: #ffffff; }

.btn-vp.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-toolbar-sign-out {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-toolbar-sign-out:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }

/* Review panel trigger is only needed when the panel becomes an overlay. */
.btn-open-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--mauve-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(158, 103, 133, 0.4);
  transition: var(--transition-fast);
}

.btn-open-feedback:hover {
  background: var(--mauve-dark);
  transform: scale(1.02);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* Viewport Simulation Shell */
.preview-viewport-shell {
  width: calc(100% - 430px);
  min-height: calc(100vh - 66px);
  padding: 0;
  display: flex;
  justify-content: center;
  transition: padding var(--transition-smooth);
}

.preview-viewport-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  container: clinic-preview / inline-size;
  transition: max-width var(--transition-smooth), box-shadow var(--transition-smooth);
}

.preview-viewport-container.simulated-device {
  margin: 24px auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 12px solid #2B3530;
}

/* ==========================================================================
   Persistent Design Review Panel
   ========================================================================== */
.feedback-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 430px;
  z-index: 900;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  visibility: visible;
}

.feedback-modal-sheet {
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-medium);
  transform: none;
  overflow-y: auto;
}

.sheet-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.sheet-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mauve-dark);
  margin-bottom: 4px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-charcoal);
  line-height: 1.25;
  margin-bottom: 4px;
}

.sheet-desc {
  font-size: 0.88rem;
  color: var(--slate-muted);
}

.btn-sheet-close {
  display: none;
  background: var(--linen-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--slate-charcoal);
  cursor: pointer;
  flex-shrink: 0;
}
.btn-sheet-close:hover { background: var(--border-medium); }

.sheet-body {
  padding: 28px;
  flex-grow: 1;
}

.review-panel-tabs {
  position: sticky;
  top: 116px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -12px 0 22px;
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--linen-soft);
}

.review-panel-tab {
  padding: 10px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-muted);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.review-panel-tab.active {
  background: #ffffff;
  color: var(--sage-dark);
  box-shadow: var(--shadow-sm);
}

.review-tab-content { display: none; }
.review-tab-content.active { display: block; }

.option-comments-list { display: grid; gap: 14px; }

.option-comment-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.option-comment-card.comment-focus {
  border-color: var(--mauve-accent);
  box-shadow: 0 0 0 3px rgba(158, 103, 133, 0.2), var(--shadow-md);
}

.option-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate-charcoal);
  font-size: 0.82rem;
}

.option-comment-header time { color: var(--slate-muted); font-size: 0.72rem; }
.option-comment-rating { color: var(--amber-gold); letter-spacing: 0.08em; }

.comment-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.comment-score-grid span {
  padding: 7px 5px;
  border-radius: 6px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.68rem;
  text-align: center;
}

.comment-group,
.comment-element-note {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.comment-group strong,
.comment-element-note strong {
  color: var(--slate-charcoal);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.comment-group p,
.comment-element-note p {
  margin-top: 4px;
  color: var(--slate-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.comment-group.positive strong { color: var(--sage-dark); }
.comment-group.negative strong { color: #9F1239; }

.comment-element-note code {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--mauve-dark);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comments-empty-state {
  padding: 42px 18px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--slate-charcoal);
  text-align: center;
}

.comments-empty-state p { margin-top: 6px; color: var(--slate-muted); font-size: 0.84rem; }

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.review-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.review-step {
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-help {
  color: var(--slate-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.btn-element-picker {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border: 2px dashed var(--mauve-accent);
  border-radius: var(--radius-md);
  background: #FFF8FC;
  color: var(--mauve-dark);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-element-picker:hover,
.btn-element-picker.active {
  border-style: solid;
  background: var(--mauve-dark);
  color: #ffffff;
}

.picker-icon { font-size: 1.25rem; }

.element-picker-status {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--linen-soft);
  color: var(--slate-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.selected-elements-list {
  display: grid;
  gap: 10px;
}

.selected-elements-empty {
  color: var(--slate-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.selected-element-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--linen-cream);
}

.selected-element-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--slate-charcoal);
  font-size: 0.82rem;
}

.selected-element-card code {
  overflow: hidden;
  color: var(--slate-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-element {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #FFE4E6;
  color: #9F1239;
  font-size: 1rem;
  cursor: pointer;
}

.element-review-mode #preview-viewport-container { cursor: crosshair; }

#preview-viewport-container .review-hover-target {
  position: relative;
  outline: 3px solid #D946EF !important;
  outline-offset: 3px;
  cursor: crosshair !important;
}

.design-score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 1199px) {
  .preview-viewport-shell { width: 100%; }
  .btn-open-feedback { display: inline-flex; }

  .feedback-modal-backdrop {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(18, 26, 22, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .feedback-modal-backdrop.open { opacity: 1; visibility: visible; }

  .feedback-modal-sheet {
    max-width: 560px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .feedback-modal-backdrop.open .feedback-modal-sheet { transform: translateX(0); }
  .btn-sheet-close { display: block; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--linen-cream);
  color: var(--slate-charcoal);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--sage-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(110, 142, 118, 0.18);
}

/* Star Rating Radio Picker */
.star-rating-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  justify-content: flex-end;
}

.star-rating-picker input {
  display: none;
}

.star-rating-picker label {
  font-size: 2rem;
  color: #D1D5DB;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.star-rating-picker label:hover,
.star-rating-picker label:hover ~ label,
.star-rating-picker input:checked ~ label {
  color: var(--amber-gold);
}

/* Aspect Chips */
.aspect-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aspect-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.aspect-chip input {
  display: none;
}

.aspect-chip span {
  padding: 7px 14px;
  background: var(--linen-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-charcoal);
  transition: var(--transition-fast);
}

.aspect-chip input:checked + span {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #ffffff;
}

.aspect-chip.negative input:checked + span {
  background: #9F1239;
  border-color: #9F1239;
}

.sheet-footer {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-cancel {
  flex: 0.35;
  padding: 14px;
  background: var(--linen-soft);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.btn-submit-feedback {
  flex: 1;
  padding: 14px;
  background: var(--sage-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.btn-submit-feedback:hover {
  background: var(--sage-darker);
}

/* ==========================================================================
   Feedback Dashboard View (`/feedbacks`)
   ========================================================================== */
.fb-dashboard-section {
  padding: 50px 0 80px;
}

.feedback-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.feedback-page-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 190px)) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 20px;
}

.feedback-page-summary > div,
.feedback-page-summary > p {
  padding: 18px 20px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.feedback-page-summary > div {
  display: flex;
  flex-direction: column;
}

.feedback-page-summary strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--slate-charcoal);
}

.feedback-page-summary span,
.feedback-page-summary p {
  color: var(--slate-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.feedback-page-summary > p {
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.feedback-option-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .feedback-page-summary { grid-template-columns: repeat(2, 1fr); }
  .feedback-page-summary > p { grid-column: 1 / -1; }
  .btn-header-feedback > span:not(.header-feedback-count) { display: none; }
}

.fb-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.fb-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--slate-charcoal);
}

.fb-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fb-feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fb-feed-item {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.fb-item-option {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.fb-item-reviewer {
  font-size: 0.9rem;
  color: var(--slate-muted);
  font-weight: 500;
}

.fb-star-display {
  color: var(--amber-gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.fb-aspects-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-aspect-tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--sage-light);
  color: var(--sage-darker);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.fb-quote-box {
  background: var(--linen-cream);
  border-left: 4px solid var(--sage-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.96rem;
  color: var(--slate-charcoal);
  line-height: 1.6;
}

.fb-change-box {
  background: var(--mauve-light);
  border-left: 4px solid var(--mauve-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--mauve-dark);
}

/* Private access and authorized-user administration */
.authentication-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(110, 142, 118, 0.18), transparent 34%),
    radial-gradient(circle at 88% 85%, rgba(158, 103, 133, 0.14), transparent 30%),
    var(--linen-cream);
}

.authentication-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.authentication-card,
.account-card {
  width: 100%;
  max-width: 520px;
  padding: 36px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-xl);
}

.authentication-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.authentication-brand img { max-height: 64px; max-width: 220px; }
.authentication-brand span,
.temporary-password-badge {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--sage-light);
  color: var(--sage-darker);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.authentication-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--slate-charcoal);
}

.authentication-lead,
.authentication-help,
.account-card > p {
  color: var(--slate-muted);
  line-height: 1.6;
}

.authentication-lead { margin: 8px 0 24px; }
.authentication-help { margin-top: 20px; font-size: 0.78rem; text-align: center; }
.authentication-form { display: grid; gap: 18px; margin-top: 24px; }
.form-help { display: block; margin-top: 6px; color: var(--slate-muted); font-size: 0.76rem; line-height: 1.45; }

.auth-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-message.error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.auth-message.success { background: var(--sage-light); color: var(--sage-darker); border: 1px solid var(--sage-border); }

.account-page-section { padding: 54px 0 80px; }
.account-page-container { display: flex; justify-content: center; }
.account-card h2 { margin-bottom: 6px; font-family: var(--font-display); color: var(--slate-charcoal); }

.user-admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.authorized-user-list { display: grid; gap: 14px; }

.authorized-user-card {
  padding: 20px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.authorized-user-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.authorized-user-header > div { min-width: 0; display: flex; flex-direction: column; }
.authorized-user-header strong { overflow-wrap: anywhere; color: var(--slate-charcoal); }
.authorized-user-header span:not(.temporary-password-badge) { color: var(--slate-muted); font-size: 0.8rem; }

.authorized-user-actions { margin-top: 14px; }
.btn-user-action {
  padding: 8px 12px;
  border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm);
  background: var(--sage-light);
  color: var(--sage-darker);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-user-action.danger { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.btn-user-action:disabled { opacity: 0.45; cursor: not-allowed; }

.password-reset-details { margin-top: 14px; color: var(--slate-muted); font-size: 0.8rem; }
.password-reset-details summary { cursor: pointer; font-weight: 700; }
.password-reset-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }

@media (max-width: 900px) {
  .user-admin-grid { grid-template-columns: 1fr; }
  .gallery-nav-actions .btn-account-link { display: none; }
}

@media (max-width: 600px) {
  .authentication-card,
  .account-card { padding: 26px 20px; }
  .authentication-brand { align-items: flex-start; flex-direction: column; }
  .password-reset-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMMON CLINICAL LANDING PAGE SECTIONS & THEMES (1, 2, 3, 4)
   ========================================================================== */

/* Universal Healthcare Top Bar */
.clinic-utility-bar {
  padding: 8px 0;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  position: relative;
  z-index: 960;
}

.clinic-utility-bar span {
  color: var(--slate-charcoal);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Clinic Main Nav Header (Sticky, but visually separate from page heroes) */
.clinic-main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 950;
  padding: 16px 0;
  background: #fefcf9;
  border-bottom: 1px solid rgba(74, 110, 83, 0.18);
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.06);
  transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: padding, box-shadow;
}

/* Offset for internal project management review toolbar in Stage 2 proof */
.template-preview-body .clinic-main-header,
.proof-preview-body .clinic-main-header {
  top: 0;
}

.clinic-main-header.scrolled {
  padding: 8px 0 !important;
  background: #fefcf9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

.clinic-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.clinic-logo-img {
  max-height: 82px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinic-main-header.scrolled .clinic-logo-img {
  max-height: 46px !important;
}

.clinic-main-header.scrolled .btn-call-clinic,
.clinic-main-header.scrolled .btn-athena-portal {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.clinic-main-header.scrolled .header-nav-menu a {
  padding: 5px 10px;
  font-size: 0.88rem;
}

.header-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-charcoal);
  white-space: nowrap;
  padding: 4px 0;
  margin: 0 16px;
  min-width: 0;
}

.header-nav-menu a {
  color: var(--slate-charcoal);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.header-nav-menu a:hover {
  color: var(--sage-darker);
  background: var(--sage-light);
}

.header-nav-menu a.active {
  color: var(--sage-darker);
  background: var(--sage-light);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--sage-dark);
}

@media (max-width: 899px) {
  .header-nav-menu {
    gap: 8px;
    padding: 10px 0 4px 0;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .header-nav-menu::-webkit-scrollbar {
    display: none;
  }
  .header-nav-menu a {
    font-size: 0.85rem;
    padding: 6px 12px;
    background: var(--linen-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
  }
  .header-nav-menu a.active {
    background: var(--sage-dark);
    color: #ffffff;
    border-color: var(--sage-dark);
    box-shadow: none;
  }
}

@media (min-width: 1280px) {
  .header-nav-menu {
    gap: 18px;
    font-size: 0.96rem;
  }
  .header-nav-menu a {
    padding: 7px 14px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 10px;
  margin-left: 10px;
}

/* Athena Portal Direct Button */
.btn-athena-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--mauve-accent);
  color: #ffffff;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-athena-portal:hover {
  background: var(--mauve-dark);
}

.btn-athena-portal.active {
  background: var(--mauve-dark);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--mauve-accent);
}

/* Phone Action Button */
.btn-call-clinic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--sage-light);
  color: var(--sage-darker);
  border: 1px solid var(--sage-border);
  transition: var(--transition-fast);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.btn-call-clinic:hover {
  background: var(--sage-border);
}

.phone-label-full {
  display: inline;
}

.phone-label-short {
  display: none;
}

/* Provider Spotlight Component */
.provider-spotlight-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 860px) {
  .provider-spotlight-card {
    grid-template-columns: 320px 1fr;
  }
}

.provider-photo-wrap {
  background: var(--linen-soft);
  position: relative;
  overflow: hidden;
  display: block;
}

.provider-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 340px;
  display: block;
}

.provider-bio-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.provider-role-badge {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  margin-bottom: 6px;
}

.provider-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-charcoal);
  margin-bottom: 4px;
}

.provider-credentials {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mauve-dark);
  margin-bottom: 18px;
}

.provider-narrative {
  font-size: 1.05rem;
  color: var(--slate-charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
}

.provider-quote-callout {
  background: var(--sage-light);
  border-left: 4px solid var(--sage-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--sage-darker);
}

/* Athenahealth Patient Portal 3-Step Card */
.athena-portal-banner {
  background: linear-gradient(135deg, #24352B 0%, #1A261F 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin: 60px 0;
  box-shadow: var(--shadow-xl);
}

.athena-banner-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
}

.athena-partner-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-gold);
  margin-bottom: 14px;
}

.athena-banner-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.athena-banner-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.athena-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.athena-feat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition-fast);
}

.athena-feat-card:hover {
  background: rgba(255, 255, 255, 0.14);
}

.athena-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
}

.athena-feat-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.athena-feat-text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.athena-action-center {
  text-align: center;
}

.btn-athena-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--amber-gold);
  color: var(--slate-charcoal);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(216, 167, 88, 0.4);
  transition: var(--transition-fast);
}

.btn-athena-big:hover {
  background: #E5B467;
  transform: translateY(-2px);
}

/* Location & Hours Card */
.location-hours-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .location-hours-card {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .location-map-panel {
    height: 100% !important;
    min-height: 100% !important;
    position: relative;
    display: flex;
  }

  .location-map-panel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
  }
}

/* Force single column stack in tablet, phone, and simulated device containers */
.device-ipad .location-hours-card,
.device-phone .location-hours-card,
.preview-canvas-container.device-ipad .location-hours-card,
.preview-canvas-container.device-phone .location-hours-card {
  grid-template-columns: 1fr !important;
}

.location-info-panel {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.device-ipad .location-info-panel,
.preview-canvas-container.device-ipad .location-info-panel {
  padding: 32px 24px !important;
}

.device-phone .location-info-panel,
.preview-canvas-container.device-phone .location-info-panel {
  padding: 24px 18px !important;
  gap: 18px !important;
}

.location-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--slate-charcoal);
}

.device-phone .location-heading,
.preview-canvas-container.device-phone .location-heading {
  font-size: 1.45rem !important;
  line-height: 1.25 !important;
}

.location-address-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.1rem;
  color: var(--slate-charcoal);
}

.device-phone .location-address-box,
.preview-canvas-container.device-phone .location-address-box {
  font-size: 0.95rem !important;
}

.hours-table-wrap {
  width: 100%;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-light);
}

.hours-table td {
  padding: 10px 0;
  font-size: 0.95rem;
}

.hours-day {
  font-weight: 700;
  color: var(--slate-charcoal);
}

.hours-time {
  text-align: right;
  color: var(--slate-muted);
  font-weight: 500;
}

.location-map-panel {
  min-height: 380px;
  height: 380px;
  background: #E2E8F0;
  position: relative;
  width: 100%;
}

.location-map-panel iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  border: 0 !important;
  display: block !important;
}

.device-ipad .location-map-panel,
.device-phone .location-map-panel,
.preview-canvas-container.device-ipad .location-map-panel,
.preview-canvas-container.device-phone .location-map-panel {
  height: 380px !important;
  min-height: 380px !important;
  width: 100% !important;
}

/* Clinic Footer */
.clinic-site-footer {
  background: var(--slate-charcoal);
  color: #ffffff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.clinic-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}
.footer-link-list a:hover { color: #ffffff; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   THEME 1: WARM COMPASSION & TRUST (.theme-warm)
   Warm linen canvas, soft sage cards, rose plum accents, serif headings
   ========================================================================== */
.theme-warm {
  background-color: var(--linen-cream);
  font-family: var(--font-sans);
}

.theme-warm h1, .theme-warm h2, .theme-warm h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

.theme-warm .warm-hero {
  padding: 80px 0 70px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--linen-cream) 100%);
  position: relative;
}

/* ==========================================================================
   Hero Photographic Watermark (Stage 2 Proof Home & All Subpages)
   ========================================================================== */
.theme-warm .hero-watermark,
.hero-watermark {
  position: relative;
  background-position: right top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  min-height: 480px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0 !important;
  padding-top: 44px !important;
  padding-bottom: 44px !important;
  border-bottom: 1px solid var(--border-light);
  z-index: 1;
}

.theme-warm .hero-watermark > .container,
.hero-watermark > .container {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-watermark-panel {
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-watermark-panel .warm-headline {
  font-size: 2.35rem;
  line-height: 1.2;
  color: var(--slate-charcoal);
  margin-bottom: 12px;
}

.hero-watermark-panel .warm-headline em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-watermark-panel .warm-subhead {
  font-size: 1.05rem;
  color: #3b3631;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-watermark-panel .warm-cta-group {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-watermark-badges {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-charcoal);
}

.hero-watermark-badges .badge-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

@media (max-width: 900px) {
  .theme-warm .hero-watermark,
  .hero-watermark {
    height: auto;
    min-height: 420px;
    max-height: none;
    margin-top: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
    background-position: right top !important;
  }
  .hero-watermark-panel {
    max-width: 100%;
  }
  .hero-watermark-panel .warm-headline {
    font-size: 1.95rem;
  }
  .hero-watermark-panel .warm-subhead {
    font-size: 0.98rem;
    margin-bottom: 16px;
  }
  .hero-watermark-panel .warm-cta-group {
    margin-bottom: 16px;
  }
}

/* Face-locked front page hero styles */
.hero-frontpage-face-locked {
  background-position: right 1% top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  min-height: 520px;
}

@media (min-width: 1200px) {
  .hero-frontpage-face-locked {
    background-position: right 2% top !important;
    min-height: 540px;
  }
  .hero-frontpage-face-locked .hero-watermark-panel {
    max-width: 540px;
  }
}

@media (max-width: 1199px) and (min-width: 901px) {
  .hero-frontpage-face-locked {
    background-position: right top !important;
    min-height: 500px;
  }
  .hero-frontpage-face-locked .hero-watermark-panel {
    max-width: 500px;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .hero-frontpage-face-locked {
    background-position: 88% top !important;
    min-height: 380px;
  }
  .hero-frontpage-face-locked .hero-watermark-panel {
    max-width: 480px;
    background: rgba(254, 252, 249, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 640px) {
  .hero-frontpage-face-locked {
    background-position: center top !important;
    min-height: auto;
    padding: 20px 0;
  }
  .hero-frontpage-face-locked .hero-watermark-panel {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 10px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.theme-warm .hero-content-center {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.theme-warm .warm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--mauve-light);
  border: 1px solid var(--mauve-border);
  color: var(--mauve-dark);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.theme-warm .warm-headline {
  font-size: 3.4rem;
  line-height: 1.18;
  color: var(--slate-charcoal);
  margin-bottom: 24px;
}

.theme-warm .warm-headline em {
  font-style: italic;
  color: var(--sage-dark);
}

.theme-warm .warm-subhead {
  font-size: 1.25rem;
  color: var(--slate-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.theme-warm .warm-cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.theme-warm .btn-warm-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--sage-dark);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(74, 110, 83, 0.3);
  transition: var(--transition-fast);
}

.theme-warm .btn-warm-primary:hover {
  background: var(--sage-darker);
  transform: translateY(-2px);
}

.theme-warm .btn-warm-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffff;
  color: var(--slate-charcoal);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.theme-warm .btn-warm-secondary:hover {
  background: var(--linen-soft);
  border-color: var(--sage-primary);
}

/* ==========================================================================
   THEME 2: SENIOR PRIORITY & HIGH CLARITY (.theme-clarity)
   Maximum readability, large 20px+ font, direct call banner, Medicare priority
   ========================================================================== */
.theme-clarity {
  background-color: #FFFFFF;
  font-size: 19px; /* Larger base font for senior readability */
}

.theme-clarity h1, .theme-clarity h2, .theme-clarity h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

/* Top High-Contrast Emergency / Direct Dial Banner */
.theme-clarity .senior-call-banner {
  background: #111827;
  color: #ffffff;
  padding: 16px 0;
  border-bottom: 4px solid var(--amber-gold);
}

.theme-clarity .senior-call-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.theme-clarity .senior-call-text {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-clarity .btn-senior-dial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-gold);
  color: #111827;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 1.15rem;
  font-weight: 800;
  transition: var(--transition-fast);
}

.theme-clarity .btn-senior-dial:hover {
  background: #E5B467;
}

.theme-clarity .clarity-hero {
  padding: 70px 0 50px;
  background: #F9FAFB;
  border-bottom: 2px solid #E5E7EB;
}

.theme-clarity .clarity-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .theme-clarity .clarity-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.theme-clarity .clarity-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 20px;
}

.theme-clarity .clarity-lead {
  font-size: 1.3rem;
  color: #374151;
  line-height: 1.65;
  margin-bottom: 30px;
}

.theme-clarity .senior-action-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-clarity .action-card-item {
  background: #ffffff;
  border: 2px solid #D1D5DB;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.theme-clarity .action-card-item:hover {
  border-color: #111827;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   THEME 3: MODERN WELLNESS & VITALITY (.theme-wellness)
   Fresh botanical sage gradients, proactive chronic health & active adult focus
   ========================================================================== */
.theme-wellness {
  background-color: #F7FAF8;
}

.theme-wellness .wellness-hero {
  background: linear-gradient(135deg, #3C5E47 0%, #577D62 100%);
  color: #ffffff;
  padding: 90px 0 80px;
  position: relative;
}

.theme-wellness .wellness-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .theme-wellness .wellness-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.theme-wellness .vitality-pill {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
}

.theme-wellness .wellness-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.theme-wellness .wellness-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin-bottom: 32px;
}

.theme-wellness .btn-wellness-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: #ffffff;
  color: #334E3A;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
}

.theme-wellness .btn-wellness-white:hover {
  background: #F0F5F1;
  transform: translateY(-2px);
}

/* ==========================================================================
   THEME 4: DIRECT CLINIC & FAST ACCESS (.theme-direct)
   Structured clinical clarity, same-day scheduling badge, conditions checklist
   ========================================================================== */
.theme-direct {
  background-color: #F8FAFC;
}

.theme-direct .direct-hero {
  padding: 60px 0 50px;
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
}

.theme-direct .direct-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .theme-direct .direct-hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.theme-direct .same-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.theme-direct .direct-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 16px;
}

.theme-direct .direct-lead {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 28px;
}

.theme-direct .quick-portal-box {
  background: linear-gradient(135deg, var(--mauve-dark) 0%, #5E2E49 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*
 * Responsive clinic templates
 * Container queries make the toolbar simulator behave like a real device.
 * These same rules apply when the page is opened in a mobile browser because
 * the preview container then matches the browser viewport.
 */
@container clinic-preview (max-width: 899px) {
  .theme-warm,
  .theme-clarity,
  .theme-wellness,
  .theme-direct {
    overflow-x: visible;
  }

  .theme-warm .container,
  .theme-clarity .container,
  .theme-wellness .container,
  .theme-direct .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-nav-menu { display: none !important; }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 14px;
  }

  .clinic-logo-link {
    flex: 0 0 auto !important;
    min-width: 0;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }

  .values-pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .theme-clarity .clarity-hero-grid,
  .theme-wellness .wellness-hero-grid,
  .theme-direct .direct-hero-grid,
  .location-hours-card,
  .provider-spotlight-card,
  .floral-vine-bio-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .floral-vine-bio-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
  }

  .floral-vine-bio-card .bio-photo-cluster {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }

  .floral-vine-bio-card .bio-prominent-photo-wrap {
    height: 380px !important;
    max-width: 100% !important;
  }

  .floral-vine-bio-card .bio-gallery-section {
    max-width: 380px !important;
    margin: 12px auto 0 auto !important;
  }

  .floral-vine-bio-card .bio-narrative-content {
    width: 100% !important;
  }

  .theme-warm .warm-hero,
  .theme-clarity .clarity-hero,
  .theme-wellness .wellness-hero,
  .theme-direct .direct-hero {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  .theme-warm .warm-headline,
  .theme-clarity .clarity-title,
  .theme-wellness .wellness-title,
  .theme-direct .direct-title {
    font-size: clamp(2.25rem, 8cqi, 3rem);
  }

  .responsive-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .athena-portal-banner { padding: 36px 28px; }
  .athena-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-map-panel { min-height: 300px; }
  .clinic-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .theme-clarity #practice-section > div,
  .theme-clarity #medicare-section > div,
  .theme-wellness .wellness-hero-grid > div:last-child,
  .theme-direct .quick-portal-box {
    padding: 30px !important;
  }
}

@container clinic-preview (max-width: 520px) {
  .theme-warm .container,
  .theme-clarity .container,
  .theme-wellness .container,
  .theme-direct .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .clinic-utility-bar {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  .utility-bar-inner,
  .utility-left,
  .utility-right {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .clinic-main-header { padding: 10px 0; }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .clinic-logo-link {
    width: auto !important;
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
  }

  .clinic-logo-img { max-height: 52px !important; }
  .clinic-main-header.scrolled .clinic-logo-img { max-height: 42px !important; }

  .header-actions {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  .header-actions .btn-call-clinic,
  .header-actions .btn-athena-portal {
    display: none !important;
  }

  .mobile-hamburger-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .values-pillars-grid {
    grid-template-columns: 1fr !important;
  }

  .theme-warm .hero-watermark,
  .hero-watermark {
    position: relative !important;
    background-position: center top !important;
    margin-top: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .theme-warm .hero-watermark::before,
  .hero-watermark::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(254, 252, 249, 0.88) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .theme-warm .hero-watermark > .container,
  .hero-watermark > .container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero-watermark-panel {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 14px 4px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .hero-watermark-panel > div:first-child {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-watermark-panel .warm-pill {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    margin: 0 auto 12px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-watermark-panel .warm-headline {
    font-size: 1.55rem !important;
    line-height: 1.24 !important;
    margin: 0 auto 12px auto !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .hero-watermark-panel .warm-subhead {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin: 0 auto 16px auto !important;
    text-align: center !important;
    max-width: 480px !important;
  }

  .hero-watermark-panel .warm-cta-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .hero-watermark-panel .warm-cta-group a {
    width: auto !important;
    min-width: 135px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
  }

  .hero-watermark-badges {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 12px auto 0 auto !important;
  }

  .hero-frontpage-face-locked {
    background-position: center top !important;
    min-height: auto !important;
  }

  .header-actions a,
  .responsive-action-row > a,
  .warm-cta-group > a,
  .btn-athena-big,
  .btn-wellness-white,
  .btn-senior-dial {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    padding: 13px 16px !important;
    text-align: center;
    white-space: normal;
  }

  .responsive-action-row,
  .warm-cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .theme-warm .warm-hero,
  .theme-clarity .clarity-hero,
  .theme-wellness .wellness-hero,
  .theme-direct .direct-hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .theme-warm .warm-headline,
  .theme-clarity .clarity-title,
  .theme-wellness .wellness-title,
  .theme-direct .direct-title {
    font-size: clamp(2rem, 11cqi, 2.65rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .theme-warm .warm-subhead,
  .theme-clarity .clarity-lead,
  .theme-wellness .wellness-lead,
  .theme-direct .direct-lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .theme-clarity { font-size: 17px; }
  .theme-clarity .senior-call-inner { align-items: stretch; }
  .theme-clarity .senior-call-text { font-size: 1rem; }

  .theme-warm .warm-pill,
  .theme-wellness .vitality-pill,
  .theme-direct .same-day-badge {
    max-width: 100%;
    font-size: 0.75rem;
    text-align: center;
    white-space: normal;
  }

  .theme-clarity .action-card-item {
    align-items: flex-start;
    padding: 18px;
  }

  .theme-clarity .action-card-item > div {
    min-width: 0;
    gap: 12px !important;
  }

  .provider-bio-content,
  .location-info-panel,
  .theme-clarity #practice-section > div,
  .theme-clarity #medicare-section > div,
  .theme-wellness .wellness-hero-grid > div:last-child,
  .theme-direct .quick-portal-box {
    padding: 22px !important;
  }

  .provider-name,
  .location-heading,
  .athena-banner-title,
  .section-title {
    font-size: 1.7rem !important;
    line-height: 1.2;
  }

  .athena-portal-banner {
    margin: 38px 0;
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }

  .athena-banner-header { margin-bottom: 26px; }
  .athena-features-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .athena-feat-card { padding: 20px 16px; }

  .location-address-box { font-size: 0.95rem; }
  .hours-table td { padding: 9px 0; font-size: 0.82rem; }
  .hours-day { padding-right: 8px !important; }
  .location-map-panel { min-height: 260px; }
  .clinic-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .clinic-site-footer { padding-top: 42px; margin-top: 50px; }
  .footer-bottom-bar { align-items: flex-start; flex-direction: column; }

  .responsive-card-grid > * { min-width: 0; padding: 22px !important; }
}

/* General Footer */
.gallery-footer {
  background: #18231E;
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.gallery-footer-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-credit strong {
  color: #ffffff;
}

.footer-col-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-col-nav a:hover {
  color: #ffffff;
}

.footer-dot {
  opacity: 0.3;
}

/* ==========================================================================
   VERTICAL SIDEBAR NAVIGATION & APP SHELL LAYOUT
   ========================================================================== */

body.has-vertical-nav {
  margin: 0;
  padding: 0;
  background: #f8fafc;
}

.app-layout-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Mobile Header (< 960px) */
.mobile-app-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 959px) {
  .mobile-app-header {
    display: flex;
  }
  .app-layout-container {
    flex-direction: column;
  }
}

.mobile-menu-toggle {
  background: transparent;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-brand-logo {
  height: 28px;
  width: auto;
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 95;
}

.sidebar-backdrop.open {
  display: block;
}

/* App Sidebar (Vertical Navigation) */
.app-sidebar {
  --sidebar-width: 290px;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: 33vw;
  background: #0f172a;
  color: #e2e8f0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  z-index: 2;
  width: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
}

.sidebar-resize-handle span {
  display: block;
  width: 2px;
  height: 40px;
  margin: 0 auto;
  border-radius: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.sidebar-resize-handle:hover span,
body.resizing-sidebar .sidebar-resize-handle span {
  background: #60a5fa;
}

body.resizing-sidebar {
  cursor: ew-resize;
  user-select: none;
}

@media (max-width: 959px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar-resize-handle {
    display: none;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
}

/* Sidebar Workspace Dropdown Switcher */
.workspace-switcher-container {
  padding: 12px 14px 10px 14px;
  background: #090e17;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 100;
}

.workspace-dropdown {
  position: relative;
}

.workspace-dropdown-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.15s ease;
  user-select: none;
}

.workspace-dropdown-summary::-webkit-details-marker {
  display: none;
}

.workspace-dropdown-summary:hover {
  background: #1e293b;
  border-color: #475569;
}

.workspace-dropdown[open] .workspace-dropdown-summary {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.workspace-current-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-type-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  padding: 1px 5px;
  border-radius: 3px;
}

.workspace-type-pill.pill-msp {
  background: #0284c7;
  color: #ffffff;
}

.workspace-type-pill.pill-client {
  background: #047857;
  color: #ffffff;
}

.workspace-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-title-row .workspace-icon {
  font-size: 0.95rem;
}

.workspace-title-row .workspace-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.workspace-caret {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.workspace-dropdown[open] .workspace-caret {
  transform: rotate(180deg);
}

.workspace-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1.5px solid #38bdf8;
  border-radius: 10px;
  padding: 10px 8px;
  box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.8), 0 0 16px rgba(2, 132, 199, 0.25);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.dropdown-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  padding: 6px 10px 4px 10px;
  text-transform: uppercase;
}

.workspace-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid #334155;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}

.workspace-item:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.workspace-item.selected {
  background: rgba(2, 132, 199, 0.35);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.workspace-item-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-item-content .item-icon {
  font-size: 1.1rem;
}

.workspace-item-content strong {
  font-size: 0.84rem;
  color: #f8fafc;
  display: block;
}

.workspace-item-content .item-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

.workspace-item:hover .workspace-item-content .item-sub {
  color: #e0f2fe;
}

.active-check {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1rem;
}

.workspace-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 4px 8px 10px;
}

.sub-action-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 8px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sub-action-link:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.dropdown-divider {
  height: 1px;
  background: #334155;
  margin: 8px 0;
}

/* Sidebar Brand */
.sidebar-brand-box {
  padding: 20px 18px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  background: #0b1120;
}

.sidebar-logo-wrap {
  background: #ffffff;
  padding: 5px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-brand-logo {
  height: 34px;
  width: auto;
}

.sidebar-brand-meta {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.sidebar-brand-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.btn-close-sidebar-mobile {
  display: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 959px) {
  .btn-close-sidebar-mobile {
    display: block;
  }
}

/* Sidebar Navigation Scroll Area */
.sidebar-nav-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 18px 12px;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* Sidebar Section Blocks */
.sidebar-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e293b;
}

.sidebar-section:last-of-type {
  border-bottom: none;
}

.section-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0 8px;
}

.stage-prefix {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.stage-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-locked {
  background: #334155;
  color: #cbd5e1;
}

.badge-active {
  background: #064e3b;
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-complete {
  background: #14532d;
  color: #bbf7d0;
}

.current-projects-section {
  padding: 0 8px 18px;
}

.project-card-nav {
  margin-top: 10px;
  padding: 10px 8px 2px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #172033;
}

.project-card-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
  color: #f8fafc;
  font-size: 0.82rem;
}

.project-group-collapsible {
  display: block;
}

.project-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
  padding: 0 8px;
  color: #d9f99d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-group-summary::-webkit-details-marker {
  display: none;
}

.project-group-summary::after {
  content: "-";
  color: #94a3b8;
  font-size: 0.95rem;
}

.project-group-collapsible:not([open]) .project-group-summary::after {
  content: "+";
}

.current-projects-section .project-card-nav-header {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #32806b;
  border-radius: 7px;
  background: #1f6b5a;
  color: #f0fdf4;
}

.current-projects-section .project-card-nav-header .badge-active {
  background: #2d8a70;
  color: #dcfce7;
}

.pending-projects-section .project-card-nav-header {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #48658f;
  border-radius: 7px;
  background: #2b3f63;
  color: #eff6ff;
}

.pending-projects-section .project-card-nav-header .badge-ready {
  background: #315aa5;
  color: #bfdbfe;
}

.project-card-nav > summary {
  cursor: pointer;
  list-style: none;
}

.project-card-nav > summary::-webkit-details-marker {
  display: none;
}

.project-card-nav > summary::after {
  content: "+";
  float: right;
  color: #94a3b8;
  font-weight: 800;
}

.project-card-nav[open] > summary::after {
  content: "-";
}

.pending-projects-section {
  padding: 0 8px 18px;
}

.pending-project-card {
  margin-top: 8px;
}

.project-stage-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 4px 8px;
}

.project-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.7rem;
}

.project-stage-row strong {
  color: #94a3b8;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.project-summary-link {
  margin-top: 4px;
  color: #bfdbfe;
  font-size: 0.72rem;
}

.project-card-nav .stage-section {
  margin: 0 -8px;
  padding: 12px 8px 10px;
}

.project-card-nav .stage-section + .stage-section {
  border-top: 1px solid #334155;
}

.stage-section.stage-complete {
  border-left: 3px solid #22c55e;
}

.stage-section.stage-execution {
  border-left: 3px solid #3b82f6;
}

.execution-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.execution-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #172033;
}

.execution-item strong {
  margin-bottom: 2px;
  color: #f8fafc;
  font-size: 0.75rem;
}

.execution-resource-link {
  color: #bfdbfe;
  font-size: 0.7rem;
  text-decoration: none;
}

.execution-resource-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.stage-collapsible-summary {
  cursor: pointer;
  list-style: none;
}

.stage-collapsible-summary::-webkit-details-marker {
  display: none;
}

.stage-collapsible-summary::after {
  content: "+";
  float: right;
  margin-top: -23px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 800;
}

.stage-collapsible[open] .stage-collapsible-summary::after {
  content: "-";
}

/* Compact project tree: summaries stay single-line while children retain hierarchy. */
.project-group-body {
  position: relative;
  padding-left: 8px;
}

.project-group-body::before {
  position: absolute;
  top: 0;
  bottom: 12px;
  left: 1px;
  border-left: 1px solid #334155;
  content: "";
}

.project-card-nav {
  position: relative;
  margin: 6px 0 0 8px;
  padding: 5px 8px 2px;
}

.project-card-nav-header {
  min-width: 0;
  padding: 7px 8px;
  white-space: nowrap;
}

.project-card-nav-header strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-nav-header .stage-status-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.project-card-nav .stage-section {
  position: relative;
  margin: 0 -2px;
  padding: 5px 2px 5px 14px;
  border-left: 0;
}

.project-card-nav .stage-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  border-left: 1px solid #475569;
  content: "";
}

.stage-collapsible-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 4px;
  white-space: nowrap;
}

.stage-collapsible-summary::before {
  width: 8px;
  margin-left: -14px;
  border-top: 1px solid #475569;
  content: "";
}

.stage-collapsible-summary::after {
  position: static;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  float: none;
}

.stage-collapsible-summary .section-stage-header {
  display: flex;
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  gap: 6px;
  padding: 0;
}

.stage-collapsible-summary .stage-prefix {
  font-size: 0.64rem;
}

.stage-collapsible-summary .section-title {
  order: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-size: 0.78rem;
}

.project-card-nav .sidebar-links-group,
.project-stage-summary {
  position: relative;
  margin-left: 8px;
  padding-left: 12px;
}

.project-card-nav .sidebar-links-group::before,
.project-stage-summary::before {
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 0;
  border-left: 1px solid #334155;
  content: "";
}

.pending-project-card {
  margin-top: 6px;
}

.haas-child-projects {
  margin: 3px 0 4px 12px;
  padding-left: 12px;
  border-left: 1px solid #64748b;
}

.haas-child-project {
  border-bottom: 1px solid #334155;
}

.haas-child-project:last-child {
  border-bottom: 0;
}

.haas-child-project > summary {
  cursor: pointer;
  list-style: none;
}

.haas-child-project > summary::-webkit-details-marker {
  display: none;
}

.haas-child-project > summary::after {
  content: "+";
  margin-left: 8px;
  color: #94a3b8;
}

.haas-child-project[open] > summary::after {
  content: "-";
}

.haas-child-project > .project-stage-summary {
  margin-left: 10px;
  padding-left: 12px;
}

.project-execution-node {
  margin-top: 4px;
  border-top: 1px solid #334155;
}

.project-execution-node > summary {
  cursor: pointer;
  list-style: none;
}

.project-execution-node > summary::-webkit-details-marker {
  display: none;
}

.project-execution-node > summary::after {
  content: "+";
  margin-left: 8px;
  color: #94a3b8;
}

.project-execution-node[open] > summary::after {
  content: "-";
}

.project-execution-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 5px 12px;
  padding: 4px 0 4px 14px;
  border-left: 1px solid #475569;
}

.project-execution-links a {
  color: #bfdbfe;
  font-size: 0.66rem;
  text-decoration: none;
}

.project-inline-link {
  color: inherit;
  text-decoration: none;
}

.project-inline-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.project-execution-links a:hover,
.project-execution-links a.active {
  color: #ffffff;
  text-decoration: underline;
}

.poc-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 2px 0 6px !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.poc-button:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.poc-button.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.poc-subpages {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid #334155;
}

/* Traditional tree treatment: one project node, flat stage nodes, one child rail. */
.sidebar-nav-scroll {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.project-group-body {
  padding-left: 0;
}

.project-group-body::before {
  display: none;
}

.project-card-nav {
  margin-left: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-card-nav-header,
.current-projects-section .project-card-nav-header,
.pending-projects-section .project-card-nav-header {
  margin: 0 0 2px;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.project-card-nav-header .stage-status-badge {
  padding: 2px 6px;
  font-size: 0.56rem;
}

.project-card-nav .stage-section {
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
}

.project-card-nav .stage-section::before {
  left: 5px;
  border-color: #475569;
}

.stage-collapsible-summary {
  min-height: 32px;
  gap: 6px;
  padding: 5px 4px;
  font-size: 0.72rem;
}

.stage-collapsible-summary .section-stage-header {
  gap: 4px;
}

.stage-collapsible-summary .stage-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #475569;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 0.6rem;
}

.stage-collapsible-summary .stage-status-badge {
  padding: 2px 5px;
  font-size: 0.55rem;
}

.stage-collapsible-summary .section-title {
  flex: 1 1 auto;
  font-size: 0.75rem;
  font-weight: 700;
}

.stage-collapsible-summary::after {
  order: 3;
}

.stage-collapsible-summary.project-stage-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-collapsible-summary.project-stage-row > .stage-status-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.stage-collapsible-summary.project-stage-row::after {
  margin-left: 8px;
}

.project-card-nav .sidebar-links-group,
.project-stage-summary {
  margin: 0 0 0 12px;
  padding: 2px 0 5px 14px;
  border-left: 1px solid #475569;
}

.project-card-nav .sidebar-links-group::before,
.project-stage-summary::before {
  display: none;
}

.project-card-nav .sidebar-subitem,
.project-card-nav .sidebar-subgroup-label,
.project-card-nav .sidebar-link {
  font-size: 0.72rem;
}

.project-card-nav .sidebar-subitem {
  min-height: 28px;
}

.project-stage-row {
  min-height: 26px;
  font-size: 0.66rem;
}

.project-stage-row > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-stage-row > .stage-status-badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.project-stage-row > .stage-status-badge + * {
  flex: 0 0 auto;
}

/* Normalize every status badge and disclosure control in the project tree. */
.stage-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.project-card-nav > summary::after,
.stage-collapsible-summary::after,
.project-group-summary::after,
.haas-child-project > summary::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  margin-left: 8px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.project-stage-row strong {
  font-size: 0.58rem;
}

.project-summary-link,
.project-summary-note {
  font-size: 0.68rem;
}

.review-category {
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfcfb;
}

.review-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
  color: #64748b;
  font-size: 0.72rem;
}

.review-category-heading h4 {
  margin: 2px 0 0;
  color: #24352d;
  font-size: 1rem;
}

.review-category-kicker {
  color: #2d6639;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stage-review-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid #b9d4c0;
  background: #f3faf5;
  color: #486052;
  font-size: 0.76rem;
  line-height: 1.45;
}

.stage-general-notes {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #486052;
  font-size: 0.8rem;
  line-height: 1.45;
}

.stage-general-notes strong {
  color: #24352d;
}

.stage-general-notes p {
  margin: 3px 0 0;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.8s infinite;
}

.badge-ready {
  background: #1e3a8a;
  color: #93c5fd;
}

.badge-runbook {
  background: #312e81;
  color: #c7d2fe;
}

.sidebar-section .section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  padding: 0 8px 8px 8px;
}

.sidebar-links-group {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links-group li {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background: #1e293b;
  color: #ffffff;
}

.sidebar-link.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.sidebar-link.highlight-link {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sidebar-link.highlight-link:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

.sidebar-link.highlight-link.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* Nested Sub-items (Gallery Items under Stage 1, etc.) */
.sidebar-subgroup-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  padding: 8px 12px 4px 12px;
}

.sidebar-subitem {
  padding-left: 8px;
}

.sidebar-link.sub-link {
  font-size: 0.82rem;
  padding: 6px 10px;
  color: #94a3b8;
}

.sidebar-link.sub-link:hover {
  color: #f1f5f9;
  background: #1e293b;
}

.sidebar-link.sub-link.active {
  background: #1e293b;
  color: #60a5fa;
  font-weight: 700;
  box-shadow: none;
  border-left: 3px solid #3b82f6;
  border-radius: 0 6px 6px 0;
}

.sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #475569;
}

.sidebar-link.sub-link.active .sub-dot {
  background: #60a5fa;
}

.winner-link {
  color: #fde047 !important;
}

.winner-star {
  color: #eab308;
  font-size: 0.95rem;
}

.item-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-selected {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.feedback-count-pill {
  margin-left: auto;
  background: #3b82f6;
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Sidebar User Footer */
.sidebar-user-footer {
  padding: 16px 14px;
  background: #0b1120;
  border-top: 1px solid #1e293b;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid #475569;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-email {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  margin-top: 2px;
}

.user-role-badge.admin {
  background: #7c2d12;
  color: #fed7aa;
}

.user-role-badge.reviewer {
  background: #1e3a8a;
  color: #bfdbfe;
}

.user-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-user-action {
  flex: 1;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  background: #1e293b;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid #334155;
  transition: all 0.15s ease;
}

.btn-user-action:hover {
  background: #334155;
  color: #ffffff;
}

.signout-form-inline {
  flex: 1;
  display: flex;
}

.btn-signout {
  width: 100%;
  cursor: pointer;
  color: #fca5a5;
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.2);
}

.btn-signout:hover {
  background: #991b1b;
  color: #ffffff;
}

/* App Content Viewport */
.app-content-viewport {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow-x: hidden;
}

.app-content-viewport .gallery-main-content {
  flex-grow: 1;
  width: 100%;
  padding: 32px 48px 64px 48px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .app-content-viewport .gallery-main-content {
    padding: 28px 36px 52px 36px;
  }
}

@media (max-width: 768px) {
  .app-content-viewport .gallery-main-content {
    padding: 20px 20px 40px 20px;
  }
}

.app-content-viewport .gallery-footer {
  margin-top: auto;
}


/* ==========================================================================
   STAGE 2, 3 & 4 STYLES: PROOF, APPROVALS & SQUARESPACE MIGRATION
   ========================================================================== */

/* Stage Navigation Pills */
.stage-nav-pill-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}
.stage-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
}
.stage-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.stage-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Stage 2 Live Proof Container */
.proof-site-container {
  background: #faf8f5;
  color: #2c2926;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-x: hidden;
}
.proof-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Proof Top Announcement */
.proof-top-announcement {
  background: #2a3d24;
  color: #e2ecd9;
  font-size: 0.84rem;
  padding: 9px 0;
}
.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.announcement-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.announcement-phone {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.announcement-phone:hover {
  text-decoration: underline;
}

/* Clinic Header */
.proof-clinic-header {
  background: #ffffff;
  border-bottom: 1px solid #ede7df;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.proof-main-nav {
  display: none;
}
@media (min-width: 960px) {
  .proof-main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}
.proof-main-nav .nav-link {
  color: #4a4540;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}
.proof-main-nav .nav-link:hover,
.proof-main-nav .nav-link.active {
  color: #526e47;
}
.proof-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #dcd3c5;
  color: #4a4540;
  text-decoration: none;
  transition: all 0.15s ease;
  background: #faf8f5;
}
.btn-portal-pill:hover {
  border-color: #526e47;
  color: #526e47;
  background: #ffffff;
}
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  background: #526e47;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(82, 110, 71, 0.25);
  transition: all 0.15s ease;
}
.btn-primary-action:hover {
  background: #425838;
  transform: translateY(-1px);
}

/* Hero Section */
.proof-hero-section {
  padding: 65px 0 75px 0;
  background: linear-gradient(180deg, #faf8f5 0%, #f3eee7 100%);
  border-bottom: 1px solid #ede7df;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 45px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef3eb;
  border: 1px solid #d5e2d1;
  color: #3b5333;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #526e47;
}
.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #231f1c;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .hero-headline {
    font-size: 2.15rem;
  }
}
.highlight-warm {
  color: #526e47;
  font-style: italic;
}
.hero-subline {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #57514a;
  margin-bottom: 30px;
}
.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #526e47;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(82, 110, 71, 0.3);
  transition: all 0.15s ease;
}
.btn-hero-primary:hover {
  background: #425838;
  transform: translateY(-1px);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dcd3c5;
  color: #3b3631;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-hero-secondary:hover {
  border-color: #526e47;
  color: #526e47;
}
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b4640;
}
.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-icon {
  color: #526e47;
  font-weight: 800;
}

/* Hero Image Card Frame */
.hero-card-frame {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.hero-card-header {
  padding: 22px 24px;
  border-bottom: 1px solid #f0e9df;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-logo {
  max-height: 48px;
  width: auto;
}
.clinic-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf7eb;
  color: #2e6027;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e6027;
  animation: pulse 2s infinite;
}
.hero-card-body {
  padding: 24px;
}
.provider-snippet {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  background: #faf7f2;
  padding: 14px;
  border-radius: 12px;
}
.snippet-headshot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #526e47;
}
.snippet-info strong {
  display: block;
  font-size: 1.05rem;
  color: #231f1c;
}
.snippet-info span {
  font-size: 0.82rem;
  color: #526e47;
  font-weight: 700;
}
.snippet-info p {
  font-size: 0.82rem;
  color: #655e56;
  margin-top: 2px;
}
.hero-quick-hours {
  border-top: 1px solid #f0e9df;
  padding-top: 16px;
  margin-bottom: 20px;
}
.qh-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #787066;
  font-weight: 700;
  margin-bottom: 8px;
}
.qh-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4a4540;
  padding: 3px 0;
}
.btn-card-call {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #2a3d24;
  color: #ffffff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}
.btn-card-call:hover {
  background: #1e2c1a;
}

/* Sections Common */
.proof-section {
  padding: 75px 0;
  border-bottom: 1px solid #ede7df;
}
.section-title-wrap {
  margin-bottom: 48px;
}
.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #526e47;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}
.section-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.35rem;
  color: #231f1c;
  margin-bottom: 10px;
  font-weight: 600;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #615a52;
}

/* About Us Section */
.about-us-quote-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 40px 48px;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  margin-bottom: 45px;
}
.about-quote-icon {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #dcd2c4;
  position: absolute;
  top: 15px;
  left: 20px;
}
.about-quote-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #231f1c;
  font-weight: 600;
  margin-bottom: 14px;
}
.about-quote-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #554e47;
  margin-bottom: 22px;
}
.about-quote-author strong {
  display: block;
  font-size: 1rem;
  color: #526e47;
}
.about-quote-author span {
  font-size: 0.84rem;
  color: #7a7268;
}
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.about-feat-item {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 14px;
  padding: 28px;
}
.feat-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef3eb;
  color: #526e47;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.about-feat-item h4 {
  font-size: 1.15rem;
  color: #231f1c;
  margin-bottom: 8px;
}
.about-feat-item p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #615a52;
}

/* Provider Showcase Card */
.provider-showcase-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
@media (min-width: 840px) {
  .provider-showcase-card {
    grid-template-columns: 340px 1fr;
  }
}
.provider-image-wrap {
  position: relative;
  background: #2a3d24;
}
.provider-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.provider-creds-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}
.provider-bio-wrap {
  padding: 40px;
}
.provider-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #526e47;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.provider-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.95rem;
  color: #231f1c;
  margin-bottom: 18px;
}
.provider-bio-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #554e47;
  margin-bottom: 14px;
}
.provider-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0e9df;
}
.hl-item strong {
  display: block;
  font-size: 1.15rem;
  color: #526e47;
}
.hl-item span {
  font-size: 0.8rem;
  color: #7a7268;
}

/* Staff Grid */
.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.staff-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.staff-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1ede6;
  color: #8c8275;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}
.staff-role-title {
  font-size: 1.05rem;
  color: #231f1c;
  margin-bottom: 4px;
}
.staff-status-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #526e47;
  background: #eef4ec;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 10px;
}
.staff-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #615a52;
}

/* Services 3 Pillars Grid */
.services-three-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.service-pillar-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.service-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #526e47;
}
.pillar-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #526e47;
  background: #eef3eb;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.pillar-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.65rem;
  color: #231f1c;
  margin-bottom: 10px;
}
.pillar-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #615a52;
  margin-bottom: 22px;
}
.pillar-offerings-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  flex-grow: 1;
}
.pillar-offerings-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3b3631;
  padding: 7px 0;
  border-bottom: 1px solid #f4efe8;
}
.btn-pillar-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f5f1eb;
  color: #423d38;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-pillar-action:hover {
  background: #526e47;
  color: #ffffff;
}

/* Insurance & Cash Pay Section */
.insurance-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .insurance-banner-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.insurance-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.ins-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3b3631;
}
.check-mark {
  color: #526e47;
  font-weight: 800;
}
.cash-pay-highlight-card {
  background: #2a3d24;
  color: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(42, 61, 36, 0.2);
}
.cash-pay-highlight-card h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: #f1f7ef;
}
.cash-pay-highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cash-pay-highlight-card li {
  padding: 8px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cash-pay-highlight-card strong {
  color: #c9e2c2;
}

/* Portal Guidance Card */
.portal-guidance-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 800px) {
  .portal-guidance-card {
    grid-template-columns: 80px 1fr;
  }
}
.portal-policy-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #231f1c;
  margin-bottom: 10px;
}
.portal-subtext {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #665f56;
  margin-bottom: 22px;
}
.portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-portal-launch {
  display: inline-flex;
  align-items: center;
  background: #526e47;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.portal-note-inline {
  font-size: 0.85rem;
  color: #756d64;
}

/* Contact Cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.contact-info-card, .contact-hours-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 34px;
}
.ci-header h4 {
  font-size: 1.35rem;
  color: #231f1c;
  margin-bottom: 4px;
}
.ci-header p {
  font-size: 0.88rem;
  color: #736b61;
  margin-bottom: 22px;
}
.ci-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f4efe8;
}
.ci-icon {
  font-size: 1.3rem;
}
.ci-detail strong {
  display: block;
  font-size: 0.88rem;
  color: #3b3631;
}
.ci-detail p {
  font-size: 0.94rem;
  color: #554e47;
  margin-top: 2px;
  line-height: 1.45;
}
.ci-subnote {
  font-size: 0.78rem;
  color: #526e47;
  font-weight: 600;
}
.phone-link {
  color: #526e47;
  font-weight: 700;
  text-decoration: none;
}
.hours-table {
  margin-bottom: 24px;
}
.ht-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f4efe8;
  font-size: 0.92rem;
}
.ht-day {
  color: #554e47;
}
.ht-time {
  font-weight: 700;
  color: #231f1c;
}
.btn-call-hours {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #526e47;
  color: #ffffff;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* Proof Footer */
.proof-site-footer {
  background: #1f2a1b;
  color: #cbd8c7;
  padding: 55px 0 35px 0;
  font-size: 0.9rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-brand-col .footer-tagline {
  margin-top: 12px;
  font-style: italic;
}
.footer-brand-col .footer-copy {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #92a28d;
}
.footer-links-col h5, .footer-disclaimer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-col li {
  padding: 5px 0;
}
.footer-links-col a {
  color: #cbd8c7;
  text-decoration: none;
}
.footer-links-col a:hover {
  color: #ffffff;
}
.footer-stage-tag {
  margin-top: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #e3ede0;
}

/* Stage Tracker Header (Approvals & Migration) */
.stage-tracker-header {
  margin-bottom: 35px;
}
.tracker-steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}
.step-item.active {
  color: #0f172a;
  font-weight: 700;
}
.step-item.complete {
  color: #2d6639;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.step-item.active .step-num {
  background: #0f172a;
  color: #ffffff;
}
.step-item.complete .step-num {
  background: #dcfce7;
  color: #15803d;
}
.step-line {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
}
.step-line.complete {
  background: #86efac;
}
.stage-header-title h1 {
  font-size: 2.2rem;
  color: #0f172a;
  margin: 8px 0 10px 0;
}
.stage-header-title p {
  font-size: 1.05rem;
  color: #475569;
}
.badge-stage-title {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Approvals Grid */
.approval-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 960px) {
  .approval-grid-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.approval-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}
.card-header-flex h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.card-header-flex p {
  font-size: 0.88rem;
  color: #64748b;
}
.badge-status-ready {
  background: #ecfdf5;
  color: #047857;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.milestone-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.milestone-status-icon {
  margin-top: 2px;
}
.pending-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fbbf24;
  display: inline-block;
}
.m-title {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
}
.m-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.45;
}
.proof-review-banner {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.pr-text strong {
  font-size: 0.92rem;
  color: #0f172a;
}
.pr-text p {
  font-size: 0.82rem;
  color: #64748b;
}
.btn-open-poc {
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.sign-off-form .form-group-item {
  margin-bottom: 18px;
}
.sign-off-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.input-text-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.94rem;
}
.input-text-area {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.92rem;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.btn-confirm-signoff {
  background: #15803d;
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  transition: all 0.15s ease;
}
.btn-confirm-signoff:hover {
  background: #166534;
}
.so-history-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.so-badge-status {
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}
.so-timestamp {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
}
.so-note {
  font-size: 0.84rem;
  font-style: italic;
  color: #475569;
  margin-top: 4px;
}

/* Migration View Styles */
.migration-status-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.msb-text strong {
  display: block;
  font-size: 0.94rem;
  color: #166534;
}
.msb-text span:not(.btn-banner-action):not(.btn-banner-action *) {
  font-size: 0.88rem;
  color: #374151;
}
.migration-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.mig-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px;
}
.mig-card h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 14px;
}
.mig-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mig-table td, .mig-table th {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.mig-table code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
  font-size: 0.84rem;
}
.critical-alert-card {
  border-left: 5px solid #dc2626;
  background: #fef2f2;
}
.card-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.card-alert-header h4 {
  font-size: 1.15rem;
  color: #991b1b;
  margin: 0;
}
.dns-badge {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.76rem;
}
.cutover-phase-block {
  margin-bottom: 22px;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.cutover-phase-block h4 {
  font-size: 1.05rem;
  color: #0f172a;
  margin-bottom: 10px;
}
.phase-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.phase-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  padding: 6px 0;
}

/* Sub-page Views */
.proof-subpage-container {
  padding: 50px 0 80px 0;
  background: #faf8f5;
  min-height: 80vh;
}
.btn-sub-back {
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  color: #526e47;
  text-decoration: none;
  margin-bottom: 24px;
}
.subpage-header {
  margin-bottom: 40px;
}
.subpage-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  color: #526e47;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.subpage-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  color: #231f1c;
  margin: 6px 0 10px 0;
}
.subpage-lead {
  font-size: 1.1rem;
  color: #57514a;
}
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.subpage-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 32px;
}
.sp-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #526e47;
  background: #eef3eb;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.subpage-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  color: #231f1c;
  margin-bottom: 10px;
}
.sp-card-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #57514a;
  margin-bottom: 20px;
}
.sp-offerings-box h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #787066;
  margin-bottom: 8px;
}
.sp-offerings-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.sp-offerings-box li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: #3b3631;
}
.btn-sub-call {
  display: block;
  text-align: center;
  background: #526e47;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.about-detailed-card {
  background: #ffffff;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  padding: 36px;
}
.about-lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #231f1c;
  line-height: 1.7;
  margin-bottom: 14px;
}
.incorporated-revisions-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 22px;
}
.inc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.inc-title strong {
  font-size: 0.88rem;
  color: #166534;
}
.inc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: #27272a;
}
.inc-list li {
  padding: 3px 0;
  line-height: 1.45;
}
.next-stage-callout {
  margin-top: 24px;
  background: #faf8f5;
  border: 1px solid #e7dfd4;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.next-stage-callout p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 8px;
}
.btn-next-stage-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #15803d;
  text-decoration: none;
}

/* ==========================================================================
   Stage 2 Multi-Page Review Drawer & Accordion (Docked to the Right)
   ========================================================================== */
.proof-stage-toolbar .btn-open-feedback {
  display: inline-flex !important;
}

.preview-wrapper {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 66px);
  padding-top: 0;
  padding-bottom: 38px;
  position: relative;
  background: #ffffff;
  box-sizing: border-box;
}

.preview-canvas-container {
  width: calc(100% - 460px);
  min-height: calc(100vh - 104px);
  background: #ffffff;
  container: clinic-preview / inline-size;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.panel-collapsed .preview-canvas-container {
  width: 100%;
}

body.device-ipad .preview-wrapper,
body.device-phone .preview-wrapper {
  background: #f1f5f9;
}

.preview-canvas-container.device-ipad {
  max-width: 768px !important;
  margin: 24px auto !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  border: 8px solid #1e293b !important;
  overflow: visible !important;
}

.preview-canvas-container.device-phone {
  max-width: 390px !important;
  margin: 20px auto !important;
  border-radius: 28px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
  border: 10px solid #1e293b !important;
  overflow: visible !important;
}

.preview-canvas-container.device-desktop {
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.feedback-slideover-panel {
  position: fixed;
  top: 0;
  bottom: 38px;
  right: 0;
  width: 460px;
  height: calc(100vh - 104px);
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12);
  border-left: 1px solid var(--border-medium);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.panel-collapsed .feedback-slideover-panel {
  right: -460px;
}

.feedback-slideover-panel.open {
  right: 0;
}

/* Fixed Bottom Black Bar */
.proof-stage-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  z-index: 1000;
  background: #18231E;
  color: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.bottom-bar-inner {
  max-width: 1500px;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bottom-bar-indicator {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #cbd5e1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bottom-bar-indicator::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.slideover-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.slideover-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 50px;
}

.draft-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.proof-page-review-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.proof-page-review-card.active-page-card {
  border-color: var(--sage-dark);
  box-shadow: 0 3px 12px rgba(45, 102, 57, 0.12);
}

.proof-page-review-header {
  padding: 12px 14px;
  background: #faf8f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.proof-page-review-card.active-page-card .proof-page-review-header {
  background: #eef7f0;
}

.proof-page-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-page-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-charcoal);
}

.active-page-pill {
  background: var(--sage-dark);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.page-jump-link {
  font-size: 0.8rem;
  color: var(--sage-darker);
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-jump-link:hover {
  color: var(--sage-dark);
}

.accordion-arrow {
  font-size: 0.75rem;
  color: var(--slate-muted);
}

.proof-page-review-body {
  padding: 14px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.page-feedback-textarea {
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--slate-charcoal);
  background: #ffffff;
  resize: vertical;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.page-feedback-textarea:focus {
  outline: none;
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(45, 102, 57, 0.15);
}

/* Overall Aggregated Rating Summary Card */
.overall-rating-summary-card {
  background: linear-gradient(135deg, #fdfbf7 0%, #f7f3ec 100%);
  border: 1px solid #e5ded4;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.overall-rating-summary-card .summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}

.overall-rating-summary-card .summary-card-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--slate-charcoal);
  line-height: 1.2;
}

.overall-rating-summary-card .summary-card-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-muted);
  margin-top: 2px;
}

.overall-rating-summary-card .summary-status-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.overall-rating-summary-card .summary-status-tag.all-reviewed {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.overall-rating-summary-card .summary-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.overall-rating-summary-card .score-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.overall-rating-summary-card .score-big {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--slate-charcoal);
  font-family: var(--font-heading);
}

.overall-rating-summary-card .score-max {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.overall-rating-summary-card .score-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overall-rating-summary-card .score-stars-render {
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #f59e0b;
  line-height: 1;
}

.overall-rating-summary-card .score-explanation {
  font-size: 0.76rem;
  color: var(--slate-muted);
}

.overall-rating-summary-card .summary-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.overall-rating-summary-card .summary-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #2d6639);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Page Section Review Controls Bar */
.page-review-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
}

.approve-checkbox-label,
.good-as-is-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--slate-charcoal);
  user-select: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}

.approve-checkbox-label:hover,
.good-as-is-label:hover {
  background: #ecfdf5;
}

.approve-checkbox-label input[type="checkbox"],
.good-as-is-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #16a34a;
  cursor: pointer;
}

.approve-checkbox-label.checked,
.good-as-is-label.checked {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 700;
}

.page-star-rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-star-rating-wrap .star-rating-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-muted);
}

.page-star-rating-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}

.page-star-rating-picker input[type="radio"] {
  display: none;
}

.page-star-rating-picker label {
  font-size: 1.15rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  padding: 0 1px;
}

.page-star-rating-picker label:hover {
  transform: scale(1.15);
}

.page-star-rating-picker input[type="radio"]:checked ~ label {
  color: #f59e0b;
}

.page-star-rating-picker label:hover,
.page-star-rating-picker label:hover ~ label {
  color: #fbbf24;
}

.btn-clear-rating {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
}

.btn-clear-rating:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Page Header Status Badges (in accordion) */
.page-header-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.page-header-status-badge.badge-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.page-header-status-badge.badge-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.page-header-status-badge.badge-rated {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.page-header-status-badge.badge-notes {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Nav Review Status Pills & Badges (Desktop Header & Mobile Hamburger Drawer) */
.nav-review-pill {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1.4;
  vertical-align: middle;
}

.nav-review-pill.badge-approved {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.nav-review-pill.badge-rated {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.nav-review-pill.badge-notes {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.nav-review-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
  letter-spacing: 0.02em;
}

.nav-review-badge.badge-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.nav-review-badge.badge-approved {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

.nav-review-badge.badge-rated {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  border: 1px solid #fde68a;
}

.nav-review-badge.badge-notes {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Save Reminder Box */
.save-reminder-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.save-reminder-box .reminder-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.save-reminder-box .reminder-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.save-reminder-box .reminder-text strong {
  display: block;
  font-size: 0.92rem;
  color: #92400e;
  margin-bottom: 2px;
}

.save-reminder-box .reminder-text p {
  font-size: 0.82rem;
  color: #78350f;
  margin-bottom: 8px;
  line-height: 1.4;
}

.save-reminder-box .unrated-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.save-reminder-box .unrated-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.save-reminder-box .unrated-chip-btn:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.save-reminder-box .reminder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-jump-unrated {
  background: #d97706;
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-jump-unrated:hover {
  background: #b45309;
}

.btn-confirm-save-anyway {
  background: transparent;
  color: #92400e;
  border: 1px solid #f59e0b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-confirm-save-anyway:hover {
  background: #fef3c7;
}

/* Mobile Hamburger Button & Drawer */
.mobile-hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.mobile-hamburger-btn:hover {
  background: var(--linen-soft);
  border-color: var(--sage-dark);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-charcoal);
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 14px 16px 20px;
}

.mobile-nav-drawer.open {
  display: block;
  animation: slideDrawerDown 0.2s ease-out;
}

@keyframes slideDrawerDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-portal-banner-wrap {
  margin-bottom: 12px;
}

.mobile-portal-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f0f7f2 0%, #e8f3ea 100%);
  border: 1px solid rgba(45, 102, 57, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--sage-darker);
  transition: var(--transition-fast);
}

.mobile-portal-banner:hover {
  background: linear-gradient(135deg, #e5f1e8 0%, #dcefe0 100%);
  border-color: var(--sage-dark);
}

.mobile-portal-banner.active {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 2px rgba(45, 102, 57, 0.2);
}

.mobile-portal-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--sage-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-portal-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mobile-portal-text strong {
  font-size: 0.95rem;
  color: var(--sage-darker);
  font-weight: 700;
}

.mobile-portal-text span {
  font-size: 0.78rem;
  color: var(--slate-muted);
}

.mobile-portal-banner .arrow-icon {
  color: var(--sage-dark);
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-charcoal);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-item:hover {
  background: var(--linen-soft);
  color: var(--sage-darker);
}

.mobile-nav-item.active {
  background: #eef7f0;
  color: var(--sage-darker);
  font-weight: 700;
  border-left: 3px solid var(--sage-dark);
}

.mobile-drawer-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-drawer-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--sage-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.btn-drawer-call:hover {
  background: var(--sage-darker);
  color: #ffffff;
}

.drawer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--slate-muted);
  line-height: 1.4;
  text-align: center;
}

/* Responsive Header Navigation: Hide buttons outside menu, fix hamburger at top right */
@media (max-width: 1024px) {
  .header-nav-menu {
    display: none !important;
  }
  .header-actions {
    margin-left: auto !important;
  }
  .header-actions .btn-call-clinic,
  .header-actions .btn-athena-portal {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
    margin-left: auto !important;
  }
  .feedback-slideover-panel {
    width: 100vw;
  }
}

.device-ipad .header-nav-menu,
.device-phone .header-nav-menu,
.preview-canvas-container.device-ipad .header-nav-menu,
.preview-canvas-container.device-phone .header-nav-menu {
  display: none !important;
}

.device-ipad .header-actions,
.device-phone .header-actions,
.preview-canvas-container.device-ipad .header-actions,
.preview-canvas-container.device-phone .header-actions {
  margin-left: auto !important;
}

.device-ipad .header-actions .btn-call-clinic,
.device-ipad .header-actions .btn-athena-portal,
.device-phone .header-actions .btn-call-clinic,
.device-phone .header-actions .btn-athena-portal,
.preview-canvas-container.device-ipad .header-actions .btn-call-clinic,
.preview-canvas-container.device-ipad .header-actions .btn-athena-portal,
.preview-canvas-container.device-phone .header-actions .btn-call-clinic,
.preview-canvas-container.device-phone .header-actions .btn-athena-portal {
  display: none !important;
}

.device-ipad .mobile-hamburger-btn,
.device-phone .mobile-hamburger-btn,
.preview-canvas-container.device-ipad .mobile-hamburger-btn,
.preview-canvas-container.device-phone .mobile-hamburger-btn {
  display: flex !important;
  margin-left: auto !important;
}

/* ==========================================================================
   Responsive Hero Shrinking (iPad, Phone, and Compact Viewports)
   ========================================================================== */

/* iPad & Tablet Viewports */
@media (max-width: 1024px) {
  .theme-warm .hero-watermark,
  .hero-watermark {
    min-height: 380px !important;
    margin-top: 0 !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .hero-watermark-panel {
    max-width: 520px !important;
    background: rgba(254, 252, 249, 0.94) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 22px 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }
  .hero-watermark-panel .warm-headline {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    margin-bottom: 10px !important;
  }
  .hero-watermark-panel .warm-subhead {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }
  .hero-watermark-panel .warm-cta-group {
    margin-bottom: 0 !important;
    gap: 10px !important;
  }
  .hero-watermark-panel .warm-cta-group a {
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
  }
  .hero-frontpage-face-locked {
    background-position: right top !important;
    min-height: 380px !important;
  }
}

.device-ipad .theme-warm .hero-watermark,
.device-ipad .hero-watermark,
.preview-canvas-container.device-ipad .theme-warm .hero-watermark,
.preview-canvas-container.device-ipad .hero-watermark {
  min-height: 380px !important;
  margin-top: 0 !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

.device-ipad .theme-warm .hero-watermark::before,
.device-ipad .hero-watermark::before,
.preview-canvas-container.device-ipad .theme-warm .hero-watermark::before,
.preview-canvas-container.device-ipad .hero-watermark::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(254, 252, 249, 0.88) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.device-ipad .theme-warm .hero-watermark > .container,
.device-ipad .hero-watermark > .container,
.preview-canvas-container.device-ipad .theme-warm .hero-watermark > .container,
.preview-canvas-container.device-ipad .hero-watermark > .container {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.device-ipad .hero-watermark-panel,
.preview-canvas-container.device-ipad .hero-watermark-panel {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 16px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.device-ipad .hero-watermark-panel .warm-pill,
.preview-canvas-container.device-ipad .hero-watermark-panel .warm-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
}

.device-ipad .hero-watermark-panel .warm-headline,
.preview-canvas-container.device-ipad .hero-watermark-panel .warm-headline {
  font-size: 1.95rem !important;
  line-height: 1.22 !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

.device-ipad .hero-watermark-panel .warm-subhead,
.preview-canvas-container.device-ipad .hero-watermark-panel .warm-subhead {
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
  max-width: 540px !important;
}

.device-ipad .hero-watermark-panel .warm-cta-group,
.preview-canvas-container.device-ipad .hero-watermark-panel .warm-cta-group {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.device-ipad .hero-watermark-panel .warm-cta-group a,
.preview-canvas-container.device-ipad .hero-watermark-panel .warm-cta-group a {
  width: auto !important;
  min-width: 150px !important;
  padding: 11px 20px !important;
  font-size: 0.92rem !important;
  justify-content: center !important;
  text-align: center !important;
}

.device-ipad .hero-watermark-badges,
.preview-canvas-container.device-ipad .hero-watermark-badges {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px auto 0 auto !important;
}

.device-ipad .hero-frontpage-face-locked,
.preview-canvas-container.device-ipad .hero-frontpage-face-locked {
  background-position: center top !important;
  min-height: 380px !important;
}

/* Phone & Compact Viewports */
@media (max-width: 640px) {
  .theme-warm .hero-watermark,
  .hero-watermark {
    position: relative !important;
    background-position: center top !important;
    min-height: auto !important;
    margin-top: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .theme-warm .hero-watermark::before,
  .hero-watermark::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(254, 252, 249, 0.88) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  .theme-warm .hero-watermark > .container,
  .hero-watermark > .container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .hero-watermark-panel {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 14px 4px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
  .hero-watermark-panel > div:first-child {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-watermark-panel .warm-pill {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    margin: 0 auto 12px auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-watermark-panel .warm-headline {
    font-size: 1.55rem !important;
    line-height: 1.24 !important;
    margin: 0 auto 12px auto !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  .hero-watermark-panel .warm-subhead {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin: 0 auto 16px auto !important;
    text-align: center !important;
    max-width: 480px !important;
  }
  .hero-watermark-panel .warm-cta-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .hero-watermark-panel .warm-cta-group a {
    width: auto !important;
    min-width: 135px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
  }
  .hero-watermark-badges {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 12px auto 0 auto !important;
  }
  .hero-frontpage-face-locked {
    background-position: center top !important;
    min-height: auto !important;
  }
}

.device-phone .theme-warm .hero-watermark,
.device-phone .hero-watermark,
.preview-canvas-container.device-phone .theme-warm .hero-watermark,
.preview-canvas-container.device-phone .hero-watermark {
  position: relative !important;
  background-position: center top !important;
  min-height: auto !important;
  margin-top: 0 !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.device-phone .theme-warm .hero-watermark::before,
.device-phone .hero-watermark::before,
.preview-canvas-container.device-phone .theme-warm .hero-watermark::before,
.preview-canvas-container.device-phone .hero-watermark::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(254, 252, 249, 0.88) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.device-phone .theme-warm .hero-watermark > .container,
.device-phone .hero-watermark > .container,
.preview-canvas-container.device-phone .theme-warm .hero-watermark > .container,
.preview-canvas-container.device-phone .hero-watermark > .container {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.device-phone .hero-watermark-panel,
.preview-canvas-container.device-phone .hero-watermark-panel {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 14px 4px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.device-phone .hero-watermark-panel > div:first-child,
.preview-canvas-container.device-phone .hero-watermark-panel > div:first-child {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.device-phone .hero-watermark-panel .warm-pill,
.preview-canvas-container.device-phone .hero-watermark-panel .warm-pill {
  font-size: 0.8rem !important;
  padding: 6px 14px !important;
  margin: 0 auto 12px auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.device-phone .hero-watermark-panel .warm-headline,
.preview-canvas-container.device-phone .hero-watermark-panel .warm-headline {
  font-size: 1.55rem !important;
  line-height: 1.24 !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

.device-phone .hero-watermark-panel .warm-subhead,
.preview-canvas-container.device-phone .hero-watermark-panel .warm-subhead {
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
  max-width: 480px !important;
}

.device-phone .hero-watermark-panel .warm-cta-group,
.preview-canvas-container.device-phone .hero-watermark-panel .warm-cta-group {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.device-phone .hero-watermark-panel .warm-cta-group a,
.preview-canvas-container.device-phone .hero-watermark-panel .warm-cta-group a {
  width: auto !important;
  min-width: 135px !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
}

.device-phone .hero-watermark-badges,
.preview-canvas-container.device-phone .hero-watermark-badges {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 12px auto 0 auto !important;
}

.device-phone .hero-frontpage-face-locked,
.preview-canvas-container.device-phone .hero-frontpage-face-locked {
  background-position: center top !important;
  min-height: auto !important;
}

.device-phone .clinic-logo-img,
.preview-canvas-container.device-phone .clinic-logo-img {
  max-height: 52px;
}

.device-ipad .clinic-logo-img,
.preview-canvas-container.device-ipad .clinic-logo-img {
  max-height: 64px;
}

.device-phone .clinic-main-header.scrolled,
.preview-canvas-container.device-phone .clinic-main-header.scrolled {
  padding: 6px 0 !important;
}

.device-phone .clinic-main-header.scrolled .clinic-logo-img,
.preview-canvas-container.device-phone .clinic-main-header.scrolled .clinic-logo-img {
  max-height: 38px !important;
}

.device-ipad .clinic-main-header.scrolled,
.preview-canvas-container.device-ipad .clinic-main-header.scrolled {
  padding: 7px 0 !important;
}

.device-ipad .clinic-main-header.scrolled .clinic-logo-img,
.preview-canvas-container.device-ipad .clinic-main-header.scrolled .clinic-logo-img {
  max-height: 42px !important;
}

.device-phone .header-inner,
.preview-canvas-container.device-phone .header-inner,
.device-ipad .header-inner,
.preview-canvas-container.device-ipad .header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.device-phone .clinic-logo-link,
.preview-canvas-container.device-phone .clinic-logo-link,
.device-ipad .clinic-logo-link,
.preview-canvas-container.device-ipad .clinic-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.device-phone .header-actions,
.preview-canvas-container.device-phone .header-actions,
.device-ipad .header-actions,
.preview-canvas-container.device-ipad .header-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
}

.device-phone .mobile-hamburger-btn,
.preview-canvas-container.device-phone .mobile-hamburger-btn,
.device-ipad .mobile-hamburger-btn,
.preview-canvas-container.device-ipad .mobile-hamburger-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
}

.device-phone .clinic-utility-bar,
.preview-canvas-container.device-phone .clinic-utility-bar {
  padding: 6px 0 !important;
  font-size: 0.78rem !important;
}

.device-phone .utility-bar-inner,
.preview-canvas-container.device-phone .utility-bar-inner {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 3px !important;
}

.device-phone .utility-left,
.device-phone .utility-right,
.preview-canvas-container.device-phone .utility-left,
.preview-canvas-container.device-phone .utility-right {
  justify-content: center !important;
  text-align: center !important;
  font-size: 0.78rem !important;
}

/* Review Section Page Navigation Link */
.review-page-jump-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.btn-review-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-darker);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.1s ease;
}

.btn-review-page-link:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  transform: translateX(2px);
}

.review-current-page-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-darker);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-feedback-textarea:disabled,
.page-feedback-textarea.textarea-disabled {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

/* Responsive Grid & Strict Boundary Containment */
.preview-canvas-container,
.preview-wrapper {
  overflow: visible !important;
  box-sizing: border-box !important;
}

.responsive-card-grid,
.insurance-guidance-grid,
div[style*="display: grid"],
div[style*="display:grid"] {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.responsive-card-grid > *,
.insurance-guidance-grid > *,
div[style*="display: grid"] > *,
div[style*="display:grid"] > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Device Viewport Simulation Constraints */
.device-phone .container,
.preview-canvas-container.device-phone .container {
  padding-left: 16px !important;
  padding-right: 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.device-phone .responsive-card-grid,
.device-phone .insurance-guidance-grid,
.device-phone div[style*="display: grid"],
.device-phone div[style*="display:grid"],
.preview-canvas-container.device-phone .responsive-card-grid,
.preview-canvas-container.device-phone .insurance-guidance-grid,
.preview-canvas-container.device-phone div[style*="display: grid"],
.preview-canvas-container.device-phone div[style*="display:grid"] {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

.content-card-padded {
  padding: 40px !important;
  box-sizing: border-box !important;
}

.values-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .values-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .values-pillars-grid {
    grid-template-columns: 1fr !important;
  }
}

.device-ipad .values-pillars-grid,
.preview-canvas-container.device-ipad .values-pillars-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.device-phone .values-pillars-grid,
.preview-canvas-container.device-phone .values-pillars-grid {
  grid-template-columns: 1fr !important;
}

.device-phone .content-card-padded,
.preview-canvas-container.device-phone .content-card-padded,
.device-phone div[style*="padding: 36px"],
.device-phone div[style*="padding:36px"],
.device-phone div[style*="padding: 40px"],
.device-phone div[style*="padding:40px"],
.preview-canvas-container.device-phone div[style*="padding: 36px"],
.preview-canvas-container.device-phone div[style*="padding:36px"],
.preview-canvas-container.device-phone div[style*="padding: 40px"],
.preview-canvas-container.device-phone div[style*="padding:40px"] {
  padding: 20px 16px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .responsive-card-grid,
  .insurance-guidance-grid,
  div[style*="display: grid"],
  div[style*="display:grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .content-card-padded,
  div[style*="padding: 36px"],
  div[style*="padding:36px"],
  div[style*="padding: 40px"],
  div[style*="padding:40px"] {
    padding: 20px 16px !important;
  }
}

/* Review Summary & Confirmation Modal */
.review-summary-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.review-summary-modal-overlay.open {
  display: flex !important;
  animation: fadeInReviewModal 0.2s ease-out;
}

.review-summary-modal {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  animation: scaleUpReviewModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.summary-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.summary-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  font-family: 'Fraunces', Georgia, serif;
}

.summary-modal-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
}

.btn-summary-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.btn-summary-modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.summary-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-overall-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.summary-overall-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-overall-progress {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2d5a43;
  background: #e8f3ed;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #bce1ce;
}

.summary-pages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-page-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.summary-page-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.summary-page-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.summary-status-badge.badge-approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.summary-status-badge.badge-rated {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.summary-status-badge.badge-pending {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.summary-page-notes {
  background: #f8fafc;
  border-left: 3px solid #64748b;
  padding: 8px 12px;
  font-size: 0.86rem;
  color: #334155;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-line;
}

.summary-page-notes.notes-approved {
  border-left-color: #22c55e;
  color: #166534;
  background: #f0fdf4;
}

.summary-page-notes.notes-empty {
  font-style: italic;
  color: #94a3b8;
  background: #f8fafc;
  border-left-color: #cbd5e1;
}

.summary-general-notes {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  background: #ffffff;
}

.summary-warning-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.btn-summary-modal-edit {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-summary-modal-edit:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-summary-modal-save {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  background: #2d5a43;
  border: 1px solid #1e3d2d;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-summary-modal-save:hover {
  background: #234634;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInReviewModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpReviewModal {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}




/* ==========================================================================
   Logo Switcher & Custom Concept Uploader (Stage 2 Review)
   ========================================================================== */

.logo-quick-switcher-wrap {
  position: relative;
  display: inline-block;
}

.btn-logo-toggle {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-light, #e5e0d8);
  color: var(--text-dark, #232724);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-logo-toggle:hover {
  background: var(--linen-soft, #f7f4ef);
  border-color: var(--sage-main, #446b52);
  color: var(--sage-dark, #2b4534);
}

.logo-quick-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light, #e5e0d8);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  width: 300px;
  padding: 8px 0;
  z-index: 1000;
  animation: fadeInReviewModal 0.15s ease;
}

.logo-quick-menu-header {
  padding: 6px 14px 8px;
  border-bottom: 1px solid var(--border-light, #e5e0d8);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.logo-quick-menu-header strong {
  font-size: 0.82rem;
  color: var(--text-dark, #232724);
}

.logo-quick-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.logo-quick-item:hover {
  background: var(--linen-soft, #f7f4ef);
}

.logo-quick-item.active {
  background: #f0f7f2;
}

.logo-quick-bullet {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-medium, #d5cebf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #2d6639;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.logo-quick-item.active .logo-quick-bullet {
  border-color: #2d6639;
  background: #2d6639;
  color: #ffffff;
}

.logo-quick-text strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dark, #232724);
  line-height: 1.25;
}

.logo-quick-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-muted, #64748b);
  line-height: 1.3;
  margin-top: 2px;
}

.logo-quick-divider {
  height: 1px;
  background: var(--border-light, #e5e0d8);
  margin: 6px 0;
}

.btn-open-full-logo-drawer {
  color: var(--sage-dark, #2b4534);
  font-weight: 500;
}

.btn-open-full-logo-drawer svg {
  color: var(--sage-dark, #2b4534);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Slide-Over Review Panel Logo Switcher Section */
.logo-switcher-section {
  background: #ffffff;
  border: 1px solid var(--border-light, #e5e0d8);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.logo-switcher-header {
  margin-bottom: 12px;
}

.logo-switcher-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.logo-section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #eef7ee;
  color: #2d6639;
  padding: 2px 8px;
  border-radius: 4px;
}

.logo-active-tag {
  font-size: 0.75rem;
  color: var(--sage-dark, #2b4534);
  font-weight: 600;
  background: var(--linen-soft, #f7f4ef);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light, #e5e0d8);
}

.logo-switcher-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark, #232724);
  margin: 4px 0 2px;
}

.logo-switcher-sub {
  font-size: 0.8rem;
  color: var(--slate-muted, #64748b);
  line-height: 1.35;
  margin: 0;
}

.logo-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.logo-option-card {
  border: 1.5px solid var(--border-light, #e5e0d8);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafaf8;
  position: relative;
}

.logo-option-card:hover {
  border-color: var(--sage-main, #446b52);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.logo-option-card.is-active {
  border-color: #2d6639;
  background: #f4fbf5;
  box-shadow: 0 0 0 2px rgba(45, 102, 57, 0.15);
}

.logo-option-thumb-wrap {
  width: 90px;
  height: 52px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e5e0d8);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-option-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-option-info {
  flex-grow: 1;
  min-width: 0;
}

.logo-option-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.logo-option-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark, #232724);
}

.logo-option-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.pill-boost {
  background: #e6f4ea;
  color: #137333;
}

.pill-original {
  background: #f1f3f4;
  color: #5f6368;
}

.pill-horizontal {
  background: #e8f0fe;
  color: #1a73e8;
}

.pill-custom {
  background: #fef7e0;
  color: #b06000;
}

.logo-option-desc {
  font-size: 0.74rem;
  color: var(--slate-muted, #64748b);
  line-height: 1.3;
  margin: 0 0 4px;
}

.logo-option-stats {
  font-size: 0.7rem;
  color: var(--text-muted, #7c766e);
  font-family: monospace;
}

.logo-option-select-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-medium, #d5cebf);
  background: #ffffff;
  color: var(--text-dark, #232724);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.logo-option-card.is-active .logo-option-select-btn {
  background: #2d6639;
  border-color: #2d6639;
  color: #ffffff;
}

/* Custom Concept Upload Dropzone */
.logo-upload-dropzone {
  margin-top: 14px;
  border: 2px dashed #b8d4c0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #fbfdfb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logo-upload-dropzone:hover,
.logo-upload-dropzone.dragover {
  border-color: #2d6639;
  background: #f2f9f4;
}

.logo-upload-icon {
  width: 28px;
  height: 28px;
  color: #2d6639;
  margin-bottom: 4px;
}

.logo-upload-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark, #232724);
  margin-bottom: 2px;
}

.logo-upload-hint {
  font-size: 0.72rem;
  color: var(--slate-muted, #64748b);
  margin-bottom: 6px;
}

.btn-upload-browse {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d6639;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.custom-logo-active-box {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #eef7ee;
  border: 1px solid #c2e2c8;
  border-radius: 6px;
}

.custom-logo-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #2d6639;
  font-weight: 600;
}

.btn-remove-custom-logo {
  font-size: 0.72rem;
  color: #c5221f;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

/* Sticky Header Tester Row */
.logo-sticky-tester-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light, #e5e0d8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo-sticky-tester-text {
  font-size: 0.75rem;
  color: var(--slate-muted, #64748b);
}

.btn-test-sticky-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-medium, #d5cebf);
  background: #ffffff;
  color: var(--text-dark, #232724);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-test-sticky-toggle:hover {
  background: var(--linen-soft, #f7f4ef);
  border-color: var(--sage-main, #446b52);
  color: var(--sage-dark, #2b4534);
}

.btn-delete-concept {
  font-size: 0.68rem;
  color: #c5221f;
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-delete-concept:hover {
  color: #900;
}

.btn-submit-shared-logo:hover {
  background: var(--sage-dark, #2b4534) !important;
}

.shared-logo-upload-form {
  background: var(--linen-soft, #f7f4ef);
  border: 1px solid var(--border-light, #e5e0d8);
  border-radius: 8px;
  padding: 12px;
}

.btn-approve-option {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #c2e2c8;
  background: #eef7ee;
  color: #2d6639;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-approve-option:hover {
  background: #2d6639;
  color: #ffffff;
  border-color: #2d6639;
}

.btn-approve-option.is-approved {
  background: #2d6639;
  color: #ffffff;
  border-color: #2d6639;
  font-weight: 700;
}

.logo-option-card.is-approved-card {
  border-color: #2d6639;
  background: #f2f8f3;
  box-shadow: 0 0 0 1.5px #2d6639;
}

.btn-edit-concept {
  font-size: 0.68rem;
  color: var(--sage-dark, #2b4534);
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-edit-concept:hover {
  color: #137333;
}

/* ==========================================================================
   Stage 1 & 2 Task Summary & Reopened Brand Identity Styles
   ========================================================================== */

.badge-reopened {
  background: #78350f !important;
  color: #fde68a !important;
  border: 1px solid #d97706 !important;
}

.stage-section.stage-reopened {
  border-left: 3px solid #f59e0b;
}

.step-item.step-reopened .step-num {
  background: #d97706;
  color: #ffffff;
  border-color: #b45309;
}

.step-item.step-reopened .step-label {
  color: #92400e;
  font-weight: 700;
}

.brand-reopened-banner {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  align-items: flex-start;
}

.brand-reopened-icon {
  font-size: 2rem;
  line-height: 1;
  background: #fde68a;
  padding: 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-reopened-content {
  flex: 1;
}

.brand-reopened-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.brand-reopened-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #78350f;
}

.badge-reopened-alert {
  font-size: 0.68rem;
  font-weight: 800;
  background: #dc2626;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.brand-reopened-text {
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.brand-reopened-actions {
  display: flex;
  gap: 10px;
}

.btn-reopened-drawer {
  background: #b45309;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}

.btn-reopened-drawer:hover {
  background: #92400e;
}

.stage-summary-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}

.stage-group-box {
  background: #fdfdfc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.stage-group-box.stage-group-1 {
  border-left: 4px solid #f59e0b;
}

.stage-group-box.stage-group-2 {
  border-left: 4px solid #2d6639;
}

.stage-group-box.stage-group-3 {
  border-left: 4px solid #3b82f6;
}

.stage-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-group-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stage-group-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.stage-group-sub {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.stage-group-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-stage1-reopened {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-stage2-reviewed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-stage2-in-review {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-stage3-ready {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-status-in-review {
  background: #fffbeb;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   Milestone Rows with Top-Right Pinned Status Tags
   ========================================================================== */

.milestone-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.milestone-row.is-reopened-row {
  background: #fffbeb;
  border-radius: 8px;
  padding: 12px 14px !important;
  border: 1px solid #fde68a;
  margin: 6px 0;
}

.milestone-left {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.milestone-status-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.milestone-tag-wrap {
  flex-shrink: 0;
  align-self: flex-start;
  text-align: right;
  margin-top: 2px;
}

.reopened-warning-dot {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

.m-title {
  display: block;
  font-size: 0.96rem;
  color: #0f172a;
  line-height: 1.35;
}

.m-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.45;
}

.task-status-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.task-status-pill.pill-reopened {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.task-status-pill.pill-complete {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.task-status-pill.pill-pending {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.milestone-action-row {
  margin-top: 6px;
}

.btn-task-action {
  font-size: 0.76rem;
  font-weight: 700;
  color: #b45309 !important;
  text-decoration: underline;
}

.btn-task-action:hover {
  color: #78350f !important;
}

.btn-task-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #2d6639;
  text-decoration: underline;
}

.btn-task-link:hover {
  color: #1b4324;
}

.btn-banner-action,
a.btn-banner-action,
a.btn-banner-action:link,
a.btn-banner-action:visited,
a.btn-banner-action:hover,
a.btn-banner-action:active,
button.btn-banner-action,
.btn-banner-action span,
.btn-banner-action * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  line-height: 1.4;
  color: #ffffff !important;
}

.btn-banner-action {
  padding: 6px 14px;
}

.btn-banner-action-blue,
a.btn-banner-action-blue,
a.btn-banner-action-blue:link,
a.btn-banner-action-blue:visited,
button.btn-banner-action-blue,
.btn-banner-action-blue span,
.btn-banner-action-blue * {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.35);
}

.btn-banner-action-blue:hover,
a.btn-banner-action-blue:hover,
button.btn-banner-action-blue:hover,
.btn-banner-action-blue:hover span {
  background: #0369a1 !important;
  color: #ffffff !important;
}

.btn-banner-action-green,
a.btn-banner-action-green,
a.btn-banner-action-green:link,
a.btn-banner-action-green:visited,
button.btn-banner-action-green,
.btn-banner-action-green span,
.btn-banner-action-green * {
  background: #2d6639 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(45, 102, 57, 0.35);
}

.btn-banner-action-green:hover,
a.btn-banner-action-green:hover,
button.btn-banner-action-green:hover,
.btn-banner-action-green:hover span {
  background: #224f2b !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Sign-Off Form Checkboxes Tied to State Status with Top-Right Tags
   ========================================================================== */

.form-checkbox-subheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin: 12px 0 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e2e8f0;
}

.subheading-status-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  text-transform: none;
  letter-spacing: normal;
}

.custom-checkbox {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.custom-checkbox.is-unapproved {
  background: #fafaf9;
  border-color: #f1f0ee;
}

.custom-checkbox:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.custom-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #2d6639;
  cursor: pointer;
}

.checkbox-label-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.checkbox-label-left {
  flex: 1;
  font-size: 0.84rem;
  color: #1e293b;
  line-height: 1.35;
}

.checkbox-desc-note {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 2px;
}

/* ==========================================================================
   Stage 4: MSP IT Operations & Extended Runbooks Styles
   ========================================================================== */

.runbook-nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.runbook-tab-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.runbook-tab-btn:hover,
.runbook-tab-btn.is-active {
  background: #2d6639;
  color: #ffffff !important;
  border-color: #2d6639;
}

.section-title-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.runbook-section-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.section-lead-text {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 18px 0;
  line-height: 1.5;
}

/* Phone Compare Grid */
.phone-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.phone-option-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.phone-option-card.highlight-carrier {
  border-color: #2d6639;
  box-shadow: 0 4px 14px rgba(45, 102, 57, 0.12);
}

.phone-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.provider-type-tag {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.phone-hipaa-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #166534;
  margin-bottom: 14px;
}

.phone-hipaa-box p {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #14532d;
  line-height: 1.4;
}

.phone-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.phone-list li {
  font-size: 0.82rem;
  padding: 4px 0;
  line-height: 1.4;
}

.pros-list li {
  color: #15803d;
}

.cons-list li {
  color: #b45309;
}

.phone-hardware-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #334155;
}

.phone-hardware-box p {
  margin: 4px 0 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.phone-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.phone-step-item {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.step-num-badge {
  background: #2d6639;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-body strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.step-body p {
  margin: 3px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

/* Google Voice Porting */
.gv-port-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.gv-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gv-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.gv-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.gv-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 7px;
  border-radius: 4px;
}

.gv-step-header h4 {
  margin: 0;
  font-size: 0.96rem;
  color: #0f172a;
}

.gv-step-action {
  font-size: 0.86rem;
  color: #334155;
  margin: 4px 0 10px 0;
  line-height: 1.45;
}

.gv-step-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #92400e;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Level.io & RMM */
.code-terminal-box {
  background: #0f172a;
  color: #38bdf8;
  padding: 12px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  word-break: break-all;
  border: 1px solid #334155;
}

.tag-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.rmm-tag-chip {
  font-size: 0.7rem;
  font-family: monospace;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
}

.rmm-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.rmm-feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rmm-feature-box h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.rmm-feature-box p {
  margin: 0 0 6px 0;
  font-size: 0.8rem;
  color: #64748b;
}

.clean-bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.clean-bullet-list li {
  font-size: 0.8rem;
  color: #334155;
  padding: 4px 0;
  line-height: 1.4;
}

/* Document Center */
.doc-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.doc-type-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.doc-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.doc-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.badge-critical-baa {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-draft {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-recommended {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-alternative {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-addon {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-bid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-staged {
  background: #ede9fe;
  color: #4338ca;
  border: 1px solid #ddd6fe;
}

.badge-proposal {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-sla {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-scheduled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.doc-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.45;
}

.doc-meta-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #475569;
  margin-bottom: 12px;
}

.doc-clauses-box {
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.doc-clauses-box strong {
  color: #334155;
  display: block;
  margin-bottom: 4px;
}

.doc-clauses-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-clauses-box li {
  color: #64748b;
  padding: 2px 0;
  line-height: 1.35;
}

.doc-actions-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-doc-action {
  background: #2d6639;
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-doc-action:hover {
  background: #1e4526;
}

.btn-doc-secondary {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-doc-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.doc-upload-placeholder-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dup-icon {
  font-size: 1.8rem;
}

.dup-content {
  flex: 1;
}

.dup-content strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.dup-content p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* MSP Recommendations Grid */
.msp-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.msp-rec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.msp-rec-card.priority-critical {
  border-left: 4px solid #dc2626;
}

.msp-rec-card.priority-high {
  border-left: 4px solid #f59e0b;
}

.msp-rec-card.priority-medium {
  border-left: 4px solid #3b82f6;
}

.msp-rec-card.priority-standard {
  border-left: 4px solid #10b981;
}

.msp-rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rec-cat {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rec-priority-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.rec-priority-pill.priority-critical {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.rec-priority-pill.priority-high {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.rec-priority-pill.priority-medium {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.rec-priority-pill.priority-standard {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.rec-title {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.rec-body {
  font-size: 0.82rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}




/* ==========================================================================
   MSP & IT Reference Library & Bookshelf Styles
   ========================================================================== */

.sidebar-book-subitem {
  margin-left: 14px;
}

.sidebar-book-subitem .sidebar-link {
  font-size: 0.76rem;
  padding: 5px 8px;
  gap: 8px;
}

.book-spine-badge {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: monospace;
  background: #e2e8f0;
  color: #334155;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.sidebar-book-subitem .sidebar-link.active .book-spine-badge {
  background: #2d6639;
  color: #ffffff;
}

/* Library Shelf Banner & Grid */
.library-shelf-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.library-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.shelf-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
}

.shelf-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.shelf-subtitle {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
  max-width: 680px;
  line-height: 1.45;
}

.library-shelf-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-shelf-filter {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-shelf-filter:hover,
.btn-shelf-filter.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.search-library-box input {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  width: 240px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-library-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Bookshelf Grid */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.book-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8;
}

.book-card.is-selected {
  border-color: #2d6639;
  box-shadow: 0 0 0 2px rgba(45, 102, 57, 0.2);
}

.book-spine-strip {
  width: 8px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  flex-shrink: 0;
}

.book-card:nth-child(2) .book-spine-strip { background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%); }
.book-card:nth-child(3) .book-spine-strip { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.book-card:nth-child(4) .book-spine-strip { background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%); }
.book-card:nth-child(5) .book-spine-strip { background: linear-gradient(180deg, #10b981 0%, #047857 100%); }
.book-card:nth-child(6) .book-spine-strip { background: linear-gradient(180deg, #f43f5e 0%, #be123c 100%); }

.book-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.book-volume-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.book-read-time {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.book-icon-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.book-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.book-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.book-summary {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.4;
  flex: 1;
}

.book-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.book-category-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
}

.book-open-link {
  font-size: 0.76rem;
  font-weight: 800;
  color: #2563eb;
  transition: transform 0.15s ease;
}

.book-card:hover .book-open-link {
  transform: translateX(3px);
  color: #1d4ed8;
}

/* Individual Book Volume Frame Container */
.runbook-volume-book {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: all 0.2s ease;
}

.runbook-volume-book.is-focused-book {
  border-color: #2d6639;
  box-shadow: 0 6px 24px rgba(45, 102, 57, 0.12);
}

.runbook-volume-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 20px 24px;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.book-header-left {
  flex: 1;
  min-width: 280px;
}

.book-volume-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.book-volume-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.book-category-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #93c5fd;
}

.book-volume-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.book-volume-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.book-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-book-tool {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-book-tool:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.runbook-book-body {
  padding: 24px;
}

.book-toc-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.toc-label {
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toc-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.toc-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Single Runbook Page Navigation & Breadcrumb Styles
   ========================================================================== */

.runbook-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
}

.runbook-page-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.runbook-page-breadcrumb a:hover {
  text-decoration: underline;
}

.runbook-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 50px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-runbook-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease;
}

.btn-runbook-nav:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-runbook-nav-primary {
  background: #2d6639;
  color: #ffffff;
  border-color: #2d6639;
}

.btn-runbook-nav-primary:hover {
  background: #1f4727;
  color: #ffffff;
}

/* ==========================================================================
   WORKSPACE & CONTAINER SPACING: STAGE 3 APPROVALS, RUNBOOKS, QUOTES & AGREEMENTS
   ========================================================================== */

.migration-workspace,
.gallery-wrapper {
  flex: 1;
  width: 100%;
  padding: 36px 48px 60px 48px;
  box-sizing: border-box;
  background: #f8fafc;
  min-height: 100vh;
}

.migration-container,
.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.app-content-viewport .gallery-wrapper,
.app-content-viewport .migration-workspace {
  padding: 0;
  min-height: auto;
  background: transparent;
}

@media (max-width: 1200px) {
  .migration-workspace,
  .gallery-wrapper {
    padding: 28px 32px 48px 32px;
  }
}

@media (max-width: 768px) {
  .migration-workspace,
  .gallery-wrapper {
    padding: 20px 20px 36px 20px;
  }
}

/* ==========================================================================
   TABLE LINE ACTION BUTTONS (AGREEMENTS & QUOTES)
   ========================================================================== */
.btn-line-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  line-height: 1.3;
}

.btn-line-view {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.btn-line-view:hover {
  background: #dcfce7;
  border-color: #4ade80;
  color: #14532d;
}

.btn-line-edit {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.btn-line-edit:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
}

.btn-line-delete {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.btn-line-delete:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #9f1239;
}

/* ========================================================================= */
/* OUR STAFF: BOTANICAL FLORAL VINE ESSAY STORY CARDS                       */
/* ========================================================================= */

.staff-quick-nav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #fdfbf7;
  border: 1px solid #e5ece6;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(78, 101, 83, 0.05);
  margin-bottom: 36px;
}

.staff-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3b5344;
  background: #ffffff;
  border: 1px solid #d5ded7;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.staff-quick-pill:hover {
  background: #4e6553;
  color: #ffffff;
  border-color: #4e6553;
  transform: translateY(-1px);
}

.floral-vine-bio-card {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(219, 230, 223, 0.55);
  border-radius: 24px;
  padding: 38px 36px 42px;
  margin-bottom: 52px;
  box-shadow: 0 10px 34px rgba(78, 101, 83, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  overflow: visible;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.floral-vine-bio-card:hover {
  box-shadow: 0 16px 44px rgba(78, 101, 83, 0.12), 0 0 0 1px rgba(255, 255, 255, 1) inset;
  border-color: rgba(188, 208, 195, 0.9);
}

/* Elegant Botanical Frame Corners (Logo Daisy & Surrounding Perimeter Vines) */
.floral-frame-corner {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.floral-frame-tl {
  top: -16px;
  left: -16px;
  width: 220px;
  height: 220px;
}

.floral-frame-br {
  bottom: -16px;
  right: -16px;
  width: 220px;
  height: 220px;
}

.frame-vine-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.frame-flower-img {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(78, 101, 83, 0.22));
  transition: transform 0.3s ease;
}

.frame-flower-tl {
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
}

.frame-flower-br {
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
}

.floral-vine-bio-card:hover .frame-flower-img {
  transform: scale(1.12) rotate(4deg);
}

.bio-photo-cluster {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.bio-prominent-photo-wrap {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #eef4f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #f7faf8;
}

.bio-prominent-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.bio-prominent-photo-wrap:hover .bio-prominent-photo {
  transform: scale(1.02);
}

.bio-gallery-section {
  margin-top: 14px;
}

.bio-gallery-heading {
  font-size: 0.72rem;
  font-weight: 800;
  color: #4e6553;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.bio-gallery-thumb-btn {
  appearance: none;
  -webkit-appearance: none;
  background: #f0fdf4;
  border: 2.5px solid transparent;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: block;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bio-gallery-thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.bio-gallery-thumb-btn.is-active {
  border-color: #55735c;
  box-shadow: 0 0 0 2px rgba(85, 115, 92, 0.35), 0 3px 8px rgba(85, 115, 92, 0.2);
}

.bio-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: opacity 0.2s ease;
}

.bio-gallery-thumb-btn:not(.is-active):hover .bio-gallery-thumb {
  opacity: 0.92;
}

.bio-narrative-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.bio-header-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bio-role-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #eef4f0;
  color: #3b5344;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bio-staff-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.bio-credentials-tag {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4e6553;
  margin-left: 4px;
}

.bio-essay-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bio-essay-paragraph {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #334155;
  margin: 0;
}

/* Staff Bio Cards: Image Above Paragraphs on iPad, Tablet, Mobile & Constrained Viewports */
.device-ipad .floral-vine-bio-card,
.preview-canvas-container.device-ipad .floral-vine-bio-card,
.device-phone .floral-vine-bio-card,
.preview-canvas-container.device-phone .floral-vine-bio-card {
  grid-template-columns: 1fr !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 34px 28px !important;
  gap: 26px !important;
}

.device-ipad .bio-photo-cluster,
.preview-canvas-container.device-ipad .bio-photo-cluster,
.device-phone .bio-photo-cluster,
.preview-canvas-container.device-phone .bio-photo-cluster {
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 auto !important;
  align-items: center !important;
}

.device-ipad .bio-prominent-photo-wrap,
.preview-canvas-container.device-ipad .bio-prominent-photo-wrap,
.device-phone .bio-prominent-photo-wrap,
.preview-canvas-container.device-phone .bio-prominent-photo-wrap {
  width: 100% !important;
  max-width: 380px !important;
  height: 380px !important;
  margin: 0 auto !important;
}

.device-ipad .bio-gallery-section,
.preview-canvas-container.device-ipad .bio-gallery-section,
.device-phone .bio-gallery-section,
.preview-canvas-container.device-phone .bio-gallery-section {
  width: 100% !important;
  max-width: 380px !important;
  margin: 12px auto 0 auto !important;
}

.device-ipad .bio-narrative-content,
.preview-canvas-container.device-ipad .bio-narrative-content,
.device-phone .bio-narrative-content,
.preview-canvas-container.device-phone .bio-narrative-content {
  width: 100% !important;
}

@media (max-width: 992px) {
  .floral-vine-bio-card {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 34px 28px !important;
    gap: 26px !important;
  }
  .bio-photo-cluster {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }
  .bio-prominent-photo-wrap {
    width: 100% !important;
    max-width: 380px !important;
    height: 380px !important;
    margin: 0 auto !important;
  }
  .bio-gallery-section {
    width: 100% !important;
    max-width: 380px !important;
    margin: 12px auto 0 auto !important;
  }
  .bio-narrative-content {
    width: 100% !important;
  }
  .bio-family-roots-card {
    max-width: 100%;
    margin-bottom: 24px;
  }
  .floral-frame-tl {
    transform: scale(0.8);
    transform-origin: top left;
  }
  .floral-frame-br {
    transform: scale(0.8);
    transform-origin: bottom right;
  }
}

.device-phone .floral-vine-bio-card,
.preview-canvas-container.device-phone .floral-vine-bio-card {
  padding: 24px 16px !important;
  gap: 20px !important;
}

.device-phone .bio-photo-cluster,
.preview-canvas-container.device-phone .bio-photo-cluster {
  max-width: 300px !important;
}

.device-phone .bio-prominent-photo-wrap,
.preview-canvas-container.device-phone .bio-prominent-photo-wrap {
  height: 320px !important;
  max-width: 300px !important;
}

.device-phone .bio-gallery-section,
.preview-canvas-container.device-phone .bio-gallery-section {
  max-width: 300px !important;
}

@media (max-width: 640px) {
  .floral-vine-bio-card {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 16px !important;
    gap: 20px !important;
  }
  .bio-photo-cluster {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  .bio-prominent-photo-wrap {
    width: 100% !important;
    max-width: 300px !important;
    height: 320px !important;
    margin: 0 auto !important;
  }
  .bio-gallery-section {
    width: 100% !important;
    max-width: 300px !important;
    margin: 10px auto 0 auto !important;
  }
  .bio-narrative-content {
    width: 100% !important;
  }
  .floral-frame-tl {
    transform: scale(0.65);
    transform-origin: top left;
  }
  .floral-frame-br {
    transform: scale(0.65);
    transform-origin: bottom right;
  }

}

/* ==========================================================================
   Patient Journey 2-Column Split: Intro Left, Vertical Column Right
   ========================================================================== */
.patient-journey-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
}

.patient-journey-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.patient-journey-col-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patient-journey-combined-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.journey-step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.journey-step-item:first-child {
  padding-top: 4px;
}

.journey-step-item:last-child {
  padding-bottom: 4px;
}

.journey-step-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
  width: 100%;
}

.patient-journey-card-row {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.patient-journey-card-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 110, 83, 0.12);
  border-color: var(--sage-border);
}

.journey-step-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-full);
  background: var(--sage-light);
  color: var(--sage-darker);
  border: 1.5px solid var(--sage-border);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.journey-card-body {
  flex: 1;
}

.journey-step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: var(--slate-charcoal);
  margin-bottom: 6px;
  font-weight: 700;
}

.journey-step-desc {
  font-size: 0.94rem;
  color: var(--slate-muted);
  line-height: 1.6;
  margin: 0;
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 900px) {
  .patient-journey-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.device-ipad .patient-journey-split,
.preview-canvas-container.device-ipad .patient-journey-split {
  grid-template-columns: 1fr;
  gap: 28px;
}

.device-phone .patient-journey-split,
.preview-canvas-container.device-phone .patient-journey-split {
  grid-template-columns: 1fr;
  gap: 20px;
}

.device-phone .patient-journey-card-row,
.preview-canvas-container.device-phone .patient-journey-card-row {
  padding: 16px 14px;
  gap: 14px;
}

.device-phone .patient-journey-combined-box,
.preview-canvas-container.device-phone .patient-journey-combined-box {
  padding: 20px 16px;
}

.device-phone .journey-step-item,
.preview-canvas-container.device-phone .journey-step-item {
  gap: 14px;
}

/* ==========================================================================
   Bottom Green Banner Action Buttons (Consistent Across All Pages)
   ========================================================================== */
.btn-bottom-white {
  background: #ffffff !important;
  color: var(--sage-darker) !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all var(--transition-fast) !important;
}

.btn-bottom-white:hover {
  background: var(--linen-cream) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.btn-bottom-mauve {
  background: var(--mauve-accent) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  transition: all var(--transition-fast) !important;
}

.btn-bottom-mauve:hover {
  background: var(--mauve-dark) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 70, 100, 0.35) !important;
}

/* Canonical full-bleed hero treatment with page-specific focal points. */
.theme-warm .hero-watermark,
.hero-watermark,
.hero-frontpage-face-locked {
  background-color: #fefcf9 !important;
  background-image:
    linear-gradient(90deg, rgba(254, 252, 249, 0.98) 0%, rgba(254, 252, 249, 0.90) 45%, rgba(254, 252, 249, 0.35) 70%, rgba(254, 252, 249, 0.12) 100%),
    var(--hero-image) !important;
  background-size: 100% 100%, cover !important;
  background-position: center, var(--hero-position, right center) !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Home only: ease the crop enough to retain more of the subjects' torsos. */
.hero-frontpage-face-locked {
  background-size: 100% 100%, cover !important;
  background-position: center, right center !important;
}

@media (max-width: 640px) {
  .theme-warm .hero-watermark,
  .hero-watermark,
  .hero-frontpage-face-locked {
    background-image:
      linear-gradient(rgba(254, 252, 249, 0.70), rgba(254, 252, 249, 0.70)),
      var(--hero-image) !important;
    background-size: 100% 100%, cover !important;
    background-position: center, right center !important;
  }

  .theme-warm .hero-watermark::before,
  .hero-watermark::before {
    background: rgba(254, 252, 249, 0.10) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-watermark-panel .warm-headline,
  .hero-watermark-panel .warm-subhead {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  }
}

.device-phone .theme-warm .hero-watermark,
.device-phone .hero-watermark,
.preview-canvas-container.device-phone .theme-warm .hero-watermark,
.preview-canvas-container.device-phone .hero-watermark {
  background-image:
    linear-gradient(rgba(254, 252, 249, 0.70), rgba(254, 252, 249, 0.70)),
    var(--hero-image) !important;
  background-size: 100% 100%, cover !important;
  background-position: center, right center !important;
}

.device-phone .theme-warm .hero-watermark::before,
.device-phone .hero-watermark::before,
.preview-canvas-container.device-phone .theme-warm .hero-watermark::before,
.preview-canvas-container.device-phone .hero-watermark::before {
  background: rgba(254, 252, 249, 0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Tablet/iPad: keep the photograph visible beneath a readable text surface. */
@media (min-width: 641px) and (max-width: 1024px) {
  .theme-warm .hero-watermark,
  .hero-watermark,
  .hero-frontpage-face-locked {
    background-image:
      linear-gradient(rgba(254, 252, 249, 0.58), rgba(254, 252, 249, 0.58)),
      var(--hero-image) !important;
    background-size: 100% 100%, cover !important;
    background-position: center, right center !important;
  }

  .theme-warm .hero-watermark::before,
  .hero-watermark::before {
    background: rgba(254, 252, 249, 0.05) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-watermark-panel {
    background: rgba(254, 252, 249, 0.32) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.device-ipad .theme-warm .hero-watermark,
.device-ipad .hero-watermark,
.preview-canvas-container.device-ipad .theme-warm .hero-watermark,
.preview-canvas-container.device-ipad .hero-watermark {
  background-image:
    linear-gradient(rgba(254, 252, 249, 0.58), rgba(254, 252, 249, 0.58)),
    var(--hero-image) !important;
  background-size: 100% 100%, cover !important;
  background-position: center, right center !important;
}

.device-ipad .theme-warm .hero-watermark::before,
.device-ipad .hero-watermark::before,
.preview-canvas-container.device-ipad .theme-warm .hero-watermark::before,
.preview-canvas-container.device-ipad .hero-watermark::before {
  background: rgba(254, 252, 249, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.device-ipad .hero-watermark-panel,
.preview-canvas-container.device-ipad .hero-watermark-panel {
  background: rgba(254, 252, 249, 0.32) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
