:root {
  color-scheme: light;
  --bg: #f8f4ee;
  --surface: #fffaf5;
  --text: #241d26;
  --muted: #6b616d;
  --border: #e7ddd7;
  --primary: #7a55cd;
  --primary-dark: #5f3fb1;
  --accent: #c9a0f6;
  --focus: #ead9ff;
  --shadow: 0 18px 36px rgba(104, 78, 138, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--focus);
  color: #000;
  z-index: 10;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 0.2rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.logo-img {
  width: auto;
  height: 92px;
  max-width: min(50vw, 330px);
  object-fit: contain;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-weight: 600;
  color: var(--text);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 1rem;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.hero p { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-sm {
  padding: 0.56rem 1rem;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #9572ea 0%, var(--primary) 55%, #5a36a6 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(61, 23, 102, 0.24),
    0 10px 22px rgba(95, 63, 177, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #8764df 0%, var(--primary-dark) 58%, #48288f 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -2px 0 rgba(48, 20, 86, 0.26),
    0 14px 28px rgba(95, 63, 177, 0.3);
}
.btn-outline-light,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-danger,
.btn-outline {
  border-color: rgba(122, 85, 205, 0.26);
  color: var(--primary-dark);
  background: linear-gradient(180deg, #fffdf9 0%, #f6eefb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(122, 85, 205, 0.08),
    0 8px 18px rgba(61, 23, 102, 0.08);
}
.btn-outline-info {
  color: var(--primary-dark);
  border-color: rgba(122, 85, 205, 0.26);
}
.btn-outline-danger {
  color: #8b2445;
  border-color: rgba(139, 36, 69, 0.28);
}
.btn-outline-light:hover,
.btn-outline-secondary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover,
.btn-outline:hover {
  color: var(--primary-dark);
  background: linear-gradient(180deg, #ffffff 0%, #efe7fa 100%);
  border-color: rgba(122, 85, 205, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(122, 85, 205, 0.12),
    0 12px 24px rgba(61, 23, 102, 0.12);
}
.btn-outline-info:hover {
  color: var(--primary-dark);
  border-color: rgba(122, 85, 205, 0.4);
}
.btn-outline-danger:hover {
  color: #761d39;
  border-color: rgba(139, 36, 69, 0.42);
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 12px 28px rgba(24, 39, 75, 0.10);
}

.card h3 { margin-top: 0; }

.auth-alt-option {
  display: grid;
  gap: 0.9rem;
  margin: 1.35rem 0 1.45rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, #fffefe 0%, #f4ecff 100%);
  border: 1px solid rgba(122, 85, 205, 0.2);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(104, 78, 138, 0.08);
}

.auth-alt-option__label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.auth-alt-option__button {
  width: 100%;
  justify-content: center;
  min-height: 56px;
}

.auth-alt-option__hint {
  text-align: center;
  margin: 0;
}

.auth-divider {
  position: relative;
  margin: 0 0 1.2rem;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.password-visibility-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: -0.2rem 0 1rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.password-visibility-control input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--primary);
}

.steps {
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label { font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(255, 191, 71, 0.5);
  border-color: var(--focus);
}

.alert {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #f1c0c0;
  background: #fff4f4;
  color: #7f1b1b;
  margin-bottom: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-title { font-weight: 700; margin-bottom: 0.5rem; }

.small-text { color: var(--muted); font-size: 0.95rem; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(53, 89, 224, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.home-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, #f7f1e9 0%, #f8f4ee 70%);
}

.home-hero-shell {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: clamp(1.4rem, 2vw, 2.2rem);
  box-shadow: 0 18px 40px rgba(24, 39, 75, 0.08);
}

.home-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.home-hero-side {
  display: grid;
  gap: 1rem;
}

.home-hero-image-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(24, 39, 75, 0.12);
  min-height: 170px;
  max-height: 190px;
}

.home-hero-image-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 36%;
}

.home-hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 10.5ch;
  margin: 1rem 0 1.2rem;
}

.home-hero-copy p {
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--muted);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-hero-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.75rem;
  box-shadow: 0 18px 36px rgba(35, 67, 145, 0.12);
}

.home-hero-panel h2,
.home-step-card h3,
.home-support-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}

.home-hero-panel h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.home-hero-panel ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.home-hero-panel li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
}

.home-hero-panel li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.home-step-card {
  background: linear-gradient(135deg, var(--primary) 0%, #284ca0 58%, #8f52df 100%);
  color: #fff;
  border-radius: 26px;
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 22px 40px rgba(35, 67, 145, 0.20);
}

.home-step-kicker {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.home-step-card h3 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
  color: #fff;
}

.home-step-card p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  max-width: 28ch;
}

.home-support-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.home-support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 32px rgba(24, 39, 75, 0.10);
}

.home-support-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.home-support-card-alt {
  background: linear-gradient(180deg, #fcfcff 0%, #f5f7ff 100%);
}

.obituary-shell {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 28%);
}

.obituary-cover {
  min-height: 440px;
  background: linear-gradient(180deg, rgba(31, 45, 68, 0.88), rgba(31, 45, 68, 0.66));
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: end;
}

.obituary-cover-inner {
  width: 100%;
  padding: 3rem 0 2rem;
}

.obituary-cover-card {
  max-width: 720px;
  background: rgba(12, 20, 44, 0.42);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 22px 60px rgba(12, 20, 44, 0.22);
}

.obituary-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.obituary-cover-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
}

.obituary-subtitle,
.obituary-dates {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
}

.obituary-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.obituary-main {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.obituary-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
}

.obituary-anchor-nav a {
  font-weight: 700;
  color: var(--text);
}

.obituary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.obituary-side-column,
.obituary-content-column {
  display: grid;
  gap: 1.5rem;
}

.obituary-portrait-card,
.obituary-content-card {
  padding: 1.5rem;
}

.obituary-portrait-img {
  width: 100%;
  border-radius: 24px;
  display: block;
  margin-bottom: 1.25rem;
  box-shadow: 0 18px 38px rgba(24,39,75,0.14);
}

.obituary-quote {
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #2c3d67;
}

.obituary-meta-row,
.obituary-side-panel {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.obituary-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.obituary-side-panel h3,
.obituary-content-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
}

.obituary-summary {
  font-size: 1.08rem;
  color: #334564;
  margin-bottom: 1rem;
}

.obituary-story-body,
.obituary-service-notes {
  color: var(--muted);
}

.obituary-service-notes.muted {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.obituary-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.obituary-highlight-pill {
  background: linear-gradient(180deg, #f9fbff 0%, #f3f6ff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
}

.obituary-highlight-pill .label {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.obituary-highlight-pill .value {
  color: var(--text);
  font-weight: 800;
  margin-top: 0.3rem;
}

.obituary-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.obituary-service-item {
  background: #fbf5ee;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.obituary-service-address {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #334564;
}

.obituary-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.obituary-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.obituary-gallery-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(24,39,75,0.12);
}

.obituary-placeholder-box {
  border: 1px dashed rgba(47, 86, 179, 0.35);
  border-radius: 20px;
  padding: 1.2rem;
  background: #f8faff;
  color: var(--muted);
}

.obit-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.obit-template-option {
  display: block;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(24,39,75,0.08);
}

.obit-template-option input { display: none; }
.obit-template-option.active {
  border-color: rgba(47, 86, 179, 0.45);
  box-shadow: 0 16px 30px rgba(35, 67, 145, 0.16);
}

.obit-template-preview {
  height: 170px;
  border-radius: 18px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}

.obit-template-preview-classic {
  background: linear-gradient(180deg, rgba(31,45,68,0.78), rgba(31,45,68,0.32)), linear-gradient(135deg, #5a6fa9 0%, #d9e3fb 100%);
}

.obit-template-preview-dove {
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05)), linear-gradient(135deg, #f5f8ff 0%, #e8edff 40%, #f9f4ff 100%);
}

.obit-template-preview-harvest {
  background: linear-gradient(180deg, rgba(84,56,32,0.32), rgba(84,56,32,0.08)), linear-gradient(135deg, #e7d3ba 0%, #f8efe2 45%, #dcc2a5 100%);
}

.obit-template-preview-meadow {
  background: linear-gradient(180deg, rgba(30,84,54,0.30), rgba(30,84,54,0.08)), linear-gradient(135deg, #dcebdc 0%, #f4fbf4 45%, #b9d2b7 100%);
}

.obit-template-preview-violet {
  background: linear-gradient(180deg, rgba(70,45,110,0.34), rgba(70,45,110,0.10)), linear-gradient(135deg, #ede5fb 0%, #faf7ff 50%, #d9c7f5 100%);
}

.obit-template-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.obit-submit-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.obit-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.obit-media-card,
.obit-gallery-manager-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(24,39,75,0.08);
}

.obit-media-card img,
.obit-gallery-manager-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.obit-media-card-body,
.obit-gallery-manager-controls {
  padding: 1rem;
}

.obit-gallery-manager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.obit-upload-card {
  height: 100%;
  border: 1px solid rgba(121, 140, 177, 0.22);
  border-radius: 24px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
  box-shadow: 0 12px 28px rgba(24,39,75,0.06);
}

.obit-upload-meta {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.obit-upload-thumb,
.obit-gallery-upload-strip {
  margin-top: 0.9rem;
}

.obit-upload-thumb img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(121, 140, 177, 0.22);
  box-shadow: 0 10px 24px rgba(24,39,75,0.08);
}

.obit-gallery-upload-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.85rem;
}

.obit-gallery-upload-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(121, 140, 177, 0.22);
  box-shadow: 0 8px 20px rgba(24,39,75,0.08);
}

.obituary-live-preview-callout {
  border: 1px dashed rgba(47, 86, 179, 0.35);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  background: #f7f1ea;
  color: #355071;
}

.obit-live-preview {
  border: 1px solid rgba(121, 140, 177, 0.22);
  border-radius: 28px;
  overflow: hidden;
  background: #f9f3ed;
  box-shadow: 0 16px 36px rgba(24,39,75,0.08);
}

.obit-live-preview-cover {
  min-height: 280px;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(19, 34, 73, 0.40), rgba(19, 34, 73, 0.76)), linear-gradient(135deg, #5b6fa7 0%, #dbe4fb 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.obit-live-preview-cover-card {
  max-width: 720px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 38px rgba(24,39,75,0.14);
}

.obit-live-preview-cover-card h2 {
  margin: 0.35rem 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.obit-live-preview-subtitle,
.obit-live-preview-dates {
  color: #4e5f79;
}

.obit-live-preview-subtitle.is-placeholder,
.obit-live-preview-dates.is-placeholder {
  color: #8594ab;
}

.obit-live-preview-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  gap: 1.25rem;
  padding: 1.35rem;
}

.obit-live-preview-main,
.obit-live-preview-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.obit-live-preview-panel {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(121, 140, 177, 0.20);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 28px rgba(24,39,75,0.05);
}

.obit-live-preview-portrait-wrap {
  margin-bottom: 1rem;
}

.obit-live-preview-portrait {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(24,39,75,0.12);
}

.obit-live-preview-quote {
  font-style: italic;
  color: #324763;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.obit-live-preview-meta {
  display: grid;
  gap: 0.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.obit-live-preview-meta-block {
  border-top: 1px solid rgba(121, 140, 177, 0.18);
  padding-top: 1rem;
}

.obit-live-preview-copy {
  color: var(--text);
  line-height: 1.75;
  margin-top: 0.9rem;
}

.obit-live-preview-copy.muted {
  color: var(--muted);
}

.obit-live-preview-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.obit-live-preview-highlight {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #f7efe8;
  border: 1px solid rgba(121, 140, 177, 0.16);
}

.obit-live-preview-highlight .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.obit-live-preview-highlight .value {
  color: var(--text);
  font-weight: 700;
}

.obit-live-preview-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.obit-live-preview-service-item {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f9f3ed;
  border: 1px solid rgba(121, 140, 177, 0.18);
}

.obit-live-preview-service-item strong {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.obit-live-preview-service-address {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #fffaf5;
  border: 1px solid rgba(121, 140, 177, 0.18);
}

.obit-live-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.obit-live-preview-gallery-item img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(24,39,75,0.10);
}

.obit-live-preview-empty {
  border: 1px dashed rgba(121, 140, 177, 0.28);
  border-radius: 18px;
  padding: 1rem;
  color: var(--muted);
  background: #fcf7f1;
}

.obituary-guestbook-section {
  overflow: hidden;
}

.obituary-guestbook-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.obituary-guestbook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.obituary-guestbook-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(47, 86, 179, 0.12);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.obituary-guestbook-badge-soft {
  background: rgba(111, 76, 186, 0.10);
  color: #5e43a9;
}

.obituary-guestbook-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: start;
}

.obituary-guestbook-panel {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
  border: 1px solid rgba(121, 140, 177, 0.22);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 36px rgba(24,39,75,0.06);
}

.obituary-guestbook-panel h3 {
  margin-bottom: 0.35rem;
}

.obituary-guestbook-form {
  padding: 0;
}

.obituary-guestbook-form-panel .form-control {
  border-radius: 16px;
}

.obituary-guestbook-form-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.obituary-guestbook-list-panel {
  min-height: 100%;
}

.obituary-guestbook-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.obituary-guestbook-list {
  display: grid;
  gap: 1rem;
}

.obituary-guestbook-entry {
  background: linear-gradient(180deg, #fcfdff 0%, #f3f7ff 100%);
  border: 1px solid rgba(121, 140, 177, 0.22);
  border-radius: 20px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(24,39,75,0.05);
}

.obituary-guestbook-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.obituary-guestbook-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.obituary-guestbook-message {
  color: var(--text);
  line-height: 1.7;
}

.obituary-template-soft-dove .obituary-cover {
  background: linear-gradient(180deg, rgba(235,241,255,0.92), rgba(248,245,255,0.88));
  color: var(--text);
}

.obituary-template-soft-dove .obituary-cover-card {
  background: rgba(255,255,255,0.72);
  border-color: rgba(47, 86, 179, 0.12);
}

.obituary-template-soft-dove .obituary-status-pill {
  background: rgba(47, 86, 179, 0.10);
  color: var(--primary-dark);
}

.obituary-template-soft-dove .obituary-cover-card h1,
.obituary-template-soft-dove .obituary-subtitle,
.obituary-template-soft-dove .obituary-dates {
  color: var(--text);
}

.obituary-template-warm-harvest .obituary-cover,
.obituary-template-warm-harvest .obit-live-preview-cover {
  background-color: #dbc0a1;
}

.obituary-template-warm-harvest .obituary-cover-card,
.obituary-template-warm-harvest .obit-live-preview-cover-card,
.obituary-template-warm-harvest .obit-live-preview-panel {
  background: rgba(255, 248, 240, 0.88);
  border-color: rgba(140, 102, 67, 0.16);
}

.obituary-template-warm-harvest .obituary-status-pill {
  background: rgba(140, 102, 67, 0.12);
  color: #7a5332;
}

.obituary-template-warm-harvest .obituary-anchor-nav,
.obituary-template-warm-harvest .obituary-content-card,
.obituary-template-warm-harvest .obituary-portrait-card,
.obituary-template-warm-harvest .obituary-side-panel,
.obituary-template-warm-harvest .obituary-service-item,
.obituary-template-warm-harvest .obituary-highlight-pill {
  background: linear-gradient(180deg, #fffaf4 0%, #f7ede0 100%);
  border-color: rgba(140, 102, 67, 0.14);
}

.obituary-template-warm-harvest .obituary-service-notes.muted,
.obituary-template-warm-harvest .obituary-placeholder-box,
.obituary-template-warm-harvest .obit-live-preview-empty,
.obituary-template-warm-harvest .obit-live-preview-highlight,
.obituary-template-warm-harvest .obit-live-preview-service-item,
.obituary-template-warm-harvest .obit-live-preview-service-address {
  background: #fcf4ea;
  border-color: rgba(140, 102, 67, 0.14);
}

.obituary-template-meadow-grace .obituary-cover,
.obituary-template-meadow-grace .obit-live-preview-cover {
  background-color: #b8d2be;
}

.obituary-template-meadow-grace .obituary-cover-card,
.obituary-template-meadow-grace .obit-live-preview-cover-card,
.obituary-template-meadow-grace .obit-live-preview-panel {
  background: rgba(247, 252, 247, 0.88);
  border-color: rgba(50, 110, 77, 0.16);
}

.obituary-template-meadow-grace .obituary-status-pill {
  background: rgba(50, 110, 77, 0.12);
  color: #2e6a4b;
}

.obituary-template-meadow-grace .obituary-anchor-nav,
.obituary-template-meadow-grace .obituary-content-card,
.obituary-template-meadow-grace .obituary-portrait-card,
.obituary-template-meadow-grace .obituary-side-panel,
.obituary-template-meadow-grace .obituary-service-item,
.obituary-template-meadow-grace .obituary-highlight-pill {
  background: linear-gradient(180deg, #f8fdf8 0%, #eef8ef 100%);
  border-color: rgba(50, 110, 77, 0.14);
}

.obituary-template-meadow-grace .obituary-service-notes.muted,
.obituary-template-meadow-grace .obituary-placeholder-box,
.obituary-template-meadow-grace .obit-live-preview-empty,
.obituary-template-meadow-grace .obit-live-preview-highlight,
.obituary-template-meadow-grace .obit-live-preview-service-item,
.obituary-template-meadow-grace .obit-live-preview-service-address {
  background: #eff8f0;
  border-color: rgba(50, 110, 77, 0.14);
}

.obituary-template-violet-remembrance .obituary-cover,
.obituary-template-violet-remembrance .obit-live-preview-cover {
  background-color: #d5c0f0;
}

.obituary-template-violet-remembrance .obituary-cover-card,
.obituary-template-violet-remembrance .obit-live-preview-cover-card,
.obituary-template-violet-remembrance .obit-live-preview-panel {
  background: rgba(251, 248, 255, 0.88);
  border-color: rgba(101, 72, 151, 0.16);
}

.obituary-template-violet-remembrance .obituary-status-pill {
  background: rgba(101, 72, 151, 0.12);
  color: #654897;
}

.obituary-template-violet-remembrance .obituary-anchor-nav,
.obituary-template-violet-remembrance .obituary-content-card,
.obituary-template-violet-remembrance .obituary-portrait-card,
.obituary-template-violet-remembrance .obituary-side-panel,
.obituary-template-violet-remembrance .obituary-service-item,
.obituary-template-violet-remembrance .obituary-highlight-pill {
  background: linear-gradient(180deg, #fcf9ff 0%, #f3ecfb 100%);
  border-color: rgba(101, 72, 151, 0.14);
}

.obituary-template-violet-remembrance .obituary-service-notes.muted,
.obituary-template-violet-remembrance .obituary-placeholder-box,
.obituary-template-violet-remembrance .obit-live-preview-empty,
.obituary-template-violet-remembrance .obit-live-preview-highlight,
.obituary-template-violet-remembrance .obit-live-preview-service-item,
.obituary-template-violet-remembrance .obit-live-preview-service-address {
  background: #f6f0fd;
  border-color: rgba(101, 72, 151, 0.14);
}

.obituary-template-soft-floral .obit-live-preview-cover {
  background: linear-gradient(135deg, #f4dde9 0%, #eadcf7 52%, #fff8fb 100%);
}

.obituary-template-soft-floral .obit-live-preview-cover-card,
.obituary-template-soft-floral .obit-live-preview-panel {
  background: rgba(255, 249, 252, 0.9);
  border-color: rgba(146, 108, 150, 0.18);
}

.obituary-template-soft-floral .obituary-status-pill,
.obituary-template-soft-floral .obituary-editor-image-chip {
  background: rgba(146, 108, 150, 0.12);
  color: #7a4d7b;
}

.obituary-template-soft-floral .obit-live-preview-copy,
.obituary-template-soft-floral .obit-live-preview-quote,
.obituary-template-soft-floral .obit-live-preview-service-address {
  color: #594761;
}

.obituary-template-soft-floral .obit-live-preview-empty,
.obituary-template-soft-floral .obit-live-preview-highlight,
.obituary-template-soft-floral .obit-live-preview-service-item {
  background: #fbf1f7;
  border-color: rgba(146, 108, 150, 0.14);
}

.obituary-template-peaceful-sky .obit-live-preview-cover {
  background: linear-gradient(135deg, #d9ebff 0%, #b8d8f8 48%, #fff3cf 100%);
}

.obituary-template-peaceful-sky .obit-live-preview-cover-card,
.obituary-template-peaceful-sky .obit-live-preview-panel {
  background: rgba(248, 252, 255, 0.92);
  border-color: rgba(92, 132, 176, 0.16);
}

.obituary-template-peaceful-sky .obituary-status-pill,
.obituary-template-peaceful-sky .obituary-editor-image-chip {
  background: rgba(73, 120, 170, 0.12);
  color: #335f8f;
}

.obituary-template-peaceful-sky .obit-live-preview-empty,
.obituary-template-peaceful-sky .obit-live-preview-highlight,
.obituary-template-peaceful-sky .obit-live-preview-service-item {
  background: #eef6fe;
  border-color: rgba(73, 120, 170, 0.14);
}

.obituary-template-honored-service .obit-live-preview-cover {
  background: linear-gradient(135deg, #21365f 0%, #4b6696 48%, #8b2e47 100%);
}

.obituary-template-honored-service .obit-live-preview-cover-card,
.obituary-template-honored-service .obit-live-preview-panel {
  background: rgba(249, 247, 245, 0.94);
  border-color: rgba(86, 56, 84, 0.18);
}

.obituary-template-honored-service .obituary-status-pill,
.obituary-template-honored-service .obituary-editor-image-chip {
  background: rgba(139, 46, 71, 0.12);
  color: #8b2e47;
}

.obituary-template-honored-service .obit-live-preview-empty,
.obituary-template-honored-service .obit-live-preview-highlight,
.obituary-template-honored-service .obit-live-preview-service-item {
  background: #f8f1f3;
  border-color: rgba(139, 46, 71, 0.14);
}

.obituary-template-spiritual-light .obit-live-preview-cover {
  background: linear-gradient(135deg, #f2ebff 0%, #ddd4f5 48%, #fff4da 100%);
}

.obituary-template-spiritual-light .obit-live-preview-cover-card,
.obituary-template-spiritual-light .obit-live-preview-panel {
  background: rgba(255, 251, 248, 0.93);
  border-color: rgba(130, 108, 170, 0.18);
}

.obituary-template-spiritual-light .obituary-status-pill,
.obituary-template-spiritual-light .obituary-editor-image-chip {
  background: rgba(130, 108, 170, 0.12);
  color: #6d5a9d;
}

.obituary-template-spiritual-light .obit-live-preview-empty,
.obituary-template-spiritual-light .obit-live-preview-highlight,
.obituary-template-spiritual-light .obit-live-preview-service-item {
  background: #faf4ff;
  border-color: rgba(130, 108, 170, 0.14);
}

.obituary-template-meadow-remembrance .obit-live-preview-cover {
  background: linear-gradient(135deg, #dbe8d5 0%, #b5cfae 48%, #f7f2db 100%);
}

.obituary-template-meadow-remembrance .obit-live-preview-cover-card,
.obituary-template-meadow-remembrance .obit-live-preview-panel {
  background: rgba(248, 252, 246, 0.93);
  border-color: rgba(78, 117, 72, 0.18);
}

.obituary-template-meadow-remembrance .obituary-status-pill,
.obituary-template-meadow-remembrance .obituary-editor-image-chip {
  background: rgba(78, 117, 72, 0.12);
  color: #496f45;
}

.obituary-template-meadow-remembrance .obit-live-preview-empty,
.obituary-template-meadow-remembrance .obit-live-preview-highlight,
.obituary-template-meadow-remembrance .obit-live-preview-service-item {
  background: #eef6ea;
  border-color: rgba(78, 117, 72, 0.14);
}

.obituary-template-ocean-peace .obit-live-preview-cover {
  background: linear-gradient(135deg, #d7eef2 0%, #98c8d7 48%, #f6ead7 100%);
}

.obituary-template-ocean-peace .obit-live-preview-cover-card,
.obituary-template-ocean-peace .obit-live-preview-panel {
  background: rgba(246, 252, 252, 0.93);
  border-color: rgba(74, 126, 144, 0.18);
}

.obituary-template-ocean-peace .obituary-status-pill,
.obituary-template-ocean-peace .obituary-editor-image-chip {
  background: rgba(74, 126, 144, 0.12);
  color: #36687a;
}

.obituary-template-ocean-peace .obit-live-preview-empty,
.obituary-template-ocean-peace .obit-live-preview-highlight,
.obituary-template-ocean-peace .obit-live-preview-service-item {
  background: #edf8f9;
  border-color: rgba(74, 126, 144, 0.14);
}

.obituary-template-formal-monochrome .obit-live-preview-cover {
  background: linear-gradient(135deg, #2f3339 0%, #6e737b 48%, #e8e8e8 100%);
}

.obituary-template-formal-monochrome .obit-live-preview-cover-card,
.obituary-template-formal-monochrome .obit-live-preview-panel {
  background: rgba(250, 250, 250, 0.96);
  border-color: rgba(92, 96, 104, 0.2);
}

.obituary-template-formal-monochrome .obituary-status-pill,
.obituary-template-formal-monochrome .obituary-editor-image-chip {
  background: rgba(92, 96, 104, 0.12);
  color: #45484e;
}

.obituary-template-formal-monochrome .obit-live-preview-copy,
.obituary-template-formal-monochrome .obit-live-preview-quote,
.obituary-template-formal-monochrome .obit-live-preview-service-address {
  color: #2d3135;
}

.obituary-template-formal-monochrome .obit-live-preview-empty,
.obituary-template-formal-monochrome .obit-live-preview-highlight,
.obituary-template-formal-monochrome .obit-live-preview-service-item {
  background: #f2f2f2;
  border-color: rgba(92, 96, 104, 0.16);
}

.app body, body.app {
  background: #f5f0ea;
}

.app .navbar {
  border-bottom: 1px solid var(--border) !important;
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(24, 39, 75, 0.06);
}

.app .navbar-brand {
  font-weight: 700;
  color: var(--text) !important;
}

.app .nav-link {
  font-weight: 600;
  color: var(--text) !important;
}

.app .nav-link.active,
.app .nav-link:hover {
  color: var(--primary) !important;
}

.app .container {
  max-width: 1100px;
}

.app .card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.08);
}

.app .card h5,
.app .card h6 {
  font-weight: 700;
}

.app .text-muted {
  color: var(--muted) !important;
}

.app .btn-primary {
  background: linear-gradient(180deg, #9572ea 0%, var(--primary) 55%, #5a36a6 100%);
  border-color: #5a36a6;
  color: #fff;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(61, 23, 102, 0.24),
    0 10px 22px rgba(95, 63, 177, 0.18);
}

.app .btn-primary:hover {
  background: linear-gradient(180deg, #8764df 0%, var(--primary-dark) 58%, #48288f 100%);
  border-color: #48288f;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -2px 0 rgba(48, 20, 86, 0.24),
    0 14px 28px rgba(95, 63, 177, 0.24);
}

.app .btn-outline-primary,
.app .btn-outline-light,
.app .btn-outline-secondary {
  border-color: rgba(122, 85, 205, 0.26);
  color: var(--primary-dark);
  font-weight: 700;
  background: linear-gradient(180deg, #fffdf9 0%, #f6eefb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(122, 85, 205, 0.08),
    0 8px 18px rgba(61, 23, 102, 0.08);
}

.app .btn-outline-info {
  border-color: rgba(122, 85, 205, 0.26);
  color: var(--primary-dark);
  font-weight: 700;
}

.app .btn-outline-danger {
  border-color: rgba(139, 36, 69, 0.28);
  color: #8b2445;
  font-weight: 700;
}

.app .btn-outline-primary:hover,
.app .btn-outline-light:hover,
.app .btn-outline-secondary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #efe7fa 100%);
  border-color: rgba(122, 85, 205, 0.4);
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(122, 85, 205, 0.12),
    0 12px 24px rgba(61, 23, 102, 0.12);
}

.app .btn-outline-info:hover {
  border-color: rgba(122, 85, 205, 0.4);
  color: var(--primary-dark);
}

.app .btn-outline-danger:hover {
  border-color: rgba(139, 36, 69, 0.42);
  color: #761d39;
}

.app .form-control,
.app .form-select,
.app .form-check-input {
  border-radius: 10px;
  border-color: var(--border);
  font-size: 1rem;
}

.app .form-control:focus,
.app .form-select:focus,
.app .form-check-input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 0.2rem rgba(255, 191, 71, 0.35);
}

.app table {
  border-color: var(--border);
}

.app .table thead th {
  background: #f0e8e2;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.app .alert {
  border-radius: 12px;
}

/* Modern logged-in app shell */
body.app-modern {
  background: #f6f1ea;
  color: #241d26;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.app-modern .app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.app-modern .app-sidebar {
  background: linear-gradient(180deg, #4f2f88 0%, #6b46b6 54%, #7a55cd 100%);
  border-right: 1px solid rgba(82, 49, 135, 0.65);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.06), 18px 0 40px rgba(70, 42, 118, 0.16);
}

.app-modern .app-brand {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  align-items: center;
  width: 100%;
  max-width: 214px;
  margin: 0 auto 1.6rem;
  color: #241d26;
  text-decoration: none;
  padding: 0.45rem 0.6rem 0.48rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(236, 226, 248, 0.92);
  box-shadow: 0 16px 30px rgba(43, 26, 74, 0.22);
}
.app-modern .app-brand img {
  width: 100%;
  max-width: 188px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.app-modern .app-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.app-modern .app-brand-subtitle,
.app-modern .app-sidebar-section,
.app-modern .app-user-role,
.app-modern .app-topbar-kicker {
  color: rgba(245, 239, 255, 0.82);
  font-size: 0.9rem;
}
.app-modern .app-sidebar-section {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.app-modern .app-sidebar-groups {
  display: grid;
  gap: 0.85rem;
}
.app-modern .app-sidebar-group {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.app-modern .app-sidebar-group.active-group,
.app-modern .app-sidebar-group[open] {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}
.app-modern .app-sidebar-group-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.9rem 1rem;
  cursor: pointer;
  user-select: none;
  border-radius: 20px;
}
.app-modern .app-sidebar-group-summary::-webkit-details-marker {
  display: none;
}
.app-modern .app-sidebar-group-summary:hover {
  background: rgba(255,255,255,0.08);
}
.app-modern .app-sidebar-group-title {
  color: rgba(245, 239, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}
.app-modern .app-sidebar-group-meta {
  margin-left: auto;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 700;
}
.app-modern .app-sidebar-group-chevron {
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.app-modern .app-sidebar-group[open] .app-sidebar-group-chevron {
  transform: rotate(180deg);
}
.app-modern .app-sidebar-group .app-nav {
  padding: 0 0.45rem 0.45rem;
}
.app-modern .app-brand-title {
  display: none;
}
.app-modern .app-brand-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.app-modern .app-nav {
  display: grid;
  gap: 0.45rem;
}
.app-modern .app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}
.app-modern .app-nav-link:hover,
.app-modern .app-nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(43, 26, 74, 0.18);
  text-decoration: none;
}
.app-modern .app-nav-icon {
  width: 28px;
  text-align: center;
  opacity: 0.92;
}
.app-modern .app-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.9rem 1rem;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.app-modern .app-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A64FF 0%, #B23BFF 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.app-modern .app-user-name {
  font-weight: 700;
  color: #ffffff;
}
.app-modern .app-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(43,26,74,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.app-modern .app-logout:hover {
  color: #ffffff;
  text-decoration: none;
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 14px 30px rgba(43,26,74,0.24);
  transform: translateY(-1px);
}

.app-modern .app-main-shell {
  padding: 1.35rem 1.6rem 1.2rem;
}
.app-modern .app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.app-modern .app-topbar-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  margin: 0.15rem 0 0;
}
.app-modern .app-topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.app-modern .app-topbar-alerts {
  position: relative;
}
.app-modern .app-topbar-alert-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(123, 85, 205, 0.16);
  background: rgba(255,255,255,0.92);
  color: #2f2740;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(93, 67, 122, 0.12);
}
.app-modern .app-topbar-alert-button:hover {
  background: #fff;
}
.app-modern .app-topbar-alert-icon {
  font-size: 1rem;
  line-height: 1;
}
.app-modern .app-topbar-alert-badge {
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7a55cd;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.app-modern .app-topbar-alert-panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: min(24rem, 88vw);
  background: rgba(255,255,255,0.98);
  border: 1px solid #eadfd8;
  border-radius: 1.35rem;
  box-shadow: 0 24px 50px rgba(73, 51, 104, 0.18);
  padding: 1rem;
  z-index: 30;
}
.app-modern .app-topbar-alert-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.app-modern .app-topbar-alert-panel-kicker {
  color: #907c73;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.app-modern .app-topbar-alert-panel-title {
  color: #241d26;
  font-size: 1rem;
  font-weight: 700;
}
.app-modern .app-topbar-alert-text-button {
  border: 0;
  background: transparent;
  color: #7a55cd;
  font-weight: 700;
  padding: 0;
}
.app-modern .app-topbar-alert-list {
  display: grid;
  gap: 0.7rem;
}
.app-modern .app-topbar-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #fbf8f5;
  border: 1px solid #efe5de;
}
.app-modern .app-topbar-alert-item.unread {
  background: #f5f0ff;
  border-color: #dbcafc;
}
.app-modern .app-topbar-alert-item.severity-warning {
  background: #fff7eb;
  border-color: #f2d8ad;
}
.app-modern .app-topbar-alert-item.severity-urgent {
  background: #fff0ef;
  border-color: #f3c2bc;
}
.app-modern .app-topbar-alert-link {
  display: flex;
  gap: 0.7rem;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.app-modern .app-topbar-alert-link:hover {
  color: inherit;
  text-decoration: none;
}
.app-modern .app-topbar-alert-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #7a55cd;
  margin-top: 0.3rem;
  box-shadow: 0 0 0 5px rgba(122, 85, 205, 0.12);
  flex: 0 0 auto;
}
.app-modern .app-topbar-alert-item.severity-success .app-topbar-alert-dot { background: #3f8c5a; box-shadow: 0 0 0 5px rgba(63, 140, 90, 0.12); }
.app-modern .app-topbar-alert-item.severity-warning .app-topbar-alert-dot { background: #c18a27; box-shadow: 0 0 0 5px rgba(193, 138, 39, 0.12); }
.app-modern .app-topbar-alert-item.severity-urgent .app-topbar-alert-dot { background: #cf5b50; box-shadow: 0 0 0 5px rgba(207, 91, 80, 0.12); }
.app-modern .app-topbar-alert-copy {
  display: grid;
  gap: 0.2rem;
}
.app-modern .app-topbar-alert-title {
  color: #241d26;
  font-weight: 700;
  line-height: 1.3;
}
.app-modern .app-topbar-alert-body {
  color: #6f5c56;
  font-size: 0.92rem;
  line-height: 1.4;
}
.app-modern .app-topbar-alert-meta {
  color: #9a877e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.app-modern .app-topbar-alert-dismiss {
  border: 0;
  background: transparent;
  color: #a38f86;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.15rem 0.1rem;
}
.app-modern .app-topbar-alert-empty {
  padding: 1rem 0.25rem 0.35rem;
  color: #7e6b64;
  font-size: 0.95rem;
}
.app-modern .is-hidden {
  display: none !important;
}
.app-modern .app-main-content { padding-bottom: 1.5rem; }
.app-modern .app-footer {
  color: #8a7971;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  font-size: 0.92rem;
}

.app-modern .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.app-modern .py-5 { padding-top: 0 !important; padding-bottom: 0 !important; }
.app-modern .card {
  border: 1px solid #e7ddd7;
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(104, 78, 138, 0.10);
  background: rgba(255,255,255,0.98);
}
.app-modern .btn {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.app-modern .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.app-modern .btn-primary,
.app-modern .btn-success {
  background: linear-gradient(180deg, #9572ea 0%, var(--primary) 55%, #5a36a6 100%);
  border-color: #5a36a6;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(61, 23, 102, 0.24),
    0 10px 22px rgba(95, 63, 177, 0.18);
}
.app-modern .btn-primary:hover,
.app-modern .btn-success:hover {
  background: linear-gradient(180deg, #8764df 0%, var(--primary-dark) 58%, #48288f 100%);
  border-color: #48288f;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -2px 0 rgba(48, 20, 86, 0.24),
    0 14px 28px rgba(95, 63, 177, 0.24);
}
.app-modern .btn-outline-light,
.app-modern .btn-outline-secondary,
.app-modern .btn-outline-info,
.app-modern .btn-outline-danger {
  background: linear-gradient(180deg, #fffdf9 0%, #f6eefb 100%);
  border-color: rgba(122, 85, 205, 0.26);
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(122, 85, 205, 0.08),
    0 8px 18px rgba(61, 23, 102, 0.08);
}
.app-modern .btn-outline-info {
  color: var(--primary-dark);
  border-color: rgba(122, 85, 205, 0.26);
}
.app-modern .btn-outline-danger {
  color: #8b2445;
  border-color: rgba(139, 36, 69, 0.28);
}
.app-modern .btn-outline-light:hover,
.app-modern .btn-outline-secondary:hover,
.app-modern .btn-outline-info:hover,
.app-modern .btn-outline-danger:hover {
  background: linear-gradient(180deg, #ffffff 0%, #efe7fa 100%);
  border-color: rgba(122, 85, 205, 0.4);
  color: var(--primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(122, 85, 205, 0.12),
    0 12px 24px rgba(61, 23, 102, 0.12);
}
.app-modern .btn-outline-info:hover {
  color: var(--primary-dark);
  border-color: rgba(122, 85, 205, 0.4);
}
.app-modern .btn-outline-danger:hover {
  color: #761d39;
  border-color: rgba(139, 36, 69, 0.42);
}
.app-modern .form-control,
.app-modern .form-select {
  border-radius: 16px;
  border-color: #e7ddd7;
  min-height: 48px;
}
.app-modern .table {
  --bs-table-bg: transparent;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.app-modern .table thead th {
  background: transparent;
  border: none;
  color: #8a7971;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.app-modern .table tbody tr {
  background: #fff;
  box-shadow: 0 10px 30px rgba(37,52,66,0.05);
}
.app-modern .table tbody td {
  border-top: none;
  border-bottom: none;
  vertical-align: middle;
}
.app-modern .table tbody tr td:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.app-modern .table tbody tr td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-modern .table-responsive .table {
  min-width: 720px;
}
.table-cell-wrap {
  max-width: 260px;
  word-break: break-word;
}

.group-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22,35,45,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.group-modal-dialog {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(37,52,66,0.18);
}
.group-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.group-modal-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #1f3141;
}
.group-manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
}
.group-suggestions {
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
  border: 1px solid #ece2d6;
  padding: 6px;
  background: #f8f5ee;
  border-radius: 16px;
}
.group-suggestion-item {
  cursor: pointer;
}

.admin-file-actions-col {
  width: 340px;
}
.admin-file-row-form {
  row-gap: 0.35rem;
}
.admin-file-inline-input {
  min-width: 140px;
  max-width: 180px;
}
.admin-file-inline-select {
  min-width: 150px;
  max-width: 190px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.page-hero-main,
.page-hero-side,
.panel-card,
.section-card,
.stat-card-modern,
.quick-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid #ebe3d7;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(76,49,207,0.08);
}
.page-hero-main,
.page-hero-side,
.panel-card,
.section-card,
.quick-card { padding: 1.2rem; }
.page-overline {
  color: #8a7971;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}
.page-title-modern {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 0.65rem;
}
.page-text-modern { color: #6b7380; max-width: 62ch; font-size: 0.95rem; }
.pill-row,
.quick-links-grid,
.stats-modern,
.message-summary-grid,
.message-board-grid { display: grid; gap: 1rem; }
.pill-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 0.8rem;
}
.stat-pill {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e8dfd6;
  border-radius: 22px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 28px rgba(76,49,207,0.06);
}
.stat-pill .label,
.metric-label {
  color: #8a7971;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-pill .value,
.metric-value { font-size: 1.2rem; font-weight: 800; color: #241d26; }
.sidebar-note {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e8dfd6;
  box-shadow: 0 12px 28px rgba(76,49,207,0.06);
}
.stats-modern { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.stat-card-modern { padding: 1.1rem; }
.metric-trend { color: #6b7380; font-size: 0.88rem; margin-top: 0.35rem; }
.quick-links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-card-title { font-family: Georgia, "Times New Roman", serif; color: #241d26; font-size: 1.15rem; margin-bottom: 0.45rem; }
.quick-card p { color: #6f6872; min-height: 64px; font-size: 0.92rem; }
.quick-card a.btn { margin-top: 0.35rem; }
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #efe5fb;
  color: #8e42f8;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.section-card h3,
.panel-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  margin-bottom: 0.8rem;
}
.message-board-grid { grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.9fr); margin-top: 1.4rem; }
.message-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.2rem; }
.message-summary-card {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 1.1rem;
  border: 1px solid #e8dfd6;
  box-shadow: 0 12px 28px rgba(76,49,207,0.06);
}
.inline-panel-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e8dfd6;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(76,49,207,0.06);
}
.message-list-card { padding: 1.4rem; }
.message-list-card + .message-list-card { margin-top: 1rem; }
.message-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.message-section-title-wrap {
  display: grid;
  gap: 0.28rem;
}
.message-section-title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 800;
  color: #2f2448;
}
.message-side-title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 800;
  color: #2f2448;
}
.message-section-copy {
  color: #6d6478;
  line-height: 1.5;
}
.message-empty-state {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem;
  border: 1px dashed #dfd0c4;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1ea 100%);
}
.message-empty-state h4 {
  margin: 0;
  color: #241d26;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}
.message-empty-state p {
  margin: 0;
  color: #6f5c56;
  line-height: 1.55;
}
.compose-stack { display: grid; gap: 0.85rem; }
.compose-stack .btn { justify-content: center; }
.helper-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.helper-list li {
  background: #f9f3ed;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  border: 1px solid #e7ddd7;
}
.message-type-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f2ebe8;
  color: #30576b;
  font-weight: 700;
  font-size: 0.82rem;
}
.message-status-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f0e6ff;
  color: #7a55cd;
  font-weight: 700;
  font-size: 0.82rem;
}
.message-status-pill.pending { background: #efe5fb; color: #8e42f8; }
.message-status-pill.success { background: #e8f6ee; color: #26724a; }
.message-status-pill.warning { background: #fff1e8; color: #b35a1f; }
.message-actions-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Recipients workspace */
.recipients-layout-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.88fr);
  align-items: start;
}

.recipient-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recipient-section-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  background: rgba(122, 85, 205, 0.08);
  color: #6949b8;
  font-weight: 800;
  white-space: nowrap;
}

.recipient-list {
  display: grid;
  gap: 1rem;
}

.recipient-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid #eaded4;
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(248,241,234,0.93) 100%);
  box-shadow: 0 12px 28px rgba(76,49,207,0.06);
}

.recipient-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.recipient-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.recipient-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #f3ecff 0%, #eee2ff 100%);
  color: #6f49bf;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 10px 22px rgba(122,85,205,0.14);
}

.recipient-card__eyebrow {
  color: #8a7971;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}

.recipient-card h4 {
  margin: 0 0 0.45rem;
  color: #241d26;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.recipient-card__subline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recipient-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.recipient-chip--relationship {
  background: #f3eefe;
  color: #6949b8;
}

.recipient-chip--muted {
  background: #f6efe8;
  color: #7c655e;
}

.recipient-card__actions {
  justify-content: flex-end;
}

.recipient-card__actions form {
  margin: 0;
}

.recipient-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.recipient-card__meta div,
.recipient-card__detail {
  background: rgba(255,255,255,0.78);
  border: 1px solid #ebe1d8;
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
}

.recipient-card__meta strong,
.recipient-card__detail strong {
  display: block;
  color: #8c776e;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.28rem;
}

.recipient-card__meta span,
.recipient-card__detail span {
  color: #241d26;
  font-weight: 600;
  line-height: 1.5;
}

.recipients-empty-state {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding: 1.4rem;
  border: 1px dashed #dbcab8;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1ea 100%);
}

.recipients-empty-state__icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #f4edff 0%, #efe2ff 100%);
  color: #6f49bf;
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 10px 22px rgba(122,85,205,0.12);
}

.recipients-empty-state h4 {
  margin: 0;
  color: #241d26;
  font-family: Georgia, "Times New Roman", serif;
}

.recipients-empty-state p,
.recipient-empty-state__hint {
  margin: 0;
  color: #6f5c56;
  line-height: 1.55;
}

.recipient-empty-state__hint {
  font-weight: 600;
}

.recipient-form-card .form-text {
  color: #8d7a72;
}

@media (max-width: 980px) {
  .recipients-layout-grid,
  .recipient-card__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .recipient-section-head,
  .recipient-card__top {
    flex-direction: column;
  }

  .recipient-card__actions {
    justify-content: flex-start;
  }
}

/* Direct obituary editor */
.obituary-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.obituary-editor-canvas-shell,
.obituary-editor-workflow-shell,
.obituary-editor-inspector {
  padding: 1.25rem;
}

.obituary-editor-canvas-topbar,
.obituary-editor-inspector-head,
.obituary-editor-workflow-head,
.obituary-editor-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.obituary-editor-workflow-shell {
  order: -1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
  z-index: 8;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-shadow: 0 24px 52px rgba(37, 39, 77, 0.12);
}

.obituary-editor-workflow-summary {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.obituary-editor-active-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef4ff 0%, #f4ecff 100%);
  color: #30576b;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

.obituary-editor-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.obituary-editor-panel-tab,
.obituary-editor-step-card {
  border: 1px solid #e7ddd7;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #2f4f72;
  border-radius: 24px;
  padding: 1rem 1.05rem;
  font-weight: 700;
  text-align: left;
}

.obituary-editor-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 110px;
}

.obituary-editor-step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(47, 86, 179, 0.10);
  color: #21436f;
  font-weight: 800;
  flex: 0 0 auto;
}

.obituary-editor-step-copy {
  display: grid;
  gap: 0.2rem;
}

.obituary-editor-step-title {
  font-size: 1rem;
  color: #1f334d;
}

.obituary-editor-step-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #58708b;
  font-weight: 600;
}

.obituary-editor-panel-tab.active,
.obituary-editor-step-card.active {
  background: linear-gradient(135deg, #eaf2ff 0%, #f5edff 100%);
  border-color: rgba(47, 86, 179, 0.34);
  box-shadow: 0 10px 22px rgba(35, 67, 145, 0.10);
}

.obituary-editor-step-card.active .obituary-editor-step-number {
  background: linear-gradient(135deg, #2f56b3 0%, #7a55cd 100%);
  color: #fff;
}

.obituary-editor-step-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35, 67, 145, 0.12);
}

.obituary-editor-stage {
  border: 1px solid #e7ddd7;
  background: linear-gradient(180deg, #fffdfb 0%, #f7f3ee 100%);
  border-radius: 30px;
  padding: 1.2rem 1.2rem 0;
}

.obituary-editor-stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.obituary-editor-stage-note {
  border-radius: 18px;
  background: rgba(239, 245, 255, 0.85);
  border: 1px solid rgba(47, 86, 179, 0.14);
  color: #48627f;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.obituary-editor-panel {
  display: none;
}

.obituary-editor-panel.is-active {
  display: block;
}

.obituary-editor-panel-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.obituary-editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.obituary-editor-field-span-2 {
  grid-column: span 2;
}

.obituary-editor-field-stack {
  display: grid;
  gap: 1rem;
}

.obituary-editor-workflow-shell .form-control {
  min-height: 54px;
  font-size: 1rem;
  padding: 0.8rem 1rem;
}

.obituary-editor-workflow-shell textarea.form-control {
  min-height: 160px;
}

.obituary-editor-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.obituary-editor-highlight-card,
.obituary-editor-upload-box,
.obituary-editor-publish-box {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
  border: 1px solid #e7ddd7;
  border-radius: 20px;
  padding: 1rem;
}

.obituary-editor-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.obituary-editor-upload-box-full {
  grid-column: span 2;
}

.obituary-editor-submit-bar {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid #e4eaf6;
}

.obituary-editor-share-stack {
  display: grid;
  gap: 0.6rem;
}

.obituary-editor-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.obituary-editor-qr-wrap {
  margin-top: 1rem;
  border: 1px solid #e7ddd7;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf9 0%, #f7f0ea 100%);
  padding: 1rem;
  display: grid;
  place-items: center;
  min-height: 252px;
}

.obituary-editor-qr-wrap img {
  width: 220px;
  max-width: 100%;
  border-radius: 18px;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid rgba(121, 140, 177, 0.22);
}

.obituary-editor-qr-wrap.is-empty {
  color: var(--muted);
}

.obituary-editor-qr-wrap.is-empty::before {
  content: "QR code will appear after save";
}

.obituary-editor-qr-wrap.is-empty img {
  display: none;
}

.obituary-editor-theme-strip-wrap {
  margin-bottom: 1rem;
}

.obituary-editor-theme-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.obituary-editor-theme-strip .obit-template-option {
  padding: 0.8rem;
}

.obituary-editor-theme-strip .obit-template-preview {
  height: 120px;
}

.obituary-editor-canvas {
  overflow: visible;
}

.obituary-editor-canvas-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.obituary-editor-target {
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.18s ease, outline-color 0.18s ease, transform 0.18s ease;
}

.obituary-editor-target[data-edit-label]::before {
  content: attr(data-edit-label);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  background: rgba(12, 20, 44, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(12, 20, 44, 0.16);
}

.obituary-editor-target:hover {
  outline: 2px dashed rgba(47, 86, 179, 0.28);
  outline-offset: 6px;
}

.is-active-edit-target {
  outline: 2px solid rgba(47, 86, 179, 0.30);
  outline-offset: 6px;
}

.obituary-editor-image-target {
  position: relative;
}

.obituary-editor-image-chip {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(12, 20, 44, 0.56);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.obituary-editor-gallery-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.obituary-editor-gallery-slot {
  position: relative;
  min-height: 170px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbff 0%, #eff4ff 100%);
  border: 1px solid rgba(121, 140, 177, 0.20);
  display: flex;
  align-items: stretch;
}

.obituary-editor-gallery-slot img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: none;
}

.obituary-editor-gallery-slot .obituary-placeholder-box {
  width: 100%;
  min-height: 170px;
  border: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.obituary-editor-gallery-slot-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #30425c;
  font-size: 0.82rem;
  font-weight: 800;
}

.obituary-editor-gallery-action-row {
  margin-top: 1rem;
}

.obituary-editor-template-grid {
  grid-template-columns: 1fr;
}

.obituary-editor-workflow-shell {
  order: -1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1.5rem;
  position: static;
  top: auto;
  z-index: auto;
  max-height: none;
  overflow: visible;
  box-shadow: 0 24px 52px rgba(37, 39, 77, 0.12);
}

.obituary-editor-canvas-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.obituary-editor-preview-note,
.obituary-editor-guidance-box {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(47, 86, 179, 0.14);
  background: rgba(239, 245, 255, 0.92);
  color: #48627f;
  line-height: 1.7;
  font-size: 1rem;
}

.obituary-editor-guidance-box strong {
  color: #25456f;
}

.obituary-editor-guidance-box--soft {
  background: rgba(251, 246, 240, 0.92);
  border-color: rgba(191, 156, 112, 0.18);
  color: #68523f;
}

.obituary-editor-step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.obituary-editor-step-card {
  min-height: 138px;
  border-radius: 26px;
  padding: 1.2rem 1.15rem;
}

.obituary-editor-step-title {
  font-size: 1.1rem;
}

.obituary-editor-step-text {
  font-size: 1rem;
  line-height: 1.5;
}

.obituary-editor-stage {
  border-radius: 32px;
  padding: 1.45rem 1.45rem 0;
}

.obituary-editor-stage-note {
  font-size: 1.02rem;
  line-height: 1.65;
}

.obituary-editor-workflow-shell .form-label {
  font-size: 0.98rem;
  font-weight: 700;
}

.obituary-editor-workflow-shell .form-control {
  min-height: 60px;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
}

.obituary-editor-workflow-shell textarea.form-control {
  min-height: 185px;
}

.obituary-editor-field-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.obituary-editor-field-span-2 {
  grid-column: span 1;
}

.obituary-editor-design-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.obituary-editor-design-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 86, 179, 0.08);
  color: #31557a;
  padding: 0.48rem 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.obituary-editor-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.obituary-editor-design-card {
  display: grid;
  gap: 0.8rem;
  border-radius: 28px;
  padding: 1.1rem;
  border: 1px solid #e7ddd7;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f4 100%);
  box-shadow: 0 12px 28px rgba(35, 67, 145, 0.08);
}

.obituary-editor-design-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.obituary-editor-design-badge,
.obituary-editor-design-tone {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.obituary-editor-design-badge {
  background: linear-gradient(135deg, #2f56b3 0%, #7a55cd 100%);
  color: #fff;
}

.obituary-editor-design-tone {
  background: rgba(47, 86, 179, 0.10);
  color: #31557a;
}

.obituary-editor-design-preview {
  height: 175px;
}

.obituary-editor-design-copy {
  color: #31465f;
  font-size: 1rem;
  line-height: 1.6;
}

.obituary-editor-design-fit {
  color: #607488;
  font-size: 0.94rem;
  line-height: 1.55;
}

.obituary-editor-design-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  background: rgba(47, 86, 179, 0.08);
  color: #24466f;
  font-weight: 800;
  font-size: 0.98rem;
}

.obituary-editor-design-card.active {
  border-color: rgba(47, 86, 179, 0.34);
  box-shadow: 0 16px 36px rgba(35, 67, 145, 0.16);
  background: linear-gradient(180deg, #f7fbff 0%, #f9f2ff 100%);
}

.obituary-editor-panel {
  display: none;
}

.obituary-editor-panel.is-active {
  display: block;
}

.obituary-editor-target {
  scroll-margin-top: 1rem;
}

.obituary-editor-target:hover {
  outline: 2px dashed rgba(47, 86, 179, 0.24);
  outline-offset: 6px;
}

.is-active-edit-target {
  outline: 2px solid rgba(47, 86, 179, 0.26);
  outline-offset: 6px;
}

@media (max-width: 900px) {
  .obituary-editor-design-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .obituary-editor-step-grid {
    grid-template-columns: 1fr;
  }

  .obituary-editor-workflow-shell {
    padding: 1.1rem;
  }
}

.obituary-directory-hero-grid {
  align-items: stretch;
}

.obituary-directory-search {
  display: grid;
  gap: 0.85rem;
}

.obituary-directory-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.obituary-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.obituary-directory-card {
  background: #fff;
  border: 1px solid #e7ddd7;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(24,39,75,0.08);
}

.obituary-directory-card-cover {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.obituary-directory-card-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.obituary-directory-card-body {
  padding: 1.2rem;
}

.obituary-directory-card-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.obituary-directory-card-portrait {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(24,39,75,0.14);
}

.obituary-directory-card-head h2 {
  margin: 0 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.obituary-directory-card-head h2 a {
  color: #241d26;
}

.obituary-directory-card-subtitle,
.obituary-directory-card-dates {
  color: var(--muted);
}

.obituary-directory-card-meta {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7ff 100%);
  border: 1px solid #e7ddd7;
  margin-bottom: 1rem;
}

.obituary-directory-card-summary {
  color: #324763;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.obituary-directory-card-summary.is-empty {
  color: var(--muted);
}

.obituary-directory-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.obituary-directory-empty {
  padding: 2rem;
}

/* Luxe homepage concept */
body.home-luxe {
  background:
    radial-gradient(circle at 15% 20%, rgba(171, 131, 230, 0.18), transparent 26%),
    radial-gradient(circle at 88% 38%, rgba(206, 166, 110, 0.14), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(146, 120, 224, 0.14), transparent 24%),
    linear-gradient(180deg, #f6f1e9 0%, #f8f5ef 48%, #f4efe7 100%);
  color: #221f22;
}

.home-luxe .site-header {
  background: rgba(250, 247, 242, 0.76);
  border-bottom: 1px solid rgba(94, 76, 126, 0.12);
  backdrop-filter: blur(10px);
}

.home-luxe .site-nav a,
.home-luxe .logo {
  color: #241f27;
}

.home-luxe .logo-img {
  width: auto;
  height: 92px;
  flex: 0 0 auto;
}

.home-luxe .logo {
  gap: 0;
  font-size: inherit;
}

.home-luxe .nav-cta,
.home-luxe .btn-primary {
  background: linear-gradient(135deg, #7f59d4 0%, #8a63d8 45%, #6f49c6 100%);
  border-color: #6f49c6;
  box-shadow: 0 12px 24px rgba(111, 73, 198, 0.22);
}

.home-luxe .nav-cta:hover,
.home-luxe .btn-primary:hover {
  background: linear-gradient(135deg, #724bc9 0%, #7c56cf 45%, #663ebe 100%);
}

.home-luxe .btn-outline {
  border-color: rgba(106, 84, 154, 0.22);
  color: #5f4a90;
  background: rgba(255,255,255,0.75);
}

.home-luxe-hero {
  padding: 3.5rem 0 2.5rem;
}

.home-luxe-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2rem;
}

.home-luxe-kicker,
.home-luxe-section-intro .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(111, 73, 198, 0.12);
  color: #6d58a4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-luxe-intro h1,
.home-luxe-section-intro h2,
.home-luxe-stage-overlay h2,
.home-luxe-final-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #1f171d;
}

.home-luxe-intro h1 {
  font-size: clamp(3.3rem, 8vw, 5.9rem);
  line-height: 0.95;
  margin: 1rem 0 1rem;
}

.home-luxe-intro p {
  color: #5f575d;
  font-size: 1.12rem;
  max-width: 42rem;
  margin: 0 auto;
}

.home-luxe-stage {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(114, 89, 170, 0.12);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(83, 65, 112, 0.12);
}

.home-luxe-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(114, 89, 170, 0.10);
}

.home-luxe-stage-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #281e2d;
}

.home-luxe-stage-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.home-luxe-stage-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: #231d26;
}

.home-luxe-stage-brand-tag {
  color: #665d67;
  font-size: 0.95rem;
}

.home-luxe-stage-top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.home-luxe-stage-hero {
  min-height: 430px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.home-luxe-stage-overlay {
  max-width: 760px;
  text-align: center;
}

.home-luxe-soft-badge {
  background: rgba(255,255,255,0.72);
  color: #6c58a8;
  border: 1px solid rgba(111, 73, 198, 0.12);
}

.home-luxe-stage-overlay h2 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.94;
  margin: 1rem 0 1rem;
  text-shadow: 0 10px 24px rgba(255,255,255,0.18);
}

.home-luxe-stage-overlay p {
  color: rgba(41, 28, 39, 0.84);
  max-width: 38rem;
  margin: 0 auto;
}

.home-luxe-hero-actions {
  justify-content: center;
  margin-top: 1.4rem;
}

.home-luxe-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.86) 0%, rgba(249, 245, 239, 0.96) 100%);
}

.home-luxe-feature-card,
.home-luxe-process-card,
.home-luxe-collection-card,
.home-luxe-plan-card,
.home-luxe-final-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(114, 89, 170, 0.10);
  border-radius: 26px;
  box-shadow: 0 18px 36px rgba(70, 51, 97, 0.08);
}

.home-luxe-feature-card {
  padding: 1.2rem;
}

.home-luxe-feature-card-accent {
  background: linear-gradient(135deg, #b99af0 0%, #a983ea 100%);
  color: #17131a;
}

.home-luxe-feature-card-accent p,
.home-luxe-feature-card-accent h3,
.home-luxe-feature-card-accent .home-luxe-feature-icon {
  color: #17131a;
  text-shadow: none;
}

.home-luxe-feature-card-accent .home-luxe-feature-icon {
  background: rgba(255,255,255,0.34);
}

.home-luxe-feature-icon,
.home-luxe-process-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(116, 92, 181, 0.10);
  color: #7357b9;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.home-luxe-process-section,
.home-luxe-collection-section,
.home-luxe-plan-section,
.home-luxe-final-section {
  padding: 3rem 0;
}

.home-luxe-section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.75rem;
}

.home-luxe-section-intro h2 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  margin: 1rem 0 0.75rem;
}

.home-luxe-section-intro p {
  color: #5e565d;
}

.home-luxe-process-grid,
.home-luxe-collection-grid,
.home-luxe-plan-grid {
  display: grid;
  gap: 1.15rem;
}

.home-luxe-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-luxe-process-card,
.home-luxe-collection-card,
.home-luxe-plan-card {
  padding: 1.5rem;
}

.home-luxe-process-card p,
.home-luxe-collection-card p,
.home-luxe-plan-card p,
.home-luxe-feature-card p {
  color: #60585f;
}

.home-luxe-collection-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-luxe-collection-card-accent {
  background: linear-gradient(180deg, rgba(143, 111, 213, 0.14) 0%, rgba(255,255,255,0.9) 100%);
}

.home-luxe-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-luxe-plan-name {
  color: #6e58a6;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.home-luxe-plan-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.8rem 0;
  color: #20181d;
}

.home-luxe-plan-price span {
  font-size: 1rem;
  color: #69606a;
}

.home-luxe-plan-card ul {
  padding-left: 1.1rem;
  color: #564f57;
}

.home-luxe-final-card {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-luxe-final-card p {
  color: #5e565d;
  max-width: 40rem;
}

.home-luxe-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Dashboard mockups */
.dashboard-mockup-shell {
  display: grid;
  gap: 1.25rem;
}

.dashboard-mockup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-mockup-hero-note,
.dashboard-mockup-main-card,
.dashboard-mockup-stat-card,
.dashboard-mockup-panel,
.dashboard-mockup-mini-card,
.dashboard-mockup-mini-stats,
.dashboard-mockup-panel-accent {
  background: rgba(255,250,245,0.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 38px rgba(96, 74, 122, 0.08);
}

.dashboard-mockup-hero-note,
.dashboard-mockup-main-card,
.dashboard-mockup-panel,
.dashboard-mockup-panel-accent { padding: 1.5rem; }

.dashboard-mockup-hero-note {
  color: var(--muted);
}

.dashboard-mockup-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 260px;
  gap: 1rem;
}

.dashboard-mockup-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.dashboard-mockup-action-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #f7efe8 100%);
  border: 1px solid var(--border);
  color: var(--text);
}

.dashboard-mockup-action-card:hover {
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(96, 74, 122, 0.10);
}

.dashboard-mockup-action-card strong,
.dashboard-mockup-action-card span {
  display: block;
}

.dashboard-mockup-action-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard-mockup-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(122, 85, 205, 0.12);
  color: var(--primary);
  font-size: 1.1rem;
  flex: 0 0 42px;
}

.dashboard-mockup-side-stack {
  display: grid;
  gap: 0.85rem;
}

.dashboard-mockup-stat-card {
  padding: 1.15rem;
}

.dashboard-mockup-stat-card .label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.dashboard-mockup-stat-card .value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  color: var(--text);
}

.dashboard-mockup-secondary-grid,
.dashboard-mockup-guided-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-mockup-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-mockup-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3ebe6 100%);
  border: 1px solid rgba(122, 85, 205, 0.18);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(96, 74, 122, 0.08);
}

.dashboard-mockup-chip:hover {
  text-decoration: none;
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(96, 74, 122, 0.12);
}

.dashboard-mockup-guided-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.dashboard-mockup-panel-accent {
  background: linear-gradient(135deg, rgba(122,85,205,0.12) 0%, rgba(255,250,245,0.98) 100%);
}

.dashboard-mockup-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.85rem;
}

.dashboard-mockup-mini-card {
  padding: 1rem;
  text-align: center;
}

.dashboard-mockup-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.dashboard-mockup-mini-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  color: var(--text);
}

.dashboard-mockup-list-links {
  display: grid;
  gap: 0.75rem;
}

.dashboard-mockup-list-links a {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3ebe6 100%);
  border: 1px solid rgba(122, 85, 205, 0.18);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(96, 74, 122, 0.08);
}

.dashboard-mockup-list-links a:hover {
  text-decoration: none;
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(96, 74, 122, 0.12);
}

/* Customer dashboard refresh */
.dashboard-home {
  display: grid;
  gap: 1.25rem;
}

.dashboard-home-hero,
.dashboard-home-layout {
  display: grid;
  gap: 1rem;
}

.dashboard-home-hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
}

.dashboard-home-layout {
  grid-template-columns: minmax(0, 1.68fr) minmax(260px, 0.68fr);
  align-items: start;
}

.dashboard-home-main,
.dashboard-home-side {
  display: grid;
  gap: 1rem;
}

.dashboard-home-hero-copy,
.dashboard-home-hero-art,
.dashboard-section-card {
  background: rgba(255,250,245,0.95);
  border: 1px solid #ebe1d8;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(96, 74, 122, 0.08);
}

.dashboard-home-hero-copy,
.dashboard-home-hero-art,
.dashboard-section-card {
  padding: 1.6rem;
}

.dashboard-home-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 1.04;
  margin: 0 0 0.9rem;
}

.dashboard-home-text,
.dashboard-side-copy,
.dashboard-section-note {
  color: #6f6872;
}

.dashboard-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.dashboard-home-hero-art {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: rgba(255,250,245,0.95);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-home-hero-bloom {
  display: none;
}

.dashboard-home-hero-bloom.bloom-one {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -70px;
  background: none;
}

.dashboard-home-hero-bloom.bloom-two {
  width: 180px;
  height: 180px;
  left: -34px;
  bottom: -70px;
  background: none;
}

.dashboard-home-hero-card {
  position: relative;
  z-index: 1;
  max-width: 320px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 24px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(96, 74, 122, 0.08);
}

.dashboard-home-hero-kicker,
.dashboard-action-eyebrow {
  display: block;
  color: #8b7770;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.dashboard-home-hero-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #241d26;
  margin-bottom: 0.45rem;
}

.dashboard-home-hero-card p {
  margin: 0;
  color: #6f6872;
  font-size: 0.96rem;
}

.dashboard-home-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-home-badge {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 22px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(96, 74, 122, 0.08);
}

.dashboard-home-badge span {
  display: block;
  color: #8b7770;
  font-size: 0.83rem;
  margin-bottom: 0.35rem;
}

.dashboard-home-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: #241d26;
}

.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dashboard-section-heading h3,
.dashboard-summary-panel h3,
.dashboard-usage-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  margin: 0;
  font-size: 1.2rem;
}

.dashboard-section-note {
  max-width: 26ch;
  margin: 0;
  font-size: 0.88rem;
}

.dashboard-action-grid,
.dashboard-suggestion-grid {
  display: grid;
  gap: 0.9rem;
}

.dashboard-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-suggestion-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-action-card,
.dashboard-suggestion-card,
.dashboard-usage-card {
  border-radius: 24px;
  border: 1px solid #ebdfd4;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(96, 74, 122, 0.06);
}

.dashboard-action-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
  color: var(--text);
}

.dashboard-action-card:hover {
  text-decoration: none;
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(96, 74, 122, 0.10);
}

.dashboard-action-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  background: rgba(122, 85, 205, 0.12);
  color: var(--primary);
  font-size: 1.25rem;
}

.dashboard-action-body h4,
.dashboard-suggestion-card h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #241d26;
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.dashboard-action-body p,
.dashboard-suggestion-card p,
.dashboard-tool-item span,
.dashboard-usage-note {
  color: #6f6872;
}

.dashboard-action-body p,
.dashboard-suggestion-card p {
  margin: 0 0 0.6rem;
}

.dashboard-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}

.dashboard-suggestion-card {
  padding: 0.95rem 1rem;
}

.dashboard-suggestion-card p {
  font-size: 0.93rem;
  line-height: 1.5;
}

.dashboard-tool-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #ebdfd4;
  color: var(--text);
}

.dashboard-tool-item:hover {
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(96, 74, 122, 0.08);
}

.dashboard-tool-item strong,
.dashboard-tool-item span {
  display: block;
}

.dashboard-tool-item strong {
  margin-bottom: 0.2rem;
}

.dashboard-tool-item em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.security-center-hero {
  align-items: stretch;
}

.security-center-hero-main {
  display: grid;
  align-content: start;
}

.security-center-hero-side {
  display: flex;
}

.security-steps-card {
  width: 100%;
  background: linear-gradient(180deg, #fff 0%, #f8f4ff 100%);
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  box-shadow: 0 12px 26px rgba(64, 49, 98, 0.08);
}

.security-step-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.security-step-list li {
  color: #4d435a;
  padding-left: 0.2rem;
}

.security-step-list strong,
.security-inline-tip strong {
  display: block;
  color: #241d26;
  margin-bottom: 0.15rem;
}

.security-step-list span,
.security-inline-tip span,
.security-hero-note {
  color: #6d6279;
  font-size: 0.9rem;
}

.security-hero-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(122, 85, 205, 0.12);
}

.security-inline-tip {
  background: #f7f4fb;
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
}

.security-setup-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,244,255,0.94) 100%);
}

.security-setup-grid {
  align-items: start;
}

.security-setup-actions {
  padding-top: 0.15rem;
}

.security-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.security-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 85, 205, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #4b3d62;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(64, 49, 98, 0.05);
}

.security-subnav-link:hover {
  text-decoration: none;
  color: #382b4d;
  border-color: rgba(122, 85, 205, 0.24);
}

.security-subnav-link.is-active {
  background: linear-gradient(180deg, #7a55cd 0%, #5f3fb1 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(95, 63, 177, 0.22);
}

.security-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.security-workspace-group {
  display: grid;
  gap: 1rem;
}

.security-section-heading-block {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.security-section-heading-block h3 {
  margin: 0;
  color: #251d2a;
}

.security-section-heading-block .dashboard-section-note {
  max-width: 34rem;
  margin: 0;
}

.security-card-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.security-card-cluster-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.security-callout-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,244,255,0.95) 100%);
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 24px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 14px 28px rgba(64, 49, 98, 0.08);
}

.security-callout-card h3 {
  margin: 0.15rem 0 0.45rem;
  color: #251d2a;
  font-size: 1.08rem;
}

.security-callout-card p {
  margin: 0;
  color: #665c73;
}

.security-summary-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.security-summary-link-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.security-summary-link-card {
  display: grid;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,244,255,0.95) 100%);
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 22px rgba(64, 49, 98, 0.06);
  text-decoration: none;
  color: inherit;
}

.security-summary-link-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: rgba(122, 85, 205, 0.22);
  box-shadow: 0 14px 26px rgba(64, 49, 98, 0.10);
}

.security-summary-link-card h3 {
  margin: 0;
  color: #251d2a;
  font-size: 1.06rem;
}

.security-summary-link-card p {
  margin: 0;
  color: #665c73;
  font-size: 0.93rem;
}

.security-summary-link-card span {
  color: #6d58a4;
  font-size: 0.84rem;
  font-weight: 700;
}

.security-overview-card {
  display: grid;
  gap: 0.9rem;
}

.security-overview-copy {
  margin: 0;
  color: #665c73;
  font-size: 0.94rem;
}

.security-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.security-mini-list {
  display: grid;
  gap: 0.7rem;
}

.security-mini-list-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(122, 85, 205, 0.12);
  background: linear-gradient(180deg, #fff 0%, #faf6ff 100%);
  text-decoration: none;
}

.security-mini-list-item:hover {
  text-decoration: none;
  border-color: rgba(122, 85, 205, 0.24);
}

.security-mini-list-item strong {
  color: #2b2238;
  font-size: 0.94rem;
}

.security-mini-list-item span {
  color: #6d6279;
  font-size: 0.88rem;
}

.security-mailbox-list,
.security-scan-list,
.security-flagged-list {
  display: grid;
  gap: 0.9rem;
}

.security-mailbox-card {
  background: #fff;
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  box-shadow: 0 12px 24px rgba(64, 49, 98, 0.08);
  display: grid;
  gap: 0.8rem;
}

.security-mailbox-card.is-inactive {
  opacity: 0.8;
}

.security-mailbox-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.security-mailbox-email {
  color: #3b3350;
  font-size: 0.94rem;
  font-weight: 700;
}

.security-mailbox-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  color: #665c73;
  font-size: 0.88rem;
}

.security-mailbox-facts strong {
  color: #31283f;
}

.security-mailbox-summary-card {
  background: #f7f4fb;
  border: 1px solid rgba(122, 85, 205, 0.1);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
}

.security-mailbox-summary-card strong {
  display: block;
  color: #2b2238;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.security-mailbox-summary-meta {
  color: #7a6f86;
  font-size: 0.84rem;
}

.security-mailbox-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.security-mailbox-meta {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(122, 85, 205, 0.10);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
}

.security-mailbox-meta span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #796f86;
  margin-bottom: 0.25rem;
}

.security-mailbox-meta strong {
  color: #2a2136;
  font-size: 0.98rem;
}

.security-mailbox-graphic {
  background: linear-gradient(180deg, #fff 0%, #f7f3ff 100%);
  border-radius: 20px;
  border: 1px solid rgba(122, 85, 205, 0.10);
  padding: 0.95rem 1rem;
}

.security-mailbox-graphic-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.security-mailbox-graphic-head strong {
  color: #2b2238;
  font-size: 1rem;
}

.security-mailbox-graphic-head span,
.security-risk-legend,
.security-empty-graph,
.security-mailbox-summary {
  color: #6d6279;
  font-size: 0.94rem;
}

.security-empty-graph {
  padding: 0.7rem 0;
}

.security-mailbox-summary {
  margin: 0;
  min-height: 0;
}

.security-preview-card {
  background: #fcfbfe;
  border: 1px solid rgba(122, 85, 205, 0.12);
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.security-preview-card.is-safe {
  background: linear-gradient(180deg, #f7fffb 0%, #eefbf3 100%);
  border-color: rgba(61, 166, 109, 0.22);
}

.security-preview-card.is-warning {
  background: linear-gradient(180deg, #fffaf1 0%, #fff4df 100%);
  border-color: rgba(240, 180, 77, 0.28);
}

.security-preview-card.is-neutral {
  background: linear-gradient(180deg, #fff 0%, #f8f5ff 100%);
}

.security-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.security-preview-head strong {
  color: #2b2238;
  font-size: 0.98rem;
}

.security-preview-head span,
.security-preview-summary,
.security-preview-recommendation,
.security-empty-detail-card {
  color: #6d6279;
  font-size: 0.94rem;
}

.security-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.security-preview-stat {
  background: rgba(255,255,255,0.72);
  border-radius: 16px;
  border: 1px solid rgba(122, 85, 205, 0.08);
  padding: 0.75rem 0.8rem;
}

.security-preview-stat span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6f86;
  margin-bottom: 0.25rem;
}

.security-preview-stat strong {
  color: #2a2136;
  font-size: 0.98rem;
}

.security-preview-summary,
.security-preview-recommendation {
  margin: 0;
}

.security-preview-recommendation {
  font-weight: 700;
}

.security-empty-detail-card {
  background: rgba(255,255,255,0.9);
  border: 1px dashed rgba(122, 85, 205, 0.2);
  border-radius: 22px;
  padding: 1rem 1.1rem;
}

.security-mailbox-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.security-scan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.security-scan-card {
  background: #fff;
  border: 1px solid #ebdfd4;
  border-radius: 20px;
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 22px rgba(96, 74, 122, 0.06);
}

.security-scan-card.is-danger {
  border-color: rgba(207, 67, 95, 0.25);
}

.security-scan-card.is-warning {
  border-color: rgba(240, 180, 77, 0.32);
}

.security-scan-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.security-scan-card h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #241d26;
}

.security-scan-card-summary {
  color: #645a72;
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.security-scan-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.security-scan-card-stats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f5f1fb;
  color: #544a63;
  padding: 0.26rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.security-flagged-item {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ebdfd4;
  border-radius: 18px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 18px rgba(96, 74, 122, 0.05);
  cursor: pointer;
  text-decoration: none;
}

.security-flagged-item:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 22px rgba(96, 74, 122, 0.08);
}

.security-flagged-item.is-danger {
  border-left: 4px solid #cf435f;
}

.security-flagged-item.is-warning {
  border-left: 4px solid #f0b44d;
}

.security-flagged-item.is-safe {
  border-left: 4px solid #3da66d;
}

.security-flagged-copy {
  display: grid;
  gap: 0.22rem;
}

.security-flagged-copy strong {
  color: #241d26;
}

.security-flagged-copy span {
  color: #6b6178;
  font-size: 0.9rem;
}

.security-flagged-list-page {
  gap: 0.8rem;
}

.security-simple-results {
  display: grid;
  gap: 1rem;
}

.security-simple-card {
  background: #fff;
  border: 1px solid #ebdfd4;
  border-radius: 22px;
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 22px rgba(96, 74, 122, 0.06);
}

.security-simple-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.security-simple-link-card:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 28px rgba(96, 74, 122, 0.10);
}

.security-simple-card.is-danger {
  border-left: 6px solid #cf435f;
}

.security-simple-card.is-warning {
  border-left: 6px solid #f0b44d;
}

.security-simple-card.is-safe {
  border-left: 6px solid #3da66d;
}

.security-simple-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.security-simple-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6f86;
  margin-bottom: 0.3rem;
}

.security-simple-card h4 {
  margin: 0;
  color: #241d26;
  font-size: 1.2rem;
}

.security-simple-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.security-simple-summary-item {
  background: #faf7fd;
  border: 1px solid rgba(122, 85, 205, 0.10);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.2rem;
}

.security-simple-summary-item span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6f86;
}

.security-simple-summary-item strong {
  color: #241d26;
  font-size: 0.98rem;
}

.security-simple-summary-item em {
  color: #6b6178;
  font-size: 0.88rem;
  font-style: normal;
}

.security-simple-reason {
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.25rem;
}

.security-simple-reason strong {
  color: #241d26;
}

.security-simple-reason span {
  color: #4d435a;
}

.security-simple-reason.is-danger {
  background: rgba(207, 67, 95, 0.10);
}

.security-simple-reason.is-warning {
  background: rgba(240, 180, 77, 0.16);
}

.security-simple-reason.is-safe {
  background: rgba(61, 166, 109, 0.12);
}

.security-simple-guidance {
  margin: 0.8rem 0 0;
  color: #5f556c;
  font-size: 0.96rem;
}

.security-simple-results-compact {
  gap: 0.85rem;
}

.security-simple-card-compact {
  padding: 0.9rem 0.95rem;
}

.security-simple-card-compact h4 {
  font-size: 1.02rem;
}

.security-explainer-panel {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.75rem;
}

.security-explainer-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: #f6efe7;
}

.security-explainer-panel-body {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.security-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.security-explainer-section {
  display: grid;
  gap: 0.2rem;
}

.security-explainer-meta-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.security-explainer-meta-list div {
  display: grid;
  gap: 0.15rem;
}

.security-explainer-meta-list span {
  color: rgba(255,255,255,0.72);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.security-explainer-meta-list code,
.security-header-excerpt {
  background: rgba(16, 12, 22, 0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: #f8f4ff;
  padding: 0.45rem 0.6rem;
}

.security-header-excerpt {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
  max-height: 220px;
  overflow: auto;
}

.security-auth-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.security-auth-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.security-auth-chip.is-safe {
  background: rgba(61, 166, 109, 0.18);
  color: #d8ffe7;
}

.security-auth-chip.is-danger {
  background: rgba(207, 67, 95, 0.18);
  color: #ffd8df;
}

.security-window-select {
  max-width: 220px;
}

.security-risk-bar-track {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #ebe4f3;
  box-shadow: inset 0 1px 2px rgba(30, 24, 41, 0.08);
}

.security-risk-bar {
  display: block;
  height: 100%;
}

.security-risk-bar.is-danger,
.security-status-pill.is-danger,
.security-dot.is-danger {
  background: #cf435f;
  color: #fff;
}

.security-risk-bar.is-warning,
.security-status-pill.is-warning,
.security-dot.is-warning {
  background: #f0b44d;
  color: #3d2e0f;
}

.security-risk-bar.is-safe,
.security-status-pill.is-safe,
.security-dot.is-safe {
  background: #3da66d;
  color: #fff;
}

.security-status-pill.is-neutral {
  background: #e7e1ee;
  color: #5f566c;
}

.security-risk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.security-risk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.security-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.security-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.security-scan-card.is-danger,
.security-detail-card.is-danger,
.security-flagged-item.is-danger {
  border-left: 6px solid #cf435f;
}

.security-scan-card.is-warning,
.security-detail-card.is-warning,
.security-flagged-item.is-warning {
  border-left: 6px solid #f0b44d;
}

.security-scan-card.is-safe,
.security-detail-card.is-safe,
.security-flagged-item.is-safe {
  border-left: 6px solid #3da66d;
}

.security-flagged-item {
  align-items: flex-start;
}

.dashboard-usage-panel,
.dashboard-summary-panel {
  display: grid;
  gap: 1rem;
}

.dashboard-side-copy {
  margin: -0.3rem 0 0;
}

.dashboard-usage-list {
  display: grid;
  gap: 0.9rem;
}

.dashboard-usage-card {
  padding: 1rem;
}

.dashboard-usage-card.medium {
  background: rgba(255,255,255,0.96);
}

.dashboard-usage-card.warning {
  background: rgba(255,255,255,0.96);
}

.dashboard-usage-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.dashboard-usage-top strong {
  color: #241d26;
}

.dashboard-usage-top span {
  color: #6f6872;
  font-weight: 700;
  font-size: 0.96rem;
}

.dashboard-progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #efe6dc;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.dashboard-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d9ef4 0%, #7a55cd 100%);
}

.dashboard-progress-fill.medium {
  background: linear-gradient(90deg, #e3a64c 0%, #d58a2b 100%);
}

.dashboard-progress-fill.warning {
  background: linear-gradient(90deg, #ea8f72 0%, #d95f5f 100%);
}

.dashboard-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.dashboard-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #ebdfd4;
}

.dashboard-summary-list span {
  color: #8b7770;
  font-size: 0.92rem;
}

.dashboard-summary-list strong {
  color: #241d26;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  text-align: right;
}

@media (max-width: 1180px) {
  .dashboard-home-hero,
  .dashboard-home-layout,
  .dashboard-suggestion-grid { grid-template-columns: 1fr; }
  .dashboard-section-heading { flex-direction: column; }
  .dashboard-section-note { max-width: none; }
}

@media (max-width: 860px) {
  .dashboard-action-grid,
  .dashboard-home-badges { grid-template-columns: 1fr; }
  .dashboard-tool-item,
  .dashboard-summary-list li { align-items: flex-start; }
  .dashboard-tool-item { flex-direction: column; }
  .security-mailbox-head,
  .security-mailbox-graphic-head,
  .security-section-heading-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .security-mailbox-meta-grid,
  .security-overview-grid,
  .security-card-cluster-three,
  .security-callout-grid,
  .security-summary-link-grid,
  .security-summary-link-grid-two {
    grid-template-columns: 1fr;
  }
  .security-mailbox-facts,
  .security-scan-card-head,
  .security-flagged-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .security-preview-grid,
  .security-explainer-grid,
  .security-simple-summary-grid {
    grid-template-columns: 1fr;
  }
  .security-window-select,
  .security-subnav-link {
    max-width: 100%;
    width: 100%;
  }
  .security-mailbox-actions-row,
  .security-scan-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .dashboard-home-hero-copy,
  .dashboard-home-hero-art,
  .dashboard-section-card { padding: 1.2rem; border-radius: 24px; }
  .dashboard-home-title { font-size: clamp(2rem, 11vw, 2.8rem); }
  .dashboard-home-hero-actions { flex-direction: column; }
  .dashboard-action-grid { grid-template-columns: 1fr; }
  .dashboard-usage-top,
  .dashboard-summary-list li { flex-direction: column; align-items: flex-start; }
  .dashboard-summary-list strong { text-align: left; }
}

@media (max-width: 1180px) {
  .app-modern .app-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .page-hero,
  .message-board-grid,
  .quick-links-grid,
  .stats-modern,
  .message-summary-grid,
  .home-hero-top,
  .home-support-row,
  .obituary-editor-layout,
  .home-luxe-process-grid,
  .home-luxe-collection-grid,
  .home-luxe-feature-row,
  .dashboard-mockup-hero,
  .dashboard-mockup-focus-grid,
  .dashboard-mockup-secondary-grid,
  .dashboard-mockup-guided-grid,
  .dashboard-mockup-guided-top { grid-template-columns: 1fr; }
  .obituary-editor-inspector { position: static; }
  .home-luxe-stage-top { flex-direction: column; align-items: flex-start; }
  .home-luxe-final-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px) {
  .obituary-cover { min-height: 380px; }
  .obituary-grid { grid-template-columns: 1fr; }
  .obituary-main { margin-top: -1rem; }
  .obit-template-grid { grid-template-columns: 1fr; }
  .obituary-editor-workflow-shell {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .obituary-anchor-nav { justify-content: flex-start; }
  .obituary-guestbook-grid { grid-template-columns: 1fr; }
  .obituary-guestbook-header { flex-direction: column; }
  .obituary-guestbook-meta { justify-content: flex-start; }
  .obit-live-preview-body { grid-template-columns: 1fr; }
  .obituary-editor-theme-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obituary-editor-workflow-head,
  .obituary-editor-stage-head { flex-direction: column; align-items: flex-start; }
  .obituary-editor-workflow-summary { justify-items: start; text-align: left; }
  .obituary-editor-gallery-featured,
  .obituary-editor-upload-grid,
  .obituary-editor-field-grid,
  .obituary-editor-highlights-grid { grid-template-columns: 1fr; }
  .obituary-editor-field-span-2,
  .obituary-editor-upload-box-full { grid-column: span 1; }
}

@media (max-width: 860px) {
  .app-modern .app-shell { grid-template-columns: 1fr; }
  .app-modern .app-sidebar { border-right: none; border-bottom: 1px solid rgba(82, 49, 135, 0.45); }
  .app-modern .app-main-shell { padding: 1.25rem; }
  .app-modern .app-topbar { flex-direction: column; align-items: flex-start; }
  .app-modern .app-topbar-actions { width: 100%; justify-content: flex-start; }
  .app-modern .app-topbar-alert-panel { left: 0; right: auto; width: min(100%, 26rem); }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0;
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }

  .home-step-grid { grid-template-columns: 1fr; }
  .home-hero-copy h1 { max-width: 11.5ch; }
  .obituary-editor-canvas-topbar,
  .obituary-editor-inspector-head,
  .obituary-editor-workflow-head,
  .obituary-editor-stage-head { flex-direction: column; align-items: flex-start; }
  .group-manage-layout { grid-template-columns: 1fr; }
  .app-modern .table-responsive .table { min-width: 640px; }
  .admin-file-actions-col { min-width: 280px; width: 280px; }
  .admin-file-row-form {
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 2rem; }
  .home-hero-shell { border-radius: 24px; padding: 1rem; }
  .home-hero-copy h1 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .home-step-card,
  .home-support-card,
  .home-hero-panel { border-radius: 20px; }
  .btn { width: 100%; justify-content: center; }
  .home-hero-actions { flex-direction: column; }
  .obituary-cover { min-height: 320px; }
  .obituary-cover-inner { padding: 2rem 0 1.25rem; }
  .obituary-cover-card { padding: 1.25rem; border-radius: 22px; }
  .obituary-cover-card h1 { font-size: clamp(2.1rem, 13vw, 3rem); line-height: 1; }
  .obituary-subtitle,
  .obituary-dates { font-size: 0.98rem; }
  .obituary-cover-actions,
  .obituary-service-actions,
  .obituary-guestbook-form-actions { flex-direction: column; align-items: stretch; }
  .obituary-anchor-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .obituary-anchor-nav a { white-space: nowrap; }
  .obituary-editor-step-grid { grid-template-columns: 1fr; }
  .obituary-editor-step-card { min-height: 0; }
  .obituary-editor-share-row { grid-template-columns: 1fr; }
  .obituary-directory-grid { grid-template-columns: 1fr; }
  .obituary-directory-card-cover { min-height: 180px; }
  .obituary-directory-card-head { grid-template-columns: 1fr; }
  .obituary-directory-card-portrait { width: 100%; height: 220px; }
  .obituary-directory-empty { padding: 1.25rem; }
  .home-luxe-intro h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .home-luxe-stage-hero { min-height: 340px; padding: 1.5rem; }
  .home-luxe-stage-overlay h2 { font-size: clamp(2.15rem, 12vw, 3.15rem); }
  .home-luxe-stage-brand { align-items: flex-start; }
  .home-luxe-stage-brand img { width: 84px; height: 84px; }
  .home-luxe-stage-top-actions,
  .home-luxe-final-actions { width: 100%; }
  .dashboard-mockup-primary-actions,
  .dashboard-mockup-mini-stats { grid-template-columns: 1fr; }
  .group-modal-backdrop { padding: 12px; }
  .group-modal-dialog { padding: 16px; border-radius: 22px; }
  .group-modal-header { flex-direction: column; align-items: flex-start; }
  .group-modal-header .btn { width: 100%; }
  .admin-file-actions-col { min-width: 240px; width: 240px; }
  .admin-file-row-form .form-control,
  .admin-file-row-form .form-select {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Reminder workspace */
.reminders-grid {
  align-items: start;
}

.reminders-list-card,
.reminder-form-card {
  border-radius: 28px;
}

.reminder-empty-state {
  padding: 1.35rem;
  border: 1px dashed #dfd0c4;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f1ea 100%);
}

.reminder-empty-state h4 {
  margin-bottom: 0.45rem;
  color: #241d26;
}

.reminder-list {
  display: grid;
  gap: 1rem;
}

.reminder-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid #eaded4;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,241,234,0.95) 100%);
}

.reminder-card-highlighted {
  border-color: #cdb8f8;
  box-shadow: 0 16px 34px rgba(111, 73, 198, 0.12);
}

.reminder-card-muted {
  opacity: 0.76;
}

.reminder-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.reminder-type-pill,
.reminder-cycle-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.reminder-type-pill {
  background: #f3eefe;
  color: #6a4cc2;
}

.reminder-cycle-pill {
  background: #f5efe8;
  color: #6f5c56;
}

.reminder-cycle-pill-once {
  background: #eef6ff;
  color: #336799;
}

.reminder-cycle-pill-paused {
  background: #f4efef;
  color: #8a6e67;
}

.reminder-card h4 {
  margin: 0 0 0.45rem;
  color: #241d26;
  font-family: Georgia, "Times New Roman", serif;
}

.reminder-card-copy {
  margin: 0 0 1rem;
  color: #6f5c56;
}

.reminder-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.reminder-meta-row div {
  background: rgba(255,255,255,0.8);
  border: 1px solid #ebe1d8;
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
}

.reminder-meta-row strong {
  display: block;
  color: #8c776e;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.reminder-meta-row span {
  color: #241d26;
  font-weight: 700;
}

.reminder-notes {
  color: #6f5c56;
  line-height: 1.55;
}

.reminder-actions {
  align-items: center;
}

.reminder-form-card .form-text {
  color: #8d7a72;
}

@media (max-width: 860px) {
  .reminder-meta-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Interface choice + simple interface refresh ===== */
.interface-choice-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(122, 85, 205, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(201, 160, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 100%);
  color: var(--text);
}

.interface-choice-shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.interface-choice-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.interface-choice-brand img {
  width: min(270px, 42vw);
  max-width: 100%;
}

.interface-choice-kicker,
.simple-page-kicker {
  color: #7a55cd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 800;
}

.interface-choice-brand h1 {
  margin: 0.35rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  color: #2b2142;
}

.simple-dashboard-hero h1 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.85rem, 2.9vw, 2.5rem);
  line-height: 1.05;
}

.interface-choice-brand p,
.simple-dashboard-hero p {
  margin: 0;
  color: #655b74;
  font-size: 1.08rem;
}

.interface-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.interface-choice-card {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(104, 78, 138, 0.10);
  text-align: left;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.interface-choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 85, 205, 0.30);
  box-shadow: 0 30px 72px rgba(104, 78, 138, 0.16);
}

.interface-choice-card.simple {
  background: linear-gradient(180deg, #fffdf9 0%, var(--surface) 100%);
}

.interface-choice-card.advanced {
  background: linear-gradient(180deg, #fcf7ff 0%, #f7f0ff 100%);
}

.interface-choice-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f3ebe4;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.interface-choice-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--text);
}

.interface-choice-copy {
  color: var(--muted);
  line-height: 1.65;
}

.interface-choice-points {
  display: grid;
  gap: 0.65rem;
}

.interface-choice-points span {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: #4c4454;
  font-weight: 600;
}

.interface-choice-points span::before {
  content: "•";
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
}

.interface-choice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #4166c1 0%, var(--primary) 55%, #294a98 100%);
  color: #fff;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(20, 38, 87, 0.22),
    0 10px 22px rgba(35, 67, 145, 0.22);
}

.interface-choice-cta.secondary {
  background: linear-gradient(180deg, #fbf7ff 0%, #efe7fb 100%);
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 24px rgba(104, 78, 138, 0.10);
}

.interface-advanced .app-topbar-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-view-toggle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #efe9ff;
  color: #6947bb;
  font-weight: 700;
  text-decoration: none;
}

.app-view-toggle-link:hover {
  background: #e3d7ff;
  text-decoration: none;
  color: #5635a7;
}

.interface-simple {
  background:
    radial-gradient(circle at top left, rgba(122, 85, 205, 0.10), transparent 24%),
    linear-gradient(180deg, #faf8fe 0%, #f6f3fb 100%);
  color: #2b2142;
}

.interface-simple.text-scale-large { font-size: 19px; }
.interface-simple.text-scale-xlarge { font-size: 21px; }
.interface-simple.text-scale-large .btn,
.interface-simple.text-scale-xlarge .btn { font-size: 1rem; }

.simple-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.simple-app-header {
  width: min(1220px, 94vw);
  margin: 0.6rem auto 0;
  padding: 0.65rem 0.85rem 0.55rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(122, 85, 205, 0.10);
  box-shadow: 0 16px 34px rgba(76,49,207,0.07);
  position: static;
  top: auto;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.simple-app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.simple-app-header-compact .simple-app-header-top {
  margin-bottom: 0;
}

.simple-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #2b2142;
  text-decoration: none;
}

.simple-app-brand img {
  width: min(132px, 26vw);
  max-width: 100%;
}

.simple-app-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 0.98rem;
}

.simple-app-brand-tagline {
  color: #7a55cd;
  font-weight: 600;
  font-size: 0.92rem;
}

.simple-app-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.simple-control-button,
.simple-view-toggle,
.simple-app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  border-radius: 999px;
  min-height: 40px;
  padding: 0.56rem 0.8rem;
  border: 1px solid rgba(122, 85, 205, 0.18);
  background: #fff;
  color: #4e3d6b;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}

.simple-control-button {
  cursor: pointer;
}

.simple-view-toggle {
  background: #f6f0ff;
}

.simple-view-toggle-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a55cd 0%, #8f6ae0 100%);
  padding: 3px;
  display: inline-flex;
  justify-content: flex-end;
}

.simple-view-toggle-switch span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.simple-view-toggle-icon,
.simple-app-nav-icon,
.simple-home-card-icon,
.simple-mini-icon,
.simple-panel-icon,
.simple-continue-icon,
.simple-help-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.simple-app-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.simple-app-nav-link {
  justify-content: center;
  background: rgba(255,255,255,0.92);
}

.simple-app-nav-link.active {
  background: linear-gradient(180deg, #7a55cd 0%, #5e40b5 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(76,49,207,0.22);
}

.simple-app-nav-link:hover,
.simple-control-button:hover,
.simple-view-toggle:hover {
  color: #4e3d6b;
  text-decoration: none;
  transform: translateY(-1px);
}

.simple-app-main {
  flex: 1;
  padding: 0.75rem 0 2rem;
}

.simple-dashboard-page {
  width: min(1220px, 94vw);
  max-width: min(1220px, 94vw);
  margin: 0 auto;
  padding-inline: 1rem;
}

.simple-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.simple-dashboard-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.8rem;
}

.simple-summary-pill,
.simple-home-card,
.simple-panel,
.simple-mini-card,
.interface-simple .page-hero-main,
.interface-simple .page-hero-side,
.interface-simple .panel-card,
.interface-simple .section-card,
.interface-simple .stat-card-modern,
.interface-simple .quick-card,
.interface-simple .message-summary-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(122, 85, 205, 0.10);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(76,49,207,0.08);
}

.simple-summary-pill {
  padding: 1rem 1.1rem;
}

.simple-summary-pill span {
  display: block;
  color: #756a86;
  font-weight: 600;
  font-size: 0.88rem;
}

.simple-summary-pill strong {
  display: block;
  color: #2b2142;
  font-size: 1.2rem;
  margin-top: 0.35rem;
}

.simple-home-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.35rem;
}

.simple-home-card {
  padding: 1.5rem;
  min-height: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.9rem;
  color: #392b56;
  text-decoration: none !important;
}

.simple-home-card--featured {
  grid-column: span 3;
  min-height: 236px;
  padding: 1.55rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.985) 0%, rgba(249,245,255,0.97) 100%);
  border-color: rgba(122, 85, 205, 0.14);
  box-shadow: 0 20px 40px rgba(76,49,207,0.09);
}

.simple-home-card--standard {
  grid-column: span 2;
}

.simple-home-card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(122, 85, 205, 0.07);
  color: #6b5a8e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simple-home-card h2,
.simple-home-card p {
  text-decoration: none !important;
}

.simple-home-card:hover {
  color: #392b56;
  text-decoration: none;
  transform: translateY(-2px);
}

.simple-home-card-icon {
  width: 86px;
  height: 86px;
  margin: 0;
  border-radius: 999px;
  background: #f1e9ff;
  color: #7a55cd;
  font-size: 2rem;
}

.simple-home-card h2,
.simple-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #3a2a5b;
  text-wrap: balance;
}

.simple-home-card h2 {
  font-size: 1.38rem;
  line-height: 1.12;
}

.simple-home-card p {
  margin: 0;
  color: #6b6177;
  font-size: 0.96rem;
  line-height: 1.55;
}

.simple-panel p,
.simple-mini-card span,
.simple-continue-body p {
  margin: 0;
  color: #6b6177;
}

.simple-home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.simple-panel {
  padding: 1.25rem;
}

.simple-home-lower-grid > .simple-panel {
  height: 100%;
}

.simple-panel-heading,
.simple-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.simple-panel-icon,
.simple-help-icon,
.simple-continue-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #f1e9ff;
  color: #7a55cd;
  font-size: 1.35rem;
}

.simple-reminders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.simple-mini-card {
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.simple-mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #f7f2ff;
  color: #7a55cd;
  font-size: 1.15rem;
}

.simple-mini-card strong,
.simple-continue-body strong {
  color: #33254f;
  font-size: 1rem;
}

.simple-continue-panel,
.simple-help-panel {
  display: flex;
  flex-direction: column;
}

.simple-continue-body {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.simple-continue-button {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.simple-help-panel {
  text-align: left;
}

.simple-help-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 1rem;
  font-size: 1.85rem;
}

.simple-help-note {
  margin-top: 0.7rem;
  color: #7a55cd;
  font-weight: 700;
  font-size: 0.92rem;
}

.simple-help-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.simple-help-actions .btn {
  justify-content: center;
  width: 100%;
}

.simple-app-footer {
  width: min(1220px, 94vw);
  margin: 0 auto 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: #fbf5ec;
  border: 1px solid rgba(201, 160, 246, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.simple-app-footer-note,
.simple-app-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #6a5d54;
  font-size: 0.94rem;
}

.simple-app-footer-heart {
  color: #7a55cd;
  font-size: 1.05rem;
}

.interface-simple .container {
  width: min(1220px, 94vw);
  padding-inline: 0.9rem;
}

.simple-workspace-page {
  padding-bottom: 1.5rem;
}

.simple-workspace-page--narrow {
  width: min(860px, 94vw);
}

.simple-workspace-page--medium {
  width: min(1040px, 94vw);
}

.simple-workspace-page--wide {
  width: min(1220px, 94vw);
}

.simple-workspace-card {
  padding: 1.35rem;
}

.simple-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: #6b6177;
  font-size: 0.95rem;
}

.simple-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.simple-preview-list li {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: #faf7fd;
  border: 1px solid rgba(122, 85, 205, 0.12);
}

.simple-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.simple-gallery-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.simple-media-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(122, 85, 205, 0.10);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(76,49,207,0.08);
  padding: 0.75rem;
}

.simple-media-card img,
.simple-media-card video {
  display: block;
  width: 100%;
  border-radius: 16px;
}

/* Mockup-matching refinement pass for the Simple dashboard */
.interface-simple {
  background:
    radial-gradient(circle at top left, rgba(122, 85, 205, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(201, 160, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #fbf8f4 0%, #f6f1ea 100%);
}

.simple-app-shell {
  gap: 0.15rem;
}

.simple-app-header {
  margin-top: 0.58rem;
  padding: 0.64rem 0.82rem 0.6rem;
  border-radius: 26px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.simple-app-header-top {
  gap: 0.78rem;
  margin-bottom: 0.62rem;
}

.simple-app-header-compact .simple-app-header-top {
  margin-bottom: 0;
  align-items: center;
}

.simple-app-header-welcome {
  flex: 1 1 18rem;
  min-width: 0;
}

.simple-app-header-compact .simple-app-header-welcome {
  max-width: 28rem;
  padding-left: 1.4rem;
}

.simple-app-header-welcome-kicker {
  color: #7a55cd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.14rem;
}

.simple-app-header-welcome-title {
  color: #2b2142;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.1;
}

.simple-app-header-welcome-text {
  color: #6d647e;
  font-size: 0.94rem;
  line-height: 1.35;
  margin-top: 0.18rem;
}

.simple-app-brand {
  gap: 0.7rem;
}

.simple-app-brand img {
  width: min(120px, 24vw);
}

.simple-app-brand-title {
  font-size: 0.96rem;
  line-height: 1.02;
}

.simple-app-brand-tagline {
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.015em;
}

.simple-control-button,
.simple-view-toggle,
.simple-app-nav-link {
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  box-shadow: 0 6px 14px rgba(76,49,207,0.06);
}

.simple-view-toggle {
  background: linear-gradient(180deg, #faf6ff 0%, #f1e8ff 100%);
}

.simple-app-nav {
  gap: 0.58rem;
}

.simple-app-nav-link {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,245,255,0.96) 100%);
}

.simple-app-nav-link.active {
  box-shadow: 0 18px 32px rgba(76,49,207,0.24);
}

.simple-app-main {
  padding: 0.95rem 0 2.4rem;
}

.simple-dashboard-page {
  width: min(1200px, 94vw);
  max-width: min(1200px, 94vw);
  padding-inline: 1.1rem;
}

.simple-dashboard-intro {
  max-width: 36rem;
}

.simple-dashboard-hero {
  gap: 1.35rem;
  margin-bottom: 1.45rem;
}

.simple-dashboard-hero-summary {
  gap: 0.9rem;
}

.simple-summary-pill,
.simple-home-card,
.simple-panel,
.simple-mini-card,
.interface-simple .page-hero-main,
.interface-simple .page-hero-side,
.interface-simple .panel-card,
.interface-simple .section-card,
.interface-simple .stat-card-modern,
.interface-simple .quick-card,
.interface-simple .message-summary-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid #ebe3d7;
  border-radius: 30px;
  box-shadow: 0 16px 40px rgba(76,49,207,0.08);
}

.simple-summary-pill {
  padding: 1rem 1.15rem;
  min-width: 138px;
}

.simple-summary-pill span {
  color: #7c728e;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.simple-summary-pill strong {
  font-size: 1.28rem;
  margin-top: 0.45rem;
}

.simple-home-card-grid {
  gap: 1.1rem;
  margin-bottom: 1.35rem;
}

.simple-home-card {
  padding: 1.85rem 1.5rem 1.7rem;
  min-height: 268px;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
}

.simple-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(76,49,207,0.13);
}

.simple-home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(122,85,205,0.03));
  pointer-events: none;
}

.simple-home-card-icon {
  width: 92px;
  height: 92px;
  background: linear-gradient(180deg, #f3ecff 0%, #eee3ff 100%);
  font-size: 1.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 24px rgba(122,85,205,0.14);
}

.simple-card-svg {
  width: 40px;
  height: 40px;
  color: #7a55cd;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(122, 85, 205, 0.16));
}

.simple-home-card h2 {
  font-size: 1.46rem;
  line-height: 1.08;
}

.simple-home-card p {
  font-size: 0.98rem;
  line-height: 1.58;
}

.simple-home-lower-grid {
  gap: 1.1rem;
}

.simple-panel {
  padding: 1.45rem;
}

.simple-panel-heading,
.simple-panel-title-wrap {
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.simple-panel-icon,
.simple-help-icon,
.simple-continue-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #f3ecff 0%, #ede0ff 100%);
  font-size: 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 10px 22px rgba(122,85,205,0.14);
}

.simple-reminders-grid {
  gap: 0.9rem;
}

.simple-reminder-list {
  display: grid;
  gap: 0.72rem;
}

.simple-reminder-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 22px;
  background: rgba(250, 246, 255, 0.72);
  border: 1px solid rgba(122, 85, 205, 0.10);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.simple-reminder-item:hover {
  transform: translateY(-1px);
  background: rgba(247, 241, 255, 0.9);
  border-color: rgba(122, 85, 205, 0.18);
  box-shadow: 0 10px 22px rgba(122,85,205,0.10);
  text-decoration: none;
}

.simple-reminder-item-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf6ff 0%, #f1e7ff 100%);
  color: #7a55cd;
  font-size: 1.12rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 18px rgba(122,85,205,0.10);
}

.simple-reminder-item-copy {
  min-width: 0;
}

.simple-reminder-item-copy strong,
.simple-continue-body strong {
  font-size: 1.02rem;
}

.simple-reminder-item-copy strong {
  display: block;
  line-height: 1.28;
  color: #33254f;
}

.simple-reminder-item-copy span {
  display: block;
  color: #726786;
  font-size: 0.93rem;
  line-height: 1.42;
  margin-top: 0.18rem;
}

.simple-reminders-panel {
  background: rgba(255,255,255,0.94);
}

.simple-continue-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(251,247,255,0.98) 100%);
}

.simple-continue-panel-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.simple-continue-panel-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(76,49,207,0.12);
  text-decoration: none;
}

.simple-continue-panel-link .simple-continue-button {
  pointer-events: none;
}

.simple-continue-body {
  gap: 0.9rem;
  margin-bottom: 1.15rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(245, 238, 255, 0.72);
}

.simple-help-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(252,248,242,0.98) 100%);
}

.simple-help-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 1.1rem;
  font-size: 1.95rem;
}

.simple-help-panel h3 {
  margin-bottom: 0.45rem;
}

.simple-help-panel p {
  line-height: 1.62;
}

.simple-help-note {
  margin-top: 0.8rem;
}

.simple-help-actions {
  padding-top: 1rem;
}

.simple-app-footer {
  padding: 0.95rem 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbf7f0 0%, #f8f1e7 100%);
}

.interface-simple .container {
  padding-inline: 1rem;
}

.interface-simple .simple-app-main > .container:not(.simple-dashboard-page):not(.dashboard-home),
.interface-simple .simple-app-main > .container.cloud-drive {
  width: min(1200px, 94vw);
  max-width: min(1200px, 94vw);
  margin-inline: auto;
  padding-inline: 1.1rem;
}

.interface-simple .container.py-5 {
  padding-top: 1rem !important;
  padding-bottom: 2.35rem !important;
}

.interface-simple .container.py-5 > .d-flex:first-child {
  gap: 0.9rem;
  margin-bottom: 1rem !important;
  flex-wrap: wrap;
}

.interface-simple .container.py-5 > .d-flex:first-child h2,
.interface-simple .container.py-5 > h2,
.interface-simple .cloud-drive-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #33254f;
}

.interface-simple .container.py-5 > .card,
.interface-simple .container.py-5 .card,
.interface-simple .container.py-5 .inline-panel-card,
.interface-simple .cloud-drive-panel,
.interface-simple .cloud-current-card,
.interface-simple .cloud-command-bar,
.interface-simple .cloud-drive-side-card,
.interface-simple .cloud-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(253,250,255,0.97) 100%);
  border: 1px solid rgba(122, 85, 205, 0.10);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(76,49,207,0.08);
}

.interface-simple .container.py-5 .border.rounded,
.interface-simple .container.py-5 .progress,
.interface-simple .container.py-5 .form-check,
.interface-simple .container.py-5 .alert {
  border-radius: 20px !important;
}

.interface-simple .container.py-5[style*="max-width"] {
  max-width: min(760px, 94vw) !important;
}

.interface-simple .page-hero,
.interface-simple .message-board-grid,
.interface-simple .message-summary-grid,
.interface-simple .quick-links-grid,
.interface-simple .stats-modern {
  gap: 1rem;
}

.interface-simple .page-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.82fr);
}

.interface-simple .page-hero-main,
.interface-simple .page-hero-side,
.interface-simple .panel-card,
.interface-simple .section-card,
.interface-simple .message-summary-card {
  padding: 1.45rem;
}

.interface-simple .page-title-modern {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.05;
  color: #33254f;
}

.interface-simple .page-text-modern,
.interface-simple .text-muted,
.interface-simple .helper-list,
.interface-simple .dashboard-section-note,
.interface-simple .dashboard-side-copy,
.interface-simple .dashboard-usage-note,
.interface-simple .dashboard-tool-item span {
  color: #6d6478 !important;
}

.interface-simple .sidebar-note,
.interface-simple .stat-pill,
.interface-simple .feature-badge,
.interface-simple .message-type-pill,
.interface-simple .message-status-pill,
.interface-simple .dashboard-home-badge,
.interface-simple .dashboard-home-hero-card,
.interface-simple .dashboard-suggestion-card,
.interface-simple .dashboard-usage-card,
.interface-simple .dashboard-tool-item {
  border-radius: 22px;
}

.interface-simple .table-responsive {
  border-radius: 20px;
}

.interface-simple table.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(122, 85, 205, 0.03);
  --bs-table-hover-bg: rgba(122, 85, 205, 0.05);
  margin-bottom: 0;
}

.interface-simple table.table thead th {
  color: #5a4f6d;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom-color: rgba(122, 85, 205, 0.12);
}

.interface-simple table.table td {
  color: #34284f;
  vertical-align: middle;
}

.interface-simple .form-control,
.interface-simple .form-select,
.interface-simple textarea,
.interface-simple input,
.interface-simple select {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgba(122, 85, 205, 0.16);
}

.interface-simple textarea {
  min-height: 140px;
}

.interface-simple .btn {
  min-height: 44px;
}

.interface-simple .btn.btn-sm {
  min-height: 40px;
}

@media (max-width: 1180px) {
  .simple-app-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simple-home-card-grid,
  .simple-dashboard-hero-summary,
  .simple-reminders-grid,
  .interface-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-home-card--featured,
  .simple-home-card--standard {
    grid-column: span 1;
  }

  .simple-home-lower-grid,
  .simple-dashboard-hero,
  .interface-simple .page-hero,
  .interface-simple .message-board-grid,
  .interface-simple .message-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .interface-choice-brand,
  .simple-app-header-top,
  .simple-app-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .simple-app-controls,
  .simple-app-footer-meta {
    justify-content: flex-start;
  }

  .simple-app-nav,
  .simple-home-card-grid,
  .simple-reminders-grid,
  .simple-dashboard-hero-summary,
  .interface-choice-grid {
    grid-template-columns: 1fr;
  }

  .simple-gallery-summary,
  .simple-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .simple-home-card {
    min-height: auto;
  }

  .simple-panel,
  .simple-home-card,
  .interface-choice-card {
    padding: 1.25rem;
  }
}

.site-announcement {
  width: min(1180px, calc(100% - 32px));
  margin: 0.9rem auto 0;
  border-radius: 24px;
  border: 1px solid rgba(31,45,68,.12);
  box-shadow: 0 18px 42px rgba(31,45,68,.10);
  background: #fffdf8;
  color: #1f2d44;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  position: relative;
  z-index: 30;
}

.site-announcement-banner {
  margin-bottom: 0.35rem;
}

.site-announcement-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 45, 68, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.site-announcement-modal {
  width: min(680px, calc(100% - 24px));
  margin: 0;
}

.site-announcement-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.site-announcement-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.site-announcement-body {
  color: #5c6473;
  line-height: 1.55;
}

.site-announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-announcement-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(31,45,68,.14);
  color: #1f2d44;
  font-weight: 700;
  text-decoration: none;
}

.site-announcement-link:hover {
  text-decoration: none;
  color: #1f2d44;
  transform: translateY(-1px);
}

.site-announcement-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5c6473;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.site-announcement.severity-info {
  border-color: rgba(122,85,205,.24);
  background: linear-gradient(180deg, #fffdf8 0%, #f6f0fd 100%);
}

.site-announcement.severity-success {
  border-color: rgba(60,140,96,.24);
  background: linear-gradient(180deg, #fffdf8 0%, #f1fbf3 100%);
}

.site-announcement.severity-warning {
  border-color: rgba(201,154,62,.28);
  background: linear-gradient(180deg, #fffdf8 0%, #fff6e6 100%);
}

.site-announcement.severity-urgent {
  border-color: rgba(170,65,65,.32);
  background: linear-gradient(180deg, #fff7f7 0%, #ffefef 100%);
}

@media (max-width: 760px) {
  .site-announcement {
    width: min(100% - 20px, 1180px);
    padding: 0.95rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-announcement-actions {
    justify-content: space-between;
  }
}


/* Legacy-inspired obituary workflow overrides */
.legacy-guided-obituary-workflow {
  order: -1;
}

.legacy-guided-obituary-workflow .obituary-editor-workflow-head {
  align-items: flex-start;
}

.obituary-editor-screen-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.obituary-editor-progress-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #d8dce8;
  box-shadow: inset 0 0 0 1px rgba(30, 56, 105, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.obituary-editor-progress-dot.is-active {
  background: linear-gradient(135deg, #2f56b3 0%, #7a55cd 100%);
  box-shadow: 0 0 0 4px rgba(122, 85, 205, 0.14);
  transform: scale(1.05);
}

.obituary-editor-guided-shell {
  display: block;
}

.obituary-editor-review-preview-shell {
  margin: 1.25rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(47, 86, 179, 0.12);
}

.obituary-editor-review-preview-shell .obituary-editor-preview-note {
  margin-bottom: 1rem;
}

.obituary-editor-screen {
  display: none;
}

.obituary-editor-screen.is-active {
  display: block;
  animation: obituary-screen-in 220ms ease;
}

@keyframes obituary-screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.obituary-editor-screen-card {
  border: 1px solid #e7ddd7;
  background: linear-gradient(180deg, #fffdfb 0%, #f7f3ee 100%);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(35, 67, 145, 0.08);
}

.obituary-editor-screen-card--hero {
  padding: 2rem;
}

.obituary-editor-screen-card--hero h3,
.obituary-editor-screen-card--review h3,
.obituary-editor-screen-card h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.obituary-editor-welcome-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.obituary-editor-welcome-point {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 86, 179, 0.12);
}

.obituary-editor-welcome-point strong {
  color: #1f334d;
  font-size: 1.03rem;
}

.obituary-editor-welcome-point span {
  color: #5c6475;
}

.obituary-editor-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.obituary-editor-screen-actions--review {
  justify-content: space-between;
  align-items: center;
}

.obituary-editor-field-grid--guided {
  margin-top: 1rem;
}

.obituary-editor-required-note {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #6b2740;
}

.obituary-editor-required-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: #fff1f3;
  border: 1px solid rgba(170, 52, 84, 0.18);
  color: #9d2146;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.obituary-editor-required-field.is-required-missing .form-label {
  color: #a61f45;
  font-weight: 800;
}

.obituary-editor-required-field.is-required-missing .form-control {
  border-color: #c53b63;
  box-shadow: 0 0 0 4px rgba(197, 59, 99, 0.12);
  background: #fff7f9;
}

.obituary-editor-required-field.is-required-missing .obituary-editor-required-pill {
  background: #ffe3ea;
  border-color: rgba(170, 52, 84, 0.32);
  color: #8e183b;
}

.obituary-editor-choice-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.obituary-editor-theme-picker {
  margin: 1.25rem 0;
}

.obituary-editor-theme-picker h4 {
  margin: 0.1rem 0 0.5rem;
  font-size: 1.3rem;
  color: #1f334d;
}

.obituary-editor-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 0.95rem;
}

.obit-template-option {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
  border: 1px solid #d8deea;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
  box-shadow: 0 10px 20px rgba(35, 67, 145, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.obit-template-option:hover,
.obit-template-option:focus-within {
  transform: translateY(-1px);
  border-color: rgba(47, 86, 179, 0.36);
  box-shadow: 0 14px 28px rgba(35, 67, 145, 0.12);
}

.obit-template-option.active {
  border-color: rgba(47, 86, 179, 0.46);
  box-shadow: 0 16px 30px rgba(35, 67, 145, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.obit-template-option input {
  display: none;
}

.obit-template-option strong {
  color: #1f334d;
  font-size: 1rem;
}

.obit-template-option span {
  color: #5c6475;
  font-size: 0.94rem;
}

.obit-template-swatch {
  height: 82px;
  border-radius: 16px;
  border: 1px solid rgba(47, 86, 179, 0.12);
}

.obit-template-swatch--classic {
  background: linear-gradient(135deg, #1e355d 0%, #496db0 45%, #f7efe5 100%);
}

.obit-template-swatch--floral {
  background: linear-gradient(135deg, #f9e6ee 0%, #e7d7fb 46%, #fff8fb 100%);
}

.obit-template-swatch--sky {
  background: linear-gradient(135deg, #d9ecff 0%, #a9d0f7 45%, #fff1cf 100%);
}

.obit-template-swatch--service {
  background: linear-gradient(135deg, #1f2f57 0%, #4f648f 42%, #b3394e 100%);
}

.obit-template-swatch--spiritual {
  background: linear-gradient(135deg, #f3ebff 0%, #d8cef6 42%, #fff4d9 100%);
}

.obit-template-swatch--meadow {
  background: linear-gradient(135deg, #d8ead5 0%, #b7d2b1 45%, #f5f2d9 100%);
}

.obit-template-swatch--ocean {
  background: linear-gradient(135deg, #c9e6ef 0%, #8ec3d4 44%, #f8e8c9 100%);
}

.obit-template-swatch--monochrome {
  background: linear-gradient(135deg, #2e3136 0%, #6f747c 42%, #efefef 100%);
}

.obituary-editor-photo-groups {
  gap: 1rem;
}

.obituary-editor-photo-group {
  border: 1px solid rgba(47, 86, 179, 0.12);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.obituary-editor-photo-group-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.obituary-editor-photo-group-head h4 {
  margin: 0;
  font-size: 1.18rem;
  color: #1f334d;
}

.obituary-editor-photo-group-head p {
  margin: 0;
}

.obituary-editor-photo-tip {
  font-weight: 700;
}

.obituary-editor-upload-grid--simple {
  gap: 0.85rem;
}

.obituary-editor-existing-gallery-wrap {
  margin-top: 0.6rem;
}

.obituary-editor-choice-button {
  width: 100%;
  text-align: left;
  border: 1px solid #d8deea;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f334d;
  box-shadow: 0 10px 20px rgba(35, 67, 145, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.obituary-editor-choice-button:hover,
.obituary-editor-choice-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 86, 179, 0.4);
  box-shadow: 0 14px 28px rgba(35, 67, 145, 0.12);
}

.obituary-editor-choice-button.is-selected {
  background: linear-gradient(135deg, #eaf2ff 0%, #f5edff 100%);
  border-color: rgba(47, 86, 179, 0.42);
  box-shadow: 0 16px 32px rgba(35, 67, 145, 0.14);
}

.obituary-editor-review-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.obituary-editor-review-action {
  border: 1px solid #d8deea;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1f334d;
  text-align: left;
  box-shadow: 0 10px 20px rgba(35, 67, 145, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.obituary-editor-review-action:hover,
.obituary-editor-review-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 86, 179, 0.36);
  box-shadow: 0 14px 28px rgba(35, 67, 145, 0.12);
}

.obituary-editor-edit-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 33, 53, 0.35);
  z-index: 80;
}

.obituary-editor-edit-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 100vw);
  z-index: 90;
}

.obituary-editor-edit-drawer-panel {
  height: 100%;
  overflow-y: auto;
  background: #fffdfb;
  border-left: 1px solid rgba(47, 86, 179, 0.12);
  box-shadow: -20px 0 40px rgba(24, 33, 53, 0.18);
  padding: 1.2rem;
}

.obituary-editor-edit-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.obituary-editor-step-grid--drawer {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

.obituary-editor-stage--drawer {
  margin-top: 0;
}

.obituary-editor-stage--drawer .obituary-editor-panel {
  display: none;
}

.obituary-editor-stage--drawer .obituary-editor-panel.is-active {
  display: block;
  animation: obituary-screen-in 180ms ease;
}

body.obituary-editor-drawer-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .obituary-editor-screen-card,
  .obituary-editor-screen-card--hero {
    padding: 1.2rem;
  }

  .obituary-editor-screen-card--hero h3,
  .obituary-editor-screen-card--review h3,
  .obituary-editor-screen-card h3 {
    font-size: 1.55rem;
  }

  .obituary-editor-screen-actions,
  .obituary-editor-screen-actions--review {
    flex-direction: column;
    align-items: stretch;
  }

  .obituary-editor-screen-actions .btn,
  .obituary-editor-screen-actions--review .btn {
    justify-content: center;
  }

  .obituary-editor-edit-drawer {
    width: 100vw;
  }
}
