File size: 33,658 Bytes
f74e6c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
/* EatBack School Workspaces: same fonts, colours and components as the main app (public/css/app.css). */
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSansThai-400-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSansThai-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSansThai-500-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexSansThai-500-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSansThai-600-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSansThai-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/IBMPlexSansThai-700-thai.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;}
@font-face{font-family:"IBM Plex Sans Thai";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/IBMPlexSansThai-700-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
  color-scheme: light;
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-2: #f4f7f3;
  --line: #e3e9e2;
  --line-2: #cfd8ce;
  --ink: #13211a;
  --ink-2: #4a5850;
  --muted: #6f7b73;
  --brand: #1e7b34;
  --brand-ink: #0f5132;
  --brand-wash: #eaf6ea;
  --leaf: #41b649;
  --accent: #f59e0b;
  --accent-ink: #a34a04;
  --accent-wash: #fef3dc;
  --good: #1f9d55;
  --good-ink: #146c3a;
  --good-wash: #e7f6ec;
  --warn: #f0a500;
  --warn-ink: #7a5300;
  --warn-wash: #fdf3d6;
  --crit: #d8453b;
  --crit-ink: #b0281f;
  --crit-wash: #fdebe9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 32, 26, .04), 0 6px 24px rgba(20, 32, 26, .05);
  --font: "IBM Plex Sans Thai", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
  --emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(20, 108, 67, .35); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }

/* ---------------- brand ---------------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.w1 { color: var(--brand-ink); }
.w2 { color: var(--accent); }

/* ---------------- shared bits ---------------- */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip.good { background: var(--good-wash); color: var(--good-ink); border-color: transparent; }
.chip.warn { background: var(--warn-wash); color: var(--warn-ink); border-color: transparent; }
.chip.crit { background: var(--crit-wash); color: var(--crit-ink); border-color: transparent; }
.chip.brand { background: var(--brand-wash); color: var(--brand-ink); border-color: transparent; }
.chip.accent { background: var(--accent-wash); color: var(--accent-ink); border-color: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }
.ws-lang { display: inline-flex; align-items: center; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.ws-lang button { padding: 5px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.ws-lang button[aria-pressed="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 4px #13211a12; }
.login-lang { display: flex; width: fit-content; margin: 0 0 18px auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 17px; font-weight: 700; }
.card-head .aside { margin-left: auto; font-size: 13px; color: var(--muted); }
.gbadge { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--brand-wash); color: var(--brand-ink); font-weight: 800; font-size: 15px; }
.gbadge.crit { background: var(--crit-wash); color: var(--crit-ink); }
.gbadge.warn { background: var(--warn-wash); color: var(--warn-ink); }
.gbadge.good { background: var(--good-wash); color: var(--good-ink); }
.food { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; font-family: var(--emoji); font-size: 24px; line-height: 1; background: linear-gradient(145deg, #fff4dd, #ffe2b8); }
.food.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }

/* ================================================================ login */
.login-page { min-height: 100vh; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
.story {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 28px; padding: 40px 56px 36px;
  color: #fff; background: radial-gradient(120% 80% at 100% 0%, #1e7b34 0%, rgba(30, 123, 52, 0) 60%), linear-gradient(160deg, #0f5132 0%, #0b3f27 100%);
}
.story::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 38px solid rgba(245, 158, 11, .14); pointer-events: none;
}
.story .brand { color: #fff; }
.story .brand-sub { color: rgba(255, 255, 255, .7); }
.story .w1 { color: #fff; }
.story .w2 { color: #ffc15a; }
.mark-tile { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.mark-tile .brand-mark { width: 42px; height: 42px; }
.story-copy { max-width: 560px; }
.story .eyebrow { color: #a8e6a9; }
.story h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; line-height: 1.15; }
.story h1 em { font-style: normal; color: #ffc15a; }
.story-copy p { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .86); max-width: 520px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.loop li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.loop b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #ffc15a; color: #3b2400; font-size: 14px; }
.loop strong { display: block; font-size: 15px; }
.loop small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.45; }
.proof { position: relative; z-index: 1; max-width: 460px; padding: 18px 20px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .22); }
.proof-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.proof-top .small { color: var(--muted); }
.proof h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.proof-note { margin-top: 8px; }
.proof-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink-2); }
.trust { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; font-size: 13px; color: rgba(255, 255, 255, .8); }
.trust span::before { content: "✓ "; color: #a8e6a9; font-weight: 700; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.login-panel { width: 100%; max-width: 440px; }
.login-panel h2 { font-size: 28px; font-weight: 700; }
.login-panel .intro { margin: 6px 0 20px; color: var(--ink-2); }
.account {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer;
}
.account:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(20, 32, 26, .08); }
.account .gbadge { width: 52px; height: 52px; font-size: 20px; }
.account.b .gbadge { background: var(--accent-wash); color: var(--accent-ink); }
.account strong { display: block; font-size: 16px; }
.account .meta { display: block; font-size: 13px; color: var(--ink-2); }
.account .creds { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.account .go { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.account .chip { margin-top: 6px; font-size: 12px; padding: 2px 9px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-form label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login-form input { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 15px; }
.login-form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(30, 123, 52, .15); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.show-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.form-error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--crit-wash); color: var(--crit-ink); font-size: 14px; }
.login-form .btn { width: 100%; margin-top: 18px; padding: 12px 18px; }
.login-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ================================================================ workspace */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; gap: 18px; max-width: 1320px; margin: 0 auto; padding: 8px 28px; }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--brand-wash); color: var(--brand-ink); font-weight: 600; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.school-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.school-pill .lock { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); }

.demo-strip { background: var(--accent-wash); border-bottom: 1px solid #f6dfae; color: var(--accent-ink); font-size: 13px; }
.demo-strip div { max-width: 1320px; margin: 0 auto; padding: 7px 28px; }

main.ws { max-width: 1320px; margin: 0 auto; padding: 26px 28px 72px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.package { display: flex; gap: 14px; align-items: center; max-width: 420px; padding: 14px 16px; border-radius: 16px; border: 1px solid #b8d9b9; background: linear-gradient(130deg, var(--brand-wash), var(--surface) 70%); }
.package.starter { border-color: #f3d79c; background: linear-gradient(130deg, var(--accent-wash), var(--surface) 70%); }
.package .pk-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-family: var(--emoji); font-size: 22px; border: 1px solid var(--line); }
.package strong { display: block; }
.package p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.package .upsell { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; }
.kpi .k-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kpi .k-value { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k-value small { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.kpi .k-foot { font-size: 12px; color: var(--muted); line-height: 1.45; }
.kpi .delta { font-size: 13px; font-weight: 600; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--crit-ink); }
.delta.flat { color: var(--muted); }
.kpi.hero { background: linear-gradient(140deg, #0f5132, #1e7b34); color: #fff; border-color: transparent; }
.kpi.hero .k-label, .kpi.hero .k-value small { color: rgba(255, 255, 255, .85); }
.kpi.hero .k-foot { color: rgba(255, 255, 255, .72); }
.kpi.hero .delta.up, .kpi.hero .delta.flat { color: #c8f0c9; }
.kpi.hero .delta.down { color: #ffd2cc; }
.plan-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.section { margin-bottom: 16px; }
.section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 30px 0 12px; }
.section-title h2 { font-size: 21px; font-weight: 700; }
.section-title p { color: var(--ink-2); font-size: 14px; }

/* to-do list */
.todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.todo + .todo { margin-top: 8px; }
.todo:hover { border-color: var(--line-2); box-shadow: 0 4px 16px rgba(20, 32, 26, .06); }
.todo b { display: block; font-size: 15px; }
.todo .small { color: var(--ink-2); }
.empty { padding: 18px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); text-align: center; }

/* before / after bars */
.win + .win { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.win h3 { font-size: 15px; font-weight: 600; }
.win .swap { font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.ba { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; align-items: center; gap: 8px; font-size: 13px; }
.ba + .ba { margin-top: 6px; }
.ba .track { height: 14px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ba .track, .vb .track { display: block; }
.ba .fill { display: block; height: 100%; border-radius: 4px; }
.ba .fill.before { background: var(--crit); }
.ba .fill.after { background: var(--good); }
.ba .fill.normal { background: #9fb3a6; }
.ba b { text-align: right; font-variant-numeric: tabular-nums; }
.win .gain { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--good-ink); }

/* grade strip + heatmap */
.grade-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 14px; }
.gcard { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.gcard .gtop { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.gcard .gd { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--good); }
.gd.crit { background: var(--crit); }
.gd.warn { background: var(--warn); }
.gd.info { background: var(--brand); }
.gd.good { background: var(--good); }
.gcard .gpct { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gstatus { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--good-ink); white-space: nowrap; }
.gstatus.crit { color: var(--crit-ink); }
.gstatus.warn { color: var(--warn-ink); }
.gstatus.info { color: var(--brand); }
.gcard .gmeta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.heat-wrap { overflow-x: auto; }
table.heat { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 760px; font-variant-numeric: tabular-nums; }
table.heat th { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 6px 4px; text-align: center; white-space: nowrap; }
table.heat th small { display: block; font-weight: 500; color: var(--muted); }
table.heat th.m { text-align: left; }
table.heat td.m { padding: 4px 8px 4px 0; white-space: nowrap; }
table.heat th.m, table.heat td.m { position: sticky; left: 0; z-index: 1; background: var(--surface); }
table.heat td.m .mrow { display: flex; align-items: center; gap: 8px; }
table.heat td.m b { font-weight: 600; font-size: 14px; }
.hc {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 46px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 600; border: 2px solid transparent; width: 100%;
}
.hc small { font-size: 10px; font-weight: 600; line-height: 1; }
.hc.normal { background: var(--good-wash); color: var(--good-ink); }
.hc.high { background: var(--warn-wash); color: var(--warn-ink); }
.hc.repeated_high { background: var(--crit); color: #fff; }
.hc.testing { background: var(--brand-wash); color: var(--brand-ink); border-color: var(--brand); }
.hc.fixed { background: #fff; color: var(--good-ink); border-color: var(--good); }
table.heat tr.avg td { padding-top: 6px; }
table.heat tr.avg .hc { background: transparent; color: var(--ink); height: 34px; border: 1px dashed var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 12px; border-radius: 4px; border: 2px solid transparent; }
.legend i.normal { background: var(--good-wash); }
.legend i.high { background: var(--warn-wash); }
.legend i.repeated_high { background: var(--crit); }
.legend i.testing { background: var(--brand-wash); border-color: var(--brand); }
.legend i.fixed { background: #fff; border-color: var(--good); }

/* improvement plans */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-head h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.plan-head .small { color: var(--ink-2); }
.plan-head .chip { margin-left: auto; align-self: flex-start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.steps li { position: relative; padding-top: 14px; font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.steps li.done { color: var(--good-ink); }
.steps li.done::before { background: var(--good); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background: var(--accent); }
.plan-body { display: grid; gap: 10px; font-size: 14px; }
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.seq .chip { font-variant-numeric: tabular-nums; }
.voice-bars { display: grid; gap: 6px; }
.vb { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 13px; }
.vb .track { height: 12px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.vb .fill { display: block; height: 100%; border-radius: 4px; background: #9fb3a6; }
.vb.top .fill { background: var(--accent); }
.vb b { text-align: right; font-variant-numeric: tabular-nums; }
.suggest { padding: 12px 14px; border-radius: 12px; background: var(--brand-wash); color: var(--brand-ink); font-size: 14px; }
.suggest strong { display: block; }
.suggest span { color: var(--ink-2); }
.reuse { padding: 12px 14px; border-radius: 12px; border: 1px dashed #9ccf9d; background: var(--surface); font-size: 14px; }
.next { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.plan-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* trend */
.trend svg { display: block; width: 100%; height: auto; }
.trend .axis { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.trend .grid-line { stroke: var(--line); stroke-width: 1; }
.trend .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .pt { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.trend .hit { fill: transparent; cursor: default; }
.trend .hit:hover + .pt, .trend .pt.on { r: 5; }
.trend-tip { min-height: 20px; margin-top: 6px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* menus */
.menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.menu { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.menu-top { display: flex; gap: 12px; align-items: center; }
.menu-top h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.menu-top .small { color: var(--muted); }
.g4 { display: flex; flex-wrap: wrap; gap: 6px; }
.g4 span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--good-wash); color: var(--good-ink); }
.g4 span.miss { background: var(--crit-wash); color: var(--crit-ink); }
.menu-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.menu-facts div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.menu-facts small { display: block; font-size: 12px; color: var(--muted); }
.menu-facts b { font-variant-numeric: tabular-nums; }
.menu .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.privacy ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
.privacy li + li { margin-top: 4px; }
.static-note { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-ink); font-size: 13px; }
.probe { display: grid; gap: 8px; }
.probe-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.probe-row code { font-size: 12px; word-break: break-all; }
.probe-row .code { display: inline-grid; place-items: center; min-width: 46px; padding: 3px 8px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.code.ok { background: var(--good-wash); color: var(--good-ink); }
.code.no { background: var(--crit-wash); color: var(--crit-ink); }
.code.wait { background: var(--line); color: var(--ink-2); }

.ws-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.load-error { max-width: 560px; margin: 60px auto; text-align: center; }
.load-error h1 { font-size: 22px; margin-bottom: 8px; }
.load-error p { color: var(--ink-2); margin-bottom: 18px; }

/* ================================================================ small screens */
@media (max-width: 1100px) {
  .topbar-row { flex-wrap: wrap; }
  .topbar-row .nav { order: 3; width: 100%; }
  .top-right { flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .privacy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .story { padding: 24px 16px 28px; gap: 20px; }
  .story::after { display: none; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .proof { max-width: none; }
  .login-main { padding: 28px 16px 40px; }
}
@media (max-width: 760px) {
  .topbar-row { flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .nav { order: 3; width: 100%; }
  .brand-sub { display: none; }
  .school-pill { max-width: 150px; }
  .demo-strip div { padding: 7px 16px; }
  main.ws { padding: 18px 16px 56px; }
  .page-head h1 { font-size: 24px; }
  .package { max-width: none; width: 100%; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .k-value { font-size: 26px; }
  .kpi.hero { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .vb { grid-template-columns: 104px minmax(0, 1fr) 36px; }
  .todo { grid-template-columns: auto minmax(0, 1fr); }
  .todo > .chip { grid-column: 2; justify-self: start; }
  #print-btn { display: none; }
}
@media (max-width: 420px) {
  .top-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .school-pill { max-width: 155px; }
  table.heat td.m b { display: inline-block; max-width: 110px; white-space: normal; font-size: 13px; line-height: 1.3; }
  .steps li { font-size: 10px; }
}

/* ================================================================ print: a one-page summary for the principal */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .topbar, .demo-strip, .skip, .no-print, #privacy { display: none !important; }
  main.ws { max-width: none; padding: 0; }
  .card, .kpi, .todo { box-shadow: none; break-inside: avoid; }
  .kpi.hero { background: #fff; color: var(--ink); border: 1px solid var(--line); }
  .kpi.hero .k-label, .kpi.hero .k-foot, .kpi.hero .k-value small { color: var(--ink-2); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1.4fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .menus { grid-template-columns: repeat(3, 1fr); }
  .heat-wrap { overflow: visible; }
  table.heat { min-width: 0; }
  .section-title { break-after: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------------- where each number comes from (real source vs DEMO) ---------------- */
.src-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.src-tag.real { background: #e5f0ff; color: #1d4f91; }
.src-tag.demo { background: var(--accent-wash); color: var(--accent-ink); }
.card-head .src-tag, .section-title .src-tag { align-self: center; }
.scope-note { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #eef4fb; color: #274a6d; font-size: 13px; }

/* menu record: menu / nutrition status / source / checked / acceptance */
.menus.tsl { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
dl.rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
dl.rec dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
dl.rec dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
dl.rec .lvl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; width: 100%; }
dl.rec .lvl b { font-size: 12px; min-width: 52px; }
.rating-line { display: inline-flex; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; gap: 4px; }
.rating-line .chip { white-space: normal; }
.rating-line .chip { font-size: 12px; padding: 1px 8px; }
details.more { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
details.more[open] summary { margin-bottom: 8px; }
table.nut { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.nut th, table.nut td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
table.nut th { font-size: 12px; color: var(--ink-2); }
.rate { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; vertical-align: -3px; }
.rate.r1, .rate.r5 { background: #e02424; }
.rate.r2, .rate.r4 { background: #f0a500; }
.rate.r3 { background: #1e7b34; }
.items { margin-top: 8px; }
.items ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.fix-nut { padding: 10px 12px; border-radius: 12px; background: #eef4fb; font-size: 13px; display: grid; gap: 6px; }

/* data sources */
.sources { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
table.src-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.src-table th, table.src-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.src-table th { font-size: 12px; color: var(--ink-2); }
.roles { display: grid; gap: 10px; align-content: start; }
.role { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; }
.role.tsl { background: #e5f0ff; color: #1d4f91; }
.role.eb { background: var(--brand-wash); color: var(--brand-ink); }
.roles p { font-size: 14px; }
.roles ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.roles li + li { margin-top: 4px; }
@media (max-width: 1100px) { .sources { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .menus.tsl { grid-template-columns: minmax(0, 1fr); }
  dl.rec { grid-template-columns: minmax(0, 1fr); }
  dl.rec dt { margin-top: 4px; }
  table.src-table td:nth-child(2) { font-size: 13px; }
}
@media print { details.more { display: none; } .sources { grid-template-columns: 1fr 1fr; } }