@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600&family=Manrope:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #F8F4F7;
  --bg-secondary: #FFFDFE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF6FA;
  --border-color: #EADFE7;
  --border-color-active: rgba(169, 77, 126, 0.42);
  
  --color-primary: #A94D7E;
  --color-primary-hover: #873C65;
  --color-primary-muted: #FDEBF4;
  --color-text-white: #392A3D;
  --color-text-normal: #65576A;
  --color-text-muted: #887987;
  --color-success: #446D60;
  
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-premium: 0 24px 70px rgba(74, 42, 70, 0.13);
  --glow-pink: 0 0 0 4px rgba(169, 77, 126, 0.12);
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--color-text-normal);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 20px;
  background-image: 
    radial-gradient(at 10% 20%, rgba(255, 94, 138, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(30, 37, 56, 0.5) 0px, transparent 50%);
}

/* App Container (Mobile viewport emulation centered on desktop) */
.app-container {
  width: 100%;
  max-width: 450px;
  min-height: 850px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: fadeIn var(--transition-normal);
}

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

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Typography styling */
h1, h2, h3, h4 {
  color: var(--color-text-white);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-normal);
}

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

/* Screen Shell - manages screen toggles */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.screen.active {
  display: flex;
  animation: screenFadeIn 0.3s ease-out;
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Header Component */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(23, 27, 43, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-icon {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-btn {
  background: transparent;
  border: none;
  color: var(--color-text-normal);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

/* Utility Layouts */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.bottom-actions-container {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(23, 27, 43, 0.95);
  backdrop-filter: blur(10px);
}

/* UI Elements: Forms and Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
}

.input-field {
  width: 100%;
  background-color: rgba(30, 37, 56, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--color-text-white);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field-with-icon {
  padding-left: 44px;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--glow-pink);
  background-color: rgba(30, 37, 56, 0.8);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Phone input layout helper */
.phone-input-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.36fr) 1fr;
  gap: 10px;
}

.country-code-input { text-align: center; font-variant-numeric: tabular-nums; }
.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; }

/* Checkbox container */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  background-color: rgba(30, 37, 56, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark::after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--color-text-normal);
  line-height: 1.35;
}

/* Button styles */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #FF8EA9 100%);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(255, 94, 138, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--glow-pink);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-white);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon-text svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Tab Bar System */
.tabs-container {
  display: flex;
  background-color: rgba(30, 37, 56, 0.4);
  border-radius: var(--border-radius-md);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-align: center;
}

.tab-btn.active {
  background-color: var(--color-primary-muted);
  color: var(--color-primary);
}

/* Secondary Tabs / Nested Content subtabs */
.subtabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 10px;
}

.subtab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 8px 2px;
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.subtab-btn.active {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-text-white);
}

/* Card layout components */
.glass-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.glass-card:hover {
  border-color: rgba(255, 94, 138, 0.2);
}

/* Welcome Page & Home Screen Elements */
.welcome-badge {
  background-color: var(--color-primary-muted);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.search-box-container {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Notice Card Styling */
.notice-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-card-header {
  display: flex;
  gap: 15px;
  align-items: center;
}

.deceased-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: var(--glow-pink);
  background-color: var(--bg-primary);
}

.deceased-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deceased-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.deceased-dates {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}

.notice-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-normal);
  font-style: italic;
}

.notice-card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 5px;
}

.notice-action-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.notice-action-btn:hover, .notice-action-btn.active {
  color: var(--color-primary);
}

.notice-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Launch and Welcome screen styling */
.launch-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  gap: 20px;
}

.launch-logo {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0px 0px 10px rgba(255, 94, 138, 0.2));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0% { transform: scale(1); filter: drop-shadow(0px 0px 15px rgba(255, 94, 138, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0px 0px 25px rgba(255, 94, 138, 0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0px 0px 15px rgba(255, 94, 138, 0.4)); }
}

.launch-title {
  font-size: 3rem;
  font-weight: 800;
  color: #062b63;
}

.launch-tagline {
  font-size: 1.1rem;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Service / Event listings */
.event-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.event-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--color-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-icon-container svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
}

.event-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-white);
}

.event-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.event-address {
  font-size: 0.9rem;
  color: var(--color-text-normal);
  margin-top: 4px;
}

/* Grid gallery */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.08);
}

/* Condolence comments list */
.condolence-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.condolence-item {
  padding: 14px;
  border-radius: var(--border-radius-md);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.condolence-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.condolence-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-white);
}

.condolence-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.condolence-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-normal);
}

/* Action Modal Overlays */
.overlay-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 18, 29, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-modal.active {
  display: flex;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-content {
  background-color: var(--bg-secondary);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border-top: 1px solid var(--border-color);
  max-height: 80%;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Options selectors (Money amounts or items) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.option-select-btn {
  background-color: rgba(30, 37, 56, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 15px 10px;
  color: var(--color-text-white);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.option-select-btn.active {
  background-color: var(--color-primary-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--glow-pink);
}

.option-subtext {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.option-select-btn.active .option-subtext {
  color: var(--color-primary-hover);
}

/* Settings / Creator Dashboard styling */
.creator-profile-header {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}

.creator-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.creator-meta {
  display: flex;
  flex-direction: column;
}

.creator-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.creator-handle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Picture Upload grid helper */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.upload-slot-btn {
  aspect-ratio: 1;
  background-color: rgba(30, 37, 56, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  padding: 8px;
  position: relative;
}

.upload-slot-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(255, 94, 138, 0.05);
}

.upload-slot-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-bottom: 6px;
}

.upload-slot-btn span {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
}

.upload-slot-btn img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
}

/* Program slot configuration list */
.program-slots-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.program-slot-row {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 8px;
  align-items: center;
}

.btn-remove-slot {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.btn-remove-slot:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

/* Thank You screen links */
.share-link-box {
  background-color: rgba(30, 37, 56, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.share-link-text {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--color-text-white);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-family);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-copy:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Toast Notification overlay */
.toast-notification {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--bg-primary);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-premium), var(--glow-pink);
  color: var(--color-text-white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
}

/* DUDU Living Memorial Folio - visual skin only */
body {
  background:
    radial-gradient(circle at 14% 10%, rgba(241, 168, 204, .42), transparent 28%),
    radial-gradient(circle at 88% 88%, rgba(169, 182, 234, .48), transparent 30%),
    #f8f4f7;
  color: var(--color-text-normal);
  padding: 24px;
}

.app-container {
  max-width: 430px;
  min-height: min(880px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  background: var(--bg-secondary);
  border: 0;
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(57, 42, 61, .18);
}

h1, h2, .launch-tagline, .deceased-name {
  font-family: 'Bodoni Moda', Georgia, serif;
  letter-spacing: -.03em;
}

h3, h4 { color: var(--color-text-white); }
.screen.active { animation: screenFadeIn .35s cubic-bezier(.2, .8, .2, 1); }

.header-bar {
  min-height: 72px;
  padding: 15px 18px;
  background: rgba(255, 253, 254, .94);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(18px);
}

.header-logo { color: var(--color-text-white); font-size: 1rem; font-weight: 800; }
.header-logo img { width: 34px; height: 34px !important; object-fit: contain; margin-right: 2px !important; }
.header-btn { width: 42px; height: 42px; color: var(--color-text-white); background: var(--color-primary-muted); }
.header-btn:hover { background: #f5d6e6; color: var(--color-primary); }
.scroll-content { padding: 24px 22px 30px; }

.bottom-actions-container {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  background: rgba(255, 253, 254, .96);
  backdrop-filter: blur(18px);
}

.launch-hero {
  position: relative;
  min-height: 620px;
  padding: 80px 34px 52px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.86), transparent 27%),
    linear-gradient(155deg, #f7c7df 0%, #e8c7e8 52%, #a9b6ea 100%);
  overflow: hidden;
}

.launch-hero::before, .launch-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
}

.launch-hero::before { width: 420px; height: 420px; left: -90px; top: 105px; }
.launch-hero::after { width: 280px; height: 280px; right: -95px; bottom: 38px; }
.launch-logo { position: relative; z-index: 1; width: 250px !important; max-width: 82% !important; margin-bottom: 20px !important; }
.launch-tagline { position: relative; z-index: 1; color: var(--color-text-white); font-size: 2.5rem; font-weight: 600; }

.btn {
  min-height: 50px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: none;
}

.btn-primary { background: #392a3d; color: #fff; }
.btn-primary:hover { background: #211825; box-shadow: 0 12px 26px rgba(57, 42, 61, .18); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--color-text-white); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--color-primary-muted); border-color: #e7bdd2; color: var(--color-text-white); }

.input-field {
  min-height: 50px;
  background: #fffcfd;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--color-text-white);
}

.input-field:focus { background: #fff; border-color: var(--color-primary); box-shadow: var(--glow-pink); }
.input-field::placeholder { color: #a79aa4; }
.form-group label { color: #756773; font-weight: 800; letter-spacing: .02em; text-transform: none; }
.checkmark { background: #fff; border-color: #d9cbd5; }

.glass-card, .notice-card, .creator-profile-header {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(82, 55, 78, .08);
}

.welcome-badge { color: var(--color-primary); background: var(--color-primary-muted); border: 0; }
.search-box-container { padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 15px 38px rgba(82, 55, 78, .1); }
.search-box-container .input-field { border: 0; background: transparent; }
.notice-card { overflow: hidden; }
.notice-card-header { background: linear-gradient(135deg, #fdebf4, #e8ecfc); }
.deceased-name { font-size: 1.35rem; color: var(--color-text-white); }
.deceased-dates, .creator-handle { color: var(--color-text-muted); }
.notice-action-btn { color: var(--color-text-normal); }
.notice-action-btn:hover, .notice-action-btn.active { color: var(--color-primary); background: var(--color-primary-muted); }
.notice-updates-icon, .updates-phone-row > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 12px; font-weight: 900; }
.notice-updates-modal .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.updates-memorial-identity { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.updates-memorial-identity img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #e8ecfc; }
.updates-memorial-identity small, .updates-memorial-identity strong { display: block; }
.updates-memorial-identity small, .updates-phone-row small { color: #65576a; font-size: 11px; }
.updates-memorial-identity strong { margin-top: 2px; color: #392a3d; font-family: "Bodoni Moda", Georgia, serif; font-size: 20px; }
.updates-phone-row { margin: 18px 0; padding: 14px; display: flex; align-items: center; gap: 12px; border-radius: 14px; background: #e8ecfc; }
.updates-phone-row strong { display: block; margin-top: 3px; color: #392a3d; font-size: 13px; }
.updates-consent { margin-bottom: 18px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #65576a; font-size: 13px; line-height: 1.5; }
.updates-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #392a3d; }
.updates-stop-copy { margin-top: 12px; text-align: center; }
.organizer-broadcast-panel { margin: 18px 0; padding: 16px; border-radius: 16px; background: #f3f4fc; }
.organizer-notify-toggle { padding: 0; background: transparent; }
.organizer-broadcast-panel .form-group { margin-top: 16px; }
.broadcast-history { margin-top: 28px; padding-top: 22px; border-top: 1px solid #eadfe7; }
.broadcast-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.broadcast-history-heading h4 { margin: 0; color: #392a3d; font-size: 14px; }
.broadcast-history-heading > div > span { display: block; margin-top: 4px; color: #65576a; font-size: 11px; }
.broadcast-history-heading button { border: 0; background: transparent; color: #a24e7d; font: inherit; font-size: 12px; font-weight: 800; }
#broadcast-history-list { margin-top: 12px; display: grid; gap: 1px; background: #eadfe7; }
#broadcast-history-list > p, #broadcast-history-list article { margin: 0; padding: 14px 0; background: #fff; }
#broadcast-history-list > p { color: #65576a; font-size: 12px; }
#broadcast-history-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#broadcast-history-list article strong { color: #392a3d; font-size: 12px; }
#broadcast-history-list article small, #broadcast-history-list article span { color: #65576a; font-size: 10px; }
#broadcast-history-list article p { margin: 5px 0; color: #65576a; font-size: 12px; line-height: 1.45; }
.tabs-container {
  gap: 4px;
  padding: 5px;
  background: #f6eef3;
  border-radius: 14px;
  border: 0;
  overflow-x: auto;
}

.tab-btn, .subtab-btn {
  min-height: 40px;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-weight: 800;
  white-space: nowrap;
}

.tab-btn.active, .subtab-btn.active {
  color: var(--color-text-white);
  background: #fff;
  box-shadow: 0 6px 16px rgba(82,55,78,.08);
}

.tab-btn.active::after, .subtab-btn.active::after { display: none; }
.service-list-item, .announcement-card, .condolence-item { background: #fff; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; }
.service-icon { background: var(--color-primary-muted); color: var(--color-primary); }
.gallery-img { border-radius: 12px; }
.creator-profile-header { padding: 15px; margin-bottom: 16px; }
.creator-avatar, .deceased-avatar-large { border-color: #fff; box-shadow: 0 0 0 3px #e7b7cf; }
.mgr-pane, .submgr-pane { padding-top: 24px; }
.upload-slot-btn { background: var(--color-primary-muted); border: 1px dashed #d3a0bb; color: var(--color-primary); }
.program-slot-row { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; }

.overlay-modal { background: rgba(42, 28, 43, .58); backdrop-filter: blur(9px); }
.modal-content { background: #fff; border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -22px 70px rgba(57,42,61,.2); }
.modal-header { background: #fff; border-bottom: 1px solid var(--border-color); }
.modal-close-btn { color: var(--color-text-white); background: var(--color-primary-muted); }
.option-select-btn { background: #fff; color: var(--color-text-white); border: 1px solid var(--border-color); border-radius: 14px; }
.option-select-btn.active { background: var(--color-primary-muted); border-color: #cf83aa; color: var(--color-primary); box-shadow: inset 0 0 0 1px #cf83aa; }
.option-subtext { color: var(--color-text-muted); }

.toast-notification {
  left: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: auto;
  transform: translateY(100px);
  background: #392a3d;
  color: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(57,42,61,.25);
}

.toast-notification.active { transform: translateY(0); }
.share-link-box { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; }
.btn-copy { background: var(--color-primary); color: #fff; }

.account-intro {
  margin: 4px 0 30px;
  padding: 24px;
  background: linear-gradient(135deg, #fdebf4, #e8ecfc);
  border-radius: 16px;
}

.account-intro h2 { margin: 4px 0 8px; font-size: 2rem; }
.account-intro p { color: var(--color-text-normal); }
.section-kicker { color: var(--color-primary); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field-hint { margin-top: 10px; color: var(--color-text-muted); font-size: .78rem; }
.account-photo-action { position: absolute; right: -5px; bottom: -5px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 9px; border-style: solid; }
.account-photo-action svg { width: 18px; fill: var(--color-primary); }
.account-family-link { margin-top: 12px; }

@media (max-width: 480px) {
  body { padding: 0; background: #fffdfd; }
  .app-container { width: 100%; max-width: none; min-height: 100dvh; max-height: 100dvh; border-radius: 0; box-shadow: none; }
  .launch-hero { min-height: 68dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* DUDU premium mobile refinements */
#screen-launch { background: #fff; }
#screen-launch::before { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -80px; border-radius: 50%; background: #eee9ff; opacity: .8; }
#screen-entry { padding: 0; background: #fff; }
.entry-hero { min-height: 100%; padding: max(32px, env(safe-area-inset-top)) 26px max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: radial-gradient(circle at 88% 16%, rgba(214,203,255,.72) 0 16%, transparent 16.4%), linear-gradient(160deg, #fff 0 55%, #fff2f7 55% 100%); }
.entry-wordmark { width: 126px; height: auto; }
.entry-copy { margin: auto 0 44px; }
.entry-kicker, .share-kicker { color: var(--color-primary); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-copy h1 { max-width: 350px; margin: 14px 0 18px; font-family: "Bodoni Moda", Georgia, serif; font-size: clamp(2.5rem, 12vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
.entry-copy p { max-width: 330px; color: var(--color-text-normal); font-size: 1rem; line-height: 1.7; }
.entry-button { min-height: 58px; }
.header-wordmark { width: 94px; height: 40px; object-fit: contain; }
.top-donate-link { border: 0; background: transparent; color: var(--color-primary); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.family-organiser-fixture { width: 100%; min-height: 66px; border: 1px solid rgba(80,35,63,.12); border-radius: 20px; padding: 12px 15px; background: #302433; color: #fff; display: flex; align-items: center; justify-content: space-between; text-align: left; box-shadow: 0 14px 30px rgba(48,36,51,.16); }
.family-organiser-fixture svg { width: 24px; height: 24px; fill: #f4afd0; }
.family-fixture-copy { display: grid; gap: 2px; }
.family-fixture-copy small { color: #f4afd0; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.family-fixture-copy strong { font-size: .96rem; }
.save-draft-chip { margin-left: auto; border: 1px solid rgba(169,77,126,.25); border-radius: 999px; padding: 9px 12px; background: #fff; color: var(--color-primary); font-size: .72rem; font-weight: 800; }
.share-sheet { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.share-grid button { min-height: 88px; border: 1px solid rgba(80,35,63,.1); border-radius: 18px; background: #fffafd; color: var(--color-text); display: grid; place-items: center; gap: 6px; font: inherit; font-size: .68rem; font-weight: 750; }
.share-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #302433; color: #fff; font-size: 1rem; font-weight: 900; }
.share-icon.whatsapp { background: #25d366; }
.share-icon.facebook { background: #1877f2; }
.share-icon.instagram { background: #c13584; }
.share-icon.tiktok { background: #111; }
@media (max-width: 360px) { .entry-copy h1 { font-size: 2.35rem; } }

/* Responsive rebuild — white, sky and midnight mobile system */
:root {
  --bg-primary: #d8d8d8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f7f9;
  --border-color: #e1e7ec;
  --border-color-active: #70cdef;
  --color-primary: #062b63;
  --color-primary-hover: #041f49;
  --color-primary-muted: #e5f6fd;
  --color-text-white: #06285b;
  --color-text-normal: #415878;
  --color-text-muted: #718198;
  --shadow-premium: 0 28px 80px rgba(6, 43, 99, .16);
}

html, body { width: 100%; min-height: 100%; }
body {
  min-height: 100dvh;
  padding: 22px;
  overflow: auto;
  background: #d5d5d5;
  align-items: flex-start;
}

.app-container {
  width: min(100%, 430px);
  height: calc(100dvh - 44px);
  min-height: 560px;
  max-height: none;
  overflow: hidden;
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow-premium);
}

.screen {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.screen.active { display: flex; }
.scroll-content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.header-bar {
  flex: 0 0 auto;
  background: #fff;
  border-color: var(--border-color);
}
.header-btn { color: #062b63; background: #eef7fb; }
.header-btn:hover { color: #062b63; background: #dff3fc; }
.btn { min-height: 50px; border-radius: 14px; }
.btn-primary { background: #062b63; color: #fff; box-shadow: none; }
.btn-primary:hover { background: #041f49; }
.btn-secondary { background: #f3f5f7; color: #062b63; border-color: transparent; }
.input-field { min-height: 50px; border-radius: 12px; border: 1px solid #e1e7ec; background: #f6f8fa; color: #06285b; font-size: 16px; }
.input-field:focus { border-color: #70cdef; box-shadow: 0 0 0 4px rgba(112, 205, 239, .2); }
.form-group label { color: #06285b; font-weight: 750; }

#screen-launch { min-height: 0; background: #fff; }
#screen-launch::before { background: #83d8f8; opacity: .55; }
.launch-hero {
  flex: 1 1 auto;
  min-height: 0;
  padding: 54px 32px 30px;
  background:
    radial-gradient(circle at 110% 12%, rgba(126, 215, 249, .52), transparent 31%),
    linear-gradient(180deg, #fff 0%, #fff 64%, #eef8fc 100%);
}
.launch-hero::before { border-color: rgba(6,43,99,.12); }
.launch-hero::after { border-color: rgba(112,205,239,.6); }
.launch-logo { animation: none; filter: none; }
.launch-tagline { color: #062b63; font-family: var(--font-family); font-size: 1.1rem; font-weight: 800; }

#screen-entry {
  min-height: 0;
  height: 100%;
  background: #fff;
}
.entry-hero {
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  overflow-y: auto;
  padding: max(34px, env(safe-area-inset-top)) 25px max(24px, env(safe-area-inset-bottom));
  background: #fff;
}
.entry-hero::before {
  content: "";
  flex: 0 0 auto;
  width: min(50vw, 190px);
  aspect-ratio: 1.28;
  margin: clamp(14px, 3dvh, 26px) auto 16px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, transparent 46%, rgba(255,255,255,.35) 47% 49%, transparent 50%),
    linear-gradient(160deg, #8bdcf9 0 42%, #062b63 42% 100%);
  clip-path: polygon(4% 22%, 45% 0, 96% 24%, 74% 92%, 24% 100%, 0 62%);
  box-shadow: 0 24px 42px rgba(6,43,99,.18);
}
.entry-wordmark { width: 96px; }
.entry-copy { margin: auto 0 18px; }
.entry-kicker { color: #289fd0; }
.entry-copy h1 {
  margin: 11px 0 14px;
  color: #062b63;
  font-family: var(--font-family);
  font-size: clamp(1.85rem, 8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.entry-copy p { color: #415878; font-size: .92rem; line-height: 1.5; }
.entry-button { flex: 0 0 auto; background: #062b63; }

.auth-screen { background: #fff; }
.auth-screen .header-bar { min-height: 64px; border-bottom: 0; }
.auth-screen .header-logo { font-size: 0; }
.auth-screen .header-logo img { width: 38px; height: 38px !important; }
.auth-screen .scroll-content { padding: 8px 25px max(38px, env(safe-area-inset-bottom)); }
.auth-intro { margin: 6px 0 30px; text-align: left; }
.auth-intro img { width: 112px; height: auto; margin-bottom: clamp(42px, 9dvh, 78px); }
.auth-intro span { display: block; margin-bottom: 8px; color: #2aa8d9; font-size: .76rem; font-weight: 800; }
.auth-intro h2 { margin: 0 0 10px; color: #062b63; font-family: var(--font-family); font-size: clamp(2rem, 9vw, 2.7rem); font-weight: 800; line-height: 1.03; letter-spacing: -.04em; }
.auth-intro p { max-width: 34ch; color: #526985; line-height: 1.6; }
.auth-screen form { padding: 22px; border-radius: 20px; background: #f1f3f5; }
.auth-screen .checkbox-container { min-height: 44px; }
.auth-screen a { color: #127caf; font-weight: 750; }

.bottom-actions-container { background: #fff; border-color: #e1e7ec; }
.family-organiser-fixture { border: 0; border-radius: 16px; background: #062b63; box-shadow: none; }
.family-organiser-fixture svg, .family-fixture-copy small { fill: #83d8f8; color: #83d8f8; }
.top-donate-link { color: #127caf; }
.tabs-container { background: #edf1f4; }
.tab-btn.active { background: #83d8f8; color: #062b63; }
.glass-card, .notice-card, .creator-profile-header, .account-intro { border-radius: 16px; box-shadow: none; }
.account-intro { background: #83d8f8; }

.overlay-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
}
.modal-content {
  width: min(100%, 430px);
  max-height: min(88dvh, 820px);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
}
.modal-header { flex: 0 0 auto; }
.modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}
.payment-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; color: #062b63; font-size: .78rem; font-weight: 800; }
.payment-divider::before, .payment-divider::after { content: ""; height: 1px; flex: 1; background: #dce3e8; }
.payment-note { margin: -3px 0 18px; color: #718198; font-size: .76rem; line-height: 1.55; }
.section-heading { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #dce3e8; font-size: 1.1rem; }
.section-heading-spaced { margin-top: 25px; }
.toast-notification { opacity: 0; visibility: hidden; transform: translateY(120px); }
.toast-notification.active { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 480px) {
  body { min-height: 100dvh; padding: 0; background: #fff; }
  .app-container { width: 100%; height: 100dvh; min-height: 100dvh; border-radius: 0; }
}
@media (max-height: 700px) {
  .entry-hero::before { width: 190px; margin: 18px auto; }
  .auth-intro img { margin-bottom: 24px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .app-container { height: 100dvh; min-height: 100dvh; }
  .entry-hero::before { width: 130px; margin: 10px auto; }
  .entry-copy { margin-top: 12px; }
}

/* Family Centre workflow and partner placements */
[hidden] { display: none !important; }
.entry-hero::before { display: none; }
.entry-ad {
  margin: clamp(28px, 7dvh, 60px) 0 20px;
  padding: 20px;
  border-radius: 16px;
  background: #82d7fa;
  color: #062b63;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
}
.entry-ad span { grid-column: 1 / -1; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.entry-ad strong { font-size: 1.05rem; }
.entry-ad small { grid-column: 1; color: #254e78; line-height: 1.4; }
.entry-ad button { grid-column: 2; grid-row: 2 / 4; align-self: center; border: 0; border-radius: 12px; padding: 12px; background: #062b63; color: #fff; font: inherit; font-size: .72rem; font-weight: 800; }
.entry-copy { margin-top: auto; }

.workflow-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }
.published-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.btn-danger { background: #fff0f0; color: #962f3e; border: 1px solid #f2cbd1; }
.slot-time-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-time-row label { color: #415878; font-size: .72rem; font-weight: 800; }
.slot-time-row .input-field { margin-top: 5px; }
.programme-time { display: block; margin-top: 4px; color: #289fd0; font-size: .7rem; font-weight: 800; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.event-action-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .75rem; font-weight: 800; line-height: 1.2; cursor: pointer; }
.event-action-button:focus-visible { outline: 3px solid rgba(169,182,234,.55); outline-offset: 3px; }
.event-action-button:active { transform: translateY(1px); }
.event-action-calendar { background: #e8ecfc; color: #392a3d; }
.event-action-location { background: #fdebf4; color: #392a3d; }
.event-action-button span { font-size: .95rem; line-height: 1; }
@media (max-width: 380px) { .event-actions { display: grid; grid-template-columns: 1fr; } .event-action-button { width: 100%; } }

.verification-gate { margin-bottom: 18px; padding: 18px; border-radius: 16px; background: #e5f6fd; color: #062b63; }
.verification-gate p { margin: 7px 0 14px; color: #415878; font-size: .82rem; line-height: 1.5; }
.donations-locked > :not(.verification-gate) { opacity: .42; pointer-events: none; user-select: none; }

.settings-section { margin: 26px 0; padding-top: 22px; border-top: 1px solid #e1e7ec; }
.settings-section h3 { margin-bottom: 8px; }
.settings-toggle { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e9edf0; }
.settings-toggle span { display: grid; gap: 2px; }
.settings-toggle small { color: #718198; font-size: .72rem; line-height: 1.35; }
.settings-toggle input { width: 22px; height: 22px; accent-color: #062b63; }

.tribute-ad { overflow: hidden; background: #fff; }
.ad-label { color: #718198; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ad-visual { min-height: 140px; margin: 12px -20px 18px; padding: 24px; background: linear-gradient(145deg, #82d7fa 0 52%, #062b63 52% 100%); color: #fff; display: flex; align-items: flex-end; font-size: 1.3rem; font-weight: 800; }
.tribute-ad h3 { margin-bottom: 5px; }
.tribute-ad p { margin-bottom: 14px; }

@media (max-width: 350px) {
  .workflow-actions { grid-template-columns: 1fr; }
  .entry-ad { margin-top: 18px; }
}

/* Notice detail: one scrolling record with thumb-reachable section navigation */
#screen-notice-details {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}
#screen-notice-details > .header-bar { position: sticky; top: 0; z-index: 30; }
#screen-notice-details > .scroll-content { flex: none; min-height: 240px; }
.legacy-detail-tabs { display: none; }
.header-donate-btn { background: #82d7fa; color: #062b63; }
.notice-header-actions { display: flex; align-items: center; gap: 7px; }
.notice-header-actions .header-btn { width: 38px; height: 38px; padding: 0; }
.home-guest-login {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #eadfe7;
  border-radius: 12px;
  background: #fffdfd;
  color: #392a3d;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
}
.home-guest-login:focus-visible { outline: 3px solid rgba(169,182,234,.45); outline-offset: 2px; }
.notice-access-wall {
  margin: 18px 0 6px;
  padding: 24px 20px;
  border-radius: 16px;
  background: #e8ecfc;
  color: #392a3d;
  text-align: center;
}
.notice-access-wall > span { display: block; margin-bottom: 8px; color: #65576a; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.notice-access-wall h2 { margin: 0 0 12px; color: #392a3d; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.55rem; line-height: 1.12; }
.notice-access-wall p { margin: 0 auto 12px; max-width: 34ch; color: #65576a; font-size: .84rem; line-height: 1.55; }
.notice-access-wall #notice-public-headline { margin-bottom: 14px; padding: 11px 12px; border-radius: 12px; background: #fffdfd; color: #392a3d; font-weight: 800; }
.notice-access-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.notice-public-headline { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #e8ecfc; color: #392a3d; font-size: .76rem; font-weight: 800; line-height: 1.4; }
.notice-public-headline span { margin-inline-end: 7px; color: #65576a; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
#screen-notice-details.is-preview .inline-tribute-wall,
#screen-notice-details.is-preview .notice-auth-only { display: none !important; }
#screen-notice-details.is-preview { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
#screen-notice-details.is-preview .notice-hero-card { position: relative; top: auto; }
[hidden] { display: none !important; }
.header-updates-btn { position: relative; background: #25d366; color: #fff; }
.header-updates-btn:hover { background: #1fbd5b; color: #fff; }
.header-updates-btn:focus-visible { outline: 3px solid rgba(37,211,102,.3); outline-offset: 2px; }
.header-updates-btn.subscribed::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #062b63; }
.notice-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notice-hero-card {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: #fff;
  transition: box-shadow 260ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.notice-hero-card .notice-card-header,
.notice-hero-card .notice-hero-expandable-inner {
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}
.notice-hero-expandable { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 260ms cubic-bezier(.2,.8,.2,1); }
.notice-hero-expandable-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 15px; }
.notice-hero-card.is-collapsed { gap: 0; padding: 9px 12px; box-shadow: 0 12px 28px rgba(6,43,99,.12); }
.notice-hero-card.is-collapsed .notice-card-header { gap: 10px; padding: 8px 10px; border-radius: 12px; }
.notice-hero-card.is-collapsed .deceased-avatar-large { width: 46px; height: 46px; box-shadow: none; }
.notice-hero-card.is-collapsed .deceased-name { font-size: 1rem; }
.notice-hero-card.is-collapsed .deceased-dates { font-size: .72rem; }
.notice-hero-card.is-collapsed .notice-hero-expandable { grid-template-rows: 0fr; }
.notice-hero-card.is-collapsed .notice-hero-expandable-inner { opacity: 0; pointer-events: none; transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) {
  .notice-hero-card, .notice-hero-card * { transition-duration: .01ms !important; }
}
.inline-tribute-wall { margin-top: 18px; padding: 18px 0 4px; border-top: 1px solid #e1e7ec; }
.inline-wall-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.inline-wall-heading span { color: #718198; font-size: .7rem; font-weight: 800; }
.inline-tribute-wall .condolence-item { background: #f3f5f7; border-radius: 14px; padding: 14px; }
.inline-tribute-wall .condolence-list { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.notice-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 120;
  width: min(100%, 430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  background: #fffdfd;
  border-top: 1px solid #e1e7ec;
  box-shadow: 0 -12px 28px rgba(6,43,99,.08);
}
.notice-bottom-nav button {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 6px 3px;
  border: 0;
  border-radius: 12px;
  color: #062b63;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, filter 180ms ease;
}
.notice-bottom-nav button:nth-child(odd) { background: #82d7fa; color: #062b63; }
.notice-bottom-nav button:nth-child(even) { background: #062b63; color: #82d7fa; }
.notice-bottom-nav button span { color: currentColor; font-size: 1.4rem; font-weight: 900; line-height: .8; }
.notice-bottom-nav button strong { max-width: 100%; overflow: hidden; color: currentColor; font-size: .63rem; font-weight: 850; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.notice-bottom-nav button:hover { filter: brightness(1.04); transform: translateY(-2px); }
.notice-bottom-nav button:focus-visible { outline: 3px solid #f1a8cc; outline-offset: 2px; }
.notice-bottom-nav button.active { z-index: 1; box-shadow: 0 0 0 3px #f1a8cc, 0 8px 18px rgba(6,43,99,.2); transform: translateY(-4px); }
.notice-bottom-nav button.active::after { content: ""; position: absolute; top: 4px; width: 18px; height: 3px; border-radius: 999px; background: currentColor; }
@media (prefers-reduced-motion: reduce) { .notice-bottom-nav button { transition: none; } }
.notice-detail-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 110;
  width: min(100%, 430px);
  max-height: min(72dvh, 680px);
  padding: 0 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 46px rgba(6,43,99,.18);
  transform: translate(-50%, calc(100% + 100px));
  visibility: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
}
.notice-detail-sheet.open {
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}
.detail-sheet-header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 68px;
  margin: 0 -22px 18px;
  padding: 14px 18px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e1e7ec;
}
.detail-sheet-header h2 { margin: 0; color: #062b63; font-size: 1.15rem; }
.detail-sheet-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #edf1f4;
  color: #062b63;
  font: 400 1.8rem/1 Arial, sans-serif;
}
#mgr-arrangements > .subtabs-container {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 -22px 20px;
  padding: 12px 22px;
  background: #fff;
  border-bottom: 1px solid #e1e7ec;
}
.tab-fly-in { animation: tabFlyIn .24s cubic-bezier(.2,.8,.2,1); }
@keyframes tabFlyIn { from { opacity: .45; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.support-hub-copy { margin-bottom: 18px; color: #526985; line-height: 1.55; }
.support-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.support-hub-grid button { min-height: 126px; border: 0; border-radius: 16px; padding: 16px; background: #f1f3f5; color: #062b63; display: grid; align-content: center; gap: 4px; text-align: left; font: inherit; }
.support-hub-grid button > span { margin-bottom: 5px; color: #289fd0; font-size: 1.4rem; }
.support-hub-grid button small { color: #718198; line-height: 1.35; }
.test-mode-notice { margin-bottom: 18px; padding: 14px; border-radius: 14px; background: #fff6d8; color: #6b5715; font-size: .78rem; line-height: 1.5; }
.otp-input { text-align: center; letter-spacing: .35em; font-size: 1.35rem; font-weight: 800; }
#screen-organizer textarea, #screen-organizer input, #screen-organizer select { pointer-events: auto; user-select: text; }

/* Opening login/sign-up landing: white canvas with logo-colour orbital outlines */
#screen-launch {
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}
#screen-launch::before,
#screen-launch::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #f1a8cc, #a9b6ea, #83d8f8) border-box;
  pointer-events: none;
}
#screen-launch::before { width: 250px; height: 250px; top: -104px; right: -102px; opacity: 1; }
#screen-launch::after { width: 390px; height: 390px; left: -286px; bottom: 32px; opacity: .82; }
#screen-launch .launch-hero,
#screen-launch .bottom-actions-container {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

/* Authentication forms stay clean after leaving the opening screen */
#screen-login { background: #fff; }
#screen-login::before,
#screen-login::after { display: none; }

/* Tribute interactions */
.tribute-actions {
  margin-top: 14px;
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
}
.tribute-actions button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #526985;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
}
.tribute-actions button span { margin-right: 3px; color: #289fd0; font-size: 1rem; }
.tribute-actions button b { color: inherit; }
.tribute-actions button.active { color: #a94d7e; }
.tribute-actions button.active span { color: #f1a8cc; }
.tribute-owner-actions { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; }
.tribute-owner-actions button { min-height: 36px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: #526985; font: inherit; font-size: .68rem; font-weight: 800; }
.tribute-owner-actions button:hover, .tribute-owner-actions button:focus-visible { background: #fff; color: #062b63; }
.tribute-owner-actions .tribute-delete-action { color: #8d3e62; }
.tribute-owner-actions button:disabled { cursor: wait; opacity: .6; }
.tribute-inline-editor { margin: 10px 0 4px; padding: 12px; border-radius: 12px; background: #fff; }
.tribute-inline-editor[hidden] { display: none; }
.tribute-inline-editor label { display: block; margin-bottom: 7px; color: #392a3d; font-size: .75rem; font-weight: 800; }
.tribute-inline-editor textarea { min-height: 96px; font-size: 16px; line-height: 1.5; resize: vertical; }
.tribute-editor-footer { margin-top: 9px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tribute-editor-footer > span { margin-inline-end: auto; color: #718198; font-size: .7rem; font-weight: 700; }
.tribute-editor-footer button { width: auto; min-height: 40px; }
.tribute-editor-cancel { padding: 9px 11px; border: 0; background: transparent; color: #526985; font: inherit; font-size: .72rem; font-weight: 800; }
.tribute-comments { padding: 12px 0 2px; border-top: 1px solid var(--border-color); }
.tribute-comment-list { display: grid; gap: 8px; margin-bottom: 10px; }
.tribute-comment-list article { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; }
.tribute-comment-list article > img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tribute-comment-list p { margin: 0; padding: 9px 11px; border-radius: 10px; background: #fff; color: #526985; font-size: .76rem; line-height: 1.45; }
.tribute-comment-list strong { display: block; margin-bottom: 2px; color: #062b63; }
.tribute-comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.commenting-as { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; color: #718198; font-size: .72rem; }
.commenting-as img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.commenting-as strong { color: #062b63; }
.tribute-comment-form textarea { min-height: 62px; resize: vertical; }
.tribute-comment-form .btn { width: auto; min-width: 68px; }

/* Family Centre completion */
.notice-progress { margin: 14px 0 18px; padding: 18px; border-radius: 16px; background: #fff; }
.notice-progress-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.notice-progress-copy > div { display: grid; gap: 3px; }
.notice-progress-copy span { color: #718198; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.notice-progress-copy strong { color: #062b63; font-size: .9rem; }
.notice-progress-copy > strong { color: #289fd0; font-size: 1.15rem; }
.notice-progress-track { height: 6px; margin: 13px 0 16px; overflow: hidden; border-radius: 999px; background: #e9edf0; }
.notice-progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f1a8cc, #a9b6ea); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.notice-progress-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.notice-progress-steps button { min-width: 0; min-height: 52px; padding: 0; border: 0; background: transparent; color: #718198; display: grid; place-items: center; gap: 4px; font: inherit; font-size: .56rem; font-weight: 750; }
.notice-progress-steps i { width: 24px; height: 24px; border-radius: 50%; background: #edf1f4; display: grid; place-items: center; color: #526985; font-style: normal; font-size: .68rem; }
.notice-progress-steps button.complete { color: #446d60; }
.notice-progress-steps button.complete i { background: #dff2eb; color: #446d60; }

/* Notice Manager: scroll-away identity, persistent workflow, calculated programmes */
#screen-organizer {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: 196px;
}
#screen-organizer > .header-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#screen-organizer > .scroll-content {
  flex: none;
  overflow: visible;
  min-height: 64vh;
}
.organizer-profile-shell { padding: 20px 20px 0; }
.organizer-sticky-controls {
  position: sticky;
  top: 65px;
  z-index: 80;
  padding: 1px 20px 10px;
  background: linear-gradient(180deg, rgba(247, 248, 250, .98) 84%, rgba(247, 248, 250, .9));
  box-shadow: 0 12px 22px rgba(6, 43, 99, 0);
  transition: box-shadow .2s ease;
}
.organizer-sticky-controls .tabs-container { margin-bottom: 0; }
#screen-organizer.manager-header-condensed .organizer-sticky-controls { box-shadow: 0 12px 22px rgba(6, 43, 99, .08); }
#screen-organizer.manager-header-condensed .notice-progress { margin: 8px 0; padding: 10px 12px; }
#screen-organizer.manager-header-condensed .notice-progress-copy span { display: none; }
#screen-organizer.manager-header-condensed .notice-progress-track { margin: 8px 0 7px; }
#screen-organizer.manager-header-condensed .notice-progress-steps button { min-height: 38px; }
#screen-organizer.manager-header-condensed .notice-progress-steps i { width: 20px; height: 20px; font-size: .6rem; }

.programme-schedule-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dce4eb;
  border-radius: 16px;
  background: #fff;
}
.programme-schedule-controls > label:first-child { display: grid; grid-template-columns: 1fr 118px; align-items: center; gap: 12px; color: #062b63; font-size: .82rem; font-weight: 800; }
.programme-schedule-controls .input-field { height: 44px; padding: 0 10px; }
.programme-transition-toggle { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.programme-transition-toggle input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #289fd0; }
.programme-transition-toggle span { display: grid; gap: 2px; }
.programme-transition-toggle strong { color: #062b63; font-size: .78rem; }
.programme-transition-toggle small { color: #718198; font-size: .68rem; line-height: 1.4; }
.program-slots-list { gap: 10px; margin-bottom: 12px; }
.program-slot-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 10px;
  padding: 12px;
  align-items: start;
}
.program-slot-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.program-slot-copy .input-field { min-width: 0; padding: 10px 11px; font-size: .82rem; }
.slot-schedule { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 8px; padding-top: 10px; border-top: 1px solid #edf1f4; }
.slot-schedule > span, .slot-schedule > label { min-width: 0; display: grid; gap: 4px; }
.slot-schedule small { color: #718198; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.slot-schedule strong { min-height: 42px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; background: #f3f7f9; color: #062b63; font-size: .8rem; }
.slot-duration { height: 42px; padding: 0 7px; font-size: .78rem; appearance: auto; }
.programme-schedule-summary { margin: 0; padding: 10px 12px; border-radius: 11px; background: #eaf6fb; color: #315c73; font-size: .72rem; font-weight: 750; line-height: 1.45; }

@media (max-width: 370px) {
  .organizer-sticky-controls { padding-inline: 14px; }
  .program-slot-copy { grid-template-columns: 1fr; }
  .notice-progress-steps button span { font-size: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .organizer-sticky-controls { transition: none; }
}

.manager-section-intro { margin: 4px 0 22px; padding: 0 2px 18px; border-bottom: 1px solid rgba(16,45,87,.1); }
.manager-section-intro > span { display: block; margin-bottom: 5px; color: #9a5678; font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.manager-section-intro h3 { margin: 0 0 7px; color: #102d57; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.45rem; }
.manager-section-intro p { margin: 0; color: #66778a; font-size: .78rem; line-height: 1.55; }
.manager-archive { margin-top: 26px; padding: 20px 18px; border: 1px solid rgba(16,45,87,.1); border-radius: 20px; background: #f7fafc; }
.manager-archive-empty { margin: 0; color: #718198; font-size: .76rem; line-height: 1.5; }
.manager-archive-item { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(16,45,87,.09); background: transparent; display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; color: #102d57; text-align: left; }
.manager-archive-item:last-child { border-bottom: 0; }
.manager-archive-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.manager-archive-item span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.manager-archive-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-archive-item small { color: #718198; font-size: .66rem; }
.manager-archive-item i { color: #9a5678; font-style: normal; font-size: 1.05rem; }

/* Share-ready ceremonial memorial folio */
.notice-share-card {
  position: relative;
  min-height: 312px;
  margin-bottom: 18px;
  padding: 66px 24px 28px;
  overflow: hidden;
  border: 1px solid #ddcfca;
  border-radius: 2px;
  background: #f8f5ef;
  color: #392a3d;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: 0 18px 42px rgba(16, 45, 87, .12);
}
.notice-share-card::before {
  content: "";
  position: absolute;
  inset: 48px 10px 10px;
  border: 1px solid rgba(154,86,120,.32);
  border-radius: 0;
  pointer-events: none;
}
.share-card-masthead { position: absolute; inset: 0 0 auto; height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: #102d57; color: #fff; }
.share-card-masthead strong { font-family: "Bodoni Moda", Georgia, serif; font-size: .9rem; }
.share-card-masthead span { color: #d9ebf5; font-size: .5rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.notice-share-card > img { position: relative; z-index: 2; width: 92px; height: 126px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 26px rgba(16,45,87,.16); }
.share-card-copy { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; }
.share-card-copy > span { color: #a95784; font-size: .59rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.notice-share-card h4 { margin: 5px 0 9px; color: #392a3d; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.3rem; line-height: 1.05; }
.notice-share-card p { margin: 0 0 9px !important; color: #65576a; font-size: .7rem; line-height: 1.45; }
.notice-share-card strong { color: #392a3d; font-size: .68rem; }
.notice-share-card small { margin-top: 14px; color: #a95784; font-family: "Bodoni Moda", Georgia, serif; font-size: .72rem; font-weight: 700; }

/* Independent mobile date, month and year wheels */
.date-wheel { display: grid; grid-template-columns: .72fr 1.35fr 1fr; gap: 8px; }
.date-wheel .input-field { min-width: 0; padding: 0 9px; appearance: auto; }

/* Profile-owned tribute writing and activity notifications */
.tribute-writer-identity { min-height: 48px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: #718198; font-size: .76rem; }
.tribute-writer-identity img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tribute-writer-identity strong { color: #062b63; }
.tribute-writer-identity button { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #e5f6fd; color: #062b63; font: inherit; font-weight: 800; }
.notification-inbox { margin-top: 12px; display: grid; gap: 8px; }
.notification-inbox > p { margin: 0; padding: 13px 0; color: #718198; font-size: .78rem; }
.notification-inbox article { padding: 12px; border-radius: 12px; background: #f3f5f7; display: grid; grid-template-columns: 28px 1fr; gap: 9px; }
.notification-inbox article > span { width: 28px; height: 28px; border-radius: 50%; background: #fdebf4; color: #a95784; display: grid; place-items: center; }
.notification-inbox article strong { color: #062b63; font-size: .76rem; }
.notification-inbox article p { margin: 3px 0; color: #526985; font-size: .74rem; line-height: 1.4; }
.notification-inbox article small { color: #718198; font-size: .65rem; }

/* Family publishing intake */
.notice-information-pending .event-details::before {
  content: attr(data-empty-message);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.notice-information-pending .event-actions { display: none; }

.notice-intake { padding-top: 26px; }
.notice-intake-step { color: #392a3d; }
.notice-intake-step h2 { max-width: 13ch; margin: 0 0 12px; font-family: "Bodoni Moda", Georgia, serif; font-size: clamp(2rem, 9vw, 2.65rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.notice-intake-step > p { margin: 0 0 24px; color: #65576a; font-size: .9rem; line-height: 1.65; }
.notice-intake-mark { width: 64px; height: 64px; margin-bottom: 22px; border: 1px solid #eadfe7; border-radius: 50%; background: #fffdfd; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(82,55,78,.08); }
.notice-intake-mark img { width: 42px; height: 42px; object-fit: contain; }
.notice-intake-actions { display: grid; gap: 10px; }
.notice-intake-choice-list { display: grid; gap: 12px; }
.notice-intake-choice-list button { width: 100%; min-height: 98px; padding: 16px; border: 1px solid #eadfe7; border-radius: 14px; background: #fffdfd; color: #392a3d; display: grid; grid-template-columns: 42px 1fr 20px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; font: inherit; box-shadow: 0 12px 28px rgba(82,55,78,.06); }
.notice-intake-choice-list button > span { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; background: #fdebf4; display: grid; place-items: center; font-size: 1.1rem; }
.notice-intake-choice-list button strong { align-self: end; font-size: .9rem; }
.notice-intake-choice-list button small { align-self: start; margin-top: 3px; color: #65576a; font-size: .68rem; line-height: 1.45; }
.notice-intake-choice-list button i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 1.1rem; }
.notice-intake-choice-list button:focus-visible { outline: 3px solid rgba(169,182,234,.55); outline-offset: 3px; }
.notice-intake-loading { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 16px; color: #65576a; }
.notice-intake-loading span { width: 34px; height: 34px; border: 3px solid #e8ecfc; border-top-color: #392a3d; border-radius: 50%; animation: intake-spin .8s linear infinite; }
@keyframes intake-spin { to { transform: rotate(360deg); } }
.notice-intake-progress { margin-bottom: 10px !important; color: #a95784 !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notice-intake .field-hint { margin: -2px 0 18px; }
.organizer-account-summary { margin: 22px 0; padding: 17px 18px; border-radius: 14px; background: #f3f4fc; display: grid; gap: 3px; }
.organizer-account-summary span { font-weight: 800; }
.organizer-account-summary small { color: #65576a; }
.notice-intake-result { text-align: left; }
.notice-intake-result > span { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: #e8ecfc; color: #392a3d; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; }
.notice-intake-result h2 { max-width: 15ch; }
.notice-intake-result small { display: block; margin: -12px 0 20px; color: #65576a; font-weight: 700; }
.notice-intake-result .btn { margin-top: 9px; }
.notice-intake-link { width: 100%; margin-top: 16px; border: 0; background: transparent; color: #7c4d72; font: inherit; font-size: .76rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.donations-paused { min-height: 360px; padding: 48px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donations-paused > span { width: 52px; height: 52px; border-radius: 50%; background: #e8ecfc; color: #392a3d; display: grid; place-items: center; font-size: 1.4rem; }
.donations-paused h3 { max-width: 280px; margin: 20px 0 10px; color: #392a3d; font-family: "Bodoni Moda", Georgia, serif; font-size: 1.55rem; line-height: 1.1; }
.donations-paused p { max-width: 330px; margin: 0; color: #65576a; font-size: .84rem; line-height: 1.65; }
#btn-mgr-donations small { display: block; color: inherit; font-size: .48rem; font-weight: 800; opacity: .7; }
#screen-organizer { scroll-padding-bottom: max(110px, env(safe-area-inset-bottom)); }

@media (max-width: 350px) {
  .date-wheel { grid-template-columns: .7fr 1.25fr 1fr; gap: 5px; }
  .date-wheel .input-field { padding: 0 5px; font-size: 14px; }
}
