 
:root { 
    --primary-color: #197363; 
    --green-dark:    #125349; 
    --green-light:   #e7f2ef; 
    --green-pale:    #f5faf8; 
    --muted:         #6b7a75; 
    --text-dark:     #24312c; 
    --white:         #ffffff; 
    --danger:        #b03a3a; 
    --danger-light:  #f6e2e2; 
    --shadow:        0 4px 18px rgba(18, 83, 73, 0.10); 
    --radius:        10px; 
} 
 
* { box-sizing: border-box; } 
 
body { 
    margin: 0; 
    font-family: 'Work Sans', -apple-system, sans-serif; 
    background: var(--green-pale); 
    color: var(--text-dark); 
    line-height: 1.6; 
} 
 
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; } 
 
a { color: var(--primary-color); text-decoration: none; } 
a:hover { text-decoration: underline; } 
 
img { max-width: 100%; display: block; } 
 
.page-bg-leaves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.5; } 
 
/* ---------- Nav ---------- */ 
.site-nav { background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--primary-color); position: sticky; top: 0; z-index: 50; } 
.site-nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; } 
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; } 
.brand-mark { width: 40px; height: 40px; object-fit: contain; } 
.brand-text .bn { font-weight: bold; color: var(--green-dark); font-size: 1.05rem; } 
.brand-text .bt { font-size: 0.75rem; color: var(--muted); } 
.nav-links a { padding: 8px 16px; border-radius: 30px; color: var(--green-dark); font-weight: bold; font-size: 0.9rem; } 
.nav-links a:hover, .nav-links a.active { background: var(--primary-color); color: var(--white); text-decoration: none; } 
 
/* ---------- Home header ---------- */ 
.home-header { position: relative; text-align: center; padding: 50px 20px 40px; overflow: hidden; } 
.home-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; } 
.home-header-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; } 
.brand-mark-lg { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; } 
.home-header h1 { margin: 0 0 10px; color: var(--green-dark); font-size: 2.1rem; } 
.sub-wrap p { margin: 4px 0; color: var(--muted); } 
.sub-emphasis { color: var(--green-dark); font-weight: 600; } 
.search-box { margin-top: 20px; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #d7e6e1; border-radius: 30px; padding: 10px 18px; box-shadow: var(--shadow); } 
.search-box .i { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex-shrink: 0; } 
.search-box input { border: none; outline: none; flex: 1; font-size: 0.95rem; background: transparent; } 
 
/* ---------- Memorial grid ---------- */ 
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 10px 20px 60px; } 
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; } 
.section-title h2 { margin: 0; color: var(--green-dark); } 
.section-title .count { color: var(--muted); font-size: 0.85rem; } 
.memorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; } 
.mem-card, .mem-card-wrap { background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: block; } 
.mem-card-wrap .mem-card { box-shadow: none; } 
.mem-card:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(18,83,73,0.16); } 
.mem-card.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px 10px; border: 2px dashed #b9d6cd; background: var(--green-light); cursor: pointer; font: inherit; width: 100%; } 
.plus-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); } 
.mem-card .lbl { font-weight: bold; color: var(--green-dark); } 
.photo-wrap { aspect-ratio: 1; background: var(--green-light); } 
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; } 
.ph-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #9fc2b7; } 
.ph-empty .i { width: 40%; height: 40%; } 
.mem-card .body { padding: 12px 14px; } 
.mname { font-weight: bold; color: var(--green-dark); } 
.mdates { font-size: 0.8rem; color: var(--muted); margin-top: 2px; } 
.mem-card-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(176,58,58,0.92); color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; } 
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); } 
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--primary-color); } 
 
/* ---------- Footer ---------- */ 
.site-footer { text-align: center; padding: 34px 20px; color: var(--muted); } 
.site-footer .fline { font-family: 'Fraunces', serif; font-style: italic; color: var(--green-dark); font-size: 1.05rem; margin-bottom: 6px; } 
.site-footer .fsmall { font-size: 0.8rem; } 
.admin-footer-link { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 0.72rem; text-decoration: none; opacity: 0.8; }
.admin-footer-link:hover { color: var(--green-dark); opacity: 1; text-decoration: underline; }
 
/* ---------- Modal ---------- */ 
.modal-overlay { position: fixed; inset: 0; background: rgba(18,83,73,0.35); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; } 
.modal-overlay.open { display: flex; } 
.modal-box { background: var(--white); border-radius: var(--radius); padding: 26px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); } 
.modal-box h3 { margin: 0 0 6px; color: var(--green-dark); } 
.modal-box .hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 16px; } 
.field { margin-bottom: 14px; } 
.field label { display: block; font-weight: bold; font-size: 0.85rem; color: var(--green-dark); margin-bottom: 6px; } 
.editbox { width: 100%; padding: 10px 12px; border: 1px solid #cfe0da; border-radius: 6px; font: inherit; background: var(--green-pale); } 
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; } 
.btn-primary, .btn-ghost, .side-btn { display: inline-block; padding: 10px 20px; border-radius: 30px; font-weight: bold; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none; } 
.btn-primary, .side-btn { background: var(--primary-color); color: var(--white); } 
.btn-primary:hover, .side-btn:hover { background: var(--green-dark); text-decoration: none; } 
.btn-ghost { background: transparent; color: var(--muted); } 
 
/* ---------- Toast ---------- */ 
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--green-dark); color: #fff; padding: 10px 22px; border-radius: 30px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 500; } 
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } 
 
/* ---------- Memorial detail page ---------- */ 
.back-bar { max-width: 1100px; margin: 14px auto 0; padding: 0 20px; } 
.back-bar a { color: var(--muted); font-size: 0.85rem; } 
.profile-header { position: relative; text-align: center; padding: 30px 20px 20px; overflow: hidden; } 
.profile-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; } 
.profile-photo { position: relative; z-index: 1; width: 130px; height: 130px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-light); border: 4px solid var(--white); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; } 
.profile-photo img { width: 100%; height: 100%; object-fit: cover; } 
.ph-empty { font-size: 0.75rem; color: #9fc2b7; text-align: center; padding: 10px; } 
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--green-dark); color: #fff; font-family: 'Fraunces', serif; font-size: 3.4rem; } 
.creator-access-box label { display: block; margin-bottom: 6px; color: var(--green-dark); font-weight: 600; font-size: 0.85rem; } 
.creator-access-error { min-height: 20px; margin-top: 6px; color: #b03a3a; font-size: 0.8rem; } 
.invite-box { max-width: 520px; }
.invite-message { min-height: 130px; resize: vertical; line-height: 1.5; }
.invite-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.invite-share-actions button { border: 1px solid #cfe0da; border-radius: 20px; padding: 8px 12px; background: var(--white); color: var(--green-dark); cursor: pointer; font: inherit; font-size: 0.8rem; }
.invite-share-actions button:hover { background: var(--green-light); }
.ph-remove { position: absolute; bottom: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(176,58,58,0.92); color: #fff; border: none; cursor: pointer; } 
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); } 
.eyebrow { position: relative; z-index: 1; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; } 
.profile-fields { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; } 
.name-box { text-align: center; font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; border: none; background: transparent; color: var(--green-dark); margin-bottom: 4px; } 
.dates-box { text-align: center; border: none; background: transparent; color: var(--muted); margin-bottom: 10px; } 
.quote-box { text-align: center; border: none; background: transparent; font-style: italic; color: var(--muted); resize: none; width: 100%; } 
.edit-hint { position: relative; z-index: 1; font-size: 0.72rem; color: #9fb3ac; margin-top: 8px; text-align: center; } 
 
.action-row { max-width: 1000px; margin: 10px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } 
.action-btn { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 30px; border: 1px solid #cfe0da; background: var(--white); color: var(--green-dark); font-size: 0.85rem; font-weight: 600; cursor: pointer; } 
.action-btn:hover { background: var(--green-light); } 
.action-btn .i { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; } 
.action-btn.candle .flame-fill { fill: #e8a33d; } 
.action-btn.candle rect { fill: currentColor; } 
.candle-count { background: var(--green-light); border-radius: 10px; padding: 1px 8px; font-size: 0.78rem; } 
.share-menu { position: fixed; right: 24px; bottom: 76px; z-index: 180; display: none; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 250px; padding: 12px; background: var(--white); border: 1px solid #cfe0da; border-radius: 12px; box-shadow: var(--shadow); }
.share-menu.open { display: flex; }
.share-menu button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfe0da; border-radius: 20px; padding: 7px 10px; background: var(--white); color: var(--green-dark); cursor: pointer; font: inherit; font-size: 0.78rem; }
.share-menu button:hover { background: var(--green-light); }
.share-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); color: var(--white); font-weight: 700; font-size: 0.75rem; }

/* =========================================================
   INVITE PEOPLE — SMALL TRANSPARENT ICON
   ========================================================= */

.invite-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.invite-action .btn-primary {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;

    color: var(--green-dark) !important;

    border: 1px solid #cfe0da !important;

    font-size: 0 !important;

    box-shadow: none !important;
}

.invite-action .btn-primary:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.invite-action .btn-primary .i {
    width: 15px !important;
    height: 15px !important;

    display: block !important;
}


/* Remove the old full-width Invite People rule */
.invite-action .btn-primary {
    text-align: center;
}

.tabs { max-width: 1000px; margin: 22px auto 0; padding: 0 20px; display: flex; gap: 6px; border-bottom: 2px solid var(--green-light); } 
.tab-btn { background: none; border: none; padding: 10px 18px; font-weight: bold; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 0.95rem; } 
.tab-btn.active { color: var(--green-dark); border-bottom-color: var(--primary-color); } 
 
.content-grid { max-width: 1000px; margin: 20px auto 60px; padding: 0 20px; display: grid; grid-template-columns: 1fr 300px; gap: 20px; } 
.panel { display: none; } 
.panel.active { display: block; } 
.card { background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; border-top: 3px solid var(--primary-color); } 
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } 
.card-head h2 { margin: 0; font-size: 1.1rem; color: var(--green-dark); display: flex; align-items: center; gap: 8px; } 
.card-head .i { width: 18px; height: 18px; stroke: var(--primary-color); fill: none; stroke-width: 2; } 
.card-head .link { font-size: 0.8rem; } 
.bio-box { width: 100%; min-height: 90px; border: 1px solid #e2ede9; border-radius: 6px; padding: 10px; font: inherit; resize: vertical; background: var(--green-pale); } 
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; } 
.fact-card { background: var(--green-pale); border-radius: 8px; padding: 10px; display: flex; gap: 8px; align-items: flex-start; } 
.fact-card .i { width: 16px; height: 16px; stroke: var(--primary-color); fill: none; stroke-width: 2; margin-top: 3px; flex-shrink: 0; } 
.flabel { font-size: 0.7rem; color: var(--muted); margin-bottom: 2px; } 
.fact-card input { border: none; background: transparent; font: inherit; width: 100%; color: var(--text-dark); } 
 
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } 
.gp-item { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--green-light); } 
.gp-item img { width: 100%; height: 100%; object-fit: cover; } 
.gp-more { position: absolute; inset: 0; background: rgba(18,83,73,0.7); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; } 
.gp-more span { font-size: 0.65rem; font-weight: normal; } 
.gp-empty { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px; } 
 
.quick-form input, .quick-form textarea { margin-bottom: 10px; } 
.quick-form textarea { min-height: 70px; } 
.row { text-align: right; } 
.mini-note { border-bottom: 1px solid var(--green-light); padding: 10px 0; } 
.mini-note:last-child { border-bottom: none; } 
.mini-note .who { font-weight: bold; color: var(--green-dark); font-size: 0.88rem; } 
.mini-note .msg { font-size: 0.88rem; margin: 3px 0; } 
.mini-note .meta { display: flex; gap: 10px; align-items: center; font-size: 0.75rem; color: var(--muted); } 
.like-btn { display: flex; align-items: center; gap: 4px; background: none; border: 1px solid #d7e6e1; border-radius: 14px; padding: 2px 9px; font-size: 0.75rem; cursor: pointer; color: var(--muted); } 
.like-btn .i { stroke: currentColor; fill: none; stroke-width: 2; } 
.like-btn.liked { color: var(--danger); border-color: var(--danger); } 
.empty-note { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 16px 0; } 
 
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } 
.add-frame { aspect-ratio: 1; border: 2px dashed #b9d6cd; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--green-dark); cursor: pointer; background: var(--green-light); } 
.frame { position: relative; border-radius: 8px; overflow: hidden; background: var(--green-light); aspect-ratio: 1; } 
.frame img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; } 
.frame .caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(18,83,73,0.75); color: #fff; font-size: 0.72rem; padding: 4px 6px; } 
.frame .remove { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(176,58,58,0.9); color: #fff; cursor: pointer; } 
 
.tribute-form .field textarea { min-height: 90px; } 
.photo-attach { display: flex; align-items: center; gap: 10px; margin: 10px 0; } 
.photo-attach button { background: var(--green-light); border: none; border-radius: 20px; padding: 6px 14px; font-size: 0.8rem; cursor: pointer; color: var(--green-dark); } 
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; } 
.clear-photo { color: var(--danger); background: none !important; } 
.wall { margin-top: 10px; } 
.note { position: relative; border-bottom: 1px solid var(--green-light); padding: 14px 0; } 
.note:last-child { border-bottom: none; } 
.note .msg { margin: 4px 0; } 
.note .attached { max-width: 220px; border-radius: 8px; margin: 8px 0; } 
.note .by { font-size: 0.78rem; color: var(--muted); } 
.note .by .n { font-weight: bold; color: var(--green-dark); } 
.note .remove { position: absolute; top: 10px; right: 0; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(176,58,58,0.9); color: #fff; cursor: pointer; } 
 
.sidebar .side-quote { text-align: center; font-style: italic; color: var(--muted); padding: 10px 6px 20px; font-size: 0.9rem; } 
.side-card { background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; border: 1px solid transparent; } 
.side-card h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--green-dark); display: flex; align-items: center; gap: 6px; } 
.side-card h3 .i { width: 15px; height: 15px; stroke: var(--primary-color); fill: none; stroke-width: 2; } 
.side-card p { font-size: 0.82rem; color: var(--muted); margin: 4px 0 10px; } 
.share-row { display: flex; gap: 8px; margin: 8px 0; } 
.share-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green-light); color: var(--green-dark); border: none; cursor: pointer; } 
.share-ic .i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; } 
.link-box { background: var(--green-pale); border-radius: 6px; padding: 8px 10px; font-size: 0.75rem; color: var(--muted); word-break: break-all; } 
 
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 300; padding: 20px; } 
.lightbox.open { display: flex; } 
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 6px; } 
 
.update-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--green-light); } 
.update-item:last-child { border-bottom: none; } 
.update-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-color); margin-top: 6px; flex-shrink: 0; } 
.utext { font-size: 0.82rem; } 
.uwhen { font-size: 0.72rem; color: var(--muted); } 
 
/* ---------- Admin ---------- */ 
.admin-login-wrap { max-width: 380px; margin: 80px auto; padding: 0 20px; } 
.admin-login-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; text-align: center; } 
.admin-login-box h1 { font-size: 1.3rem; color: var(--green-dark); margin-top: 0; } 
.admin-error { background: var(--danger-light); color: var(--danger); padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 14px; } 
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 30px 20px 60px; } 
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } 
.admin-header h1 { margin: 0; color: var(--green-dark); font-size: 1.5rem; } 
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; } 
.admin-tab-btn { background: var(--white); border: 1px solid #d7e6e1; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; color: var(--green-dark); cursor: pointer; } 
.admin-tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); } 
.admin-panel { display: none; } 
.admin-panel.active { display: block; } 
.admin-section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; } 
.admin-section h2 { margin-top: 0; font-size: 1.05rem; color: var(--green-dark); } 
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; } 
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--green-light); vertical-align: top; } 
.admin-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; } 
.bulk-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; }
.bulk-toolbar button { padding: 7px 12px; border: 0; border-radius: 18px; cursor: pointer; }
.bulk-toolbar .danger { background: #b03a3a; color: #fff; }
.admin-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--green-light); } 
.btn-danger { background: var(--danger); color: #fff; border: none; border-radius: 20px; padding: 6px 14px; font-size: 0.78rem; cursor: pointer; } 
.btn-small { border: 1px solid #cfe0da; background: var(--white); color: var(--green-dark); border-radius: 20px; padding: 6px 14px; font-size: 0.78rem; cursor: pointer; } 
.admin-form-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; } 
.admin-form-row .field { flex: 1; min-width: 200px; margin-bottom: 0; } 
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--green-light); font-size: 0.88rem; } 
.toggle-row:last-child { border-bottom: none; } 
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; } 
.bg-item { border-radius: 8px; overflow: hidden; border: 2px solid transparent; position: relative; } 

/* ---------- Admin sidebar ---------- */
.admin-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-sidebar { position: sticky; top: 82px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.admin-sidebar-title { padding: 8px 10px 6px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-sidebar-title-spaced { margin-top: 12px; }
.admin-side-btn { display: block; width: 100%; border: 0; border-radius: 7px; background: transparent; color: var(--green-dark); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; padding: 10px; text-align: left; }
.admin-side-btn:hover { background: var(--green-pale); }
.admin-side-btn.active { background: var(--primary-color); color: var(--white); }
.admin-main { min-width: 0; }

@media (max-width: 760px) {
    .admin-wrap { padding: 20px 12px 44px; }
    .admin-workspace { display: block; }
    .admin-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
    .admin-sidebar-title { grid-column: 1 / -1; padding: 6px 8px 2px; }
    .admin-sidebar-title-spaced { margin-top: 6px; }
    .admin-side-btn { padding: 9px 8px; }
    .admin-section { padding: 16px; overflow-x: auto; }
    .admin-table { min-width: 680px; }
}
.bg-item.active-bg { border-color: var(--primary-color); } 
.bg-item img { width: 100%; height: 90px; object-fit: cover; } 
.bg-item .bg-actions { display: flex; gap: 4px; padding: 6px; background: var(--green-pale); } 
.color-swatch { width: 34px; height: 34px; border-radius: 6px; border: 1px solid #d7e6e1; } 
 
/* ---------- Responsive ---------- */ 
@media (max-width: 820px) { 
    .content-grid { grid-template-columns: 1fr; } 
    .facts-row { grid-template-columns: 1fr; } 
} 

@media (max-width: 600px) { 
    .action-row { 
        flex-direction: row; 
        align-items: center; 
        justify-content: center;
    }

    .gallery-preview { 
        grid-template-columns: repeat(2, 1fr); 
    }

    /* Keep Invite People small on mobile too */
    .invite-action .btn-primary {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
    }

    .invite-action .btn-primary .i {
        width: 14px !important;
        height: 14px !important;
    }
}
/* ============================================================
   ADDITIONS — accounts, calendar, comments, admin extras
   (appended; nothing above this line was changed)
   ============================================================ */

/* ---------- Nav: login / signup / account ---------- */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-cta { background: var(--primary-color); color: #fff !important; padding: 7px 16px; border-radius: 20px; font-weight: 600; }
.nav-cta:hover { background: var(--green-dark); text-decoration: none; }
.nav-account { position: relative; }
.nav-account-btn { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid #d7e6e1; border-radius: 22px; padding: 5px 12px 5px 5px; cursor: pointer; font: inherit; color: var(--green-dark); }
.nav-account-btn:hover { border-color: var(--primary-color); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.nav-account-name { font-size: 0.85rem; font-weight: 600; }
.nav-account-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid #d7e6e1; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 210px; z-index: 300; overflow: hidden; }
.nav-account-menu.open { display: block; }
.nav-account-head { padding: 12px 14px; border-bottom: 1px solid var(--green-light); background: var(--green-pale); }
.nav-account-user { font-weight: 700; font-size: 0.85rem; color: var(--green-dark); }
.nav-account-email { font-size: 0.75rem; color: var(--muted); word-break: break-all; }
.nav-account-menu a, .nav-account-menu button { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: none; font: inherit; font-size: 0.85rem; color: var(--text-dark); cursor: pointer; }
.nav-account-menu a:hover, .nav-account-menu button:hover { background: var(--green-light); text-decoration: none; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 430px; margin: 60px auto; padding: 0 20px; }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; border-top: 3px solid var(--primary-color); }
.auth-card h1 { margin: 0 0 6px; font-size: 1.5rem; color: var(--green-dark); }
.auth-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-error { display: none; background: var(--danger-light); color: var(--danger); font-size: 0.82rem; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; }
.auth-alt { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 18px; }
.auth-alt.muted { font-size: 0.78rem; margin-top: 10px; }
.hint-inline { font-size: 0.75rem; color: var(--muted); margin-top: 5px; }

/* ---------- Slug / link display ---------- */
.mslug { font-size: 0.72rem; color: var(--muted); margin-top: 4px; font-family: ui-monospace, monospace; }
.slug-preview { font-size: 0.75rem; color: var(--primary-color); margin-top: 6px; font-family: ui-monospace, monospace; min-height: 1em; }
.slug-line { font-size: 0.72rem; color: var(--muted); margin-top: 14px; }
.slug-line code { background: var(--green-light); padding: 3px 7px; border-radius: 4px; font-size: 0.72rem; }
.slug-link { font-family: ui-monospace, monospace; font-size: 0.78rem; }

/* ---------- Tribute extras: dates, actions, comments ---------- */
.tab-count { background: var(--green-light); color: var(--green-dark); border-radius: 10px; padding: 1px 7px; font-size: 0.7rem; margin-left: 4px; }
.note-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.note-tools button { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 0.95rem; padding: 2px 5px; border-radius: 4px; }
.note-tools button:hover { background: var(--green-light); color: var(--green-dark); }
.note .by .when { font-size: 0.72rem; color: var(--muted); }
.note-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--green-light); }
.note-actions button { background: none; border: none; cursor: pointer; font: inherit; font-size: 0.76rem; color: var(--muted); display: flex; align-items: center; gap: 5px; padding: 0; }
.note-actions button:hover { color: var(--primary-color); }
.note-actions .like-btn.liked { color: var(--danger); }
.frame-date { font-size: 0.68rem; color: var(--muted); text-align: center; padding: 3px 2px 0; }

.comments { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dceae5; }
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.comment { display: flex; gap: 9px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex: 0 0 auto; }
.comment-body { flex: 1; background: var(--green-pale); border-radius: 10px; padding: 8px 11px; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.comment-name { font-weight: 700; font-size: 0.8rem; color: var(--green-dark); }
.comment-when { font-size: 0.68rem; color: var(--muted); }
.comment-remove { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0 2px; }
.comment-remove:hover { color: var(--danger); }
.comment-msg { font-size: 0.85rem; color: var(--text-dark); white-space: pre-wrap; }
.comment-form { display: flex; flex-direction: column; gap: 7px; }
.comment-input-row { display: flex; gap: 7px; }
.comment-input-row .editbox { flex: 1; }
.comment-submit { padding: 8px 16px; font-size: 0.8rem; white-space: nowrap; }

/* ---------- Memorial read-only display ---------- */
.profile-fields.readonly { text-align: center; }
.display-name { font-size: 1.9rem; margin: 0 0 6px; color: var(--green-dark); }
.display-dates { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.display-quote { font-style: italic; color: var(--text-dark); max-width: 440px; margin: 0 auto; }
.readonly-bio { white-space: pre-wrap; font-size: 0.92rem; }
.muted-text { color: var(--muted); }
.fval { font-size: 0.88rem; color: var(--text-dark); }
.date-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--green-light); font-size: 0.83rem; }
.date-facts div:last-child { border-bottom: none; }
.dlabel { color: var(--muted); }
.dval { font-weight: 600; color: var(--green-dark); }

/* ---------- Account page ---------- */
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.account-avatar-lg { width: 66px; height: 66px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 700; }
.account-name { margin: 0 0 3px; font-size: 1.5rem; color: var(--green-dark); }
.account-meta { font-size: 0.8rem; color: var(--muted); }
.account-tributes { display: flex; flex-direction: column; gap: 10px; }
.account-tribute { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-left: 3px solid var(--primary-color); }
.account-tribute:hover { text-decoration: none; background: var(--green-pale); }
.at-msg { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 5px; }
.at-meta { font-size: 0.75rem; color: var(--muted); }

/* ---------- Modal extras ---------- */
.modal-box.wide { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field .opt { font-weight: 400; color: var(--muted); }

/* ---------- Admin extras ---------- */
.who-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 18px; font-size: 0.85rem; }
.who-actions { display: flex; gap: 8px; }
.who-bar button { border: 1px solid #d7e6e1; background: var(--white); color: var(--green-dark); border-radius: 20px; padding: 7px 14px; font-size: 0.78rem; cursor: pointer; }
.who-bar button:hover { border-color: var(--primary-color); background: var(--green-light); }

.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stat-card { background: var(--green-pale); border-radius: 8px; padding: 14px; text-align: center; }
.stat-number { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--green-dark); }
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .field-row { flex-direction: column; } }

.row-actions { display: flex; gap: 6px; }
.row-actions button { border: 1px solid #d7e6e1; background: var(--white); color: var(--green-dark); border-radius: 16px; padding: 5px 12px; font-size: 0.75rem; cursor: pointer; }
.row-actions .row-action-link { border: 1px solid #d7e6e1; background: var(--white); color: var(--green-dark); border-radius: 16px; padding: 5px 12px; font-size: 0.75rem; text-decoration: none; white-space: nowrap; }
.row-actions button:hover { border-color: var(--primary-color); background: var(--green-light); }
.row-actions .row-action-link:hover { border-color: var(--primary-color); background: var(--green-light); text-decoration: none; }
.row-actions button.danger { border-color: #e3b8b8; color: var(--danger); }
.row-actions button.danger:hover { background: var(--danger-light); }
.thumb-sm { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--green-light); display: block; }
.cell-msg { max-width: 260px; }

.settings-card { background: var(--green-pale); border-radius: 8px; padding: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.settings-field { display: flex; flex-direction: column; }
.settings-field.full { grid-column: 1 / -1; }
.settings-field label { font-size: 0.78rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.settings-field textarea.editbox { min-height: 90px; resize: vertical; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } .settings-field.full { grid-column: auto; } }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { width: 52px; height: 42px; padding: 2px; border: 1px solid #cfe0da; border-radius: 6px; cursor: pointer; background: var(--white); }
.color-text { flex: 1; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; }
.range-value { min-width: 44px; font-size: 0.78rem; color: var(--muted); }
.settings-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dceae5; display: flex; gap: 12px; align-items: center; }
.settings-message { display: none; font-size: 0.8rem; color: var(--green-dark); }

.toggle-list { margin-top: 18px; border-top: 1px solid #dceae5; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid #dceae5; }
.toggle-info strong { display: block; font-size: 0.85rem; color: var(--text-dark); }
.toggle-info span { display: block; font-size: 0.75rem; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #c9d6d2; border-radius: 30px; cursor: pointer; transition: .2s; }
.slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--primary-color); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.background-upload { border: 1px dashed #c8d8d2; background: var(--white); border-radius: 8px; padding: 18px; }
.background-upload h3 { margin: 0 0 4px; font-size: 1rem; color: var(--green-dark); }
.background-upload p { font-size: 0.78rem; color: var(--muted); margin: 0 0 12px; }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.background-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; margin-top: 18px; }
.background-card { background: var(--white); border: 1px solid #d7e6e1; border-radius: 8px; padding: 7px; }
.background-card.active { border: 2px solid var(--primary-color); }
.background-preview { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-radius: 5px; background: var(--green-light); }
.background-card-info { padding: 9px 3px 5px; }
.background-card-label { font-size: 0.78rem; font-weight: 600; color: var(--text-dark); word-break: break-word; }
.background-card-date { font-size: 0.68rem; color: var(--muted); }
.active-label { font-size: 0.68rem; color: var(--primary-color); font-weight: 700; margin-top: 3px; }
.background-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.background-actions button { flex: 1; border: 1px solid #d7e6e1; background: var(--white); color: var(--green-dark); border-radius: 6px; padding: 6px 8px; font-size: 0.72rem; cursor: pointer; }
.background-actions button:hover { border-color: var(--primary-color); background: var(--green-light); }
.background-actions button.danger { border-color: #e3b8b8; color: var(--danger); }
.background-actions button.danger:hover { background: var(--danger-light); }

/* ---------- Date pickers inside the About fact cards ---------- */
.fact-card .editbox { margin-bottom: 6px; }
.fact-card .editbox:last-child { margin-bottom: 0; }
.fact-date { font-size: 0.83rem; padding: 7px 9px; }
.fval-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.side-btn + .side-btn { margin-top: 0; }
