Repository navigation
Expand file tree
/
Copy pathdashboard.html
More file actions
5109 lines (4971 loc) · 438 KB
/
Copy pathdashboard.html
File metadata and controls
5109 lines (4971 loc) · 438 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
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
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#F4F4F5" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#18181B" media="(prefers-color-scheme: dark)">
<title>ANA</title>
<link rel="icon" type="image/png" href="/ana-logo.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css">
<style>
/* =========================================================================
ANA 대시보드 — 좌: 할일/일정/메모/진화 4탭, 우: 접이식 채팅 사이드바
AIFactory/Assiworks 디자인 시스템 토큰(github.com/aifactory-team/design-system)을 따르되
키컬러는 보라(#702EFF) 대신 군청색(navy). zinc 회색, 라운드 6/8/12/16/20, 굵기 600/700, Pretendard.
하드코딩 금지, 다크모드·노치 대응.
========================================================================= */
:root {
--bg: #F4F4F5; --surface: #FFFFFF; --surface-2: #FAFAFA;
--text: #18181B; --text-sub: #52525B; --text-weak: #71717A;
--line: #E4E4E7; --line-2: #F1F1F2;
/* 강조색(브랜드)은 --acc*를 경유한다 — 기본은 군청색, 설정 > Accent color가 --acc*만 바꾼다 */
--acc: #1E3A8A; --acc-strong: #172E6E; --acc-weak: #EAEEF9;
--blue: var(--acc); --blue-700: var(--acc-strong); --blue-weak: var(--acc-weak);
--green: #16C47F; --white: #FFFFFF;
--danger: #E0342B; --danger-bg: #FDECEC; --success: #0F9D58; --success-bg: #E7F8EF;
--warm-bg: #FFF2E5; --warm-fg: #E8731C;
--c-1: #FF5A8A;
--r-xl: 20px; --r-lg: 16px; --r: 12px; --r-sm: 8px; --r-xs: 6px;
--sh-card: 0 1px 2px rgba(24,24,27,.05), 0 4px 16px rgba(24,24,27,.06);
--sh-fab: 0 8px 20px color-mix(in srgb, var(--acc) 40%, transparent);
--sh-sheet: 0 -10px 40px rgba(0,0,0,.16);
--header-h: 52px; --chat-w: 400px;
--safe-b: env(safe-area-inset-bottom, 0px);
--kb: 0px; /* 모바일 키보드가 가리는 높이(visualViewport로 갱신) */
--safe-t: env(safe-area-inset-top, 0px);
font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
"Apple SD Gothic Neo", system-ui, "Segoe UI", Roboto, sans-serif;
}
/* JS 없는 환경의 폴백 — JS가 data-mode="light"를 심으면(설정에서 Light 강제) 이 블록은 물러난다 */
@media (prefers-color-scheme: dark) {
:root:not([data-mode="light"]) {
--bg: #18181B; --surface: #1F1F23; --surface-2: #27272A;
--text: #FAFAFA; --text-sub: #D4D4D8; --text-weak: #A1A1AA;
--line: #3F3F46; --line-2: #2E2E33;
--acc: #7D99EE; --acc-weak: #1C2748;
--danger-bg: #4A1A18; --danger: #FF9B93; --success-bg: #143D2A; --success: #5BE2A0;
--warm-bg: #4A3115; --warm-fg: #FFC489;
--acc-strong: #B4C5F6; --sh-card: 0 1px 3px rgba(0,0,0,.4);
}
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; height: 100dvh; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; letter-spacing: -0.01em;
-webkit-font-smoothing: antialiased; overscroll-behavior-y: none; overflow-x: hidden;
display: grid; grid-template-columns: minmax(0, 1fr) 0; height: 100dvh; transition: grid-template-columns .24s cubic-bezier(.32,.72,0,1); }
/* 채팅 도킹: 열리면 우측 컬럼이 생기며 메인이 줄어든다(오버레이 아님, 횡스크롤 없음) */
body.chatting { grid-template-columns: minmax(0, 1fr) var(--chat-w); }
body.chat-resizing { transition: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-card); }
/* ---------- 좌: 메인 (할일/일정/진화) ---------- */
#main { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.topnav { flex: 0 0 auto; display: flex; align-items: stretch; gap: 0; padding: var(--safe-t) 10px 0; height: calc(var(--header-h) + var(--safe-t));
border-bottom: 1px solid var(--line-2); background: var(--bg); }
.topnav-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 0 10px; }
.topnav-brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.topnav-brand .bname { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.topnav .tab { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 16px;
color: var(--text-weak); font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; }
.topnav .tab.on { color: var(--text); }
.topnav .tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--text); }
.topnav .tab .tbadge { min-width: 17px; height: 17px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: var(--c-1); color: #fff; font-size: 10.5px; line-height: 17px; font-weight: 700; display: none; }
.topnav .tab .tbadge.show { display: inline-block; }
/* 메뉴: ANA 로고(지금 탭 이름 ▾)를 누르면 탭 목록이 드롭다운으로 열린다 */
.topnav-brand { border-radius: var(--r-sm); margin: 6px 0; color: var(--text); }
.topnav-brand:hover, .topnav-brand[aria-expanded="true"] { background: var(--surface-2); }
.topnav-brand .bcur { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-sub); padding-left: 9px; border-left: 1px solid var(--line); }
.topnav-brand .bchev { width: 15px; height: 15px; color: var(--text-weak); transition: transform .15s; }
.topnav-brand[aria-expanded="true"] .bchev { transform: rotate(180deg); }
.topnav-brand .tbadge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--c-1); color: #fff; font-size: 10.5px; line-height: 17px; font-weight: 700; display: none; }
.topnav-brand .tbadge.show { display: inline-block; }
.tabstrip { position: fixed; top: calc(var(--header-h) + var(--safe-t) + 4px); left: 12px; z-index: 80; min-width: 220px; padding: 6px;
display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sheet); }
.tabstrip[hidden] { display: none; }
.topnav .tabstrip .tab { justify-content: flex-start; height: 42px; padding: 0 12px; border-radius: var(--r-xs); font-size: 14.5px; }
.topnav .tabstrip .tab:hover { background: var(--surface-2); color: var(--text); }
.topnav .tabstrip .tab.on { background: var(--surface-2); }
.topnav .tabstrip .tab.on::after { display: none; }
.topnav .tabstrip .tab .tbadge { margin-left: auto; }
.topnav .tab { flex: 0 0 auto; white-space: nowrap; }
.topnav .sp { flex: 1; }
/* ANA 토글 버튼 */
.mode-toggle { flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; margin-right: 8px;
border-radius: 999px; background: var(--surface-2); color: var(--text-weak); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; transition: background .15s, color .15s; }
.mode-toggle .knob { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s; flex: 0 0 auto; }
.mode-toggle .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: var(--sh-card); transition: transform .18s; }
body.ana-mode .mode-toggle { background: var(--blue-weak); color: var(--blue-700); }
body.ana-mode .mode-toggle .knob { background: var(--blue); }
body.ana-mode .mode-toggle .knob::after { transform: translateX(18px); }
/* Chip 토글 옆 새로고침 — 칩으로 못 고르는 새 요소를 찾아 등록(Chip 모드에서만 보임) */
.chip-scan { flex: 0 0 auto; align-self: center; display: none; place-items: center; width: 34px; height: 34px; margin: 0 8px 0 0;
border-radius: 999px; background: var(--blue-weak); color: var(--blue-700); }
body.ana-mode .chip-scan { display: grid; }
/* Chip 토글 · 그리기 · 새로고침 · 프로필 — 같은 간격(8px)으로 나란히 */
body.ana-mode .mode-toggle { margin-right: 8px; }
.draw-btn { margin-right: 8px; }
body.modal-open :is(.mode-toggle, .draw-btn) { position: relative; z-index: 72; } /* 팝업 가림막(60)·팝업(70) 위 — 팝업 위에 그릴 수 있게 */
.draw-btn svg { width: 17px; height: 17px; }
/* 그리기(어노테이션) 레이어 — #main 위에 겹쳐 펜으로 표시하고, 화면+표시를 한 장으로 칩에 넣는다 */
.draw-layer { position: fixed; z-index: 85; touch-action: none; cursor: crosshair; }
.draw-layer[hidden] { display: none; }
.draw-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.draw-layer::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--blue); pointer-events: none; border-radius: 4px; }
.draw-bar { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-sheet); cursor: default; white-space: nowrap; }
.draw-bar .dhint { font-size: 12.5px; font-weight: 700; color: var(--text-sub); padding: 0 8px 0 10px; }
.draw-bar button { height: 34px; padding: 0 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; color: var(--text-sub); background: var(--surface-2); }
.draw-bar button:disabled { opacity: .4; cursor: default; }
.draw-bar .dsw { width: 26px; height: 26px; padding: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--line); }
.draw-bar .dsw.on { box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2.5px var(--text); }
.draw-bar .dok { background: var(--blue); color: var(--white); }
.draw-layer.busy .draw-bar { visibility: hidden; }
@media (max-width: 520px) { .draw-bar .dhint { display: none; } .draw-bar button { padding: 0 10px; } }
.chip-scan:hover { background: color-mix(in srgb, var(--blue) 22%, var(--blue-weak)); }
.chip-scan svg { width: 16px; height: 16px; }
.chip-scan.spin svg { animation: chipspin .6s linear; }
@keyframes chipspin { to { transform: rotate(360deg); } }
/* 스캔으로 새로 등록된 요소를 잠깐 표시 */
body.ana-mode .chip-new { outline: 2px dashed var(--blue); outline-offset: 2px; border-radius: 8px; }
/* ANA 모드: 캡처 가능한 요소에 클릭 어포던스(클릭 시 컨텍스트 칩으로 추가) */
body.ana-mode .item, body.ana-mode .evo-card { cursor: copy; }
body.ana-mode .item:hover, body.ana-mode .evo-card:hover { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
/* ANA 모드: 메모 내용은 드래그 선택 → 칩 */
/* 컨텍스트 칩 (채팅 컴포저 위) */
.chips { display: none; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
body.chatting .chips.has { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px 5px 11px; border-radius: 999px; background: var(--blue-weak); color: var(--blue-700); font-size: 12px; font-weight: 700; }
.chip .ct { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .k { opacity: .6; font-weight: 700; }
.chip button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 999px; color: var(--blue-700); opacity: .7; }
.chip button:hover { opacity: 1; background: rgba(0,0,0,.08); }
.chip button svg { width: 11px; height: 11px; }
/* 채팅 펼치기 버튼(사이드바 접힘 상태, PC) */
.chat-open-btn { flex: 0 0 auto; align-self: center; display: none; align-items: center; gap: 6px; height: 36px; padding: 0 14px; margin-right: 4px;
border-radius: 999px; background: var(--surface); box-shadow: var(--sh-card); color: var(--blue-700); font-size: 13px; font-weight: 700; }
body.chat-collapsed .chat-open-btn { display: inline-flex; }
/* #feed와 같은 이유 — overflow-y만 주면 overflow-x가 auto로 계산돼 긴 항목 하나가 탭 전체를 옆으로 민다 */
.view { display: none; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.view.on { display: block; }
.wrap { max-width: 900px; margin: 0 auto; padding: 16px clamp(14px, 4vw, 28px) 48px; }
/* 섹션 헤더 + 추가 버튼 */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 4px 2px 12px; }
.sec-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.sec-head .cnt { font-size: 13px; color: var(--text-weak); font-weight: 700; }
.sec-head .sp { flex: 1; }
/* 할일 KPI */
/* 할일 리스트 */
.item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin-bottom: 8px; cursor: pointer; transition: transform .08s; }
.item:active { transform: scale(.992); }
.item.done { opacity: .55; }
.chk { flex: 0 0 auto; width: 23px; height: 23px; border-radius: 999px; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; transition: .15s; }
.item.done .chk { background: var(--green); border-color: var(--green); }
.chk svg { width: 13px; height: 13px; stroke: var(--white); stroke-width: 3; fill: none; opacity: 0; }
.item.done .chk svg { opacity: 1; }
.item .body { flex: 1; min-width: 0; }
.item .title { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.item.done .title { text-decoration: line-through; }
.item .due { font-size: 12px; color: var(--warm-fg); font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.item .due svg { width: 13px; height: 13px; opacity: .75; }
/* 관계 칩 — NodeRel 그래프의 명시적 관계(spawned·scheduledAs·refersTo). 누르면 그 항목으로 이동 */
.rels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rel { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 24px; padding: 2px 9px; border-radius: 999px;
background: var(--surface-2); color: var(--text-sub); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .12s; }
.rel:hover, .rel:focus-visible { background: var(--blue-weak); outline: none; }
.rel .rk { flex: 0 0 auto; font-weight: 700; color: var(--blue-700); }
.rel.k-Note .rk { color: var(--warm-fg); }
.rel.k-Event .rk { color: var(--success); }
.rel .rt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.rel .rx { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 999px; color: var(--text-weak); font-size: 11px; line-height: 16px; display: none; }
.rel:hover .rx, .rel:focus-within .rx { display: inline-block; }
@media (hover: none) { .rel .rx { display: inline-block; } }
.rel .rx:hover { color: var(--danger); }
@keyframes relFlash { 0% { box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: 0 0 0 3px transparent; } }
.empty { text-align: center; color: var(--text-weak); padding: 40px 0; font-weight: 600; font-size: 13.5px; }
.k-ptype code { white-space: nowrap; } .k-pvals { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 3px; } .k-pvals code { font-size: 11px; padding: 0 4px; border-radius: 4px; background: rgba(127,127,127,.12); }
.kl-box { margin: 8px 0 12px; font-size: 13px; color: var(--text-weak); }
.kl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 600; } .kl-top .ib-btn { white-space: nowrap; flex: none; }
.kl-box.err .kl-top { color: #EF4444; }
.kl-bar { height: 4px; border-radius: 2px; background: rgba(127,127,127,.18); overflow: hidden; }
.kl-bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.kl-bar.ind i { width: 30%; animation: klInd 1.1s ease-in-out infinite; }
@keyframes klInd { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.kl-box details { margin-top: 6px; } .kl-box summary { cursor: pointer; font-size: 12px; }
.kl-log { margin: 6px 0 0; padding: 8px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; font: 11.5px/1.5 ui-monospace, Menlo, monospace; background: rgba(127,127,127,.08); border-radius: 6px; }
/* 일정 달력 — 3단: 좌(다가오는 일정) / 중앙(달력) / 우(선택일 시간 항목) */
/* 선택 날짜 일정 리스트 (우측 패널) */
/* 메모 탭 — 좌: 목록 / 우: 편집기 */
/* 목록 맨 아래 항목형 추가 버튼 — 상단 +메모 버튼 대체 */
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 74px); z-index: 96;
width: max-content; max-width: min(420px, calc(100vw - 32px)); text-align: center; line-height: 1.45; overflow-wrap: anywhere;
padding: 10px 18px; border-radius: 16px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 700;
box-shadow: var(--sh-sheet); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.on { opacity: 1; }
/* 프로필 아바타 */
.av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--blue-weak);
color: var(--blue-700); font-size: 12.5px; font-weight: 700; overflow: hidden; flex: 0 0 auto; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.lg { width: 64px; height: 64px; font-size: 24px; }
.av.sm { width: 20px; height: 20px; font-size: 9.5px; }
.avatar-btn { flex: 0 0 auto; align-self: center; margin-left: 0; padding: 0; border-radius: 999px; }
.avatar-btn .av { box-shadow: var(--sh-card); }
/* 프로필 드롭다운 메뉴 — 아바타 클릭 시 열림 */
.me-menu { position: fixed; top: calc(var(--header-h) + var(--safe-t) + 4px); right: 12px; z-index: 80; min-width: 180px; padding: 6px;
background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-sheet); }
.me-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: var(--r-xs);
font-size: 13.5px; font-weight: 700; color: var(--text); text-align: left; }
.me-menu button:hover { background: var(--surface-2); }
.me-menu button svg { width: 16px; height: 16px; color: var(--text-weak); flex: 0 0 auto; }
.me-menu .mm-sep { height: 1px; margin: 4px 6px; background: var(--line-2); }
.me-menu #menuLogout { color: var(--danger); }
.me-menu #menuLogout svg { color: var(--danger); }
.me-menu #menuLogout:disabled { color: var(--text-weak); cursor: default; }
.me-menu #menuLogout:disabled:hover { background: none; }
.me-menu #menuLogout:disabled svg { color: var(--text-weak); }
.me-menu .mm-hint { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--text-weak); }
.me-menu .mm-hint[hidden] { display: none; }
/* 워크스페이스 콤보 — 브랜드 옆 알약 버튼 + 드롭다운(선택·추가) */
/* 순서 변경 — 핸들을 끌거나(마우스·터치) 핸들에 포커스 후 ↑/↓ */
/* 설정 모달 — 강조색 스와치 */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; padding: 9px 4px;
border-radius: var(--r-xs); border: 1.5px solid var(--line); background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--text-sub); }
.swatch:hover { border-color: var(--text-weak); }
.swatch.on { border-color: var(--acc); background: var(--acc-weak); color: var(--acc-strong); }
.swatch .sw { width: 22px; height: 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.me-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.me-pic { padding: 0; border-radius: 999px; }
.me-id { min-width: 0; }
.me-mail { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.me-hint { font-size: 12px; color: var(--text-weak); font-weight: 700; margin-top: 3px; }
/* 작성자 배지 */
.by { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-weak); }
.by .av { width: 18px; height: 18px; font-size: 9px; }
/* 통계 */
.people { margin-top: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 8px; }
/* 새 버전 알림 — 열어 둔 탭이 옛 코드일 때만 뜬다 */
.newver { display: none; position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 66px); z-index: 97; max-width: calc(100vw - 32px); cursor: pointer;
padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 13px; font-weight: 700; box-shadow: var(--sh-sheet); }
.newver.on { display: block; }
/* 사진 확대 뷰어 */
/* 진화 탭 */
.evo-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 2px 12px; }
.evo-lead { font-size: 12px; color: var(--text-weak); font-weight: 600; }
.evo-cta { margin-bottom: 12px; }
.evo-cta button { height: 40px; padding: 0 18px; border-radius: var(--r-sm); background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px; box-shadow: var(--sh-fab); }
.evo-cta button:disabled { opacity: .4; box-shadow: none; }
.evo-card { padding: 13px 15px; margin-bottom: 9px; }
.evo-top { display: flex; align-items: center; gap: 8px; }
.evo-type { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: 0 0 auto; }
.evo-type.improve { background: var(--blue-weak); color: var(--blue-700); }
.evo-type.add { background: var(--success-bg); color: var(--success); }
.evo-type.remove { background: var(--danger-bg); color: var(--danger); }
.evo-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.evo-st { font-size: 11.5px; font-weight: 700; color: var(--warm-fg); background: var(--warm-bg); border-radius: 999px; padding: 2px 8px; }
.evo-how { margin-top: 7px; font-size: 12.5px; color: var(--text-sub); } .evo-how summary { cursor: pointer; font-weight: 700; color: var(--text-weak); } .evo-how div { margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
.plain { margin-top: 8px; display: grid; gap: 5px; } .pl-row { display: grid; grid-template-columns: 108px 1fr; gap: 8px; font-size: 13px; line-height: 1.5; }
.pl-row b { font-size: 11.5px; font-weight: 700; color: var(--text-weak); padding-top: 1px; } .pl-row span { color: var(--text); overflow-wrap: anywhere; }
.pl-ask span { font-weight: 700; } .pl-ifNot span { color: var(--text-sub); }
@media (max-width: 520px) { .pl-row { grid-template-columns: 1fr; gap: 1px; } }
.evo-hz { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-right: 6px; background: var(--surface-2); color: var(--text-sub); cursor: help; }
.evo-hz.improve { background: var(--blue-weak, var(--surface-2)); color: var(--blue-700, var(--blue)); } .evo-hz.reimagine { background: color-mix(in srgb, #8B5CF6 16%, transparent); color: #7C3AED; }
.evo-why, .evo-src { margin-top: 7px; font-size: 12.5px; color: var(--text-sub); line-height: 1.5; overflow-wrap: anywhere; } .evo-why b, .evo-src b { color: var(--text); font-weight: 700; margin-right: 4px; }
.evo-src ul { margin: 3px 0 0 16px; } .evo-src a { color: var(--blue); font-weight: 700; text-decoration: none; } .evo-src a:hover { text-decoration: underline; }
.evo-d { margin-top: 6px; font-size: 13px; color: var(--text-sub); line-height: 1.55; overflow-wrap: anywhere; }
.evo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.evo-acts button { height: 36px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 13px; }
.evo-acts .talk { background: var(--blue-weak); color: var(--blue-700); }
.evo-acts .do { background: var(--blue); color: var(--white); }
.req-card { padding: 13px 15px; margin-bottom: 9px; }
.req-card.answered { box-shadow: var(--sh-card), inset 3px 0 0 var(--blue); }
.req-kind { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: 0 0 auto; background: var(--blue-weak); color: var(--blue-700); }
.req-kind.decision { background: var(--warm-bg); color: var(--warm-fg); }
.req-kind.action { background: var(--success-bg); color: var(--success); }
.req-kind.access { background: var(--danger-bg); color: var(--danger); }
.req-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.req-when { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--text-weak); }
.req-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.req-opts button { min-height: 34px; padding: 4px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); color: var(--text); font-size: 13px; font-weight: 700; }
.req-opts button:hover { box-shadow: 0 0 0 1.5px var(--blue); }
.req-reply { display: flex; gap: 7px; margin-top: 10px; align-items: flex-end; }
.req-reply textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 140px; resize: vertical; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px;
font-family: inherit; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--surface-2); outline: none; }
.req-reply textarea:focus { border-color: var(--blue); background: var(--surface); }
.req-reply .send { flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: var(--r-sm); background: var(--blue); color: var(--white); font-size: 13px; font-weight: 700; }
.req-ans { margin-top: 9px; padding: 8px 11px; border-radius: var(--r-xs); background: var(--surface-2); font-size: 13px; color: var(--text); overflow-wrap: anywhere; white-space: pre-wrap; }
.req-ans b { color: var(--text-weak); font-weight: 700; margin-right: 4px; }
.req-wait { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--blue-700); }
.req-card .evo-acts .reopen { background: var(--surface-2); color: var(--text-sub); box-shadow: var(--sh-card); }
.req-card .evo-acts .done { background: var(--success-bg); color: var(--success); }
.req-closed { margin-top: 18px; }
.req-closed > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-weak); padding: 4px 2px; }
.req-closed .req-card { opacity: .72; }
.req-closed .req-st { margin-right: 4px; font-size: 11px; font-weight: 700; color: var(--text-weak); }
.req-closed .evo-acts button { height: 30px; padding: 0 12px; font-size: 12px; }
.evo-acts .ignore { background: var(--surface-2); color: var(--text-sub); box-shadow: var(--sh-card); }
/* ---------- 우: 채팅 도킹 사이드바 ---------- */
/* grid 2번째 컬럼. 닫히면 컬럼 폭 0이라 화면에서 사라지고 메인이 전체 폭. */
#chatSide { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column; height: 100dvh;
background: var(--surface); border-left: 1px solid var(--line-2); }
/* 내부 콘텐츠는 고정 폭 유지 — 컬럼이 0→chat-w로 애니메이트될 때 찌그러지지 않도록 */
#chatSide > *:not(#chatResize) { width: var(--chat-w); flex-shrink: 0; align-self: flex-end; }
#chatSide > #feed { flex: 1 1 auto; }
/* 채팅 폭 조절바 — 좌측 가장자리, 항상 옅게 보이고 hover/드래그 시 강조 */
#chatResize { position: absolute; left: -3px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 6; display: flex; align-items: center; justify-content: center; }
#chatResize::before { content: ""; width: 3px; height: 42px; border-radius: 3px; background: var(--line); transition: background .15s, height .15s; }
#chatResize:hover::before, #chatResize.dragging::before { background: var(--blue); height: 64px; }
.chat-scrim { display: none; }
/* 모바일/태블릿 세로: 도킹 컬럼이 아니라 전체화면 오버레이.
그리드 컬럼은 항상 0으로 두고 #chatSide를 position:fixed로 띄운다.
(fixed 요소는 문서 스크롤 폭에 기여하지 않아 가로 스크롤이 생기지 않는다) */
@media (max-width: 768px) {
body, body.chatting { grid-template-columns: minmax(0, 1fr) 0; }
#chatResize { display: none; }
/* 채팅은 화면 전체에 고정. 키보드가 떠 있을 때만 '보이는 영역'(visualViewport)에 맞춘다 —
평소에도 offsetTop을 따르면 iOS 바운스 스크롤 중 값이 흔들려 채팅이 통째로 밀려 내려간다 */
#chatSide { position: fixed; left: 0; right: 0; top: 0; bottom: auto; z-index: 50; width: 100%; height: 100dvh; border-left: none;
visibility: hidden; transform: translateX(100%);
transition: transform .24s cubic-bezier(.32,.72,0,1), visibility 0s .24s; }
body.chatting #chatSide { visibility: visible; transform: none;
transition: transform .24s cubic-bezier(.32,.72,0,1), visibility 0s 0s; }
/* 데스크톱의 고정 폭(--chat-w) 대신 화면 폭에 맞춘다 — 컴포저·입력창 잘림 방지 */
#chatSide > *:not(#chatResize) { width: 100%; align-self: stretch; }
/* 상단 탭바: 좁은 폭에서 탭 글자가 세로로 쪼개지지 않도록 압축 */
.topnav { padding: var(--safe-t) 4px 0; }
.topnav-brand { padding: 0 6px; }
.topnav-brand .bname { display: none; }
.topnav-brand .bcur { border-left: 0; padding-left: 0; }
.topnav .tab { padding: 0 10px; white-space: nowrap; }
/* 한 줄을 지킨다: 로고 버튼은 줄어들 수 있고(탭 이름은 …으로), 아바타가 다음 줄로 떨어지지 않게 */
.topnav { flex-wrap: nowrap; }
.topnav-brand { flex: 0 1 auto; min-width: 0; }
.topnav-brand .bcur { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav-brand .tbadge, .topnav-brand .bchev { flex: 0 0 auto; }
}
/* 휴대폰에서 Chip 모드가 켜지면 ✎·⟳가 더 생긴다 — Chip 글자를 숨기고 손잡이만 남겨 한 줄에 들어가게 */
@media (max-width: 430px) {
body.ana-mode .mode-toggle { font-size: 0; gap: 0; padding: 0 6px; margin-right: 4px; }
body.ana-mode .chip-scan { margin-right: 4px; }
}
/* System은 탭이 다섯 개(Trustworthiness가 길다) — 폰 폭에서도 한 줄에 다 보이게 탭 간격과 글자를 조금 줄인다 */
@media (max-width: 430px) {
.topnav .tab { padding: 0 6px; font-size: 13.5px; }
}
@media (max-width: 370px) {
.topnav .tab { padding: 0 5px; font-size: 12.5px; }
}
@media (max-width: 768px) {
.mode-toggle { gap: 6px; padding: 0 11px 0 5px; margin-right: 6px; }
body.ana-mode .mode-toggle, .chip-scan, .draw-btn { margin-right: 6px; }
/* 모바일 2단: 1단 = 로고·워크스페이스·Chip·프로필, 2단 = 탭 전체 폭 */
.topnav { flex-wrap: wrap; height: auto; row-gap: 0; }
.topnav-brand, .mode-toggle, .chip-scan, .avatar-btn { height: 48px; align-self: auto; }
.topnav-brand img { align-self: center; }
.mode-toggle, .chip-scan { align-self: center; height: 34px; }
.avatar-btn { display: flex; align-items: center; }
.me-menu, .tabstrip { top: calc(48px + var(--safe-t) + 4px); }
.topnav-brand { margin: 4px 0; }
}
@keyframes pulse { 50% { opacity: .35; } }
/* 채팅 헤더(간소): 제목 + 닫기 */
.ana-status { flex: 0 0 auto; padding: calc(10px + var(--safe-t)) 14px 10px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.as-top { display: flex; align-items: center; gap: 8px; }
.as-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.icon-btn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: var(--surface-2); color: var(--text-sub); display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
/* 채팅창 상단 연결 표시 pill(ANA 연결 여부) — 클릭 시 tmux 선택 드롭다운 */
.conn { position: relative; flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-sub); cursor: pointer; }
.conn:hover { border-color: var(--line-2); }
.conn .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); flex: 0 0 auto; }
.conn.ok .dot { background: var(--green); } .conn.ok { color: var(--text); }
.conn.bad .dot { background: var(--danger); }
.conn.wait .dot { background: var(--warm-fg); animation: connwait 1.2s ease-in-out infinite; } @keyframes connwait { 50% { opacity: .35; } }
.conn svg { width: 14px; height: 14px; opacity: .55; flex: 0 0 auto; }
/* 드롭다운(tmux 선택) — 채팅 헤더 아래로 펼쳐짐 */
.conn-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 12px; z-index: 60;
background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-fab); cursor: default; }
/* 새 세션 만들기(세션 목록의 + 칸)와 Codex 로그인 카드 */
.tmux-cfg-list .ns-add { justify-content: center; gap: 8px; border-style: dashed; color: var(--text-sub); font-weight: 700; }
.tmux-cfg-list .ns-add .plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid currentColor; font-size: 16px; line-height: 1; }
.ns-form { margin: 4px 0 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.ns-form[hidden] { display: none; } .ns-h { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ns-name { display: flex; align-items: center; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 10px; font-size: 14px; color: var(--text-weak); }
.ns-name input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; font-weight: 700; padding: 0 0 0 1px; }
.ns-agents { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ns-agent { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; font-size: 13px; }
.ns-agent input { position: absolute; opacity: 0; pointer-events: none; } .ns-agent small { color: var(--text-weak); font-size: 11px; line-height: 1.35; }
.ns-agent:has(input:checked) { border-color: var(--accent, var(--blue)); box-shadow: 0 0 0 1px var(--accent, var(--blue)); }
.ns-row { display: flex; justify-content: flex-end; gap: 6px; } .ns-go { background: var(--accent, var(--blue)); color: #fff; border-color: transparent; }
.ns-note { font-size: 11.5px; color: var(--text-weak); }
#cxCard { background: var(--surface); border-color: var(--line); } #cxCard.on { display: block; }
.acct-login { margin: 0 0 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.acct-login ol { margin: 4px 0 6px 18px; padding: 0; } .acct-login a { color: var(--blue); word-break: break-all; }
.acct-login .code { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font: 700 16px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; user-select: all; }
.acct-login .st { display: flex; align-items: center; gap: 8px; color: var(--text-sub); font-size: 12px; } .acct-login .st .sp { flex: 1; } .acct-login .st .ib-btn { white-space: nowrap; flex: 0 0 auto; }
.acct-login.err { border-color: var(--danger); color: var(--danger); }
/* tmux 세션 연결 설정 팝오버 */
.tmux-cfg { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.tmux-cfg-title { font-size: 11.5px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.tmux-cfg-list { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow-y: auto; overflow-x: hidden; margin-bottom: 8px; }
.tmux-cfg-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer; }
.tmux-cfg-list button:hover { border-color: var(--accent); }
.tmux-cfg-list button.cur { border-color: var(--success); }
.tmux-cfg-list button { overflow-wrap: anywhere; } .tmux-cfg-list button[hidden] { display: none; }
.tmux-cfg-list button small { flex: 0 0 auto; color: var(--text-weak); font-weight: 700; }
.tmux-cfg-list .none { color: var(--text-weak); font-size: 12px; padding: 4px; }
.tmux-cfg-manual { display: flex; gap: 6px; }
.tmux-cfg-manual input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; }
.tmux-cfg-manual button { flex: 0 0 auto; padding: 6px 12px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.tmux-cfg-hint { margin-top: 8px; font-size: 10.5px; color: var(--text-weak); line-height: 1.4; }
.as-row .mini.ok { background: var(--green); } .as-row .mini.bad { background: var(--danger); }
/* overflow-y만 지정하면 CSS 규칙상 overflow-x가 auto로 계산되어, 긴 경로·명령 한 줄이
피드 전체를 옆으로 밀어 버린다(모바일 횡스크롤의 원인). 가로는 명시적으로 잠근다. */
#feed { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; position: relative; }
#feed > * { max-width: 100%; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.msg-by { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; opacity: .85; margin-bottom: 5px; }
.msg-by .av { width: 16px; height: 16px; font-size: 8.5px; background: rgba(255,255,255,.25); color: #fff; }
.msg.user { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 5px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.msg.system, .msg.marker { align-self: center; background: transparent; color: var(--text-weak); font-size: 12px; font-weight: 700; text-align: center; }
/* 도구 줄·도구 결과: 끊을 공백이 없는 긴 경로가 흔하다 → 어디서든 줄바꿈 허용 */
.act { align-self: flex-start; max-width: 92%; font-size: 12px; color: var(--text-weak); font-weight: 700; padding: 0 4px; overflow-wrap: anywhere; }
.act.tool::before { content: "› "; }
.act.toolresult { font-family: ui-monospace, Menlo, monospace; font-weight: 400; max-height: 6.5em; overflow: hidden; position: relative; cursor: pointer;
white-space: pre-wrap; } /* 터미널 출력이라 줄바꿈이 의미를 가진다 */
.act.toolresult.expanded { max-height: none; cursor: default; }
.act.toolresult.clip::after { content: "⋯ more"; position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-family: inherit; font-size: 11px; color: var(--blue-700); background: linear-gradient(transparent, var(--surface) 70%); padding-top: 14px; }
#pendingWrap .msg, #pendingWrap .act { opacity: .75; }
#optimistic .msg.user { opacity: .55; } #optimistic .icard { opacity: .7; }
.sstat.wait { color: var(--warm-fg); }
/* 슬래시 명령: 명령 말풍선은 고정폭, 결과는 터미널 화면을 그대로(단색 상자) */
.msg.user.cmd { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.msg.term { align-self: stretch; max-width: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.msg.term pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--text); }
.msg.term .term-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-weak); }
.msg.term .term-h button { margin-left: auto; min-height: 28px; padding: 2px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-sub); font-size: 12px; font-weight: 700; }
.slash-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 46dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-card); padding: 4px; z-index: 6; }
.slash-menu[hidden] { display: none; }
.slash-menu .sm-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; width: 100%; padding: 7px 10px; border-radius: 8px; text-align: left; background: none; border: 0; color: var(--text); }
.slash-menu .sm-row.on, .slash-menu .sm-row:hover { background: var(--blue-weak); }
.slash-menu .sm-cmd { font: 700 13px ui-monospace, Menlo, monospace; color: var(--blue-700); white-space: nowrap; }
.slash-menu .sm-desc { font-size: 12.5px; color: var(--text-sub); }
.slash-menu .sm-hint { padding: 6px 10px 4px; font-size: 11.5px; color: var(--text-weak); }
/* 전송 상태 배지(진화 #7) — 낙관적 에코에 전송중/전달됨/실패·미확인 상태 표시 */
.optim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: flex-end; max-width: 86%; }
.optim .msg.user { max-width: 100%; }
.optim.sent .msg.user { opacity: .8; }
.sstat { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text-weak); }
.sstat.ok { color: var(--green); }
.sstat.err { color: var(--danger); }
.sstat button { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--blue-weak); color: var(--blue-700); }
.sstat button.dis { background: var(--surface-2); color: var(--text-weak); }
/* 상태 스트립 — 피드 밖 고정 높이 영역이라 표시/숨김에도 메시지가 밀리지 않는다 */
.feedstatus { flex: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 12px; padding: 0 16px; overflow: hidden; }
.resync { display: none; color: var(--warm-fg); font-size: 12px; font-weight: 700; }
.typing { display: none; align-items: center; gap: 8px; color: var(--text-sub); font-size: 12.5px; font-weight: 700; min-width: 0; white-space: nowrap; }
.typing.on { display: flex; }
.typing #typTx { overflow: hidden; text-overflow: ellipsis; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.evo-card.focus { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 768px) {
.topnav #modeToggle { margin-left: auto; } /* 칩·그리기·내 정보는 오른쪽 끝으로 */
}
.ib-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; } .ib-head .sp { flex: 1; } .ib-head .stseg { margin: 0; }
.ib-btn { height: 34px; padding: 0 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.ib-btn:disabled { opacity: .5; }
.ib-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 11.5px; font-weight: 700; color: var(--text-weak); letter-spacing: .05em; text-transform: uppercase; }
.ib-mini { margin-left: auto; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
#needEmpty, #evoEmpty { text-align: left; padding: 6px 2px; }
/* 층별 탭 안에서는 탭 이름이 이미 말한다 */
/* 워크 층 — 업무 프로세스에 필요한 것(코드가 정함) */
.subtabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; border-bottom: 1px solid var(--line-2); margin: -4px 0 12px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--text-weak); }
.subtabs button.on { color: var(--text); } .subtabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--blue); }
/* 2단계 메뉴는 위쪽 바(#topSub)에 보인다 — 화면 안의 같은 줄은 감춘다(데이터 자리로만 남는다) */
.view .subtabs { display: none; }
.topnav .topsub { flex: 0 1 auto; min-width: 0; align-self: stretch; margin: 0 0 0 10px; border-bottom: 0; padding-left: 10px; }
.topnav .topsub[hidden] { display: none; }
.topnav .topsub button { height: auto; align-self: stretch; }
.topnav .topsub button.on::after { bottom: 0; }
@media (max-width: 768px) {
.topnav .topsub { order: 10; flex: 1 0 100%; height: 42px; margin: 0; padding: 0 2px; border-top: 1px solid var(--line-2); }
}
/* System */
.tabstrip .tm-sep { height: 1px; margin: 4px 6px; background: var(--line-2); }
.sys-info { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin-bottom: 18px; overflow: hidden; }
.sys-info dt, .sys-info dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.sys-info dt { color: var(--text-weak); font-weight: 700; } .sys-info dd { color: var(--text); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sys-info dt:first-of-type, .sys-info dt:first-of-type + dd { border-top: 0; }
.sys-act { align-items: center; } .sys-act .k-desc { margin-top: 2px; }
.sys-status { margin: 12px 2px; font-size: 13px; color: var(--text-sub); min-height: 18px; }
.subtabs .n { min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center; background: var(--blue); color: var(--white); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 2px 1px; }
.toolbar::-webkit-scrollbar { display: none; } .toolbar .sp { flex: 1 0 8px; } .toolbar > * { flex: 0 0 auto; } .toolbar .stseg { margin: 0; }
.toolbar .cnt { font-size: 12.5px; color: var(--text-weak); white-space: nowrap; }
.toolbar > .cnt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 글은 줄여도 버튼은 화면 안에 */
@media (max-width: 768px) {
.toolbar { gap: 6px; } .toolbar .ib-btn { padding: 0 11px; font-size: 12.5px; } .toolbar .stseg { gap: 4px; } .toolbar .stseg button, .toolbar .stseg.two button { padding: 0 9px; gap: 4px; font-size: 12.5px; }
/* 휴대폰에서는 짧은 이름 */
}
.sub-lead { display: block; font-size: 13px; color: var(--text-sub); margin: 0 0 10px; } .sub-lead[hidden] { display: none; }
/* PRD: 지금 판(마크다운) · 편집 폼 · 이력 */
.prd-md { padding: 18px 20px; font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.prd-md h3 { font-size: 21px; margin: 0 0 .5em; } .prd-md h4 { font-size: 17px; margin: 1.3em 0 .4em; } /* mdHtml: # → h3, ## → h4 */
.prd-ver { padding: 13px 15px; margin-bottom: 9px; }
.prd-ver .pv-note { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.prd-ver .pv-meta { font-size: 12px; color: var(--text-sub); margin-top: 3px; }
.prd-ver .prd-md { padding: 10px 0 0; } .prd-ver details summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text-sub); margin-top: 8px; }
.prd-ver .evo-acts .restore { background: var(--surface-2); color: var(--text); box-shadow: var(--sh-card); }
.prd-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin-bottom: 12px; } .prd-form[hidden], .prd-md[hidden] { display: none; }
.prd-form textarea, .prd-form input { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; }
.prd-form input { font-family: inherit; }
.prd-acts { display: flex; justify-content: flex-end; gap: 8px; } .prd-acts button { height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 700; background: var(--surface-2); }
.prd-acts .ok { background: var(--acc, var(--blue)); color: #fff; }
.upd-last { font-size: 12.5px; color: var(--text-sub); }
/* 시작 카드(PRD가 없을 때) · 손그림판 · 마크다운 그림 */
.start-card { padding: 28px 26px; text-align: center; } .start-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.start-card p { color: var(--text-sub); max-width: 560px; margin: 0 auto 16px; line-height: 1.6; }
.starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.starters button { padding: 8px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.starters button:hover { border-color: var(--acc, var(--blue)); }
.prd-what { max-width: 560px; margin: 0 auto 18px; text-align: left; font-size: 13px; line-height: 1.6; color: var(--text-sub); } .prd-what > b { color: var(--text); }
.prd-ex { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2); } .prd-ex span { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-weak); margin-right: 8px; } .prd-ex b { color: var(--text); }
.talk-step { max-width: 560px; margin: 14px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--acc-weak, var(--blue-weak)); color: var(--text-sub); font-size: 12.5px; line-height: 1.55; } .talk-step b { color: var(--text); }
.work-more { margin-top: 14px; font-size: 12.5px; color: var(--text-weak); } .work-more button { font-size: 12.5px; color: var(--text-sub); text-decoration: underline; text-underline-offset: 2px; }
.md-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; margin: 4px 0; }
.md a.md-file, .md-file { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 500; word-break: break-all; }
.md a.md-file:hover { border-color: var(--accent, #4a7); background: color-mix(in srgb, var(--accent, #4a7) 8%, transparent); }
.md-file .mf-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; background: var(--accent, #4a7); color: #fff; }
.sketch-layer { position: fixed; inset: 0; z-index: 120; background: rgba(15, 17, 21, .55); display: flex; flex-direction: column; padding: 14px; gap: 8px; } .sketch-layer[hidden] { display: none; }
.sketch-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--surface); border-radius: 12px; padding: 8px 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.sketch-bar .sk-title { font-weight: 700; font-size: 14px; margin-right: 6px; } .sketch-bar .sp { flex: 1; } .sk-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.sketch-bar button { height: 34px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 13px; background: var(--surface-2); }
.sketch-bar button.on { background: var(--acc-weak, var(--blue-weak)); color: var(--acc-strong, var(--blue-700)); } .sketch-bar button:disabled { opacity: .45; }
.sketch-bar .sk-color { width: 26px; height: 26px; padding: 0; border-radius: 999px; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sketch-bar .sk-color.on { box-shadow: 0 0 0 2px var(--acc, var(--blue)); }
.sketch-bar .ok { background: var(--acc, var(--blue)); color: #fff; }
.sketch-paper { position: relative; flex: 1; min-height: 0; background: #fff; border-radius: 12px; overflow: hidden; touch-action: none; }
.sk-edit { position: absolute; margin: 0; padding: 0 2px; border: 1.5px dashed var(--acc, var(--blue)); border-radius: 4px; background: rgba(255,255,255,.9); outline: none; resize: none; overflow: hidden; white-space: pre; font-family: system-ui, -apple-system, sans-serif; font-weight: 600; line-height: 1.25; min-width: 60px; } .sketch-paper canvas { display: block; cursor: crosshair; touch-action: none; }
.sk-hint { text-align: center; color: #fff; font-size: 12.5px; opacity: .9; }
body.sketching { overflow: hidden; }
/* Work: 처음엔 비어 있다 */
.work-empty { padding: 28px 26px; text-align: center; margin-top: 8px; } .work-empty[hidden] { display: none; }
.work-empty h2 { font-size: 19px; font-weight: 700; margin: 0 0 8px; } .work-empty p { color: var(--text-sub); max-width: 520px; margin: 0 auto 18px; line-height: 1.6; }
.work-acts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.work-acts .ok { height: 36px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 700; background: var(--acc, var(--blue)); color: #fff; }
/* Knowledge: 온톨로지 목록 · 그래프 */
.k-list { padding: 4px 0; margin-bottom: 16px; }
.k-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-2); } .k-row:first-child { border-top: none; }
.k-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.k-main code { font-size: 11.5px; color: var(--text-weak); } .k-sub { font-size: 12.5px; color: var(--text-sub); }
.k-desc { flex-basis: 100%; font-size: 12.5px; color: var(--text-sub); } .k-main .rels { flex-basis: 100%; margin: 2px 0 0; }
.k-rel { color: var(--acc, var(--blue)); font-weight: 700; } .k-dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.k-new { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-weak); }
.k-del { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; color: var(--text-weak); } .k-del:hover { background: var(--surface-2); color: var(--danger); }
@media (max-width: 768px) { .k-del { width: 40px; height: 40px; margin: -7px -8px -7px 0; } .work-more button { display: inline-block; padding: 12px 10px; margin: -8px 0; } }
/* 좁은 폭: 'v2 · 11/17 · by you · Edited' 같은 설명은 …으로 자르지 않고 한 줄 통째로 위에, 버튼은 아래 줄에 */
@media (max-width: 430px) { .toolbar:has(.cnt:not(:empty)) { flex-wrap: wrap; row-gap: 6px; } .toolbar .cnt:not(:empty) { flex: 1 1 100%; white-space: normal; } }
.doc-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 12px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--text-sub); font-size: 13px; }
.doc-drop.over { border-color: var(--acc, var(--blue)); background: var(--acc-weak, var(--blue-weak)); }
.doc-drop .ok { height: 34px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 700; background: var(--acc, var(--blue)); color: #fff; } .doc-status { margin-left: auto; font-weight: 700; color: var(--text); }
.doc-ic { font-size: 20px; line-height: 1; flex: 0 0 auto; margin-top: 2px; } .doc-name { color: var(--text); text-decoration: none; } .doc-name:hover { text-decoration: underline; }
/* Ontology › Relations 관계도 + 표 */
.kr-wrap { overflow-x: auto; padding: 8px 8px 0; } .kr-svg { width: 100%; height: auto; display: block; margin: 0 auto; }
.kr-n rect { fill: var(--surface); stroke-width: 1.6; } .kr-n { cursor: grab; touch-action: none; } .kr-n.drag { cursor: grabbing; } .kr-labels { pointer-events: none; } .kr-svg { user-select: none; } .kr-n:hover rect, .kr-n:focus rect { stroke-width: 2.6; } .kr-n:focus { outline: none; }
.kr-t { font-size: 13px; font-weight: 700; fill: var(--text); } .kr-c { font-size: 10.5px; fill: var(--text-weak); }
.kr-e { fill: none; stroke: var(--text-weak); stroke-width: 1.3; opacity: .75; } .kr-a { fill: var(--text-weak); }
.kr-l rect { fill: var(--surface); stroke: var(--line); } .kr-l { pointer-events: auto; } .kr-l text { font-size: 11px; fill: var(--text-sub); text-anchor: middle; }
.kr-focus .kr-e:not(.on), .kr-focus .kr-l:not(.on) { opacity: .12; } .kr-e.on { stroke: var(--acc, #3182F6); stroke-width: 2; opacity: 1; } .kr-l.on rect { stroke: var(--acc, #3182F6); }
.kr-table { padding: 8px 14px 12px; } .kr-table table { min-width: 900px; } .kr-table td.k-pdesc { min-width: 240px; white-space: normal; } .kr-table td { vertical-align: top; }
/* Ontology › Classes 목록(왼쪽) + 상세(오른쪽) */
.k-md { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; min-height: 360px; }
.k-mlist { border-right: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 720px; overflow-y: auto; }
.k-li { display: flex; align-items: flex-start; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--text); font: inherit; }
.k-li .k-dot { margin-top: 6px; flex: none; } .k-li:hover { background: var(--surface-2); } .k-li.on { background: var(--acc-weak, #E8F0FE); }
.k-li-t { display: flex; flex-direction: column; min-width: 0; } .k-li-t small { color: var(--text-weak); font-size: 11.5px; } .k-li-t code { font-size: 11px; }
.k-mdetail { padding: 14px 18px 18px; min-width: 0; } .k-dhead { display: flex; align-items: center; gap: 8px; } .k-dhead h3 { margin: 0; font-size: 17px; } .k-dhead code { font-size: 12px; color: var(--text-weak); }
@media (max-width: 768px) { .k-md { grid-template-columns: 1fr; } .k-mlist { border-right: 0; border-bottom: 1px solid var(--line-2); flex-direction: row; flex-wrap: wrap; max-height: none; } }
.k-node { align-items: flex-start; } .k-tog { flex: none; white-space: nowrap; align-self: center; }
.k-treebar { align-items: center; } .k-treebar .ib-btn { margin-left: 6px; }
.k-detail { margin-left: 30px; padding: 2px 14px 12px; border-top: 1px dashed var(--line-2); } .k-dh { font-size: 12px; font-weight: 700; color: var(--text-sub); margin: 10px 0 4px; }
.k-ptable { overflow-x: auto; } .k-ptable table { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 640px; }
.k-ptable th { text-align: left; font-weight: 600; color: var(--text-sub); padding: 5px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.k-ptable td { padding: 5px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; } .k-ptable td:nth-child(-n+4) { white-space: nowrap; }
.k-ptable code { font-size: 11.5px; color: var(--text-weak); } .k-psub td { background: color-mix(in srgb, var(--line-2) 35%, transparent); } .k-tw { color: var(--text-weak); margin-right: 4px; }
.k-pdesc { color: var(--text-sub); } .k-weak { color: var(--text-weak); font-size: 12px; }
/* 좁은 화면에서 [배치 처음대로]가 세로로 눌리지 않게 — 줄을 넘겨 버튼은 한 줄로 */ .k-treebar { flex-wrap: wrap; gap: 6px 10px; } .k-treebar .ib-btn { white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.k-refs { white-space: nowrap; } .k-ref { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 2px; font-size: 10.5px; line-height: 15px; vertical-align: super; text-align: center; border-radius: 8px; background: var(--line-2); color: var(--text-sub); cursor: pointer; border: 0; font-weight: 600; }
.k-ref:hover, .k-ref:focus-visible { background: #DBEAFE; color: #1E40AF; outline: none; } .k-ref.miss { text-decoration: line-through; opacity: .6; }
.k-refpop { position: fixed; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 14px; font-size: 13px; }
.k-refpop .rp-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .k-refpop .rp-h b { font-size: 14px; } .k-refpop .rp-k { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.k-refpop table { width: 100%; border-collapse: collapse; } .k-refpop td { padding: 3px 6px 3px 0; vertical-align: top; } .k-refpop td:first-child { color: var(--text-sub); white-space: nowrap; width: 1%; }
.k-refpop .rp-act { margin-top: 8px; text-align: right; }
.k-prose p { margin: 0 0 8px; line-height: 1.65; } .k-prose p:last-child { margin-bottom: 0; } .k-rules table { width: 100%; } .k-rules td { vertical-align: top; } .k-rules td.k-pdesc { white-space: normal; min-width: 300px; max-width: 560px; } .k-rules td:not(.k-pdesc) { white-space: nowrap; } .k-rules .k-rok { color: #166534; } .k-rules .k-rbad { color: #B91C1C; font-weight: 700; } .k-rules details summary { cursor: pointer; } .k-rules ul { margin: 4px 0 0 16px; padding: 0; font-size: 12px; }
:root[data-mode="dark"] .k-rules .k-rok { color: #86EFAC; } :root[data-mode="dark"] .k-rules .k-rbad { color: #FCA5A5; }
.k-who { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 8px; background: var(--line-2); color: var(--text-sub); }
.k-who-out { background: #DBEAFE; color: #1E40AF; } .k-who-judge { background: #FEF3C7; color: #92400E; } .k-who-secret { background: #FEE2E2; color: #991B1B; }
:root[data-mode="dark"] .k-who-out { background: #1E3A5F; color: #BFDBFE; } :root[data-mode="dark"] .k-who-judge { background: #4A3410; color: #FDE68A; } :root[data-mode="dark"] .k-who-secret { background: #4C1D1D; color: #FECACA; }
.k-arrow-c { color: var(--text-sub); } .k-ptable th.num, .k-ptable td.num { text-align: right; }
.k-graph { padding: 8px; margin-bottom: 16px; } .k-graph[hidden], .k-list[hidden] { display: none; }
.k-svg { width: 100%; height: auto; display: block; } .k-svg.k-big .k-node circle { stroke-width: 0; } .k-svg.k-big .k-edge { stroke-width: .35; opacity: .45; }
.k-edge { stroke: var(--line); stroke-width: 1.5; } .k-elabel { font-size: 10px; fill: var(--text-weak); text-anchor: middle; }
.k-node text { font-size: 11.5px; font-weight: 700; fill: var(--text); text-anchor: middle; } .k-node circle { stroke: var(--surface); stroke-width: 2; }
.k-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 8px 6px; font-size: 12px; color: var(--text-sub); }
.k-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 999px; margin-right: 5px; vertical-align: 0; }
.k-node rect { stroke: var(--surface); stroke-width: 2; } .k-node.dim { opacity: .35; }
[data-subsec][hidden], .ib-btn[hidden], .toolbar [hidden] { display: none !important; }
.icard { align-self: flex-end; max-width: min(92%, 560px); margin: 6px 0; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); font-size: 13px; }
.icard-h { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.icard-tag { flex: 0 0 auto; margin-top: 1px; font-size: 11px; font-weight: 700; color: var(--blue-700); background: var(--blue-weak); border-radius: 6px; padding: 1px 6px; }
.icard-t { flex: 1; min-width: 0; color: var(--text-sub); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4; overflow-wrap: anywhere; }
.icard-open { flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--text); }
.icard-d { margin-top: 4px; } .icard-d summary { cursor: pointer; font-size: 12px; color: var(--text-weak); list-style: none; } .icard-d summary::-webkit-details-marker { display: none; }
.icard-d summary::before { content: '▸ '; } .icard-d[open] summary::before { content: '▾ '; }
.icard-d pre { margin: 6px 0 0; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 11.5px; line-height: 1.5; color: var(--text-sub); background: var(--surface); border-radius: 8px; padding: 8px; }
.swload { align-self: stretch; margin: 18px auto 8px; width: min(100%, 420px); padding: 14px 16px; border-radius: 12px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); font-size: 13px; transition: opacity .3s; }
.swload[hidden] { display: none; }
body.chat-catchup .swload { position: sticky; top: 8px; z-index: 4; box-shadow: 0 0 0 1px var(--line), var(--sh-card); } /* 읽는 중에도 입력은 열려 있다 — 카드만 보인다 */
body.chat-loading .swload { position: sticky; top: 8px; z-index: 4; box-shadow: 0 0 0 1px var(--line), var(--sh-card); } /* 긴 대화 중간에서도 늘 보이게 */
.sw-log { margin-top: 8px; } .sw-log summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--text-weak); }
.sw-log pre { margin: 6px 0 0; max-height: 160px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 11.5px/1.5 ui-monospace, Menlo, monospace; color: var(--text-sub); }
.sw-acts { display: flex; gap: 6px; margin-top: 10px; } .sw-acts button { min-height: 32px; padding: 4px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-sub); }
/* 불러오는 동안 채팅 컨트롤: 입력·버튼은 잠그고 흐리게, 모델 자리와 세션 점은 스피너, 입력창 위에는 움직이는 막대 */
body.chat-loading .composer { position: relative; }
body.chat-loading .composer::before { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 99px;
background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: chatload 1.1s ease-in-out infinite; }
@keyframes chatload { from { background-position: -40% 0; } to { background-position: 140% 0; } }
body.chat-loading :is(#attachBtn, #permBtn, #ring5h, #ringWeek, #micBtn, #send) { opacity: .35; pointer-events: none; }
body.chat-loading #input { cursor: progress; }
body.chat-loading #agentPill { pointer-events: none; color: transparent !important; }
body.chat-loading #agentPill > * { visibility: hidden; }
body.chat-loading #agentPill { position: relative; min-width: 104px; }
body.chat-loading #agentPill::after { content: 'Loading…'; color: var(--text-weak); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700;
padding-left: 18px; background: no-repeat 12px 50% / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23999' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); }
body.chat-loading #connPill .dot { background: transparent !important; box-shadow: none !important; border: 2px solid var(--line); border-top-color: var(--blue); animation: swspin .8s linear infinite; } .swload.fade { opacity: 0; }
.sw-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; } .sw-head b { font-size: 14px; overflow-wrap: anywhere; } .sw-t { margin-left: auto; color: var(--text-weak); font-variant-numeric: tabular-nums; }
.sw-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px 8px; align-items: center; padding: 4px 0; color: var(--text-sub); }
.sw-row.wait { color: var(--text-weak); } .sw-row.ok, .sw-row.run { color: var(--text); } .sw-row.fail { color: var(--warm-fg); }
.sw-d { color: var(--text-weak); } .sw-ms { color: var(--text-weak); font-size: 12px; font-variant-numeric: tabular-nums; }
.sw-ic { width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.sw-row.wait .sw-ic { width: 6px; height: 6px; background: var(--line); }
.sw-row.run .sw-ic { border: 2px solid var(--line); border-top-color: var(--blue); animation: swspin .8s linear infinite; }
.sw-row.ok .sw-ic { background: var(--green, #10B981); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.sw-row.fail .sw-ic::before { content: '!'; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--warm-fg); color: var(--bg); font-size: 10px; font-weight: 700; }
.sw-bar { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .sw-bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .25s; }
@keyframes swspin { to { transform: rotate(360deg); } }
.feed-empty { align-self: center; color: var(--text-weak); font-size: 13px; margin-top: 32px; text-align: center; }
.feed-empty code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.newpill { display: none; position: sticky; bottom: 6px; align-self: center; background: var(--blue); color: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-fab); }
/* 제안 승인 카드 */
.prop { align-self: flex-start; max-width: 94%; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.prop .pt { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.prop .row { font-size: 13px; padding: 3px 0; color: var(--text-sub); display: flex; gap: 7px; }
.prop .row .k { font-weight: 700; flex: 0 0 auto; }
.prop .k-add { color: var(--green); } .prop .k-up { color: var(--blue); } .prop .k-rm { color: var(--c-1); }
.prop .acts { display: flex; gap: 8px; margin-top: 11px; }
.prop .acts button { flex: 1; height: 40px; border-radius: var(--r-sm); font-weight: 700; font-size: 13.5px; }
.prop .ok { background: var(--blue); color: var(--white); } .prop .no { background: var(--surface); box-shadow: var(--sh-card); }
.prop .state { margin-top: 9px; font-size: 12.5px; font-weight: 700; display: none; }
.prop.applied .acts, .prop.rejected .acts, .prop.applying .acts { display: none; }
.prop.applying .state { display: block; color: var(--warm-fg); }
.sec-head[hidden] { display: none; }
.fail-why { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); overflow-wrap: anywhere; }
.req-st.failed { color: var(--danger); }
/* 협업 목록의 상태 필터(대기 · 처리 중 · 완료 · 취소) */
.stseg { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.stseg::-webkit-scrollbar { display: none; }
.stseg button { flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 700;
color: var(--text-sub); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); }
.stseg button .n { min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11.5px; line-height: 18px; text-align: center; background: var(--surface); color: var(--text-sub); }
.stseg button.on { color: var(--bg); background: var(--text); box-shadow: none; } /* 반전색 — 라이트·다크 모두에서 읽히게 */
.stseg button.on .n { background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); }
@media (max-width: 520px) { /* 휴대폰 폭: 다섯 칸 격자 — 글자 위, 개수 아래 */
.stseg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; overflow: visible; }
.stseg.two { display: flex; } .stseg.two button { flex-direction: row; height: 34px; padding: 0 13px; gap: 6px; font-size: 13px; }
.stseg.two button .n { min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11.5px; line-height: 18px; background: var(--surface); color: var(--text-sub); }
.stseg.two button.on .n { background: var(--surface); color: var(--text-sub); }
.stseg button { flex-direction: column; justify-content: center; gap: 2px; height: 46px; padding: 0 2px; border-radius: 12px; font-size: 11px; letter-spacing: -0.01em; }
.stseg button .n { min-width: 0; padding: 0; background: none; font-size: 14px; line-height: 16px; color: var(--text); }
.stseg button.on .n { background: none; color: var(--bg); }
}
.evo-when { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-weak); white-space: nowrap; }
/* 카드 머리줄: 꼬리표·제목·번호를 첫 줄에 맞춘다(제목이 여러 줄이어도 꼬리표가 가운데로 떠 있지 않게).
좁은 화면에서는 번호·시각을 아래 줄로 내려 제목이 폭을 다 쓴다 */
.evo-top { align-items: flex-start; } .evo-top > .evo-type, .evo-top > .evo-hz, .evo-top > .req-kind { margin-top: 1px; } .evo-top > .evo-when, .evo-top > .req-when { padding-top: 2px; }
.evo-t, .req-t { line-height: 1.4; }
@media (max-width: 520px) { .evo-top { flex-wrap: wrap; row-gap: 3px; } .evo-top > .evo-when, .evo-top > .req-when { order: 3; flex-basis: 100%; margin-left: 0; padding-top: 0; } }
/* 카드 버튼 기본 모양 — 색을 따로 정하지 않은 버튼(Reopen·Restore·Try again·Failed)도 버튼으로 보이게 */
.evo-acts button { background: var(--surface-2); color: var(--text); box-shadow: var(--sh-card); }
.evo-acts .talk, .evo-acts .do, .evo-acts .done { box-shadow: none; }
/* 끝난 카드의 상태 꼬리표(완료·실패·안 함) — 세 목록이 같은 모양 */
.evo-acts .req-st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin: 0 2px 0 0; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-sub); box-shadow: none; }
.evo-acts .req-st.done { background: var(--success-bg); color: var(--success); }
.evo-acts .req-st.failed { background: var(--danger-bg); color: var(--danger); }
.upd-card .evo-type { background: var(--surface-2); color: var(--text-sub); } .upd-card .evo-type.k-missing { background: var(--blue-weak); color: var(--blue-700); }
.upd-card .evo-type.k-outdated, .upd-card .evo-type.k-runtime { background: var(--warm-bg); color: var(--warm-fg); }
.upd-note { margin-top: 6px; font-size: 12.5px; color: var(--text-sub); overflow-wrap: anywhere; }
.evo-card.done .evo-t, .evo-card.dismissed .evo-t { color: var(--text-sub); }
.prop.applied .state, .prop.rejected .state { display: block; }
.prop.applied .state { color: var(--green); } .prop.rejected .state { color: var(--text-weak); }
.errbar { display: none; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 8px 12px; background: var(--danger-bg); border-radius: var(--r-xs); color: var(--danger); font-size: 12.5px; font-weight: 700; }
.errbar button { margin-left: auto; font-size: 15px; color: var(--danger); }
/* 터미널 다이얼로그 안내 카드(권한/확인 창이 열렸을 때) */
.dlgcard { display: none; margin: 0 14px 8px; padding: 10px 12px; background: var(--blue-weak); border: 1px solid var(--blue); border-radius: var(--r-xs); }
.dlgcard.on { display: block; max-height: 55dvh; overflow-y: auto; overflow-wrap: anywhere; }
.dq-login-link { display: inline-block; padding: 10px 14px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.dq-notice { white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: var(--text-sub); }
.dq-login-help { color: var(--text-sub); font-size: 12px; }
.dlgcard-h { font-size: 12.5px; font-weight: 700; color: var(--blue-700); margin-bottom: 6px; }
.dlgcard-body { max-height: 130px; overflow: auto; margin: 0 0 8px; padding: 8px; background: var(--surface); border-radius: 6px; font: 12px/1.45 ui-monospace, Menlo, monospace; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.dlgcard-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.dlgcard-keys button { min-height: 34px; padding: 4px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-sub); font-size: 12.5px; font-weight: 700; }
.dlgcard-keys button:hover { border-color: var(--blue); color: var(--text); }
.dlgcard-keys button.primary { margin-left: auto; background: var(--blue); border-color: var(--blue); color: var(--white); }
/* 구조화된 다이얼로그(AskUserQuestion·권한 메뉴) — 선택지를 버튼으로 */
.dq { display: flex; flex-direction: column; gap: 8px; }
.dq[hidden] { display: none; }
.dq-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.dq-tab { padding: 2px 9px; border-radius: 999px; background: var(--surface); color: var(--text-weak); font-size: 11.5px; font-weight: 700; }
.dq-tab.done { color: var(--success); }
.dq-intro { padding: 6px 8px; border-radius: 6px; background: var(--surface); font: 12px/1.45 ui-monospace, Menlo, monospace; color: var(--text-sub); white-space: pre-wrap; word-break: break-word; max-height: 90px; overflow: auto; }
.dq-review { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; }
.dq-review b { font-weight: 700; }
.dq-title { font-size: 14px; font-weight: 700; color: var(--text); }
.dq-opts { display: grid; gap: 6px; }
.dq-opt { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text); }
.dq-opt:hover:not(:disabled) { border-color: var(--blue); }
.dq-opt.cur { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.dq-opt:disabled { opacity: .6; cursor: default; }
.dq-opt .no { flex: 0 0 auto; min-width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--text-weak); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.dq-opt .cb { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.dq-opt.on .cb { background: var(--blue); border-color: var(--blue); }
.dq-opt .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dq-opt .l { font-size: 13.5px; font-weight: 700; }
.dq-opt .d { font-size: 12px; color: var(--text-weak); }
.dq-opt .dq-pv { align-self: flex-start; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--blue); cursor: pointer; }
.dq-opt .dq-pv:hover { text-decoration: underline; }
.dq-prev-wrap { overflow-x: auto; margin: -2px 0 2px 29px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.dq-prev { margin: 0; padding: 8px 10px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); white-space: pre; }
.dq-other { display: flex; gap: 6px; }
.dq-other input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13.5px; }
.dq-other button { flex: 0 0 auto; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.dq-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dq-acts button { min-height: 34px; padding: 4px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-sub); font-size: 12.5px; font-weight: 700; }
.dq-acts button:hover { border-color: var(--blue); color: var(--text); }
.dq-acts button.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dq-acts .sp { flex: 1; }
.dq-acts .ghost { background: none; border-color: transparent; }
.dlgcard details.dq-raw summary { cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--text-weak); margin-top: 6px; }
.dlgcard details.dq-raw[open] summary { margin-bottom: 6px; }
/* 세션 목록: 원장 크기·연결된 사람 */
.tmux-cfg-list .who { display: block; margin-top: 2px; font-size: 11px; color: var(--text-weak); }
.tmux-cfg-list .who b { color: var(--blue-700); font-weight: 700; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.keys button { min-height: 34px; padding: 4px 11px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--sh-card); color: var(--text-sub); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.keys .sp { flex: 1; box-shadow: none; background: none; min-height: 0; }
.keys button.danger { color: var(--danger); background: var(--danger-bg); }
.keys button:disabled { opacity: .4; cursor: default; }
@media (any-pointer: coarse) { .keys button { min-height: 44px; } }
.composer { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 0 14px calc(14px + var(--safe-b)); }
.inputwrap { position: relative; flex: 1; }
.inputwrap textarea { width: 100%; display: block; min-height: 44px; max-height: 92px; resize: none; overflow-y: auto; border-radius: var(--r-sm); background: var(--surface-2); border: 1.5px solid var(--line); padding: 11px 14px; font-size: 14.5px; line-height: 1.45; color: var(--text); outline: none; font-family: inherit; }
.inputwrap textarea:focus { border-color: var(--blue); background: var(--surface); }
#ghost { position: absolute; inset: 1.5px; padding: 11px 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; overflow: hidden; pointer-events: none; }
#ghost .typed { color: transparent; } #ghost .rest { color: var(--text-weak); opacity: .8; }
#ghost .tabhint { color: var(--text-weak); font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px;
pointer-events: auto; cursor: pointer; background: var(--surface); font-family: inherit; line-height: 1.5; }
#ghost .tabhint:hover { color: var(--text); border-color: var(--text-weak); }
/* 터치 기기에는 Tab 키가 없다 — 손가락으로 누를 수 있게 키운다(누르면 제안 글이 입력된다) */
@media (pointer: coarse) { #ghost .tabhint { display: inline-block; font-size: 13px; font-weight: 700; height: 22px; line-height: 20px; padding: 0 12px; border-radius: 999px;
color: var(--blue-700); border-color: var(--blue); background: var(--blue-weak); vertical-align: 1px; position: relative; }
#ghost .tabhint::after { content: ''; position: absolute; inset: -10px -8px 0; } } /* 줄 높이 안에 들어가게 낮추고, 누르는 영역은 위·옆으로 넓힌다 */
.inputwrap.ghost-on textarea::placeholder { color: transparent; }
#send { width: 42px; height: 42px; border-radius: 999px; background: var(--blue); color: var(--white); flex: 0 0 auto; display: grid; place-items: center; font-size: 18px; box-shadow: var(--sh-fab); }
#send:disabled { opacity: .4; box-shadow: none; cursor: default; }
/* 첨부 버튼 — 전송 버튼과 같은 크기의 원형, 컴포저 왼쪽 */
.attach { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--sh-card);
color: var(--text-sub); display: grid; place-items: center; }
.attach:hover { color: var(--text); }
.attach:disabled { opacity: .4; cursor: default; }
.attach svg { width: 18px; height: 18px; }
/* 첨부 칩 — 컨텍스트 칩과 구분되는 중립 색 */
.chip.file { background: var(--surface-2); color: var(--text-sub); }
.chip.file .k { color: var(--blue-700); }
.chip.file.up { background: linear-gradient(90deg, var(--blue-weak) var(--p, 0%), var(--surface-2) var(--p, 0%)); }
.chip.file.up .k:first-child { color: var(--blue-700); font-variant-numeric: tabular-nums; }
/* 드래그해서 파일을 떨굴 수 있는 상태 */
#chatSide.dropping { outline: 2px dashed var(--blue); outline-offset: -6px; }
#send svg { width: 15px; height: 15px; }
/* 입력이 비어 있고 작업 중이면 전송 → 정지(클로드와 동일한 자리·동작) */
#send.stop { background: var(--text); color: var(--surface); box-shadow: none; }
/* 우하단 채팅 FAB — ANA 모드에서만 표시(일반 모드엔 채팅 버튼 없음), 클릭 시 채팅 도킹 열림 */
.fab { display: none; position: fixed; right: 18px; bottom: calc(20px + var(--safe-b)); width: 56px; height: 56px; border-radius: 999px; background: var(--blue); color: var(--white); box-shadow: var(--sh-fab); z-index: 38; place-items: center; }
.fab svg { width: 24px; height: 24px; }
body:not(.chatting) .fab { display: grid; } /* Chip 모드와 무관하게 항상 — 채팅이 열려 있을 때만 숨김 */
body.drawing .fab { display: none !important; } /* 그리는 동안은 툴바와 겹치므로 숨긴다 */
.fab.busy::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--green); animation: pulse 1.4s infinite; }
.fab .badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-1); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; display: none; }
.fab.unread .badge { display: block; }
/* ---------- 반응형 ---------- */
@media (min-width: 769px) and (max-width: 899px) {
.conn .label { display: none; } /* 채팅이 도킹된 좁은 화면에서만 pill을 점으로 축소 */
}
/* ---------- 모달 (수동 추가 팝업) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; opacity: 0; pointer-events: none; transition: .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); z-index: 70; width: min(440px, calc(100vw - 32px));
background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-sheet); padding: 20px; opacity: 0; pointer-events: none; transition: .2s; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal { max-height: 88dvh; overflow-y: auto; overflow-x: hidden; overflow-wrap: anywhere; } /* 사진·주요내용이 길어져도 저장 버튼에 닿게 */
@media (max-width: 560px) { .modal { top: auto; bottom: 0; left: 0; transform: translateY(100%); width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: calc(20px + var(--safe-b)); }
.modal.on { transform: translateY(0); } }
.modal h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-weak); margin-bottom: 7px; }
.fld input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; font-size: 15px; color: var(--text); background: var(--surface-2); outline: none; }
.fld input:focus { border-color: var(--blue); background: var(--surface); }
.fld textarea { display: block; width: 100%; min-height: 96px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.5;
color: var(--text); background: var(--surface-2); outline: none; resize: vertical; }
.fld textarea:focus { border-color: var(--blue); background: var(--surface); }
.fld textarea::placeholder, .fld input::placeholder { color: var(--text-weak); }
.modal-acts { display: flex; gap: 9px; margin-top: 20px; }
.modal-acts button { flex: 1; height: 48px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px; }
.modal-acts .cancel { background: var(--surface-2); color: var(--text-sub); box-shadow: var(--sh-card); }
.modal-acts .save, .modal-acts .ok { background: var(--blue); color: var(--white); }
.modal-acts .ok:disabled { opacity: .4; }
.modal-acts .danger-act { background: var(--danger); color: #fff; }
/* 삭제 확인 — 되돌릴 수 없는 동작 앞의 마지막 관문 */
.modal.confirm { z-index: 95; }
.modal.confirm .cf-body { font-size: 14px; line-height: 1.6; color: var(--text-sub); word-break: break-word; }
.scrim.hard { z-index: 94; }
.modal-acts .save:disabled { opacity: .4; }
/* iOS Safari는 폰트 16px 미만 입력에 포커스하면 페이지를 확대한다(확대되면 버튼이 화면 밖으로 밀린다).
개별 선택자를 나열하면 새 입력창을 추가할 때마다 빠뜨리게 되므로 전역으로 건다.
#ghost는 textarea 위에 겹치는 오버레이라 크기를 반드시 함께 맞춰야 한다.
같은 특정도끼리는 소스 순서가 승자를 정하므로 이 블록은 스타일시트 맨 끝에 둔다. */
@media (any-pointer: coarse) {
/* !important인 이유: 개별 규칙(.inputwrap textarea 등)이 특정도에서 이겨 버리면 확대가 되살아난다.
"터치 기기에서 입력 글꼴은 16px 미만이 될 수 없다"는 불변 조건이라 예외를 두지 않는다. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea, select, #ghost { font-size: 16px !important; }
}
/* ===================== 계절 · 시간대 테마 =====================
<html>의 data-season(spring|summer|autumn|winter), data-daypart(morning|day|evening|night),
data-mode(light|dark)를 JS가 채운다. 규칙 순서가 곧 우선순위다:
① 모드(명암) → ② 계절(강조색) → ③ 모드+계절(강조색 명암 보정) → ④ 시간대(배경 온도).
밤에는 OS 설정과 무관하게 어두운 팔레트를 쓴다. */
/* ① 밤 또는 OS 다크 → 어두운 중립색 (위 prefers-color-scheme 블록은 JS 없을 때의 폴백) */
:root[data-mode="dark"] {
--bg: #18181B; --surface: #1F1F23; --surface-2: #27272A;
--text: #FAFAFA; --text-sub: #D4D4D8; --text-weak: #A1A1AA;
--line: #3F3F46; --line-2: #2E2E33;
--acc: #7D99EE; --acc-strong: #B4C5F6; --acc-weak: #1C2748;
--danger-bg: #4A1A18; --danger: #FF9B93; --success-bg: #143D2A; --success: #5BE2A0;
--warm-bg: #4A3115; --warm-fg: #FFC489;
--sh-card: 0 1px 3px rgba(0,0,0,.4);
}
/* ② 계절 강조색(설정 > Accent color > Seasons일 때만) — 봄 벚꽃 / 여름 청록 / 가을 단풍 / 겨울 한파 */
:root[data-accent="season"][data-season="spring"] { --acc: #F2789F; --acc-strong: #C7477A; --acc-weak: #FDEDF3; }
:root[data-accent="season"][data-season="summer"] { --acc: #0FA3C0; --acc-strong: #08748A; --acc-weak: #E1F5F9; }
:root[data-accent="season"][data-season="autumn"] { --acc: #E8731C; --acc-strong: #B85712; --acc-weak: #FFF0E1; }
:root[data-accent="season"][data-season="winter"] { --acc: #3182F6; --acc-strong: #1B64DA; --acc-weak: #E8F1FE; }
/* ③ 어두울 때는 강조색을 밝게, 옅은 배경색은 어둡게 뒤집는다 */
:root[data-mode="dark"][data-accent="season"][data-season="spring"] { --acc: #FF8FB1; --acc-strong: #FFC2D6; --acc-weak: #44202E; }
:root[data-mode="dark"][data-accent="season"][data-season="summer"] { --acc: #35C3DE; --acc-strong: #9BE3F1; --acc-weak: #0F3A44; }
:root[data-mode="dark"][data-accent="season"][data-season="autumn"] { --acc: #FF9A4D; --acc-strong: #FFC489; --acc-weak: #45280F; }
:root[data-mode="dark"][data-accent="season"][data-season="winter"] { --acc: #5C9DFF; --acc-strong: #9CC2FF; --acc-weak: #16335C; }
/* 사용자 지정 강조색(설정 > Accent color) — 계절 규칙을 덮는다. 같은 특정도이므로 뒤에 둬야 이긴다. */
:root[data-accent="navy"] { --acc: #1E3A8A; --acc-strong: #172E6E; --acc-weak: #EAEEF9; }
:root[data-accent="blue"] { --acc: #3182F6; --acc-strong: #1B64DA; --acc-weak: #E8F1FE; }
:root[data-accent="pink"] { --acc: #F2789F; --acc-strong: #C7477A; --acc-weak: #FDEDF3; }
:root[data-accent="teal"] { --acc: #0FA3C0; --acc-strong: #08748A; --acc-weak: #E1F5F9; }
:root[data-accent="orange"] { --acc: #E8731C; --acc-strong: #B85712; --acc-weak: #FFF0E1; }
:root[data-accent="purple"] { --acc: #7C5CFC; --acc-strong: #5A3ED6; --acc-weak: #EFEAFE; }
:root[data-accent="green"] { --acc: #16A26B; --acc-strong: #0C7A4E; --acc-weak: #E3F7EE; }
:root[data-mode="dark"][data-accent="navy"] { --acc: #7D99EE; --acc-strong: #B4C5F6; --acc-weak: #1C2748; }
:root[data-mode="dark"][data-accent="blue"] { --acc: #5C9DFF; --acc-strong: #9CC2FF; --acc-weak: #16335C; }
:root[data-mode="dark"][data-accent="pink"] { --acc: #FF8FB1; --acc-strong: #FFC2D6; --acc-weak: #44202E; }
:root[data-mode="dark"][data-accent="teal"] { --acc: #35C3DE; --acc-strong: #9BE3F1; --acc-weak: #0F3A44; }
:root[data-mode="dark"][data-accent="orange"] { --acc: #FF9A4D; --acc-strong: #FFC489; --acc-weak: #45280F; }
:root[data-mode="dark"][data-accent="purple"] { --acc: #9D85FF; --acc-strong: #C6B7FF; --acc-weak: #2C2352; }
:root[data-mode="dark"][data-accent="green"] { --acc: #3ED598; --acc-strong: #8FEAC4; --acc-weak: #113D2B; }
/* ④ 시간대 = 배경의 색온도. 아침은 살짝 따뜻하게, 낮은 중립, 저녁은 살짝 차갑게 — 한눈에 '색'으로 읽힐 만큼은 아니게(예전 아침 배경은 살구색으로 보였다) */
:root[data-mode="light"][data-daypart="morning"] { --bg: #F5F5F3; --surface: #FFFFFF; --surface-2: #FAFAF9; --line: #E5E5E2; --line-2: #F1F1EF; }
:root[data-mode="light"][data-daypart="day"] { --bg: #F4F4F5; --surface: #FFFFFF; --surface-2: #FAFAFA; --line: #E4E4E7; --line-2: #F1F1F2; }
:root[data-mode="light"][data-daypart="evening"] { --bg: #F3F3F6; --surface: #FFFFFF; --surface-2: #F9F9FB; --line: #E3E3E8; --line-2: #EFEFF3; }
:root[data-mode="dark"][data-daypart="evening"] { --bg: #19181C; --surface: #201F24; --surface-2: #28272C; }
:root[data-mode="dark"][data-daypart="night"] { --bg: #131316; --surface: #1B1B1F; --surface-2: #232327; }
/* ================= 채팅 — Claude 앱과 같은 모양 =================
머리: ‹ 닫기 · 가운데 제목(세션)+부제(상태) · ⋯ 세션 선택
본문: 응답은 말풍선 없이 본문 글꼴, 내 메시지는 회색 말풍선, 도구 실행은 'Ran N commands ›' 한 줄로 접힘
작업 중: ✳ 12s · Thinking… 입력: 둥근 카드(칩·입력·+·에이전트·전송/정지) */
#chatSide { --chat-bg: var(--surface); --bubble: color-mix(in srgb, var(--text) 7%, var(--surface)); background: var(--chat-bg); }
.ana-status { padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line-2); background: color-mix(in srgb, var(--chat-bg) 92%, transparent); }
.as-top { gap: 10px; }
.icon-btn.round { width: 40px; height: 40px; background: var(--chat-bg); box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0,0,0,.06); color: var(--text); }
.icon-btn.round svg { width: 20px; height: 20px; }
/* 연결 상태 = 워크스페이스와 같은 콤보박스(알약 버튼 + 드롭다운 목록) */
.conn { flex: 1; min-width: 0; height: auto; padding: 0; border: none; background: none; box-shadow: none; display: flex; justify-content: center; cursor: pointer; }
.conn:focus { outline: none; }
.conn .cbtn { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 38px; padding: 0 13px 0 14px; border-radius: 999px;
font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; transition: background .12s; }
@media (hover: hover) { .conn:hover .cbtn { background: var(--surface-2); } }
.conn[aria-expanded="true"] .cbtn { background: var(--surface-2); }
.conn:focus-visible .cbtn { box-shadow: 0 0 0 2px var(--text-weak); }
.conn .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn .caret { flex: 0 0 auto; font-size: 9px; color: var(--text-weak); }
.conn .dot { width: 8px; height: 8px; }
.conn > svg { display: none; }
.conn-pop { left: 50%; right: auto; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); padding: 8px; text-align: left; cursor: default;
background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sheet); }
.conn-pop .ws-label { padding: 6px 12px 6px; font-size: 12px; font-weight: 700; color: var(--text-weak); }
.conn-pop .tmux-cfg-list { gap: 2px; max-height: 50vh; margin: 0; }
.conn-pop .tmux-cfg-list button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: none; border-radius: var(--r-sm); background: none; font-size: 14px; }
.conn-pop .tmux-cfg-list button:hover { background: var(--surface-2); }
.conn-pop .tmux-cfg-list button.cur { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.conn-pop .sdot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.conn-pop button.shell .sdot { background: var(--line); }
.conn-pop .sname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conn-pop .sname b { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-pop button.cur .sname b { color: var(--text); }
.conn-pop .sname small { font-size: 12px; font-weight: 600; color: var(--text-weak); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-pop .sname small b { font-weight: 700; color: var(--text-weak); font-size: inherit; }
.conn-pop .scheck { flex: 0 0 auto; font-weight: 700; color: var(--text); }
.conn-pop .tmux-cfg-hint { padding: 4px 12px 6px; margin-top: 4px; font-size: 11.5px; }