:root{--green: #1a7f5a;--green-dark: #14684a;--red: #c0392b;--text: #1c1c1e;--text-muted: #6b7280;--bg: #f6f7f8;--card-bg: #ffffff;--border: #e5e7eb;font-family:system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button{font:inherit;cursor:pointer}button.primary{background:var(--green);color:#fff;border:none;border-radius:8px;padding:.75rem 1.25rem;font-weight:600}button.primary:hover{background:var(--green-dark)}button.primary:disabled{opacity:.6;cursor:default}input{font:inherit;padding:.6rem .75rem;border:1px solid var(--border);border-radius:8px;width:100%}label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--text-muted)}.centered-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:1rem;padding:1.5rem}.brand{color:var(--green);margin:0}.tagline{color:var(--text-muted);margin:0}.card{background:var(--card-bg);border:1px solid var(--border);border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;gap:.85rem;width:100%;max-width:420px}.card h2{margin:0;font-size:1.05rem}.divider{color:var(--text-muted);font-size:.85rem}.error-text{color:var(--red);margin:0;font-size:.9rem}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-content{flex:1;padding:1rem 1rem 5rem;max-width:640px;width:100%;margin:0 auto}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:var(--card-bg);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav a{flex:1;text-align:center;padding:.9rem 0;text-decoration:none;color:var(--text-muted);font-size:.85rem;font-weight:600}.bottom-nav a.active{color:var(--green)}.skeleton{background:linear-gradient(90deg,#ececec 25%,#f5f5f5,#ececec 75%);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:8px}.skeleton-page{width:min(420px,80vw);height:160px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.dashboard{display:flex;flex-direction:column;gap:1rem}.month-switcher{display:flex;align-items:center;justify-content:space-between}.month-switcher h1{font-size:1.25rem;margin:0}.month-switcher button{background:var(--card-bg);border:1px solid var(--border);border-radius:8px;width:2.5rem;height:2.5rem;font-size:1.1rem}.summary-card{max-width:none;gap:.6rem}.summary-row{display:flex;justify-content:space-between;font-size:.95rem}.summary-row.remainder{border-top:1px solid var(--border);padding-top:.6rem;font-size:1.05rem}.summary-skeleton{height:140px}.positive{color:var(--green)}.negative{color:var(--red)}.quick-add{max-width:none}.quick-add-row{display:flex;gap:.75rem}.quick-add-row .grow{flex:1}.amount-field{width:7.5rem}.timeline{list-style:none;margin:0;padding:0;background:var(--card-bg);border:1px solid var(--border);border-radius:12px}.timeline li{display:flex;align-items:center;gap:.75rem;padding:.7rem 1rem;border-bottom:1px solid var(--border);font-size:.95rem}.timeline li:last-child{border-bottom:none}.timeline-date{color:var(--text-muted);font-size:.8rem;width:3.2rem;flex-shrink:0}.timeline-name{flex:1;display:flex;align-items:center;gap:.5rem;min-width:0;overflow:hidden;text-overflow:ellipsis}.chip{background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:.1rem .5rem;font-size:.75rem;font-style:normal;color:var(--text-muted)}.icon-button{background:none;border:none;color:var(--text-muted);font-size:.9rem;padding:.25rem}.empty-state{max-width:none;text-align:center;color:var(--text-muted)}.empty-state p{margin:.25rem 0}select{font:inherit;padding:.6rem .75rem;border:1px solid var(--border);border-radius:8px;background:var(--card-bg);width:100%}.tabs{display:flex;gap:.5rem}.tabs button{flex:1;padding:.6rem;border:1px solid var(--border);border-radius:8px;background:var(--card-bg);color:var(--text-muted);font-weight:600}.tabs button.active{border-color:var(--green);color:var(--green)}.add-button{align-self:flex-start}.recurring-list{list-style:none;margin:0;padding:0;background:var(--card-bg);border:1px solid var(--border);border-radius:12px}.recurring-list li{display:flex;align-items:center;gap:.75rem;padding:.8rem 1rem;border-bottom:1px solid var(--border)}.recurring-list li:last-child{border-bottom:none}.recurring-list li.inactive .recurring-main,.recurring-list li.inactive strong{opacity:.45}.recurring-main{flex:1;display:flex;flex-direction:column;gap:.2rem;cursor:pointer;min-width:0}.recurring-name{display:flex;align-items:center;gap:.5rem;font-weight:600}.recurring-schedule{color:var(--text-muted);font-size:.8rem}.switch{position:relative;width:2.6rem;height:1.5rem;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--border);border-radius:999px;transition:background .15s}.switch .slider:before{content:"";position:absolute;width:1.15rem;height:1.15rem;left:.18rem;top:.18rem;background:#fff;border-radius:50%;transition:transform .15s}.switch input:checked+.slider{background:var(--green)}.switch input:checked+.slider:before{transform:translate(1.05rem)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:10}.modal{background:var(--card-bg);border-radius:16px 16px 0 0;padding:1.25rem;padding-bottom:calc(1.25rem + env(safe-area-inset-bottom));width:100%;max-width:520px;max-height:88dvh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.modal-header h2{margin:0;font-size:1.1rem}.editor-form{display:flex;flex-direction:column;gap:.85rem}.schedule-builder{display:flex;flex-direction:column;gap:.85rem;border-top:1px solid var(--border);padding-top:.85rem}.schedule-fields{display:flex;gap:.75rem}.schedule-fields label{flex:1}@media(min-width:640px){.modal-backdrop{align-items:center}.modal{border-radius:16px}}button.secondary{background:var(--card-bg);color:var(--red);border:1px solid var(--border);border-radius:8px;padding:.75rem 1.25rem;font-weight:600;align-self:flex-start}.member-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}.member-list li{display:flex;flex-direction:column}.member-name{font-weight:600}.member-email{color:var(--text-muted);font-size:.85rem}.invite-code{font-family:ui-monospace,monospace;font-size:1.1rem;letter-spacing:.08em;background:var(--bg);border:1px dashed var(--border);border-radius:8px;padding:.6rem .8rem;margin:0;word-break:break-all;-webkit-user-select:all;user-select:all}.invite-hint{color:var(--text-muted);font-size:.85rem;margin:0}
