File size: 47,867 Bytes
ea5a1e6
 
 
4e82195
14111d2
4e82195
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14111d2
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14111d2
ea5a1e6
 
 
 
14111d2
ea5a1e6
 
 
14111d2
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6acd609
 
 
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14111d2
ea5a1e6
8edc4fe
ea5a1e6
 
 
96f5313
 
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96f5313
ea5a1e6
 
 
 
 
 
 
96f5313
ea5a1e6
 
 
 
 
 
96f5313
ea5a1e6
 
 
 
 
 
 
 
 
65a9e94
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6acd609
 
 
 
ea5a1e6
6acd609
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6acd609
ea5a1e6
 
 
 
 
6acd609
 
 
 
ea5a1e6
 
 
 
 
6acd609
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea5a1e6
 
6acd609
 
 
ea5a1e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6acd609
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3511631
 
 
 
 
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
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
/* Ora: a dark sidebar with the plan's seven steps, a light paper workspace (dark when the system is dark). */

@font-face { font-family: "Space Grotesk"; src: url(fonts/SpaceGrotesk-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --sunken: #eeebe5;
  --text: #1a1626;
  --muted: #676174;
  --faint: #9a94a5;
  --line: rgba(26, 22, 38, .09);
  --line-2: rgba(26, 22, 38, .17);
  --accent: #5a43dc;
  --accent-ink: #ffffff;
  --accent-soft: rgba(90, 67, 220, .10);
  --ok: #13805a;
  --ok-soft: rgba(19, 128, 90, .12);
  --warn: #9a5800;
  --warn-soft: rgba(232, 150, 30, .15);
  --err: #c0353b;
  --side-bg: #16131f;
  --side-text: #ebe8f3;
  --side-muted: #9c96ad;
  --side-hover: rgba(255, 255, 255, .06);
  --side-active: rgba(255, 255, 255, .11);
  --grad: linear-gradient(115deg, #f5a524, #ff5e62 50%, #8b5cf6);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 15, 35, .04), 0 10px 26px -18px rgba(20, 15, 35, .28);
  --head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12101a;
    --surface: #1b1825;
    --surface-2: #201c2b;
    --sunken: #0e0c15;
    --text: #ece9f4;
    --muted: #a39db3;
    --faint: #777189;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --accent: #8f80ff;
    --accent-ink: #120f1d;
    --accent-soft: rgba(143, 128, 255, .16);
    --ok: #3ccf91;
    --ok-soft: rgba(60, 207, 145, .14);
    --warn: #f0b45a;
    --warn-soft: rgba(240, 180, 90, .14);
    --err: #ff7b7f;
    --side-bg: #0b0a10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -18px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.5 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: var(--err); }

/* --- shell ------------------------------------------------------------------------------------------------------- */

.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); height: 100vh; }
main { overflow-y: auto; min-width: 0; }

.side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 14px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.side-brand b { display: block; font: 600 17px/1.1 var(--head); letter-spacing: -.01em; }
.side-brand .ver-link { display: block; border: 0; background: none; padding: 0; color: var(--side-muted); font-size: 11px; text-align: left; }
.side-brand .ver-link:hover { color: var(--side-text); text-decoration: underline; }
.update-pill { border: 0; border-radius: 10px; padding: 8px 11px; background: var(--grad); color: #fff; font-weight: 600; font-size: 12.5px; text-align: left; }
.update-pill:hover:not(:disabled) { filter: brightness(1.08); }
.mark { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none;
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px, #000 11px, transparent 11.5px, transparent 12.5px, #000 13px); }
.plan-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04); color: var(--side-text); text-align: left; }
.plan-chip:hover { background: var(--side-hover); }
.plan-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.plan-name { flex: 1; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1b1300; background: #f0b45a; border-radius: 999px; padding: 1px 7px; }

.plan-steps { display: flex; flex-direction: column; gap: 2px; }
.step { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--side-text); text-align: left; font-size: 13.5px; }
.step:hover { background: var(--side-hover); }
.step[aria-current="true"] { background: var(--side-active); }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .22); color: var(--side-muted); }
.step[aria-current="true"] .step-n { background: #fff; border-color: #fff; color: #16131f; }
.step-n.ok { background: #2fbf7f; border-color: #2fbf7f; color: #06140d; }
.step-n.warn { border-color: #f0b45a; color: #f0b45a; box-shadow: 0 0 0 3px rgba(240, 180, 90, .18); }
.step[aria-current="true"] .step-n.warn { background: #f0b45a; color: #1b1300; }
.step-progress { display: flex; flex-direction: column; gap: 6px; margin: 10px 10px 0; font-size: 11.5px; color: var(--side-muted); }
.step-progress .bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.step-progress .bar span { display: block; height: 100%; background: var(--grad); border-radius: 4px; }

.side-nav { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-nav button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--side-text); font-size: 13.5px; text-align: left; }
.side-nav button:hover { background: var(--side-hover); }
.side-nav button[aria-current="true"] { background: var(--side-active); }
.ico { width: 16px; height: 16px; margin: 0 5px; flex: none; border: 1.6px solid currentColor; border-radius: 4px; opacity: .75; position: relative; }
.ico-pic::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 5px; background: currentColor; clip-path: polygon(0 100%, 35% 20%, 60% 70%, 78% 45%, 100% 100%); }
.ico-link { border-radius: 50%; }
.ico-auto { border-radius: 50%; border-style: dashed; }
.ico-auto::after { content: ""; position: absolute; left: 4px; top: 3px; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.side-label { margin: 10px 10px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
.ico-link::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.count { margin-left: auto; font-size: 11px; color: var(--side-muted); font-variant-numeric: tabular-nums; }
.conn-dots { margin-left: auto; display: flex; gap: 4px; }
.conn-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.conn-dots i.on { background: #2fbf7f; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 18px 32px 14px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-direction: column; min-width: 0; }
.kicker { font-size: 12px; color: var(--muted); font-weight: 600; }
body.is-demo .kicker::after { content: " · Demo: Bean & Bloom"; color: var(--warn); }
.crumbs h1 { margin: 0; font: 600 24px/1.2 var(--head); letter-spacing: -.015em; }
.demo-bar { display: flex; gap: 8px; align-items: center; }
.activity { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; font-weight: 500; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-right-color: var(--accent); } }

.banner { margin: 16px 32px 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); font-size: 13px;
  background: linear-gradient(110deg, rgba(245, 165, 36, .12), rgba(139, 92, 246, .12)); border: 1px solid var(--line); }
.page { padding: 22px 32px 48px; max-width: 1280px; }
.page-intro, .pane-intro { margin: 0 0 16px; max-width: 760px; }

/* --- controls ---------------------------------------------------------------------------------------------------- */

.primary { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 8px 15px; font-weight: 600; }
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 13px; font-weight: 500; }
.ghost:hover:not(:disabled) { border-color: var(--accent); }
.link { background: none; border: 0; color: var(--accent); padding: 4px 2px; font-weight: 500; }
.link:hover:not(:disabled) { text-decoration: underline; }
.link.danger { color: var(--err); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
input:not([type]), input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], textarea, select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 58px; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.field.need input, .field.need textarea { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); animation: need 1s ease 2; }
.field.need .label { color: var(--err); }
.need-note { color: var(--err); font-size: 12px; font-weight: 600; }
.field.need .chips, .field.need .swatches, .field.need .seg { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 10px; }
.need-el { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 10px; }
.need-el + .need-note { display: block; margin: 8px 0 4px; }
.nav-note { color: var(--err); font-weight: 600; margin-right: 12px; align-self: center; text-align: right; }
@keyframes need { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--err) 10%, transparent); } }
@media (prefers-reduced-motion: reduce) { .field.need input, .field.need textarea { animation: none; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }

.chips, .tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .tag-picks button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.chips button:hover, .tag-picks button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag-picks { flex: 1; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunken); align-self: flex-start; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.seg-wrap { flex-wrap: wrap; }
.ad-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.improve-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- cards and the step guide ------------------------------------------------------------------------------------ */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.plan-card { padding: 18px 20px; min-width: 0; }
.plan-card h3 { font: 600 15px/1.3 var(--head); margin: 0 0 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.plan-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* each step: full-width sections stacked top to bottom, their fields laid out across the width */
.plan-stack { display: flex; flex-direction: column; gap: 16px; }
.plan-stack > .plan-card { padding: 20px 24px 8px; }
/* section head: title over its description on the left, its buttons on the right */
.card-head { display: grid; grid-auto-flow: column; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 3px 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; grid-row: 1; grid-column: 1; }
.card-head p { margin: 0; grid-row: 2; grid-column: 1; }
.card-head > .spacer { display: none; }
.card-head > button, .card-head > .tag-picks { grid-row: 1 / span 2; }
.card-head > .tag-picks { justify-content: flex-end; max-width: 520px; }
.row { display: grid; gap: 0 20px; align-items: start; }
.r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.look-row { grid-template-columns: auto auto minmax(0, 1fr); gap: 0 40px; }
.camp-top { grid-template-columns: minmax(0, 1fr) auto minmax(260px, .8fr); }
.camp-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1.6fr); }
.row.dates { gap: 0 10px; }
.results-pair { gap: 16px; }
.results-pair > .plan-card { padding-bottom: 16px; }

.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 18px; }
.lesson-head { display: flex; align-items: center; gap: 10px; }
.lesson-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; flex: none; }
.lesson-todo { margin: 0; font-weight: 500; }
.lesson-head .link { white-space: nowrap; }
.lesson-body { margin-top: 12px; }
.lesson-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lesson-cols b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lesson-cols p { margin: 3px 0 12px; }
.lesson-ex { font-style: italic; }
.lesson-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.term { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--sunken); border-bottom: 1.5px dotted var(--muted); cursor: help; }
.lesson-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.ai-badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 2px 3px 2px 8px; vertical-align: middle; }
.ai-badge button { border: 0; background: var(--surface); color: var(--text); border-radius: 999px; font-size: 10.5px; padding: 1px 8px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.coach { margin-top: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.coach h3 { margin: 0 0 8px; font: 600 15px var(--head); }
.coach-checks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; font-size: 13px; }
.coach-checks .ok { color: var(--ok); }
.coach-checks .miss { color: var(--muted); }
.coach-ai .good { font-weight: 500; }
.plan-nav { display: flex; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* --- 1 brand, 2 personas ----------------------------------------------------------------------------------------- */

.swatches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; display: inline-flex; }
.swatch-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--err); background: var(--surface); color: var(--err); font-size: 9px; line-height: 1; padding: 0; }
.swatch-x:hover { background: var(--err); color: #fff; }
.tag-picks .dismiss { border: 0; background: none; color: var(--err); padding: 5px 6px; }
.tag-picks .dismiss:hover { text-decoration: underline; }
.funnel-pic { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
input[type="color"] { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: var(--surface); cursor: pointer; }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-row img { height: 44px; max-width: 120px; object-fit: contain; border-radius: 6px; background: repeating-conic-gradient(#e9e6e0 0 25%, #fff 0 50%) 0 / 12px 12px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.persona { padding: 18px 20px; }
.persona-tools { display: flex; justify-content: flex-end; gap: 14px; margin: -8px 0 6px; }
.mini-link { border: 0; background: none; padding: 2px 0; font-size: 11.5px; font-weight: 500; color: var(--err); }
.mini-link:hover { text-decoration: underline; }
.persona-top { display: flex; gap: 14px; align-items: flex-end; }
.persona-top .field { flex: 1; }
.persona-pic { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--accent-soft); color: var(--accent); font: 700 24px var(--head); }
.persona-pic img { width: 100%; height: 100%; object-fit: cover; }
.persona-pic.making { position: relative; color: transparent; }
.persona-pic.making::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 3px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.persona-row.persona-row3 { grid-template-columns: 70px 116px minmax(0, 1fr); }
.persona-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.persona-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.pic-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 10px; background: var(--sunken); border-radius: 10px; max-height: 260px; overflow: auto; }
.pic-picker img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.pic-picker img:hover { border-color: var(--accent); }

/* --- 3 competitors and channels ---------------------------------------------------------------------------------- */

.comp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.comp { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.comp-head { display: flex; gap: 8px; align-items: center; }
.comp textarea { min-height: 48px; }
.comp > .ai-badge { align-self: flex-start; margin-left: 0; }
.comp .chips button { font-size: 12px; padding: 3px 9px; }
.presence-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pres { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pres:not(.off) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); }
.pres label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; }
.pres.off input[type="text"] { opacity: .45; }
.pres .who { font-size: 12px; color: var(--ok); }
.pres .who:empty { display: none; }

/* --- 4 campaign -------------------------------------------------------------------------------------------------- */

.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-bottom: 16px; }
.funnel-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; background: var(--surface-2); }
.funnel-step:nth-child(2) { border-top-color: color-mix(in srgb, var(--accent) 70%, #ff5e62); }
.funnel-step:nth-child(3) { border-top-color: color-mix(in srgb, var(--accent) 40%, #ff5e62); }
.funnel-step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 40px; color: var(--faint); font-size: 18px; }
.funnel-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.funnel-text textarea { min-height: 76px; }
.funnel-pic img { width: 100%; aspect-ratio: 4 / 5; max-height: 260px; object-fit: cover; border-radius: 10px; display: block; }
.metric-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.metric:has(input[type="checkbox"]:checked) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); }
.metric label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }

/* --- 5 content plan ---------------------------------------------------------------------------------------------- */

.cal-bar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; }
.cal-bar .field { margin: 0; }
.cal-bar .link { align-self: center; }
.make-note { background: var(--accent-soft); padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.idea-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 16px; max-height: 300px; overflow: auto; margin-bottom: 12px; }
.idea-add { max-width: 720px; }
.cal-month { padding-bottom: 20px !important; }
.idea-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; }
.idea-row:hover { background: var(--sunken); }
.idea-row .t { flex: 1; font-size: 13px; }
.idea-row button { border: 0; background: none; color: var(--err); opacity: .7; padding: 2px 6px; border-radius: 6px; }
.idea-row:hover button, .idea-row button:focus-visible { opacity: 1; }
.idea-row button:hover { background: var(--surface); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.idea-add { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 6px; margin-bottom: 10px; }
.cal-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head h3 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 0 4px; }
.cal-day { min-height: 112px; display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--text); text-align: left; overflow: hidden; }
.cal-day:hover { border-color: var(--accent); }
.cal-day.out { background: none; border: 0; }
.cal-day .d { font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-day img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; }
.cal-day .e { font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cal-day .s { font-size: 10px; color: var(--faint); margin-top: auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }

/* --- 6 results --------------------------------------------------------------------------------------------------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile .v { font: 700 28px/1.2 var(--head); margin: 4px 0; font-variant-numeric: tabular-nums; }
.tile .t { font-size: 12px; color: var(--muted); }
.prog { height: 5px; background: var(--sunken); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.prog span { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.rtable-wrap { overflow-x: auto; margin: 10px 0; padding-bottom: 6px; }
/* a scrollbar that stays visible (macOS hides them), so the columns further right are easy to find */
.rtable-wrap::-webkit-scrollbar { height: 10px; }
.rtable-wrap::-webkit-scrollbar-track { background: var(--sunken); border-radius: 6px; }
.rtable-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--sunken); }
.rtable-wrap::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.rtable { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.rtable th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rtable td { padding: 4px; border-bottom: 1px solid var(--line); }
.rtable input, .rtable select { padding: 5px 6px; font-size: 12.5px; }
.rtable input[type="number"] { width: 60px; }
.rtable input[type="date"] { width: 128px; }
.rtable select { width: auto; min-width: 104px; max-width: 150px; }
.rtable td.er { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the remove column stays at the right edge while the table scrolls sideways */
.rtable tr > :last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(0, 0, 0, .25); text-align: center; }
.row-del { width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--err) 45%, var(--line)); border-radius: 8px; background: var(--surface); color: var(--err); font-size: 13px; }
.row-del:hover { background: var(--err); border-color: var(--err); color: #fff; }
.hbars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 52px; gap: 8px; align-items: center; font-size: 12.5px; }
.track { height: 12px; background: var(--sunken); border-radius: 6px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 6px; }
.val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.insights .ins-head:first-child { margin-top: 0; }
.insights ul { margin: 4px 0; padding-left: 18px; }
.ins-head { font-weight: 600; }
.ins-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-top: 10px; }

/* --- 7 presentation ---------------------------------------------------------------------------------------------- */

.present-card { max-width: 780px; }
.present-list { padding-left: 22px; margin: 0 0 16px; }
.present-list li { padding: 4px 0; }
.present-list li.miss { color: var(--faint); }
.present-list li.miss b { font-weight: 500; }

/* --- pictures ---------------------------------------------------------------------------------------------------- */

.lib-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lib-bar p { margin: 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.lib-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lib-img { aspect-ratio: 4 / 5; background: var(--sunken); }
.lib-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-card figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lib-card b { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); max-width: 560px; margin: 40px auto; }
.empty h3 { font: 600 17px var(--head); margin: 0 0 6px; }

/* --- connections ------------------------------------------------------------------------------------------------- */

.conn-grid { display: grid; grid-template-columns: minmax(0, 760px); gap: 16px; margin-bottom: 16px; align-items: start; }
.conn-card { padding: 20px; }
.conn-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.conn-head h3 { margin: 0 0 3px; font: 600 16px var(--head); }
.conn-head p { margin: 0; }
.name-link { all: unset; cursor: pointer; font: inherit; color: inherit; }
.name-link:hover, .name-link:focus-visible { color: var(--accent); text-decoration: underline; }
.conn-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.conn-side .conn-state { margin-left: 0; }
.conn-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--head); color: #fff; flex: none; }
.conn-logo.cf { background: #fff3e8; border: 1px solid #f7d2b0; }
.conn-logo.n8n { background: #fdecf1; border: 1px solid #f5c3d1; }
.saved-file { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); font-size: 13px; color: var(--text); }
.saved-path code { display: inline-block; margin: 6px 0 2px; padding: 4px 8px; border-radius: 6px; background: var(--surface); font-size: 12.5px; word-break: break-all; }
.acc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.acc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.acc.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: var(--surface); }
.acc.soon { opacity: .6; }
.acc.off { background: var(--sunken); }
.acc.off b { color: var(--muted); }
.acc-off { margin-left: 4px; }
.acc-again { padding: 4px 11px; font-size: 12.5px; }
.acc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.acc.ok .acc-dot { background: var(--ok); }
.acc.ok .acc-state { color: var(--ok); font-weight: 600; }
.acc-how { margin-top: 10px; font-size: 13px; }
.acc-how summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.acc-how ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.acc-copy { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
/* the Google Sheets guide */
.guide { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; counter-reset: g; }
.g-part { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px 6px; }
.g-part h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 14.5px var(--head); }
.g-where { font: 700 10.5px var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; color: #fff; }
.g-where.gs { background: #188038; } .g-where.cf { background: #f38020; } .g-where.li { background: #0a66c2; } .g-where.n8 { background: #ea4b71; } .g-where.or { background: var(--accent); }
.g-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.g-step { counter-increment: g; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; }
.g-step.next { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.g-step.done .g-body > p { color: var(--muted); }
.g-step .g-body > p::before { content: counter(g) ". "; font-weight: 700; color: var(--text); }
.g-tick { display: flex; justify-content: center; padding-top: 2px; }
.g-tick input { width: 18px; height: 18px; }
.g-body > p { margin: 0; line-height: 1.5; }
.g-extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.g-link { flex: 1; min-width: 260px; }
.g-sheet { display: grid; grid-template-columns: repeat(7, minmax(62px, auto)); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font-size: 12px; background: var(--surface); }
.g-sheet span { padding: 5px 9px; border-left: 1px solid var(--line); font-weight: 600; }
.g-sheet span:first-child { border-left: 0; }
.g-sheet .a1 { outline: 2px solid #188038; outline-offset: -2px; }
.chip-box { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.chip-box.faded { opacity: .45; }
.g-map { margin: 0 0 8px; padding: 8px; border-radius: 10px; background: var(--sunken); overflow-x: auto; }
.m-map { display: block; width: 100%; min-width: 540px; height: auto; }
.m-box rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.m-box text { font: 600 10.5px var(--body); fill: var(--muted); text-anchor: middle; }
.m-box.on rect { fill: color-mix(in srgb, #ea4b71 14%, var(--surface)); stroke: #ea4b71; stroke-width: 2; }
.m-box.on text { fill: var(--text); }
.m-line { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.m-note { font: 700 14px var(--body); fill: var(--faint); }
.acc-copy code { background: var(--sunken); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }
.conn-state { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--muted); background: var(--sunken); padding: 3px 10px; border-radius: 999px; }
.conn-state.on { color: var(--ok); background: var(--ok-soft); }
.howto { padding-left: 18px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.howto li { margin: 3px 0; }
.howto .link { padding: 0; }
.meter { height: 8px; border-radius: 6px; background: var(--sunken); overflow: hidden; margin-bottom: 8px; }
.meter-fill { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* --- dialogs ----------------------------------------------------------------------------------------------------- */

dialog { border: 0; border-radius: 18px; padding: 22px 24px; background: var(--surface); color: var(--text); width: min(900px, 92vw); max-height: 90vh;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(15, 12, 25, .5); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 14px; font: 600 20px var(--head); }
dialog h3 { margin: 18px 0 4px; font: 600 15px var(--head); }
.file-dlg { width: min(580px, 92vw); }
.setup-dlg { width: min(1080px, 94vw); padding: 28px 30px 22px; }
.setup-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.setup-head .mark { width: 44px; height: 44px; margin-top: 2px;
  -webkit-mask: radial-gradient(circle, transparent 10px, #000 10.5px, #000 16px, transparent 16.5px, transparent 18px, #000 18.5px); }
.setup-head h2 { margin: 0 0 4px; font-size: 24px; }
.setup-head p { margin: 0; max-width: 720px; }
.setup-cols { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: 28px; }
#suGuide .guide, #ndGuide .guide { margin-top: 0; }
#suGuide .g-shot, #ndGuide .g-shot { max-width: 380px; }
.setup-cols > .setup-gets { align-self: start; position: sticky; top: 0; }
.setup-gets { background: linear-gradient(140deg, rgba(245, 165, 36, .10), rgba(139, 92, 246, .10)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.setup-gets h3 { margin: 0 0 10px; }
.setup-gets ul { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.setup-gets li { line-height: 1.45; }
.setup-form .howto { margin-top: 2px; }
.setup-head .conn-logo { width: 44px; height: 44px; margin-top: 2px; }
.setup-later { margin: 16px 0 0; }
/* Automations (Settings) */
.auto-group { margin: 10px 0 -4px; font: 600 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auto-card.st-later { opacity: .72; }
.auto-card.st-later .auto-icon { background: var(--sunken); color: var(--muted); }
.af-has { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.af-steps li { display: flex; gap: 10px; align-items: flex-start; }
.af-steps li .g-where { flex: none; margin-top: 2px; }
.af-text { flex: 1; }
.af-steps { list-style: none; padding-left: 0; }
.af-num { flex: none; width: 18px; }
.auto-file.needs { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.auto-file.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.af-warn { margin: 10px 0 6px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); font-weight: 500; }
.af-steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.af-steps .ad-row { margin-top: 6px; }
.af-steps .ad-row input { flex: 1; min-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.auto-again { margin: 4px 4px 0; }
.auto-again summary, .auto-file details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 6px; }
.auto-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); font-weight: 500; }
.auto-list { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.auto-list .auto-card { padding: 18px 22px; }
.auto-list .auto-card.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.auto-title h3 { margin: 0; font: 600 16px var(--head); }
.auto-title p { margin: 2px 0 0; }
.auto-head .auto-icon { width: 36px; height: 36px; font-size: 13px; }
.auto-state { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.auto-card.st-ok .auto-state { background: var(--ok-soft); color: var(--ok); }
.auto-card.st-off .auto-state { background: var(--sunken); }
.auto-when { margin: 10px 0 0 46px; color: var(--muted); }
.auto-body { margin-left: 46px; }
.auto-body > .ad-row { margin-top: 10px; }
.auto-guide { margin-top: 10px; }
.auto-guide summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.auto-step .card-head { margin-bottom: 12px; }
.auto-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.auto-chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.auto-chip.st-ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
/* 6 · Automate */
.flow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.flow-node { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); min-width: 150px; }
.flow-node small { color: var(--muted); font-size: 12px; }
.flow-node.st-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.flow-node.st-ok small { color: var(--ok); font-weight: 600; }
.flow-node.st-soon { opacity: .55; }
.flow-arrow { color: var(--faint); font-size: 20px; }
.flow-outs { display: flex; flex-direction: column; gap: 8px; }
.auto-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.auto-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.auto-card p { margin: 0; flex: 1; }
.auto-card.st-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--surface); }
.auto-card.st-ok .auto-state { color: var(--ok); font-weight: 600; }
.auto-card.st-soon { opacity: .55; }
.auto-head { display: flex; align-items: center; gap: 10px; }
.auto-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--head); color: #fff; background: #188038; flex: none; }
.auto-card[data-id=gmail] .auto-icon { background: #d93025; }
.auto-card[data-id=linkedin] .auto-icon { background: #0a66c2; }
@media (max-width: 1100px) { .auto-cards { grid-template-columns: minmax(0, 1fr); } }
.pic-dlg { width: min(680px, 94vw); }
.pic-dlg > p { margin: -6px 0 16px; }
.pic-modes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pic-mode { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.pic-mode:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pic-mode input { margin-top: 3px; }
.pic-mode span { display: flex; flex-direction: column; gap: 2px; }
.pic-idea { margin: -2px 0 4px 40px; }
.pic-idea p { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--sunken); font-style: italic; line-height: 1.5; }
.pic-modes textarea { margin-left: 40px; width: calc(100% - 40px); }
.n8n-hint { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, #ea4b71 35%, var(--line)); background: color-mix(in srgb, #ea4b71 7%, var(--surface)); font-size: 13.5px; flex-wrap: wrap; }
.n8n-hint .conn-logo { width: 34px; height: 34px; font-size: 11px; }
.n8n-hint > span:nth-child(2) { flex: 1 1 380px; }
.n8n-hint > .spacer { display: none; }
@media (max-width: 860px) { .setup-cols { grid-template-columns: minmax(0, 1fr); } }
.day-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.dlg-actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
/* the buttons stay in view when a dialog scrolls */
dialog .dlg-actions { position: sticky; bottom: -22px; background: var(--surface); padding-bottom: 22px; margin-bottom: -22px; z-index: 1; }
.post-platforms { display: flex; gap: 14px; flex-wrap: wrap; }
.post-platforms label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.post-caps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.post-cap-head { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.day-item { display: flex; flex-direction: column; gap: 8px; }
.day-item img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: var(--sunken); }
.day-empty { aspect-ratio: 4 / 5; max-height: 320px; display: grid; place-items: center; text-align: center; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.day-pic-actions { margin-top: -4px; }

/* --- narrower windows -------------------------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .r3, .camp-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp-bottom > :last-child { grid-column: 1 / -1; }
  .camp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .camp-top > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .metric-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .look-row { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .results-pair, .r21 { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .funnel-step:not(:last-child)::after { content: none; }
}
@media (max-width: 1040px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .topbar, .page { padding-left: 22px; padding-right: 22px; }
  .banner { margin-left: 22px; margin-right: 22px; }
  .lesson-cols, .day-cols { grid-template-columns: minmax(0, 1fr); }
  
}

/* Accounts: the steps as a dropdown, with page sketches */
.conn-steps { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.conn-steps > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.conn-fields { width: 100%; }
.g-shot-wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
.g-shot { width: 100%; max-width: 400px; height: auto; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ok-text { color: var(--ok); font-weight: 600; }

.auto-switch { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.auto-switch > .ad-row:first-child { margin: 0; }
.auto-switch h4.sw-title { margin: 0; font: 600 14.5px var(--head); }
.auto-head .mini-link + .mini-link { margin-left: 10px; }
.sw-link { margin-right: 12px; }

/* Plan › Campaigns */
.camp-month { border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; background: var(--surface); }
.camp-month > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.camp-month > summary b { font: 600 15px var(--head); }
.camp-days { border-top: 1px solid var(--line); padding: 6px 10px 10px; }
.camp-day { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px dashed var(--line); }
.camp-day:last-child { border-bottom: 0; }
.camp-date { font-weight: 600; font-size: 13px; }
.camp-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.camp-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.camp-tag.ok { background: var(--ok-soft); color: var(--ok); }
.camp-tag.li { background: #e8f1fb; color: #0a66c2; }
.camp-tag.done { text-decoration: none; opacity: .8; }
@media (max-width: 860px) { .camp-day { grid-template-columns: minmax(0, 1fr) auto; } .camp-tags { grid-column: 1 / -1; justify-content: flex-start; } }
.auto-switch .g-end .g-extra { margin-top: 12px; }

.auto-toggle { border: 0; background: none; color: var(--accent); font: 600 13px var(--body); cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.auto-card .auto-title { cursor: pointer; }
.auto-card:not(.open) .auto-head { margin-bottom: 0; }