:root{--bg: #f4f1ea;--surface: #ffffff;--surface-2: #ece7dc;--text: #1d1f1c;--muted: #5b5f57;--border: #d6d0c3;--primary: #1f5f4a;--primary-hover: #174a39;--on-primary: #ffffff;--paid: #1e7a46;--paid-bg: #dff3e5;--due: #9a4a00;--due-bg: #fdeedb;--danger: #b3261e;--focus: #0b57d0;--admin: #6b3fa0;--radius: 14px;--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05);color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #141614;--surface: #1d201d;--surface-2: #262a26;--text: #eceee9;--muted: #a8ada4;--border: #3a3f39;--primary: #5cc49a;--primary-hover: #79d3ae;--on-primary: #0c1f17;--paid: #7fdc9f;--paid-bg: #1d3a28;--due: #ffb366;--due-bg: #3d2a14;--danger: #ff8a80;--focus: #8ab4f8;--admin: #c6a3f0;--shadow: none;color-scheme:dark}}:root[data-theme=dark]{--bg: #141614;--surface: #1d201d;--surface-2: #262a26;--text: #eceee9;--muted: #a8ada4;--border: #3a3f39;--primary: #5cc49a;--primary-hover: #79d3ae;--on-primary: #0c1f17;--paid: #7fdc9f;--paid-bg: #1d3a28;--due: #ffb366;--due-bg: #3d2a14;--danger: #ff8a80;--focus: #8ab4f8;--admin: #c6a3f0;--shadow: none;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2,h3{line-height:1.2;margin:0}a{color:var(--primary);text-underline-offset:2px;overflow-wrap:anywhere}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.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}.muted{color:var(--muted)}.small{font-size:.875rem}.prewrap{white-space:pre-wrap;margin:0;overflow-wrap:anywhere}.kicker{margin:0 0 .15rem;font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.error{color:var(--danger);font-weight:500;margin:.5rem 0}.page{max-width:40rem;margin:0 auto;padding:1rem 1rem 6rem;display:flex;flex-direction:column;gap:1rem}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:1rem}.topbar{background:var(--surface);border-bottom:1px solid var(--border)}.topbar-inner{max-width:40rem;margin:0 auto;padding:.75rem 1rem;display:flex;align-items:center;gap:.75rem}.topbar-title{flex:1;min-width:0}.topbar h1{font-size:1.6rem;font-weight:750;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.admin-band{background:var(--admin);color:#fff;text-align:center;font-size:.85rem;font-weight:600;padding:.25rem;letter-spacing:.04em}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .admin-band{color:#1a0f26}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:.6rem;margin:0;min-width:0}fieldset.card{min-inline-size:0}.card.narrow{width:100%;max-width:24rem;gap:.9rem}.card-title{font-size:1.1rem;font-weight:700;padding:0}legend.card-title{float:left;width:100%;margin-bottom:.4rem}legend.card-title+*{clear:both}.section-title{font-size:1.15rem;font-weight:700;margin:.5rem 0 .25rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.55rem 1rem;border-radius:10px;border:1px solid transparent;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;background:none;color:var(--text)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);color:var(--on-primary)}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface-2);border-color:var(--border);color:var(--text)}.btn-ghost{color:var(--primary)}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-danger{background:var(--danger);color:#fff}.btn-block{width:100%}.btn-icon{min-width:44px;padding:0;font-size:1.3rem}.btn-small{min-height:44px;padding:.3rem .7rem;font-size:.9rem}.toolbar{display:flex;flex-wrap:wrap;gap:.5rem}.field{display:flex;flex-direction:column;gap:.3rem;font-weight:600;font-size:.95rem}.field input,.field textarea,.field select{font:inherit;font-weight:400;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:.6rem .75rem;min-height:44px;width:100%}.field.compact{font-size:.85rem}.check-inline{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer}.check-inline input,.apt-check input,.type-option input{width:1.25rem;height:1.25rem;accent-color:var(--primary);flex:none}.choose-head{padding-top:1.5rem}.choose-head h1{font-size:1.8rem}.apt-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,5.5rem),1fr));gap:.6rem}.apt-tile{width:100%;aspect-ratio:1;min-height:72px;border-radius:var(--radius);border:2px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center}.apt-tile:hover{border-color:var(--primary)}.apt-tile[aria-current=true]{border-color:var(--primary);background:var(--paid-bg)}.apt-num{font-size:2rem;font-weight:800;line-height:1}.apt-sub{font-size:.8rem;color:var(--muted)}.admin-entry{margin-top:1rem;display:flex;flex-direction:column;gap:.4rem}.admin-entry h2{font-size:1.05rem}.admin-entry p{margin:0}.pay-group{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem}.pay-total{border-color:var(--primary);border-width:2px}.pay-total-row{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap;font-weight:600}.amount-xl{font-size:1.9rem;font-weight:800}.amount-lg{font-size:1.35rem;font-weight:800;white-space:nowrap}.pay-details{background:var(--surface-2);border-radius:10px;padding:.75rem}.pay-details-name{margin:0 0 .25rem;font-weight:700}.share-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}.share-title{font-size:1.05rem;font-weight:650}.share-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.type-badge{display:inline-flex;gap:.3rem;align-items:center;font-size:.85rem;font-weight:600;padding:.2rem .6rem;border-radius:999px;background:var(--surface-2)}.all-paid p{margin:0;font-weight:600;color:var(--paid)}.history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.history-row{display:flex;align-items:center;gap:.6rem;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:.5rem .75rem;flex-wrap:wrap}.history-icon{font-size:1.2rem}.history-main{flex:1;min-width:10rem;display:flex;flex-direction:column;color:var(--text);text-decoration:none;min-height:44px;justify-content:center}.history-title{font-weight:600}.history-amount{font-weight:700}.status{display:inline-block;font-size:.82rem;font-weight:700;padding:.15rem .55rem;border-radius:999px}.status-paid{background:var(--paid-bg);color:var(--paid)}.status-due{background:var(--due-bg);color:var(--due)}.status-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(2.75rem,1fr));gap:.35rem}.status-cell{width:100%;min-height:44px;border-radius:8px;font:inherit;font-weight:700;display:grid;place-items:center;border:2px solid var(--due);background:var(--due-bg);color:var(--due);cursor:pointer}.status-cell-paid{border-color:var(--paid);background:var(--paid);color:var(--surface)}.status-cell-none{border:2px dashed var(--border);background:transparent;color:var(--muted);cursor:default}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:.95rem}.table th,.table td{text-align:left;padding:.5rem .4rem;border-bottom:1px solid var(--border)}.table thead th{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.table tfoot th,.table tfoot td{font-weight:700;border-bottom:0}.table .num{text-align:right;white-space:nowrap}.row-highlight{background:var(--paid-bg)}.facts{margin:0;display:grid;gap:.5rem}.facts div{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}.facts dt{color:var(--muted)}.facts dd{margin:0;font-weight:600;text-align:right}.doc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.doc-list a{display:inline-flex;min-height:44px;align-items:center}.doc-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.form-steps{display:flex;flex-direction:column;gap:1rem}.type-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:.5rem}.type-option{display:flex;gap:.6rem;align-items:center;border:2px solid var(--border);border-radius:12px;padding:.6rem .75rem;cursor:pointer;min-height:56px}.type-option:has(input:checked){border-color:var(--primary);background:var(--paid-bg)}.type-option-body{display:flex;flex-direction:column}.type-option-label{font-weight:700}.month-picker{display:flex;flex-direction:column;gap:.5rem}.month-year{display:flex;align-items:center;justify-content:center;gap:1rem;font-weight:700;font-size:1.15rem}.month-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,4.5rem),1fr));gap:.4rem}.month-btn{min-height:44px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.month-btn[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.apt-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:.25rem .75rem}.apt-check{display:flex;gap:.5rem;align-items:center;min-height:44px;cursor:pointer}.readings{display:flex;flex-direction:column;gap:.75rem}.reading-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.5rem;align-items:end;padding-bottom:.75rem;border-bottom:1px solid var(--border)}.reading-apt{font-weight:800;grid-column:1 / -1}.file-label{cursor:pointer;align-self:flex-start}.file-label:focus-within{outline:3px solid var(--focus);outline-offset:2px}.preview{border:1px dashed var(--border);border-radius:10px;padding:.75rem}.sticky-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:.5rem;flex-wrap:wrap;background:var(--bg);padding:.75rem 0;border-top:1px solid var(--border)}@media(prefers-reduced-motion:no-preference){.btn,.apt-tile,.month-btn,.status-cell{transition:background-color .15s,border-color .15s}}.log-row{gap:.25rem}.log-summary{margin:0;font-weight:600;overflow-wrap:anywhere}.log-row p.muted{margin:0}.log-row summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--primary);font-weight:600}.log-details{margin:0;padding:.6rem;background:var(--surface-2);border-radius:8px;font-size:.8rem;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
