:root {
    --bg: #f5f4ef;
    --surface: #ffffff;
    --ink: #192c2b;
    --muted: #73807c;
    --line: #e1e5df;
    --sage: #e7eee3;
    --sage-deep: #47634e;
    --gold: #e9c65e;
    --gold-hover: #dcba51;
    --red: #a64f3f;
    --red-bg: #faeae4;
    --radius: 18px;
    --shadow: 0 16px 55px rgba(31, 47, 37, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration-color: #a6b4a5; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
svg { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.8vw, 35px); letter-spacing: -.9px; line-height: 1.2; margin-bottom: 0; font-weight: 550; }
h2 { font-size: 21px; font-weight: 550; letter-spacing: -.4px; margin-bottom: 18px; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 600; margin: 21px 0 12px; }
p { margin-bottom: 16px; }
small, .small { font-size: 12px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid #7d936c; outline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.muted { color: var(--muted); }
.break-word, .preserve-lines { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: white; padding: 12px; }
.rail { width: 92px; position: fixed; inset: 0 auto 0 0; background: #fbfaf6; border-right: 1px solid var(--line); padding: 26px 12px 16px; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 30px; }
.brand-icon { display: grid; place-items: center; height: 43px; width: 43px; background: var(--sage); color: var(--sage-deep); border-radius: 14px; }
.brand-icon svg { width: 25px; height: 25px; }
.brand-text { display: none; font-size: 24px; font-weight: 650; letter-spacing: -1px; }
.brand-text span { font-weight: 350; }
.rail nav { display: grid; gap: 6px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 8px 4px; border-radius: 12px; text-decoration: none; border: 0; background: transparent; width: 100%; color: #78837a; font-size: 10px; font-weight: 500; }
.nav-item:hover { background: #f0f1e9; color: var(--ink); }
.nav-item.active { background: #e8eddf; color: #40563e; }
.rail-bottom { margin-top: auto; padding-top: 32px; }
.rail-bottom form { margin: 0; }
.workspace { max-width: 1640px; margin-left: 92px; padding: 36px 44px 22px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: #78847b; margin-bottom: 10px; }
.eyebrow span { font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.today-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #e6eade; color: #596c4a; font-size: 14px; text-decoration: none; }
.mobile-menu { display: none !important; }
.hero { background: var(--sage); border-radius: 22px; min-height: 268px; display: flex; justify-content: space-between; align-items: center; padding: 35px 42px; margin-bottom: 24px; overflow: hidden; }
.hero h2 { font-size: 39px; font-weight: 500; letter-spacing: -1.3px; margin-bottom: 14px; }
.hero p { color: #647162; font-size: 14px; line-height: 1.8; margin-bottom: 23px; }
.hero-art { width: 280px; min-width: 240px; height: 220px; position: relative; margin-right: 65px; }
.paper-card { position: absolute; top: 9px; right: 25px; width: 180px; height: 216px; background: #fffcf5; box-shadow: 0 20px 20px #50684917; transform: rotate(8deg); border: 9px solid white; padding: 15px 16px; z-index: 2; }
.paper-label { display: block; font-size: 9px; letter-spacing: 1.4px; line-height: 1.7; color: #7e866f; }
.paper-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 18px auto 15px; border-radius: 50%; background: #e3e9d6; color: #687b50; }
.paper-check svg { width: 30px; height: 30px; }
.paper-line { display: block; width: 86%; height: 3px; border-radius: 2px; background: #e3e3d6; margin: 8px auto; }
.paper-line.short { width: 60%; }
.paper-bottom { display: block; font-size: 6px; letter-spacing: 2px; text-align: center; color: #87907a; margin-top: 16px; }
.hero-leaf { position: absolute; width: 44px; height: 100px; border-radius: 80% 0 80% 0; background: #98aa83; right: -8px; bottom: -4px; transform: rotate(23deg); }
.leaf-two { width: 36px; height: 78px; right: 27px; bottom: -23px; background: #b0bd9a; transform: rotate(-25deg); }
.button { min-height: 43px; padding: 11px 19px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; font-weight: 500; font-size: 12px; line-height: 1.5; transition: background .15s, transform .15s; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--gold); color: #30362b; }
.button.primary:hover { background: var(--gold-hover); }
.button.secondary { background: white; border-color: var(--line); }
.button.secondary:hover, .button.subtle:hover { background: #f2f4ed; }
.button.subtle { background: transparent; color: #596b57; padding-inline: 9px; }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 11px; }
.button.danger { background: var(--red-bg); color: var(--red); border-color: #edd1c6; }
.icon-button { display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: 9px; font-size: 23px; flex: 0 0 auto; }
.text-button { background: none; border: 0; padding: 10px; text-decoration: underline; font-size: 12px; }
.danger-text { color: var(--red); }
.text-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; margin-bottom: 24px; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.stack > .panel { margin-bottom: 0; }
.soft-panel { background: #edf1e7; border-color: #e3e8dd; }
.soft-panel p { color: #6b7967; font-size: 13px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin: 7px 0 0; }
.section-heading > svg { color: #8d9b83; }
.step-label { color: #9ba494; font-size: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 24px 0; }
.stat-card { display: flex; flex-direction: column; gap: 8px; border-radius: 17px; background: white; padding: 22px 23px; border: 1px solid var(--line); text-decoration: none; }
.stat-card > span { color: var(--muted); font-size: 11px; }
.stat-card strong { font-weight: 500; font-size: clamp(22px,2vw,29px); letter-spacing: -.7px; }
.stat-card small { color: #97a08e; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); gap: 24px; }
.dashboard-grid > .panel { align-self: start; }
.occurrence-row { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.occurrence-row:last-child { border-bottom: 0; padding-bottom: 0; }
.occurrence-row:hover .occurrence-info h3 { text-decoration: underline; }
.date-tile { background: #eff1e9; border-radius: 12px; min-width: 51px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #67775d; }
.date-tile span { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.date-tile strong { font-size: 22px; line-height: 1.2; font-weight: 500; }
.date-tile.overdue { background: var(--red-bg); color: var(--red); }
.occurrence-info { flex: 1; min-width: 0; }
.occurrence-info h3 { margin: 0 0 5px; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.occurrence-info p { color: #899187; font-size: 10px; margin: 0; }
.private-mark { margin-left: 8px; color: #9ba594; }
.private-mark svg { width: 12px; height: 12px; }
.occurrence-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.occurrence-meta > strong { font-size: 12px; font-weight: 550; }
.badge { display: inline-flex; align-items: center; width: fit-content; font-size: 10px; padding: 4px 9px; border-radius: 20px; line-height: 1.4; white-space: nowrap; font-weight: 450; }
.badge.neutral { background: #f0f2ec; color: #6c7965; }
.badge.green { background: #e8f0e3; color: #4d7148; }
.badge.amber { background: #fcf2cf; color: #8a702d; }
.badge.red { background: var(--red-bg); color: var(--red); }
.row-arrow { color: #b1b9aa; }
.row-arrow svg { width: 16px; height: 16px; }
.quiet-note { display: flex; gap: 14px; padding: 4px 8px; color: #84917d; }
.quiet-note > svg { margin-top: 3px; width: 19px; height: 19px; }
.quiet-note strong { font-size: 12px; color: #708066; }
.quiet-note p { font-size: 11px; line-height: 1.8; margin: 5px 0 0; }
.page-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 24px; }
.page-intro p { margin: 0; color: var(--muted); max-width: 700px; font-size: 13px; }
.notice { background: #eff3ea; border: 1px solid #dfe7d7; color: #52654b; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; font-size: 13px; overflow-wrap: anywhere; }
.notice.warning { background: #fff7dd; border-color: #eedfb0; color: #79632b; }
.notice.error { background: var(--red-bg); border-color: #edc9bd; color: #8d4435; }
.notice.success { background: #eaf3e7; border-color: #d5e5cd; color: #456440; }
.form-columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; margin-bottom: 25px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; min-width: 0; }
.label-line { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
label, .field-label { font-size: 12px; font-weight: 500; color: #57665b; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { border: 1px solid #dce2d8; border-radius: 9px; padding: 11px 12px; min-height: 43px; background: #fff; color: var(--ink); width: 100%; min-width: 0; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #a4aca0; }
input:focus, select:focus, textarea:focus { border-color: #96a689; }
textarea { resize: vertical; line-height: 1.7; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: #6c805e; flex: 0 0 auto; }
.check-line { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0; }
.check-line > label, label.check-line { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.check-line input { margin-top: 2px; }
.help { display: inline-block; position: relative; flex: 0 0 auto; line-height: 1; }
.help summary { list-style: none; display: grid; place-items: center; border-radius: 50%; width: 19px; height: 19px; border: 1px solid #cbd3c5; font: 11px/1 sans-serif; color: #7c8b71; }
.help summary::-webkit-details-marker { display: none; }
.help[open] summary { background: var(--sage); color: var(--ink); }
.help > div { position: fixed; z-index: 100; max-width: min(290px,calc(100vw - 24px)); width: 290px; background: #243c32; color: white; padding: 15px 17px; border-radius: 11px; box-shadow: 0 8px 30px #0002; font-size: 12px; line-height: 1.7; font-weight: 400; }
.show-password { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #74816b; margin: -5px 0 20px; }
.password-group { margin-bottom: 16px; }
.reminder-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.reminder-row input { max-width: 80px; }
.reminder-row select { flex: 1; }
.reminder-row > span { font-size: 11px; color: var(--muted); }
.reminder-row .icon-button { border: 0; width: 32px; color: #95a08d; }
.recipient-choice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.recipient-choice input { margin-top: 4px; }
.recipient-choice span { display: flex; flex-direction: column; min-width: 0; }
.recipient-choice strong { font-size: 12px; }
.recipient-choice small { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.recipient-choice strong small { display: inline-block; background: #f2f3e8; border-radius: 5px; padding: 1px 5px; font-size: 9px; margin-left: 6px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; }
.sticky-actions { position: sticky; bottom: 15px; background: #f5f4eff2; padding: 12px; border-radius: 13px; }
.sticky-actions .button { width: 100%; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.filter-bar > input { max-width: 440px; }
.filter-bar select { width: 160px; }
.search-field { display: flex; position: relative; flex: 1; max-width: 480px; }
.search-field > svg { position: absolute; left: 12px; top: 12px; color: #929e8b; width: 18px; height: 18px; }
.search-field input { padding-left: 39px !important; }
.pagination { display: flex; gap: 16px; align-items: center; justify-content: flex-end; padding-top: 24px; font-size: 12px; color: var(--muted); }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 22px; margin-bottom: 24px; }
.tabs a { padding: 9px 1px; color: var(--muted); text-decoration: none; font-size: 12px; }
.tabs a.active { color: #40583a; border-bottom: 2px solid #748967; }
.tabs.compact { border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-bottom: 0; gap: 2px; }
.tabs.compact a { padding: 6px 12px; border: 0; border-radius: 6px; }
.tabs.compact a.active { background: #edf1e5; }
.schedule-row { display: flex; align-items: center; gap: 17px; padding: 20px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.schedule-row:last-of-type { border-bottom: 0; }
.schedule-row h3 { margin: 0 0 5px; }
.schedule-row p { margin-bottom: 0; }
.item-icon { display: grid; place-items: center; width: 44px; height: 46px; background: #eff2e9; color: #7b8d6f; border-radius: 10px; flex: 0 0 auto; }
.push-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.push-right strong { font-size: 12px; }
.empty-state { padding: 42px 20px 48px; text-align: center; }
.empty-state p { color: var(--muted); max-width: 340px; margin: 0 auto 22px; font-size: 13px; }
.empty-state h3 { font-size: 19px; font-weight: 500; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: #eff2e8; color: #95a485; margin: 0 auto; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 24px; }
.detail-title { font-size: 30px; margin: 12px 0; overflow-wrap: anywhere; }
.detail-amount { font-size: 30px; font-weight: 500; margin-bottom: 20px; letter-spacing: -.7px; }
.detail-date { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; }
.detail-date svg { color: #91a080; }
.detail-date > span { font-size: 13px; }
.details-list { margin: 18px 0; }
.details-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.details-list dt { color: var(--muted); font-size: 12px; }
.details-list dd { margin: 0; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 6px; }
.attachment-row, .contact-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.attachment-row > a { font-size: 13px; overflow-wrap: anywhere; }
.contact-row > div { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.contact-row strong { font-size: 12px; }
.contact-row span, .contact-row small { font-size: 11px; color: var(--muted); }
.inline-form { margin: 0; }
.upload-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.upload-form .button { align-self: start; }
.summary-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 13px; }
.summary-line svg { color: #94a288; width: 18px; height: 18px; }
.summary-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; padding: 10px 0; font-size: 12px; }
.modal { width: min(540px,calc(100vw - 28px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 19px; padding: 28px; box-shadow: var(--shadow); color: var(--ink); overflow-y: auto; }
.modal::backdrop { background: #23352c66; backdrop-filter: blur(3px); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-heading h2 { margin: 4px 0 0; }
.modal-heading .icon-button { border: 0; margin: -5px -8px 0 0; }
.modal .button { margin-top: 8px; }
.member-editor { border-bottom: 1px solid var(--line); padding: 16px 0; }
.member-editor > summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.member-editor > summary > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member-editor summary strong { font-size: 13px; }
.member-editor summary small { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: #eef0e4; display: grid; place-items: center; color: #7f8e6f; flex: 0 0 auto; }
.member-form { padding: 23px 5px 8px; }
.permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 14px 0; }
.permission-grid .check-line { margin: 5px 0; }
.permission-grid label { font-size: 11px; }
.secret-display { display: block; background: #f1f4e9; padding: 18px; border-radius: 10px; word-break: break-all; margin: 20px 0; font-size: 16px; letter-spacing: 2px; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.recovery-codes code { background: #f4f5ef; padding: 10px; border-radius: 7px; font-size: 12px; word-break: break-all; }
.instruction-list { padding-left: 20px; color: var(--muted); font-size: 13px; }
.instruction-list li { margin-bottom: 10px; }
.spaced-form { margin-top: 20px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 24px; }
.plan-grid .panel { margin-bottom: 0; }
.plan-card ul { padding-left: 20px; color: #708067; font-size: 13px; line-height: 2.2; }
.plan-card form { margin: 12px 0 22px; }
.plan-price { font-size: 25px; letter-spacing: -.6px; margin-top: 20px; }
.plan-price small { color: var(--muted); font-size: 12px; }
.plan-facts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; margin: 20px 0; color: var(--muted); }
.plan-facts strong { color: var(--ink); }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.calendar-month { display: flex; align-items: center; gap: 18px; }
.calendar-month h2 { margin: 0; min-width: 150px; text-align: center; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.weekday { text-align: center; background: #f7f8f3; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px; color: #819074; font-size: 11px; }
.day-cell { min-height: 130px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.day-cell.outside { background: #fafbf8; color: #adb5a7; }
.day-number { display: grid; place-items: center; font-size: 12px; text-decoration: none; width: 27px; height: 27px; margin-bottom: 7px; border-radius: 50%; }
.today .day-number { background: #d8e4ca; color: #42573c; font-weight: 600; }
.calendar-event { display: block; border-radius: 5px; background: #eef3e6; color: #5d7552; padding: 4px 6px; margin-top: 5px; font-size: 10px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.calendar-event.type-bill { background: #fbf2d6; color: #887034; }
.calendar-event.type-task { background: #edf0f4; color: #65768b; }
.calendar-event.completed { opacity: .65; text-decoration: line-through; }
.calendar-event svg { width: 11px; height: 11px; margin-right: 3px; }
.calendar-agenda { display: none; }
.view-agenda .month-scroll { display: none; }
.view-agenda .calendar-agenda { display: block; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.help-grid .panel { margin-bottom: 0; }
.help-grid p { color: var(--muted); font-size: 13px; }
.help-grid + .panel { margin-top: 24px; }
.admin-hero { min-height: 220px; }
.admin-hero h2 { font-size: 31px; }
.admin-hero-icon svg { width: 130px; height: 130px; color: #acba9c; margin-right: 40px; stroke-width: .8; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 10px; letter-spacing: .4px; background: #f7f8f3; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; }
td .check-line { min-width: 150px; }
.checklist { padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 2.2; }
.copy-value { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin: 18px 0 28px; }
.copy-value code { font-size: 11px; overflow-wrap: anywhere; }
.code-list { padding-left: 18px; font-size: 11px; line-height: 2; overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 42px; padding: 18px 0 0; border-top: 1px solid #e3e7dd; font-size: 10px; color: #8c9783; }
.footer > div { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.public-main { max-width: 1220px; margin: auto; padding: 35px 32px 25px; }
.public-brand { display: inline-flex; align-items: center; font-size: 27px; font-weight: 600; letter-spacing: -1.2px; text-decoration: none; margin-bottom: 25px; }
.public-brand > span { font-weight: 350; }
.public-brand svg { color: #738763; width: 29px; height: 29px; margin-right: 11px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 630px; align-items: start; gap: 68px; padding: 20px 0; }
.auth-story { padding: 48px 8px; }
.auth-story h1 { font-size: clamp(38px,4.4vw,58px); line-height: 1.14; letter-spacing: -2px; font-weight: 450; margin: 22px 0; }
.auth-story p { color: #819076; font-size: 15px; line-height: 1.9; }
.auth-form { padding: 34px; box-shadow: 0 10px 35px #4d644408; }
.auth-form h2 { font-size: 27px; font-weight: 500; margin-bottom: 12px; }
.auth-form > p { font-size: 13px; margin-bottom: 24px; }
.auth-form .button.primary { width: 100%; margin-top: 7px; }
.auth-bottom { padding-top: 18px; border-top: 1px solid var(--line); }
.story-note { display: flex; gap: 10px; align-items: center; color: #87977a; font-size: 12px; }
.story-note svg { width: 17px; height: 17px; }
.home-illustration { position: relative; width: 260px; height: 215px; margin: 25px auto 20px; }
.house-body { position: absolute; bottom: 15px; left: 60px; width: 135px; height: 105px; background: #dde6d3; border-radius: 0 0 4px 4px; }
.house-roof { position: absolute; bottom: 119px; left: 44px; width: 0; height: 0; border-left: 84px solid transparent; border-right: 84px solid transparent; border-bottom: 74px solid #9bab8d; }
.house-door { position: absolute; bottom: 0; left: 77px; width: 30px; height: 63px; background: #aebc9c; border-radius: 12px 12px 0 0; }
.house-window { position: absolute; top: 26px; left: 21px; width: 30px; height: 33px; border: 4px solid #f9faf4; background: var(--gold); }
.illustration-sun { position: absolute; top: 5px; right: 4px; width: 47px; height: 47px; border-radius: 50%; background: #edcf78; }
.illustration-plant { position: absolute; bottom: 16px; left: 12px; width: 34px; height: 76px; background: #a6b796; border-radius: 70% 0 70% 0; transform: rotate(-15deg); }
.prose { max-width: 800px; margin: 20px auto; line-height: 1.9; }
@media (min-width: 1800px) { .workspace { margin-inline: auto; padding-left: 120px; } }
@media (max-width: 1180px) {
    .workspace { padding: 28px 26px 20px; }
    .hero-art { margin-right: 0; }
    .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(250px,1fr); }
    .panel { padding: 23px; }
    .stat-card { padding: 20px 16px; }
    .row-arrow { display: none; }
    .today-label { display: none; }
    .form-columns { grid-template-columns: 1fr 1fr; }
    .auth-layout { gap: 40px; }
}
@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid, .detail-grid, .form-columns { grid-template-columns: 1fr; }
    .dashboard-grid > .stack { display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-grid > .stack .quiet-note { grid-column: 1 / -1; }
    .hero { padding: 30px; }
    .hero-art { min-width: 190px; width: 190px; }
    .paper-card { right: 12px; transform: rotate(8deg) scale(.9); }
    .hero h2 { font-size: 34px; }
    .month-scroll { overflow-x: auto; }
    .month-grid { min-width: 640px; }
    .auth-layout { gap: 30px; }
    .auth-story h1 { font-size: 40px; }
    .auth-form { padding: 25px; }
}
@media (max-width: 680px) {
    body { font-size: 14px; }
    .rail { transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; width: 230px; padding: 22px 16px; box-shadow: 10px 0 35px #0001; }
    .rail.open { transform: none; visibility: visible; }
    .button, .button.small, .icon-button { min-height: 44px; }
    .help summary { width: 28px; height: 28px; }
    .help summary::after { content: ''; position: absolute; inset: -8px; }
    .brand { justify-content: flex-start; gap: 12px; padding: 0 10px; margin-bottom: 25px; }
    .brand-text { display: block; }
    .nav-item { flex-direction: row; justify-content: flex-start; gap: 16px; font-size: 13px; padding: 11px 17px; min-height: 46px; }
    .rail-bottom { padding-top: 20px; }
    .workspace { margin-left: 0; padding: 24px 17px 20px; }
    .mobile-menu { display: inline-grid !important; }
    .topbar { margin-bottom: 24px; align-items: flex-start; gap: 12px; }
    .topbar h1 { font-size: 25px; letter-spacing: -.7px; max-width: 260px; }
    .topbar .eyebrow { font-size: 8px; letter-spacing: 1.4px; max-width: 230px; }
    .topbar-actions { gap: 7px; }
    .topbar-actions .avatar { display: none; }
    .hero { padding: 26px; min-height: 260px; border-radius: 18px; align-items: flex-start; position: relative; }
    .hero > div:first-child { z-index: 3; position: relative; }
    .hero h2 { font-size: 33px; margin-bottom: 13px; }
    .hero p { font-size: 12px; line-height: 1.9; }
    .hero-art { position: absolute; right: -58px; top: 14px; transform: scale(.67); opacity: .45; }
    .hero .button { font-size: 11px; padding: 11px 14px; }
    .hero .eyebrow { font-size: 8px; }
    .stats-grid { gap: 12px; margin: 18px 0; }
    .stat-card { padding: 18px 15px; border-radius: 14px; gap: 7px; }
    .stat-card > span { font-size: 10px; }
    .stat-card strong { font-size: 24px; }
    .stat-card small { font-size: 9px; }
    .panel { padding: 21px 18px; border-radius: 15px; margin-bottom: 18px; }
    h2 { font-size: 19px; }
    .dashboard-grid { gap: 18px; }
    .dashboard-grid > .stack { display: flex; }
    .section-heading { gap: 12px; }
    .section-heading .text-link { font-size: 10px; white-space: nowrap; }
    .section-heading p { font-size: 10px; }
    .occurrence-row { gap: 11px; padding: 16px 0; flex-wrap: wrap; }
    .date-tile { min-width: 44px; width: 44px; height: 51px; border-radius: 10px; }
    .date-tile strong { font-size: 20px; }
    .occurrence-info { flex-basis: calc(100% - 70px); }
    .occurrence-info h3 { font-size: 13px; }
    .occurrence-meta { margin-left: 55px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: -6px; }
    .occurrence-meta > strong { font-size: 12px; }
    .badge { font-size: 9px; }
    .page-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
    .page-intro p { font-size: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    input:not([type=checkbox]):not([type=hidden]), select, textarea { font-size: 16px; min-height: 46px; }
    .field { margin-bottom: 19px; }
    .filter-bar { flex-wrap: wrap; gap: 9px; }
    .filter-bar > input, .search-field { max-width: none; flex-basis: 100%; }
    .filter-bar select { width: auto; flex: 1; }
    .filter-bar .button { flex: 0 0 auto; }
    .reminder-row input { max-width: 75px; }
    .reminder-row > span { display: none; }
    .schedule-row { flex-wrap: wrap; gap: 12px; }
    .schedule-row > div:nth-child(2) { flex: 1; min-width: 0; }
    .schedule-row > svg { display: none; }
    .schedule-row .push-right { width: 100%; margin-left: 56px; text-align: left; flex-direction: row; gap: 9px; }
    .schedule-row h3 { overflow-wrap: anywhere; font-size: 13px; }
    .detail-title { font-size: 27px; }
    .detail-amount { font-size: 27px; }
    .detail-date { gap: 9px; }
    .action-bar .button { flex: 1; }
    .permission-grid { grid-template-columns: 1fr; }
    .member-editor > summary { flex-wrap: wrap; }
    .member-editor > summary > .badge { margin-left: 48px; }
    .calendar-toolbar { flex-wrap: wrap; gap: 15px; }
    .calendar-month { gap: 12px; width: 100%; justify-content: space-between; }
    .calendar-month h2 { min-width: 0; font-size: 19px; }
    .calendar-toolbar .tabs { margin-left: auto; }
    .view-auto .month-scroll { display: none; }
    .view-auto .calendar-agenda { display: block; }
    .calendar-mode-auto .tabs.compact a:first-child { background: transparent; }
    .calendar-mode-auto .tabs.compact a:last-child { background: #edf1e5; color: #40583a; }
    .help-grid { grid-template-columns: 1fr; gap: 16px; }
    .table-scroll table { min-width: 620px; }
    .footer { flex-direction: column; align-items: flex-start; font-size: 9px; margin-top: 30px; gap: 12px; }
    .footer > span > .muted { display: none; }
    .public-main { padding: 24px 18px; }
    .public-brand { font-size: 25px; margin-bottom: 12px; }
    .auth-layout { display: flex; flex-direction: column; gap: 20px; padding-top: 0; min-height: 0; }
    .auth-story { padding: 20px 3px 0; }
    .auth-story h1 { font-size: 37px; letter-spacing: -1.2px; margin: 15px 0; }
    .auth-story p { font-size: 13px; }
    .auth-story .eyebrow { font-size: 8px; }
    .home-illustration, .story-note { display: none; }
    .auth-form { width: 100%; padding: 26px 22px; }
    .auth-form h2 { font-size: 25px; }
    .modal { padding: 23px 20px; }
    .admin-hero h2 { font-size: 28px; }
    .admin-hero-icon { display: none; }
    .attachment-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
