@charset "UTF-8";

:root {
    --brand: #6d2932;
    --brand-dark: #4a1720;
    --brand-soft: #f5e9e9;
    --ink: #28231f;
    --ink-soft: #6e6760;
    --paper: #fff;
    --canvas: #f6f3ee;
    --line: #e8e1d9;
    --gold: #b98a3d;
    --green: #39725b;
    --blue: #416b85;
    --red: #a33d45;
    --shadow: 0 18px 48px rgba(62, 43, 32, .08);
    --radius: 18px;
    --radius-sm: 11px;
    --sidebar: 264px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 500; margin-bottom: .45rem; }
h2 { font-size: 1.12rem; }
code, .mono { font-family: "SFMono-Regular", Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { display: block; margin-bottom: .3rem; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }

.button { display: inline-flex; min-height: 42px; padding: .65rem 1rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink); font-size: .84rem; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--brand); background: var(--brand); color: white; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }
.button-primary:hover { filter: brightness(.92); }
.button-secondary { border-color: var(--line); background: var(--paper); }
.button-secondary:hover, .button-quiet:hover { border-color: #d6ccc2; background: #faf8f4; }
.button-quiet { border-color: transparent; color: var(--ink-soft); }
.button-link { min-height: auto; color: var(--brand); }
.button-danger { border-color: #eccbce; color: var(--red); background: #fff7f7; }
.button-large { min-height: 50px; padding: .8rem 1.25rem; }
.button-small { min-height: 33px; padding: .35rem .65rem; font-size: .76rem; }
.button-full { width: 100%; }
.icon-button { display: inline-flex; width: 38px; height: 38px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink-soft); font-size: 1.05rem; }
.icon-button:hover { border-color: var(--brand); color: var(--brand); }
.danger-icon { color: var(--red); }

.guest-body { min-height: 100vh; overflow-x: hidden; background: #f2eee7; }
.guest-body::before { content: ""; position: fixed; inset: 0; z-index: -2; opacity: .75; background: linear-gradient(120deg, rgba(109,41,50,.08), transparent 40%), radial-gradient(circle at 90% 90%, rgba(185,138,61,.14), transparent 35%); }
.guest-orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); }
.guest-orb-one { top: -180px; left: -120px; width: 420px; height: 420px; background: rgba(109,41,50,.07); }
.guest-orb-two { right: -120px; bottom: -170px; width: 440px; height: 440px; border: 70px solid rgba(185,138,61,.08); }
.guest-shell { width: min(100% - 2rem, 960px); margin: 0 auto; padding: 2.5rem 0 3rem; }
.guest-brand, .app-brand { display: inline-flex; align-items: center; gap: .8rem; }
.guest-brand { margin-bottom: 2rem; }
.guest-brand > span:last-child { display: flex; flex-direction: column; }
.guest-brand strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.guest-brand small { color: var(--ink-soft); font-size: .7rem; letter-spacing: .04em; }
.brand-mark { display: inline-grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50% 50% 45% 45%; background: var(--brand); color: #fff; font-family: Georgia, serif; font-size: 1.45rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,.18); }
.auth-card { width: min(100%, 480px); margin: 1rem auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.auth-card-wide { width: min(100%, 760px); }
.auth-heading { margin-bottom: 1.75rem; }
.auth-heading p { margin: 0; color: var(--ink-soft); }
.auth-divider { display: flex; margin: 1.5rem 0; align-items: center; gap: 1rem; color: #aaa098; font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-alternate { margin: 0; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.auth-alternate a { color: var(--brand); font-weight: 750; }
.guest-footer { margin: 2rem 0 0; color: #8b8178; font-size: .72rem; text-align: center; }
.install-card { display: grid; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); grid-template-columns: minmax(260px, .7fr) minmax(440px, 1.3fr); }
.install-intro { padding: 3rem 2.5rem; background: var(--brand); color: white; }
.install-intro .eyebrow { color: #dfbe83; }
.install-intro p { color: rgba(255,255,255,.72); }
.requirements { display: grid; margin-top: 2rem; gap: .65rem; }
.requirement { display: flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.86); font-size: .8rem; }
.requirement span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.requirement.failed { color: #ffc2c7; }
.install-form { display: grid; padding: 2.5rem; gap: 1.5rem; }
.install-form fieldset { margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.install-form legend { padding: 0 .5rem; font-family: Georgia, serif; font-size: 1.05rem; }

.form-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.field { display: flex; min-width: 0; flex-direction: column; gap: .42rem; color: #514a44; font-size: .79rem; font-weight: 700; }
.field small { color: #91877f; font-size: .7rem; font-weight: 450; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select, .role-form select { width: 100%; min-height: 43px; border: 1px solid #ded6ce; border-radius: 9px; outline: none; background: #fff; color: var(--ink); font-size: .87rem; font-weight: 450; transition: .15s ease; }
.field input, .filter-bar input { padding: .65rem .78rem; }
.field select, .filter-bar select, .role-form select { padding: .58rem .72rem; }
.field textarea { min-height: 100px; padding: .7rem .78rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.field input:disabled { background: #f3f0ec; color: #8a827a; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink-soft); font-size: .78rem; font-weight: 450; }
.check-row input, .permission-item input { width: 17px; height: 17px; margin: .1rem 0 0; accent-color: var(--brand); }
.form-actions { display: flex; margin-top: .5rem; align-items: center; justify-content: flex-end; gap: .75rem; }
.notice-box { padding: 1rem 1.1rem; border: 1px solid #eadbbd; border-radius: 11px; background: #fffbf2; color: #75603c; font-size: .78rem; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar); padding: 1.2rem 1rem; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); background: #27221f; color: #f7f1ea; }
.sidebar-head { display: flex; min-height: 46px; padding: 0 .3rem; align-items: center; justify-content: space-between; }
.app-brand { font-family: Georgia, serif; font-size: 1.05rem; }
.app-brand .brand-mark { width: 34px; height: 34px; background: var(--brand); font-size: 1.1rem; }
.sidebar-close { display: none; border-color: rgba(255,255,255,.15); background: transparent; color: white; }
.organization-card { display: flex; margin: 1.2rem 0; padding: 1rem; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.045); }
.organization-card .eyebrow { color: #b9a78e; }
.organization-card strong { overflow: hidden; font-family: Georgia, serif; font-size: .94rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.organization-card small { margin-top: .2rem; color: #a89d94; font-size: .68rem; }
.main-nav { display: flex; overflow-y: auto; padding-right: .15rem; flex-direction: column; gap: .2rem; }
.nav-link { display: flex; min-height: 42px; padding: .6rem .72rem; align-items: center; gap: .75rem; border-radius: 9px; color: #bbb2aa; font-size: .8rem; font-weight: 600; transition: .15s ease; }
.nav-link:hover { background: rgba(255,255,255,.055); color: white; }
.nav-link.is-active { background: var(--brand); color: white; box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.nav-icon { display: inline-grid; width: 20px; place-items: center; font-size: .95rem; }
.nav-section { padding: 1.2rem .72rem .35rem; color: #7f756e; font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; padding: .55rem .35rem; align-items: center; gap: .65rem; border-radius: 10px; }
.user-chip:hover { background: rgba(255,255,255,.05); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--avatar, var(--brand)); color: white; font-size: .67rem; font-weight: 800; }
.user-chip > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.user-chip strong { overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { color: #91867f; font-size: .65rem; }
.sidebar-backdrop { display: none; }
.main-area { display: flex; min-width: 0; min-height: 100vh; margin-left: var(--sidebar); flex-direction: column; grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 70px; padding: .8rem clamp(1rem, 3vw, 2.4rem); align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(221,213,204,.8); background: rgba(246,243,238,.9); backdrop-filter: blur(14px); }
.menu-button { display: none; }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title .eyebrow { margin: 0; font-size: .56rem; }
.topbar-title strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.org-switcher { position: relative; }
.org-switcher summary { list-style: none; }
.org-switcher summary::-webkit-details-marker { display: none; }
.dropdown-card { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 10; width: 255px; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.dropdown-item { display: flex; width: 100%; padding: .7rem .8rem; flex-direction: column; align-items: flex-start; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.dropdown-item:hover, .dropdown-item.is-current { background: var(--brand-soft); }
.dropdown-item strong { font-size: .78rem; }
.dropdown-item small { color: var(--ink-soft); font-size: .67rem; }
.content-area { width: min(100%, 1500px); padding: clamp(1.25rem, 3vw, 2.5rem); flex: 1; }
.app-footer { display: flex; padding: 1rem 2.5rem 1.4rem; justify-content: space-between; color: #9a9087; font-size: .64rem; }

.alert { display: flex; margin-bottom: 1rem; padding: .8rem .95rem; align-items: flex-start; gap: .7rem; border: 1px solid; border-radius: 11px; background: white; font-size: .78rem; box-shadow: 0 8px 20px rgba(50,35,25,.04); }
.alert > span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; font-size: .7rem; font-weight: 800; }
.alert > div { flex: 1; }
.alert ul { margin: .35rem 0 0; padding-left: 1rem; }
.alert button { margin-left: auto; border: 0; background: none; color: inherit; }
.alert-success { border-color: #c9e3d6; color: #326149; }.alert-success > span { background: var(--green); }
.alert-warning { border-color: #eadbbd; color: #80652f; }.alert-warning > span { background: var(--gold); }
.alert-error { border-color: #eccbce; color: #8b343b; }.alert-error > span { background: var(--red); }
.copy-panel { display: flex; margin-bottom: 1rem; padding: .9rem 1rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #d9c7a3; border-radius: 12px; background: #fffaf0; }
.copy-panel > div { min-width: 0; }
.copy-panel code { display: block; overflow: hidden; max-width: 700px; color: #66502e; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.page-heading { display: flex; margin-bottom: 1.5rem; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.page-heading p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.hero-heading { padding: .4rem 0 .3rem; }
.heading-actions { display: flex; align-items: center; gap: .65rem; }
.back-link { display: inline-block; margin-bottom: .65rem; color: var(--ink-soft); font-size: .75rem; font-weight: 650; }
.back-link:hover { color: var(--brand); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 28px rgba(63,45,32,.045); }
.panel-head { display: flex; padding: 1.3rem 1.35rem 1rem; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head h2 { margin: 0; font-family: Georgia, serif; font-size: 1.12rem; font-weight: 500; }
.panel-head a { color: var(--brand); font-size: .73rem; font-weight: 750; }
.panel-head-padded { padding-bottom: 1.25rem; }
.stats-grid { display: grid; margin-bottom: 1.5rem; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { display: flex; min-height: 130px; padding: 1.25rem; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 8px 25px rgba(63,45,32,.04); }
.stat-card > div { display: flex; min-width: 0; flex-direction: column; }
.stat-card > div > span { color: var(--ink-soft); font-size: .7rem; font-weight: 700; }
.stat-card strong { margin: .15rem 0; font-family: Georgia, serif; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; white-space: nowrap; }
.stat-card small { color: #9b9188; font-size: .65rem; }
.stat-featured { background: var(--brand); color: white; }.stat-featured > div > span, .stat-featured small { color: rgba(255,255,255,.7); }
.stat-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: rgba(255,255,255,.14); font-weight: 800; }
.stat-card:not(.stat-featured) .stat-icon { background: var(--brand-soft); color: var(--brand); }
.stat-card .stat-icon-gold { background: #fff5e3; color: var(--gold); }.stat-card .stat-icon-green { background: #eaf5ef; color: var(--green); }.stat-card .stat-icon-blue { background: #eaf2f7; color: var(--blue); }
.dashboard-grid { display: grid; margin-bottom: 1.5rem; gap: 1rem; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
.person-list, .event-list { padding: 0 .65rem .65rem; }
.person-row { display: flex; padding: .75rem .7rem; align-items: center; gap: .75rem; border-top: 1px solid #f1ece7; border-radius: 9px; }
.person-row:hover { background: #faf8f5; }
.member-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 850; }
.member-avatar.small { width: 32px; height: 32px; border-radius: 9px; font-size: .62rem; }
.member-avatar.large { width: 70px; height: 70px; border-radius: 20px; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.person-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.person-main strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.person-main small, .cell-stack small { color: #91877e; font-size: .66rem; }
.badge { display: inline-flex; width: fit-content; padding: .24rem .48rem; border: 1px solid var(--line); border-radius: 999px; background: #f5f2ee; color: #6d655e; font-size: .59rem; font-weight: 800; letter-spacing: .025em; white-space: nowrap; }
.badge-active, .badge-event-published { border-color: #cae2d6; background: #edf8f2; color: var(--green); }
.badge-pending, .badge-event-draft { border-color: #eadbbd; background: #fff9ec; color: #8c682d; }
.badge-inactive, .badge-event-completed { background: #f0efed; color: #77716c; }
.badge-deceased, .badge-event-cancelled { border-color: #eccbce; background: #fff4f5; color: var(--red); }
.event-row { display: grid; padding: .85rem .7rem; align-items: center; gap: .8rem; border-top: 1px solid #f1ece7; grid-template-columns: 43px 1fr; }
.event-row time { display: flex; height: 48px; align-items: center; justify-content: center; flex-direction: column; border-radius: 9px; background: var(--brand-soft); color: var(--brand); line-height: 1; }
.event-row time strong { font-family: Georgia, serif; font-size: 1.2rem; }.event-row time span { margin-top: .18rem; font-size: .5rem; font-weight: 800; }
.event-row > div { display: flex; min-width: 0; flex-direction: column; }.event-row > div strong { overflow: hidden; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }.event-row small { color: #91877e; font-size: .64rem; }.event-row > div > span { color: var(--gold); font-size: .59rem; font-weight: 750; }
.quick-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.quick-card { display: flex; padding: 1rem 1.1rem; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.quick-card:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: 0 8px 22px rgba(63,45,32,.05); }
.quick-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }.quick-card > div { display: flex; flex: 1; flex-direction: column; }.quick-card strong { font-size: .75rem; }.quick-card small { color: var(--ink-soft); font-size: .63rem; }.quick-card b { color: var(--brand); }

.filter-bar { display: flex; margin-bottom: 1rem; padding: .75rem; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.search-field { position: relative; display: flex; min-width: 240px; flex: 1; align-items: center; }
.search-field span { position: absolute; left: .75rem; color: #a0978e; }.search-field input { padding-left: 2.1rem; }
.filter-bar select { width: auto; min-width: 170px; }
.table-panel { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .76rem; }
th { padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: #faf8f5; color: #8b8178; font-size: .58rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: .8rem 1rem; border-bottom: 1px solid #f0ece7; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfbf9; }
.table-person { display: flex; min-width: 180px; align-items: center; gap: .65rem; }.table-person strong { font-size: .76rem; }
.cell-stack { display: flex; min-width: 0; flex-direction: column; }.cell-stack strong { font-size: .75rem; }
.table-actions { text-align: right; }
.pagination { display: flex; padding: .9rem 1rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .68rem; }
.pagination > div { display: flex; align-items: center; gap: .4rem; }.page-current { padding: 0 .5rem; }
.empty-state { display: flex; min-height: 300px; padding: 2rem; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-state > span { display: grid; width: 54px; height: 54px; margin-bottom: 1rem; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .35rem; font-family: Georgia, serif; font-weight: 500; }.empty-state p { max-width: 400px; color: var(--ink-soft); font-size: .8rem; }
.empty-state.compact { min-height: 180px; }.empty-state.compact > span { width: 42px; height: 42px; margin-bottom: .6rem; }.empty-state.compact h3 { margin-bottom: .2rem; font-size: .95rem; }

.record-layout, .settings-layout, .detail-grid { display: grid; align-items: start; gap: 1rem; grid-template-columns: minmax(0, 1fr) 280px; }
.record-main, .settings-main, .detail-main { display: grid; gap: 1rem; }
.form-section { padding: 1.4rem; }
.section-heading { display: flex; margin-bottom: 1.3rem; align-items: flex-start; gap: .85rem; }
.section-heading > span { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: .61rem; font-weight: 850; }
.section-heading h2 { margin: .05rem 0 .15rem; font-family: Georgia, serif; font-weight: 500; }.section-heading p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.sticky-card { position: sticky; top: 90px; padding: 1.3rem; text-align: center; }.sticky-card h3 { margin: .8rem 0 .4rem; font-family: Georgia, serif; font-weight: 500; }.sticky-card p { color: var(--ink-soft); font-size: .72rem; }.sticky-card .button + .button { margin-top: .4rem; }
.danger-zone { padding: 1.1rem; border: 1px solid #eccbce; border-radius: 14px; background: #fff9f9; }.danger-zone h3 { margin-bottom: .3rem; color: var(--red); font-size: .82rem; }.danger-zone p { color: #966b6e; font-size: .68rem; }
.member-heading { align-items: center; }.member-title { display: flex; align-items: center; gap: 1rem; }.member-title .back-link { margin-bottom: .25rem; }.member-title h1 { margin-bottom: .25rem; }
.detail-card { overflow: hidden; }.info-grid { display: grid; margin: 0; padding: .2rem 1.35rem 1.35rem; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.info-grid div { min-width: 0; }.info-grid dt { color: #958b82; font-size: .62rem; font-weight: 750; text-transform: uppercase; }.info-grid dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-size: .8rem; font-weight: 600; }
.notes-content { min-height: 60px; margin: 0; padding: 0 1.35rem 1.35rem; color: var(--ink-soft); font-size: .78rem; }
.simple-list { padding: 0 .75rem .75rem; }.simple-list > div { display: flex; padding: .75rem .6rem; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #f0ece7; }.simple-list > div > span { display: flex; flex-direction: column; }.simple-list strong { font-size: .75rem; }.simple-list small { color: var(--ink-soft); font-size: .64rem; }
.detail-aside { display: grid; gap: 1rem; }.timeline-card { padding: 1.2rem; }.timeline-card h2 { font-family: Georgia, serif; font-weight: 500; }.timeline { display: grid; gap: 0; }.timeline > div { position: relative; display: flex; min-height: 60px; padding: 0 0 1rem 1.3rem; flex-direction: column; }.timeline > div::before { content: ""; position: absolute; top: 6px; bottom: -5px; left: 4px; width: 1px; background: var(--line); }.timeline > div:last-child::before { display: none; }.timeline > div > span { position: absolute; top: 3px; left: 0; width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50%; background: white; }.timeline strong { font-size: .71rem; }.timeline small { color: var(--ink-soft); font-size: .64rem; }

.invite-panel { display: flex; margin-bottom: 1rem; padding: 1.2rem; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }.invite-panel > div { display: flex; align-items: center; gap: .8rem; }.invite-panel h2 { margin-bottom: .25rem; font-family: Georgia, serif; font-weight: 500; }.invite-panel p { margin: 0; color: var(--ink-soft); font-size: .72rem; }.invite-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }.inline-form { display: grid; align-items: end; gap: .6rem; grid-template-columns: minmax(190px, 1fr) minmax(145px, .7fr) auto; }.role-form { display: flex; min-width: 330px; align-items: center; gap: .4rem; }.role-form select { min-height: 34px; }
.disclosure-card { margin-bottom: 1rem; overflow: hidden; }.disclosure-card > summary { display: flex; padding: 1.1rem 1.2rem; align-items: center; justify-content: space-between; list-style: none; }.disclosure-card > summary::-webkit-details-marker { display: none; }.disclosure-card > summary > span { display: flex; flex-direction: column; }.disclosure-card > summary strong { font-family: Georgia, serif; font-weight: 500; }.disclosure-card > summary small { color: var(--ink-soft); font-size: .68rem; }.disclosure-card > summary b { color: var(--brand); font-size: .68rem; }.disclosure-card[open] > summary { border-bottom: 1px solid var(--line); }
.role-editor { display: grid; padding: 1.2rem; gap: 1rem; }.permission-group { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 11px; }.permission-group legend { padding: 0 .4rem; color: var(--ink-soft); font-size: .65rem; font-weight: 800; text-transform: uppercase; }.permission-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.permission-grid.one-column { grid-template-columns: 1fr; }.permission-item { display: flex; min-width: 0; padding: .6rem; align-items: flex-start; gap: .6rem; border-radius: 8px; background: #faf8f5; }.permission-item span { display: flex; min-width: 0; flex-direction: column; }.permission-item strong { font-size: .68rem; }.permission-item small { overflow: hidden; color: #9a9087; font-size: .56rem; text-overflow: ellipsis; }
.role-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }.role-card { padding: 1.2rem; }.role-card-head { display: grid; align-items: start; gap: .8rem; grid-template-columns: 38px 1fr auto; }.role-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-family: Georgia, serif; }.role-card h2 { margin: .1rem 0 .2rem; font-family: Georgia, serif; font-weight: 500; }.role-card p { margin: 0; color: var(--ink-soft); font-size: .68rem; }.role-metrics { display: flex; margin: 1rem 0; padding: .8rem 0; gap: 1.2rem; border-block: 1px solid var(--line); color: var(--ink-soft); font-size: .66rem; }.role-metrics strong { color: var(--ink); }.role-edit > summary { list-style: none; }.role-edit > summary::-webkit-details-marker { display: none; }.role-edit[open] > summary { margin-bottom: .5rem; }
.color-field { display: flex; align-items: center; gap: .6rem; }.color-field input { width: 55px; padding: .15rem; }.color-field code { color: var(--ink-soft); font-size: .7rem; }.brand-preview { display: grid; width: 68px; height: 68px; margin: 0 auto; place-items: center; border-radius: 21px; background: var(--preview); color: white; font-family: Georgia, serif; font-size: 1.8rem; }.settings-aside { display: grid; gap: 1rem; }.simple-form-card { width: min(100%, 800px); margin: 0 auto; padding: 1.5rem; }.profile-meta { display: grid; margin-top: 1rem; padding-top: 1rem; gap: .2rem; border-top: 1px solid var(--line); text-align: left; }.profile-meta span { margin-top: .4rem; color: var(--ink-soft); font-size: .6rem; text-transform: uppercase; }.profile-meta strong { font-size: .7rem; }

.event-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.event-card { display: grid; min-height: 240px; overflow: hidden; grid-template-columns: 88px 1fr; }.event-date { display: flex; padding: 1rem; align-items: center; justify-content: center; flex-direction: column; background: var(--brand); color: white; }.event-date strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; }.event-date span { margin: .25rem 0; font-size: .62rem; font-weight: 850; letter-spacing: .12em; }.event-date small { color: rgba(255,255,255,.65); font-size: .6rem; }.event-body { display: flex; min-width: 0; padding: 1.2rem; flex-direction: column; }.event-top { display: flex; align-items: center; justify-content: space-between; }.event-top small { color: var(--ink-soft); font-size: .62rem; }.event-body h2 { margin: 1rem 0 .4rem; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }.event-body p { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: .72rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.event-meta { display: flex; margin-top: auto; flex-wrap: wrap; gap: .7rem; color: #786e66; font-size: .65rem; }.card-actions { display: flex; margin-top: 1rem; align-items: center; gap: .5rem; }
.action-disclosures { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.padded-form { padding: 1.2rem; }.finance-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }.due-list { padding: 0 .75rem .75rem; }.due-list > div { display: flex; padding: .8rem .6rem; align-items: center; justify-content: space-between; border-top: 1px solid #f0ece7; }.due-list > div > span { display: flex; flex-direction: column; }.due-list strong { font-size: .73rem; }.due-list small { color: var(--ink-soft); font-size: .62rem; }.due-amount { text-align: right; }
.metadata { position: relative; }.metadata summary { color: var(--brand); font-size: .68rem; font-weight: 750; }.metadata pre { position: absolute; right: 0; z-index: 5; width: 360px; max-height: 220px; overflow: auto; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: #27221f; color: #f4ede5; box-shadow: var(--shadow); font-size: .62rem; white-space: pre-wrap; }
.admin-section { margin-bottom: 1rem; }.role-form.compact { min-width: 180px; }
.error-body { display: grid; min-height: 100vh; padding: 1.5rem; place-items: center; background: var(--canvas); }.error-card { width: min(100%, 450px); padding: 2.5rem; border: 1px solid var(--line); border-radius: 22px; background: white; text-align: center; box-shadow: var(--shadow); }.error-card > span { display: block; color: var(--brand); font-family: Georgia, serif; font-size: 4rem; }.error-card h1 { font-size: 1.8rem; }.error-card p { color: var(--ink-soft); font-size: .84rem; }

@media (max-width: 1150px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invite-panel { align-items: stretch; flex-direction: column; }.inline-form { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 900px) {
    .app-shell { display: block; }.sidebar { transform: translateX(-105%); transition: transform .2s ease; }.sidebar.is-open { transform: translateX(0); }.sidebar-close, .menu-button { display: inline-flex; }.sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(30,24,20,.45); backdrop-filter: blur(2px); }.sidebar.is-open + .sidebar-backdrop { display: block; }.main-area { margin-left: 0; }.topbar { gap: .8rem; }.topbar-title { margin-right: auto; }
    .dashboard-grid, .finance-grid { grid-template-columns: 1fr; }.event-grid { grid-template-columns: 1fr; }.record-layout, .settings-layout, .detail-grid { grid-template-columns: 1fr; }.record-aside, .settings-aside, .detail-aside { order: -1; }.sticky-card { position: static; }.record-aside .sticky-card, .settings-aside .sticky-card { text-align: left; }.record-aside .sticky-card .button { width: auto; }.install-card { grid-template-columns: 1fr; }.install-intro { padding: 2rem; }
}

@media (max-width: 680px) {
    .guest-shell { width: min(100% - 1rem, 960px); padding-top: 1rem; }.guest-brand { margin: .5rem 1rem 1.2rem; }.auth-card { padding: 1.4rem; border-radius: 18px; }.install-card { border-radius: 18px; }.install-form { padding: 1.2rem; }.install-intro { padding: 1.5rem; }
    .content-area { padding: 1rem; }.topbar { min-height: 62px; padding: .65rem 1rem; }.topbar-title .eyebrow { display: none; }.topbar-title strong { font-size: .92rem; }.org-switcher { display: none; }.app-footer { padding: 1rem; flex-direction: column; gap: .2rem; }
    .page-heading { align-items: stretch; flex-direction: column; }.page-heading h1 { font-size: 2rem; }.heading-actions { flex-wrap: wrap; }.heading-actions .button { flex: 1; }.stats-grid, .stats-grid.three { grid-template-columns: 1fr 1fr; }.stat-card { min-height: 112px; padding: 1rem; }.stat-icon { display: none; }.stat-card strong { font-size: 1.35rem; }.quick-grid { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }.search-field { min-width: 0; }.filter-bar select { width: 100%; }.pagination { align-items: stretch; flex-direction: column; gap: .7rem; }.pagination > div { justify-content: space-between; }
    .form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.form-actions { align-items: stretch; flex-direction: column-reverse; }.form-actions .button { width: 100%; }.member-heading { align-items: stretch; }.member-title { align-items: flex-start; }.member-title .member-avatar { display: none; }.info-grid { grid-template-columns: 1fr; }.info-grid .span-2 { grid-column: 1; }
    .inline-form { grid-template-columns: 1fr; }.role-form { min-width: 250px; flex-wrap: wrap; }.permission-grid, .permission-grid.one-column { grid-template-columns: 1fr; }.role-grid { grid-template-columns: 1fr; }.event-card { grid-template-columns: 68px 1fr; }.action-disclosures { grid-template-columns: 1fr; }.copy-panel { align-items: stretch; flex-direction: column; }.copy-panel .button { width: 100%; }.metadata pre { right: auto; left: 0; width: min(80vw, 340px); }
}

@media (max-width: 420px) {
    .stats-grid, .stats-grid.three { grid-template-columns: 1fr; }.stat-card { min-height: 98px; }.stat-icon { display: grid; }.page-heading h1 { font-size: 1.8rem; }.event-card { grid-template-columns: 1fr; }.event-date { min-height: 70px; flex-direction: row; gap: .4rem; }.event-date strong { font-size: 1.5rem; }
}

@media print {
    .sidebar, .topbar, .app-footer, .heading-actions, .filter-bar, .button, form { display: none !important; }.main-area { margin: 0; }.content-area { padding: 0; }.panel { box-shadow: none; }
}
