agenthall 0.0.0-stage โ†’ 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,89 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Agent Hall</title>
7
+ <link rel="icon" href="logo.svg" type="image/svg+xml">
8
+ <link rel="stylesheet" href="/vendor/xterm.css">
9
+ <link rel="stylesheet" href="style.css">
10
+ </head>
11
+ <body>
12
+ <header id="topbar">
13
+ <div class="brand"><img src="logo.svg" alt="" class="logo"> <b>Agent Hall</b> <span class="muted">ยท <span data-i18n="top.boss">Boss: You</span></span></div>
14
+ <div id="stats" class="stats"></div>
15
+ <div class="actions">
16
+ <span id="conn" class="conn" data-i18n-title="top.conn"></span>
17
+ <button id="btn-lang" class="ghost" data-i18n-title="top.lang">EN</button>
18
+ <button id="btn-arcade" class="ghost locked" data-i18n-title="arcade.title">๐Ÿš—</button>
19
+ <button id="btn-trophy" class="ghost" data-i18n-title="top.trophy">๐Ÿ†</button>
20
+ <button id="btn-report" class="ghost" data-i18n-title="top.report">๐Ÿ“‹</button>
21
+ <button id="btn-fit" class="ghost" data-i18n="top.fit" data-i18n-title="top.fitTitle"></button>
22
+ <button id="btn-workday" class="ghost" data-i18n-title="top.workday">โฐ</button>
23
+ <button id="btn-start-all" class="ghost" data-i18n="top.startAll" data-i18n-title="top.startAllTitle"></button>
24
+ <button id="btn-announce-all" class="ghost" data-i18n="top.announceAll"></button>
25
+ <button id="btn-add-building" data-i18n="top.addBuilding"></button>
26
+ <button id="btn-add-project" data-i18n="top.addRoom"></button>
27
+ <button id="btn-hire" class="primary" data-i18n="top.hire"></button>
28
+ </div>
29
+ </header>
30
+
31
+ <main id="stage">
32
+ <canvas id="world"></canvas>
33
+ <div id="tooltip" hidden></div>
34
+ <div id="empty" hidden>
35
+ <div class="empty-card">
36
+ <div class="big">๐Ÿข</div>
37
+ <h2 data-i18n="empty.title"></h2>
38
+ <p data-i18n="empty.text"></p>
39
+ <button class="primary" id="btn-empty-add" data-i18n="empty.button"></button>
40
+ </div>
41
+ </div>
42
+ <div id="focus-bar" hidden>
43
+ <button id="focus-close" class="ghost icon" data-i18n-title="focus.back">โœ•</button>
44
+ <span id="focus-name"></span>
45
+ </div>
46
+ <div id="legend">
47
+ <span><i class="dot working"></i><span data-i18n="legend.working"></span></span>
48
+ <span><i class="dot waiting"></i><span data-i18n="legend.waiting"></span></span>
49
+ <span><i class="dot idle"></i><span data-i18n="legend.idle"></span></span>
50
+ <span><i class="dot offline"></i><span data-i18n="legend.offline"></span></span>
51
+ <span class="muted" data-i18n="legend.help"></span>
52
+ </div>
53
+ </main>
54
+
55
+ <aside id="panel" hidden>
56
+ <div id="p-resize"></div>
57
+ <div class="panel-head">
58
+ <div id="p-avatar" class="avatar"></div>
59
+ <div class="p-title">
60
+ <h2 id="p-name"></h2>
61
+ <div id="p-meta" class="meta"></div>
62
+ </div>
63
+ <button id="p-close" class="ghost icon" data-i18n-title="panel.close">โœ•</button>
64
+ </div>
65
+ <div id="p-info" class="p-info"></div>
66
+ <div id="p-actions" class="p-actions"></div>
67
+ <div id="term-wrap"><div id="term"></div></div>
68
+ <div id="p-log" hidden></div>
69
+ <div id="p-ext" class="p-ext" hidden></div>
70
+ <form id="p-quick" class="p-quick">
71
+ <input id="p-quick-input" autocomplete="off" data-i18n-ph="panel.quick">
72
+ <button class="primary" data-i18n="panel.send"></button>
73
+ </form>
74
+ </aside>
75
+
76
+ <div id="ask-card" hidden></div>
77
+ <div id="ctx-menu" hidden></div>
78
+ <div id="arcade" hidden></div>
79
+
80
+ <div id="backdrop" hidden><div id="modal" class="modal"></div></div>
81
+ <div id="toasts"></div>
82
+
83
+ <script src="/vendor/xterm.js"></script>
84
+ <script src="/vendor/addon-fit.js"></script>
85
+ <script src="i18n.js"></script>
86
+ <script src="app.js"></script>
87
+ <script src="arcade.js"></script>
88
+ </body>
89
+ </html>
@@ -0,0 +1,23 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Agent Hall">
2
+ <defs>
3
+ <linearGradient id="ah-bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#6366f1"/>
5
+ <stop offset="1" stop-color="#8b5cf6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect width="64" height="64" rx="14" fill="url(#ah-bg)"/>
9
+ <!-- the hall: a gable roof held up by three agents standing as columns -->
10
+ <path d="M10 25 L32 11 L54 25 Z" fill="#fff"/>
11
+ <rect x="12" y="26" width="40" height="4" rx="1.5" fill="#fff" opacity=".9"/>
12
+ <g fill="#fff">
13
+ <circle cx="19" cy="36" r="3.6"/>
14
+ <rect x="15.4" y="40.5" width="7.2" height="11" rx="3.6"/>
15
+ <circle cx="32" cy="35" r="4"/>
16
+ <rect x="28" y="39.8" width="8" height="12.2" rx="4"/>
17
+ <circle cx="45" cy="36" r="3.6"/>
18
+ <rect x="41.4" y="40.5" width="7.2" height="11" rx="3.6"/>
19
+ </g>
20
+ <rect x="10" y="53" width="44" height="3.5" rx="1.75" fill="#fff" opacity=".9"/>
21
+ <!-- the lead's status light -->
22
+ <circle cx="32" cy="19.5" r="2.6" fill="#34d399"/>
23
+ </svg>
@@ -0,0 +1,269 @@
1
+ :root {
2
+ --bg: #1b1f2a;
3
+ --chrome: #12151d;
4
+ --chrome-2: #1a1e29;
5
+ --line: #2a3040;
6
+ --text: #e8eaf0;
7
+ --muted: #8a93a8;
8
+ --accent: #ffb347;
9
+ --primary: #4f7cff;
10
+ --working: #2ecc71;
11
+ --waiting: #ff4d4f;
12
+ --idle: #f4c430;
13
+ --offline: #6b7280;
14
+ --radius: 10px;
15
+ }
16
+ * { box-sizing: border-box; }
17
+ [hidden] { display: none !important; }
18
+ html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
19
+ button { font: inherit; color: var(--text); background: var(--chrome-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
20
+ button:hover { border-color: #46506a; background: #222838; }
21
+ button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
22
+ button.primary:hover { background: #3d6af0; }
23
+ button.danger { color: #ff8a8a; border-color: #5a2a2e; }
24
+ button.danger:hover { background: #3a1d20; }
25
+ button.ghost { background: transparent; }
26
+ button.icon { padding: 4px 9px; }
27
+ button:disabled { opacity: .5; cursor: default; }
28
+ input, select, textarea { font: inherit; color: var(--text); background: #0f1218; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
29
+ textarea { resize: vertical; min-height: 90px; }
30
+ input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
31
+ label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
32
+ .muted { color: var(--muted); }
33
+
34
+ #topbar { position: fixed; inset: 0 0 auto 0; height: 54px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); z-index: 20; }
35
+ .brand { font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
36
+ .brand .logo { width: 26px; height: 26px; display: block; }
37
+ .stats { display: flex; gap: 14px; flex: 1; justify-content: center; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
38
+ .stats b { color: var(--text); }
39
+ .stat-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
40
+ .stat-link:hover { color: var(--text); text-decoration: underline; }
41
+ .stat-link.hot { color: #ff8a8a; }
42
+ .q-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
43
+ .q-empty { color: var(--muted); text-align: center; padding: 18px 0; }
44
+ .q-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
45
+ .q-item.busy { opacity: .5; pointer-events: none; }
46
+ .q-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
47
+ .q-tool { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,77,79,.15); color: #ff8a8a; }
48
+ .q-msg { font-size: 12px; margin-top: 6px; }
49
+ .q-detail { margin: 8px 0 0; max-height: 180px; overflow: auto; font-size: 11.5px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 8px; white-space: pre-wrap; word-break: break-word; }
50
+ .b-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid #ffd66b; border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
51
+ .b-card.doing { border-left-color: #2ecc71; }
52
+ .b-card.done { border-left-color: #6b7280; opacity: .75; }
53
+ .b-text { flex: 1; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
54
+ .b-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
55
+ .b-meta button { padding: 2px 8px; }
56
+ .b-none { color: var(--muted); font-size: 12px; margin-top: 6px; }
57
+ .m-pick { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow: auto; }
58
+ .m-pick .check { margin-top: 4px; }
59
+ .m-line { font-size: 12.5px; margin-top: 6px; white-space: pre-wrap; }
60
+ .r-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
61
+ .r-bar input { width: auto; }
62
+ .r-bar #r-copy { margin-left: auto; }
63
+ .r-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
64
+ .r-ul a { color: #8ab4ff; }
65
+ .r-open { margin-left: auto; padding: 2px 8px; }
66
+ .r-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 8px; }
67
+ .r-ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; }
68
+ .r-ul li { margin: 2px 0; word-break: break-word; }
69
+ .r-ul details summary, .q-item > details summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 6px; }
70
+ .r-last { font-size: 12.5px; white-space: pre-wrap; margin-top: 4px; max-height: 140px; overflow: auto; border-left: 3px solid var(--line); padding-left: 8px; }
71
+ .q-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
72
+ .actions { display: flex; gap: 8px; align-items: center; }
73
+ .conn { width: 9px; height: 9px; border-radius: 50%; background: var(--waiting); display: inline-block; margin-right: 4px; }
74
+ .conn.on { background: var(--working); }
75
+
76
+ #stage { position: fixed; inset: 54px 0 0 0; }
77
+ body.panel-open #stage { right: var(--panel-w); }
78
+ #world { width: 100%; height: 100%; display: block; cursor: grab; }
79
+ #world.dragging { cursor: grabbing; }
80
+ #world.pointer { cursor: pointer; }
81
+ #world.grab { cursor: grab; }
82
+ #tooltip { position: absolute; pointer-events: none; background: rgba(12, 14, 20, .94); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; max-width: 320px; z-index: 5; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
83
+ #tooltip b { font-size: 13px; }
84
+ #tooltip .tt-line { color: var(--muted); margin-top: 3px; word-break: break-word; }
85
+ #legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 14px; background: rgba(12,14,20,.8); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; font-size: 12px; }
86
+ .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
87
+ .dot.working { background: var(--working); } .dot.waiting { background: var(--waiting); } .dot.idle { background: var(--idle); } .dot.offline { background: var(--offline); }
88
+ #empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
89
+ .empty-card { pointer-events: auto; background: rgba(18,21,29,.95); border: 1px solid var(--line); border-radius: 16px; padding: 28px 34px; text-align: center; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
90
+ .empty-card .big { font-size: 46px; }
91
+ .empty-card h2 { margin: 6px 0; }
92
+ .empty-card p { color: var(--muted); }
93
+
94
+ :root { --panel-w: min(860px, 58vw); }
95
+ #panel { position: fixed; top: 54px; right: 0; bottom: 0; width: var(--panel-w); background: var(--chrome); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 15; }
96
+ #p-resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
97
+ #p-resize:hover, body.panel-resizing #p-resize { background: rgba(79, 124, 255, .45); }
98
+ body.panel-resizing { cursor: ew-resize; user-select: none; }
99
+ body.panel-resizing #term, body.panel-resizing #world { pointer-events: none; }
100
+ .panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 8px; }
101
+ .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #fff; flex: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
102
+ .p-title { flex: 1; min-width: 0; }
103
+ .p-title h2 { margin: 0; font-size: 17px; }
104
+ .meta { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
105
+ .pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 20px; font-size: 11px; background: #232838; color: var(--text); }
106
+ .pill.working { background: rgba(46,204,113,.15); color: #6ee7a0; }
107
+ .pill.waiting { background: rgba(255,77,79,.18); color: #ff8f90; }
108
+ .pill.idle { background: rgba(244,196,48,.15); color: #f6d36b; }
109
+ .pill.offline, .pill.starting { background: #262b38; color: var(--muted); }
110
+ .p-info { padding: 0 14px 8px; font-size: 12px; color: var(--muted); }
111
+ .p-info div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
112
+ .p-info b { color: var(--text); font-weight: 500; }
113
+ .p-info .note { color: #ff9f9f; white-space: normal; }
114
+ .p-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
115
+ .p-actions select { width: auto; padding: 6px 8px; }
116
+ #term-wrap { flex: 1; min-height: 0; padding: 8px 6px 4px 10px; background: #0b0d12; }
117
+ #term { width: 100%; height: 100%; }
118
+ #p-log { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px; background: #0b0d12; display: flex; flex-direction: column; gap: 8px; }
119
+ .msg { max-width: 92%; padding: 8px 11px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
120
+ .msg.user { align-self: flex-end; background: #233056; }
121
+ .msg.agent { align-self: flex-start; background: #1b2130; border: 1px solid var(--line); }
122
+ .msg.tool { align-self: flex-start; background: transparent; color: var(--muted); font: 12px ui-monospace, Menlo, monospace; padding: 2px 4px; }
123
+ .msg .who { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
124
+ .p-ext { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
125
+ .p-ext b { color: var(--text); }
126
+ .p-quick { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
127
+
128
+ #backdrop { position: fixed; inset: 0; background: rgba(5,7,12,.6); display: grid; place-items: center; z-index: 40; }
129
+ .modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 60px); overflow: auto; background: var(--chrome); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
130
+ .modal h3 { margin: 0 0 4px; font-size: 18px; }
131
+ .modal .sub { color: var(--muted); font-size: 12px; margin-bottom: 6px; word-break: break-all; }
132
+ .modal .row { display: flex; gap: 10px; }
133
+ .modal .row > div { flex: 1; }
134
+ .modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
135
+ .modal .foot .left { margin-right: auto; }
136
+ .modal .check { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); font-size: 13px; }
137
+ .modal .check input { width: auto; }
138
+ .modal details { margin-top: 12px; }
139
+ .modal summary { cursor: pointer; color: var(--muted); font-size: 12px; }
140
+ .chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; margin-top: 6px; }
141
+ .chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; }
142
+ .chip small { color: var(--muted); margin-left: 4px; }
143
+ .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
144
+ .err { color: #ff8a8a; font-size: 12px; margin-top: 10px; min-height: 16px; }
145
+
146
+ #toasts { position: fixed; top: 64px; right: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
147
+ body.panel-open #toasts { right: calc(var(--panel-w) + 14px); }
148
+ .toast { pointer-events: auto; background: #1d2230; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 8px; padding: 9px 12px; max-width: 340px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer; animation: slide .2s ease-out; }
149
+ .toast.warn { border-left-color: var(--waiting); }
150
+ .toast.ok { border-left-color: var(--working); }
151
+ .toast.err { border-left-color: #ff8a8a; }
152
+ @keyframes slide { from { transform: translateX(20px); opacity: 0; } }
153
+
154
+ /* break game */
155
+ #btn-arcade.locked { opacity: .45; filter: grayscale(1); }
156
+ #btn-arcade:not(.locked) { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(244,196,48,.25); animation: glow 1.6s ease-in-out infinite; }
157
+ @keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(244,196,48,.08); } }
158
+ #arcade { position: fixed; inset: 0; z-index: 70; background: rgba(5,7,12,.75); display: grid; place-items: center; }
159
+ .arc-box { position: relative; background: var(--chrome); border: 1px solid #3a4460; border-radius: 16px; padding: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
160
+ .arc-head { display: flex; align-items: center; gap: 12px; padding: 0 2px 10px; }
161
+ .arc-head b { font-size: 16px; }
162
+ .arc-help { flex: 1; font-size: 12px; color: var(--muted); }
163
+ #arcade canvas { display: block; width: min(440px, calc(100vw - 48px)); height: auto; max-height: calc(100vh - 110px); aspect-ratio: 440 / 680; border-radius: 10px; touch-action: manipulation; }
164
+ .arc-over { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-40%); text-align: center; background: rgba(18,21,29,.94); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; }
165
+ .arc-over h2 { margin: 0 0 6px; }
166
+ .arc-score { font-size: 46px; font-weight: 900; }
167
+ .arc-best { color: #ffd66b; font-weight: 700; margin-top: 6px; }
168
+ .arc-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
169
+
170
+ /* building modal colors */
171
+ .modal .m-colors.big { display: flex; gap: 8px; flex-wrap: wrap; }
172
+ .modal .m-colors.big .swatch { width: 28px; height: 28px; border-radius: 50%; padding: 0; border: 3px solid transparent; }
173
+ .modal .m-colors.big .swatch.on { border-color: #fff; }
174
+
175
+ /* right-click menu */
176
+ #ctx-menu { position: fixed; z-index: 60; min-width: 210px; max-height: calc(100vh - 16px); overflow: auto; background: #161a24; border: 1px solid #343c52; border-radius: 12px; padding: 6px; box-shadow: 0 16px 50px rgba(0,0,0,.55); animation: pop .12s ease-out; }
177
+ @keyframes pop { from { transform: scale(.94); opacity: 0; } }
178
+ #ctx-menu .m-head { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
179
+ #ctx-menu .m-head b { display: block; font-size: 14px; }
180
+ #ctx-menu .m-head span { font-size: 11px; color: var(--muted); }
181
+ #ctx-menu .m-sec { font-size: 11px; color: var(--muted); padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .04em; }
182
+ #ctx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 7px 10px; }
183
+ #ctx-menu button span { width: 20px; text-align: center; }
184
+ #ctx-menu button:hover:not(:disabled) { background: #262d40; }
185
+ #ctx-menu .m-sep { height: 1px; background: #2a3145; margin: 4px 6px; }
186
+ #ctx-menu button.danger { color: #ff7b7b; }
187
+ #ctx-menu .m-head span { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
188
+ #ctx-menu .m-colors { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 10px 6px 40px; }
189
+ #ctx-menu .m-colors .swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid transparent; }
190
+ #ctx-menu .m-colors .swatch.on, #ctx-menu .m-colors .swatch:hover { border-color: #fff; background-clip: padding-box; }
191
+
192
+ /* "What should I do?" card: the agent walks up to the screen */
193
+ #ask-card { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; width: min(640px, calc(100vw - 32px)); display: flex; gap: 14px; align-items: flex-end; background: linear-gradient(180deg, #232a3d, #171b26); border: 1px solid #3a4460; border-radius: 18px; padding: 14px 16px 14px 8px; box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 0 4px rgba(255,179,71,.18); }
194
+ body.panel-open #ask-card { left: calc((100vw - var(--panel-w)) / 2); }
195
+ #ask-card.approach { animation: approach .9s cubic-bezier(.2,.9,.25,1.15); }
196
+ @keyframes approach {
197
+ 0% { transform: translate(-50%, 70%) scale(.25); opacity: 0; filter: blur(3px); }
198
+ 60% { opacity: 1; filter: none; }
199
+ 100% { transform: translate(-50%, 0) scale(1); }
200
+ }
201
+ .ask-portrait { width: 120px; height: 150px; flex: none; margin-bottom: -6px; }
202
+ .ask-body { flex: 1; min-width: 0; }
203
+ .ask-who { font-size: 12px; color: var(--muted); }
204
+ .ask-who b { color: var(--text); font-size: 14px; }
205
+ .ask-say { position: relative; margin: 8px 0; background: #fff7d6; color: #2b2410; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
206
+ .ask-say::before { content: ''; position: absolute; left: -8px; bottom: 12px; border: 8px solid transparent; border-right-color: #fff7d6; border-left: 0; }
207
+ .ask-steps { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
208
+ .ask-steps i { width: 22px; height: 6px; border-radius: 3px; background: #2f3647; }
209
+ .ask-steps i.on { background: var(--accent); }
210
+ .ask-steps span { margin-left: 6px; }
211
+ .ask-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
212
+
213
+ /* 1:1 */
214
+ .oo-head { display: flex; gap: 14px; align-items: flex-end; }
215
+ .oo-portrait { width: 110px; height: 140px; flex: none; }
216
+ .oo-head > div { flex: 1; min-width: 0; }
217
+ .stat { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 8px; }
218
+ .stat > span:first-child { width: 78px; }
219
+ .bar { flex: 1; height: 8px; background: #2a3040; border-radius: 4px; overflow: hidden; }
220
+ .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f7cff, #b388ff); }
221
+ .bar.morale i { background: linear-gradient(90deg, #ff4d4f, #f4c430 50%, #2ecc71); }
222
+ button.ready { border-color: #c9a227; color: #ffd66b; box-shadow: 0 0 0 2px rgba(244,196,48,.25); }
223
+
224
+ /* trophies */
225
+ .score-row { display: flex; gap: 10px; margin-top: 10px; }
226
+ .score-row > div { flex: 1; background: #1a1f2c; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
227
+ .score-row b { display: block; font-size: 22px; }
228
+ .score-row span { font-size: 11px; color: var(--muted); }
229
+ .board { display: flex; flex-direction: column; gap: 4px; }
230
+ .board-row { display: grid; grid-template-columns: 30px 1.4fr 1fr 50px 70px 26px 64px; align-items: center; gap: 6px; text-align: left; padding: 6px 10px; }
231
+ .board-row .rank { font-weight: 800; text-align: center; }
232
+ .board-row .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
233
+ .tag { font-size: 10px; color: #ffd66b; border: 1px solid #6b5a1f; border-radius: 10px; padding: 1px 6px; text-align: center; }
234
+ .badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
235
+ .badge { background: #161a24; border: 1px dashed #2f3647; border-radius: 10px; padding: 8px 10px; opacity: .45; filter: grayscale(1); }
236
+ .badge.on { opacity: 1; filter: none; border-style: solid; border-color: #6b5a1f; background: linear-gradient(180deg, #2a2616, #1a1a16); }
237
+ .badge span { font-size: 22px; }
238
+ .badge b { display: block; font-size: 12px; margin-top: 2px; }
239
+ .badge small { color: var(--muted); font-size: 11px; }
240
+
241
+ /* folder picking */
242
+ .pick-row { margin-top: 2px; }
243
+ .pick-row button { flex: 1; }
244
+ .picked { margin-top: 8px; padding: 8px 10px; background: #13241a; border: 1px solid #24563a; border-radius: 8px; font-size: 12px; word-break: break-all; }
245
+ .browser { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
246
+ .b-head { display: flex; gap: 6px; align-items: center; padding: 6px; background: #161a24; border-bottom: 1px solid var(--line); }
247
+ .b-head button { padding: 4px 9px; }
248
+ .b-path { flex: 1; min-width: 0; font: 11px ui-monospace, Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
249
+ .b-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; }
250
+ .b-item { text-align: left; border: 0; border-radius: 0; background: transparent; padding: 6px 12px; }
251
+ .b-item:hover { background: #222838; }
252
+
253
+ @media (max-width: 1100px) {
254
+ .stats { display: none; }
255
+ .brand .muted { display: none; }
256
+ }
257
+ @media (max-width: 760px) {
258
+ #topbar { overflow-x: auto; }
259
+ body.panel-open #stage { right: 0; }
260
+ #panel { width: 100vw; }
261
+ #p-resize { display: none; }
262
+ body.panel-open #toasts { right: 14px; }
263
+ #legend { display: none; }
264
+ }
265
+ .modal:has(.r-list) { width: min(760px, calc(100vw - 32px)); }
266
+
267
+ #focus-bar { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--chrome); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.4); z-index: 5; font-weight: 700; }
268
+ #focus-bar[hidden] { display: none; }
269
+ #focus-close { font-size: 16px; }