:root{--text-main:#1f2937;--text-muted:#6b7280;--sophie-purple:#7c3aed;--sophie-purple-dark:#5b21b6;--sophie-lavender:#f5f0ff;--sophie-lavender-strong:#ede3ff;--sophie-border:#ddd6fe;color:var(--text-main);background:#faf7ff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(#faf7ff 0%,#f3f4f6 100%);margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;border-radius:14px;padding:12px 14px;transition:all .15s}input,textarea,select{background:#fff;border:1px solid #d8c9ff;border-radius:12px;width:100%;padding:12px}input:focus,textarea:focus,select:focus{border-color:var(--sophie-purple);outline:3px solid #7c3aed2e}.screen{max-width:720px;margin:0 auto;padding:12px}.mobile-screen{max-width:430px}.centered{justify-content:center;align-items:center;min-height:100vh;display:flex}.card{border:1px solid var(--sophie-border);background:#fff;border-radius:22px;padding:18px;box-shadow:0 14px 34px #7c3aed1f}.compact-card{padding:14px}.auth-card{width:min(100%,420px)}.topbar,.row{justify-content:space-between;align-items:center;gap:12px;display:flex}.stack{gap:12px;display:grid}.small-gap{gap:8px}.top-gap{margin-top:14px}.label{color:#2f244f;margin-bottom:8px;font-weight:700;display:block}.muted{color:var(--text-muted)}.success{color:#166534;margin-top:10px;margin-bottom:0;font-size:.95rem;font-weight:700}.message{margin-top:16px}.secondary,.link-button{color:var(--sophie-purple-dark);background:#eee7ff;font-weight:650}.entry-title-wrap{text-align:center;margin-bottom:10px}.page-title,h1,h2{color:var(--sophie-purple-dark)}.page-title{margin:0 0 4px;font-size:1.45rem;line-height:1.15}.quick-entry-title{color:var(--text-muted);margin:0;font-size:1rem;font-weight:700}.grid-two,.totals-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.compact-totals-grid{gap:10px}.total-card{border:1px solid var(--sophie-border);border-radius:16px;padding:12px}.blue-total{background:#eff6ff}.red-total{background:#fef2f2}.total-label{font-size:.9rem;font-weight:700}.total-value{margin-top:4px;font-size:1.7rem;font-weight:800;line-height:1}.weekly-label{margin-top:2px;margin-bottom:8px}.weekly-summary-box{border:1px solid var(--sophie-border);background:#fff;border-radius:14px;margin-top:8px;padding:8px}.weekly-table-wrap{overflow-x:auto}.weekly-table{border-collapse:collapse;width:100%;font-size:12px}.weekly-table th,.weekly-table td{text-align:center;padding:4px}.weekly-table thead th{background:var(--sophie-lavender)}.blue-text{color:#2563eb;font-weight:700}.red-text{color:#dc2626;font-weight:700}.weekly-total{font-weight:700}.choice{font-size:1rem;font-weight:700}.inhaler-tile-grid{gap:10px}.inhaler-tile{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:110px;padding:12px 8px;display:flex}.tile-plus{font-size:1.5rem;font-weight:800;line-height:1}.tile-text{font-size:.95rem;line-height:1.2}.blue{background:#dbeafe}.red{background:#fee2e2}.active{outline:4px solid var(--sophie-purple);transform:scale(.98);box-shadow:0 0 0 5px #7c3aed1f}.feeling-scale{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.compact-feeling-scale{gap:8px}.feeling-card{text-align:center;background:#f8f6fc;border:2px solid #0000;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:88px;padding:8px 4px;font-weight:700;display:flex}.feeling-card:hover{border-color:#a78bfa}.active-feeling{background:var(--sophie-lavender-strong);border-color:var(--sophie-purple);box-shadow:0 0 0 4px #7c3aed24}.feeling-emoji{font-size:1.55rem}.feeling-number{font-size:.95rem}.feeling-label{color:#4c3b69;font-size:.72rem;line-height:1.1}.save-button{background:linear-gradient(135deg, var(--sophie-purple), var(--sophie-purple-dark));color:#fff;width:100%;font-weight:700;box-shadow:0 10px 22px #7c3aed40}.bottom-actions{gap:10px;display:grid}.entries{margin-top:8px}.day-group.with-divider{border-top:2px solid #d1d5db;margin-top:6px;padding-top:18px}.day-heading{font-weight:800}.day-count{color:var(--text-muted);font-size:.9rem}.week-header-row{justify-content:space-between;align-items:center;display:flex}.entry-row{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-top:8px;padding:8px}.compact-entry-row{padding:10px 12px}.compact-entry-top{flex-wrap:wrap;align-items:center;gap:8px;font-weight:600;display:flex}.compact-entry-bottom{color:#4b5563;margin-top:4px;font-size:13px}.entry-dot{border-radius:50%;width:10px;height:10px}.dot-blue{background:#2563eb}.dot-red{background:#dc2626}.compact-entry-title{font-weight:700}.compact-entry-feeling-group{color:#374151;align-items:center;gap:4px;margin-left:8px;display:flex}.compact-entry-comment{color:#6b7280}.allergy-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.allergy-box{border:1px solid var(--sophie-border);background:#f9fafb;border-radius:14px;min-height:76px;padding:12px;font-weight:700}.allergy-select{border:1px solid var(--sophie-border);color:#111827;background:#f9fafb;border-radius:14px;width:100%;height:76px;padding:0 12px;font-size:1.05rem;font-weight:750}.allergy-button{color:var(--sophie-purple-dark);background:#e9d5ff;font-size:1.05rem;font-weight:750}.allergy-last-box{border:1px solid var(--sophie-border);color:#374151;background:#fff;border-radius:14px;margin-top:10px;padding:12px;font-size:.92rem}.allergy-text{color:#4d7c0f;font-weight:700}.dot-allergy{background:#65a30d}@media (width<=560px){.topbar,.week-header-row{flex-direction:column;align-items:stretch}.weekly-table{font-size:.78rem}.compact-entry-bottom{font-size:.86rem}}
