*{box-sizing:border-box}body,html{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:#f4f4f8;color:#1f2130}button,input,select,textarea{font-family:inherit;font-size:1rem}button{cursor:pointer}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#6366f1,#4338ca)}.login-card{background:#fff;padding:2.5rem 2rem;border-radius:20px;width:min(90vw,340px);text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.25)}.login-card h1{margin:0 0 .25rem;font-size:1.5rem}.muted{color:#6b7280;font-size:.9rem;margin:0 0 1.25rem}.login-card input{width:100%;padding:.85rem 1rem;border-radius:12px;border:1px solid #d1d5db;margin-bottom:.75rem;text-align:center;letter-spacing:.2em}.login-card button{width:100%;padding:.85rem 1rem;border-radius:12px;border:none;background:#6366f1;color:#fff;font-weight:600}.error{color:#dc2626;font-size:.85rem;margin-bottom:.75rem}.app-shell{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.app-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:.4rem 1.25rem;background:#fff;border-bottom:1px solid #e5e7eb}.app-header h1{font-size:.92rem;margin:0}.app-header .date{color:#6b7280;font-size:.72rem}.tabs{flex:0 0 auto;display:flex;gap:.25rem;padding:.35rem 1rem;background:#fff;overflow-x:auto;border-bottom:1px solid #e5e7eb}.tab{padding:.4rem .85rem;border-radius:999px;border:none;background:transparent;color:#4b5563;font-weight:600;white-space:nowrap}.tab.active{background:#6366f1;color:#fff}.content{flex:1 1;min-height:0;padding:1rem 1.25rem 3rem;max-width:900px;margin:0 auto;width:100%;overflow-y:auto}.content.no-scroll{overflow:hidden;padding:.35rem .5rem .25rem;display:flex;flex-direction:column}.card{background:#fff;border-radius:16px;padding:1rem;margin-bottom:1rem;box-shadow:0 1px 3px rgba(0,0,0,.06)}.row{gap:.5rem;flex-wrap:wrap;align-items:center}.field,.row{display:flex}.field{flex-direction:column;gap:.25rem;margin-bottom:.6rem;flex:1 1;min-width:140px}.field label{font-size:.75rem;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.field input,.field select,.field textarea{padding:.55rem .7rem;border-radius:10px;border:1px solid #d1d5db}.btn{padding:.55rem 1rem;border-radius:10px;border:none;background:#6366f1;color:#fff;font-weight:600}.btn.secondary{background:#e5e7eb;color:#1f2130}.btn.danger{background:#fee2e2;color:#b91c1c}.btn.small{padding:.35rem .7rem;font-size:.85rem}.calendar-page{flex:1 1;min-height:0;display:flex;flex-direction:column}.calendar-nav{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;margin-bottom:.15rem}.calendar-wrap{flex:1 1;min-height:0;display:flex;flex-direction:column}.calendar-grid{flex:1 1;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:auto repeat(6,minmax(0,1fr));grid-gap:2px;gap:2px}.calendar-dow{text-align:center;font-size:.88rem;color:#6b7280;font-weight:700;padding-bottom:1px}.calendar-day{background:#fff;border-radius:7px;padding:2px;border:1px solid #eef0f4;display:flex;flex-direction:column;gap:1px;cursor:pointer;min-width:0;min-height:0;overflow:hidden;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar-day.other-month{background:#fafafb;color:#b5b8c2}.calendar-day.today{border-color:#6366f1;border-width:2px}.calendar-day .daynum{font-size:.96rem;font-weight:700;flex:0 0 auto}.day-chips{display:flex;flex-direction:column;gap:1px;overflow:hidden;min-height:0;flex:1 1}.event-chip{font-size:.8rem;padding:2px 4px;border-radius:5px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 0 auto}.more-chip{background:#9ca3af}.day-agenda{flex:1 1;min-height:0;overflow-y:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.agenda-item{display:flex;align-items:center;gap:.7rem;background:#fff;border-radius:12px;padding:.7rem .9rem;margin-bottom:.6rem;box-shadow:0 1px 3px rgba(0,0,0,.06);cursor:pointer}.agenda-color{width:10px;height:10px;border-radius:50%;flex:0 0 auto}.agenda-body{flex:1 1;min-width:0}.agenda-title{font-weight:600}.agenda-meta{font-size:.8rem;color:#6b7280;margin-top:.15rem}.chore-item,.list-item{display:flex;align-items:center;gap:.6rem;padding:.5rem 0;border-bottom:1px solid #f1f1f4}.chore-item:last-child,.list-item:last-child{border-bottom:none}.chore-item.done span,.list-item.checked span{text-decoration:line-through;color:#9ca3af}.list-item span{font-size:1rem;line-height:1.4}.list-item button{flex:0 0 auto}.spacer{flex:1 1}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:8px;gap:8px}.week-day{background:#fff;border-radius:12px;padding:.6rem}.week-day h4{margin:0 0 .4rem;font-size:.8rem;color:#4b5563}.meal-slot{margin-bottom:.4rem}.meal-slot label{font-size:.65rem;color:#9ca3af;text-transform:uppercase}.meal-slot input{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:.3rem .4rem;font-size:.8rem}.list-tabs{display:flex;gap:.4rem;margin-bottom:.75rem;flex-wrap:wrap}.pill{padding:.35rem .8rem;border-radius:999px;background:#eef0f4;font-size:.85rem;font-weight:600;border:none}.pill.active{background:#1f2130;color:#fff}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px}.status-dot.connected{background:#22c55e}.status-dot.error{background:#ef4444}.stars-row{display:flex;gap:1rem;margin-bottom:1rem}.star-badge{background:#fef9c3;border-radius:12px;padding:.6rem 1rem;font-weight:700}.split-list{display:flex;gap:.75rem;align-items:flex-start}.split-column{flex:1 1;min-width:0}.split-column h4{margin:0 0 .4rem;font-size:.95rem}.split-divider{width:1px;align-self:stretch;background:#e5e7eb;flex:0 0 auto}@media (max-width:640px){.split-list{flex-direction:column;gap:.25rem}.split-divider{width:100%;height:1px;margin:.5rem 0}.split-column{width:100%}.list-item span{font-size:1.05rem}.list-item{padding:.6rem 0}}.reminder-chip{display:inline-flex;align-items:center;gap:.35rem;background:#eef0f4;border-radius:999px;padding:.25rem .4rem .25rem .65rem;font-size:.8rem;font-weight:600;color:#4b5563}.reminder-chip button{border:none;background:transparent;color:#9ca3af;font-size:.75rem;line-height:1;padding:.15rem}.alert-banner{flex:0 0 auto;background:#fef9c3;border-bottom:1px solid #fde68a;padding:.5rem 1.25rem;display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:center;font-size:.85rem}.alert-banner strong,.alert-dismiss{font-weight:700}.alert-dismiss{border:none;background:transparent;color:#92400e;cursor:pointer;margin-left:auto}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:50}.modal{background:#fff;border-radius:16px;padding:1.25rem;width:min(92vw,420px);max-height:90vh;overflow-y:auto}