-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
251 lines (238 loc) · 15.4 KB
/
Copy pathstyles.css
File metadata and controls
251 lines (238 loc) · 15.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
:root {
/* Warm, human palette — cream + Anthropic coral. Calmer than clinical white/blue;
warm hues read as reassuring, which suits a health companion. */
--bg: #F4F0E6; --panel: #FFFFFF; --panel2: #F3EEE2; --line: #E4DCCB;
--text: #29261F; --muted: #6E6858;
--accent: #D97757; --accent-d: #C15F3C; --accent-soft: #FBEEE8; --accent-ink: #7A3B25;
--red: #B23A2E; --amber: #B7791F; --green: #4E7A46;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg); color: var(--text); min-height: 100vh;
font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
header {
position: sticky; top: 0; background: linear-gradient(180deg, var(--bg), rgba(244,240,230,.92));
padding: 16px 16px 10px; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); z-index: 5;
}
header h1 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 8px; }
header .badge { font-size: 11px; color: var(--muted); font-weight: 500; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(41,38,31,.04); }
.card h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
input, select, textarea {
width: 100%; background: #FFFFFF; border: 1px solid var(--line); color: var(--text);
border-radius: 10px; padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 60px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
button {
border: none; border-radius: 10px; padding: 11px 14px; font: inherit; font-weight: 600;
cursor: pointer; background: var(--accent); color: #FFFFFF;
}
button:hover { background: var(--accent-d); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.ghost:hover { background: var(--panel2); }
button.danger { background: transparent; color: var(--red); border: 1px solid var(--line); padding: 6px 10px; font-size: 12px; }
button.mini { padding: 6px 10px; font-size: 12px; }
button.full { width: 100%; }
button.big { width: 100%; padding: 15px; font-size: 16px; border-radius: 12px; }
.linkbtn { background: none; border: none; color: var(--muted); font-size: 12px; padding: 6px; cursor: pointer; }
.linkbtn:hover { color: var(--text); background: none; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.opt { color: var(--muted); font-weight: 400; font-size: 11px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
[hidden] { display: none !important; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen { min-height: 100vh; }
/* ---------- Toast ---------- */
.toast {
position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px;
background: var(--text); color: #FBF7F0; border: 1px solid var(--accent); padding: 10px 16px;
border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60;
max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; }
.toast.err { background: #4a1712; color: #ffe2df; border-color: var(--red); }
/* ---------- Lock screen ---------- */
.lock {
position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
padding: 24px calc(24px + env(safe-area-inset-right)) 24px calc(24px + env(safe-area-inset-left));
background: radial-gradient(1200px 600px at 50% -10%, #F7E4D9, var(--bg));
}
.lockbox { width: 100%; max-width: 360px; text-align: center; }
.lock-logo { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.lockbox h1 { margin: 0 0 6px; font-size: 22px; }
.lock-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lock input { text-align: center; margin-bottom: 10px; }
.lock button:not(.linkbtn) { width: 100%; margin-top: 4px; }
.lock-msg { color: var(--red); font-size: 13px; min-height: 18px; margin: 10px 0 0; }
.lock-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 16px 0 0; }
.lock-note strong { color: var(--accent-d); }
/* ---------- Home / hero ---------- */
.hero {
display: flex; align-items: center; justify-content: center; text-align: center;
padding: 24px calc(24px + env(safe-area-inset-right)) 24px calc(24px + env(safe-area-inset-left));
background: radial-gradient(1200px 600px at 50% -10%, #F7E4D9, var(--bg));
}
.hero-inner { width: 100%; max-width: 380px; }
.hero-logo { font-size: 60px; line-height: 1; margin-bottom: 10px; }
.hero-inner h1 { margin: 0 0 10px; font-size: 28px; }
.hero-tag { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.hero-note { color: var(--muted); font-size: 12px; margin-top: 18px; }
.hero-note em { color: var(--text); font-style: normal; font-weight: 600; }
/* ---------- Steps indicator ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.steps .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.steps .dot.on { background: var(--accent); }
.steps .dot.done { background: var(--accent-d); }
.steps .lbl { font-size: 12px; color: var(--muted); margin-left: 4px; }
/* ---------- Supplement picker ---------- */
.rolehint { font-size: 12px; color: var(--accent-d); margin: 6px 0 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
background: var(--panel2); color: var(--text); border: 1px solid var(--line);
border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500;
}
.chip.on { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.timinghint { margin-top: 12px; }
.tchip {
display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #F1D8CB;
border-radius: 999px; padding: 2px 9px; font-size: 11px; margin: 2px 4px 2px 0; font-weight: 500;
}
.supp-list { margin-bottom: 12px; }
.supp-row {
display: flex; align-items: center; gap: 10px; background: var(--panel2);
border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.supp-main { flex: 1; min-width: 0; }
.supp-name { font-weight: 700; }
.supp-form { color: var(--accent-d); font-size: 12px; font-weight: 500; }
.supp-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.supp-acts { display: flex; gap: 6px; align-items: center; }
/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#progress-bar { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
#progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #E5A186); transition: width .25s; }
.slot { margin-bottom: 18px; }
.slot-head {
font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-d);
font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.nowtag {
text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 700;
background: var(--accent); color: #FFFFFF; padding: 1px 8px; border-radius: 999px;
}
.slot.now .dose { border-color: var(--accent); }
.dose {
display: flex; align-items: center; gap: 14px; background: var(--panel2);
border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; margin-bottom: 10px; cursor: pointer;
min-height: 58px;
}
.dose input.take { width: 28px; height: 28px; margin: 0; accent-color: var(--accent); flex: none; }
.alldone {
background: #EAF2E5; border: 1px solid #CBDFC2; color: #3F6B37; text-align: center;
padding: 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600;
}
.slot-time { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.dose.due { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Start-my-day (T0) — the ritual is the hero: a bigger, gently pulsing button. */
#day-start-btn { margin-bottom: 6px; padding: 20px; font-size: 19px; font-weight: 800; letter-spacing: .3px; box-shadow: 0 4px 14px rgba(193,95,60,.28); animation: pulse-soft 2.4s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { #day-start-btn { animation: none; } }
#day-start-sub { text-align: center; }
.bedtime-hint { font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid #F1D8CB; border-radius: 10px; padding: 9px 11px; margin-top: 10px; line-height: 1.45; }
#day-preview { margin-top: 16px; }
.preview-slot { margin-bottom: 10px; }
.preview-slot .ps-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-d); font-weight: 700; margin-bottom: 2px; display: flex; justify-content: space-between; }
.preview-slot .ps-time { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; font-size: 11px; }
.preview-item { color: var(--muted); font-size: 13px; padding: 2px 0; }
/* Slot status */
.overduetag { text-transform: none; letter-spacing: 0; font-size: 10px; font-weight: 700; background: var(--red); color: #FFFFFF; padding: 1px 8px; border-radius: 999px; }
.slot-overdue .dose.due { border-color: var(--red); box-shadow: 0 0 0 3px #F3D9D5; }
.slot-done .slot-head { opacity: .55; }
/* ---------- Water ---------- */
.water-total { font-size: 13px; font-weight: 600; color: var(--muted); }
#water-bar { height: 10px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin: 4px 0 12px; }
#water-fill { height: 100%; width: 0; background: linear-gradient(90deg, #6FB6E8, #9AD0F0); transition: width .25s; }
.water-btns { display: flex; gap: 10px; align-items: center; }
.water-btns .ghost { flex: 1; }
/* ---------- Meals ---------- */
.meal-kind { font-weight: 700; color: var(--accent-d); min-width: 72px; }
/* ---------- Symptoms ---------- */
.btn-group { display: flex; gap: 6px; }
input[type="range"] { accent-color: var(--accent); padding: 0; }
.sym-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.sym-row:first-child { border-top: none; }
.sev-dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.sev-lo { background: var(--green); } .sev-mid { background: var(--amber); } .sev-hi { background: var(--red); }
.sym-main { flex: 1; min-width: 0; }
.sym-label { font-weight: 600; }
.sym-sev { color: var(--muted); font-size: 12px; }
.sym-note { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* ---------- History / calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav span { font-weight: 700; font-size: 16px; }
.cal-nav button { min-width: 40px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 5px; }
.cal-dow span { text-align: center; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
#cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
padding: 2px; cursor: pointer; color: var(--text); font: inherit; }
.cal-cell.empty { border: none; background: transparent; cursor: default; }
.cal-cell .cnum { font-size: 14px; font-weight: 600; }
.cal-cell .cdots { display: flex; gap: 3px; height: 6px; }
.cdot { width: 5px; height: 5px; border-radius: 50%; }
.cdot.sym { background: var(--red); } .cdot.wat { background: #6FB6E8; } .cdot.meal { background: var(--accent); }
.cal-cell.d-full { background: #EAF2E5; border-color: #CBDFC2; }
.cal-cell.d-part { background: #FBF0DC; border-color: #F0DCB4; }
.cal-cell.d-started { background: var(--panel2); }
.cal-cell.today { outline: 2px solid var(--accent); outline-offset: -1px; }
.cal-legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: 11px; color: var(--muted); }
.cal-legend i.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.cal-legend i.d-full { background: #CBDFC2; } .cal-legend i.d-part { background: #F0DCB4; }
.cal-legend i.sym { background: var(--red); border-radius: 50%; }
/* day detail */
#day-title { margin: 10px 0 16px; font-size: 18px; }
#day-back { margin-bottom: 6px; }
.dd-sec { margin-bottom: 18px; }
.dd-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.dd-line { font-size: 14px; }
.dd-line.muted, .muted { color: var(--muted); }
.dd-item { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.dd-item:first-of-type { border-top: none; }
.dd-when { color: var(--muted); font-size: 12px; min-width: 60px; flex: none; padding-top: 1px; }
.dd-body { flex: 1; font-size: 14px; }
.dd-body .sev-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
/* ---------- Safety reminders ---------- */
.safety .safety-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.safety .safety-row:first-child { border-top: none; }
.safety .safety-row span:first-child { flex: none; }
/* ---------- Attribution / sources ---------- */
.src { font-size: 11px; color: #8a8474; margin-top: 8px; font-style: italic; }
.hint.caution { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid #F1D8CB; border-radius: 10px; padding: 8px 10px; }
.src-foot { font-size: 11px; color: #8a8474; line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.refs-list { margin-top: 6px; }
.ref-row { padding: 10px 0; border-top: 1px solid var(--line); }
.ref-row:first-child { border-top: none; }
.ref-title { font-weight: 600; font-size: 13px; }
.ref-by { color: var(--accent-d); font-size: 12px; margin-top: 2px; }
.ref-covers { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.45; }
.refs-foot { font-size: 11px; color: #8a8474; line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
/* ---------- Manage / details ---------- */
details.card > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
.manage { margin-top: 14px; }
.manage .ghost.full { margin-bottom: 8px; }
.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.mini-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; }
.filelabel { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-weight: 600; cursor: pointer; }
.disclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; text-align: center; padding: 8px 4px 24px; }
.disclaimer .attr { color: #8a8474; }