html, body {
    font-family: 'Inter', 'Source Sans 3', 'Aptos', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* HomiHelp is hosted inside the LiturgyPro shell, with its own native workspace. */
.homihelp-host-content { padding: 0; }
.hh-splash,.hh-workspace{display:grid;grid-template-columns:286px minmax(0,1fr);min-height:100vh;background:#f8f9fb;color:#27364a}.hh-sidebar{display:flex;flex-direction:column;padding:1.5rem 1.35rem;background:#0f1f36;border-right:1px solid #263c5b;color:#dce5f1}.hh-back{display:block;margin-bottom:2.4rem;color:#c9a44c;font-size:.68rem;font-weight:700;letter-spacing:.1em;text-decoration:none}.hh-back:hover{color:#fff}.hh-brand{display:flex;align-items:center;gap:.65rem;margin-bottom:2.8rem;color:#fff}.hh-brand span{color:#c9a44c;font-size:1.6rem}.hh-brand strong{font:400 1.35rem Georgia,serif}.hh-sidebar-kicker,.hh-nav-heading,.hh-sidebar label{display:block;color:#9db1cc;font-size:.67rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.hh-sidebar-kicker{margin-bottom:1.1rem;color:#c9a44c}.hh-sidebar label{margin-bottom:.45rem}.hh-date-input{width:100%;padding:.65rem .55rem;border:1px solid #405675;border-radius:5px;background:#172b47;color:#fff;font:inherit;color-scheme:dark}.hh-sidebar-note{margin:1rem .1rem 2rem;color:#9db1cc;font:italic .85rem/1.5 Georgia,serif}.hh-nav-heading{padding-top:1rem;border-top:1px solid #263c5b}.hh-resource-nav{margin-top:.65rem}.hh-resource-link{display:flex;align-items:center;width:100%;gap:.65rem;padding:.68rem .5rem;border:0;border-radius:5px;background:transparent;color:#c4d1e1;font:inherit;text-align:left;text-decoration:none;cursor:pointer}.hh-resource-link:hover,.hh-resource-link.active{background:#1c3555;color:#fff}.hh-resource-link span{color:#c9a44c}.hh-resource-link b{margin-left:auto;color:#9db1cc}.hh-selected-date{padding:.6rem .1rem 1.5rem;color:#c4d1e1;font-size:.8rem}.hh-sidebar-footer{margin-top:auto;padding-top:1rem;border-top:1px solid #263c5b;color:#9db1cc;font:italic .8rem/1.4 Georgia,serif}.hh-splash-content{max-width:1180px;width:100%;margin:0 auto;padding:clamp(2rem,6vw,5rem)}.hh-workspace-content{max-width:1180px;width:100%;margin:0 auto;padding:5px clamp(1.25rem,5vw,4rem) 4rem}.hh-kicker,.hh-label{display:block;color:#a7813e;font-size:.67rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.hh-splash-content h1{margin:.8rem 0 3rem;color:#172c49;font:400 clamp(3rem,7vw,6rem)/.95 Georgia,serif;letter-spacing:-.04em}.hh-message{display:grid;grid-template-columns:170px minmax(0,680px);gap:2.5rem}.hh-portrait{position:relative;min-height:225px;overflow:hidden;border-radius:5px;background:#71839b}.hh-portrait img{width:100%;height:225px;object-fit:cover;object-position:top}.hh-portrait small{position:absolute;right:.4rem;bottom:.3rem;color:#fff;font-size:.58rem}.hh-message h2{margin:.4rem 0 1rem;color:#172c49;font:400 1.8rem/1.2 Georgia,serif}.hh-message p{color:#52647a;font:1rem/1.7 Georgia,serif}.hh-message blockquote{margin:1.4rem 0;padding:.8rem 1rem;border-left:3px solid #c9a44c;color:#304b6e;font:italic 1rem/1.5 Georgia,serif}.hh-day-intro{padding:.25rem 0 .7rem;border-bottom:1px solid #dce3eb}.hh-day-intro h2{margin:.2rem 0 .1rem;color:#172c49;font:400 clamp(1.1rem,2.2vw,1.5rem) Georgia,serif}.hh-day-intro p{margin:0;color:#718097;font-size:.85rem}.hh-resource-panel{max-width:900px;padding:1rem 0}.hh-resource-panel h3,.hh-editor h3{margin:.2rem 0 .45rem;color:#172c49;font:400 1.2rem Georgia,serif}.hh-reading-row{display:grid;grid-template-columns:auto auto 1fr auto;width:100%;gap:.4rem .7rem;align-items:center;padding:.3rem 0;border:0;background:transparent;color:#a27637;text-align:left;cursor:pointer}.hh-reading-row strong{color:#304b6e}.hh-reading-row span{white-space:nowrap}.hh-reading-row small,.hh-reading-row>span:last-child{text-align:right}.hh-reading-row:hover{background:#eef2f7}.hh-context-single{width:100%;max-width:1050px;margin:.45rem 0 .7rem}.hh-context-single .hh-context-fields{grid-template-columns:150px 1fr}.hh-context-grid{display:none}.hh-context-fields{display:grid;grid-template-columns:130px 1fr;gap:.45rem;color:#52647a;font:1rem/1.45 Georgia,serif}.hh-context-fields dt{color:#8998aa;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hh-context-fields dd{margin:0}.hh-copy{white-space:normal;color:#465a72;font:1rem/1.35 Georgia,serif}.hh-copy p{margin:0 0 .25em}.hh-source{color:#8998aa;font:.8rem/1.5 Georgia,serif}.hh-resource-card{margin:.75rem 0;padding:.75rem .9rem;background:#eef2f7;color:#53677f}.hh-resource-card strong{color:#8c6935;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase}.hh-resource-card p{margin:.2rem 0 0;font:1rem/1.35 Georgia,serif}.hh-context-fields dd{margin:0;line-height:1.35}.hh-editor{margin-top:1rem}.hh-editor-heading{display:flex;justify-content:space-between;align-items:center}.hh-editor-heading span{color:#8998aa;font-size:.75rem}.hh-toolbar{display:flex;gap:.2rem;flex-wrap:wrap;padding:.45rem;border:1px solid #d5dee9;background:#edf1f6}.hh-toolbar button,.hh-toolbar select,.hh-editor-actions button,.hh-editor-actions select{height:30px;border:1px solid #d0dbe7;border-radius:4px;background:#fff;color:#304b6e;cursor:pointer}.hh-editor-area{min-height:420px;padding:1rem;border:1px solid #d5dee9;border-top:0;background:#fff;outline:0;font:1rem/1.7 Georgia,serif}.hh-editor-area:empty:before{content:attr(data-placeholder);color:#a0adbb;font-style:italic}.hh-editor-actions{display:flex;align-items:center;gap:.5rem;padding-top:.7rem;color:#718097;font-size:.75rem}.hh-editor-actions span{margin-right:auto}.hh-editor-actions .hh-primary{padding:0 .8rem;background:#0f1f36;color:#fff}.hh-empty{margin-top:15vh;text-align:center}.hh-empty>span{color:#c9a44c;font-size:2rem}.hh-empty h2{color:#172c49;font:400 2.2rem Georgia,serif}.hh-empty p{color:#718097}.hh-modal-backdrop{position:fixed;inset:0;display:grid;place-items:center;padding:1rem;background:#0f1f3688;z-index:10}.hh-modal{position:relative;max-width:680px;max-height:85vh;overflow:auto;padding:2rem;background:#fff;box-shadow:0 12px 40px #0f1f3644}.hh-modal-close{position:absolute;top:.5rem;right:.7rem;border:0;background:transparent;color:#718097;font-size:1.6rem;cursor:pointer}.hh-modal h3{color:#172c49;font:400 1.7rem Georgia,serif}.hh-modal p{white-space:pre-line;color:#465a72;font:1rem/1.7 Georgia,serif}.hh-modal a{color:#8c6935;font-size:.8rem;font-weight:700}
@media(max-width:760px){.hh-splash,.hh-workspace{display:block}.hh-sidebar{padding:1rem 1.1rem;border-right:0;border-bottom:1px solid #263c5b}.hh-back{margin-bottom:1.3rem}.hh-brand{margin-bottom:1.4rem}.hh-sidebar-footer{display:none}.hh-splash-content,.hh-workspace-content{padding:1.7rem 1rem 3rem}.hh-splash-content h1{margin-bottom:2rem;font-size:3.3rem}.hh-message{grid-template-columns:1fr;gap:1.3rem}.hh-portrait{min-height:180px}.hh-portrait img{height:180px}.hh-context-grid{grid-template-columns:1fr;gap:1rem}.hh-reading-row{grid-template-columns:1fr auto}.hh-reading-row strong{grid-column:1}.hh-editor-actions{flex-wrap:wrap}.hh-editor-actions span{flex-basis:100%}}

.lpro-homihelp-sidebar {
    width: 286px;
    flex: 0 0 286px;
    min-height: 100vh;
}

.hh-splash-content.hh-page { padding-top: 10px; }
.lpro-content-homihelp { padding: 0; }
.hh-purpose-title { width: 100%; max-width: 888px; margin: 0 0 5px; color: #a7813e; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hh-purpose-note { width: 100%; max-width: 888px; margin: 0 0 40px; padding: 14px 16px; border: 1px solid #d5d9df; border-radius: 5px; background: transparent; color: #52627a; font-size: 14px; font-style: italic; line-height: 1.7; }
.hh-purpose-note p { margin: 0; color: #657386; font-size: 14px; font-style: italic; line-height: 1.7; }
.hh-message > div:last-child { min-width: 0; }
.hh-message > div:last-child p, .hh-message blockquote { overflow-wrap: anywhere; }
.hh-portrait { background: transparent; }

@media (max-width: 760px) {
    .lpro-homihelp-shell { display: block; height: auto; min-height: 100vh; overflow: visible; }
    .lpro-homihelp-sidebar { width: 100%; min-height: 0; }
    .lpro-homihelp-shell .lpro-main { height: auto; overflow: visible; padding-top: 0; }
}

* { box-sizing: border-box; }

a, .btn-link { color: #1a73e8; }

/* ---------- Layout shell ---------- */
.lpro-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.lpro-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: #0f1f36;
    color: #e8eef7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lpro-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 22px 18px;
    border-bottom: 1px solid #1e3a5f;
}

.lpro-brand-logo {
    display: block;
    width: 46px;
    height: auto;
}

.lpro-sidebar-collapsed .lpro-brand-logo {
    margin: 0 auto;
}

.lpro-brand-plus {
    font-size: 28px;
    color: #c9a44c;
    font-weight: 300;
    line-height: 1;
}

.lpro-brand-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-top: 4px;
}

.lpro-brand-sub {
    font-size: 10px;
    color: #9db1cc;
    opacity: 0.7;
    margin-top: 2px;
}

.lpro-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.lpro-sidebar-bottom {
    flex-shrink: 0;
    padding: 8px 0 12px;
    border-top: 1px solid #1e3a5f;
}

.lpro-nav-label {
    font-size: 10px;
    font-weight: 600;
    color: #9db1cc;
    opacity: 0.5;
    letter-spacing: 1px;
    margin: 8px 20px 6px;
}

.lpro-nav-item {
    display: block;
    color: #c3d1e4;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 20px;
    cursor: pointer;
}

.lpro-nav-item:hover { background: #1a2f4f; color: #fff; }

.lpro-nav-item.active {
    background: #1a3a63;
    color: #fff;
    border-left: 3px solid #c9a44c;
}

.lpro-nav-btn {
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: none;
    color: #c3d1e4;
    border: none;
    font-size: 13px;
    padding: 8px 20px;
    cursor: pointer;
}

.lpro-nav-btn:hover { background: #1a2f4f; color: #fff; }

.lpro-nav-btn:focus-visible { outline: 2px solid #c9a44c; outline-offset: -2px; }

.lpro-nav-link {
    display: block;
    color: #c3d1e4;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 20px;
}

.lpro-nav-link:hover { background: #1a2f4f; color: #fff; }
.lpro-nav-link:focus-visible { outline: 2px solid #c9a44c; outline-offset: -2px; }

.lpro-nav-divider {
    height: 1px;
    background: #1e3a5f;
    margin: 6px 16px;
}

.lpro-user-line {
    padding: 8px 20px 2px;
}

.lpro-user-welcome {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lpro-user-name { font-size: 14px; color: #c9a44c; font-weight: 600; }
.lpro-nav-welcome { padding: 12px 20px 6px; }
.lpro-user-account { font-size: 10px; color: #9db1cc; }

.lpro-membership-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 20px 8px;
    border-bottom: 1px solid #1e3a5f;
    margin-bottom: 4px;
    text-decoration: none;
    cursor: pointer;
}

.lpro-membership-line:hover .lpro-membership-value { color: #fff; }

.lpro-membership-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: #66748c; }
.lpro-membership-value { font-size: 11px; color: #c9a44c; font-weight: 600; }

.lpro-logout {
    display: block;
    width: calc(100% - 32px);
    margin: 6px 16px 0;
    background: transparent;
    color: #9db1cc;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
}

.lpro-logout:hover { color: #fff; border-color: #c9a44c; }

.lpro-main {
    flex: 1;
    overflow-y: auto;
    background: #f4f6f9;
}

.lpro-sidebar-collapsed { width: 64px; }

.lpro-sidebar-collapsed .lpro-brand { padding: 16px 20px; }

.lpro-sidebar-collapsed .lpro-nav-item {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

.lpro-sidebar-collapsed .lpro-nav-label,
.lpro-sidebar-collapsed .lpro-nav-divider,
.lpro-sidebar-collapsed .lpro-user-line { display: none; }

.lpro-sidebar-toggle {
    position: fixed;
    left: 264px;
    top: 10px;
    z-index: 50;
    width: 22px;
    height: 22px;
    border-radius: 0 6px 6px 0;
    border: none;
    background: #0f1f36;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 22px;
    transition: left 0.15s ease;
}

.lpro-sidebar-collapsed ~ .lpro-sidebar-toggle { left: 64px; }

/* Mobile header hidden on desktop */
.lpro-mobile-header { display: none; }
.lpro-mobile-backdrop { display: none; }

.lpro-content { padding: 20px; }

/* ---------- Login ---------- */
.lpro-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1f36 0%, #1a3a63 100%);
}

.lpro-login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 44px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    text-align: center;
}

.lpro-login-plus {
    font-size: 34px;
    color: #c9a44c;
    font-weight: 300;
}

.lpro-login-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f1f36;
    margin: 6px 0 2px;
}

.lpro-login-sub {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 20px;
}

.lpro-login-form { text-align: left; }

.lpro-field {
    margin-bottom: 12px;
}

.lpro-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.lpro-field input,
.lpro-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.lpro-field input:focus, .lpro-field select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.lpro-login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: #0f1f36;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lpro-login-btn:hover { background: #1a3a63; }
.lpro-login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lpro-login-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.lpro-login-foot { margin-top: 18px; }

.lpro-login-cancel {
    background: none;
    border: none;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

/* ---------- Generic ---------- */
.lpro-center-hint {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    font-size: 14px;
}

.lpro-btn {
    background: #0f1f36;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.lpro-btn:hover { background: #1a3a63; }

.lpro-btn-danger { background: #b91c1c; }
.lpro-btn-danger:hover { background: #991b1b; }
.lpro-btn-green { background: #047857; }
.lpro-btn-green:hover { background: #065f46; }
.lpro-btn-xs { padding: 4px 8px; font-size: 11px; }

.lpro-btn-file { display: inline-block; cursor: pointer; }
.lpro-btn-file:hover { background: #1a3a63; }

.lpro-topbar-actions { margin-left: auto; }
.lpro-blessing-preview-actions { display: flex; gap: 8px; }

.lpro-toast {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0;
}
.lpro-toast-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.lpro-toast-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.lpro-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.lpro-select {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.lpro-panel {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(15, 31, 54, 0.06);
}

.lpro-panel h2 { margin: 0 0 12px; font-size: 16px; color: #0f1f36; }

.lpro-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lpro-table th, .lpro-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; }
.lpro-table th { font-size: 11px; text-transform: uppercase; color: #64748b; background: #f8fafc; }
.lpro-clickable { cursor: pointer; }
.lpro-clickable:hover { background: #f8fafc; }

/* ---------- Full-bleed pages (Personal) ---------- */
.lpro-bleed {
    position: relative;
    z-index: 0;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lpro-bleed-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0f1f36;
}

.lpro-bleed-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lpro-bleed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
}

.lpro-bleed-header h1 {
    margin: 0;
    font-size: 22px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    flex: 1;
}

.lpro-bleed-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    color: #0f1f36;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lpro-bleed-home:hover { background: #fff; }

/* ---------- Home ---------- */
.lpro-content-home {
    padding: 0;
    height: 100vh;
    display: flex;
    min-height: 0;
}

.lpro-home {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #0f1f36;
    position: relative;
    overflow: hidden;
}

.lpro-home-banner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpro-home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Login overlay on the home splash */
.lpro-home-login-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 31, 54, 0.35);
}

.lpro-home-login-wrap .lpro-login-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Part / manuals ---------- */
.lpro-part {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    min-height: calc(100vh - 72px);
}

.lpro-part-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpro-part-banner-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.lpro-manual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.lpro-manual-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(15,31,54,0.06);
    overflow: hidden;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.lpro-manual-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,31,54,0.12);
}

/* Golden band on the right side */
.lpro-manual-card-band {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: #c9a44c;
    border-radius: 0 2px 2px 0;
}

.lpro-manual-card-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0f1f36;
    line-height: 1.5;
}

/* ---------- Manual view ---------- */
.lpro-manual-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    gap: 14px;
    background: #F4F6F8;
    border-radius: 12px;
    padding: 16px 20px;
}

.lpro-manual-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(20, 36, 58, 0.06);
}

.lpro-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px 10px;
    color: #14243A;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.lpro-back-btn:hover { background: #F4F6F8; }

.lpro-back-arrow { color: #C5A15A; font-weight: 700; font-size: 16px; }

.lpro-manual-nav {
    display: flex;
    gap: 6px;
    margin: 0 auto;
    align-items: flex-end;
}

.lpro-navtab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0 12px;
    cursor: pointer;
    min-width: 70px;
    min-height: 64px;
    outline-offset: -2px;
}

.lpro-navtab:focus-visible {
    outline: 2px solid #C5A15A;
    border-radius: 8px;
}

.lpro-navtab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.12s ease;
}

.lpro-navtab-icon svg {
    width: 27px;
    height: 27px;
    color: #334A63;
}

.lpro-navtab:hover .lpro-navtab-icon { background: #EEF2F6; }
.lpro-navtab:hover .lpro-navtab-icon svg { color: #14243A; }

.lpro-navtab-active {
    border-bottom-color: #C5A15A;
    background: #F6EEDC;
    border-radius: 8px 8px 0 0;
}

.lpro-navtab-active .lpro-navtab-icon {
    background: #F6EEDC;
    border: 1px solid rgba(197, 161, 90, 0.45);
}

.lpro-navtab-active .lpro-navtab-icon svg { color: #9B762E; }
.lpro-navtab-label { font-size: 13px; font-weight: 600; color: #556173; letter-spacing: .3px; }
.lpro-navtab:hover .lpro-navtab-label { color: #14243A; }
.lpro-navtab-active .lpro-navtab-label { color: #14243A; }

.lpro-topbar-actions { display: flex; gap: 8px; }

.lpro-btn-outline {
    background: #fff;
    color: #14243A;
    border: 1px solid #D5DBE3;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.lpro-btn-outline:hover { border-color: #C5A15A; color: #14243A; background: #FBF3E2; }
.lpro-btn-outline:disabled { opacity: .5; cursor: not-allowed; }
.lpro-btn-outline input[type=file] { display: none; }

.lpro-manual-body {
    flex: 1;
    display: grid;
    grid-template-columns: 272px 1fr;
    gap: 14px;
    min-height: 0;
    align-items: start;
}

.lpro-manual-body-full {
    grid-template-columns: 1fr;
}

/* Sidebar: contextual document-navigation panel */
.lpro-manual-side {
    background: #14243A;
    border-radius: 10px;
    padding: 14px 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20, 36, 58, 0.18);
    position: sticky;
    top: 0;
    max-height: calc(100vh - 130px);
    display: flex;
    flex-direction: column;
}

.lpro-toc-context {
    padding: 2px 8px 0;
}

.lpro-toc-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C5A15A;
    line-height: 1.4;
}

.lpro-toc-doctitle {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.35;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.lpro-toc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 12px 14px;
    flex-shrink: 0;
}

.lpro-toc-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.48);
    padding: 0 13px 6px;
    flex-shrink: 0;
}

.lpro-toc-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 4px;
}

.lpro-toc-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0 7px 7px 0;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #B9C5D3;
    cursor: pointer;
    font-family: inherit;
    overflow-wrap: anywhere;
    transition: background 0.12s ease, color 0.12s ease;
}

.lpro-toc-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.lpro-toc-link:focus-visible {
    outline: 2px solid #C5A15A;
    outline-offset: -2px;
}

.lpro-toc-link-active,
.lpro-toc-link.lpro-toc-active {
    color: #FFFFFF;
    font-weight: 600;
    background: rgba(197, 161, 90, 0.14);
    border-left-color: #C5A15A;
}

.lpro-toc-empty {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    padding: 6px 13px;
    line-height: 1.4;
}

.lpro-manual-side .lpro-center-hint { color: #9DB1CC; font-size: 12px; }

.lpro-resource-item {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 11px 10px 11px 14px;
    cursor: pointer;
    font-family: inherit;
}

.lpro-resource-item:hover { background: #1C3050; }

.lpro-resource-item-active {
    background: #1A2B45;
}

.lpro-resource-item-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    background: #C5A15A;
    border-radius: 0 3px 3px 0;
}

.lpro-resource-name {
    font-size: 14px;
    font-weight: 600;
    color: #E8EEF7;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Mobile drawer */
.lpro-contents-btn {
    display: none;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    background: #14243A;
    color: #fff;
    border: 1px solid #C5A15A;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(20, 36, 58, 0.35);
}

.lpro-contents-btn:focus-visible {
    outline: 2px solid #C5A15A;
    outline-offset: 2px;
}

.lpro-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 70;
}

.lpro-contents-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #14243A;
    z-index: 71;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.lpro-contents-drawer:focus-visible {
    outline: none;
}

.lpro-drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #E8EEF7;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
}

.lpro-drawer-close:hover { border-color: #C5A15A; color: #fff; }
.lpro-drawer-close:focus-visible { outline: 2px solid #C5A15A; outline-offset: 2px; }

.lpro-manual-preview {
    background: #F4F6F8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
}

.lpro-doc-frame {
    flex: 1;
    width: 100%;
    border: none;
    min-height: 0;
}

.lpro-media { width: 100%; height: 100%; max-height: 100%; }
.lpro-media-img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; }

/* ---------- Page headers ---------- */
.lpro-blessings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lpro-blessings-head h1 { margin: 0; font-size: 22px; color: #0f1f36; }

.lpro-personal-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100vh - 40px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.lpro-personal-side {
    background: #0f1f36;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpro-personal-side-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px 8px;
    border-bottom: 1px solid #1e3a5f;
    margin-bottom: 4px;
}

.lpro-personal-side-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.lpro-side-back {
    background: none;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    color: #c3d1e4;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.lpro-side-back:hover { color: #fff; border-color: #c9a44c; }
.lpro-side-back:focus-visible { outline: 2px solid #c9a44c; outline-offset: -1px; }

.lpro-personal-side-sub {
    font-size: 10px;
    color: #9db1cc;
    opacity: 0.7;
}

.lpro-personal-quota {
    padding: 4px 2px 8px;
    border-bottom: 1px solid #1e3a5f;
    margin-bottom: 4px;
}

.lpro-personal-quota-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #9db1cc;
    margin-bottom: 4px;
}

.lpro-personal-quota-track {
    height: 6px;
    background: #15243b;
    border-radius: 4px;
    overflow: hidden;
}

.lpro-personal-quota-fill {
    height: 100%;
    background: #c9a44c;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.lpro-personal-quota-fill.lpro-quota-warn { background: #e11d48; }

.lpro-personal-btn-add { background: #1a6f4b; color: #fff; }
.lpro-personal-btn-add:hover { background: #15855a; }

.lpro-personal-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 2px;
    border-bottom: 1px solid #1e3a5f;
    margin-bottom: 6px;
}

.lpro-personal-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: #9db1cc;
    letter-spacing: 0.08em;
    padding: 0 2px 4px;
}

.lpro-personal-nav-item { justify-content: flex-start; }

.lpro-nav-folder-count {
    margin-left: auto;
    font-size: 11px;
    color: #7d93b5;
    flex-shrink: 0;
}

.lpro-personal-nav-item.lpro-asset-item-active .lpro-nav-folder-count { color: #c9a44c; }

.lpro-personal-files-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #c3d1e4;
}

.lpro-folder-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #c9a44c;
    background: #1a3a63;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    padding: 1px 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.lpro-preview-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.lpro-blessing-preview-meta {
    padding: 8px 16px;
    font-size: 12px;
    color: #667085;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.lpro-personal-actions {
    display: flex;
    gap: 6px;
}

.lpro-personal-btn {
    background: #1a3a63;
    color: #e8eef7;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.lpro-personal-btn:hover { background: #25497a; }
.lpro-personal-btn-danger { background: #7f1d1d; color: #fecaca; }
.lpro-personal-btn-danger:hover { background: #991b1b; }

.lpro-personal-btn-file { display: inline-block; cursor: pointer; }
.lpro-personal-btn-file input { display: none; }

.lpro-personal-side .lpro-search {
    background: #15243b;
    border: 1px solid #1e3a5f;
    color: #e8eef7;
}

.lpro-personal-side .lpro-search::placeholder { color: #7d93b5; }

.lpro-personal-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.lpro-crumb {
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.lpro-crumb-sep { color: #5b7396; }

.lpro-personal-item {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    color: #c3d1e4;
    cursor: pointer;
    font-family: inherit;
}

.lpro-personal-item:hover { background: #1a2f4f; color: #fff; }

.lpro-personal-item.lpro-asset-item-active {
    background: #1a3a63;
    color: #fff;
    font-weight: 600;
}

/* Right panel: full image with preview floating over it */
.lpro-personal-right {
    position: relative;
    overflow: hidden;
    background: #0f1f36;
}

.lpro-personal-right-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lpro-personal-preview {
    position: absolute;
    inset: 20px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.lpro-personal-preview .lpro-blessing-preview-head {
    background: #14243A;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.lpro-personal-preview .lpro-blessing-preview-head h2 { color: #fff; }

.lpro-personal-right .lpro-toast {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.lpro-blessing-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.lpro-blessing-preview-head h2 { margin: 0; font-size: 17px; color: #0f1f36; }

.lpro-mini-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #334155;
}

/* ---------- Calendar ---------- */
.lpro-calendar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lpro-calendar-head h1 { margin: 0; font-size: 22px; color: #0f1f36; }

.lpro-calendar-nav { display: flex; align-items: center; gap: 6px; }

.lpro-date {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.lpro-calendar-status {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
}

.lpro-status-ok { background: #ecfdf5; color: #047857; }
.lpro-status-pending { background: #fffbeb; color: #b45309; }

.lpro-calendar-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}

.lpro-calendar-day { min-width: 0; }

.lpro-calendar-day-label {
    font-size: 16px;
    font-weight: 700;
    color: #0f1f36;
    margin-bottom: 12px;
}

.lpro-calendar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.lpro-mass-list { display: flex; flex-direction: column; gap: 10px; }

.lpro-mass-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15,31,54,0.05);
}

.lpro-mass-selected { border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }

.lpro-mass-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lpro-mass-time { font-size: 15px; font-weight: 700; color: #1a73e8; }
.lpro-mass-occasion { font-size: 12px; color: #64748b; flex: 1; }

.lpro-slot-grid { display: flex; flex-direction: column; gap: 4px; }

.lpro-slot-row { display: flex; align-items: center; gap: 10px; }

.lpro-slot-role {
    width: 90px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.lpro-slot-ids { display: flex; flex-wrap: wrap; gap: 4px; }

.lpro-slot-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
}

.lpro-slot-filled {
    background: #e8eff8;
    border-color: #bfdbfe;
    color: #0f1f36;
    font-weight: 600;
}

.lpro-calendar-roster {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    align-self: start;
}

.lpro-roster-role {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin: 10px 0 2px;
}

.lpro-roster-name { font-size: 13px; color: #334155; padding: 1px 0; }

/* ---------- Ministers ---------- */
.lpro-min-filter-row { display: flex; gap: 10px; margin-bottom: 16px; max-width: 620px; }
.lpro-min-filter-row .lpro-search { flex: 1; }

.lpro-min-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.lpro-check-row { display: flex; flex-wrap: wrap; gap: 8px; }

.lpro-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.lpro-check-chip input { accent-color: #0f1f36; }

.lpro-min-edit-actions { display: flex; gap: 8px; margin-top: 14px; }

.lpro-min-group { margin-bottom: 14px; }

.lpro-min-group-title {
    background: #e8eff8;
    color: #0f1f36;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.lpro-min-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 8px; }
.lpro-min-inactive { opacity: 0.55; }

.lpro-min-name {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.lpro-min-meta { font-size: 12px; color: #64748b; }

/* ---------- Templates ---------- */
.lpro-slot-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

.lpro-slot-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px 8px;
}

.lpro-slot-edit input { width: 60px; }

/* ---------- Check-in ---------- */
.lpro-checkin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.lpro-checkin-mass {
    font-weight: 700;
    color: #0f1f36;
    margin: 10px 0 4px;
}

.lpro-checkin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    margin: 2px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.lpro-checkin-unavail { background: #fef2f2; }

.lpro-checkin-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.lpro-pill-pending { background: #fffbeb; color: #b45309; }
.lpro-pill-confirmed { background: #ecfdf5; color: #047857; }
.lpro-pill-unavailable { background: #fef2f2; color: #b91c1c; }

.lpro-checkin-label { flex: 1; font-size: 13px; color: #334155; }

/* ---------- Settings ---------- */
.lpro-settings h1 { font-size: 22px; color: #0f1f36; margin: 0 0 16px; }

.lpro-settings-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.lpro-users-panel { margin-top: 8px; }
.lpro-users-panel h3 { font-size: 14px; color: #0f1f36; margin: 16px 0 8px; }

.lpro-user-edit {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0;
}

.lpro-min-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.lpro-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lpro-check input { width: auto; }

/* ---------- Web links ---------- */
.lpro-weblinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 40px;
}

.lpro-weblink-card {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 36px;
}

.lpro-weblink-card h2 { font-size: 22px; color: #0f1f36; margin: 0 0 10px; }

.lpro-weblink-desc { color: #64748b; font-size: 14px; margin: 0 0 22px; }

.lpro-weblink-open {
    display: inline-block;
    text-decoration: none;
    margin: 0 6px 10px;
}

.lpro-btn-outline {
    background: #fff;
    color: #0f1f36;
    border: 1px solid #cbd5e1;
    margin: 0 6px 10px;
}

.lpro-btn-outline:hover { background: #f1f5f9; }

.lpro-webview {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.lpro-webview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lpro-webview-title {
    font-size: 14px;
    font-weight: 700;
    color: #14243A;
}

.lpro-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.lpro-webview-frame { flex: 1; width: 100%; border: none; border-radius: 0; }

.lpro-webview-disclaimer {
    font-size: 10px;
    color: #94a3b8;
    padding: 8px 4px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Web modal */
.lpro-web-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 90;
}

.lpro-web-modal {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1000px, calc(100vw - 40px));
    height: calc(100vh - 60px);
    background: #fff;
    border-radius: 12px;
    z-index: 91;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lpro-web-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.lpro-web-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpro-web-modal-close {
    background: none;
    border: 1px solid #d5dbe3;
    border-radius: 8px;
    color: #14243a;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
}

.lpro-web-modal-close:hover { border-color: #c5a15a; color: #14243a; }
.lpro-web-modal-close:focus-visible { outline: 2px solid #c5a15a; outline-offset: 2px; }

.lpro-web-modal-frame {
    flex: 1;
    width: 100%;
    border: none;
}

/* ---------- In-app document editor ---------- */
.lpro-edit-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    gap: 12px;
}

.lpro-edit-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(20, 36, 58, 0.06);
    flex-wrap: wrap;
}

.lpro-edit-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    min-width: 34px;
}

.lpro-edit-btn:hover { background: #F4F6F8; border-color: #d5dbe3; }
.lpro-edit-btn:focus-visible { outline: 2px solid #C5A15A; outline-offset: -1px; }

.lpro-edit-sep { width: 1px; height: 20px; background: #e2e8f0; margin: 0 4px; }

.lpro-edit-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lpro-edit-back {
    background: none;
    border: none;
    color: #14243A;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.lpro-edit-back:hover { color: #C5A15A; }

.lpro-edit-filename { flex: 1; font-size: 14px; font-weight: 700; color: #14243A; }

.lpro-edit-save {
    background: #14243A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.lpro-edit-save:hover { background: #1a3a63; }
.lpro-edit-save:disabled { opacity: .5; cursor: not-allowed; }

.lpro-edit-canvas {
    flex: 1;
    overflow: auto;
    background: #F4F6F8;
    border-radius: 10px;
    padding: 20px;
}

.lpro-edit-card {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 48px 56px;
    box-shadow: 0 1px 3px rgba(20, 36, 58, 0.06), 0 8px 30px rgba(20, 36, 58, 0.06);
}

.lpro-edit-content {
    outline: none;
    min-height: 55vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1F2933;
}

.lpro-edit-content h1,
.lpro-edit-content .doc-title { font-size: 30px; font-weight: 700; color: #14243A; margin: 0 0 12px; }
.lpro-edit-content h2,
.lpro-edit-content .doc-h1 { font-size: 22px; font-weight: 700; color: #8F1D2C; margin: 24px 0 10px; }
.lpro-edit-content h3,
.lpro-edit-content .doc-h2 { font-size: 19px; font-weight: 700; color: #8F1D2C; margin: 20px 0 8px; }
.lpro-edit-content p { margin: 0 0 12px; }
.lpro-edit-content ul, .lpro-edit-content ol { margin: 0 0 12px 22px; padding: 0; }

/* ---------- Subscription gate ---------- */
.lpro-subgate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.lpro-subgate-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 44px;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(20, 36, 58, 0.08);
}

.lpro-subgate-title {
    font-size: 22px;
    font-weight: 700;
    color: #14243A;
    margin: 0 0 12px;
}

.lpro-subgate-text { font-size: 15px; color: #1F2933; margin: 0 0 10px; line-height: 1.55; }
.lpro-subgate-sub { font-size: 13px; color: #667085; margin: 0 0 22px; line-height: 1.5; }

.lpro-subgate-btn {
    display: inline-block;
    background: #14243A;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.lpro-subgate-btn:hover { background: #1a3a63; }

/* ---------- Schedule hub ---------- */
.lpro-schedule-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0 14px;
}

.lpro-schedule-step {
    font-size: 12px;
    font-weight: 700;
    color: #667085;
    background: #eef2f6;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: inherit;
    cursor: pointer;
}

.lpro-schedule-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    margin: 8px 0;
}

.lpro-schedule-row-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f1f36;
    flex: 1 1 240px;
}

.lpro-schedule-row-status {
    font-size: 13px;
    color: #475569;
    flex: 1 1 220px;
}

.lpro-schedule-row-actions {
    display: flex;
    gap: 8px;
}

.lpro-mini-calendar {
    max-width: 380px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.lpro-mini-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lpro-mini-cal-title { font-size: 14px; font-weight: 700; color: #0f1f36; }

.lpro-mini-cal-dows,
.lpro-mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.lpro-mini-cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 2px 0;
}

.lpro-mini-cal-day {
    height: 34px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.lpro-mini-cal-day:hover { border-color: #14243A; }

.lpro-mini-cal-day.lpro-mini-cal-today {
    border: 2px solid #1a6f4b;
    color: #1a6f4b;
}

.lpro-mini-cal-day.lpro-mini-cal-selected {
    background: #14243A;
    color: #fff;
}

.lpro-schedule-step-active {
    background: #14243A;
    color: #fff;
    border-color: #14243A;
}

.lpro-schedule-sep { color: #94a3b8; font-size: 14px; }

.lpro-schedule-setup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.lpro-schedule-setup-row {
    font-size: 14px;
    padding: 4px 0;
    color: #1F2933;
}

.lpro-schedule-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.lpro-btn-primary {
    background: #1a6f4b;
    border: 1px solid #1a6f4b;
    color: #fff;
}

.lpro-btn-primary:hover { background: #15855a; }

.lpro-schedule-result {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lpro-schedule-result-line { font-size: 14px; margin: 2px 0; }

.lpro-schedule-day {
    margin: 14px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.lpro-slot-empty { background: #f1f5f9; color: #94a3b8; border: 1px dashed #cbd5e1; }

.lpro-slot-select {
    max-width: 220px;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.lpro-slot-pill-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.lpro-slot-remove {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.lpro-slot-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lpro-slot-hint {
    font-size: 13px;
    color: #b91c1c;
    padding: 8px 4px;
}

.lpro-slot-unavail {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    text-decoration: line-through;
}

.lpro-check-mark {
    width: 16px;
    height: 16px;
    accent-color: #047857;
}

.lpro-slot-status {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
}

.lpro-btn-ghost {
    background: #eef2f6;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.lpro-btn-ghost:hover { background: #e2e8f0; }

.lpro-schedule-testing {
    margin-top: 16px;
    padding: 8px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #667085;
}

.lpro-schedule-testing summary { cursor: pointer; font-weight: 600; }

/* Minister mobile page */
.lpro-minister {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
    min-height: 80vh;
    background: linear-gradient(160deg, #0f1f36 0%, #14243a 55%, #1a2f4f 100%);
}

.lpro-minister-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 24px;
    align-self: flex-start;
}

.lpro-minister-head { margin-bottom: 16px; }
.lpro-minister-title { font-size: 22px; font-weight: 800; color: #14243a; }
.lpro-minister-sub { font-size: 13px; color: #667085; margin-top: 2px; }

.lpro-minister-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.lpro-minister-form label { font-size: 13px; font-weight: 600; color: #334155; }
.lpro-minister-form input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.lpro-minister-btn { margin-top: 12px; width: 100%; padding: 11px; }
.lpro-minister-hint { font-size: 12px; color: #94a3b8; margin-top: 14px; text-align: center; }

.lpro-minister-day { margin: 14px 0; }
.lpro-minister-day-title { font-size: 14px; font-weight: 700; color: #14243a; margin-bottom: 6px; }

.lpro-minister-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 6px 0;
    background: #f8fafc;
}

.lpro-minister-row.lpro-minister-unavail { background: #fef2f2; border-color: #fecaca; }

.lpro-minister-info { flex: 1 1 180px; }
.lpro-minister-occ { font-size: 14px; font-weight: 600; color: #1f2933; }
.lpro-minister-role { font-size: 12px; color: #667085; }

.lpro-minister-status { flex: 1 1 180px; font-size: 13px; }
.lpro-minister-actions { display: flex; gap: 8px; }

/* Minister list helpers */
.lpro-min-letter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}

.lpro-letter-chip {
    min-width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.lpro-letter-chip:hover { border-color: #14243A; color: #14243A; }

.lpro-letter-chip-active {
    background: #14243A;
    color: #fff;
    border-color: #14243A;
}

.lpro-min-filter-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #667085;
    margin: 4px 0 8px;
}

.lpro-min-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lpro-personal-body,
    .lpro-calendar-body,
    .lpro-checkin-grid { grid-template-columns: 1fr; height: auto; }

    .lpro-sidebar { width: 200px; }

    .lpro-calendar-roster { align-self: auto; }

    /* Manual page: hide fixed sidebar, show Contents drawer */
    .lpro-manual-body { grid-template-columns: 1fr; }
    .lpro-manual-side { display: none; }
    .lpro-contents-btn { display: block; }

    /* Mobile: sidebar becomes an off-canvas drawer */
    .lpro-shell { position: relative; }

    .lpro-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 264px;
        z-index: 120;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .lpro-mobile-open .lpro-sidebar {
        transform: translateX(0);
    }

    .lpro-mobile-header {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        padding: 0 14px;
        background: #0f1f36;
        color: #fff;
        z-index: 100;
        border-bottom: 1px solid #1e3a5f;
    }

    .lpro-mobile-menu {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        padding: 4px 6px;
        line-height: 1;
    }

    .lpro-mobile-title { font-size: 16px; font-weight: 700; }

    .lpro-mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        z-index: 110;
    }

    /* Desktop sidebar toggle hidden on mobile (hamburger replaces it) */
    .lpro-sidebar-toggle { display: none; }

    /* Content area: offset by mobile header, allow scrolling */
    .lpro-main {
        padding-top: 50px;
        overflow-y: auto;
        height: 100vh;
    }

    .lpro-content { padding: 14px; }

    /* Remove fixed viewport heights so pages scroll naturally */
    .lpro-manual-page,
    .lpro-webview,
    .lpro-edit-page,
    .lpro-personal-body {
        height: auto;
        min-height: calc(100vh - 80px);
    }

    .lpro-personal-right {
        min-height: 70vh;
    }

    .lpro-part-banner-img { max-height: 180px; }

    .lpro-calendar-body,
    .lpro-checkin-grid { grid-template-columns: 1fr; }

    .lpro-home-banner { height: auto; min-height: 70vh; }

    .lpro-home-login-wrap { padding: 16px; }
    .lpro-home-login-wrap .lpro-login-card { padding: 28px 22px; width: 100%; max-width: 400px; }

    /* Manual top nav tabs: wrap so every category stays visible */
    .lpro-manual-nav {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    .lpro-navtab { min-width: 64px; min-height: 56px; padding: 0 8px; }
}

@media (max-width: 700px) {
    .lpro-shell { flex-direction: row; }
    .lpro-sidebar { width: 264px; height: 100%; }
    .lpro-main { overflow-y: auto; }

    .lpro-manual-topbar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .lpro-manual-nav { order: 3; width: 100%; justify-content: flex-start; }

    .lpro-doc-frame { min-height: 60vh; }
}

/* ---------- Liturgy Planner ---------- */
.lpro-planner-new { margin-bottom: 16px; }
.lpro-planner-hint { color: #64748b; font-size: 13px; margin: 0 0 12px; }
.lpro-planner-new-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.lpro-planner-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #e2e8f0;
}
.lpro-planner-row:last-child { border-bottom: 0; }
.lpro-planner-row-main { flex: 1; min-width: 0; }
.lpro-planner-title { font-weight: 600; color: #0f1f36; text-decoration: none; }
.lpro-planner-title:hover { color: #1a73e8; }
.lpro-planner-sub { font-size: 12px; color: #64748b; }
.lpro-planner-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* Weekly planner editor */
.lpro-planner-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.lpro-planner-topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lpro-planner-topbar-left h1 { margin: 0; font-size: 20px; color: #0f1f36; }
.lpro-planner-year { font-size: 12px; color: #64748b; }
.lpro-planner-topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpro-save-state { font-size: 12px; color: #64748b; min-width: 90px; text-align: right; }

.lpro-planner-select-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}
.lpro-planner-select { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.lpro-planner-select label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.lpro-planner-select-help { font-size: 11px; color: #b45309; }

.lpro-planner-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.lpro-planner-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lpro-planner-tab:hover { background: #f8fafc; }
.lpro-planner-tab-active { background: #0f1f36; color: #fff; border-color: #0f1f36; }
.lpro-planner-tab-off { margin-left: 6px; font-size: 10px; font-weight: 700; color: #b45309; }
.lpro-planner-tab-active .lpro-planner-tab-off { color: #fbbf24; }

.lpro-planner-body { display: block; }
.lpro-planner-body-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}
.lpro-planner-edit { min-width: 0; }
.lpro-planner-preview { position: sticky; top: 14px; }
.lpro-planner-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}
.lpro-planner-preview iframe {
    width: 100%;
    height: 70vh;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

/* Section editors */
.lpro-planner-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; }
.lpro-planner-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.lpro-planner-section-head h2 { margin: 0; font-size: 17px; color: #0f1f36; }
.lpro-planner-section-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lpro-planner-include { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #334155; cursor: pointer; }
.lpro-planner-include input { cursor: pointer; }
.lpro-planner-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 8px;
}
.lpro-planner-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
    resize: vertical;
}
.lpro-planner-textarea:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,0.15); }
.lpro-planner-section-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.lpro-planner-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f8fafc;
}
.lpro-planner-empty-title { font-weight: 700; color: #0f1f36; margin-bottom: 4px; }
.lpro-planner-empty p { margin: 0; color: #64748b; font-size: 13px; }

.lpro-planner-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lpro-planner-form .lpro-field { flex: 1; min-width: 200px; }
.lpro-planner-subhead {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}
.lpro-planner-role { font-weight: 700; color: #334155; text-transform: none; letter-spacing: 0; }
.lpro-planner-invocation {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8fafc;
}
.lpro-planner-inv-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.lpro-planner-conclusion {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    color: #1f2937;
    margin: 6px 0 2px;
}
.lpro-planner-note { font-size: 11px; color: #94a3b8; margin: 0; }

.lpro-planner-response-row { margin-bottom: 12px; }

.lpro-planner-petition {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}
.lpro-planner-petition-off { opacity: .55; }
.lpro-planner-petition-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.lpro-planner-petition-head span { font-size: 13px; font-weight: 700; color: #0f1f36; }
.lpro-planner-petition-body { display: flex; flex-direction: column; gap: 8px; }
.lpro-planner-petition-body .lpro-select { width: 100%; }
.lpro-planner-namesline { font-size: 12px; color: #64748b; }
.lpro-planner-underline {
    display: inline-block;
    min-width: 200px;
    border-bottom: 1px solid #94a3b8;
    color: transparent;
}

@media (max-width: 900px) {
    .lpro-planner-body-preview { grid-template-columns: 1fr; }
    .lpro-planner-preview { position: static; }
    .lpro-planner-preview iframe { height: 55vh; }
    .lpro-planner-select { min-width: 140px; flex: 1; }
}

@media (max-width: 700px) {
    .lpro-planner-topbar { align-items: stretch; }
    .lpro-planner-topbar-right { justify-content: space-between; }
    .lpro-planner-tab { flex: 1 1 auto; }
}

/* ---------- Wedding template ---------- */
.lpro-wed-grid { display: grid; gap: 12px; align-items: start; }
.lpro-wed-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lpro-wed-grid .lpro-field, .lpro-wed-grid .lpro-wed-reading { min-width: 0; }
.lpro-wed-grid .lpro-field label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.lpro-wed-grid .lpro-field .lpro-search, .lpro-wed-grid .lpro-field .lpro-select { width: 100%; }
.lpro-wed-reading { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; background: #f8fafc; }
.lpro-wed-reading-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #0f1f36; margin-bottom: 6px; }
.lpro-wed-line { margin: 6px 0; }
.lpro-wed-line label { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.lpro-wed-line .lpro-select, .lpro-wed-line .lpro-search { width: 100%; }

.lpro-wed-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.lpro-wed-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    min-height: 44px;
    min-width: 0;
}
.lpro-wed-check:hover { background: #f8fafc; }
.lpro-wed-check input { min-width: 18px; min-height: 18px; cursor: pointer; flex: 0 0 auto; }
.lpro-wed-check span { font-size: 14px; color: #1f2937; }

/* Generic inline-editable text field for custom list rows (reusable, functional only). */
.lpro-wed-check .lpro-inline-edit { flex: 1 1 auto; min-width: 120px; cursor: text; font-size: 14px; padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 4px; }

.lpro-planner-petition-actions { display: flex; gap: 4px; align-items: center; }

@media (max-width: 700px) {
    .lpro-wed-2col { grid-template-columns: 1fr; }
    .lpro-wed-checklist { grid-template-columns: 1fr; gap: 4px; }
    .lpro-planner-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lpro-planner-tab { flex: 0 0 auto; }
}
