:root {
    --ink: #151715;
    --ink-soft: #303832;
    --muted: #69736c;
    --line: #ded9cc;
    --line-strong: #c9b98d;
    --surface: #fffdf8;
    --surface-raised: #ffffff;
    --band: #f5f2ea;
    --band-alt: #edf3ee;
    --brand: #1c5a43;
    --brand-strong: #102d24;
    --brand-soft: #dfeae2;
    --accent: #bb8d37;
    --accent-soft: #f2e3c2;
    --rose: #7b4d57;
    --danger: #9f2f2f;
    --focus: #2c6de8;
    --shadow: 0 12px 28px rgba(26, 31, 28, 0.08);
    --shadow-soft: 0 4px 12px rgba(26, 31, 28, 0.06);
    --radius: 8px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

body.admin,
body.portal {
    background: #f4f5f1;
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 12px clamp(16px, 4vw, 52px);
    background: #fffdf8;
    border-bottom: 1px solid rgba(201, 185, 141, 0.38);
}

.admin .topbar,
.portal .topbar,
.auth .topbar {
    background: rgba(17, 26, 22, 0.96);
    border-bottom-color: rgba(187, 141, 55, 0.28);
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.admin .brand,
.portal .brand,
.auth .brand {
    color: #fff9ec;
}

.brand img {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(187, 141, 55, 0.4);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.brand span {
    display: grid;
    gap: 0;
    line-height: 1.05;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin .brand small,
.portal .brand small,
.auth .brand small {
    color: #d8c89f;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}

.nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 750;
}

.admin .nav a,
.portal .nav a,
.auth .nav a {
    color: #f8f1de;
}

.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
    background: rgba(187, 141, 55, 0.16);
    color: var(--brand-strong);
    text-decoration: none;
}

.admin .nav a:hover,
.admin .nav a:focus,
.admin .nav a[aria-current="page"],
.portal .nav a:hover,
.portal .nav a:focus,
.portal .nav a[aria-current="page"],
.auth .nav a:hover,
.auth .nav a:focus,
.auth .nav a[aria-current="page"] {
    color: #ffffff;
    background: rgba(187, 141, 55, 0.22);
}

main {
    min-height: calc(100vh - 148px);
}

.hero {
    position: relative;
    min-height: min(560px, calc(100svh - 118px));
    display: grid;
    align-items: center;
    padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
    overflow: hidden;
    color: var(--ink);
    background-image:
        linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 48%, rgba(255, 253, 248, 0.64) 100%),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

.hero.slim {
    min-height: 320px;
    background-position: center right;
}

.content-hero {
    background-image:
        linear-gradient(90deg, rgba(17, 26, 22, 0.9), rgba(17, 26, 22, 0.78), rgba(17, 26, 22, 0.52)),
        url("/assets/memorial-floral-hero.png");
    color: #fffaf0;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
}

.hero h1,
.page-head h1,
.auth h1 {
    margin: 0 0 14px;
    max-width: 900px;
    font-size: clamp(2rem, 3.4vw, 3.55rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-head h1,
.auth h1 {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.hero p {
    max-width: 710px;
    margin: 0 0 22px;
    color: inherit;
    font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.content-hero .eyebrow,
.admin .eyebrow,
.portal .eyebrow {
    color: var(--accent);
}

.page-head {
    padding: 36px clamp(16px, 4vw, 52px);
    background: var(--brand-strong);
    border-bottom: 1px solid rgba(187, 141, 55, 0.38);
    color: #fffaf0;
}

.page-head p {
    max-width: 840px;
    margin: 0;
    color: #e7ddc5;
}

.band,
.stack,
.filters {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* A grid is a layout primitive, not a page container. Constraining every
   nested grid created a second set of gutters inside forms and panels. */
.grid {
    width: 100%;
    margin: 0;
}

main.page-enter > .grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.band {
    padding: clamp(38px, 6vw, 68px) 0;
}

.section-title {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.4vw, 2.35rem);
    line-height: 1.12;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.split,
.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.stack {
    display: grid;
    gap: 16px;
    padding: 24px 0;
}

.card,
.panel,
.form,
.step-card {
    background: var(--surface-raised);
    border: 1px solid rgba(222, 217, 204, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.card,
.panel {
    padding: 20px;
}

.panel {
    display: grid;
    gap: 8px;
    align-content: start;
}

.panel strong {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.insight-panel {
    border-color: rgba(187, 141, 55, 0.34);
    background: var(--surface-raised);
}

.service-strip {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
    background: var(--band-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.process-grid {
    align-items: stretch;
}

.process-card {
    min-height: 174px;
}

.card h2,
.card h3,
.panel h2,
.panel h3 {
    margin-top: 0;
}

.card h3,
.panel h3 {
    margin-bottom: 8px;
}

details.card summary {
    cursor: pointer;
    list-style-position: outside;
}

details.card[open] {
    border-color: rgba(187, 141, 55, 0.45);
}

.actions,
.inline-actions,
.filters,
.step-actions,
.card-topline,
.trust-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.actions {
    margin-top: 22px;
}

.trust-strip {
    margin-top: 24px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 760;
}

.trust-strip span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(187, 141, 55, 0.36);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.68);
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--brand);
    border-radius: 7px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: background 140ms ease, border-color 140ms ease;
}

.button:hover,
button:hover,
.button:focus,
button:focus {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    text-decoration: none;
}

.button.secondary {
    background: rgba(255, 253, 248, 0.9);
    color: var(--brand-strong);
    border-color: rgba(28, 90, 67, 0.3);
    box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus {
    background: var(--brand-soft);
}

.small-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.84rem;
}

.form {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.form.small {
    margin-top: 14px;
    padding: 14px;
    box-shadow: none;
}

.form.compact {
    width: min(460px, calc(100vw - 32px));
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 780;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #cfc9bc;
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input[type="file"] {
    padding: 9px;
    background: #fbfaf6;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(44, 109, 232, 0.2);
    border-color: var(--focus);
}

input[disabled],
textarea[disabled],
select[disabled] {
    color: #7f877f;
    background: #f1eee7;
}

.select-search {
    min-height: 38px;
    margin-bottom: -2px;
    border-color: rgba(187, 141, 55, 0.48);
    background: #ffffff;
}

.searchable-select {
    border-top-color: rgba(187, 141, 55, 0.48);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.check input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

fieldset {
    min-width: 0;
    border: 0;
}

legend {
    color: var(--ink);
    font-weight: 850;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 12px 0 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

tr:last-child td {
    border-bottom: 0;
}

th {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    background: var(--band);
}

.badge,
.status,
.price-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf4ec;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 850;
}

.price-pill {
    background: var(--accent-soft);
    color: #6c4b16;
}

.status {
    color: #173d2e;
    background: #dfeee3;
}

.metric {
    color: var(--brand-strong);
    font-weight: 850;
}

.metric-card {
    min-height: 126px;
    background: var(--surface-raised);
}

.metric-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    color: var(--brand-strong);
    font-size: 2.55rem;
    line-height: 1;
}

.guidance-grid {
    align-items: stretch;
}

.guidance-card {
    display: grid;
    gap: 8px;
    align-content: start;
}

.product-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.product-card h3 {
    margin-bottom: 0;
}

.cover-plans-band {
    width: min(1240px, calc(100% - 32px));
}

.cover-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    align-items: stretch;
}

.topup-grid {
    align-items: start;
}

.cover-plan-card,
.topup-card,
.public-info-card {
    gap: 12px;
}

.cover-plan-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    border-color: rgba(28, 90, 67, 0.18);
    background:
        linear-gradient(180deg, rgba(223, 234, 226, 0.78), rgba(255, 253, 248, 0) 138px),
        var(--surface-raised);
    box-shadow: 0 18px 34px rgba(26, 31, 28, 0.08);
}

.cover-plan-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.cover-plan-card > p,
.cover-plan-card > details {
    margin-inline: 20px;
}

.cover-plan-card > details {
    margin-bottom: 20px;
}

.cover-plan-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 22px 20px 4px;
}

.cover-plan-head h3 {
    margin: 10px 0 0;
    font-size: 1.28rem;
    line-height: 1.15;
}

.cover-plan-price {
    min-width: 132px;
    display: grid;
    gap: 2px;
    justify-items: end;
    padding: 11px 12px;
    border: 1px solid rgba(187, 141, 55, 0.28);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.78);
    color: var(--brand-strong);
}

.cover-plan-price span,
.cover-plan-price small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.cover-plan-price strong {
    color: var(--brand-strong);
    font-size: 1.34rem;
    line-height: 1.05;
    white-space: nowrap;
}

.cover-plan-price small {
    color: #7d5b1e;
}

.cover-plan-summary {
    color: var(--ink);
    font-size: 1.01rem;
    font-weight: 750;
}

.cover-plan-card details {
    margin-top: 4px;
    border-top: 1px solid rgba(222, 217, 204, 0.9);
    padding-top: 14px;
}

.cover-plan-card summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(28, 90, 67, 0.28);
    border-radius: 7px;
    background: rgba(28, 90, 67, 0.08);
    cursor: pointer;
    color: var(--brand-strong);
    font-weight: 850;
    list-style: none;
}

.cover-plan-card summary::-webkit-details-marker {
    display: none;
}

.cover-plan-card summary::after {
    content: "+";
    margin-left: 10px;
    font-size: 1.08rem;
    line-height: 1;
}

.cover-plan-card details[open] summary::after {
    content: "-";
}

.cover-plan-card summary:hover,
.cover-plan-card summary:focus {
    background: var(--brand-soft);
    text-decoration: none;
}

.cover-plan-details {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cover-plan-details h4 {
    margin: 10px 0 0;
    color: var(--brand-strong);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cover-plan-details table {
    margin-bottom: 8px;
    box-shadow: none;
}

.compact-list {
    gap: 8px;
}

.compact-list li {
    padding: 10px 12px;
}

.public-info-card p {
    margin: 0;
}

.google-contact .grid {
    align-items: stretch;
}

.google-business-panel .actions {
    margin-top: 10px;
}

.google-map-frame {
    min-height: 320px;
    overflow: hidden;
    border: 1px solid rgba(222, 217, 204, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    background: var(--surface-raised);
}

.google-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

.google-map-placeholder {
    min-height: 320px;
    align-content: center;
}

.integration-status-card {
    min-height: 104px;
}

.integration-status-card strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.admin-edit-list {
    display: grid;
    gap: 10px;
}

.public-admin-row {
    border-color: rgba(187, 141, 55, 0.28);
    background: var(--band);
}

.readable {
    max-width: 880px;
}

.readable p {
    font-size: 1.04rem;
}

.policy-terms h2 {
    margin: 2.4rem 0 0.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 1.35rem;
    line-height: 1.3;
}

.policy-terms h3 {
    margin: 1.4rem 0 0.5rem;
    font-size: 1.08rem;
}

.policy-terms p,
.policy-terms ul {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.policy-terms ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.policy-terms li + li {
    margin-top: 0.35rem;
}

.detail-grid {
    align-items: start;
}

/* Intrinsic table/text widths must not expand a public-page grid track. */
body.public .split > *,
body.public .grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.public .premium-options {
    table-layout: fixed;
    background: #102119;
    color: #f8f3e9;
    border-color: rgba(239, 220, 174, 0.18);
}

body.public .premium-options th,
body.public .premium-options td {
    border-color: rgba(239, 220, 174, 0.18);
}

body.public .premium-options th {
    background: #102119;
    color: #dfaf58;
}

@media (max-width: 680px) {
    .detail-grid .premium-options {
        display: block;
        width: 100%;
        white-space: normal;
        overflow: visible;
    }

    .premium-options thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .premium-options tbody,
    .premium-options tr {
        display: block;
    }

    .premium-options tr + tr {
        border-top: 2px solid var(--accent);
    }

    .premium-options td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .premium-options td::before {
        content: attr(data-label);
        font-weight: 700;
    }
}

.feature-list {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.feature-list li,
.timeline li {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: var(--band);
}

.timeline {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.timeline time {
    color: var(--muted);
    font-size: 0.85rem;
}

.portal-head {
    display: grid;
    gap: 10px;
    padding-bottom: 28px;
}

.portal-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #f8f1de;
    font-weight: 760;
}

.portal-tabs-wrap {
    position: sticky;
    top: 71px;
    z-index: 15;
    background: rgba(244, 245, 241, 0.95);
    border-bottom: 1px solid rgba(201, 185, 141, 0.34);
    backdrop-filter: blur(16px);
}

.portal-tabs {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.portal-tab {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(28, 90, 67, 0.18);
    border-radius: 7px;
    background: rgba(255, 253, 248, 0.84);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.portal-tab:hover,
.portal-tab:focus,
.portal-tab.active {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    color: #fffaf0;
    text-decoration: none;
}

.portal-shell {
    padding: 22px 0 58px;
}

.portal-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.portal-section + .portal-section {
    margin-top: 24px;
}

.portal-metrics {
    padding-top: 0;
}

.portal-metrics .metric-card strong {
    font-size: 2rem;
    overflow-wrap: anywhere;
}

.account-panel h2 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

.definition-list {
    display: grid;
    gap: 0;
    margin: 10px 0 0;
}

.definition-list div {
    display: grid;
    grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(222, 217, 204, 0.82);
}

.definition-list dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.definition-list dd {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    font-weight: 720;
    overflow-wrap: anywhere;
}

.record-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.record-heading h3 {
    margin: 0;
}

.portal-record {
    display: grid;
    gap: 12px;
    align-content: start;
}

.cover-record h2 {
    margin: 0;
    font-size: 1.55rem;
}

.flush-form {
    border: 0;
    box-shadow: none;
    background: var(--band);
}

.empty-state {
    padding: clamp(22px, 4vw, 34px);
    border: 1px dashed rgba(187, 141, 55, 0.55);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.72);
    color: var(--muted);
}

.empty-state h3 {
    margin: 0 0 6px;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
}

.journey-shell {
    max-width: 980px;
}

.journey-form {
    display: grid;
    gap: 16px;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-steps li {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--muted);
    font-weight: 850;
}

.journey-steps li.active,
.journey-steps li.complete {
    border-color: rgba(187, 141, 55, 0.64);
    background: var(--brand-strong);
    color: #fffaf0;
}

.journey-steps li.complete {
    background: var(--brand);
}

.step-card {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 3vw, 28px);
}

.journey-form.is-enhanced .step-card {
    display: none;
}

.journey-form.is-enhanced .step-card.active {
    display: grid;
}

.step-card legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.9rem;
}

.step-actions {
    justify-content: flex-end;
}

.flash {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-raised);
    box-shadow: var(--shadow-soft);
}

.flash[hidden] {
    display: none !important;
}

.flash-icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flash-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.flash-title {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.25;
}

.flash-message {
    margin: 0;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.flash-dismiss {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.flash-dismiss:hover,
.flash-dismiss:focus-visible {
    background: rgba(17, 26, 22, 0.08);
    outline: none;
}

.flash.success {
    border-color: #a9d4b4;
    color: #147343;
    background: #eef8ef;
}

.flash.error {
    border-color: #e3a5a5;
    color: var(--danger);
    background: #fff4f4;
}

.flash.warning {
    border-color: #e8c26a;
    color: #8a5b00;
    background: #fff7e3;
}

.flash.info {
    border-color: #a9c5ec;
    color: #1f5fbf;
    background: #eef5ff;
}

.flash.error .flash-title,
.flash.warning .flash-title,
.flash.info .flash-title,
.flash.success .flash-title {
    color: currentColor;
}

.auth {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
    padding: 38px 16px;
    background:
        linear-gradient(135deg, rgba(17, 26, 22, 0.88), rgba(28, 90, 67, 0.75)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

.auth .form {
    border-color: rgba(187, 141, 55, 0.38);
    background: rgba(255, 253, 248, 0.96);
    color: #151715;
}

.auth .form h1 {
    color: #151715;
}

.auth .form label,
.auth .form .muted {
    color: #5f584e;
}

.auth .form input,
.auth .form textarea,
.auth .form select {
    border-color: #cfc5b2;
    background: #ffffff;
    color: #151715;
}

.auth .form input:focus,
.auth .form textarea:focus,
.auth .form select:focus {
    outline-color: rgba(44, 109, 232, 0.2);
    border-color: var(--focus);
}

code {
    white-space: normal;
    word-break: break-word;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px clamp(16px, 4vw, 52px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fffdf8;
}

footer nav {
    display: flex;
    gap: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f5efe3;
        --ink-soft: #e1d9c9;
        --muted: #b7af9f;
        --line: #384339;
        --line-strong: #a98642;
        --surface: #101511;
        --surface-raised: #17211b;
        --band: #161e18;
        --band-alt: #121b16;
        --brand: #78a889;
        --brand-strong: #c7dfce;
        --brand-soft: #213429;
        --accent: #d2aa58;
        --accent-soft: #4a3a20;
        --rose: #c28d9b;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
        --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.25);
        color-scheme: dark;
    }

    body,
    body.admin,
    body.portal {
        background: #101511;
    }

    .topbar {
        background: rgba(17, 26, 22, 0.94);
        border-bottom-color: rgba(210, 170, 88, 0.32);
    }

    .brand,
    .nav a {
        color: #fff9ec;
    }

    .brand small {
        color: #d8c89f;
    }

    .hero {
        color: #fff9ec;
        background-image:
            linear-gradient(90deg, rgba(16, 21, 17, 0.94) 0%, rgba(16, 21, 17, 0.78) 45%, rgba(16, 21, 17, 0.1) 84%),
            url("/assets/memorial-floral-hero.png");
    }

    .trust-strip {
        color: #f4ead8;
    }

    .trust-strip span,
    input,
    textarea,
    select,
    table,
    .journey-steps li {
        background: #17211b;
        color: #f5efe3;
    }

    input[type="file"],
    .select-search {
        background: #141c17;
    }

    .button.secondary {
        background: #17211b;
        color: #f5efe3;
        border-color: rgba(210, 170, 88, 0.42);
    }

    .button.secondary:hover,
    .button.secondary:focus {
        background: #213429;
    }

    .metric-card,
    .insight-panel {
        background: #17211b;
    }

    .cover-plan-card {
        border-color: rgba(210, 170, 88, 0.22);
        background:
            linear-gradient(180deg, rgba(33, 52, 41, 0.88), rgba(23, 33, 27, 0) 138px),
            #17211b;
    }

    .cover-plan-price {
        background: rgba(16, 21, 17, 0.74);
        border-color: rgba(210, 170, 88, 0.32);
    }

    .cover-plan-price small {
        color: #d2aa58;
    }

    .cover-plan-card details {
        border-top-color: rgba(210, 170, 88, 0.22);
    }

    .cover-plan-card summary {
        background: rgba(120, 168, 137, 0.14);
        border-color: rgba(120, 168, 137, 0.34);
    }

    .portal-tabs-wrap {
        background: rgba(16, 21, 17, 0.95);
        border-bottom-color: rgba(210, 170, 88, 0.25);
    }

    .portal-tab {
        background: #17211b;
        border-color: rgba(210, 170, 88, 0.34);
        color: #f5efe3;
    }

    .definition-list div {
        border-top-color: #384339;
    }

    .empty-state,
    .flush-form {
        background: #161e18;
    }

    footer {
        background: #101511;
    }
}

@media (max-width: 980px) {
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
    }

    .grid.two,
    .grid.three,
    .grid.four,
    .split,
    .service-grid {
        grid-template-columns: 1fr;
    }

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

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

    .portal-tabs-wrap {
        top: 0;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .hero,
    .hero.slim {
        min-height: 430px;
        padding: 44px 16px 54px;
        background-position: center right;
    }

    .hero {
        background-image:
            linear-gradient(90deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.58)),
            url("/assets/memorial-floral-hero.png");
    }

    .content-hero {
        background-image:
            linear-gradient(90deg, rgba(17, 26, 22, 0.91), rgba(28, 90, 67, 0.78), rgba(17, 26, 22, 0.5)),
            url("/assets/memorial-floral-hero.png");
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .topbar {
        padding: 12px 16px;
        overflow-x: hidden;
    }

    .nav a {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 0.84rem;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 358px;
    }

    .nav a {
        justify-content: center;
        min-width: 0;
        text-align: center;
        white-space: normal;
    }

    .hero-copy {
        width: 100%;
        max-width: 358px;
    }

    .cover-plans-band {
        width: min(100% - 24px, 1240px);
    }

    .cover-plan-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cover-plan-head {
        grid-template-columns: 1fr;
    }

    .cover-plan-price {
        width: 100%;
        justify-items: start;
    }

    .cover-plan-card > p,
    .cover-plan-card > details {
        margin-inline: 16px;
    }

    .cover-plan-card > details {
        margin-bottom: 16px;
    }

    .cover-plan-head {
        padding-inline: 16px;
    }

    .cover-plan-card summary {
        width: 100%;
    }

    .hero p,
    .hero h1 {
        overflow-wrap: anywhere;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .portal-tabs {
        width: 100%;
        padding: 10px 16px;
    }

    .portal-tab {
        min-width: 112px;
    }

    .portal-identity {
        display: grid;
        align-items: stretch;
    }

    .definition-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .portal-section {
        width: min(1180px, calc(100% - 24px));
    }

    .journey-steps {
        grid-template-columns: 1fr;
    }

    .step-actions {
        justify-content: stretch;
    }

    .step-actions .button,
    .step-actions button {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) and (max-width: 680px) {
    .hero {
        background-image:
            linear-gradient(90deg, rgba(16, 21, 17, 0.94), rgba(16, 21, 17, 0.78), rgba(16, 21, 17, 0.45)),
            url("/assets/memorial-floral-hero.png");
    }

    .content-hero {
        background-image:
            linear-gradient(90deg, rgba(17, 26, 22, 0.93), rgba(28, 90, 67, 0.8), rgba(17, 26, 22, 0.55)),
            url("/assets/memorial-floral-hero.png");
    }
}

body.portal {
    --brand: #ec1e2e;
    --brand-strong: #111111;
    --brand-soft: #fff1f3;
    --accent: #c79a38;
    --accent-soft: #f8e9c7;
    --line: #dedede;
    --line-strong: #ec1e2e;
    background: #f6f6f6;
}

.portal .topbar {
    background: rgba(12, 12, 12, 0.98);
    border-bottom-color: rgba(236, 30, 46, 0.34);
}

.portal .brand img {
    border-color: rgba(236, 30, 46, 0.4);
}

.portal .nav a:hover,
.portal .nav a:focus,
.portal .nav a[aria-current="page"] {
    background: rgba(236, 30, 46, 0.22);
    color: #ffffff;
}

.portal .button.secondary {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.18);
}

.portal .button.secondary:hover,
.portal .button.secondary:focus {
    background: #fff1f3;
    border-color: rgba(236, 30, 46, 0.42);
    color: #b5121d;
}

.portal .page-head {
    background: #111111;
    border-bottom-color: rgba(236, 30, 46, 0.52);
}

.portal .page-head p {
    color: #eadfcd;
}

.portal-identity .badge {
    border: 1px solid rgba(236, 30, 46, 0.42);
    background: rgba(236, 30, 46, 0.16);
    color: #ffffff;
}

.portal-tab {
    border-color: rgba(17, 17, 17, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.portal-tab:hover,
.portal-tab:focus,
.portal-tab.active {
    border-color: #ec1e2e;
    background: #111111;
    color: #ffffff;
}

.button-arrow {
    margin-left: 8px;
    font-weight: 900;
}

.portal-overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: var(--radius);
    background: #111111;
    box-shadow: var(--shadow-soft);
}

.portal-overview-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-height: 310px;
    padding: clamp(24px, 5vw, 42px);
    background: #111111;
    color: #ffffff;
}

.portal-logo-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.portal-logo-lockup img {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(199, 154, 56, 0.46);
    border-radius: 8px;
    background: #050505;
    object-fit: cover;
}

.portal-logo-lockup span,
.portal-logo-lockup strong {
    display: block;
}

.portal-logo-lockup span {
    color: #cfcfcf;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-logo-lockup strong {
    color: #f3d58d;
    font-size: 0.95rem;
}

.portal-overview-copy h2 {
    margin: 0;
    max-width: 740px;
    font-size: 2.35rem;
    line-height: 1.08;
}

.portal-overview-copy p {
    max-width: 680px;
    margin: 0;
    color: #f1e8d9;
    font-size: 1.05rem;
}

.portal-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.portal-next-payment {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: clamp(22px, 4vw, 34px);
    background: #ffffff;
    color: var(--ink);
}

.portal-next-payment h2 {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.08;
}

.portal-next-payment strong {
    color: #ec1e2e;
    font-size: 1.35rem;
}

.portal-next-payment p {
    margin: 0;
    color: var(--muted);
}

.portal-overview-metrics,
.portal-payment-summary {
    margin-top: 22px;
}

.portal-kpi {
    position: relative;
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 168px;
    overflow: hidden;
    border-color: rgba(17, 17, 17, 0.1);
    background: #ffffff;
}

.portal-kpi::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #111111;
}

.portal-kpi-primary::before,
.portal-kpi-alert::before {
    background: #ec1e2e;
}

.portal-kpi strong {
    margin-top: 2px;
    color: #111111;
    font-size: 1.95rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.portal-kpi p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.portal-kpi-alert strong {
    color: #b5121d;
}

.metric-link {
    align-self: end;
    margin-top: 4px;
    color: #b5121d;
    font-weight: 850;
    text-decoration: none;
}

.metric-link:hover,
.metric-link:focus {
    color: #ec1e2e;
}

.portal-priority-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.portal-priority-list {
    display: grid;
    gap: 10px;
}

.portal-priority-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-left: 4px solid #111111;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.portal-priority-item.priority-urgent {
    border-left-color: #ec1e2e;
}

.portal-priority-item.priority-warning {
    border-left-color: #c79a38;
}

.portal-priority-item.priority-complete {
    border-left-color: #2d7f47;
}

.portal-priority-item h3 {
    margin: 0 0 3px;
}

.portal-priority-item p {
    margin: 0;
    color: var(--muted);
    font-weight: 720;
}

.portal-workflow-section {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.portal-workflow-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 20px;
    align-items: end;
}

.portal-workflow-head h2 {
    margin: 4px 0 6px;
}

.portal-workflow-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.portal-workflow-score {
    display: grid;
    gap: 6px;
}

.portal-workflow-score strong {
    color: #111111;
    font-size: 2rem;
    line-height: 1;
}

.portal-workflow-score span {
    color: var(--muted);
    font-weight: 760;
}

.portal-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8e2d4;
}

.portal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2d7f47;
}

.portal-workflow-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.workflow-step-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-step {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 7px;
    color: #313a33;
    background: #fbfaf6;
    font-weight: 760;
}

.workflow-step span {
    display: inline-grid;
    place-items: center;
    min-height: 22px;
    border-radius: 999px;
    background: #f2e3c2;
    color: #704c13;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.workflow-step-complete span {
    background: #def3e6;
    color: #145c35;
}

.portal-workflow-list {
    display: grid;
    gap: 10px;
}

.portal-workflow-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-left: 4px solid #1f5fbf;
    border-radius: var(--radius);
    background: #ffffff;
}

.portal-workflow-item.workflow-urgent {
    border-left-color: #ec1e2e;
}

.portal-workflow-item.workflow-warning {
    border-left-color: #c79a38;
}

.portal-workflow-item.workflow-complete {
    border-left-color: #2d7f47;
}

.workflow-item-copy {
    min-width: 0;
}

.workflow-stage {
    color: #7b5618;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-workflow-item h3 {
    margin: 2px 0 4px;
}

.portal-workflow-item p {
    margin: 0;
    color: var(--muted);
}

.portal-workflow-item .workflow-summary {
    color: #111111;
    font-weight: 820;
}

.portal-action-panel,
.portal-profile-snapshot {
    border-color: rgba(17, 17, 17, 0.1);
}

.portal-action-panel {
    background: #ffffff;
}

.portal-calendar-preview-section,
.portal-calendar-shell {
    margin-top: 24px;
}

.portal-calendar {
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.portal-calendar-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(17, 17, 17, 0.14);
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.portal-calendar-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #111111;
    color: #ffffff;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.portal-calendar-menu a:hover,
.portal-calendar-menu a:focus {
    background: #ec1e2e;
}

.portal-calendar-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f8f8f8;
}

.portal-calendar-stat {
    display: grid;
    gap: 4px;
    min-height: 82px;
    padding: 13px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius);
    background: #ffffff;
}

.portal-calendar-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-calendar-stat strong {
    color: #111111;
    font-size: 1.9rem;
    line-height: 1;
}

.calendar-section {
    padding: 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.calendar-section:first-of-type {
    border-top: 0;
}

.calendar-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.calendar-section-head h3 {
    margin: 0;
}

.calendar-section-head span,
.calendar-empty {
    color: var(--muted);
    font-weight: 760;
}

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

.calendar-entry {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: var(--radius);
    background: #ffffff;
}

.calendar-entry-upcoming {
    border-color: rgba(236, 30, 46, 0.28);
    background: #fff7f8;
}

.calendar-entry-paid {
    border-color: rgba(45, 127, 71, 0.24);
    background: #f5fbf7;
}

.calendar-entry-pending {
    border-color: rgba(199, 154, 56, 0.38);
    background: #fffaf0;
}

.calendar-entry-date {
    color: #111111;
    font-weight: 900;
}

.calendar-entry-copy {
    min-width: 0;
}

.calendar-entry-copy strong {
    display: block;
    margin-bottom: 2px;
}

.calendar-entry-copy p,
.calendar-entry-copy small {
    margin: 0;
    color: var(--muted);
}

.calendar-entry-copy p {
    overflow-wrap: anywhere;
}

.calendar-entry-value {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.calendar-entry-value strong {
    color: #111111;
}

.portal-calendar-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 18px 18px;
}

.status-status-active,
.status-active,
.status-paid,
.status-verified {
    color: #15592e;
    background: #dff3e5;
}

.status-due,
.status-pending-activation,
.status-pending-verification,
.status-recorded,
.status-partially-paid {
    color: #6b4c08;
    background: #fff0c8;
}

.status-overdue,
.status-rejected,
.status-reversed {
    color: #9a101a;
    background: #ffe0e3;
}

.portal-ledger-section {
    align-items: start;
    margin-top: 24px;
}

@media (max-width: 980px) {
    .portal-overview-hero,
    .portal-priority-section,
    .portal-workflow-head,
    .portal-workflow-grid {
        grid-template-columns: 1fr;
    }

    .portal-overview-copy {
        min-height: 260px;
    }

    .portal-calendar-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .portal-overview-copy h2 {
        font-size: 1.75rem;
    }

    .portal-logo-lockup {
        align-items: flex-start;
    }

    .portal-hero-actions .button,
    .portal-hero-actions button {
        width: 100%;
    }

    .portal-kpi,
    .portal-calendar-stat {
        min-height: auto;
    }

    .portal-priority-item,
    .portal-workflow-item,
    .calendar-entry {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .portal-priority-item .button,
    .portal-workflow-item .button,
    .calendar-entry-value {
        justify-self: stretch;
    }

    .calendar-entry-value {
        justify-items: start;
        text-align: left;
    }

    .portal-calendar-menu,
    .portal-calendar-stats {
        grid-template-columns: 1fr;
    }

    .calendar-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-calendar-footer {
        justify-content: stretch;
    }

    .portal-calendar-footer .button {
        width: 100%;
    }
}

body.admin {
    --brand: #111111;
    --brand-strong: #050505;
    --brand-soft: #f5efe2;
    --accent: #a97a24;
    --accent-soft: #f4e4bf;
    --rose: #8f2631;
    --line: #ddd5c6;
    --line-strong: #a97a24;
    --surface: #f7f5ef;
    --surface-raised: #ffffff;
    --band: #efebe1;
    --band-alt: #f4f0e7;
    --muted: #655f54;
    --shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
    --shadow-soft: 0 4px 12px rgba(17, 17, 17, 0.07);
    background: #f8f7f2;
}

.admin .topbar {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: rgba(169, 122, 36, 0.44);
}

.admin .brand img {
    border-color: rgba(184, 137, 45, 0.52);
    background: #080808;
}

.admin .nav a:hover,
.admin .nav a:focus,
.admin .nav a[aria-current="page"] {
    background: rgba(169, 122, 36, 0.24);
    color: #ffffff;
}

.admin .page-head {
    background: #111111;
    border-bottom-color: rgba(184, 137, 45, 0.58);
}

.admin .page-head p {
    color: #eadfcd;
}

.admin .button,
.admin button {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    box-shadow: none;
}

.admin .button:hover,
.admin button:hover,
.admin .button:focus,
.admin button:focus {
    background: #5f4211;
    border-color: #5f4211;
}

.admin .button.secondary {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.16);
    color: #111111;
}

.admin .button.secondary:hover,
.admin .button.secondary:focus {
    background: #fff8ea;
    border-color: rgba(169, 122, 36, 0.42);
    color: #5f4211;
}

.admin .card,
.admin .panel,
.admin .form,
.admin .step-card {
    border-color: rgba(17, 17, 17, 0.1);
}

.admin table {
    border-color: rgba(17, 17, 17, 0.1);
    background: #ffffff;
    color: #151715;
}

.admin th {
    background: #f0ece3;
    color: #5e584e;
}

.admin .badge,
.admin .status {
    border: 1px solid rgba(184, 137, 45, 0.28);
    background: #f8e9c7;
    color: #5e4212;
}

.admin .status {
    background: #f3efe7;
    color: #3f3a33;
}

.admin .metric-link {
    color: #6b4a13;
    font-weight: 850;
    text-decoration: none;
}

.admin .metric-link:hover,
.admin .metric-link:focus {
    color: #a97a24;
}

.admin label {
    color: #5f584e;
}

.admin input,
.admin textarea,
.admin select,
.admin .select-search,
.admin input[type="file"] {
    border-color: #cfc5b2;
    background: #ffffff;
    color: #151715;
}

.admin textarea {
    background: #ffffff;
}

.admin input:focus,
.admin textarea:focus,
.admin select:focus {
    outline-color: rgba(169, 122, 36, 0.24);
    border-color: #a97a24;
}

.admin input[disabled],
.admin textarea[disabled],
.admin select[disabled] {
    background: #ece7dd;
    color: #70695f;
}

.admin legend,
.admin details.card summary {
    color: #151715;
}

.admin main > .grid,
.admin main > .stack {
    margin-top: 24px;
    margin-bottom: 52px;
}

.admin main > table {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 52px;
}

.admin main > details.card {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 64px;
    display: grid;
    gap: 24px;
}

.admin-shell > .grid,
.admin-shell > .admin-directive-section {
    width: 100%;
    margin: 0;
}

.admin-command-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.admin-command-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: #a97a24;
}

.admin-command-panel h2 {
    margin: 0 0 8px;
    max-width: 680px;
    color: #111111;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.admin-command-panel p {
    max-width: 680px;
    margin: 0 0 18px;
    color: #5f584e;
    font-weight: 720;
}

.admin-command-rules {
    display: grid;
    gap: 10px;
    align-content: center;
}

.admin-command-rules span {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-left: 4px solid #111111;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    color: #111111;
    font-weight: 850;
}

.admin-command-panel-urgent .admin-command-rules span:first-child {
    border-left-color: #8f2631;
}

.admin-command-panel-warning .admin-command-rules span:first-child {
    border-left-color: #b9892d;
}

.admin-command-panel-steady .admin-command-rules span:first-child {
    border-left-color: #2f7d4b;
}

.admin-kpi-grid {
    align-items: stretch;
}

.admin-kpi {
    position: relative;
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 168px;
    overflow: hidden;
    background: #ffffff;
}

.admin-kpi::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #111111;
}

.admin-kpi-urgent::before {
    background: #8f2631;
}

.admin-kpi-warning::before {
    background: #b9892d;
}

.admin-kpi-stable::before,
.admin-kpi-steady::before {
    background: #2f7d4b;
}

.admin-kpi strong {
    margin-top: 2px;
    color: #111111;
    font-size: 2.2rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.admin-kpi p {
    margin: 0;
    color: #655f54;
    font-weight: 720;
}

.admin-directive-section {
    display: grid;
    gap: 18px;
}

.admin-directive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-directive-card {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 16px;
    min-height: 220px;
    border-left: 4px solid #111111;
}

.admin-directive-card h3 {
    margin: 12px 0 6px;
}

.admin-directive-card p {
    margin: 0;
    color: #655f54;
    font-weight: 700;
}

.admin-directive-card.directive-urgent {
    border-left-color: #8f2631;
}

.admin-directive-card.directive-warning {
    border-left-color: #b9892d;
}

.admin-directive-card.directive-complete,
.admin-directive-card.directive-steady,
.admin-directive-card.directive-stable {
    border-left-color: #2f7d4b;
}

@media (max-width: 980px) {
    .admin-command-panel,
    .admin-directive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .admin-shell {
        width: min(1180px, calc(100% - 24px));
        padding-top: 18px;
    }

    .admin-kpi,
    .admin-directive-card {
        min-height: auto;
    }

    .admin-directive-card .button {
        width: 100%;
    }
}

.cover-application {
    width: min(1420px, calc(100% - 32px));
    margin: clamp(18px, 3vw, 34px) auto clamp(42px, 7vw, 82px);
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.cover-visual {
    position: sticky;
    top: 92px;
    min-height: min(760px, calc(100svh - 126px));
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(8, 10, 9, 0.14), rgba(8, 10, 9, 0.78)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: 0 22px 55px rgba(17, 17, 17, 0.16);
}

.cover-visual-content {
    min-height: inherit;
    display: grid;
    align-content: space-between;
    gap: 28px;
    padding: clamp(22px, 4vw, 34px);
}

.cover-visual-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.42);
    backdrop-filter: blur(12px);
}

.cover-visual-brand img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.cover-visual-brand span {
    display: grid;
    line-height: 1.05;
}

.cover-visual-brand strong {
    font-size: 1.05rem;
}

.cover-visual-brand small {
    color: #f3d58d;
    font-weight: 850;
    text-transform: uppercase;
}

.cover-visual-copy {
    display: grid;
    gap: 10px;
    align-self: end;
}

.cover-visual-copy h2 {
    max-width: 340px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.03;
}

.cover-visual-copy p {
    max-width: 360px;
    margin: 0;
    color: #f5ecdc;
    font-size: 1rem;
}

.cover-visual-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cover-visual-pills span {
    min-width: 0;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.46);
    color: #fff7e8;
    font-size: 0.78rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.cover-workspace {
    min-width: 0;
    display: grid;
    gap: 18px;
    overflow: hidden;
}

.cover-workspace-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0 0;
}

.cover-workspace-head h1 {
    margin: 0 0 8px;
    color: #fffaf0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
}

.cover-workspace-head p {
    max-width: 760px;
    margin: 0;
    color: #d9e2dc;
    font-size: 1.04rem;
    overflow-wrap: anywhere;
}

.cover-self-service {
    display: grid;
    gap: 18px;
}

.cover-stepper {
    position: sticky;
    top: 70px;
    z-index: 12;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 18px 0 10px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(14px);
}

.cover-stepper li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 76px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8b948d;
    text-align: center;
    font-weight: 850;
}

.cover-stepper li::after {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: #d8dde0;
}

.cover-stepper li:last-child::after {
    display: none;
}

.cover-stepper li.active,
.cover-stepper li.complete {
    border-color: transparent;
    background: transparent;
    color: #ff5a00;
}

.cover-stepper li.complete {
    color: #1c5a43;
}

.step-bubble {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dce1;
    border-radius: 999px;
    background: #ffffff;
    color: #84909a;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.cover-stepper li.active .step-bubble {
    border-color: #ff5a00;
    background: #ff5a00;
    color: #ffffff;
}

.cover-stepper li.complete .step-bubble {
    border-color: #1c5a43;
    background: #1c5a43;
    color: #ffffff;
}

.step-label {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.cover-step-card {
    border-color: rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 20px 45px rgba(17, 17, 17, 0.08);
}

.cover-step-card legend {
    color: #111111;
}

.cover-step-card .step-index {
    background: #ff5a00;
}

.cover-step-intro {
    display: grid;
    gap: 7px;
    padding-bottom: 4px;
}

.cover-step-intro h2 {
    margin: 0;
    color: #111111;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.12;
}

.cover-step-intro p {
    max-width: 820px;
    margin: 0;
    color: #53605a;
}

.cover-step-card input,
.cover-step-card textarea,
.cover-step-card select,
.derived-input {
    min-height: 48px;
    border-color: transparent;
    background: #f2f4f6;
    color: #111111;
}

.cover-step-card textarea {
    min-height: 96px;
}

.cover-step-card input:focus,
.cover-step-card textarea:focus,
.cover-step-card select:focus {
    border-color: #ff8a2b;
    outline: 3px solid rgba(255, 90, 0, 0.17);
    background: #ffffff;
}

.derived-input {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #53605a;
    font-weight: 760;
}

.segmented-field {
    display: grid;
    gap: 7px;
    color: #69736c;
    font-weight: 780;
}

.segmented-options {
    min-height: 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    border-radius: 7px;
    background: #f2f4f6;
}

.segmented-options label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 6px;
    color: #111111;
    font-weight: 800;
}

.segmented-options input {
    width: 16px;
    min-height: 16px;
}

.cover-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cover-info-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-info-tile {
    display: grid;
    gap: 7px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(28, 90, 67, 0.12);
    border-radius: 8px;
    background: #f8fbf8;
}

.cover-info-tile strong {
    color: #1c5a43;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.cover-info-tile span {
    color: #2d332f;
}

.cover-consent {
    padding: 16px;
    border: 1px solid rgba(255, 90, 0, 0.18);
    border-radius: 8px;
    background: #fff4ec;
    color: #2d332f;
}

.cover-consent > span { display: inline; min-width: 0; flex: 1; }
.cover-consent > input { flex: 0 0 auto; margin-top: 4px; }

.cover-consent a {
    color: #d84d00;
    font-weight: 850;
}

.cover-plan-select-grid {
    align-items: stretch;
}

.plan-picker-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.plan-choice-picker {
    position: relative;
    min-width: 0;
}

body.public .plan-choice-trigger {
    width: 100%;
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 15px;
    align-items: center;
    gap: 12px;
    padding: 13px 14px 13px 16px;
    border: 1px solid rgba(28, 90, 67, 0.36);
    border-left: 3px solid #dfaf58;
    border-radius: 3px;
    background:
        linear-gradient(90deg, rgba(223, 175, 88, 0.07), transparent 42%),
        #ffffff;
    color: #102119;
    box-shadow: 0 5px 14px rgba(16, 33, 25, 0.07);
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

body.public .plan-choice-trigger:hover,
body.public .plan-choice-picker.is-open .plan-choice-trigger {
    border-color: rgba(223, 175, 88, 0.9);
    background:
        linear-gradient(90deg, rgba(223, 175, 88, 0.13), transparent 45%),
        #fffdf8;
    box-shadow: 0 9px 19px rgba(16, 33, 25, 0.12);
}

body.public .plan-choice-trigger:focus-visible,
body.public .plan-choice-option:focus-visible {
    outline: 3px solid rgba(223, 175, 88, 0.36);
    outline-offset: 2px;
}

.plan-choice-trigger-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.plan-choice-trigger-label,
.plan-choice-option-tier,
.plan-choice-option-audience-label,
.cover-plan-audience > span,
.cover-plan-tier {
    color: #9c6c1d;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.plan-choice-trigger-title {
    color: #102119;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.16;
    white-space: normal;
}

.plan-choice-trigger-audience {
    display: none;
}

.plan-choice-trigger-price {
    color: #1c5a43;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.plan-choice-trigger-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #1c5a43;
    border-bottom: 2px solid #1c5a43;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
}

.plan-choice-picker.is-open .plan-choice-trigger-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.plan-choice-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid rgba(233, 186, 101, 0.62);
    border-radius: 3px;
    background: #102119;
    box-shadow: 0 22px 40px rgba(8, 18, 13, 0.34);
}

.plan-choice-menu-header {
    display: grid;
    gap: 3px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(239, 220, 174, 0.2);
    background:
        radial-gradient(circle at 100% 0, rgba(223, 175, 88, 0.22), transparent 48%),
        #102119;
}

.plan-choice-menu-header strong {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 600;
}

.plan-choice-menu-header span {
    color: #cfc6b4;
    font-size: 0.76rem;
    line-height: 1.35;
}

.plan-choice-options {
    display: grid;
    max-height: min(460px, 54vh);
    overflow-y: auto;
    background: rgba(239, 220, 174, 0.15);
}

body.public .plan-choice-option {
    min-height: 124px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    gap: 4px 14px;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: #102119;
    color: #fffaf0;
    box-shadow: none;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.public .plan-choice-option:hover,
body.public .plan-choice-option:focus-visible,
body.public .plan-choice-option.is-selected {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(223, 175, 88, 0.13), transparent 54%),
        #173225;
    box-shadow: inset 3px 0 #dfaf58;
    transform: none;
}

.plan-choice-option-name {
    grid-column: 1;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.16;
}

.plan-choice-option-audience {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    color: #d6d1c6;
    font-size: 0.76rem;
    line-height: 1.42;
}

.plan-choice-option-audience-label {
    margin-top: 1px;
    color: #e9ba65;
    font-size: 0.58rem;
    white-space: nowrap;
}

.plan-choice-option-audience-text {
    min-width: 0;
}

.plan-choice-option-details {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: max-content;
}

.plan-choice-option-cover {
    color: #cfc6b4;
    font-size: 0.69rem;
    font-weight: 720;
}

.plan-choice-option-premium {
    color: #f4d28a;
    font-size: 0.79rem;
    font-weight: 850;
    white-space: nowrap;
}

.cover-plan-snapshot {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 20px;
    border: 1px solid rgba(233, 186, 101, 0.38);
    border-left: 3px solid #dfaf58;
    border-radius: 3px;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 175, 88, 0.18), transparent 40%),
        #102119;
    color: #fffaf0;
    box-shadow: 0 16px 30px rgba(8, 18, 13, 0.16);
}

.cover-plan-snapshot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cover-plan-snapshot .badge {
    border: 1px solid rgba(233, 186, 101, 0.46);
    border-radius: 999px;
    background: rgba(233, 186, 101, 0.11);
    color: #f4d28a;
}

.cover-plan-tier {
    color: #cfc6b4;
    text-align: right;
}

.cover-plan-snapshot h3 {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 1.9vw, 1.68rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.cover-plan-audience {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(239, 220, 174, 0.18);
    border-bottom: 1px solid rgba(239, 220, 174, 0.18);
}

.cover-plan-audience > span {
    color: #e9ba65;
}

.cover-plan-audience strong {
    color: #f2eee5;
    font-size: 0.9rem;
    font-weight: 620;
    line-height: 1.45;
}

.cover-plan-snapshot dl,
.application-review {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cover-plan-snapshot dl div,
.application-review div {
    display: grid;
    grid-template-columns: minmax(128px, 0.4fr) minmax(0, 1fr);
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(239, 220, 174, 0.16);
}

.cover-plan-snapshot dt,
.application-review dt {
    color: #cfc6b4;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.cover-plan-snapshot dd,
.application-review dd {
    margin: 0;
    font-weight: 820;
    overflow-wrap: anywhere;
}

.cover-plan-snapshot p {
    margin: 0;
    color: #efe4d4;
}

.cover-plan-summary-text {
    color: #d6d1c6 !important;
    font-size: 0.84rem;
    line-height: 1.5;
}

.form-intelligent .form-field.is-invalid .plan-choice-trigger {
    border-color: var(--form-danger);
}

.document-upload-guide { color: #647269; font-size: .82rem; margin-bottom: 20px; }
.document-folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.document-folder { min-width: 0; padding: 22px; border: 1px solid #d8dfd8; border-radius: 12px; background: #fffdf8; transition: border-color .18s, background .18s; }
.document-folder:hover, .document-folder:focus-within { border-color: #946a2a; }
.document-folder.has-files { border-color: #3d7258; background: #f4f8f5; }
.document-folder-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.document-folder-icon { width: 56px; height: 48px; color: #946a2a; flex: none; }
.document-folder.has-files .document-folder-icon { color: #2c5b45; }
.document-folder-status { color: #647269; font-size: .72rem; }
.document-folder h3 { margin: 16px 0 8px; font-size: 1rem; }
.document-folder h3 label { cursor: pointer; }
.document-folder > p { color: #59665e; font-size: .82rem; line-height: 1.6; margin: 0 0 16px; }
.cover-step-card .document-folder input[type="file"] { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; font-size: .75rem; }
.document-folder input::file-selector-button { border: 1px solid #b8c6bc; border-radius: 6px; padding: 9px 12px; background: white; color: #244938; cursor: pointer; margin-right: 8px; }
.document-folder-files { margin-top: 10px; font-size: .76rem; color: #526359; overflow-wrap: anywhere; }
.document-folder-files > div + div { margin-top: 5px; }
.document-folder-files > p { color: #a12f2f; }
.document-folder-clear { margin-top: 10px; padding: 4px 0; min-height: 0; background: transparent; border: 0; color: #244938; text-decoration: underline; font-size: .75rem; }
.document-folder-clear[hidden] { display: none; }
@media (max-width: 680px) { .document-folders { grid-template-columns: 1fr; } }

.file-drop {
    padding: 18px;
    border: 1px dashed rgba(255, 90, 0, 0.4);
    border-radius: 8px;
    background: #fffaf6;
}

.file-drop input {
    margin-top: 8px;
    background: #ffffff;
}

.file-drop span {
    color: #69736c;
    font-size: 0.9rem;
    font-weight: 650;
}

.application-review {
    padding: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
}

.application-review div {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.application-review div:first-child {
    padding-top: 0;
    border-top: 0;
}

.form-hint {
    margin: -4px 0 0;
    color: #69736c;
    font-size: 0.92rem;
    font-weight: 720;
}

.form-hint[data-state="success"] {
    color: #1c5a43;
}

.form-hint[data-state="error"] {
    color: #a23020;
}

.cover-step-card .step-actions {
    padding-top: 4px;
}

.cover-step-card .button {
    background: #ff5a00;
    border-color: #ff5a00;
    color: #ffffff;
}

.cover-step-card .button:hover,
.cover-step-card .button:focus {
    background: #d84d00;
    border-color: #d84d00;
}

.cover-step-card .button.secondary {
    background: #ffffff;
    border-color: rgba(17, 17, 17, 0.16);
    color: #111111;
}

.cover-step-card .button.secondary:hover,
.cover-step-card .button.secondary:focus {
    background: #f2f4f6;
    border-color: rgba(17, 17, 17, 0.28);
}

@media (max-width: 1100px) {
    .cover-application {
        grid-template-columns: 1fr;
    }

    .cover-visual {
        position: relative;
        top: auto;
        min-height: 360px;
    }

    .cover-visual-content {
        min-height: 360px;
    }

    .cover-stepper {
        top: 0;
    }
}

@media (max-width: 820px) {
    .cover-workspace-head {
        display: grid;
    }

    .cover-workspace-head .button {
        width: fit-content;
    }

    .cover-stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 10px;
    }

    .cover-stepper li::after {
        display: none;
    }

    .cover-info-grid,
    .cover-info-grid.three {
        grid-template-columns: 1fr;
    }

    .cover-plan-snapshot dl div,
    .application-review div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .plan-choice-menu {
        position: static;
        margin-top: 8px;
    }
}

@media (max-width: 680px) {
    .cover-application {
        width: min(360px, calc(100% - 20px));
        margin-top: 12px;
    }

    .cover-visual {
        min-height: 300px;
    }

    .cover-visual-content {
        min-height: 300px;
        padding: 18px;
    }

    .cover-visual-copy h2 {
        font-size: 2rem;
    }

    .cover-stepper {
        grid-template-columns: 1fr;
        padding-top: 12px;
    }

    .cover-visual-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cover-visual-pills span {
        justify-content: center;
        text-align: center;
    }

    .cover-stepper li {
        grid-template-columns: 40px minmax(0, 1fr);
        justify-items: start;
        align-items: center;
        min-height: 66px;
        text-align: left;
    }

    .step-bubble {
        width: 40px;
        height: 40px;
    }

    .cover-step-card {
        padding: 18px;
    }

    .segmented-options {
        grid-template-columns: 1fr;
    }

    .cover-workspace-head .button,
    .cover-step-card .step-actions .button,
    .cover-step-card .step-actions button {
        width: 100%;
    }
}

/* Central authenticated app shell */
body.app-area,
body.admin.app-area,
body.portal.app-area {
    --ink: #111827;
    --ink-soft: #374151;
    --muted: #5f6b7a;
    --brand: #111111;
    --brand-strong: #050505;
    --brand-soft: #f7f1e4;
    --accent: #a97a24;
    --accent-soft: #f5e5bf;
    --success: #18834b;
    --warning: #b9892d;
    --danger: #b32632;
    --line: #e0ded8;
    --surface: #f6f5f1;
    --surface-raised: #ffffff;
    --band: #f0eee8;
    --muted: #626b73;
    --shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
    --shadow-soft: 0 8px 20px rgba(17, 24, 39, 0.07);
    min-height: 100vh;
    color-scheme: light;
    background:
        radial-gradient(circle at top right, rgba(169, 122, 36, 0.1), transparent 34vw),
        #f6f5f1;
    color: #111827;
}

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

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 18px;
    padding: 18px 16px;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(169, 122, 36, 0.18), transparent 220px),
        #11161b;
    color: #f8f1e3;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 8px 10px 14px;
    text-decoration: none;
}

.app-brand img {
    width: min(150px, 100%);
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.app-nav {
    display: grid;
    gap: 6px;
    align-content: start;
}

.app-nav a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #e8edf0;
    font-size: 0.93rem;
    font-weight: 780;
    text-decoration: none;
}

.app-nav a:hover,
.app-nav a:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.app-nav a[aria-current="page"] {
    border-color: rgba(226, 178, 83, 0.34);
    background: linear-gradient(135deg, #b28632, #8b641d);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.app-icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-sidebar-support {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(17, 22, 27, 0.56), rgba(17, 22, 27, 0.92)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

.app-sidebar-support strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.app-sidebar-support span {
    color: #d7dee3;
    font-size: 0.84rem;
    line-height: 1.4;
}

.app-sidebar-support a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(226, 178, 83, 0.55);
    border-radius: 7px;
    color: #f2d896;
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

.app-sidebar-support a:hover,
.app-sidebar-support a:focus {
    background: rgba(226, 178, 83, 0.12);
    color: #ffffff;
    text-decoration: none;
}

.app-sidebar-foot {
    display: grid;
    gap: 2px;
    color: #aeb8bf;
    font-size: 0.82rem;
}

.app-sidebar-foot small {
    color: #d0a953;
}

.app-workspace {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(260px, 640px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px clamp(18px, 2.8vw, 34px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.app-menu-link {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    color: #111827;
    background: #ffffff;
}

.app-search {
    min-height: 42px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: #f7f8fa;
    color: #6b7280;
}

.app-search input {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 0.94rem;
    outline: none;
}

.app-search input:focus {
    outline: none;
}

.app-topbar-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.app-date {
    color: #374151;
    font-size: 0.88rem;
    font-weight: 760;
    white-space: nowrap;
}

.app-notification {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
}

.app-notification span {
    position: absolute;
    top: -3px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #d7192a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

.app-user {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.app-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.app-user strong,
.app-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user strong {
    color: #111827;
    font-size: 0.93rem;
}

.app-user small {
    color: #6b7280;
    font-size: 0.78rem;
}

.app-main {
    min-width: 0;
    padding: 28px 0 36px;
}

.app-main > .page-head,
.app-main > .admin-shell,
.app-main > .portal-shell,
.app-main > .grid,
.app-main > .stack,
.app-main > .filters,
.app-main > table,
.app-main > details.card,
.app-main > .band {
    width: min(1280px, calc(100% - 44px));
    margin-left: auto;
    margin-right: auto;
}

.app-main > .page-head {
    margin-bottom: 22px;
}

.app-main > .admin-shell,
.app-main > .portal-shell {
    padding-top: 0;
}

.app-main > .stack,
.app-main > .grid,
.app-main > .filters,
.app-main > table,
.app-main > details.card {
    margin-top: 18px;
}

body.app-area .page-head,
body.admin.app-area .page-head,
body.portal.app-area .page-head {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
}

body.app-area .page-head h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.85rem, 2.8vw, 2.65rem);
    line-height: 1.08;
}

body.app-area .page-head p,
body.admin.app-area .page-head p,
body.portal.app-area .page-head p {
    max-width: 860px;
    color: #5f6771;
    font-size: 1rem;
}

body.app-area .eyebrow,
body.admin.app-area .eyebrow,
body.portal.app-area .eyebrow {
    color: #8b641d;
}

body.app-area .card,
body.app-area .panel,
body.app-area .form,
body.app-area .step-card,
body.app-area table {
    border-color: rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.app-area .card,
body.app-area .panel {
    padding: 18px;
}

body.app-area table {
    margin-bottom: 24px;
    color: #111827;
}

body.app-area th {
    background: #f3f4f6;
    color: #59616b;
}

body.app-area td,
body.app-area th {
    border-bottom-color: #e7e9ed;
}

body.app-area .button,
body.app-area button {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

body.app-area .button:hover,
body.app-area button:hover,
body.app-area .button:focus,
body.app-area button:focus {
    border-color: #7b5618;
    background: #7b5618;
}

body.app-area .button.secondary {
    border-color: rgba(17, 24, 39, 0.14);
    background: #ffffff;
    color: #111827;
}

body.app-area .button.secondary:hover,
body.app-area .button.secondary:focus {
    border-color: rgba(169, 122, 36, 0.46);
    background: #fff8ea;
    color: #6f4d14;
}

body.app-area input,
body.app-area textarea,
body.app-area select,
body.app-area .select-search,
body.app-area input[type="file"] {
    border-color: #d7dbe0;
    background: #ffffff;
    color: #111827;
}

body.app-area input:focus,
body.app-area textarea:focus,
body.app-area select:focus {
    outline-color: rgba(169, 122, 36, 0.22);
    border-color: #a97a24;
}

body.app-area .badge,
body.app-area .status,
body.app-area .price-pill {
    border: 1px solid rgba(169, 122, 36, 0.26);
    background: #f8e9c7;
    color: #6a4610;
}

body.app-area .status-active,
body.app-area .status-paid,
body.app-area .status-verified,
body.app-area .status-status-active {
    border-color: rgba(24, 131, 75, 0.22);
    background: #def3e6;
    color: #145c35;
}

body.app-area .status-overdue,
body.app-area .status-rejected,
body.app-area .status-reversed {
    border-color: rgba(179, 38, 50, 0.18);
    background: #ffe2e5;
    color: #8f1823;
}

body.app-area .metric-card span,
body.app-area .portal-calendar-stat span {
    color: #68717b;
}

body.app-area .metric-card strong,
body.app-area .portal-calendar-stat strong,
body.app-area .portal-kpi strong,
body.app-area .admin-kpi strong {
    color: #111827;
}

body.app-area .metric-link {
    color: #7b5618;
}

body.app-area .metric-link:hover,
body.app-area .metric-link:focus {
    color: #111827;
}

body.app-area .admin-command-panel,
body.app-area .portal-overview-hero,
body.app-area .portal-calendar,
body.app-area .portal-priority-item,
body.app-area .calendar-entry {
    border-color: rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

body.app-area .admin-command-panel {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.82)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center right;
}

body.app-area .admin-command-panel h2 {
    color: #111827;
}

body.app-area .admin-command-panel p,
body.app-area .admin-directive-card p,
body.app-area .admin-kpi p,
body.app-area .portal-kpi p {
    color: #626b73;
}

body.portal.app-area .portal-overview-copy,
body.portal.app-area .portal-calendar-menu a,
body.portal.app-area .cover-plan-snapshot,
body.portal.app-area .application-review {
    background: #111827;
}

body.portal.app-area .portal-next-payment,
body.portal.app-area .portal-kpi,
body.portal.app-area .portal-action-panel,
body.portal.app-area .portal-calendar,
body.portal.app-area .portal-calendar-stat,
body.portal.app-area .calendar-entry {
    background: #ffffff;
}

body.portal.app-area .portal-kpi::before,
body.portal.app-area .portal-kpi-primary::before,
body.portal.app-area .portal-kpi-alert::before,
body.admin.app-area .admin-kpi::before {
    background: #a97a24;
}

body.app-area .flash {
    width: min(1280px, calc(100% - 44px));
    margin-top: 0;
    margin-bottom: 18px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px clamp(18px, 2.8vw, 34px);
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    color: #66707a;
    background: transparent;
    font-size: 0.9rem;
}

.app-footer nav {
    display: flex;
    gap: 14px;
}

.app-footer a {
    color: #4b5563;
}

@media (max-width: 1180px) {
    .app-frame {
        grid-template-columns: 236px minmax(0, 1fr);
    }

    .app-sidebar {
        padding-inline: 12px;
    }

    .app-topbar {
        grid-template-columns: auto minmax(180px, 1fr) auto;
    }

    .app-date {
        display: none;
    }
}

@media (max-width: 920px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px;
    }

    .app-brand {
        min-height: 58px;
        justify-content: flex-start;
        padding: 0;
    }

    .app-brand img {
        width: 118px;
    }

    .app-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .app-nav a {
        flex: 0 0 auto;
        min-width: 142px;
    }

    .app-sidebar-support,
    .app-sidebar-foot {
        display: none;
    }

    .app-topbar {
        top: 0;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .app-menu-link {
        display: inline-flex;
    }

    .app-topbar-meta {
        grid-column: 1 / -1;
        justify-content: space-between;
        gap: 12px;
    }

    .app-user {
        max-width: calc(100vw - 98px);
    }

    .app-main > .page-head,
    .app-main > .admin-shell,
    .app-main > .portal-shell,
    .app-main > .grid,
    .app-main > .stack,
    .app-main > .filters,
    .app-main > table,
    .app-main > details.card,
    .app-main > .band,
    body.app-area .flash {
        width: min(100% - 28px, 1280px);
    }
}

@media (max-width: 680px) {
    .app-topbar {
        padding: 10px 12px;
        gap: 10px;
    }

    .app-search {
        min-width: 0;
    }

    .app-notification {
        width: 38px;
        height: 38px;
    }

    .app-avatar {
        width: 38px;
        height: 38px;
    }

    .app-main {
        padding-top: 20px;
    }

    body.app-area .page-head h1 {
        font-size: 1.78rem;
    }

    body.app-area .admin-command-panel,
    body.app-area .portal-overview-hero,
    body.app-area .portal-priority-section,
    body.app-area .grid.two,
    body.app-area .grid.three,
    body.app-area .grid.four {
        grid-template-columns: 1fr;
    }

    .app-footer {
        padding-inline: 14px;
    }
}

/* Corporate app content refactor */
body.app-area {
    --app-content-max: 1168px;
    --app-border: #dfe3e8;
    --app-border-soft: #edf0f3;
    --app-text: #111827;
    --app-subtle: #5f6b7a;
    --app-muted: #7a8491;
    --app-panel: #ffffff;
    --app-page: #f7f8fa;
    --app-gold: #9d741e;
    --app-gold-soft: #fbf5e7;
    --app-green: #18794e;
    --app-red: #b4232f;
    --app-blue: #1f5fbf;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
    --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.05);
    background: var(--app-page);
    color: var(--app-text);
    font-size: 14px;
    line-height: 1.48;
}

.app-frame {
    background: var(--app-page);
}

.app-sidebar {
    background:
        linear-gradient(180deg, rgba(157, 116, 30, 0.14), transparent 180px),
        #101820;
}

.app-workspace {
    background: var(--app-page);
}

.app-topbar {
    min-height: 66px;
    border-bottom-color: var(--app-border);
    background: rgba(255, 255, 255, 0.96);
}

.app-search {
    max-width: 560px;
    border-color: var(--app-border);
    background: #ffffff;
}

.app-main {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 30px clamp(20px, 3vw, 40px) 44px;
}

.app-main > .page-head,
.app-main > .admin-shell,
.app-main > .portal-shell,
.app-main > .grid,
.app-main > .stack,
.app-main > .filters,
.app-main > table,
.app-main > details.card,
.app-main > .band,
body.app-area .flash {
    width: min(var(--app-content-max), 100%);
    margin-left: auto;
    margin-right: auto;
}

.app-main > .page-head,
.app-main > .admin-shell,
.app-main > .portal-shell,
.app-main > .grid,
.app-main > .stack,
.app-main > .filters,
.app-main > table,
.app-main > details.card,
.app-main > .band {
    margin-top: 0;
    margin-bottom: 0;
}

body.app-area .page-head {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 2px 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.app-area .page-head .eyebrow,
body.app-area .section-title .eyebrow,
body.app-area .admin-command-panel .eyebrow,
body.app-area .panel .eyebrow {
    min-height: 0;
    margin: 0;
    color: var(--app-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
}

body.app-area .eyebrow::before {
    width: 18px;
    background: currentColor;
}

body.app-area .page-head h1 {
    max-width: 900px;
    margin: 0;
    color: var(--app-text);
    font-size: 2rem;
    font-weight: 820;
    line-height: 1.15;
}

body.app-area .page-head p {
    max-width: 780px;
    margin: 0;
    color: var(--app-subtle);
    font-size: 0.98rem;
}

body.app-area .section-title {
    max-width: none;
    margin: 0;
}

body.app-area .section-title h2,
body.app-area .card h2,
body.app-area .panel h2,
body.app-area .card h3,
body.app-area .panel h3,
body.app-area h2,
body.app-area h3 {
    color: var(--app-text);
}

body.app-area .section-title h2 {
    margin: 4px 0 5px;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

body.app-area .section-title p {
    max-width: 760px;
    color: var(--app-subtle);
    font-size: 0.94rem;
}

body.app-area .admin-shell,
body.app-area .portal-shell {
    display: grid;
    gap: 18px;
    padding: 0 0 20px;
}

body.portal.app-area .workspace-inner > .portal-head,
body.portal.app-area .workspace-inner > .portal-shell {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}

body.portal.app-area .portal-shell .portal-section {
    width: 100%;
}

body.app-area .definition-list div {
    border-top-color: var(--app-border);
}

body.app-area .empty-state {
    background: #f8fafc;
    color: var(--app-subtle);
}

body.app-area .empty-state h3 {
    color: var(--app-text);
}

body.app-area .app-page-disclosure,
body.portal.app-area .portal-disclosure {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.app-area .app-page-disclosure > summary,
body.portal.app-area .portal-disclosure > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 14px 18px;
    color: var(--app-text);
    cursor: pointer;
    list-style: none;
}

body.app-area .app-page-disclosure > summary::-webkit-details-marker,
body.portal.app-area .portal-disclosure > summary::-webkit-details-marker {
    display: none;
}

body.app-area .app-page-disclosure > summary span,
body.portal.app-area .portal-disclosure > summary span {
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

body.app-area .app-page-disclosure > summary::after,
body.portal.app-area .portal-disclosure > summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--app-gold);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

body.app-area .app-page-disclosure[open] > summary::after,
body.portal.app-area .portal-disclosure[open] > summary::after {
    content: "−";
}

body.app-area .app-page-disclosure > summary:focus-visible,
body.portal.app-area .portal-disclosure > summary:focus-visible {
    outline: 3px solid rgba(157, 116, 30, 0.36);
    outline-offset: -3px;
}

body.app-area .app-page-disclosure[open] > summary,
body.portal.app-area .portal-disclosure[open] > summary {
    border-bottom: 1px solid var(--app-border);
}

body.portal.app-area .portal-disclosure-content,
body.admin.app-area .app-page-disclosure > .workspace-inner {
    min-width: 0;
    padding: 16px;
}

body.admin.app-area .operations-dashboard > .app-page-disclosure > :not(summary) {
    width: calc(100% - 32px);
    margin: 16px;
}

body.app-area .app-section-workspace {
    display: grid;
    gap: 18px;
    min-width: 0;
}

body.app-area .app-section-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.admin.app-area .operations-dashboard .app-section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-area .app-section-trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 88px;
    padding: 12px 15px;
    border: 0;
    border-right: 1px solid var(--app-border-soft);
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: #ffffff;
    color: var(--app-text);
    text-align: left;
    cursor: pointer;
}

body.app-area .app-section-trigger:last-child { border-right: 0; }
body.app-area .app-section-trigger:hover { background: #f5f7f8; }
body.app-area .app-section-trigger.is-active {
    border-bottom-color: var(--app-gold);
    background: var(--app-gold-soft);
}
body.app-area .app-section-trigger:focus-visible {
    outline: 3px solid #9d741e;
    outline-offset: -3px;
    position: relative;
    z-index: 1;
}

body.app-area .app-section-trigger-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #526276;
}
body.app-area .app-section-trigger.is-active .app-section-trigger-icon { color: #805b16; }
body.app-area .app-section-trigger-icon svg { display: block; width: 22px; height: 22px; }
body.app-area .app-section-trigger-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 730;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

body.app-area .app-section-stage {
    min-width: 0;
    min-height: 210px;
    padding: 20px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}
body.app-area .app-section-stage [hidden] { display: none !important; }
body.app-area .app-section-panel { min-width: 0; }
body.app-area .app-section-stage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--app-border-soft);
}
body.app-area .app-section-stage-toolbar h2 {
    margin: 0;
    color: var(--app-text);
    font-size: 1.04rem;
    font-weight: 800;
}
body.portal.app-area .app-section-panel > .portal-section { margin: 0; }
body.admin.app-area .operations-dashboard .app-section-panel > :first-child:not(.app-section-stage-toolbar) { margin-top: 0; }

@media (max-width: 900px) {
    body.portal.app-area .app-section-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.portal.app-area .app-section-trigger:nth-child(3n) { border-right: 0; }
    body.portal.app-area .app-section-trigger:nth-child(n + 4) { border-top: 1px solid var(--app-border-soft); }
}

@media (max-width: 560px) {
    body.portal.app-area .app-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.portal.app-area .app-section-trigger:nth-child(3n) { border-right: 1px solid var(--app-border-soft); }
    body.portal.app-area .app-section-trigger:nth-child(2n) { border-right: 0; }
    body.portal.app-area .app-section-trigger:nth-child(n + 3) { border-top: 1px solid var(--app-border-soft); }
    body.app-area .app-section-trigger { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 66px; padding: 10px 11px; }
    body.app-area .app-section-trigger-label { font-size: 0.8rem; }
    body.app-area .app-section-trigger-icon { flex: 0 0 24px; }
    body.app-area .app-section-stage { padding: 12px; }
    body.admin.app-area .operations-dashboard .app-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.admin.app-area .operations-dashboard .app-section-trigger:nth-child(2) { border-right: 0; }
    body.admin.app-area .operations-dashboard .app-section-trigger:nth-child(n + 3) { border-top: 1px solid var(--app-border-soft); }
}

@media (max-width: 680px) {
    body.app-area .app-page-disclosure > summary,
    body.portal.app-area .portal-disclosure > summary {
        flex-wrap: wrap;
        min-height: 58px;
        padding: 12px;
    }

    body.portal.app-area .portal-disclosure-content,
    body.admin.app-area .app-page-disclosure > .workspace-inner {
        padding: 12px;
    }
}

body.app-area .grid,
body.app-area .split {
    gap: 16px;
}

body.app-area .stack {
    display: grid;
    gap: 14px;
    padding: 0;
}

body.app-area .card,
body.app-area .panel,
body.app-area .form,
body.app-area .step-card,
body.app-area table,
body.app-area .portal-calendar,
body.app-area .portal-priority-item,
body.app-area .calendar-entry {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-panel);
    box-shadow: var(--shadow-soft);
}

body.app-area .card,
body.app-area .panel {
    padding: 18px;
}

body.app-area .panel {
    gap: 10px;
}

body.app-area .panel strong {
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.app-area .readable {
    max-width: none;
}

/* Dashboard modules */
body.app-area .admin-command-panel {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-color: var(--app-border);
    border-top: 3px solid var(--app-gold);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.app-area .admin-command-panel::before {
    display: none;
}

body.app-area .admin-command-panel h2 {
    margin: 2px 0 8px;
    color: var(--app-text);
    font-size: 1.55rem;
    font-weight: 820;
    line-height: 1.18;
}

body.app-area .admin-command-panel p {
    max-width: 660px;
    margin: 0 0 14px;
    color: var(--app-subtle);
    font-weight: 650;
}

body.app-area .admin-command-rules {
    gap: 8px;
}

body.app-area .admin-command-rules span {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--app-border);
    border-left: 3px solid var(--app-gold);
    border-radius: 7px;
    background: #fbfcfd;
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 760;
}

body.app-area .admin-kpi-grid,
body.app-area .portal-metrics {
    align-items: stretch;
}

body.app-area .admin-kpi,
body.app-area .portal-kpi,
body.app-area .metric-card {
    min-height: 128px;
    padding: 17px;
    gap: 7px;
    overflow: hidden;
}

body.app-area .admin-kpi::before,
body.app-area .portal-kpi::before {
    height: 3px;
    background: var(--app-gold);
}

body.app-area .admin-kpi span,
body.app-area .portal-kpi span,
body.app-area .metric-card span {
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.app-area .admin-kpi strong,
body.app-area .portal-kpi strong,
body.app-area .metric-card strong {
    margin: 4px 0 0;
    color: var(--app-text);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

body.app-area .admin-kpi p,
body.app-area .portal-kpi p,
body.app-area .metric-card p {
    margin: 0;
    color: var(--app-subtle);
    font-size: 0.92rem;
    font-weight: 620;
}

body.app-area .metric-link {
    align-self: end;
    color: #7b5618;
    font-size: 0.88rem;
    font-weight: 820;
}

body.app-area .admin-directive-section {
    gap: 14px;
}

body.app-area .admin-directive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.app-area .admin-directive-card {
    min-height: 176px;
    padding: 17px;
    border-left-width: 3px;
}

body.app-area .admin-directive-card h3 {
    margin: 10px 0 6px;
    font-size: 1.02rem;
}

body.app-area .admin-directive-card p {
    color: var(--app-subtle);
    font-size: 0.92rem;
    font-weight: 620;
}

/* Accordions and record editors */
body.app-area details.card {
    padding: 0;
    overflow: hidden;
}

body.app-area details.card summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid transparent;
    color: var(--app-text);
    font-size: 0.98rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

body.app-area details.card summary::-webkit-details-marker {
    display: none;
}

body.app-area details.card summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    color: var(--app-subtle);
    background: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
}

body.app-area details.card[open] summary {
    border-bottom-color: var(--app-border-soft);
    background: #fbfcfd;
}

body.app-area details.card[open] summary::after {
    content: "-";
    color: var(--app-text);
    background: #ffffff;
}

body.app-area details.card > .form,
body.app-area details.card > form.form,
body.app-area details.card > .grid {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.app-area details.card > .grid {
    padding: 18px;
    border-top: 1px solid var(--app-border-soft);
}

body.app-area details.card .admin-edit-list {
    gap: 12px;
}

/* Forms */
body.app-area .form {
    gap: 15px;
    padding: 18px;
    border-color: var(--app-border);
    background: #ffffff;
}

body.app-area .form.small {
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border-radius: 8px;
    background: #fbfcfd;
}

body.app-area label,
body.app-area .segmented-field {
    gap: 6px;
    color: #3f4854;
    font-size: 0.88rem;
    font-weight: 720;
}

body.app-area input,
body.app-area textarea,
body.app-area select,
body.app-area .select-search,
body.app-area input[type="file"],
body.app-area .derived-input {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #d3d8df;
    border-radius: 7px;
    background: #ffffff;
    color: var(--app-text);
    font-size: 0.94rem;
    box-shadow: none;
}

body.app-area textarea {
    min-height: 86px;
}

body.app-area .form:not(.compact) textarea[name="summary"] {
    min-height: 74px;
}

body.app-area .form:not(.compact) textarea[name="description"],
body.app-area .form:not(.compact) textarea[name="eligibility_notes"],
body.app-area .form:not(.compact) textarea[name="body"],
body.app-area .form:not(.compact) textarea[name="intro"],
body.app-area .form:not(.compact) textarea[name="hero"] {
    min-height: 96px;
}

body.app-area input:focus,
body.app-area textarea:focus,
body.app-area select:focus {
    border-color: var(--app-gold);
    outline: 3px solid rgba(157, 116, 30, 0.16);
}

body.app-area .select-search {
    margin-bottom: 0;
    background: #fbfcfd;
}

body.app-area .check {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
}

body.app-area .check input {
    width: 16px;
    min-height: 16px;
    margin: 0;
}

body.app-area .form > .button,
body.app-area .form > button,
body.app-area form.form > .button,
body.app-area form.form > button {
    justify-self: end;
    min-width: 148px;
}

body.app-area .button,
body.app-area button {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 7px;
    border-color: #111827;
    background: #111827;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 820;
}

body.app-area .small-btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

body.app-area .button.secondary {
    border-color: var(--app-border);
    background: #ffffff;
    color: var(--app-text);
}

body.app-area .button.secondary:hover,
body.app-area .button.secondary:focus {
    border-color: #c9a04e;
    background: var(--app-gold-soft);
    color: #6f4d14;
}

body.app-area .inline-actions {
    gap: 8px;
}

body.app-area .inline-actions input {
    width: 180px;
    min-height: 34px;
}

body.app-area .filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

body.app-area .filters label {
    min-width: 220px;
}

/* Tables and lists */
body.app-area table {
    display: table;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--app-text);
    font-size: 0.91rem;
}

body.app-area th,
body.app-area td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--app-border-soft);
    vertical-align: middle;
}

body.app-area th {
    background: #f6f7f9;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.app-area tbody tr:hover {
    background: #fbfcfd;
}

body.app-area td:last-child {
    text-align: right;
}

body.app-area td .inline-actions,
body.app-area td form {
    justify-content: flex-end;
}

body.app-area code {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid #dce2e8;
    border-radius: 6px;
    background: #f8fafc;
    color: #253041;
    font-size: 0.82rem;
    font-weight: 760;
}

body.app-area .badge,
body.app-area .status,
body.app-area .price-pill {
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #ead7aa;
    border-radius: 999px;
    background: var(--app-gold-soft);
    color: #715113;
    font-size: 0.76rem;
    font-weight: 820;
}

body.app-area .status-new,
body.app-area .status-in-progress,
body.app-area .status-under-review,
body.app-area .status-follow-up {
    border-color: #bfd4f5;
    background: #edf5ff;
    color: #174b91;
}

body.app-area .status-active,
body.app-area .status-paid,
body.app-area .status-verified,
body.app-area .status-closed,
body.app-area .status-converted,
body.app-area .status-status-active {
    border-color: #bfe5ce;
    background: #eaf8ef;
    color: var(--app-green);
}

body.app-area .status-overdue,
body.app-area .status-rejected,
body.app-area .status-reversed,
body.app-area .status-documents-pending {
    border-color: #f2c2c7;
    background: #fff0f1;
    color: var(--app-red);
}

body.app-area .timeline {
    gap: 8px;
}

body.app-area .timeline li,
body.app-area .feature-list li {
    border-left-width: 3px;
    border-left-color: var(--app-gold);
    border-radius: 8px;
    background: #ffffff;
}

/* Portal content */
body.portal.app-area .portal-head {
    padding-bottom: 8px;
}

body.app-area .portal-identity {
    margin-top: 4px;
    color: var(--app-subtle);
}

body.app-area .portal-overview-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    border-color: var(--app-border);
    background: #ffffff;
}

body.portal.app-area .portal-overview-copy {
    min-height: 250px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.86)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

body.app-area .portal-overview-copy h2 {
    font-size: 2rem;
}

body.app-area .portal-next-payment {
    padding: 24px;
}

body.app-area .portal-priority-section {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    gap: 18px;
}

body.app-area .portal-priority-item {
    padding: 14px;
    border-left-width: 3px;
}

body.app-area .portal-calendar-stats {
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
}

body.app-area .portal-calendar-stat {
    min-height: 72px;
    border-color: var(--app-border);
}

body.app-area .calendar-section {
    padding: 16px;
}

body.app-area .calendar-entry {
    padding: 12px;
}

.app-footer {
    background: transparent;
}

@media (max-width: 1180px) {
    body.app-area {
        --app-content-max: 100%;
    }

    body.app-area .admin-directive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .app-main {
        padding: 22px 14px 34px;
    }

    body.app-area .admin-command-panel,
    body.app-area .portal-overview-hero,
    body.app-area .portal-priority-section {
        grid-template-columns: 1fr;
    }

    body.app-area .filters {
        display: grid;
        align-items: stretch;
    }

    body.app-area .filters label,
    body.app-area .filters button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 680px) {
    body.app-area {
        font-size: 13px;
    }

    .app-main {
        gap: 14px;
        padding-inline: 12px;
    }

    body.app-area .page-head h1 {
        font-size: 1.62rem;
    }

    body.app-area .admin-directive-grid,
    body.app-area .portal-calendar-stats,
    body.app-area .grid.two,
    body.app-area .grid.three,
    body.app-area .grid.four {
        grid-template-columns: 1fr;
    }

    body.app-area table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    body.app-area .form > .button,
    body.app-area .form > button,
    body.app-area form.form > .button,
    body.app-area form.form > button {
        justify-self: stretch;
        width: 100%;
    }
}

/* Full workspace refactor */
body.app-area {
    --app-sidebar-width: 232px;
    --app-command-height: 56px;
    --app-page: #f5f6f8;
    --app-panel: #ffffff;
    --app-border: #d8dde5;
    --app-border-soft: #eceff4;
    --app-text: #1f2937;
    --app-muted: #667085;
    --app-gold: #8a6418;
    --app-focus: #2563eb;
    background: var(--app-page);
    color: var(--app-text);
    font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

body.app-area strong,
body.app-area b {
    font-weight: 600;
}

body.app-area h1,
body.app-area h2,
body.app-area h3,
body.app-area h4,
body.app-area label,
body.app-area .button,
body.app-area button,
body.app-area .badge,
body.app-area .status,
body.app-area .app-nav a,
body.app-area .metric-link {
    font-weight: 500;
}

.app-frame {
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

.app-sidebar {
    gap: 8px;
    padding: 14px 12px;
    background: #111820;
}

.app-brand {
    justify-content: flex-start;
    min-height: 46px;
    padding: 2px 8px 10px;
}

.app-brand img {
    width: 118px;
    height: 38px;
    border-radius: 4px;
    background: #ffffff;
    object-fit: cover;
    object-position: center;
}

.app-nav {
    gap: 3px;
}

.app-nav a {
    min-height: 38px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #d7dde5;
    font-size: 0.88rem;
}

.app-nav a[aria-current="page"] {
    border-color: rgba(205, 157, 54, 0.42);
    background: #9a741f;
    box-shadow: none;
}

.app-icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.85;
}

.app-sidebar-support {
    display: none;
}

.app-sidebar-foot {
    padding: 8px 10px 2px;
    font-size: 0.76rem;
}

.app-topbar {
    min-height: var(--app-command-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--app-border);
    background: #ffffff;
    backdrop-filter: none;
}

.app-menu-link {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.app-search {
    width: min(420px, 42vw);
    max-width: none;
    min-height: 36px;
    flex: 0 1 420px;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 8px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
}

.app-search input {
    min-height: 34px;
    font-size: 0.88rem;
}

.app-topbar-meta {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
}

.app-date {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 500;
}

.app-notification {
    width: 34px;
    height: 34px;
    border-radius: 6px;
}

.app-notification span {
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    font-size: 0.62rem;
    font-weight: 500;
}

.app-user {
    grid-template-columns: 32px minmax(120px, 1fr);
    gap: 8px;
    max-width: 300px;
}

.app-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
    font-weight: 500;
}

.app-user strong {
    font-size: 0.86rem;
    font-weight: 600;
}

.app-user small {
    font-size: 0.72rem;
}

.app-main {
    width: 100%;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 24px 28px 40px;
}

.app-main > .page-head,
.app-main > .admin-shell,
.app-main > .portal-shell,
.app-main > .grid,
.app-main > .stack,
.app-main > .filters,
.app-main > table,
.app-main > details.card,
.app-main > .band,
.app-main > .wizard-panel,
.app-main > .record-section,
body.app-area .flash {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.app-area .page-head {
    gap: 6px;
    padding: 0 0 2px;
}

body.app-area .page-head .eyebrow,
body.app-area .section-title .eyebrow,
body.app-area .admin-command-panel .eyebrow,
body.app-area .panel .eyebrow,
body.app-area .wizard-panel .eyebrow {
    color: var(--app-gold);
    font-size: 0.72rem;
    font-weight: 600;
}

body.app-area .eyebrow::before {
    width: 16px;
}

body.app-area .page-head h1 {
    max-width: none;
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0;
}

body.app-area .page-head p {
    max-width: 840px;
    color: var(--app-muted);
    font-size: 0.91rem;
}

body.app-area .section-title h2 {
    font-size: 1.08rem;
    font-weight: 600;
}

body.app-area .section-title p {
    font-size: 0.88rem;
}

body.app-area .card,
body.app-area .panel,
body.app-area .form,
body.app-area .step-card,
body.app-area table,
body.app-area .portal-calendar,
body.app-area .portal-priority-item,
body.app-area .calendar-entry,
.wizard-panel,
.record-editor,
.related-panel {
    border-color: var(--app-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Full-width wizard/editor forms */
.wizard-panel,
.record-section {
    display: grid;
    gap: 12px;
}

.wizard-panel {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: var(--app-panel);
}

.wizard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--app-border-soft);
    background: #ffffff;
}

.wizard-panel-head h2 {
    margin: 2px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
}

.wizard-panel-head p {
    max-width: 760px;
    margin: 0;
    color: var(--app-muted);
    font-size: 0.88rem;
}

.wizard-form {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-stepper {
    padding: 18px 16px;
    border-right: 1px solid var(--app-border-soft);
    background: #fbfcfe;
}

.form-stepper ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-stepper li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 5px 6px;
    border-radius: 6px;
    color: #475467;
}

.form-stepper li:first-child {
    background: #eef4ff;
    color: #1d4ed8;
}

.form-stepper li span {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

.form-stepper li p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-workspace {
    min-width: 0;
    display: grid;
    gap: 0;
    background: #ffffff;
}

.form-section {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--app-border-soft);
}

.form-section:last-of-type {
    border-bottom: 0;
}

.form-section-head {
    display: grid;
    gap: 3px;
}

.form-section-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
}

.form-section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--app-muted);
    font-size: 0.84rem;
}

.form-command-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--app-border-soft);
    background: #fbfcfe;
}

body.app-area .wizard-form input,
body.app-area .wizard-form textarea,
body.app-area .wizard-form select {
    min-height: 36px;
    border-radius: 5px;
    font-size: 0.88rem;
}

body.app-area .wizard-form textarea[name="summary"] {
    min-height: 62px;
}

body.app-area .wizard-form textarea[name="description"],
body.app-area .wizard-form textarea[name="eligibility_notes"] {
    min-height: 78px;
}

body.app-area .wizard-form label {
    color: #344054;
    font-size: 0.84rem;
    font-weight: 500;
}

body.app-area .wizard-form .check {
    align-self: end;
}

/* Record list */
.record-section {
    margin-top: 2px;
}

.record-list {
    display: grid;
    gap: 8px;
}

.record-editor {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 6px;
    background: #ffffff;
}

.record-editor summary {
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 16px;
    padding: 11px 14px;
    list-style: none;
    cursor: pointer;
}

.record-editor summary::-webkit-details-marker {
    display: none;
}

.record-editor summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 5px;
    background: #ffffff;
    color: #344054;
    font-size: 0.95rem;
    font-weight: 500;
}

.record-editor[open] summary {
    border-bottom: 1px solid var(--app-border-soft);
    background: #fbfcfe;
}

.record-editor[open] summary::after {
    content: "-";
}

.record-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.record-title {
    color: var(--app-text);
    font-size: 0.94rem;
    font-weight: 600;
}

.record-subtitle {
    max-width: 820px;
    overflow: hidden;
    color: var(--app-muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-count {
    color: var(--app-muted);
    font-size: 0.8rem;
}

.record-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border-top: 1px solid var(--app-border-soft);
    background: #f8fafc;
}

.related-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--app-border);
    background: #ffffff;
}

.related-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.related-panel-head h3 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
}

.related-panel-head span {
    color: var(--app-muted);
    font-size: 0.78rem;
}

body.app-area .compact-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.app-area .compact-list:empty::before {
    content: "No records yet";
    color: var(--app-muted);
    font-size: 0.84rem;
}

body.app-area .compact-list li {
    padding: 8px 10px;
    border: 1px solid var(--app-border-soft);
    border-radius: 5px;
    background: #fbfcfe;
    color: #344054;
    font-size: 0.84rem;
}

.inline-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-create-form label:nth-of-type(2) {
    grid-column: 1 / -1;
}

.inline-create-form button {
    justify-self: end;
}

body.app-area .button,
body.app-area button {
    min-height: 34px;
    border-radius: 5px;
    font-size: 0.84rem;
    font-weight: 500;
}

body.app-area .badge,
body.app-area .status,
body.app-area .price-pill {
    min-height: 22px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .wizard-form {
        grid-template-columns: 1fr;
    }

    .form-stepper {
        border-right: 0;
        border-bottom: 1px solid var(--app-border-soft);
    }

    .form-stepper ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .record-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .app-topbar {
        flex-wrap: wrap;
    }

    .app-search {
        flex: 1 1 220px;
        width: auto;
    }

    .app-topbar-meta {
        width: 100%;
        margin-left: 0;
    }

    .app-main {
        padding: 18px 14px 32px;
    }
}

@media (max-width: 680px) {
    .app-sidebar {
        height: auto;
    }

    .app-brand img {
        width: 104px;
    }

    .app-topbar-meta {
        justify-content: flex-start;
    }

    .app-date {
        display: none;
    }

    .app-user {
        max-width: none;
    }

    .form-stepper ol,
    .inline-create-form {
        grid-template-columns: 1fr;
    }

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

    .record-meta {
        flex-wrap: wrap;
        padding-right: 0;
    }
}

/* Polished admin UI layer */
body.app-area {
    --app-sidebar-width: 248px;
    --app-command-height: 64px;
    --app-page: #f4f6f8;
    --app-panel: #ffffff;
    --app-control: #f8fafc;
    --app-border: #d8e0ea;
    --app-border-soft: #edf1f6;
    --app-text: #182230;
    --app-subtle: #475467;
    --app-muted: #667085;
    --app-gold: #936916;
    --app-gold-soft: #fbf4e4;
    --app-green: #147046;
    --app-blue: #245ec4;
    --app-red: #b4232f;
    --shadow: 0 18px 42px rgba(16, 24, 40, 0.09);
    --shadow-soft: 0 1px 3px rgba(16, 24, 40, 0.08);
    background: var(--app-page);
    color: var(--app-text);
}

.app-frame {
    grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
    background: var(--app-page);
}

.app-sidebar {
    gap: 12px;
    padding: 16px 12px;
    background: #0f1720;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset -1px 0 0 rgba(15, 23, 32, 0.8);
}

.app-brand {
    justify-content: flex-start;
    gap: 12px;
    min-height: 58px;
    margin: 0 4px 4px;
    padding: 2px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; }
.app-brand-wordmark { display: grid; gap: 5px; }
.app-brand-wordmark strong { color: #fffaf0; font-family: Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: .12em; line-height: 1; }
.app-brand-wordmark small { color: #d0c3a9; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.app-brand:focus-visible { outline: 2px solid #dfbd72; outline-offset: 3px; border-radius: 4px; }

.app-brand img {
    width: 132px;
    height: 42px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #ffffff;
    object-fit: contain;
    object-position: center;
}

.app-nav {
    gap: 4px;
}

.app-nav a {
    position: relative;
    min-height: 40px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.app-nav a::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.app-nav a:hover,
.app-nav a:focus {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.app-nav a[aria-current="page"] {
    border-color: rgba(218, 165, 58, 0.34);
    background: rgba(147, 105, 22, 0.22);
    color: #ffffff;
    box-shadow: none;
}

.app-nav a[aria-current="page"]::before {
    background: #d6a744;
}

.app-icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
}

.app-sidebar-foot {
    padding: 10px 8px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-workspace {
    min-width: 0;
    background: var(--app-page);
}

.app-topbar {
    min-height: var(--app-command-height);
    padding: 10px 24px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.app-menu-link {
    border-radius: 7px;
}

.app-search {
    width: min(500px, 42vw);
    min-height: 38px;
    border-color: #cfd8e3;
    border-radius: 8px;
    background: var(--app-control);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.app-search:focus-within {
    border-color: var(--app-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(36, 94, 196, 0.13);
}

.app-search input {
    min-height: 36px;
    color: var(--app-text);
}

.app-date {
    color: var(--app-subtle);
}

.app-notification {
    border-color: var(--app-border);
    border-radius: 8px;
    background: #ffffff;
}

.app-avatar {
    background: #192536;
}

.app-user {
    max-width: 340px;
}

.app-user strong {
    color: var(--app-text);
}

.app-user small {
    color: var(--app-muted);
}

.app-main {
    gap: 20px;
    padding: 28px 32px 44px;
}

body.app-area .page-head {
    gap: 7px;
    padding: 0 0 4px;
}

body.app-area .page-head h1 {
    color: var(--app-text);
    font-size: 1.78rem;
    font-weight: 650;
    line-height: 1.16;
}

body.app-area .page-head p {
    max-width: 880px;
    color: var(--app-subtle);
    font-size: 0.94rem;
}

body.app-area .page-head .eyebrow,
body.app-area .section-title .eyebrow,
body.app-area .wizard-panel .eyebrow {
    color: var(--app-gold);
    font-weight: 650;
}

body.app-area .card,
body.app-area .panel,
body.app-area .form,
body.app-area .step-card,
body.app-area table,
body.app-area .portal-calendar,
body.app-area .portal-priority-item,
body.app-area .calendar-entry,
.wizard-panel,
.record-editor,
.related-panel {
    border-color: var(--app-border);
    border-radius: 8px;
    background: var(--app-panel);
    box-shadow: var(--shadow-soft);
}

.wizard-panel {
    overflow: hidden;
    box-shadow: var(--shadow);
}

.wizard-panel-head {
    padding: 19px 22px;
    border-bottom: 1px solid var(--app-border);
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.wizard-panel-head h2 {
    margin: 3px 0 5px;
    color: var(--app-text);
    font-size: 1.14rem;
    font-weight: 650;
}

.wizard-panel-head p {
    max-width: 820px;
    color: var(--app-subtle);
    line-height: 1.5;
}

.wizard-form {
    grid-template-columns: 236px minmax(0, 1fr);
}

.form-stepper {
    padding: 22px 18px;
    border-right: 1px solid var(--app-border);
    background: #f8fafc;
}

.form-stepper ol {
    position: sticky;
    top: 86px;
    gap: 10px;
}

.form-stepper li {
    min-height: 38px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--app-subtle);
}

.form-stepper li:first-child {
    border-color: #c8dcff;
    background: #eef5ff;
    color: #1d4ed8;
}

.form-stepper li span {
    width: 23px;
    height: 23px;
    background: #ffffff;
    font-size: 0.72rem;
}

.form-stepper li p {
    font-size: 0.86rem;
}

.form-workspace {
    background: #ffffff;
}

.form-section {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 16px 28px;
    align-items: start;
    padding: 24px;
    border-bottom: 1px solid var(--app-border-soft);
}

.form-section-head {
    grid-column: 1;
    gap: 5px;
}

.form-section > :not(.form-section-head) {
    grid-column: 2;
}

.form-section-head h3 {
    color: var(--app-text);
    font-size: 1rem;
    font-weight: 650;
}

.form-section-head p {
    color: var(--app-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

body.app-area .wizard-form label {
    gap: 7px;
    color: #344054;
    font-size: 0.85rem;
    font-weight: 560;
}

body.app-area .wizard-form input,
body.app-area .wizard-form textarea,
body.app-area .wizard-form select,
body.app-area input,
body.app-area textarea,
body.app-area select,
body.app-area .select-search,
body.app-area input[type="file"],
body.app-area .derived-input {
    border-color: #cfd8e3;
    border-radius: 7px;
    background: #ffffff;
    color: var(--app-text);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body.app-area .wizard-form input:hover,
body.app-area .wizard-form textarea:hover,
body.app-area .wizard-form select:hover,
body.app-area input:hover,
body.app-area textarea:hover,
body.app-area select:hover {
    border-color: #aebccc;
}

body.app-area input:focus,
body.app-area textarea:focus,
body.app-area select:focus {
    border-color: var(--app-blue);
    outline: 3px solid rgba(36, 94, 196, 0.13);
}

body.app-area .wizard-form textarea[name="summary"] {
    min-height: 72px;
}

body.app-area .wizard-form textarea[name="description"],
body.app-area .wizard-form textarea[name="eligibility_notes"] {
    min-height: 104px;
}

body.app-area .wizard-form .check {
    align-self: end;
    padding: 8px 0 2px;
}

.form-command-row {
    padding: 16px 24px;
    border-top: 1px solid var(--app-border-soft);
    background: #f8fafc;
}

body.app-area .button,
body.app-area button {
    min-height: 36px;
    border-radius: 7px;
    border-color: #182230;
    background: #182230;
    color: #ffffff;
    font-weight: 580;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

body.app-area .button:hover,
body.app-area button:hover,
body.app-area .button:focus,
body.app-area button:focus {
    border-color: var(--app-gold);
    background: var(--app-gold);
}

body.app-area .button.secondary {
    border-color: #cfd8e3;
    background: #ffffff;
    color: var(--app-text);
}

body.app-area .button.secondary:hover,
body.app-area .button.secondary:focus {
    border-color: #d6b45f;
    background: var(--app-gold-soft);
    color: #68480f;
}

.record-section {
    gap: 14px;
}

.record-list {
    gap: 10px;
}

.record-editor {
    overflow: hidden;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.record-editor:hover {
    border-color: #c6d1df;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.07);
}

.record-editor summary {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 16px;
    padding: 14px 16px;
}

.record-editor summary::after {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--app-control);
}

.record-editor[open] summary {
    border-bottom-color: var(--app-border);
    background: #fbfcfe;
}

.record-title {
    color: var(--app-text);
    font-size: 0.98rem;
    font-weight: 650;
}

.record-subtitle {
    max-width: 980px;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.record-meta {
    gap: 7px;
}

.record-count {
    padding-left: 2px;
    color: var(--app-muted);
    font-size: 0.81rem;
    white-space: nowrap;
}

.record-related-grid {
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
}

.related-panel {
    gap: 12px;
    padding: 16px;
    box-shadow: none;
}

.related-panel-head {
    padding-bottom: 9px;
    border-bottom: 1px solid var(--app-border-soft);
}

.related-panel-head h3 {
    color: var(--app-text);
    font-size: 0.96rem;
    font-weight: 650;
}

body.app-area .compact-list li {
    border-color: var(--app-border-soft);
    border-radius: 7px;
    background: #ffffff;
    color: var(--app-subtle);
}

.inline-create-form {
    gap: 12px;
    border-color: var(--app-border-soft);
    background: #fbfcfe;
}

body.app-area .badge,
body.app-area .status,
body.app-area .price-pill {
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 620;
}

body.app-area .status-active,
body.app-area .status-paid,
body.app-area .status-verified,
body.app-area .status-closed,
body.app-area .status-converted,
body.app-area .status-published,
body.app-area .status-status-active {
    border-color: #b7dfc6;
    background: #eaf8ef;
    color: var(--app-green);
}

body.app-area .status-inactive,
body.app-area .status-hidden {
    border-color: #d9dee7;
    background: #f2f4f7;
    color: #475467;
}

body.app-area .status-new,
body.app-area .status-in-progress,
body.app-area .status-under-review,
body.app-area .status-follow-up {
    border-color: #bed2f6;
    background: #edf5ff;
    color: #174b91;
}

body.app-area .status-due,
body.app-area .status-pending-activation,
body.app-area .status-pending-verification,
body.app-area .status-recorded,
body.app-area .status-partially-paid {
    border-color: #ead29a;
    background: #fff7e3;
    color: #76520f;
}

body.app-area .status-overdue,
body.app-area .status-rejected,
body.app-area .status-reversed,
body.app-area .status-documents-pending {
    border-color: #f0bcc3;
    background: #fff0f2;
    color: var(--app-red);
}

body.app-area table {
    border-radius: 8px;
}

body.app-area th {
    background: #f8fafc;
    color: var(--app-muted);
}

body.app-area tbody tr:hover {
    background: #f8fbff;
}

@media (max-width: 1180px) {
    body.app-area {
        --app-sidebar-width: 228px;
    }

    .app-main {
        padding-inline: 24px;
    }

    .form-section {
        grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    }
}

@media (max-width: 1100px) {
    .wizard-form {
        grid-template-columns: 1fr;
    }

    .form-stepper {
        border-right: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .form-stepper ol {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-section-head,
    .form-section > :not(.form-section-head) {
        grid-column: 1;
    }
}

@media (max-width: 920px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 12px;
    }

    .app-brand {
        min-height: 50px;
        padding-bottom: 8px;
    }

    .app-brand img {
        width: 118px;
        height: 38px;
    }

    .app-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .app-nav a {
        flex: 0 0 auto;
        min-width: 144px;
    }

    .app-topbar {
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .app-search {
        width: auto;
        flex: 1 1 220px;
    }

    .app-main {
        padding: 20px 14px 34px;
    }
}

@media (max-width: 680px) {
    .app-main {
        gap: 16px;
        padding-inline: 12px;
    }

    body.app-area .page-head h1 {
        font-size: 1.5rem;
    }

    .wizard-panel-head,
    .form-section,
    .form-command-row,
    .record-related-grid,
    .related-panel {
        padding-inline: 14px;
    }

    .form-stepper ol,
    .inline-create-form {
        grid-template-columns: 1fr;
    }

    .record-editor summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .record-editor summary::after {
        justify-self: start;
    }
}

/* Public-facing art direction: a calm, ceremonial midnight palette with
   warm gilt accents. Kept separate from the authenticated workspaces. */
body.public,
body.auth {
    --ink: #f8f3e9;
    --ink-soft: #ded6c6;
    --muted: #b7b3a9;
    --line: rgba(231, 192, 113, 0.22);
    --surface: #08140f;
    --surface-raised: #102119;
    --band: #0b1912;
    --band-alt: #10261b;
    --brand: #d9a84e;
    --brand-strong: #f2d18a;
    --brand-soft: rgba(217, 168, 78, 0.12);
    --accent: #e9ba65;
    --accent-soft: rgba(233, 186, 101, 0.16);
    background: var(--surface);
    color: var(--ink);
    color-scheme: dark;
}

/* `.auth` is shared by the body and the login section. The base layout made
   the body itself a centred grid, collapsing the whole page into a column. */
body.auth {
    display: block;
    min-height: 100svh;
    width: 100%;
    max-width: none;
    padding: 0;
}

body.auth > .topbar,
body.auth > main,
body.auth > footer {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

body.public .topbar,
body.auth .topbar {
    min-height: 78px;
    padding: 14px clamp(20px, 5vw, 76px);
    background: rgba(5, 16, 11, 0.88);
    border-bottom: 1px solid rgba(233, 186, 101, 0.18);
    backdrop-filter: blur(18px);
}

body.public .brand,
body.auth .brand {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

body.public .brand img,
body.auth .brand img {
    width: 43px;
    height: 43px;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(233, 186, 101, 0.42), 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.public .brand small,
body.auth .brand small {
    margin-top: 2px;
    color: #dfbd78;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
}

body.public .nav,
body.auth .nav {
    gap: 4px;
}

@media (min-width: 981px) {
    body.public .nav-toggle,
    body.auth .nav-toggle {
        display: none !important;
    }
}

body.public .nav a,
body.auth .nav a {
    padding: 8px 12px;
    color: #e8e0d1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

body.public .nav a:hover,
body.public .nav a:focus,
body.public .nav a[aria-current="page"],
body.auth .nav a:hover,
body.auth .nav a:focus,
body.auth .nav a[aria-current="page"] {
    color: #fffaf0;
    background: rgba(233, 186, 101, 0.16);
}

body.public .hero {
    min-height: calc(100svh - 78px);
    padding: clamp(68px, 10vw, 132px) clamp(20px, 8vw, 128px);
    background-image:
        linear-gradient(90deg, rgba(4, 16, 10, 0.96) 0%, rgba(4, 16, 10, 0.86) 42%, rgba(4, 16, 10, 0.28) 78%, rgba(4, 16, 10, 0.06) 100%),
        url("/assets/memorial-floral-hero.png");
    background-position: center;
}

body.public .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    pointer-events: none;
    background: linear-gradient(transparent, #08140f);
}

body.public .hero-copy {
    width: min(690px, 100%);
}

body.public .hero h1,
body.public .page-head h1,
body.auth .auth h1 {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5.7vw, 5.7rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

body.public .hero p {
    max-width: 570px;
    color: #e4ddce;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

body.public .eyebrow,
body.auth .eyebrow {
    color: #e9ba65;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
}

body.public .button,
body.public button,
body.auth .button,
body.auth button {
    min-height: 46px;
    padding: 12px 19px;
    border-color: #dfaf58;
    border-radius: 2px;
    background: #dfaf58;
    color: #142016;
    font-size: 0.82rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.public .button:hover,
body.public button:hover,
body.public .button:focus,
body.public button:focus,
body.auth .button:hover,
body.auth button:hover,
body.auth .button:focus,
body.auth button:focus {
    border-color: #f4d28a;
    background: #f4d28a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

body.public .button.secondary {
    border-color: rgba(255, 250, 240, 0.52);
    background: transparent;
    color: #fffaf0;
}

body.public .button.secondary:hover,
body.public .button.secondary:focus {
    border-color: #fffaf0;
    background: rgba(255, 250, 240, 0.1);
    color: #fffaf0;
}

body.public .trust-strip {
    gap: 18px;
    margin-top: 36px;
    color: #eee2cd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.public .trust-strip span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.public .trust-strip span::before {
    content: "•";
    margin-right: 8px;
    color: #dfaf58;
}

body.public .band,
body.public .stack,
body.public .filters {
    width: min(1180px, calc(100% - 40px));
}

body.public main.page-enter > .grid {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

body.public .band {
    padding-block: clamp(72px, 9vw, 124px);
}

body.public .section-title {
    max-width: 630px;
    margin-bottom: 38px;
}

body.public .section-title h2,
body.public .split h2 {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

body.public .section-title p,
body.public .split p {
    color: #bcb9ae;
    line-height: 1.7;
}

body.public .card,
body.public .panel,
body.public .form,
body.public .step-card {
    border-color: rgba(239, 220, 174, 0.18);
    border-radius: 3px;
    background: #102119;
    box-shadow: none;
}

body.public .product-card {
    position: relative;
    min-height: 280px;
    padding: 26px;
    border-top: 2px solid rgba(223, 175, 88, 0.78);
    background: linear-gradient(155deg, rgba(223, 175, 88, 0.11), transparent 42%), #102119;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

body.public .product-card:hover {
    border-top-color: #f4d28a;
    background: linear-gradient(155deg, rgba(223, 175, 88, 0.2), transparent 48%), #102119;
    transform: none;
}

body.public .product-card h3 {
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
}

body.public .product-card p {
    color: #c8c6bc;
}

body.public .product-card .button {
    width: 100%;
    margin-top: auto;
}

body.public .badge,
body.public .price-pill,
body.public .status {
    border-radius: 0;
    background: transparent;
    color: #f1cf8a;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.public .price-pill {
    border-left: 1px solid rgba(241, 207, 138, 0.48);
    color: #fffaf0;
}

body.public .service-strip {
    width: 100%;
    max-width: none;
    padding-inline: max(20px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(90deg, rgba(7, 23, 15, 0.96), rgba(8, 36, 24, 0.88)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

body.public .process-grid {
    position: relative;
    gap: 0;
    border-top: 1px solid rgba(239, 220, 174, 0.25);
}

body.public .process-card {
    min-height: 182px;
    padding: 24px 22px;
    border: 0;
    border-right: 1px solid rgba(239, 220, 174, 0.2);
    border-radius: 0;
    background: transparent;
}

body.public .process-card:last-child {
    border-right: 0;
}

body.public .process-card strong {
    color: #e9ba65;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
}

body.public .process-card span {
    color: #f0eadc;
    line-height: 1.65;
}

body.public .insight-panel {
    padding: 30px;
    border-left: 2px solid #dfaf58;
    background: rgba(223, 175, 88, 0.07);
}

body.public .insight-panel strong {
    margin-top: 8px;
    color: #dfaf58;
}

body.public .insight-panel span {
    color: #ddd8ca;
}

body.public .page-head {
    padding: clamp(72px, 10vw, 126px) max(20px, calc((100% - 1180px) / 2));
    border: 0;
    background:
        linear-gradient(90deg, rgba(4, 16, 10, 0.94), rgba(4, 16, 10, 0.63)),
        url("/assets/memorial-floral-hero.png");
    background-size: cover;
    background-position: center;
}

body.public .page-head h1 {
    font-size: clamp(3rem, 5.7vw, 5.7rem);
}

body.public .page-head p {
    color: #dfd6c5;
    font-size: 1.05rem;
}

body.auth .auth {
    min-height: calc(100svh - 78px);
    padding: clamp(40px, 7vw, 90px) 20px;
    justify-items: start;
    padding-left: max(20px, calc((100% - 980px) / 2));
    background:
        linear-gradient(90deg, rgba(4, 16, 10, 0.9) 0%, rgba(4, 16, 10, 0.68) 48%, rgba(4, 16, 10, 0.1) 100%),
        url("/assets/memorial-floral-hero.png");
    background-position: center;
}

body.auth .auth .form {
    width: min(440px, calc(100vw - 40px));
    padding: 36px;
    border: 1px solid rgba(239, 220, 174, 0.34);
    border-top: 3px solid #dfaf58;
    border-radius: 3px;
    background: rgba(11, 28, 19, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

body.auth .auth .form h1 {
    margin-bottom: 24px;
    font-size: clamp(2.35rem, 4vw, 3.2rem);
}

body.auth .auth .form label,
body.auth .auth .form .muted {
    color: #d4cebe;
}

body.auth .auth .form input,
body.auth .auth .form textarea,
body.auth .auth .form select {
    border-color: rgba(239, 220, 174, 0.26);
    border-radius: 2px;
    background: rgba(255, 250, 240, 0.96);
    color: #132018;
}

body.public footer,
body.auth footer {
    padding: 27px clamp(20px, 5vw, 76px);
    border-top-color: rgba(239, 220, 174, 0.16);
    background: #06110c;
    color: #9f9b92;
}

body.public footer a,
body.auth footer a {
    color: #d7ba7c;
}

@media (max-width: 980px) {
    body.public .process-grid {
        gap: 0;
    }

    body.public .process-card {
        border-right: 0;
        border-bottom: 1px solid rgba(239, 220, 174, 0.18);
    }
}

@media (max-width: 680px) {
    body.public .topbar,
    body.auth .topbar {
        min-height: 68px;
        padding: 12px 18px;
    }

    body.public .hero {
        min-height: calc(100svh - 68px);
        padding: 64px 20px 48px;
        background-image:
            linear-gradient(90deg, rgba(4, 16, 10, 0.93), rgba(4, 16, 10, 0.67)),
            url("/assets/memorial-floral-hero.png");
    }

    body.public .hero h1,
    body.public .page-head h1 {
        font-size: clamp(2.85rem, 14vw, 4.2rem);
    }

    body.public .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.public .actions .button {
        width: 100%;
    }

    body.public .trust-strip {
        display: grid;
        gap: 9px;
    }

    body.public .band,
    body.public .stack,
    body.public .filters {
        width: min(100% - 32px, 1180px);
    }

    body.public main.page-enter > .grid {
        width: min(100% - 32px, 1180px);
    }

    body.public .section-title h2,
    body.public .split h2 {
        font-size: clamp(2.15rem, 11vw, 3.15rem);
    }

    body.auth .auth {
        min-height: calc(100svh - 68px);
        justify-items: stretch;
        padding: 32px 20px;
    }

    body.auth .auth .form {
        width: 100%;
        padding: 28px 22px;
    }
}

/* Keep responsive navigation outside Tailwind's component layer: unlayered
   legacy layout rules otherwise override the collapsed state and header grid. */
@media (max-width: 980px) {
    body.public .topbar,
    body.auth .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .topbar .nav-toggle:not([hidden]) {
        display: flex;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .topbar .nav {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        padding-top: 12px;
    }

    .navigation-enhanced .topbar .nav:not(.is-open) {
        display: none;
    }

    .topbar .nav a {
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    body.public .hero h1,
    body.public .page-head h1 {
        font-size: clamp(2.25rem, 10.5vw, 3.5rem);
        line-height: 1.06;
        overflow-wrap: normal;
    }

    body.public .section-title h2,
    body.public .split h2 {
        font-size: clamp(1.85rem, 8.5vw, 2.65rem);
        line-height: 1.1;
    }

    body.public .product-card {
        min-height: 0;
        padding: 22px;
    }

    body.public .process-card {
        min-height: 0;
        padding: 24px 0;
    }

    body.public footer,
    body.auth footer {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Public navigation: compact, tactile, and easy to scan. */
body.public .topbar,
body.auth .topbar {
    isolation: isolate;
}

body.public .topbar::before,
body.auth .topbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% -90%, rgba(233, 186, 101, 0.2), transparent 38%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 38%);
}

body.public .nav a,
body.auth .nav a {
    position: relative;
    min-height: 38px;
    padding: 9px 12px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.public .nav a::after,
body.auth .nav a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 6px;
    left: 12px;
    height: 1px;
    background: #e9ba65;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms cubic-bezier(.16, 1, .3, 1);
}

body.public .nav a:hover,
body.public .nav a:focus,
body.auth .nav a:hover,
body.auth .nav a:focus {
    border-color: rgba(233, 186, 101, 0.22);
    background: rgba(233, 186, 101, 0.08);
    transform: translateY(-1px);
}

body.public .nav a:hover::after,
body.public .nav a:focus::after,
body.public .nav a[aria-current="page"]::after,
body.auth .nav a:hover::after,
body.auth .nav a:focus::after,
body.auth .nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

body.public .nav a[aria-current="page"],
body.auth .nav a[aria-current="page"] {
    border-color: rgba(233, 186, 101, 0.16);
    background: linear-gradient(135deg, rgba(233, 186, 101, 0.24), rgba(233, 186, 101, 0.08));
    box-shadow: inset 0 1px rgba(255, 243, 213, 0.08), 0 7px 18px rgba(0, 0, 0, 0.13);
}

body.public .nav a[href="/get-cover"],
body.auth .nav a[href="/get-cover"] {
    margin-left: 4px;
    border-color: rgba(233, 186, 101, 0.5);
    color: #f8d88e;
}

body.public .nav a[href="/get-cover"]:hover,
body.public .nav a[href="/get-cover"]:focus,
body.auth .nav a[href="/get-cover"]:hover,
body.auth .nav a[href="/get-cover"]:focus {
    background: #e9ba65;
    border-color: #e9ba65;
    color: #102016;
}

body.public .nav a[href="/get-cover"]::after,
body.auth .nav a[href="/get-cover"]::after {
    background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
    body.public .nav a,
    body.auth .nav a {
        animation: nav-link-arrive 360ms cubic-bezier(.16, 1, .3, 1) both;
    }

    body.public .nav a:nth-child(2),
    body.auth .nav a:nth-child(2) { animation-delay: 30ms; }
    body.public .nav a:nth-child(3),
    body.auth .nav a:nth-child(3) { animation-delay: 60ms; }
    body.public .nav a:nth-child(4),
    body.auth .nav a:nth-child(4) { animation-delay: 90ms; }
    body.public .nav a:nth-child(5),
    body.auth .nav a:nth-child(5) { animation-delay: 120ms; }
    body.public .nav a:nth-child(6),
    body.auth .nav a:nth-child(6) { animation-delay: 150ms; }
}

@keyframes nav-link-arrive {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* System-wide motion and depth — operational, not ornamental. */
body.app-area {
    background:
        radial-gradient(circle at 94% -8%, rgba(195, 146, 53, 0.13), transparent 27rem),
        radial-gradient(circle at 45% -22%, rgba(20, 112, 70, 0.07), transparent 34rem),
        var(--app-page);
}

body.app-area .app-topbar {
    position: relative;
    overflow: hidden;
}

body.app-area .app-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.78) 50%, transparent 65%);
    opacity: 0.5;
    transform: translateX(-70%);
    animation: workspace-sheen 9s ease-in-out infinite;
}

body.app-area .app-nav a {
    overflow: hidden;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

body.app-area .app-nav a::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 7px;
    left: 40px;
    height: 1px;
    background: #f2ce7c;
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: left;
    transition: opacity 160ms ease, transform 160ms ease;
}

body.app-area .app-nav a:hover,
body.app-area .app-nav a:focus {
    transform: translateX(3px);
}

body.app-area .app-nav a:hover::after,
body.app-area .app-nav a:focus::after,
body.app-area .app-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

body.app-area .app-nav a[aria-current="page"] {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.app-area .app-search {
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.app-area .app-search:focus-within {
    transform: translateY(-1px);
}

body.app-area .app-notification {
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

body.app-area .app-notification:hover {
    border-color: rgba(147, 105, 22, 0.54);
    color: var(--app-gold);
    transform: translateY(-2px) rotate(5deg);
}

body.app-area .app-avatar {
    box-shadow: 0 0 0 3px rgba(147, 105, 22, 0.11);
}

body.app-area .page-head {
    position: relative;
    padding-bottom: 14px;
}

body.app-area .page-head::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(180px, 28vw);
    height: 2px;
    background: linear-gradient(90deg, var(--app-gold), rgba(147, 105, 22, 0));
}

body.app-area .page-head h1 {
    letter-spacing: -0.025em;
}

body.app-area .section-title {
    position: relative;
}

body.app-area .section-title::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 11px;
    background: var(--app-gold);
}

body.app-area .card,
body.app-area .panel,
body.app-area .record-editor,
body.app-area .related-panel,
body.app-area .calendar-entry {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.app-area .card:hover,
body.app-area .panel:hover,
body.app-area .record-editor:hover,
body.app-area .related-panel:hover,
body.app-area .calendar-entry:hover {
    border-color: rgba(147, 105, 22, 0.38);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

body.app-area .admin-kpi,
body.app-area .portal-kpi {
    position: relative;
    overflow: hidden;
}

body.app-area .admin-kpi::after,
body.app-area .portal-kpi::after {
    content: "";
    position: absolute;
    inset: auto -20% 0;
    height: 44%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(147, 105, 22, 0.08));
    opacity: 0;
    transition: opacity 180ms ease, transform 220ms ease;
    transform: translateY(30%);
}

body.app-area .admin-kpi:hover::after,
body.app-area .portal-kpi:hover::after {
    opacity: 1;
    transform: translateY(0);
}

body.app-area .metric-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 650;
    transition: gap 160ms ease, color 160ms ease;
}

body.app-area .metric-link:hover,
body.app-area .metric-link:focus {
    gap: 10px;
    color: var(--app-gold);
    text-decoration: none;
}

body.app-area .status,
body.app-area .badge,
body.app-area .price-pill {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.app-area .status:hover,
body.app-area .badge:hover,
body.app-area .price-pill:hover {
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.1);
    transform: translateY(-1px);
}

body.app-area tbody tr {
    transition: background 140ms ease, box-shadow 140ms ease;
}

body.app-area tbody tr:hover {
    box-shadow: inset 3px 0 var(--app-gold);
}

body.app-area .button,
body.app-area button {
    position: relative;
    overflow: hidden;
}

body.app-area .button::before,
body.app-area button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -55%;
    width: 38%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 310ms ease;
}

body.app-area .button:hover::before,
body.app-area button:hover::before {
    left: 120%;
}

/* A high-confidence customer account: the dark panel carries identity;
   light panels hold actions and evidence. */
body.portal.app-area .portal-overview-hero {
    overflow: hidden;
    position: relative;
}

body.portal.app-area .portal-overview-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -50%;
    width: 340px;
    height: 340px;
    pointer-events: none;
    border: 1px solid rgba(224, 178, 88, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(224, 178, 88, 0.035), 0 0 0 92px rgba(224, 178, 88, 0.025);
}

body.portal.app-area .portal-overview-copy,
body.portal.app-area .portal-next-payment {
    position: relative;
    z-index: 1;
}

body.portal.app-area .portal-next-payment {
    border-left: 2px solid var(--app-gold);
}

body.portal.app-area .portal-priority-item {
    border-left: 3px solid transparent;
}

body.portal.app-area .portal-priority-item:hover {
    border-left-color: var(--app-gold);
}

/* The cover application gets a clear sense of forward movement. */
.cover-application {
    position: relative;
}

.cover-visual {
    overflow: hidden;
}

.cover-visual::after {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -14%;
    width: 260px;
    height: 260px;
    pointer-events: none;
    border: 1px solid rgba(233, 186, 101, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(233, 186, 101, 0.05), 0 0 0 72px rgba(233, 186, 101, 0.025);
}

.cover-visual-content {
    position: relative;
    z-index: 1;
}

.cover-stepper li {
    transition: color 180ms ease, transform 180ms ease;
}

.cover-stepper li:hover {
    transform: translateY(-2px);
}

.cover-stepper li.active .step-bubble {
    box-shadow: 0 0 0 5px rgba(223, 175, 88, 0.12), 0 7px 16px rgba(0, 0, 0, 0.16);
    animation: active-step-pulse 2.6s ease-in-out infinite;
}

.cover-info-tile,
.cover-plan-snapshot {
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cover-info-tile:hover,
.cover-plan-snapshot:hover {
    border-color: rgba(223, 175, 88, 0.52);
    transform: translateY(-2px);
}

@keyframes workspace-sheen {
    0%, 76%, 100% { transform: translateX(-70%); }
    88% { transform: translateX(170%); }
}

@keyframes active-step-pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(223, 175, 88, 0.12), 0 7px 16px rgba(0, 0, 0, 0.16); }
    50% { box-shadow: 0 0 0 9px rgba(223, 175, 88, 0.04), 0 7px 20px rgba(0, 0, 0, 0.2); }
}

@media (prefers-reduced-motion: no-preference) {
    body.app-area .page-head,
    body.app-area .admin-command-panel,
    body.app-area .portal-overview-hero,
    body.app-area .wizard-panel,
    .cover-application {
        animation: workspace-enter 450ms cubic-bezier(.16, 1, .3, 1) both;
    }

    body.app-area .admin-kpi,
    body.app-area .portal-kpi,
    body.app-area .admin-directive-card,
    body.app-area .portal-priority-item,
    body.app-area .record-editor {
        animation: workspace-enter 480ms cubic-bezier(.16, 1, .3, 1) both;
    }

    body.app-area .admin-kpi:nth-child(2),
    body.app-area .portal-kpi:nth-child(2),
    body.app-area .admin-directive-card:nth-child(2),
    body.app-area .portal-priority-item:nth-child(2) { animation-delay: 55ms; }
    body.app-area .admin-kpi:nth-child(3),
    body.app-area .portal-kpi:nth-child(3),
    body.app-area .admin-directive-card:nth-child(3),
    body.app-area .portal-priority-item:nth-child(3) { animation-delay: 110ms; }
    body.app-area .admin-kpi:nth-child(4),
    body.app-area .portal-kpi:nth-child(4),
    body.app-area .admin-directive-card:nth-child(4),
    body.app-area .portal-priority-item:nth-child(4) { animation-delay: 165ms; }
}

@keyframes workspace-enter {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    body.app-area .app-topbar::after,
    .cover-stepper li.active .step-bubble {
        animation: none;
    }
}

/* The application is deliberately a light working surface within the
   ceremonial dark public shell; this keeps long-form completion effortless. */
body.public .cover-step-card {
    position: relative;
    padding-top: 64px;
    border-color: rgba(239, 220, 174, 0.38);
    background: #fffdf8;
    color: #182119;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

body.public .cover-step-card legend,
body.public .cover-step-intro h2 {
    color: #182119;
}

body.public .cover-step-card legend {
    position: absolute;
    top: 22px;
    left: 28px;
    width: calc(100% - 56px);
    margin: 0;
}

@media (max-width: 680px) {
    body.public .cover-step-card {
        padding-top: 58px;
    }

    body.public .cover-step-card legend {
        top: 18px;
        left: 18px;
        width: calc(100% - 36px);
    }
}

body.public .cover-step-intro p,
body.public .form-hint,
body.public .segmented-field {
    color: #59645c;
}

body.public .cover-step-card .step-index,
body.public .cover-stepper li.active .step-bubble {
    border-color: #dfaf58;
    background: #dfaf58;
    color: #182119;
}

body.public .cover-stepper li.active {
    color: #a56d16;
}

body.public .cover-step-card .button {
    border-color: #dfaf58;
    background: #dfaf58;
    color: #182119;
}

body.public .cover-step-card .button:hover,
body.public .cover-step-card .button:focus {
    border-color: #f1cf8a;
    background: #f1cf8a;
    color: #182119;
}

body.public .cover-step-card .button.secondary {
    border-color: rgba(24, 33, 25, 0.2);
    background: #ffffff;
    color: #182119;
}

body.public .cover-step-card .button.secondary:hover,
body.public .cover-step-card .button.secondary:focus {
    border-color: rgba(223, 175, 88, 0.65);
    background: #fbf1db;
    color: #182119;
}

body.public .cover-consent {
    border-color: rgba(223, 175, 88, 0.5);
    background: #fff8e9;
    color: #263129;
}

body.public .cover-consent a {
    color: #9c6513;
}

/* Guided identity and address capture ----------------------------------- */
.capture-section,
.identity-capture,
.address-capture {
    display: grid;
    align-items: start;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(24, 33, 25, 0.12);
    border-radius: 12px;
    background: #fffefa;
}

.capture-section-head {
    display: grid;
    gap: 5px;
}

.capture-section-head .eyebrow {
    margin: 0;
    gap: 0;
}

.capture-section-head .eyebrow::before {
    display: none;
}

.capture-section-head h2,
.capture-section-head h3 {
    margin: 0;
    color: #1b2920;
    font-size: 1.16rem;
    line-height: 1.2;
}

.capture-section-head p {
    max-width: 760px;
    margin: 0;
    color: #5f6c62;
    font-size: 0.9rem;
    line-height: 1.5;
}

.identity-result-grid,
.identity-follow-up,
.address-components {
    display: grid;
    gap: 14px;
}

.identity-document-grid,
.identity-person-grid,
.identity-contact-grid {
    display: grid;
    align-items: start;
    gap: 16px;
}

.identity-document-grid {
    grid-template-columns: minmax(10.5rem, 0.65fr) minmax(0, 1.35fr);
}

.identity-person-grid {
    grid-template-columns: minmax(7.5rem, 0.52fr) repeat(2, minmax(0, 1.24fr));
}

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

.identity-title-grid {
    width: min(13rem, 100%);
}

.identity-capture .field-control {
    min-width: 0;
}

.identity-result-grid[hidden],
.identity-follow-up[hidden],
.identity-passport-date[hidden],
.address-components[hidden] {
    display: none !important;
}

.identity-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px;
    border: 1px solid rgba(33, 104, 70, 0.16);
    border-radius: 9px;
    background: #f3faf5;
}

.identity-result-grid label {
    min-width: 0;
}

.identity-result-grid .derived-input,
.address-components input:disabled,
.address-components select:disabled {
    cursor: not-allowed;
    border-color: rgba(33, 104, 70, 0.2);
    background: #edf4ef;
    color: #31503d;
    opacity: 1;
}

.identity-passport-date {
    max-width: 320px;
}

.identity-follow-up {
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 33, 25, 0.1);
}

.identity-capture .form-hint {
    min-height: 1.45em;
    margin: 0;
    color: #5f6c62;
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.45;
}

.address-capture {
    position: relative;
    gap: 12px;
    padding: 16px;
    background: #fcfdfb;
}

.address-capture .capture-section-head {
    gap: 3px;
}

.address-capture .capture-section-head h3 {
    font-size: 1.06rem;
}

.address-capture .capture-section-head p {
    font-size: 0.84rem;
    line-height: 1.42;
}

.address-search {
    display: grid;
    gap: 6px;
}

.address-search-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.address-search-label {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
}

.address-search-optional,
.address-component-grid .field-optional {
    color: #69736c;
    font-size: 0.76rem;
    font-weight: 560;
}

.address-google-slot,
.address-google-slot gmp-place-autocomplete,
.address-google-placeholder {
    display: block;
    width: 100%;
}

.address-google-slot gmp-place-autocomplete {
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background-color: #ffffff;
    color: #182230;
    color-scheme: light;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
}

.address-google-slot gmp-place-autocomplete::part(input) {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #182230;
    font: inherit;
}

.address-google-slot gmp-place-autocomplete::part(focus-ring) {
    border-radius: 7px;
}

.address-google-slot gmp-place-autocomplete::part(prediction-list) {
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.address-google-placeholder {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: #f3f5f3;
    color: #667085;
}

.address-status {
    margin: 0;
    color: #5f6c62;
    font-size: 0.78rem;
    line-height: 1.35;
}

.address-status[data-state="success"] {
    color: #216846;
}

.address-status[data-state="error"] {
    color: #a23020;
}

.address-current {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 9px 10px;
    border-left: 3px solid #dfaf58;
    background: #fff8e9;
    color: #4b534d;
    font-size: 0.82rem;
}

.address-current span {
    white-space: normal;
}

.address-components {
    gap: 0;
}

.address-component-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 16px;
}

.address-component-grid > label,
.address-component-grid > [data-field-feedback-host] {
    min-width: 0;
}

.address-component-grid [data-field-feedback-host] {
    gap: 2px;
}

.address-component-grid label.form-field {
    gap: 5px;
}

.address-component-grid .field-feedback {
    min-height: 0;
    height: 0;
    overflow: hidden;
}

.address-component-grid .form-field.is-invalid + .field-feedback {
    min-height: 1.05rem;
    height: auto;
    margin-top: 2px;
}

body.app-area .capture-section,
body.app-area .identity-capture,
body.app-area .address-capture {
    padding: 18px;
    border-color: #dce4ec;
    background: #ffffff;
}

body.app-area .address-capture {
    padding: 16px;
}

body.app-area .identity-result-grid {
    border-color: #d7e6dc;
    background: #f4faf6;
}

@media (max-width: 760px) {
    .identity-result-grid {
        grid-template-columns: 1fr;
    }

    .capture-section,
    .identity-capture,
    .address-capture {
        padding: 16px;
    }
}

@media (max-width: 680px) {
    .identity-document-grid,
    .identity-person-grid,
    .identity-contact-grid,
    .address-component-grid {
        grid-template-columns: 1fr;
    }

    .identity-title-grid,
    .identity-passport-date {
        max-width: none;
        width: 100%;
    }
}

/* Unified form system ----------------------------------------------------- */
.form-intelligent {
    --form-focus: #245ec4;
    --form-success: #147046;
    --form-danger: #b4232f;
    --form-control: #ffffff;
    --form-control-muted: #f8fafc;
    --form-border: #cfd8e3;
    --form-label: #344054;
    --form-helper: #667085;
}

.form-intelligent label.form-field {
    position: relative;
    gap: 7px;
    color: var(--form-label);
    font-size: 0.86rem;
    font-weight: 650;
}

.form-intelligent [data-field-feedback-host] {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 4px;
}

.form-intelligent [data-field-feedback-host] > label.form-field {
    min-width: 0;
}

.form-intelligent .field-label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
}

.form-intelligent .field-required {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--form-helper);
    font-size: 0.67rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-intelligent .field-label .field-required {
    position: static;
    margin: 0;
    color: var(--form-danger);
    font-size: 0.95em;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.form-intelligent input:not([type="checkbox"]):not([type="radio"]),
.form-intelligent select,
.form-intelligent textarea,
.form-intelligent .derived-input {
    min-height: 44px;
    border-color: var(--form-border);
    border-radius: 7px;
    background: var(--form-control);
    color: #182230;
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.02);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.form-intelligent textarea {
    min-height: 104px;
    line-height: 1.55;
}

.form-intelligent input:hover,
.form-intelligent select:hover,
.form-intelligent textarea:hover {
    border-color: #aebccc;
}

.form-intelligent input:focus,
.form-intelligent select:focus,
.form-intelligent textarea:focus {
    border-color: var(--form-focus);
    outline: 3px solid rgba(36, 94, 196, 0.14);
    box-shadow: 0 0 0 1px rgba(36, 94, 196, 0.14), 0 5px 16px rgba(16, 24, 40, 0.06);
}

.form-intelligent .form-field.is-invalid input,
.form-intelligent .form-field.is-invalid select,
.form-intelligent .form-field.is-invalid textarea,
.form-intelligent .form-field.is-invalid .password-control,
.form-intelligent .form-field.is-invalid .select-picker {
    border-color: var(--form-danger);
}

.form-intelligent .form-field.is-invalid input:focus,
.form-intelligent .form-field.is-invalid select:focus,
.form-intelligent .form-field.is-invalid textarea:focus {
    outline-color: rgba(180, 35, 47, 0.15);
}

.field-feedback {
    display: block;
    min-height: 1.05rem;
    margin: 0;
    color: var(--form-helper);
    font-size: 0.76rem;
    font-weight: 560;
    line-height: 1.35;
    visibility: hidden;
}

.form-field.is-invalid .field-feedback,
.form-field.is-invalid + .field-feedback {
    color: var(--form-danger);
    visibility: visible;
}

.form-completion {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    background: #f8fafc;
}

.form-completion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #5d6876;
    font-size: 0.76rem;
    font-weight: 650;
}

.form-completion-head strong {
    color: #344054;
    font-size: 0.78rem;
}

.form-completion-track,
.journey-progress-track {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.form-completion-fill,
.journey-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #936916, #d6a744);
    transition: width 220ms cubic-bezier(.16, 1, .3, 1), background 180ms ease;
}

.form-completion.is-complete {
    border-color: rgba(20, 112, 70, 0.3);
    background: #f0faf4;
}

.form-completion.is-complete .form-completion-fill {
    background: #147046;
}

.form-error-summary {
    padding: 11px 13px;
    border: 1px solid rgba(180, 35, 47, 0.3);
    border-left: 3px solid var(--form-danger);
    border-radius: 6px;
    background: #fff5f6;
    color: #8d1f2a;
    font-size: 0.82rem;
    font-weight: 620;
    line-height: 1.45;
}

.wizard-form .form-workspace > .form-error-summary {
    margin: 16px 24px 0;
}

.journey-form .step-card > .form-error-summary {
    margin-bottom: 2px;
}

.select-picker {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.select-picker .select-search {
    min-height: 34px;
    margin: 0;
    padding: 7px 10px 7px 31px;
    border: 1px solid var(--form-border);
    border-radius: 6px;
    background:
        linear-gradient(135deg, transparent 0 46%, #7b8794 47% 53%, transparent 54%) 13px 12px / 7px 7px no-repeat,
        var(--form-control-muted);
    color: #344054;
    font-size: 0.8rem;
}

.select-picker .select-search:focus {
    border-color: var(--form-focus);
    outline: 3px solid rgba(36, 94, 196, 0.12);
    background-color: #ffffff;
}

.select-picker .searchable-select {
    margin: 0;
}

.select-search-status {
    min-height: 0;
    color: #667085;
    font-size: 0.72rem;
    line-height: 1.2;
}

.select-search-status:empty {
    display: none;
}

.password-control {
    position: relative;
    display: block;
}

.password-control input {
    width: 100%;
    padding-right: 66px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    min-height: 30px;
    padding: 4px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #475467;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #edf2f7;
    color: #182230;
    outline: 0;
}

.file-selection {
    display: block;
    margin-top: -1px;
    color: var(--form-helper);
    font-size: 0.76rem;
    font-weight: 560;
}

.journey-progress {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(223, 175, 88, 0.26);
    border-top: 0;
    background: rgba(255, 253, 248, 0.94);
    color: #667085;
    font-size: 0.76rem;
    font-weight: 650;
}

.journey-progress-value {
    color: #27352c;
    font-size: 0.78rem;
}

.has-interactive-stepper .form-stepper li {
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.has-interactive-stepper .form-stepper li:hover,
.has-interactive-stepper .form-stepper li:focus-visible {
    border-color: rgba(147, 105, 22, 0.28);
    background: #fffaf0;
    color: #6d4d0f;
    outline: 0;
    transform: translateX(2px);
}

.has-interactive-stepper .form-stepper li.is-current {
    border-color: rgba(36, 94, 196, 0.24);
    background: #edf5ff;
    color: #1d4ed8;
}

/* Public and authentication forms use the same anatomy, with the warmer
   palette required by the brand surface. */
body.public .form-intelligent,
body.auth .form-intelligent {
    --form-focus: #dfaf58;
    --form-success: #317b57;
    --form-danger: #bd4a4a;
    --form-control: #fffdf8;
    --form-control-muted: #f8f4eb;
    --form-border: rgba(239, 220, 174, 0.42);
    --form-label: #f0eadc;
    --form-helper: #c3bdaf;
}

body.public .form-intelligent:not(.cover-self-service):not(.small),
body.auth .form-intelligent:not(.small) {
    padding: 28px;
    border-top: 2px solid #dfaf58;
}

body.public .form-intelligent:not(.cover-self-service) input,
body.public .form-intelligent:not(.cover-self-service) select,
body.public .form-intelligent:not(.cover-self-service) textarea,
body.auth .form-intelligent input,
body.auth .form-intelligent select,
body.auth .form-intelligent textarea {
    color: #182119;
}

body.public .form-completion,
body.auth .form-completion {
    border-color: rgba(239, 220, 174, 0.24);
    background: rgba(255, 253, 248, 0.08);
}

body.public .form-completion-head,
body.auth .form-completion-head {
    color: #d4cebe;
}

body.public .form-completion-head strong,
body.auth .form-completion-head strong {
    color: #fff9ed;
}

body.public .form-completion-track,
body.auth .form-completion-track {
    background: rgba(255, 255, 255, 0.15);
}

body.public .form-error-summary,
body.auth .form-error-summary {
    background: rgba(180, 35, 47, 0.16);
    color: #ffd2d5;
}

/* The guided application sits on a paper surface inside the dark public
   shell, so it deliberately switches back to ink-on-paper field tokens. */
body.public .cover-self-service.form-intelligent {
    --form-focus: #b98423;
    --form-success: #216846;
    --form-danger: #b44545;
    --form-control: #fffdf8;
    --form-control-muted: #f8f4eb;
    --form-border: #ded7c9;
    --form-label: #3e4a40;
    --form-helper: #6d776d;
}

body.public .cover-self-service.form-intelligent label.form-field,
body.public .cover-self-service.form-intelligent .journey-progress,
body.public .cover-self-service.form-intelligent .journey-progress-value {
    color: var(--form-label);
}

body.public .cover-self-service.form-intelligent .field-feedback,
body.public .cover-self-service.form-intelligent .file-selection,
body.public .cover-self-service.form-intelligent .select-search-status {
    color: var(--form-helper);
}

body.public .cover-self-service.form-intelligent .form-error-summary {
    background: #fff3f3;
    color: #8d1f2a;
}

body.public .password-toggle,
body.auth .password-toggle {
    color: #475467;
}

/* Funeral cover is a considered family decision, not a catalogue search.
   These styles put the two decision facts first, then allow the detail to
   unfold only when a visitor asks for it. */
body.public .cover-choice-intro {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 78px) 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 6vw, 84px);
    align-items: center;
    border-bottom: 1px solid rgba(239, 220, 174, 0.18);
}

body.public .cover-choice-intro h2,
body.public .cover-next-step h2 {
    margin: 0 0 14px;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.3vw, 3.25rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

body.public .cover-choice-intro p,
body.public .cover-next-step p {
    max-width: 570px;
    margin: 0;
    color: #c8c6bc;
    line-height: 1.7;
}

body.public .cover-choice-intro ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 1px;
    list-style: none;
    background: rgba(239, 220, 174, 0.19);
}

body.public .cover-choice-intro li {
    min-height: 146px;
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 8px;
    background: rgba(16, 33, 25, 0.88);
}

body.public .cover-choice-intro li > span {
    width: 27px;
    height: 27px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(233, 186, 101, 0.62);
    border-radius: 50%;
    color: #e9ba65;
    font-size: 0.7rem;
    font-weight: 800;
}

body.public .cover-choice-intro li strong {
    color: #fffaf0;
    font-size: 0.9rem;
    line-height: 1.25;
}

body.public .cover-choice-intro li small {
    color: #aaa99f;
    font-size: 0.76rem;
    line-height: 1.45;
}

body.public .cover-plans-band {
    width: min(1480px, calc(100% - 40px));
    max-width: none;
}

body.public .cover-plans-band .section-title {
    max-width: 700px;
}

body.public .cover-plan-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

body.public .plan-choice-card {
    min-height: 0;
    height: auto;
    align-self: start;
    padding: 23px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border: 1px solid rgba(239, 220, 174, 0.2);
    border-top: 3px solid rgba(223, 175, 88, 0.7);
    border-radius: 2px;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 175, 88, 0.16), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 46%),
        #102119;
    box-shadow: none;
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

body.public .plan-choice-card::before {
    display: none;
}

body.public .plan-choice-card:hover,
body.public .plan-choice-card:focus-within {
    z-index: 1;
    border-color: rgba(244, 210, 138, 0.66);
    border-top-color: #f4d28a;
    background:
        radial-gradient(circle at 100% 0, rgba(223, 175, 88, 0.24), transparent 42%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.04), transparent 46%),
        #13271d;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
    transform: translateY(-7px);
}

body.public .plan-choice-card > p,
body.public .plan-choice-card > details {
    margin-inline: 0;
}

body.public .plan-choice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.public .plan-order {
    color: #e9ba65;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

body.public .plan-tier {
    color: #cfc6b4;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-align: right;
    text-transform: uppercase;
}

body.public .plan-choice-card h3 {
    min-height: 2.35em;
    margin: 19px 0 10px;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 1.65vw, 1.8rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

body.public .plan-choice-card .cover-plan-summary {
    min-height: 5.1em;
    margin: 0;
    color: #d6d1c6;
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.58;
}

body.public .plan-facts {
    display: grid;
    gap: 0;
    margin: 20px 0 17px;
    border-top: 1px solid rgba(239, 220, 174, 0.19);
    border-bottom: 1px solid rgba(239, 220, 174, 0.19);
}

body.public .plan-facts div {
    padding: 12px 0;
}

body.public .plan-facts div + div {
    border-top: 1px solid rgba(239, 220, 174, 0.13);
}

body.public .plan-facts dt {
    margin-bottom: 4px;
    color: #bfb9ac;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.public .plan-facts dd {
    margin: 0;
    color: #f5d38d;
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

body.public .plan-facts dd small {
    display: block;
    margin-top: 4px;
    color: #bfb9ac;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.public .plan-highlights {
    margin-bottom: 20px;
}

body.public .plan-highlights > span {
    display: block;
    margin-bottom: 8px;
    color: #bfb9ac;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.public .plan-highlights ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.public .plan-highlights li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #e4ddce;
    font-size: 0.8rem;
    line-height: 1.35;
}

body.public .plan-highlights li::before {
    content: "✓";
    color: #e9ba65;
    font-size: 0.7rem;
    font-weight: 800;
}

body.public .plan-choice-card .plan-details {
    margin: auto 0 0;
    padding: 15px 0 0;
    border-top: 1px solid rgba(239, 220, 174, 0.19);
}

body.public .plan-choice-card .plan-details summary,
body.public .topup-choice-card .topup-details summary {
    width: 100%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f0d090;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-align: left;
    text-transform: none;
}

body.public .plan-choice-card .plan-details summary::after,
body.public .topup-choice-card .topup-details summary::after {
    content: "+";
    margin-left: 12px;
    color: #f0d090;
    font-size: 1.2rem;
    line-height: 1;
}

body.public .plan-choice-card .plan-details[open] summary::after,
body.public .topup-choice-card .topup-details[open] summary::after {
    content: "−";
}

body.public .plan-choice-card .plan-details summary:hover,
body.public .plan-choice-card .plan-details summary:focus,
body.public .topup-choice-card .topup-details summary:hover,
body.public .topup-choice-card .topup-details summary:focus {
    background: transparent;
    color: #fff4da;
    text-decoration: underline;
}

body.public .plan-choice-card .cover-plan-details {
    display: grid;
    gap: 14px;
    margin-top: 17px;
}

body.public .plan-detail-description {
    margin: 0;
    color: #c8c6bc;
    font-size: 0.86rem;
    line-height: 1.6;
}

body.public .plan-choice-card .cover-plan-details h4 {
    margin: 7px 0 0;
    color: #e9ba65;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
}

body.public .plan-choice-card .compact-list {
    gap: 6px;
}

body.public .plan-choice-card .compact-list li {
    padding: 9px 10px;
    border: 1px solid rgba(239, 220, 174, 0.13);
    background: rgba(4, 16, 10, 0.22);
}

body.public .plan-choice-card .compact-list strong {
    color: #fffaf0;
    font-size: 0.77rem;
}

body.public .plan-choice-card .compact-list span,
body.public .plan-choice-card .muted {
    color: #c8c6bc;
    font-size: 0.76rem;
}

body.public .plan-choice-card table,
body.public .topup-choice-card table {
    margin: 0;
    border-color: rgba(239, 220, 174, 0.17);
    background: rgba(4, 16, 10, 0.3);
    box-shadow: none;
}

body.public .plan-choice-card th,
body.public .topup-choice-card th {
    color: #c8c1b4;
    background: rgba(233, 186, 101, 0.08);
}

body.public .plan-choice-card td,
body.public .topup-choice-card td {
    color: #eee8dc;
    border-bottom-color: rgba(239, 220, 174, 0.12);
}

body.public .plan-choice-card .plan-apply {
    width: 100%;
    margin-top: 15px;
    font-size: 0.7rem;
}

body.public .cover-extras-band {
    margin-top: clamp(34px, 6vw, 90px);
    padding-right: max(20px, calc((100% - 1320px) / 2));
    padding-left: max(20px, calc((100% - 1320px) / 2));
}

body.public .cover-extras-band .section-title,
body.public .cover-extras-band .topup-grid {
    width: min(1320px, 100%);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

body.public .cover-extras-band .topup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.public .topup-choice-card {
    min-height: 0;
    padding: 23px;
    border-top: 2px solid rgba(223, 175, 88, 0.58);
    background: rgba(8, 23, 15, 0.72);
    transition: transform 200ms cubic-bezier(.16, 1, .3, 1), border-color 200ms ease, background 200ms ease;
}

body.public .topup-choice-card:hover,
body.public .topup-choice-card:focus-within {
    border-color: rgba(244, 210, 138, 0.46);
    border-top-color: #f4d28a;
    background: rgba(8, 23, 15, 0.94);
    transform: translateY(-4px);
}

body.public .topup-choice-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

body.public .topup-choice-card .plan-tier {
    display: block;
    margin-bottom: 9px;
    text-align: left;
}

body.public .topup-choice-card h3 {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

body.public .topup-price {
    min-width: 98px;
    margin: 0;
    display: grid;
    justify-items: end;
    gap: 1px;
    color: #c8c1b4;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.public .topup-price strong {
    color: #f2d18a;
    font-size: 1.06rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

body.public .topup-price small {
    color: #aaa99f;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

body.public .topup-price-request strong {
    font-size: 0.86rem;
}

body.public .topup-summary {
    min-height: 3.25em;
    margin: 19px 0;
    color: #d6d1c6;
    font-size: 0.88rem;
    line-height: 1.55;
}

body.public .topup-choice-card .topup-details {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(239, 220, 174, 0.17);
}

body.public .topup-choice-card .topup-details > div {
    display: grid;
    gap: 14px;
    margin-top: 17px;
}

body.public .cover-guidance-band {
    padding-bottom: clamp(54px, 7vw, 96px);
}

body.public .cover-next-step {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto clamp(64px, 8vw, 112px);
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    border: 1px solid rgba(233, 186, 101, 0.34);
    border-left: 3px solid #dfaf58;
    background:
        radial-gradient(circle at 90% 0, rgba(223, 175, 88, 0.16), transparent 28%),
        #102119;
}

body.public .cover-next-step .actions {
    flex: 0 0 auto;
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    body.public .plan-choice-card {
        animation: cover-plan-arrive 520ms cubic-bezier(.16, 1, .3, 1) both;
    }

    body.public .plan-choice-card:nth-child(2) { animation-delay: 55ms; }
    body.public .plan-choice-card:nth-child(3) { animation-delay: 110ms; }
    body.public .plan-choice-card:nth-child(4) { animation-delay: 165ms; }
    body.public .plan-choice-card:nth-child(5) { animation-delay: 220ms; }

    body.public .plan-details[open] .cover-plan-details,
    body.public .topup-details[open] > div {
        animation: cover-detail-reveal 220ms ease both;
    }
}

@keyframes cover-plan-arrive {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cover-detail-reveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1420px) {
    body.public .cover-plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body.public .cover-choice-intro {
        grid-template-columns: 1fr;
    }

    body.public .cover-extras-band .topup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.public .cover-choice-intro,
    body.public .cover-plans-band,
    body.public .cover-next-step {
        width: min(100% - 32px, 1320px);
    }

    body.public .cover-choice-intro ol {
        grid-template-columns: 1fr;
    }

    body.public .cover-choice-intro li {
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
    }

    body.public .cover-choice-intro li > span {
        grid-row: span 2;
    }

    body.public .cover-plan-grid,
    body.public .cover-extras-band .topup-grid {
        grid-template-columns: 1fr;
    }

    body.public .plan-choice-card {
        padding: 22px;
    }

    body.public .plan-choice-card h3 {
        min-height: 0;
    }

    body.public .plan-choice-card .cover-plan-summary,
    body.public .topup-summary {
        min-height: 0;
    }

    body.public .cover-next-step {
        display: grid;
    }

    body.public .cover-next-step .actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    body.public .cover-next-step .button {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .form-completion-head,
    .journey-progress {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .form-completion-head {
        display: grid;
    }

    .journey-progress-track {
        margin-top: 2px;
    }

    .form-intelligent .field-required {
        display: none;
    }

    .form-intelligent .field-label .field-required {
        display: inline;
    }

    /* A six-step application must not spend an entire phone viewport on a
       vertical step list. Keep the sequence visible as a compact 3 × 2 map. */
    .cover-stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 0;
        padding: 14px 6px;
    }

    .cover-stepper li {
        min-height: 58px;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: start;
        gap: 4px;
        padding: 0 3px;
    }

    .cover-stepper .step-bubble {
        width: 34px;
        height: 34px;
        font-size: 0.76rem;
    }

    .cover-stepper .step-label {
        font-size: 0.65rem;
        line-height: 1.15;
    }
}

/* Shared density pass: keep the MGN experience calm, while making the next
   meaningful piece of content apparent before a visitor assumes a page ends.
   These rules deliberately affect the shared page primitives rather than a
   single confirmation screen. */
body.public .hero {
    min-height: clamp(420px, 58svh, 620px);
    padding-block: clamp(48px, 6.5vw, 80px);
}

body.public .hero.slim {
    min-height: clamp(300px, 42svh, 420px);
    padding-block: clamp(42px, 5vw, 64px);
}

body.public .page-head {
    padding-block: clamp(48px, 6vw, 78px);
}

body.public .band {
    padding-block: clamp(42px, 5vw, 72px);
}

body.public .section-title {
    margin-bottom: 28px;
}

body.public .trust-strip {
    margin-top: 26px;
}

/* Product education remains comfortably scannable, without the oversized
   gaps that previously separated related decisions. */
body.public .cover-choice-intro {
    padding-block: clamp(34px, 4.5vw, 58px);
    gap: clamp(24px, 4vw, 56px);
}

body.public .cover-extras-band {
    margin-top: clamp(24px, 4vw, 56px);
}

body.public .cover-guidance-band {
    padding-bottom: clamp(42px, 5vw, 72px);
}

body.public .cover-next-step {
    margin-bottom: clamp(38px, 5vw, 72px);
    padding: clamp(26px, 4vw, 44px);
    gap: 24px;
}

/* The app shell uses the same tighter cadence between its primary blocks,
   while retaining its existing form controls and comfortable touch targets. */
body.app-area .app-main {
    gap: 16px;
    padding: 22px clamp(20px, 2.5vw, 28px) 32px;
}

body.portal.app-area .portal-overview-copy {
    min-height: 210px;
}

@media (max-width: 680px) {
    body.public .hero {
        min-height: 420px;
        padding-block: 48px 40px;
    }

    body.public .hero.slim {
        min-height: 290px;
        padding-block: 38px;
    }

    body.public .page-head {
        padding-block: 42px;
    }

    body.public .band {
        padding-block: 36px;
    }

    body.app-area .app-main {
        gap: 14px;
        padding: 18px 14px 28px;
    }
}

/* Keep responsive navigation outside Tailwind's component layer: unlayered
   legacy layout rules otherwise override the collapsed state and header grid. */
@media (max-width: 980px) {
    body.public .topbar,
    body.auth .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .topbar .nav-toggle:not([hidden]) {
        display: flex;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .topbar .nav {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        padding-top: 12px;
    }

    .navigation-enhanced .topbar .nav:not(.is-open) {
        display: none;
    }

    .topbar .nav a {
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    body.public .hero h1,
    body.public .page-head h1 {
        font-size: clamp(2.25rem, 10.5vw, 3.5rem);
        line-height: 1.06;
        overflow-wrap: normal;
    }

    body.public .section-title h2,
    body.public .split h2 {
        font-size: clamp(1.85rem, 8.5vw, 2.65rem);
        line-height: 1.1;
    }

    body.public .product-card {
        min-height: 0;
        padding: 22px;
    }

    body.public .process-card {
        min-height: 0;
        padding: 24px 0;
    }

    body.public footer,
    body.auth footer {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Client self-service: a quiet workspace with one task per step. */
body.public .self-service-application {
    grid-template-columns: minmax(200px, 25%) minmax(0, 1fr);
    width: min(1480px, calc(100% - 40px));
    gap: 0;
    background: #fff;
    color: #20252b;
    border-radius: 4px;
    overflow: clip;
}
body.public .self-service-application .cover-visual {
    top: 76px;
    height: calc(100svh - 100px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-image: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.12)), url("/assets/memorial-floral-hero.png");
}
body.public .self-service-application .cover-visual::after { display: none; }
body.public .self-service-application .cover-visual-content { align-content: start; padding: 24px; }
body.public .self-service-application .cover-workspace { padding: 32px clamp(20px, 3vw, 44px); overflow: visible; }
body.public .self-service-application .cover-workspace-head { align-items: center; padding: 0; }
body.public .self-service-application .cover-workspace-head h1 { color: #20252b; font-size: 2rem; margin-top: 8px; }
body.public .self-service-application .cover-workspace-head p { color: #59616b; font-size: 1rem; }
body.public .self-service-application .cover-workspace-head > a { white-space: nowrap; font-size: .9rem; color: #725518; }
body.public .self-service-application .cover-self-service { gap: 20px; }
body.public .self-service-application .cover-stepper { position: static; background: #fff; backdrop-filter: none; padding: 18px 0 8px; }
body.public .self-service-application .cover-stepper li { font-weight: 500; transform: none; }
body.public .self-service-application .cover-stepper li.active,
body.public .self-service-application .cover-stepper li.complete { color: #755719; }
body.public .self-service-application .step-bubble { height: 38px; width: 38px; box-shadow: none; }
body.public .self-service-application .cover-stepper li::after { top: 18px; height: 1px; }
body.public .self-service-application .cover-stepper li.active .step-bubble,
body.public .self-service-application .cover-stepper li.complete .step-bubble { background: #87651f; border-color: #87651f; color: #fff; animation: none; box-shadow: none; }
body.public .self-service-application .form-progress { display: none; }
html:has(.self-service-application),
body.public:has(.self-service-application) { overflow-x: clip; overflow-y: visible; }
body.public .self-service-application .journey-progress {
    display: grid;
    position: sticky;
    top: 76px;
    z-index: 30;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px 16px;
    margin: 12px 0 20px;
    background: #fff;
    border: 1px solid #e9dfc9;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
body.public .self-service-application .journey-progress-track { grid-column: 1 / -1; }
body.public .self-service-application .cover-step-card,
body.public .self-service-application :is(input, select, textarea) { scroll-margin-top: 170px; }
@media (max-width: 767px) {
    /* Keep text controls large enough to avoid mobile Safari focus zoom. */
    body.public :is(input, select, textarea) { font-size: 16px !important; min-width: 0; max-width: 100%; }
    body.public .self-service-application .journey-progress { grid-template-columns: 1fr; gap: 5px; top: 76px; }
    body.public .self-service-application .journey-progress > span:first-child { display: none; }
    body.public .self-service-application .cover-workspace,
    body.public .self-service-application .cover-self-service { min-width: 0; }
}
body.public .self-service-application .cover-step-card { border: 0; border-radius: 0; box-shadow: none; padding: 8px 0; background: #fff; }
body.public .self-service-application .cover-step-card > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.public .self-service-application .cover-step-intro h2 { font-size: 1.4rem; line-height: 1.3; }
body.public .self-service-application .cover-step-intro p,
body.public .self-service-application .capture-section-head p { color: #59616b; line-height: 1.6; }
body.public .self-service-application .capture-section-head .eyebrow { display: none; }
body.public .self-service-application .identity-capture,
body.public .self-service-application .address-capture { border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
body.public .self-service-application .address-capture { padding-top: 24px; border-top: 1px solid #e6e7e9; }
body.public .self-service-application input,
body.public .self-service-application select { border: 1px solid #cbd0d6; background: #fff; border-radius: 5px; font-weight: 400; min-height: 46px; }
body.public .self-service-application input[readonly] { background: #f4f5f6; }
body.public .self-service-application input:focus,
body.public .self-service-application select:focus { border-color: #87651f; outline: 2px solid #e9dfc9; }
body.public .self-service-application .button { background: #87651f; border: 1px solid #87651f; color: #fff; box-shadow: none; border-radius: 5px; font-weight: 600; transition: background-color 140ms ease; }
body.public .self-service-application .button.secondary { background: #fff; color: #343a42; border-color: #cbd0d6; }
body.public .self-service-application .button:hover { background: #6c5019; color: #fff; transform: none; }
body.public .self-service-application .step-actions { padding-top: 24px; margin-top: 20px; border-top: 1px solid #e6e7e9; display: flex; justify-content: space-between; }
body.public .self-service-application .cover-consent { background: transparent; border: 0; padding: 16px 0; font-weight: 400; }
body.public .self-service-application .cover-consent input { min-height: 20px; accent-color: #87651f; }
.self-service-plans { display: none; }
.self-service-ready .self-service-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.self-service-ready .plan-select-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.self-service-plan { padding: 22px; border: 1px solid #d5d9de; border-radius: 6px; display: flex; flex-direction: column; gap: 12px; }
.self-service-plan.selected { border-color: #87651f; background: #fcfaf5; }
.self-service-plan h3, .self-service-plan p, .self-service-plan dl { margin: 0; }
.self-service-plan h3 { font-size: 1.12rem; }
.self-service-plan p { color: #59616b; font-size: .92rem; }
.self-service-plan dl > div { display: flex; justify-content: space-between; gap: 12px; }
.self-service-plan dd { margin: 0; font-weight: 600; }
.self-service-plan .plan-price { font-size: 1.25rem; color: #20252b; }
.self-service-plan button { margin-top: auto; width: 100%; }
.self-service-plan.selected button { color: #fff; background: #87651f; border-color: #87651f; }
.application-extras { margin-top: 28px; padding-top: 24px; border-top: 1px solid #d5d9de; }
.application-extras-list { display: grid; gap: 10px; margin: 18px 0 12px; }
.application-extra { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid #d5d9de; border-radius: 8px; cursor: pointer; background: #fff; }
.application-extra:has(input:checked) { border-color: #87651f; background: #fcfaf5; }
.application-extra input { width: 20px; height: 20px; accent-color: #87651f; }
.application-extra span { display: grid; gap: 4px; }
.application-extra small { color: #59616b; font-size: .88rem; }
.application-extra em { color: #5d461c; font-size: .85rem; font-style: normal; font-weight: 700; text-align: right; }
@media (max-width: 640px) { .application-extra { grid-template-columns: auto 1fr; } .application-extra em { grid-column: 2; text-align: left; } }
.principal-member-line { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e6e7e9; }
.principal-member-line span { color: #59616b; }
.family-member { border: 0; border-bottom: 1px solid #e6e7e9; border-radius: 0; padding: 24px 0; margin-bottom: 20px; }
.family-member legend { font-weight: 600; color: #20252b; font-size: 1.05rem; }
body.public .self-service-application .application-review { border: 0; background: transparent; color: #20252b; padding: 0; }
body.public .self-service-application .application-review > div { border-top: 0; border-bottom: 1px solid #e6e7e9; padding: 14px 0; }
body.public .self-service-application .application-review dt { color: #59616b; }
body.public .self-service-application .application-review dd { color: #20252b; }
.auth-login-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 8px; background: #e9ece9; }
.auth-login-switch a { display: block; padding: 10px 12px; border-radius: 6px; color: #435047; font-size: .88rem; font-weight: 700; text-align: center; }
.auth-login-switch a[aria-current] { background: #fff; color: #173d2c; box-shadow: 0 1px 4px #0d1c1620; }
.portal-applicant-hero { display: block; }
.portal-applicant-hero .portal-overview-copy { width: 100%; }
.portal-application-list { display: grid; gap: 12px; }
.portal-application-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; border: 1px solid #dce5df; border-radius: 8px; background: #fff; }
.portal-application-card h3 { margin: 4px 0; color: #173d2c; }
.portal-application-card p { margin: 0; color: #59616b; }
.portal-application-card > div:last-child { display: grid; justify-items: end; gap: 10px; }
.portal-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.app-user img.app-avatar { object-fit: cover; }
.portal-avatar-placeholder { display: inline-grid; place-items: center; background: #dfeae2; color: #173d2c; font-weight: 700; }
.portal-profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.portal-photo-panel { display: grid; justify-items: start; gap: 14px; }
@media (max-width: 640px) { .portal-application-card { align-items: flex-start; flex-direction: column; } .portal-application-card > div:last-child { justify-items: start; } }
@media (max-width: 1000px) {
    body.public .self-service-application { grid-template-columns: 1fr; max-width: 920px; }
    body.public .self-service-application .cover-visual { display: none; }
}
@media (max-width: 600px) {
    body.public .self-service-application { width: 100%; margin-top: 0; }
    body.public .self-service-application .cover-workspace { padding: 24px 16px; }
    body.public .self-service-application .cover-workspace-head { display: block; }
    body.public .self-service-application .cover-workspace-head > a { display: inline-block; margin-top: 12px; }
    body.public .self-service-application .cover-stepper { overflow-x: auto; grid-template-columns: repeat(6, minmax(76px, 1fr)); }
    .self-service-ready .self-service-plans { grid-template-columns: 1fr; }
    .principal-member-line { flex-direction: column; gap: 4px; }
}
/* Shared working surfaces and progressive disclosure. */
body.admin .form.is-sequential { display: block; }
body.admin .form.is-sequential > .form-workspace { width: 100%; min-width: 0; }
body.admin .form.is-sequential .form-command-row:has(button[hidden]) { display: none; }
body.admin .form.is-sequential .stage-progress { margin: 0 0 18px; }
body.admin .form.is-sequential .step-actions { justify-content: flex-end; margin-top: 18px; }
body.app-area .workspace-inner .table-toolbar { display: flex; align-items: flex-end; gap: 12px; width: 100%; max-width: none; margin: 0; padding: 12px 16px; box-shadow: none; border: 0; }
body.app-area .workspace-inner .table-toolbar label { margin: 0; }
body.app-area .workspace-inner .table-toolbar label:first-child { flex: 1; }
body.app-area .workspace-inner .table-pagination { padding: 12px 16px; }
.app-frame .app-sidebar-foot { position: static; inset: auto; margin-top: 24px; flex-shrink: 0; }
.app-frame .app-sidebar { overflow-y: auto; grid-template-rows: auto minmax(min-content, 1fr) auto auto; }
.app-frame .app-nav { flex-shrink: 0; min-height: min-content; }
.plan-family-chooser { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px 22px; }
.plan-family-chooser .button { border-radius: 999px; }
.plan-family-chooser [aria-pressed=true] { background: #245d43; color: #fff; }
.self-service-plans > [hidden] { display: none !important; }
.app-main { min-width: 0; }
body.app-area .app-main { padding: 12px; }
.workspace-inner { width: 100%; max-width: none; margin-inline: 0; min-width: 0; }
.workspace-inner > * + * { margin-top: 24px; }
.workspace-inner > .filters { width: 100%; margin-inline: 0; padding: 14px 20px; box-shadow: none; }
.app-sidebar { overflow-y: auto; }
.app-sidebar-foot { position: static; margin-top: auto; }
.table-workspace { width: 100%; min-width: 0; background: #fff; border: 1px solid #dce5df; border-radius: 18px; overflow: hidden; }
.table-toolbar, .table-pagination { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; padding: 18px 22px; background: #f6f9f6; }
.table-toolbar label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.table-toolbar label:first-child { flex: 1; min-width: 180px; }
.table-toolbar input, .table-toolbar select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #cbd9cf; border-radius: 10px; background: white; }
.table-scroll { overflow-x: auto; min-width: 0; max-width: 100%; width: 100%; }
.table-scroll table { width: 100%; margin: 0; border: 0; }
.table-scroll th { white-space: nowrap; }
.table-scroll input[type=checkbox] { width: 18px; height: 18px; accent-color: #245d43; }
.table-scroll tr.is-selected { background: #eaf3ec; }
.table-pagination { align-items: center; font-size: 13px; }
.table-pagination span { flex: 1; }
.table-workspace [hidden], .app-main [hidden] { display: none !important; }
.workspace-disclosure, .review-checks { border: 1px solid #dce5df; background: #fff; border-radius: 18px; padding: 20px; margin-block: 20px; }
.workspace-disclosure > summary { cursor: pointer; font-weight: 650; padding: 4px; }
.workspace-disclosure[open] > summary { margin-bottom: 20px; }
.benefit-bubble { border: 1px solid #d6e5da; background: #f3f8f3; border-radius: 24px; width: 100%; overflow: hidden; transition: background .2s, border-color .2s; }
.benefit-bubble:hover, .benefit-bubble[open] { background: #e8f2e9; border-color: #8cad96; }
.benefit-bubble summary { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 14px 18px; list-style: none; }
.benefit-bubble summary::-webkit-details-marker { display: none; }
.benefit-bubble summary::after { content: '+'; margin-left: auto; font-size: 22px; }
.benefit-bubble[open] summary::after { content: '−'; }
.benefit-bubble svg { width: 24px; height: 24px; fill: none; stroke: #245d43; stroke-width: 1.6; flex-shrink: 0; }
.benefit-bubble > span { display: block; padding: 0 20px 20px 54px; }
.feature-list .benefit-bubble, .feature-list .benefit-bubble strong, .feature-list .benefit-bubble > span { color: #173d2c; }
.feature-list:has(.benefit-bubble) { display: grid; gap: 10px; padding: 0; }
.feature-list > li:has(.benefit-bubble) { display: block; padding: 0; border: 0; }
.feature-list > li:has(.benefit-bubble)::before { display: none; }
.review-checks h2 { margin-top: 0; }
.review-checks li { padding: 10px 0; border-bottom: 1px solid #e3eae5; }
.stage-progress { color: #245d43; font-weight: 650; }
.tracking-search { max-width: 860px; }
body.public .tracking-search { background: #fff; color: #182230; padding: 24px; border-radius: 6px; }
body.public .tracking-search .form { background: white; border: 0; box-shadow: none; padding: 0; }
body.public .tracking-search :is(label, p, summary) { color: #485566; }
body.public .tracking-search input { color: #182230; background: white; border: 1px solid #c5ced8; }
body.public .flash .flash-message { color: #243a30; }
.tracking-additional { margin-top: 32px; }
.tracking-additional > summary { display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; color: #647080; font-size: .9rem; }
.tracking-additional > summary::-webkit-details-marker { display: none; }
.tracking-additional > summary::before, .tracking-additional > summary::after { content: ''; height: 1px; background: #d5dbe2; flex: 1; }
.tracking-additional > summary span::after { content: ' +'; }
.tracking-additional[open] > summary span::after { content: ' −'; }
.tracking-additional > form { margin-top: 24px; }
.tracking-additional summary:focus-visible { outline: 2px solid #87651f; outline-offset: 6px; }
@media (max-width: 600px) { .tracking-additional .grid.two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .benefit-bubble[open] > span, .workspace-disclosure[open] > form { animation: workspace-reveal .2s ease-out; } @keyframes workspace-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } } }
@media (max-width: 640px) { .table-toolbar, .table-pagination { padding: 14px; gap: 10px; } .workspace-inner > .grid.two { grid-template-columns: 1fr; } }

/* Shared record controls: keep layout constraints at the component boundary. */
body.app-area .workspace-inner { min-width: 0; max-width: 100%; }
body.app-area .workspace-inner :is(.grid, .grid > *, .portal-section, .portal-calendar, .portal-calendar-shell, .portal-calendar-preview-section, .portal-ledger-section, .table-workspace, .calendar-section, .calendar-list, .calendar-entry-copy) { min-width: 0; max-width: 100%; }
body.app-area .workspace-inner .table-toolbar { align-items: flex-end; flex-wrap: wrap; }
body.app-area .workspace-inner .table-toolbar label { display: grid; gap: 6px; padding: 0; }
body.app-area .workspace-inner .table-toolbar .field-feedback:empty { display: none; }
body.app-area .workspace-inner .table-toolbar :is(input, select, button) { box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; }
body.app-area .workspace-inner .table-toolbar button { align-self: flex-end; }
body.app-area .workspace-inner .table-toolbar .table-reset { align-self: center; font-size: 13px; white-space: nowrap; }
.table-empty { padding: 24px; text-align: center; color: #46515d; }
body.app-area .table-scroll table { display: table; width: 100%; overflow: visible; }
body.app-area .table-scroll :is(th, td) { overflow-wrap: anywhere; }
body.app-area .table-scroll :is(input, select) { max-width: 100%; }
body.portal.app-area .portal-overview-copy { background-color: #101923; background-blend-mode: multiply; }
body.portal.app-area .portal-overview-copy :is(h2, p) { color: #fff; }
body.portal.app-area .portal-overview-copy .button:not(.secondary) { background: #fff; color: #17212e; border-color: #fff; }
@media (max-width: 800px) {
    body.portal.app-area .workspace-inner .grid.two { grid-template-columns: minmax(0, 1fr); }
    body.portal.app-area .portal-calendar-shell, body.portal.app-area .portal-ledger-section { width: 100%; }
    body.app-area .workspace-inner .table-toolbar label { flex: 1 1 160px; }
    body.app-area .workspace-inner .table-pagination { flex-wrap: wrap; }
    body.app-area .table-scroll table { min-width: 540px; }
    body.app-area .table-scroll table[data-table-mode="summary"] { min-width: 0; }
    body.portal.app-area .portal-calendar-menu { flex-wrap: wrap; }
    body.portal.app-area .portal-calendar-menu a { white-space: normal; }
}
/* Static product-only sheet used by the administrator enquiry preview. */
body.plan-preview-document { min-width: 0; background: #fff; color: #16211b; }
body.plan-preview-document main { width: 100%; }
.plan-preview-sheet { width: min(1120px, 100%); margin: 0 auto; padding: clamp(20px, 3vw, 42px); }
.plan-preview-sheet > header { padding-bottom: 24px; border-bottom: 1px solid #dce5df; }
.plan-preview-sheet h1 { margin: 12px 0 8px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.plan-preview-sheet h2 { margin-top: 8px; }
.plan-preview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 48px); padding: 28px 0; }
.plan-preview-grid .feature-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.plan-preview-grid .feature-list li { padding: 14px 16px; border: 1px solid #dce5df; border-left: 4px solid #c99a36; border-radius: 8px; background: #f8fbf8; color: #16211b; box-shadow: none; }
.plan-preview-grid .feature-list strong { color: #173d2c; }
.plan-preview-grid .feature-list span { display: block; margin-top: 4px; color: #405249; font-size: .92rem; line-height: 1.45; }
.plan-preview-grid .premium-options { width: 100%; margin-top: 16px; }
.plan-preview-information { padding-top: 24px; border-top: 1px solid #dce5df; line-height: 1.6; }
@media (max-width: 700px) { .plan-preview-grid { grid-template-columns: 1fr; } }
body.public .benefit-groups { display: grid; gap: 9px; margin-top: 16px; }
body.public .benefit-group { border: 1px solid #d6e5da; border-radius: 13px; background: #f8fbf8; overflow: hidden; }
body.public .benefit-group > summary { display: flex; align-items: center; gap: 12px; padding: 14px 17px; color: #173d2c; cursor: pointer; list-style: none; }
body.public .benefit-group > summary::-webkit-details-marker { display: none; }
body.public .benefit-group > summary strong { font-size: .95rem; }
body.public .benefit-group > summary span { margin-left: auto; color: #5c7464; font-size: .78rem; white-space: nowrap; }
body.public .benefit-group > summary::after { content: '+'; color: #245d43; font-size: 1.3rem; }
body.public .benefit-group[open] > summary::after { content: '−'; }
body.public .benefit-group .feature-list { display: grid; gap: 0; margin: 0; padding: 0 17px 12px; }
body.public .benefit-group .feature-list li { display: grid; gap: 3px; padding: 10px 0; border: 0; border-top: 1px solid #e3ebe4; border-radius: 0; background: transparent; color: #234234; }
body.public .benefit-group .feature-list li::before { display: none; }
body.public .benefit-group .feature-list li span { color: #587064; font-size: .86rem; line-height: 1.45; }
body.public .value-added-benefits { display: block; padding: clamp(24px, 3vw, 42px); background: #102119; color: #f7f2e7; }
body.public .value-added-heading { margin-bottom: 18px; }
body.public .value-added-heading h2 { margin: 4px 0 0; color: #fffaf0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; }
body.public .value-added-heading p { max-width: 52ch; margin: 6px 0 0; color: #d6d1c6; font-size: .9rem; line-height: 1.45; }
body.public .value-added-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin: 0; padding: 0; list-style: none; }
body.public .value-added-item { position: relative; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
body.public .value-added-ribbon { position: absolute; z-index: 1; top: 17px; right: -36px; display: grid; place-items: center; width: 132px; min-height: 27px; padding: 2px 0; transform: rotate(45deg); background: #2f663f; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; pointer-events: none; }
body.public .value-added-item img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
body.public .value-added-item > div { flex: 1; padding: 15px 4px 4px; border-top: 2px solid #c99a36; }
body.public .value-added-item h3 { margin: 0 0 5px; color: #f3d294; font-size: .85rem; font-weight: 800; letter-spacing: .04em; line-height: 1.25; text-transform: uppercase; }
body.public .value-added-item p { margin: 0; color: #d6d1c6; font-size: .82rem; line-height: 1.5; }
@media (max-width: 900px) { body.public .value-added-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.public .value-added-grid { grid-template-columns: 1fr; } body.public .value-added-item img { aspect-ratio: 16 / 10; } }

/* Customer product catalogue: supplier photography with restrained floral details. */
body.public .catalogue-hero { position: relative; isolation: isolate; min-height: min(540px, calc(100svh - 72px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 70px); padding: clamp(42px, 5vw, 72px) clamp(24px, 7vw, 110px); overflow: hidden; background: #f4f0e6; }
body.public .catalogue-hero::before { content: ""; position: absolute; inset: auto auto -145px -125px; z-index: -1; width: 380px; height: 380px; border: 1px solid #bb9a6666; border-radius: 50%; box-shadow: 0 0 0 48px #d3bd8c17, 0 0 0 100px #d3bd8c12; }
body.public .catalogue-hero-copy { position: relative; z-index: 1; max-width: 640px; }
body.public .catalogue-hero .eyebrow, body.public .catalogue-collection .eyebrow { color: #8a6b3b; }
body.public .catalogue-hero h1 { max-width: 14ch; margin: 12px 0 20px; color: #20362a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5vw, 5.3rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.02; }
body.public .catalogue-hero p { max-width: 47ch; margin: 0 0 30px; color: #4e5c4e; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
body.public .catalogue-hero .button.secondary { border-color: #a99977; color: #253e30; background: transparent; }
body.public .catalogue-hero .button.secondary:hover { background: #e5dccb; }
body.public .catalogue-hero-image { display: block; width: 100%; max-height: 485px; aspect-ratio: 1.25; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 26px 30px #26382a1a); }
body.public .catalogue-hero-flower { position: absolute; right: 3%; top: 3%; width: clamp(95px, 10vw, 155px); height: auto; border-radius: 50%; opacity: .42; mix-blend-mode: multiply; transform: rotate(15deg); pointer-events: none; }
body.public .catalogue-jump { display: flex; gap: 28px; align-items: center; padding: 17px clamp(24px, 7vw, 110px); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; border-bottom: 1px solid #d6d5ca; background: #fbf8f0; }
body.public .catalogue-jump a { flex: 0 0 auto; color: #344739; font-size: .77rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
body.public .catalogue-jump a:hover, body.public .catalogue-jump a:focus-visible { color: #a27630; }
body.public .catalogue-section-heading { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: end; gap: 25px; min-height: 158px; margin-bottom: 25px; padding: clamp(24px, 3vw, 42px); overflow: hidden; border-left: 3px solid #b99a61; background: linear-gradient(110deg, #e7ecdf 0%, #f1f0e5 62%, #e9e7d9 100%); }
body.public .catalogue-section:nth-of-type(even) .catalogue-section-heading { background: linear-gradient(110deg, #eee9dd 0%, #f6f0e7 62%, #e7e8d9 100%); }
body.public .catalogue-section-heading::after { content: ""; position: absolute; z-index: 0; right: clamp(35px, 9vw, 165px); top: -34px; width: 300px; height: 215px; background: url("/assets/egoli/purple-coffin-spray.jpg") center / contain no-repeat; opacity: .48; mix-blend-mode: multiply; transform: rotate(-12deg); pointer-events: none; }
body.public .catalogue-section-heading > div, body.public .catalogue-count { position: relative; z-index: 1; }
body.public #flowers .catalogue-section-heading::after { background-image: url("/assets/egoli/round-wreath.jpg"); right: 10%; width: 220px; opacity: .55; transform: rotate(12deg); }
body.public .catalogue-section-heading h2, body.public .catalogue-collection-intro h2, body.public .catalogue-close h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 3.7vw, 4.3rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; }
body.public .catalogue-section-heading p { max-width: 58ch; margin: 10px 0 0; font-size: .98rem; line-height: 1.6; }
body.public .catalogue-collection { position: relative; padding: 0 clamp(24px, 7vw, 110px) 48px; overflow: hidden; background: #faf8f2; color: #233a2e; }
body.public .catalogue-collection-intro { position: relative; max-width: 820px; padding: clamp(38px, 4vw, 62px) 0 28px; }
body.public .catalogue-collection-intro h2 { max-width: 15ch; margin-top: 10px; }
body.public .catalogue-collection-intro p { max-width: 62ch; margin: 16px 0 0; color: #617064; line-height: 1.6; }
body.public .catalogue-section { position: relative; padding: 42px 0 46px; border-top: 1px solid #d8dacd; scroll-margin-top: 90px; }
body.public .catalogue-section-heading h2 { color: #223b2d; }
body.public .catalogue-section-heading p { color: #617064; }
body.public .catalogue-count { flex: 0 0 auto; color: #887852; font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
body.public .catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
body.public .catalogue-item { min-width: 0; }
body.public .catalogue-item-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.32; padding: 12px; overflow: hidden; background: #f0eee7; }
body.public .catalogue-item-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
body.public .catalogue-item:hover img { transform: scale(1.055); }
body.public .catalogue-item-copy { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding-top: 13px; }
body.public .catalogue-item h3 { margin: 0; color: #263b2e; font-size: .94rem; font-weight: 750; line-height: 1.35; }
body.public .catalogue-item h3 a { color: inherit; white-space: normal; font-size: inherit; font-weight: inherit; }
body.public .catalogue-item a { flex: 0 0 auto; color: #8a692e; font-size: .78rem; font-weight: 800; white-space: nowrap; }
body.public #urns .catalogue-item-image { aspect-ratio: 1; }
body.public #flowers .catalogue-item-image { aspect-ratio: 1.2; }
body.public .catalogue-vehicle-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
body.public .catalogue-vehicle-layout img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
body.public .catalogue-vehicle-layout h3 { max-width: 15ch; margin: 12px 0; color: #223b2d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3.5rem); font-weight: 400; line-height: 1.1; }
body.public .catalogue-vehicle-layout p { max-width: 48ch; color: #5d6c60; line-height: 1.65; }
body.public .catalogue-close { padding: clamp(48px, 5vw, 72px) 24px; text-align: center; background: #e8e8db; color: #233a2e; }
body.public .catalogue-close h2 { margin: 8px 0 10px; }
body.public .catalogue-close p { margin: 0 auto 24px; color: #5a695d; }
@media (prefers-reduced-motion: no-preference) { body.public .catalogue-hero-copy { animation: catalogue-rise .7s both; } body.public .catalogue-hero-image { animation: catalogue-rise .85s .12s both; } @keyframes catalogue-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } } }
@media (max-width: 980px) { body.public .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { body.public .catalogue-hero { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding-top: 38px; } body.public .catalogue-hero h1 { font-size: clamp(2.8rem, 10vw, 4.2rem); } body.public .catalogue-hero-image { max-height: 250px; } body.public .catalogue-jump { gap: 20px; } body.public .catalogue-section-heading { align-items: start; flex-direction: column; gap: 12px; min-height: 0; padding: 25px 22px; } body.public .catalogue-section-heading::after { right: -45px; top: 0; width: 190px; height: 175px; opacity: .14; } body.public #flowers .catalogue-section-heading::after { right: -12px; width: 155px; } body.public .catalogue-section-heading > div { position: relative; z-index: 1; } body.public .catalogue-count { position: relative; z-index: 1; } body.public .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } body.public .catalogue-item-copy { display: block; } body.public .catalogue-item a { display: inline-block; margin-top: 5px; } body.public .catalogue-vehicle-layout { grid-template-columns: 1fr; } }
@media (max-width: 340px) { body.public .catalogue-grid { grid-template-columns: 1fr; } body.public .catalogue-item-image { aspect-ratio: 1.55; } }
@media (max-width: 700px) { body.public .catalogue-section-heading::after { opacity: .32; } body.public #flowers .catalogue-section-heading::after { opacity: .4; } }
body.public .catalogue-detail { position: relative; isolation: isolate; min-height: 70vh; padding: clamp(30px, 5vw, 68px) clamp(24px, 7vw, 110px) clamp(70px, 7vw, 110px); overflow: hidden; background: radial-gradient(circle at 96% 4%, #e1e7d9 0, transparent 28%), #faf8f2; color: #243b2d; }
body.public .catalogue-detail::before { content: ""; position: absolute; z-index: 0; top: 35px; right: -65px; width: 260px; height: 260px; background: url("/assets/egoli/purple-oval-spray.jpg") center / contain no-repeat; opacity: .25; mix-blend-mode: multiply; transform: rotate(20deg); pointer-events: none; }
body.public .catalogue-detail-layout, body.public .catalogue-back { position: relative; z-index: 1; }
body.public .catalogue-back { display: inline-block; margin-bottom: 28px; color: #846936; font-size: .86rem; font-weight: 800; }
body.public .catalogue-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: clamp(32px, 5vw, 85px); align-items: start; }
body.public .catalogue-detail-media { position: sticky; top: 95px; text-align: center; }
body.public .catalogue-detail-media > a { display: grid; place-items: center; min-height: 450px; padding: 24px; background: #eeece5; }
body.public .catalogue-detail-media img { display: block; width: 100%; max-height: 620px; object-fit: contain; mix-blend-mode: multiply; }
body.public .catalogue-detail--small-image .catalogue-detail-media img { width: min(100%, 360px); height: auto; max-height: 420px; }
body.public .catalogue-detail--small-image .catalogue-detail-media > a { width: min(100%, 560px); min-height: 440px; margin-inline: auto; border-left: 3px solid #b99a61; background: radial-gradient(circle at 50% 45%, #f7f4eb 0, #e7ebe1 100%); }
body.public .catalogue-detail-media span { display: block; margin-top: 10px; color: #758176; font-size: .78rem; }
body.public .catalogue-detail-copy h1 { margin: 10px 0 16px; color: #243b2d; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 4.7vw, 5.2rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
body.public .catalogue-detail-copy > p { color: #59685d; line-height: 1.6; }
body.public .catalogue-detail-copy .catalogue-detail-note { padding: 14px 0; border-top: 1px solid #dedfd2; border-bottom: 1px solid #dedfd2; font-size: .88rem; }
body.public .catalogue-enquiry-form { margin-top: 25px; padding: 25px; border: 1px solid #d9dbc9; background: #fffefa; }
body.public .catalogue-enquiry-form.form-intelligent { --form-label: #3e4a40; --form-helper: #68776b; --form-border: #cbd1c3; --form-control: #ffffff; color: #243b2d; }
body.public .catalogue-enquiry-form .form-completion { border-color: #dde3d7; background: #f3f6ef; }
body.public .catalogue-enquiry-form .form-completion-head { color: #57675b; }
body.public .catalogue-enquiry-form .form-completion-head strong { color: #263e30; }
body.public .catalogue-enquiry-form .form-completion-track { background: #d6e1d4; }
body.public .catalogue-enquiry-form h2 { margin: 0 0 20px; color: #263e30; font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 400; }
body.public .catalogue-enquiry-form label.check { display: flex; align-items: start; gap: 10px; color: #3e4a40; font-size: .85rem; line-height: 1.5; }
body.public .catalogue-enquiry-form label.check a { color: #76551f; }
body.public .catalogue-enquiry-form label.check input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin-top: 2px; accent-color: #2f6747; }
body.public .catalogue-confirmation { padding: 16px 18px; border-left: 3px solid #2e7451; background: #e7f0e7; color: #234a34; }
.enquiry-tabs { display: flex; gap: 8px; margin: 10px 0 24px; border-bottom: 1px solid #ccd4cc; }
.enquiry-tabs a { padding: 10px 16px; color: #4e6155; font-weight: 800; text-decoration: none; }
.enquiry-tabs a[aria-current="page"] { border-bottom: 3px solid #ba934a; color: #183d2b; }
.catalogue-admin-detail { display: grid; grid-template-columns: minmax(240px, .6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.catalogue-admin-detail > img { display: block; width: 100%; max-height: 420px; object-fit: contain; padding: 20px; background: #f0eee7; }
.catalogue-admin-detail .record-details { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 8px 15px; margin: 0 0 24px; }
.catalogue-admin-detail .record-details dt { font-weight: 800; }
.catalogue-admin-detail .record-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 850px) { body.public .catalogue-detail-layout { grid-template-columns: 1fr; } body.public .catalogue-detail-media { position: static; } body.public .catalogue-detail-media > a { min-height: 270px; } .catalogue-admin-detail { grid-template-columns: 1fr; } }
@media (max-width: 530px) { body.public .catalogue-enquiry-form { padding: 17px; } .catalogue-admin-detail .record-details { grid-template-columns: 1fr; } .enquiry-tabs a { padding: 9px 10px; font-size: .88rem; } }

/* News letter: a connected story told with type and dots, without imagery. */
body.public .news-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 570px; padding: clamp(55px, 6vw, 82px) clamp(24px, 8vw, 128px); overflow: hidden; background: #14271e; color: #fff9e9; }
body.public .news-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 16%, #d2a85224, transparent 27%), radial-gradient(circle at 76% 85%, #a9c0a519, transparent 32%); }
body.public .news-hero-copy { position: relative; z-index: 2; width: min(760px, 100%); animation: news-rise .7s both; }
body.public .news-kicker { display: inline-block; color: #cfa95f; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
body.public .news-hero h1 { max-width: 12ch; margin: 16px 0; color: #fff9e9; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6.2rem); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
body.public .news-hero p { max-width: 55ch; margin: 0 0 24px; color: #e5e4d7; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
body.public .news-text-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: inherit; font-size: .92rem; font-weight: 750; text-decoration: none; transition: gap .2s ease, color .2s ease; }
body.public .news-text-link:hover, body.public .news-text-link:focus-visible { gap: 19px; color: #cfa95f; text-decoration: none; }
body.public .news-bubbles { position: absolute; right: -1%; top: 9%; width: min(48vw, 680px); height: 82%; opacity: .92; }
body.public .news-bubbles::before { content: ""; position: absolute; left: 10%; top: 48%; width: 80%; height: 1px; transform: rotate(-28deg); transform-origin: left center; background: linear-gradient(90deg, #cfa95f00, #cfa95f99, #cfa95f00); }
body.public .news-bubbles span { position: absolute; display: block; width: var(--dot-size); height: var(--dot-size); border: 1px solid #dec89488; border-radius: 50%; background: #cfa95f2e; box-shadow: 0 0 0 18px #cfa95f0d, inset 0 0 30px #f5d99a33; animation: news-float 6s ease-in-out infinite alternate; }
body.public .news-bubbles span:nth-child(1) { --dot-size: 35px; left: 13%; top: 67%; }
body.public .news-bubbles span:nth-child(2) { --dot-size: 88px; left: 32%; top: 42%; animation-delay: -.7s; }
body.public .news-bubbles span:nth-child(3) { --dot-size: 22px; left: 58%; top: 51%; animation-delay: -1.4s; }
body.public .news-bubbles span:nth-child(4) { --dot-size: 132px; left: 70%; top: 15%; animation-delay: -2s; }
body.public .news-bubbles span:nth-child(5) { --dot-size: 14px; left: 88%; top: 67%; animation-delay: -2.7s; }
body.public :is(.news-intro, .news-journey, .news-latest, .news-close) { padding: clamp(46px, 5vw, 76px) clamp(24px, 8vw, 128px); }
body.public .news-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(30px, 8vw, 150px); align-items: start; background: #f7f3e9; }
body.public .news-intro .news-kicker { grid-column: 1 / -1; margin-bottom: 18px; color: #8c6c31; }
body.public .news-intro h2, body.public .news-journey h2, body.public .news-latest h2, body.public .news-close h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.7vw, 4.8rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
body.public .news-intro h2, body.public .news-journey h2, body.public .news-latest h2 { color: #20382b; }
body.public .news-intro p { max-width: 55ch; margin: 5px 0 0; color: #3e4a40; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.8; }
body.public .news-journey { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); background: #fdfbf5; }
body.public .news-journey-heading { align-self: start; position: sticky; top: 110px; }
body.public .news-journey-heading h2 { max-width: 11ch; margin: 20px 0; }
body.public .news-journey-heading p, body.public .news-latest-head p { color: #667269; line-height: 1.65; }
body.public .news-journey-list { position: relative; display: grid; gap: 0; margin: 0; padding: 4px 0 0 37px; list-style: none; }
body.public .news-journey-list::before { content: ""; position: absolute; top: 12px; bottom: 30px; left: 13px; width: 2px; background: linear-gradient(#b38a46, #aec0aa, #b38a46); }
body.public .news-journey-list li { position: relative; min-height: 145px; padding: 0 0 28px 34px; border-bottom: 1px solid #e4e1d6; }
body.public .news-journey-list li + li { padding-top: 26px; }
body.public .news-journey-list li:last-child { border-bottom: 0; padding-bottom: 0; }
body.public .news-journey-dot { position: absolute; left: -36px; top: 2px; z-index: 1; display: block; width: 25px; height: 25px; border: 5px solid #fdfbf5; border-radius: 50%; background: #b48e4d; box-shadow: 0 0 0 1px #b48e4d, 0 0 0 10px #b48e4d1a; transition: box-shadow .25s ease, transform .25s ease; }
body.public .news-journey-list li + li .news-journey-dot { top: 28px; }
body.public .news-journey-list li:hover .news-journey-dot { transform: scale(1.18); box-shadow: 0 0 0 1px #b48e4d, 0 0 0 17px #b48e4d20; }
body.public .news-step { color: #8a713f; font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
body.public .news-journey-list h3 { margin: 14px 0 9px; color: #20382b; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2.3vw, 2.6rem); font-weight: 400; }
body.public .news-journey-list p { max-width: 50ch; margin: 0; color: #566359; line-height: 1.7; }
body.public .news-latest { background: #f1f1e9; }
body.public .news-latest-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; padding-bottom: 28px; border-bottom: 1px solid #cbd4c9; }
body.public .news-latest-head h2 { margin-top: 13px; }
body.public .news-latest-head p { max-width: 28ch; margin: 0; }
body.public .news-story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 7vw, 110px); }
body.public .news-theme-reflection { --news-accent: #9c763a; }
body.public .news-theme-community { --news-accent: #2d6a53; }
body.public .news-theme-guidance { --news-accent: #536a84; }
body.public .news-story { position: relative; display: block; margin-top: 24px; padding: 29px 28px 27px; border: 1px solid #d8dacd; border-radius: 10px; background: #fffdf8; color: #1c392a; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
body.public .news-story:hover, body.public .news-story:focus-visible { border-color: var(--news-accent); box-shadow: 0 10px 26px #20382b14; transform: translateY(-3px); text-decoration: none; }
body.public .news-story:focus-visible { outline: 3px solid var(--news-accent); outline-offset: 3px; }
body.public .news-story::before { content: ""; position: absolute; top: -1px; left: 28px; width: 50px; height: 3px; background: var(--news-accent); }
body.public .news-story-arrow { position: absolute; top: 21px; right: 24px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #cdd5c8; border-radius: 50%; color: #28513c; font-size: 1.3rem; line-height: 1; transition: color .2s ease, background .2s ease, transform .2s ease; }
body.public .news-story:hover .news-story-arrow, body.public .news-story:focus-visible .news-story-arrow { transform: translate(2px, -2px); background: #28513c; color: #fff; }
body.public .news-story-meta { display: flex; gap: 15px; color: #7d6b4b; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.public .news-story-meta span { color: var(--news-accent, #9c763a); }
body.public .news-story-meta time { color: #79837a; }
body.public .news-story h3 { margin: 16px 0 10px; color: #1c392a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 2.4vw, 2.6rem); font-weight: 400; line-height: 1.16; }
body.public .news-story p { max-width: 54ch; margin: 0 0 21px; color: #566359; line-height: 1.65; }
body.public .news-story-action { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: #28513c; font-size: .88rem; font-weight: 800; }
body.public .news-story-action span { transition: transform .2s ease; }
body.public .news-story:hover .news-story-action span, body.public .news-story:focus-visible .news-story-action span { transform: translateX(4px); }
body.public .news-empty { grid-column: 1 / -1; padding: 35px 0; color: #566359; }
body.public .news-close { background: #203a2c; color: #fff9e9; }
body.public .news-close h2 { margin: 15px 0; color: inherit; }
body.public .news-close p { margin: 0 0 28px; color: #dae3d8; }
body.public .news-article { min-height: 70vh; padding: clamp(48px, 5vw, 76px) clamp(24px, 8vw, 128px); background: #fcfaf4; }
body.public .news-article > :is(header, .news-article-body, footer) { max-width: 820px; margin-inline: auto; }
body.public .news-back { display: inline-block; margin-bottom: 38px; color: #435b49; font-weight: 750; }
body.public .news-article h1 { margin: 22px 0; color: #193326; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }
body.public .news-article-lead { color: #536355; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; }
body.public .news-article-body { margin-top: 32px; padding-top: 26px; border-top: 1px solid #d9dbd1; color: #2b3c31; font-size: 1.11rem; line-height: 1.8; }
body.public .news-article footer { display: flex; align-items: center; gap: 32px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #d9dbd1; }
body.admin .news-editor-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .6fr); gap: 32px; margin: 28px 0 50px; }
body.admin .news-editor-layout > div > h2, body.admin .news-editor-existing h2 { margin: 0 0 7px; font-size: 1.45rem; }
body.admin .news-editor-layout > div > p { margin: 0 0 20px; color: #647269; }
body.admin .news-editor-layout aside { align-self: start; padding: 28px; border: 1px solid #d9dfd5; border-radius: 10px; background: #f6f6ef; }
body.admin .news-editor-layout aside h2 { margin: 10px 0 20px; }
body.admin .news-editor-layout aside dl { display: grid; gap: 18px; }
body.admin .news-editor-layout aside dt { color: #1f3d2e; font-weight: 800; }
body.admin .news-editor-layout aside dd { margin: 3px 0 0; color: #657268; font-size: .9rem; }
body.admin .news-editor-form { display: grid; gap: 16px; }
body.admin .news-editor-form input[type="file"] { max-width: 100%; }
body.admin .news-editor-existing { margin-bottom: 60px; }
body.admin .news-editor-item { border-top: 1px solid #d6dfd7; }
body.admin .news-editor-item:last-child { border-bottom: 1px solid #d6dfd7; }
body.admin .news-editor-item > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 8px; cursor: pointer; }
body.admin .news-editor-item > summary span:first-child { display: grid; gap: 4px; }
body.admin .news-editor-item small { color: #667269; }
body.admin .news-editor-item > .news-editor-form { max-width: 900px; padding: 10px 8px 30px; }
@keyframes news-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes news-float { from { transform: translateY(-10px); } to { transform: translateY(12px); } }
@media (max-width: 850px) {
  body.public .news-bubbles { right: -20%; width: 75vw; opacity: .35; }
  body.public .news-intro, body.public .news-journey { grid-template-columns: 1fr; }
  body.public .news-journey-heading { position: static; }
  body.admin .news-editor-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.public .news-hero { min-height: auto; }
  body.public .news-hero h1 { font-size: clamp(3.1rem, 13vw, 4.8rem); }
  body.public .news-bubbles { right: -65%; width: 110vw; }
  body.public .news-latest-head { display: block; }
  body.public .news-latest-head p { margin-top: 12px; }
  body.public .news-story-list { grid-template-columns: 1fr; }
  body.public .news-article footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  body.public .news-hero-copy, body.public .news-bubbles span { animation: none; }
  body.public .news-text-link, body.public .news-journey-dot, body.public .news-story, body.public .news-story-arrow, body.public .news-story-action span { transition: none; }
}

/* About Us: a quiet, readable story with the site's memorial flowers. */
body.public main.page-enter:has(> .about-hero) { background: #fffdf8; }
body.public .about-hero {
    min-height: min(650px, calc(100svh - 72px));
    display: flex;
    align-items: center;
    padding: clamp(72px, 9vw, 132px) clamp(24px, 7vw, 112px);
    background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .94) 33%, rgba(255, 253, 248, .67) 51%, rgba(255, 253, 248, .03) 74%), url('/assets/memorial-floral-hero.png') center right / cover;
}
body.public .about-hero-copy { max-width: 610px; }
body.public .about-kicker { display: block; color: #806324; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body.public .about-hero h1,
body.public .about-story h2,
body.public .about-help h2,
body.public .about-promise h2,
body.public .about-close h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.045em; }
body.public .about-hero h1 { margin: 18px 0 22px; color: #173528; font-size: clamp(3.7rem, 7.2vw, 7.4rem); line-height: .98; }
body.public .about-hero p { max-width: 530px; margin: 0; color: #314139; font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.65; }
body.public .about-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 34px; padding-bottom: 7px; border-bottom: 1px solid #ac8b49; color: #173528; font-weight: 800; transition: gap .2s ease, border-color .2s ease; }
body.public .about-link:hover { gap: 28px; border-color: #173528; text-decoration: none; }
body.public .about-story { display: grid; grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); max-width: 1290px; margin: 0 auto; padding: clamp(68px, 8vw, 112px) clamp(24px, 6vw, 88px); background: #fffdf8; }
body.public .about-story-label { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
body.public .about-flower { color: #b49b68; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; opacity: .65; }
body.public .about-story h2 { max-width: 740px; margin: 0 0 26px; color: #19382a; font-size: clamp(2.5rem, 4.6vw, 4.8rem); line-height: 1.12; }
body.public .about-story p { max-width: 680px; margin: 0 0 16px; color: #3b4b40; font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.75; }
body.public .about-story p:last-child { margin-bottom: 0; }
body.public .about-help { background: #f3f1e9; padding: clamp(68px, 8vw, 104px) clamp(24px, 7vw, 112px); }
body.public .about-help-heading { max-width: 1100px; margin: 0 auto 34px; }
body.public .about-help h2 { max-width: 680px; margin: 15px 0 0; color: #19382a; font-size: clamp(2.4rem, 4.3vw, 4.4rem); line-height: 1.13; }
body.public .about-help-list { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; border-top: 1px solid #c9cbbb; }
body.public .about-help-list li { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 22px; padding: 22px 4px 24px; border-bottom: 1px solid #c9cbbb; transition: padding-left .2s ease, background-color .2s ease; }
body.public .about-help-list li:hover { padding-left: 16px; background: rgba(255,255,255,.3); }
body.public .about-help-number { color: #96763b; font-size: .9rem; font-weight: 800; letter-spacing: .08em; }
body.public .about-help h3 { margin: 0 0 6px; color: #19382a; font-size: clamp(1.35rem, 2vw, 1.8rem); }
body.public .about-help-list p { margin: 0; color: #4a5b4f; font-size: 1.06rem; line-height: 1.6; }
body.public .about-promise { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 68px 24px; text-align: center; background: #173528; color: #fffaf0; }
body.public .about-promise .about-kicker { color: #d7bd83; }
body.public .about-promise h2 { max-width: 760px; margin: 20px 0; font-size: clamp(2.5rem, 4.9vw, 5rem); line-height: 1.13; }
body.public .about-promise p { max-width: 560px; margin: 0; color: #e4e9de; font-size: 1.18rem; }
body.public .about-close { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 1280px; margin: 0 auto; padding: clamp(68px, 7vw, 96px) clamp(24px, 6vw, 88px); background: #fffdf8; }
body.public .about-close h2 { margin: 14px 0; color: #19382a; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: 1.05; }
body.public .about-close p { max-width: 510px; margin: 0; color: #4a5b4f; font-size: 1.1rem; line-height: 1.7; }
body.public .about-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
body.public .about-actions .button { min-height: 52px; }
body.public .about-actions .button.secondary { border-color: #52705d; color: #173528; }
body.public .about-actions .button.secondary:hover,
body.public .about-actions .button.secondary:focus { border-color: #173528; background: #e9efe8; color: #173528; }
@media (prefers-reduced-motion: no-preference) {
    body.public .about-hero-copy > * { animation: about-arrive .65s ease-out both; }
    body.public .about-hero-copy > :nth-child(2) { animation-delay: .1s; }
    body.public .about-hero-copy > :nth-child(3) { animation-delay: .2s; }
    body.public .about-hero-copy > :nth-child(4) { animation-delay: .3s; }
}
@keyframes about-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) {
    body.public .about-hero { min-height: 570px; align-items: flex-start; padding: 60px 24px 270px; background: linear-gradient(180deg, rgba(255,253,248,.99) 0%, rgba(255,253,248,.97) 43%, rgba(255,253,248,.2) 78%), url('/assets/memorial-floral-hero.png') 70% bottom / cover; }
    body.public .about-hero h1 { font-size: clamp(3.55rem, 12vw, 5.5rem); }
    body.public .about-story { grid-template-columns: 1fr; gap: 24px; }
    body.public .about-flower { display: none; }
    body.public .about-close { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
    body.public .about-hero { min-height: 650px; padding: 50px 22px 250px; }
    body.public .about-hero p { font-size: 1.08rem; line-height: 1.55; }
    body.public .about-story { padding-block: 62px 68px; gap: 18px; }
    body.public .about-story h2 { margin-bottom: 22px; }
    body.public .about-help { padding-block: 64px 68px; }
    body.public .about-help-heading { margin-bottom: 28px; }
    body.public .about-help-list li { grid-template-columns: 46px 1fr; gap: 12px; }
    body.public .about-promise { min-height: 330px; padding-block: 60px; }
    body.public .about-close { gap: 28px; padding-block: 64px 70px; }
    body.public .about-actions { width: 100%; }
    body.public .about-actions .button { width: 100%; }
}

body.public .contact-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(30px, 5vw, 78px);
    padding-block: clamp(48px, 6vw, 76px);
}
body.public .contact-directory { min-width: 0; }
body.public .contact-directory h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 2.7vw, 2.7rem); line-height: 1.12; }
body.public .contact-directory > p { max-width: 570px; margin: 0 0 28px; color: #dce5dd; }
body.public .contact-methods { display: grid; border-top: 1px solid rgba(239, 230, 205, .3); }
body.public .contact-methods a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 18px;
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(239, 230, 205, .3);
    color: #fffaf0;
    text-decoration: none;
}
body.public .contact-methods a:hover,
body.public .contact-methods a:focus-visible { color: #f1d298; }
body.public .contact-methods span { font-size: 0.85rem; font-weight: 750; }
body.public .contact-methods strong { font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
body.public .contact-social-heading { margin-top: 34px; }
body.public .contact-social-heading h3 { margin: 0 0 15px; color: #fffaf0; font-size: 1.25rem; }
body.public .contact-social-links { display: grid; border-top: 1px solid rgba(239, 230, 205, .3); }
body.public .contact-social-links a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(239, 230, 205, .3);
    color: #fffaf0;
    text-decoration: none;
}
body.public .contact-social-links a:hover,
body.public .contact-social-links a:focus-visible { color: #f1d298; }
body.public .contact-social-links img { width: 32px; height: 32px; object-fit: contain; }
body.public .contact-social-links a > span:nth-child(2) { display: grid; min-width: 0; }
body.public .contact-social-links strong { font-size: 0.9rem; }
body.public .contact-social-links small { color: #dce5dd; font-size: 0.84rem; overflow-wrap: anywhere; }
body.public .contact-social-arrow { justify-self: end; font-size: 1.2rem; }
body.public .contact-layout > .form { min-width: 0; }
body.public .footer-social { display: flex; align-items: center; gap: 9px; }
body.public .footer-social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
}
body.public .footer-social a:hover,
body.public .footer-social a:focus-visible { outline: 2px solid #d7ba7c; outline-offset: 3px; }
body.public .footer-social img { width: 24px; height: 24px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
    body.public .contact-social-arrow { transition: transform 160ms ease; }
    body.public .contact-social-links a:hover .contact-social-arrow { transform: translate(2px, -2px); }
    body.public .footer-social a { transition: transform 160ms ease; }
    body.public .footer-social a:hover { transform: translateY(-2px); }
}
@media (max-width: 820px) {
    body.public .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
