/* ============================================================
   LLP Family Portal — Styles
   Brand palette: #27292b #64221e #2d6072 #b0e0ee #eee5d5
   ============================================================ */

:root {
  --p-charcoal:   #27292b;
  --p-teal:       #2d6072;
  --p-teal-dark:  #1f4651;
  --p-teal-light: #b0e0ee;
  --p-burgundy:   #64221e;
  --p-cream:      #eee5d5;
  --p-cream-light:#f5f0e8;
  --p-cream-dark: #d9cdb8;
  --p-olive:      #767a5e;
  --p-gray:       #d1d8df;
  --p-white:      #ffffff;
  --p-success:    #1e7a5c;
  --p-success-bg: #e8f5f0;
  --p-error:      #7a2020;
  --p-error-bg:   #fdf0f0;
  --p-warning-bg: #fef8e8;
  --p-warning:    #856404;
  --p-info-bg:    #e8f4f8;
  --p-info:       var(--p-teal);

  --p-font-serif: 'Playfair Display', Georgia, serif;
  --p-font-sans:  'Inter', system-ui, sans-serif;
  --p-radius:     10px;
  --p-radius-sm:  6px;
  --p-shadow:     0 2px 12px rgba(39,41,43,0.08);
  --p-shadow-md:  0 6px 24px rgba(39,41,43,0.12);
  --p-transition: 0.2s ease;
}

/* ── Portal page body overrides ──────────────────────────────── */
body.llp-portal-page .site-header {
  position: relative; /* don't sticky on portal */
}
body.llp-portal-page .entry-content,
body.llp-portal-page .page-content,
body.llp-portal-page article > .entry-content {
  max-width: 100%;
  padding: 0;
}

/* ── Login Form ────────────────────────────────────────────────── */
.llp-login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--p-cream-light);
}

.llp-login-card {
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-md);
  padding: 2.75rem 3rem;
  width: 100%;
  max-width: 420px;
  animation: llp-fade-up 0.4s ease both;
}

.llp-login-brand {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--p-teal);
}
.llp-login-brand svg { margin: 0 auto 0.75rem; display: block; }
.llp-login-brand__title {
  font-family: var(--p-font-serif);
  font-size: 1.6rem;
  color: var(--p-charcoal);
  margin: 0 0 0.25rem;
}
.llp-login-brand__sub {
  font-size: 0.875rem;
  color: var(--p-olive);
  margin: 0;
}

.llp-login-intro {
  font-size: 0.9375rem;
  color: var(--p-olive);
  text-align: center;
  margin: 0 0 1.5rem;
}

.llp-login-account-notice {
  background: var(--p-cream);
  border: 1px solid var(--p-cream-dark);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  text-align: center;
  margin: 0 0 1.5rem;
}
.llp-login-account-email {
  font-family: var(--p-font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--p-teal);
  margin: 0 0 0.35rem;
}
.llp-login-account-hint {
  font-family: var(--p-font-sans);
  font-size: 0.8125rem;
  color: var(--p-olive);
  margin: 0;
}
.llp-login-account-hint a { color: var(--p-teal); text-decoration: underline; }

/* Style the WP login form */
.llp-login-card #loginform,
.llp-login-card .login-form {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.llp-login-card label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--p-charcoal);
  display: block;
  margin-bottom: 0.375rem;
}
.llp-login-card input[type="text"],
.llp-login-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-sans);
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  transition: border-color var(--p-transition), box-shadow var(--p-transition);
  outline: none;
  margin-bottom: 1rem;
}
.llp-login-card input[type="text"]:focus,
.llp-login-card input[type="password"]:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px rgba(45,96,114,0.12);
}
.llp-login-card #llp-login-submit,
.llp-login-card input[type="submit"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--p-teal);
  color: var(--p-white);
  border: none;
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--p-transition), transform 0.1s ease;
  margin-top: 0.5rem;
}
.llp-login-card #llp-login-submit:hover,
.llp-login-card input[type="submit"]:hover { background: var(--p-teal-dark); }
.llp-login-card #llp-login-submit:active,
.llp-login-card input[type="submit"]:active { transform: scale(0.98); }
.llp-login-card .forgetmenot { margin: 0.5rem 0; font-size: 0.875rem; }
.llp-login-card .forgetmenot label { display: inline; font-weight: 400; }

.llp-login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--p-olive);
}
.llp-login-footer a { color: var(--p-teal); text-decoration: underline; }

/* ── Portal Wrapper ─────────────────────────────────────────── */
.llp-portal {
  font-family: var(--p-font-sans);
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  min-height: 80vh;
  animation: llp-fade-up 0.35s ease both;
}

/* ── Portal Header ──────────────────────────────────────────── */
.llp-portal-header {
  background: linear-gradient(135deg, var(--p-charcoal) 0%, #2a3d47 60%, var(--p-teal) 100%);
  color: var(--p-white);
  padding: 0.75rem 0;
}
.llp-portal-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.llp-portal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--p-font-serif);
  font-size: 1rem;
  color: var(--p-teal-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.llp-portal-header__brand svg { color: var(--p-teal-light); }

.llp-portal-header__info { flex: 1; min-width: 0; }
.llp-portal-header__greeting {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 0.1rem;
}
.llp-portal-header__greeting strong { color: var(--p-white); }
.llp-portal-header__meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.llp-portal-header__dot { margin: 0 0.4rem; }

.llp-portal-header__logout {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--p-transition);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
}
.llp-portal-header__logout:hover { color: var(--p-white); border-color: rgba(255,255,255,0.35); }

/* ── Tab Nav ────────────────────────────────────────────────── */
.llp-portal-nav {
  background: var(--p-white);
  border-bottom: 1px solid var(--p-gray);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(39,41,43,0.06);
}
.llp-portal-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: stretch;
  position: relative;
  gap: 0;
}
.llp-portal-nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  font-size: 0.8375rem;
  font-weight: 500;
  color: var(--p-olive);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--p-transition), background var(--p-transition);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.llp-portal-nav__link svg { flex-shrink: 0; }
.llp-portal-nav__link:hover { color: var(--p-charcoal); background: rgba(45,96,114,0.04); }
.llp-portal-nav__link.is-active { color: var(--p-teal); border-bottom-color: var(--p-teal); }

.llp-portal-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--p-teal);
  color: var(--p-white);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* Sliding ink bar */
.llp-portal-nav__ink {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--p-teal);
  transition: left 0.25s cubic-bezier(0.4,0,0.2,1), width 0.25s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 2;
}

/* ── Portal Body ────────────────────────────────────────────── */
.llp-portal-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── Flash Messages ─────────────────────────────────────────── */
.llp-flash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--p-radius-sm);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  animation: llp-slide-down 0.3s ease both;
  position: relative;
}
.llp-flash--success { background: var(--p-success-bg); color: var(--p-success); border-left: 4px solid var(--p-success); }
.llp-flash--error   { background: var(--p-error-bg); color: var(--p-error); border-left: 4px solid var(--p-error); }
.llp-flash--warning { background: var(--p-warning-bg); color: var(--p-warning); border-left: 4px solid #f0c040; }
.llp-flash--info    { background: var(--p-info-bg); color: var(--p-info); border-left: 4px solid var(--p-info); }
.llp-flash svg { flex-shrink: 0; }
.llp-flash span { flex: 1; }
.llp-flash__close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 2px;
  line-height: 1;
  transition: opacity var(--p-transition);
}
.llp-flash__close:hover { opacity: 1; }

/* ── Tab Panels ─────────────────────────────────────────────── */
.llp-portal-tab {
  display: none;
}
.llp-portal-tab.is-active {
  display: block;
  animation: llp-fade-up 0.25s ease both;
}
.llp-portal-tab.is-leaving {
  animation: llp-fade-out 0.15s ease forwards;
}

.llp-tab-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Section ────────────────────────────────────────────────── */
.llp-section {
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--p-shadow);
}
.llp-section-title {
  font-family: var(--p-font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--p-charcoal);
  margin: 0 0 0.5rem;
}
.llp-section-desc {
  font-size: 0.9375rem;
  color: var(--p-olive);
  margin: 0 0 1.5rem;
}
.llp-section-header { margin-bottom: 1.5rem; }
.llp-section-header--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.llp-section-header--row .llp-section-title { margin: 0; }

/* ── Project Status Stepper ─────────────────────────────────── */
.llp-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 1.25rem 0 1rem;
}
.llp-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.llp-stepper__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p-cream);
  border: 2px solid var(--p-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--p-olive);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.llp-stepper__step.is-complete .llp-stepper__dot {
  background: var(--p-teal);
  border-color: var(--p-teal);
  color: var(--p-white);
}
.llp-stepper__step.is-active .llp-stepper__dot {
  background: var(--p-white);
  border-color: var(--p-teal);
  color: var(--p-teal);
  box-shadow: 0 0 0 4px rgba(45,96,114,0.12);
}
.llp-stepper__pulse {
  width: 10px;
  height: 10px;
  background: var(--p-teal);
  border-radius: 50%;
  animation: llp-pulse 1.8s ease infinite;
}
.llp-stepper__line {
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--p-cream-dark);
  z-index: 0;
}
.llp-stepper__line.is-filled { background: var(--p-teal); }
.llp-stepper__label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--p-olive);
  text-align: center;
  line-height: 1.3;
}
.llp-stepper__step.is-active .llp-stepper__label { color: var(--p-teal); font-weight: 600; }
.llp-stepper__step.is-complete .llp-stepper__label { color: var(--p-charcoal); }

.llp-next-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--p-cream-light);
  border-radius: var(--p-radius-sm);
  border-left: 3px solid var(--p-teal);
}
.llp-next-step svg { color: var(--p-teal); flex-shrink: 0; margin-top: 2px; }
.llp-next-step p { margin: 0; font-size: 0.9375rem; color: var(--p-charcoal); line-height: 1.6; }
.llp-next-step p strong { color: var(--p-teal); }

/* ── Stats Grid ─────────────────────────────────────────────── */
.llp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.llp-stat-card {
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--p-shadow);
  transition: transform var(--p-transition), box-shadow var(--p-transition);
  animation: llp-fade-up 0.4s ease both;
}
.llp-stat-card:nth-child(1) { animation-delay: 0.05s; }
.llp-stat-card:nth-child(2) { animation-delay: 0.1s;  }
.llp-stat-card:nth-child(3) { animation-delay: 0.15s; }
.llp-stat-card:hover { transform: translateY(-2px); box-shadow: var(--p-shadow-md); }
.llp-stat-card__icon { color: var(--p-teal); margin: 0 auto 0.625rem; }
.llp-stat-card__value {
  font-family: var(--p-font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--p-charcoal);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.llp-stat-card__label { font-size: 0.8125rem; color: var(--p-olive); font-weight: 500; }
.llp-stat-card__link {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--p-teal);
  text-decoration: underline;
  font-weight: 500;
  transition: color var(--p-transition);
}
.llp-stat-card__link:hover { color: var(--p-teal-dark); }

/* ── Production Card ────────────────────────────────────────── */
.llp-production-card {
  border-top: 3px solid var(--p-teal-light);
}
.llp-production-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--p-teal);
}
.llp-production-card__header h3 { margin: 0; font-size: 1.1rem; color: var(--p-charcoal); }
.llp-production-card p { font-size: 0.9375rem; color: var(--p-olive); margin-bottom: 1.25rem; }

.llp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  margin-bottom: 1rem;
  cursor: pointer;
}
.llp-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--p-teal);
  cursor: pointer;
}

.llp-production-submitted {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  background: var(--p-success-bg);
  border-radius: var(--p-radius);
  border: 1px solid rgba(30,122,92,0.2);
}
.llp-production-submitted svg { color: var(--p-success); flex-shrink: 0; margin-top: 2px; }
.llp-production-submitted strong { display: block; color: var(--p-success); font-weight: 600; }
.llp-production-submitted span { font-size: 0.875rem; color: var(--p-olive); }
.llp-production-submitted p { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--p-olive); }
.llp-production-submitted a { color: var(--p-teal); }

/* ── Section header with "See all" link ─────────────────────── */
.llp-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.llp-section-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--p-teal);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.llp-section-link:hover { color: var(--p-teal-dark); text-decoration: underline; }

/* ── Latest Stories list ─────────────────────────────────────── */
.llp-latest-stories {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.llp-latest-story {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--p-bg);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 0.875rem 1rem;
  transition: box-shadow var(--p-transition);
}
.llp-latest-story:hover { box-shadow: var(--p-shadow-sm); }
.llp-latest-story__icon {
  flex-shrink: 0;
  color: var(--p-teal);
  opacity: 0.7;
}
.llp-latest-story__body { flex: 1; min-width: 0; }
.llp-latest-story__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--p-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.llp-latest-story__meta {
  font-size: 0.8rem;
  color: var(--p-olive);
  margin-top: 0.2rem;
}
.llp-dot { margin: 0 0.3rem; opacity: 0.5; }
.llp-latest-story__listen {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-teal);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--p-transition);
}
.llp-latest-story__listen:hover { background: var(--p-teal-dark); }

/* ── Video Memorial section ──────────────────────────────────── */
.llp-video-memorial-section .llp-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.llp-video-memorial-section .llp-section-title svg {
  color: var(--p-teal);
  opacity: 0.8;
}

/* ── Forms ──────────────────────────────────────────────────── */
.llp-form { }
.llp-field { margin-bottom: 1rem; }
.llp-field--inline { display: flex; gap: 0.625rem; align-items: center; }
.llp-field--inline .llp-input { flex: 1; }

.llp-field--image {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.llp-image-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1.5px dashed var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  background: var(--p-cream-light);
  color: var(--p-olive);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  width: fit-content;
}
.llp-image-upload-label:hover {
  border-color: var(--p-teal);
  background: #e8f4f8;
  color: var(--p-teal);
}
.llp-image-upload-label svg { flex-shrink: 0; }
.llp-optional { font-weight: 400; opacity: 0.7; }
.llp-image-upload-input { display: none; }
.llp-image-filename {
  font-size: 0.8125rem;
  color: var(--p-olive);
  font-style: italic;
}

.llp-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-sans);
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  transition: border-color var(--p-transition), box-shadow var(--p-transition);
  outline: none;
}
.llp-input:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px rgba(45,96,114,0.12);
}

.llp-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-sans);
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  background: var(--p-cream-light);
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  transition: border-color var(--p-transition), box-shadow var(--p-transition);
  outline: none;
}
.llp-textarea:focus {
  border-color: var(--p-teal);
  box-shadow: 0 0 0 3px rgba(45,96,114,0.12);
}
.llp-char-counter {
  font-size: 0.8rem;
  color: var(--p-olive);
  text-align: right;
  margin-top: 0.375rem;
}
.llp-char-counter.is-near-limit { color: var(--p-warning); }

/* ── Buttons ────────────────────────────────────────────────── */
.llp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--p-radius-sm);
  font-family: var(--p-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--p-transition), color var(--p-transition), border-color var(--p-transition), transform 0.1s ease, box-shadow var(--p-transition);
  white-space: nowrap;
}
.llp-btn:active { transform: scale(0.97); }
.llp-btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.llp-btn--teal { background: var(--p-teal); color: var(--p-white); border-color: var(--p-teal); }
.llp-btn--teal:hover { background: var(--p-teal-dark); border-color: var(--p-teal-dark); color: var(--p-white); box-shadow: 0 4px 12px rgba(45,96,114,0.25); }

.llp-btn--outline { background: transparent; color: var(--p-teal); border-color: var(--p-teal); }
.llp-btn--outline:hover { background: var(--p-teal); color: var(--p-white); }

.llp-btn--danger { background: transparent; color: var(--p-burgundy); border-color: var(--p-burgundy); }
.llp-btn--danger:hover { background: var(--p-burgundy); color: var(--p-white); }

.llp-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.llp-btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--p-olive);
  border-radius: var(--p-radius-sm);
  transition: color var(--p-transition), background var(--p-transition);
  line-height: 1;
}
.llp-btn-icon:hover { color: var(--p-burgundy); background: rgba(100,34,30,0.07); }

/* ── Badge ──────────────────────────────────────────────────── */
.llp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--p-teal-light);
  color: var(--p-teal-dark);
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.375rem;
  vertical-align: middle;
}

/* ── Prompt Cards ───────────────────────────────────────────── */
.llp-prompts-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.llp-prompt-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--p-cream-light);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.25rem;
  transition: box-shadow var(--p-transition);
  animation: llp-pop-in 0.25s ease both;
}
.llp-prompt-card:hover { box-shadow: var(--p-shadow); }
.llp-prompt-card__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--p-teal);
  color: var(--p-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.llp-prompt-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.llp-prompt-card__text {
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  line-height: 1.6;
  margin: 0;
}
.llp-prompt-card__photo-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.llp-prompt-card__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--p-radius-sm);
  border: 1px solid var(--p-cream-dark);
  flex-shrink: 0;
}
.llp-prompt-card__photo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}
.llp-prompt-card__photo-form { display: contents; }
.llp-prompt-card__remove-photo { display: contents; }
.llp-prompt-card__photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--p-olive);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--p-font-sans);
}
.llp-prompt-card__photo-btn:hover { color: var(--p-charcoal); }
.llp-prompt-card__photo-btn--remove { color: var(--p-olive); }
.llp-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.llp-prompt-card__remove { margin: -2px -4px 0 0; }

/* ── Empty State ────────────────────────────────────────────── */
.llp-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow);
  animation: llp-fade-up 0.4s ease both;
}
.llp-empty-state--small { padding: 2rem; }
.llp-empty-state__icon { margin: 0 auto 1.5rem; color: var(--p-cream-dark); display: block; }
.llp-empty-state h3 {
  font-family: var(--p-font-serif);
  font-size: 1.3rem;
  color: var(--p-charcoal);
  margin: 0 0 0.75rem;
}
.llp-empty-state p { font-size: 0.9375rem; color: var(--p-olive); max-width: 460px; margin: 0 auto 0.75rem; }
.llp-empty-state__eta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--p-olive);
}
.llp-empty-state__eta svg { color: var(--p-teal); }

.llp-empty-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--p-cream);
  color: var(--p-teal);
  animation: llp-pulse 2.5s ease infinite;
}

/* ── Audio Grid ─────────────────────────────────────────────── */
.llp-audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.llp-audio-card {
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  padding: 1.5rem;
  box-shadow: var(--p-shadow);
  transition: transform var(--p-transition), box-shadow var(--p-transition);
  animation: llp-fade-up 0.35s ease both;
}
.llp-audio-card:hover { transform: translateY(-2px); box-shadow: var(--p-shadow-md); }
.llp-audio-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.llp-audio-card__session {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-teal);
  background: rgba(45,96,114,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.llp-audio-card__date {
  font-size: 0.8125rem;
  color: var(--p-olive);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.llp-audio-card__title {
  font-family: var(--p-font-serif);
  font-size: 1.1rem;
  color: var(--p-charcoal);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.llp-audio-card__desc {
  font-size: 0.875rem;
  color: var(--p-olive);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.llp-audio-player-wrap {
  background: var(--p-charcoal);
  border-radius: var(--p-radius-sm);
  padding: 0.875rem 1rem;
}
.llp-audio-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.625rem;
}
.llp-audio-native {
  width: 100%;
  height: 36px;
  accent-color: var(--p-teal-light);
}
.llp-audio-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--p-transition);
}
.llp-audio-download:hover { color: var(--p-teal-light); }

.llp-raw-files {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.llp-raw-files__label {
  font-family: var(--p-font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  width: 100%;
  margin: 0 0 0.25rem;
}
.llp-audio-download--raw {
  font-size: 0.75rem;
  opacity: 0.8;
}
.llp-audio-download--raw:hover { opacity: 1; }

.llp-audio-pending {
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  margin: 0.25rem 0 0;
}

/* ── Profile Grid ───────────────────────────────────────────── */
.llp-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.llp-info-card {
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  padding: 1.5rem;
  box-shadow: var(--p-shadow);
  animation: llp-fade-up 0.3s ease both;
}
.llp-info-card:nth-child(1) { animation-delay: 0.04s; }
.llp-info-card:nth-child(2) { animation-delay: 0.08s; }
.llp-info-card:nth-child(3) { animation-delay: 0.12s; }
.llp-info-card--facility { grid-column: 1 / -1; }
.llp-info-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--p-teal);
}
.llp-info-card__header h4 { font-size: 0.9375rem; color: var(--p-charcoal); margin: 0; font-family: var(--p-font-sans); font-weight: 600; }
.llp-info-card__desc { font-size: 0.875rem; color: var(--p-olive); margin: 0 0 1rem; }
.llp-info-card__note { font-size: 0.8125rem; color: var(--p-olive); margin: 1rem 0 0; }
.llp-info-card__note a { color: var(--p-teal); }
.llp-info-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.llp-info-row {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--p-cream);
}
.llp-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.llp-info-row__label { font-weight: 500; color: var(--p-olive); width: 90px; flex-shrink: 0; }

.llp-facility-form { margin-top: 0.25rem; }

/* ── Inline Notice ──────────────────────────────────────────── */
.llp-inline-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--p-warning);
  background: var(--p-warning-bg);
  padding: 0.625rem 0.875rem;
  border-radius: var(--p-radius-sm);
  margin-top: 0.875rem;
}
.llp-inline-notice svg { flex-shrink: 0; }
.llp-inline-notice a { color: var(--p-teal); font-weight: 500; }

/* ── Submit Form inline ─────────────────────────────────────── */
.llp-submit-form { display: inline; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes llp-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes llp-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes llp-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes llp-pop-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes llp-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(0.9); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .llp-profile-grid { grid-template-columns: 1fr; }
  .llp-info-card--facility { grid-column: auto; }
  .llp-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .llp-portal-body { padding: 1rem; }
  .llp-portal-header__inner { padding: 0 1rem; gap: 0.875rem; }
  .llp-portal-header__brand { display: none; }
  .llp-portal-nav__inner { padding: 0 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .llp-portal-nav__link { padding: 0.875rem 0.875rem; font-size: 0.8125rem; }
  .llp-portal-nav__link span { display: none; }
  .llp-portal-nav__link svg { width: 22px; height: 22px; }
  .llp-section { padding: 1.25rem 1.25rem; }
  .llp-stats-grid { grid-template-columns: 1fr; }
  .llp-audio-grid { grid-template-columns: 1fr; }
  .llp-login-card { padding: 2rem 1.5rem; }
  .llp-stepper__label { font-size: 0.7rem; }
  .llp-field--inline { flex-direction: column; align-items: stretch; }
  .llp-section-header--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .llp-stepper { flex-wrap: wrap; gap: 1rem; }
  .llp-stepper__line { display: none; }
  .llp-stepper__step { flex: 0 0 calc(50% - 0.5rem); }
}

/* ── Products Grid ───────────────────────────────────────────── */
.llp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.llp-product-card {
  background: var(--p-cream-light);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
  transition: transform var(--p-transition), box-shadow var(--p-transition);
  animation: llp-fade-up 0.3s ease both;
}
.llp-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-md);
}
.llp-product-card--badged { padding-top: 2.25rem; }

.llp-product-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-teal-dark);
  background: var(--p-teal-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.llp-product-card__icon {
  color: var(--p-teal);
  margin-bottom: 0.25rem;
}

.llp-product-card__name {
  font-family: var(--p-font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--p-charcoal);
  margin: 0;
  line-height: 1.3;
}

.llp-product-card__desc {
  font-size: 0.875rem;
  color: var(--p-olive);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.llp-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.llp-product-card__price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--p-charcoal);
}

.llp-product-card__coming {
  font-size: 0.8125rem;
  color: var(--p-olive);
  font-style: italic;
}

.llp-product-card__needs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.78rem;
  color: var(--p-teal);
  background: rgba(45,96,114,0.07);
  padding: 0.35rem 0.6rem;
  border-radius: var(--p-radius-sm);
  margin-top: 0.25rem;
}
.llp-product-card__needs svg { flex-shrink: 0; }

/* Tiered product card */
.llp-product-card--tiered { grid-column: 1 / -1; }

.llp-product-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.llp-product-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--p-white);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 0.75rem 1rem;
}

.llp-product-tier__info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.llp-product-tier__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--p-charcoal);
}

.llp-product-tier__price {
  font-size: 0.9rem;
  color: var(--p-teal);
  font-weight: 700;
}

/* Packages row */
.llp-packages-row {
  background: var(--p-cream);
  border: 1px dashed var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.25rem;
}

.llp-packages-row__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--p-charcoal);
}
.llp-packages-row__header svg { color: var(--p-teal); flex-shrink: 0; }
.llp-packages-row__sub {
  font-size: 0.875rem;
  color: var(--p-olive);
  margin-left: 0.25rem;
}

/* ── Upload Blocks ───────────────────────────────────────────── */
.llp-upload-block {
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--p-cream-light);
}

.llp-upload-block__meta {
  margin-bottom: 1rem;
}

.llp-upload-block__title {
  display: block;
  font-size: 0.9375rem;
  color: var(--p-charcoal);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.llp-upload-block__hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--p-olive);
}

.llp-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.llp-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: var(--p-radius-sm);
  border: 1.5px solid var(--p-cream-dark);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--p-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.llp-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.llp-upload-preview--empty {
  color: var(--p-cream-dark);
}

.llp-upload-preview__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(39,41,43,0.75);
  color: var(--p-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--p-transition);
}
.llp-upload-preview__remove:hover { background: var(--p-burgundy); }

.llp-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 0.25rem;
}

/* Progress bar */
.llp-upload-progress {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.llp-upload-progress__track {
  flex: 1;
  height: 6px;
  background: var(--p-cream-dark);
  border-radius: 3px;
  overflow: hidden;
  min-width: 120px;
}
.llp-upload-progress__fill {
  height: 100%;
  background: var(--p-teal);
  border-radius: 3px;
  width: 0%;
  transition: width 0.15s ease;
}
.llp-upload-progress__pct {
  font-size: 0.8rem;
  color: var(--p-olive);
  white-space: nowrap;
  min-width: 30px;
}

.llp-upload-status {
  font-size: 0.8125rem;
  min-height: 1.2em;
}
.llp-upload-status--ok    { color: var(--p-success); }
.llp-upload-status--error { color: var(--p-error); }

/* Customization form label + hint */
.llp-field-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--p-charcoal);
  margin-bottom: 0.5rem;
}
.llp-field-hint {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--p-olive);
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.llp-customization-form { margin-top: 1.5rem; }

/* ── GHL Order Modal ─────────────────────────────────────────── */
.llp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39, 41, 43, 0.6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: llp-fade-in 0.2s ease both;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.llp-modal-overlay[hidden] { display: none; }

@keyframes llp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes llp-modal-up {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.llp-modal {
  background: var(--p-white);
  border-radius: var(--p-radius);
  box-shadow: 0 24px 64px rgba(39,41,43,0.3);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: llp-modal-up 0.25s ease both;
  overflow: hidden;
}

.llp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--p-cream-dark);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--p-charcoal) 0%, #2a3d47 60%, var(--p-teal) 100%);
}

.llp-modal__title {
  font-family: var(--p-font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--p-white);
  margin: 0;
}

.llp-modal__close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--p-white);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--p-transition);
  flex-shrink: 0;
  padding: 0;
}
.llp-modal__close:hover { background: rgba(255,255,255,0.22); }

.llp-modal__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 480px;
}

.llp-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--p-olive);
  font-size: 0.9375rem;
}
.llp-modal__loading p { margin: 0; }
.llp-modal__loading.is-hidden { display: none; }

.llp-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.llp-modal__iframe.is-loaded { opacity: 1; }

/* ── Spinner ─────────────────────────────────────────────────── */
.llp-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--p-cream-dark);
  border-top-color: var(--p-teal);
  border-radius: 50%;
  animation: llp-spin 0.7s linear infinite;
}
@keyframes llp-spin {
  to { transform: rotate(360deg); }
}

/* ── Confirmation Modal ──────────────────────────────────────── */
.llp-modal--sm {
  max-width: 440px;
}
.llp-modal__body--confirm {
  min-height: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.llp-modal__body--confirm p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--p-charcoal);
}
.llp-confirm-note {
  font-size: 0.875rem !important;
  color: var(--p-olive) !important;
  font-style: italic;
}
.llp-confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ── Submitted Batches ───────────────────────────────────────── */
.llp-section-title--sm {
  font-size: 1rem;
}
.llp-submitted-batches {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.llp-submitted-batch {
  background: var(--p-cream-light);
  border: 1px solid var(--p-cream-dark);
  border-radius: var(--p-radius-sm);
  padding: 1rem 1.125rem;
}
.llp-submitted-batch__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--p-teal-dark);
  margin-bottom: 0.75rem;
}
.llp-submitted-batch__header svg {
  flex-shrink: 0;
  color: var(--p-success);
}
.llp-badge--subtle {
  background: var(--p-cream-dark);
  color: var(--p-olive);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
}
.llp-submitted-batch__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.llp-submitted-batch__list li {
  font-size: 0.875rem;
  color: var(--p-charcoal);
  line-height: 1.5;
}

/* ── Products responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .llp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .llp-product-card--tiered { grid-column: auto; }
  .llp-product-tiers { flex-direction: column; }
}

@media (max-width: 700px) {
  .llp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .llp-product-tier { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .llp-modal { max-height: 100vh; border-radius: 0; max-width: 100%; }
  .llp-modal__body { min-height: 60vh; }
  .llp-upload-row { gap: 0.875rem; }
}

/* ── Review form ─────────────────────────────────────────────── */
.llp-review-section {
  border-top: 1px solid var(--p-cream-dark);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}
.llp-review-section--highlight {
  outline: 2px solid var(--p-teal);
  outline-offset: 6px;
  border-radius: var(--p-radius-sm);
}
.llp-review-form { max-width: 560px; }
.llp-review-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 1.25rem;
}
.llp-review-stars input[type="radio"] { display: none; }
.llp-review-stars label {
  cursor: pointer;
  color: var(--p-gray);
  transition: color 0.1s;
  line-height: 1;
}
.llp-review-stars input[type="radio"]:checked ~ label,
.llp-review-stars label:hover,
.llp-review-stars label:hover ~ label {
  color: var(--p-teal);
}
.llp-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--p-font-sans);
  color: var(--p-charcoal);
  background: #fff;
  border: 1.5px solid var(--p-gray);
  border-radius: var(--p-radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8f94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.llp-select:focus { outline: none; border-color: var(--p-teal); box-shadow: 0 0 0 3px rgba(45,96,114,0.12); }
