chatshelf 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +152 -2
- package/bin/chatshelf.mjs +45 -0
- package/package.json +44 -4
- package/public/app.js +1536 -0
- package/public/index.html +371 -0
- package/public/style.css +610 -0
- package/server.mjs +732 -0
- package/sources.mjs +674 -0
package/public/style.css
ADDED
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--page: #EFEDEA; --panel: #FFFFFF; --side: #F7F6F4; --sunk: #F7F6F4; --line: #ECEAE6; --line-2: #E2DFDA;
|
|
3
|
+
--ink: #1C1917; --ink-2: #44403C; --muted: #8A847E; --accent: #E8590C; --accent-soft: #FDEEE4; --select: #EFEBE3;
|
|
4
|
+
--danger: #C2410C; --danger-soft: #FFF1EA; --blue: #2563EB; --blue-soft: #EAF1FE; --ok: #15803D; --ok-soft: #EAF6EE;
|
|
5
|
+
--h0: #EFEDEA; --h1: #F9C9A8; --h2: #F39A62; --h3: #E8590C; --h4: #9A3A07;
|
|
6
|
+
--r: 12px; --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 1px 1px rgba(28, 25, 23, .03);
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
}
|
|
9
|
+
:root[data-theme="dark"] {
|
|
10
|
+
color-scheme: dark;
|
|
11
|
+
--page: #141211; --panel: #1E1B19; --side: #191715; --sunk: #191715; --line: #2C2825; --line-2: #3A3531;
|
|
12
|
+
--ink: #F5F5F4; --ink-2: #D6D3D1; --muted: #A29B95; --accent-soft: #3A2114; --select: #2A2622;
|
|
13
|
+
--danger: #FB923C; --danger-soft: #34200F; --blue: #7AA7FF; --blue-soft: #18243A; --ok: #4ADE80; --ok-soft: #13291B;
|
|
14
|
+
--h0: #2A2623; --h1: #5A2C12; --h2: #8E3F12; --h3: #E8590C; --h4: #FDBA8C;
|
|
15
|
+
}
|
|
16
|
+
* { box-sizing: border-box; }
|
|
17
|
+
[hidden] { display: none !important; }
|
|
18
|
+
html, body { height: 100%; }
|
|
19
|
+
body { margin: 0; font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
|
|
20
|
+
h1 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
|
|
21
|
+
h2 { font-size: 15px; font-weight: 600; margin: 0; }
|
|
22
|
+
h3 { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
|
|
23
|
+
.muted { color: var(--muted); }
|
|
24
|
+
.small { font-size: 12.5px; }
|
|
25
|
+
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
26
|
+
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
|
|
27
|
+
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
|
|
28
|
+
:is(button, input, select, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
29
|
+
|
|
30
|
+
/* ---------- layout ---------- */
|
|
31
|
+
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
|
|
32
|
+
.side { background: var(--side); border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; }
|
|
33
|
+
.main { padding: 16px; min-width: 0; }
|
|
34
|
+
.view { max-width: 1320px; margin: 0 auto; }
|
|
35
|
+
.overview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
|
|
36
|
+
.right { display: grid; gap: 16px; }
|
|
37
|
+
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
|
|
38
|
+
.center > .panel, .view > .panel { padding: 24px; }
|
|
39
|
+
|
|
40
|
+
/* ---------- sidebar ---------- */
|
|
41
|
+
.logo { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
|
|
42
|
+
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--accent); font: 700 14px ui-monospace, monospace; }
|
|
43
|
+
.logo-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
|
|
44
|
+
.side-search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; color: var(--muted); }
|
|
45
|
+
.side-search input { border: 0; background: transparent; min-height: 42px; flex: 1; min-width: 0; outline: none; color: var(--ink); font: inherit; }
|
|
46
|
+
.side-search:focus-within { border-color: var(--accent); }
|
|
47
|
+
.nav { display: grid; gap: 2px; }
|
|
48
|
+
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
|
|
49
|
+
.nav-item:hover { background: var(--select); }
|
|
50
|
+
.nav-item[aria-current="page"] { background: var(--select); color: var(--ink); font-weight: 600; }
|
|
51
|
+
.nav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
|
|
52
|
+
.nav-count.danger { background: var(--danger-soft); color: var(--danger); border-radius: 999px; padding: 0 8px; }
|
|
53
|
+
.side-card { margin-top: auto; background: var(--select); border-radius: 14px; padding: 12px 12px 16px; text-align: center; }
|
|
54
|
+
.side-art { background: var(--panel); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
|
|
55
|
+
.side-art svg { width: 100%; height: 64px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
|
|
56
|
+
.side-art .a1 { fill: var(--accent-soft); stroke: var(--ink); }
|
|
57
|
+
.side-art .a2 { stroke: var(--ink); }
|
|
58
|
+
.side-art .a3 { stroke: var(--accent); }
|
|
59
|
+
.side-art .a4 { fill: var(--ok-soft); stroke: var(--ink); }
|
|
60
|
+
.side-card-title { font-weight: 600; margin: 0 0 4px; }
|
|
61
|
+
.side-card-text { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
|
|
62
|
+
|
|
63
|
+
/* ---------- buttons, fields ---------- */
|
|
64
|
+
.btn { font: inherit; font-weight: 500; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
|
|
65
|
+
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
|
|
66
|
+
.btn.ghost:hover { background: var(--sunk); }
|
|
67
|
+
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
|
|
68
|
+
.btn.icon { width: 44px; padding: 0; }
|
|
69
|
+
.btn.full { width: 100%; }
|
|
70
|
+
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
|
|
71
|
+
.btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
72
|
+
.link { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 13px; min-height: 44px; padding: 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
|
|
73
|
+
input, select { font: inherit; color: inherit; }
|
|
74
|
+
select, .mono { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; min-height: 44px; }
|
|
75
|
+
.mono { width: 100%; font-family: ui-monospace, monospace; font-size: 13.5px; }
|
|
76
|
+
.field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; color: var(--muted); background: var(--panel); }
|
|
77
|
+
.field input { border: 0; background: transparent; outline: none; min-height: 42px; flex: 1; min-width: 0; color: var(--ink); }
|
|
78
|
+
.field:focus-within { border-color: var(--accent); }
|
|
79
|
+
.grow { flex: 1; min-width: 220px; }
|
|
80
|
+
.bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
|
81
|
+
.seg { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
|
|
82
|
+
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; min-height: 36px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
|
|
83
|
+
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
|
|
84
|
+
|
|
85
|
+
/* ---------- overview ---------- */
|
|
86
|
+
.hello { margin-bottom: 20px; }
|
|
87
|
+
.hello p { margin: 2px 0 0; }
|
|
88
|
+
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
|
|
89
|
+
.stat { border: 1px solid var(--line); border-radius: var(--r); background: var(--sunk); overflow: hidden; text-align: left; font: inherit; color: inherit; padding: 0; }
|
|
90
|
+
button.stat { cursor: pointer; }
|
|
91
|
+
button.stat:hover { border-color: var(--line-2); }
|
|
92
|
+
.stat-top { background: var(--panel); padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
|
|
93
|
+
.stat-num { font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
|
|
94
|
+
.stat-label { color: var(--muted); margin-top: 4px; }
|
|
95
|
+
.stat-foot { padding: 10px 16px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; }
|
|
96
|
+
.delta { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 6px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
|
|
97
|
+
.delta.down { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
|
|
98
|
+
.delta.warn { background: var(--danger-soft); color: var(--danger); }
|
|
99
|
+
.ask { display: flex; align-items: center; gap: 10px; border-radius: var(--r); padding: 0 8px 0 14px; color: var(--accent); margin-bottom: 28px;
|
|
100
|
+
border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(90deg, #F6B48B, #F3E2C4, #CFE3D3, #F6B48B) border-box; }
|
|
101
|
+
.ask input { flex: 1; border: 0; outline: none; background: transparent; min-height: 46px; color: var(--ink); min-width: 0; }
|
|
102
|
+
.ask:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
103
|
+
kbd { font: 12px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
|
|
104
|
+
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
|
|
105
|
+
.section-head h2 { font-size: 16px; }
|
|
106
|
+
|
|
107
|
+
/* ---------- rows (cards) ---------- */
|
|
108
|
+
.rows { display: grid; gap: 10px; }
|
|
109
|
+
.row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; text-align: left; font: inherit; color: inherit;
|
|
110
|
+
background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-height: 44px; }
|
|
111
|
+
button.row { cursor: pointer; }
|
|
112
|
+
button.row:hover { border-color: var(--line-2); background: var(--sunk); }
|
|
113
|
+
.row-title { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
114
|
+
.row-meta { grid-column: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 12.5px; min-width: 0; }
|
|
115
|
+
.row-meta .sep { color: var(--line-2); }
|
|
116
|
+
.row-side { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
|
|
117
|
+
.row.missing { border-color: #F5C4A8; }
|
|
118
|
+
.rows.tight { gap: 0; padding: 4px 16px 12px; }
|
|
119
|
+
.rows.tight .row { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; background: transparent; }
|
|
120
|
+
.rows.tight .row:last-child { border-bottom: 0; }
|
|
121
|
+
.rows.tight button.row:hover { background: transparent; }
|
|
122
|
+
.rows.tight button.row:hover .row-title { text-decoration: underline; text-underline-offset: 3px; }
|
|
123
|
+
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
|
|
124
|
+
.chip .ic { width: 13px; height: 13px; }
|
|
125
|
+
.chip.now { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
|
|
126
|
+
.chip.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
|
|
127
|
+
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
128
|
+
.proj { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
|
|
129
|
+
.proj .ic { width: 13px; height: 13px; color: var(--muted); }
|
|
130
|
+
mark { background: #FFE2CC; color: #1C1917; border-radius: 3px; padding: 0 1px; }
|
|
131
|
+
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
|
|
132
|
+
.good { display: flex; gap: 8px; align-items: center; color: var(--ok); padding: 12px 0; font-size: 13px; }
|
|
133
|
+
|
|
134
|
+
/* ---------- right panels ---------- */
|
|
135
|
+
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
|
|
136
|
+
.panel-head.col { flex-direction: column; align-items: flex-start; gap: 2px; border-bottom: 0; padding-bottom: 4px; }
|
|
137
|
+
.panel-body { padding: 14px 16px 16px; }
|
|
138
|
+
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; margin: 10px 0 12px; }
|
|
139
|
+
.heat i { aspect-ratio: 1; border-radius: 2px; background: var(--h0); }
|
|
140
|
+
.heat i[data-l="1"] { background: var(--h1); } .heat i[data-l="2"] { background: var(--h2); }
|
|
141
|
+
.heat i[data-l="3"] { background: var(--h3); } .heat i[data-l="4"] { background: var(--h4); }
|
|
142
|
+
.heat i.future { background: transparent; }
|
|
143
|
+
.heat-foot { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-2); }
|
|
144
|
+
.bar-mini { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 6px; grid-column: 1 / -1; }
|
|
145
|
+
.bar-mini span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
|
|
146
|
+
|
|
147
|
+
/* ---------- pages ---------- */
|
|
148
|
+
.page-head { margin-bottom: 20px; }
|
|
149
|
+
.page-head p { margin: 4px 0 0; max-width: 760px; }
|
|
150
|
+
|
|
151
|
+
/* ---------- dialogs ---------- */
|
|
152
|
+
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); padding: 24px; width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 24px 64px rgba(28, 25, 23, .18); }
|
|
153
|
+
dialog::backdrop { background: rgba(28, 25, 23, .45); }
|
|
154
|
+
.dlg-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
|
|
155
|
+
.dlg-head h2 { font-size: 17px; }
|
|
156
|
+
.cmd { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
|
|
157
|
+
.cmd code { flex: 1; padding: 11px 12px; white-space: nowrap; overflow-x: auto; word-break: normal; }
|
|
158
|
+
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
|
|
159
|
+
.choices { display: grid; gap: 6px; }
|
|
160
|
+
.choice { text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; min-height: 44px; padding: 0 12px; font: 13px ui-monospace, monospace; word-break: break-all; cursor: pointer; }
|
|
161
|
+
.choice[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
|
|
162
|
+
.browser { border: 1px solid var(--line-2); border-radius: 10px; margin-top: 8px; overflow: hidden; }
|
|
163
|
+
.browser-head { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); }
|
|
164
|
+
.browse-list { max-height: 210px; overflow: auto; display: grid; }
|
|
165
|
+
.browse-list button { background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); text-align: left; min-height: 44px; padding: 0 12px; font: inherit; cursor: pointer; }
|
|
166
|
+
.browse-list button:hover { background: var(--sunk); }
|
|
167
|
+
.error { color: var(--danger); min-height: 1em; margin: 8px 0 0; }
|
|
168
|
+
|
|
169
|
+
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: 12px 20px;
|
|
170
|
+
border-radius: 12px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
|
|
171
|
+
#toast.show { opacity: 1; }
|
|
172
|
+
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
|
|
173
|
+
|
|
174
|
+
/* ---------- responsive ---------- */
|
|
175
|
+
@media (max-width: 1180px) { .overview { grid-template-columns: 1fr; } .right { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
|
|
176
|
+
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
177
|
+
@media (max-width: 760px) {
|
|
178
|
+
.shell { grid-template-columns: 1fr; }
|
|
179
|
+
.side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
|
|
180
|
+
.nav { grid-template-columns: repeat(2, 1fr); }
|
|
181
|
+
.side-card { display: none; }
|
|
182
|
+
.main { padding: 12px; }
|
|
183
|
+
.center > .panel, .view > .panel { padding: 16px; }
|
|
184
|
+
.row { grid-template-columns: 1fr; }
|
|
185
|
+
.row-side { grid-row: auto; grid-column: 1; justify-content: flex-start; }
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* ---------- second reference: labels, pills, table, bulk bar ---------- */
|
|
189
|
+
.eyebrow { font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
|
|
190
|
+
.mono-s { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
191
|
+
.min0 { min-width: 0; }
|
|
192
|
+
.danger-t { color: var(--danger); display: inline-flex; align-items: center; gap: 4px; }
|
|
193
|
+
.danger-t .ic { width: 13px; height: 13px; }
|
|
194
|
+
.quote { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
|
|
195
|
+
.good .ic, .heat-foot .ic { width: 16px; height: 16px; color: var(--ok); }
|
|
196
|
+
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
|
|
197
|
+
.tabs-pill { display: inline-flex; gap: 4px; flex-wrap: wrap; }
|
|
198
|
+
.tabs-pill button { border: 0; background: transparent; color: var(--ink-2); font: inherit; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
|
|
199
|
+
.tabs-pill button span { font-size: 12px; color: var(--muted); }
|
|
200
|
+
.tabs-pill button:hover { background: var(--sunk); }
|
|
201
|
+
.tabs-pill button[aria-pressed="true"] { background: var(--ink); color: var(--panel); font-weight: 500; }
|
|
202
|
+
.tabs-pill button[aria-pressed="true"] span { color: inherit; opacity: .75; }
|
|
203
|
+
.select-all { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 0 6px 16px; cursor: pointer; }
|
|
204
|
+
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; margin: 0; }
|
|
205
|
+
|
|
206
|
+
.row.selectable { padding: 0; grid-template-columns: auto minmax(0, 1fr); }
|
|
207
|
+
.row.selectable .check { display: grid; place-items: center; width: 52px; align-self: stretch; cursor: pointer; border-right: 1px solid transparent; }
|
|
208
|
+
.row-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; text-align: left; font: inherit; color: inherit;
|
|
209
|
+
background: transparent; border: 0; padding: 14px 16px 14px 0; min-height: 44px; cursor: pointer; border-radius: 0 var(--r) var(--r) 0; }
|
|
210
|
+
.row.selectable:hover { border-color: var(--line-2); background: var(--sunk); }
|
|
211
|
+
.row.is-selected { background: #FFF7F1; border-color: #F6C9AA; }
|
|
212
|
+
[data-theme="dark"] .row.is-selected { background: #2A1C13; border-color: #6B3514; }
|
|
213
|
+
|
|
214
|
+
.page-head.outer { padding: 8px 8px 16px; margin: 0; }
|
|
215
|
+
.summary { display: grid; grid-template-columns: minmax(0, 1fr) 300px; margin-bottom: 16px; }
|
|
216
|
+
.sum-main { padding: 20px 24px; }
|
|
217
|
+
.sum-side { padding: 20px 24px; border-left: 1px solid var(--line); }
|
|
218
|
+
.sum-side p.small { margin: 8px 0 0; color: var(--ink-2); }
|
|
219
|
+
.sum-num { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
|
|
220
|
+
.sum-num > span:first-child { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
|
|
221
|
+
.segbar { display: flex; gap: 3px; height: 22px; }
|
|
222
|
+
.segbar i { flex: 1; border-radius: 4px; min-width: 6px; }
|
|
223
|
+
i.o { background: #9FD4B0; } i.u { background: var(--line-2); } i.m { background: var(--accent); }
|
|
224
|
+
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
|
|
225
|
+
.legend span { display: inline-flex; align-items: center; gap: 6px; }
|
|
226
|
+
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
|
|
227
|
+
|
|
228
|
+
.table-panel { padding: 16px 20px 20px; }
|
|
229
|
+
.tbl { display: grid; }
|
|
230
|
+
.thead, .tr { display: grid; grid-template-columns: minmax(220px, 2.4fr) 80px 100px minmax(120px, 1.2fr) 140px 170px; align-items: center; gap: 12px; }
|
|
231
|
+
.thead { font: 600 11px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
|
|
232
|
+
.group-head { display: flex; gap: 12px; align-items: baseline; padding: 14px 12px 6px; border-bottom: 1px solid var(--line); }
|
|
233
|
+
.tr { padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: 60px; }
|
|
234
|
+
.tr:hover { background: var(--sunk); }
|
|
235
|
+
.tr.missing { background: #FFF8F3; }
|
|
236
|
+
[data-theme="dark"] .tr.missing { background: #241811; }
|
|
237
|
+
.td-folder { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
238
|
+
.ficon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); flex: none; }
|
|
239
|
+
.ficon .ic { width: 16px; height: 16px; }
|
|
240
|
+
.ficon.m { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
|
|
241
|
+
.ficon.o { color: var(--ok); }
|
|
242
|
+
.ficon.u { color: var(--muted); }
|
|
243
|
+
.td-num { font-variant-numeric: tabular-nums; font-weight: 500; }
|
|
244
|
+
.td-date { color: var(--ink-2); font-size: 13px; }
|
|
245
|
+
.td-bar { display: flex; align-items: center; gap: 10px; }
|
|
246
|
+
.meter { flex: 1; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; max-width: 120px; }
|
|
247
|
+
.meter span { display: block; height: 100%; background: var(--ink-2); border-radius: 999px; }
|
|
248
|
+
.td-act { display: flex; gap: 6px; justify-content: flex-end; }
|
|
249
|
+
|
|
250
|
+
.bulk { position: sticky; bottom: 16px; z-index: 6; max-width: 1320px; margin: 16px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
|
|
251
|
+
background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px 14px 24px; box-shadow: 0 12px 32px rgba(28, 25, 23, .12); }
|
|
252
|
+
.bulk.off { display: none; }
|
|
253
|
+
.bulk-info b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-right: 6px; }
|
|
254
|
+
.bulk-actions { display: flex; gap: 8px; }
|
|
255
|
+
|
|
256
|
+
@media (max-width: 1100px) {
|
|
257
|
+
.thead { display: none; }
|
|
258
|
+
.tr { grid-template-columns: 1fr auto; }
|
|
259
|
+
.td-num, .td-date, .td-bar { display: none; }
|
|
260
|
+
.td-act { grid-column: 1 / -1; justify-content: flex-start; }
|
|
261
|
+
.summary { grid-template-columns: 1fr; }
|
|
262
|
+
.sum-side { border-left: 0; border-top: 1px solid var(--line); }
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* ---------- theme switch ---------- */
|
|
266
|
+
.theme { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
|
|
267
|
+
.theme button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
|
|
268
|
+
.theme button .ic { width: 15px; height: 15px; }
|
|
269
|
+
.theme button:hover { color: var(--ink); }
|
|
270
|
+
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--panel); font-weight: 500; }
|
|
271
|
+
[data-theme="dark"] .row.missing { border-color: #6B3514; }
|
|
272
|
+
[data-theme="dark"] .ask { background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(90deg, #8E3F12, #4A3A2A, #24402C, #8E3F12) border-box; }
|
|
273
|
+
[data-theme="dark"] mark { background: #7C2D12; color: #FFEDD5; }
|
|
274
|
+
[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .6); }
|
|
275
|
+
html { transition: background-color .2s; }
|
|
276
|
+
@media (prefers-reduced-motion: reduce) { html { transition: none; } }
|
|
277
|
+
|
|
278
|
+
/* ---------- conversation drawer ---------- */
|
|
279
|
+
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(920px, 100vw); border-radius: 16px 0 0 16px; border-right: 0; padding: 0; display: none; flex-direction: column; overflow: hidden; }
|
|
280
|
+
dialog.drawer[open] { display: flex; animation: slide .18s ease-out; }
|
|
281
|
+
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
|
|
282
|
+
@media (prefers-reduced-motion: reduce) { dialog.drawer[open] { animation: none; } }
|
|
283
|
+
.drawer-head { padding: 20px 24px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
|
|
284
|
+
.drawer-head h2 { font-size: 18px; line-height: 1.35; margin: 4px 0 8px; overflow-wrap: anywhere; }
|
|
285
|
+
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
286
|
+
.resume { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 14px 0 12px; }
|
|
287
|
+
.resume-label { grid-column: 1 / -1; color: var(--muted); }
|
|
288
|
+
.resume code { background: none; border: 0; padding: 0; font-size: 13px; white-space: pre-wrap; word-break: break-all; color: var(--ink); }
|
|
289
|
+
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
|
290
|
+
.convo-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
|
291
|
+
.field.sm input { min-height: 36px; }
|
|
292
|
+
.transcript { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: grid; gap: 18px; align-content: start; scroll-behavior: smooth; }
|
|
293
|
+
@media (prefers-reduced-motion: reduce) { .transcript { scroll-behavior: auto; } }
|
|
294
|
+
|
|
295
|
+
.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
|
|
296
|
+
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
|
|
297
|
+
.msg.user .avatar { background: var(--accent-soft); color: var(--accent); }
|
|
298
|
+
.msg.assistant .avatar { background: var(--ink); color: var(--accent); font-size: 15px; }
|
|
299
|
+
.msg-head { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13px; }
|
|
300
|
+
.msg-head .time { color: var(--muted); font-size: 12px; }
|
|
301
|
+
.msg-copy { margin-left: auto; opacity: 0; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); border-radius: 8px; font: inherit; font-size: 12px; min-height: 28px; padding: 0 10px; cursor: pointer; }
|
|
302
|
+
.msg:hover .msg-copy, .msg-copy:focus-visible { opacity: 1; }
|
|
303
|
+
.msg.user .bubble { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 10px 14px; }
|
|
304
|
+
.msg.assistant .bubble { padding: 2px 0; }
|
|
305
|
+
.msg.dim { display: none; }
|
|
306
|
+
.tools-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
|
307
|
+
.tool { font: 11.5px ui-monospace, monospace; color: var(--ink-2); background: var(--sunk); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
|
|
308
|
+
.tool b { font-weight: 600; color: var(--muted); }
|
|
309
|
+
.clamp { position: relative; max-height: 420px; overflow: hidden; }
|
|
310
|
+
.clamp::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
|
|
311
|
+
.msg.user .clamp::after { background: linear-gradient(transparent, var(--sunk)); }
|
|
312
|
+
.more-btn { margin-top: 6px; background: none; border: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 500; min-height: 32px; padding: 0; cursor: pointer; }
|
|
313
|
+
|
|
314
|
+
/* markdown */
|
|
315
|
+
.md { overflow-wrap: anywhere; line-height: 1.6; }
|
|
316
|
+
.md > :first-child { margin-top: 0; }
|
|
317
|
+
.md > :last-child { margin-bottom: 0; }
|
|
318
|
+
.md p { margin: 0 0 10px; }
|
|
319
|
+
.md h1, .md h2, .md h3, .md h4 { font-size: 15px; margin: 16px 0 6px; line-height: 1.35; }
|
|
320
|
+
.md h1 { font-size: 17px; } .md h2 { font-size: 16px; }
|
|
321
|
+
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
|
|
322
|
+
.md li { margin: 3px 0; }
|
|
323
|
+
.md li::marker { color: var(--muted); }
|
|
324
|
+
.md strong { font-weight: 600; }
|
|
325
|
+
.md a { color: var(--accent); text-underline-offset: 2px; }
|
|
326
|
+
.md blockquote { margin: 0 0 10px; padding: 2px 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
|
|
327
|
+
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
|
|
328
|
+
.md :not(pre) > code { word-break: break-word; font-size: 12.5px; padding: 1px 5px; }
|
|
329
|
+
.md table { border-collapse: collapse; margin: 0 0 12px; font-size: 13px; display: block; overflow-x: auto; max-width: 100%; }
|
|
330
|
+
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
|
|
331
|
+
.md th { background: var(--sunk); font-weight: 600; }
|
|
332
|
+
.code { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #1C1917; }
|
|
333
|
+
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 12px; background: #292524; color: #A8A29E; font: 11.5px ui-monospace, monospace; }
|
|
334
|
+
.code-head button { background: transparent; border: 0; color: #D6D3D1; font: inherit; min-height: 28px; padding: 0 8px; border-radius: 6px; cursor: pointer; }
|
|
335
|
+
.code-head button:hover { background: #44403C; }
|
|
336
|
+
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; color: #F5F5F4; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
337
|
+
.code pre code { background: none; border: 0; padding: 0; color: inherit; word-break: normal; white-space: pre; font: inherit; }
|
|
338
|
+
mark.hit { background: #FDE68A; color: #1C1917; }
|
|
339
|
+
mark.hit.cur { background: var(--accent); color: #fff; }
|
|
340
|
+
#detailProject { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
|
|
341
|
+
.md li > p { margin: 0; }
|
|
342
|
+
.md li > p + * { margin-top: 6px; }
|
|
343
|
+
[data-theme="dark"] .code { border-color: var(--line-2); }
|
|
344
|
+
|
|
345
|
+
/* =========================================================
|
|
346
|
+
UX features + motion (power3-out easing, blur-to-sharp reveals)
|
|
347
|
+
========================================================= */
|
|
348
|
+
:root {
|
|
349
|
+
--ease: cubic-bezier(.215, .61, .355, 1); /* power3.out */
|
|
350
|
+
--ease-menu: cubic-bezier(.2, .7, .2, 1);
|
|
351
|
+
--z-sticky: 10; --z-bulk: 20; --z-toast: 50;
|
|
352
|
+
}
|
|
353
|
+
body { font-size: 15px; }
|
|
354
|
+
.small { font-size: 13px; }
|
|
355
|
+
.ic.sm { width: 15px; height: 15px; }
|
|
356
|
+
.skip { position: absolute; left: 16px; top: -60px; z-index: var(--z-toast); background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
|
|
357
|
+
.skip:focus { top: 12px; }
|
|
358
|
+
.main:focus { outline: none; }
|
|
359
|
+
kbd { white-space: nowrap; }
|
|
360
|
+
.btn kbd { color: inherit; opacity: .6; border-color: currentColor; }
|
|
361
|
+
.btn.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
|
|
362
|
+
|
|
363
|
+
/* sidebar */
|
|
364
|
+
.side-search { width: 100%; min-height: 44px; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
|
|
365
|
+
.side-search span { flex: 1; }
|
|
366
|
+
.side-search:hover { border-color: var(--muted); color: var(--ink-2); }
|
|
367
|
+
.side-pinned { display: grid; gap: 2px; min-height: 0; overflow: auto; }
|
|
368
|
+
.side-label { padding: 8px 12px 4px; color: var(--muted); }
|
|
369
|
+
.side-pin { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
|
|
370
|
+
.side-pin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
371
|
+
.side-pin .ic { width: 14px; height: 14px; color: var(--accent); }
|
|
372
|
+
.side-pin:hover { background: var(--select); color: var(--ink); }
|
|
373
|
+
.side-foot { margin-top: auto; display: grid; gap: 8px; }
|
|
374
|
+
.side-foot .link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); }
|
|
375
|
+
.side-foot .link kbd { margin-left: auto; }
|
|
376
|
+
|
|
377
|
+
/* rows */
|
|
378
|
+
.row-last { grid-column: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; margin-top: 2px; }
|
|
379
|
+
.row-last .ic { width: 13px; height: 13px; flex: none; transform: scaleY(-1); opacity: .7; }
|
|
380
|
+
.row-last > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
381
|
+
.row.selectable { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
382
|
+
.pin-btn { width: 44px; align-self: stretch; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 0 var(--r) var(--r) 0; opacity: 0; transition: opacity .18s var(--ease), color .18s var(--ease); }
|
|
383
|
+
.pin-btn .ic { width: 16px; height: 16px; }
|
|
384
|
+
.row.selectable:hover .pin-btn, .pin-btn:focus-visible, .pin-btn[aria-pressed="true"] { opacity: 1; }
|
|
385
|
+
.pin-btn[aria-pressed="true"] { color: var(--accent); }
|
|
386
|
+
.pin-btn[aria-pressed="true"] .ic { fill: currentColor; }
|
|
387
|
+
.pin-dot { display: inline-flex; margin-right: 6px; color: var(--accent); vertical-align: -2px; }
|
|
388
|
+
.pin-dot .ic { width: 14px; height: 14px; fill: currentColor; }
|
|
389
|
+
.row-open { padding-right: 4px; }
|
|
390
|
+
.row-open:focus-visible { outline-offset: -2px; border-radius: 8px; }
|
|
391
|
+
.date-head { margin: 14px 0 2px 4px; color: var(--muted); }
|
|
392
|
+
.date-head:first-child { margin-top: 0; }
|
|
393
|
+
.sticky-tools { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--panel); margin: 0 -24px; padding: 8px 24px 2px; border-bottom: 1px solid transparent; }
|
|
394
|
+
.toolbar .tool-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
395
|
+
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
|
|
396
|
+
.good.pad { padding: 16px 12px; }
|
|
397
|
+
|
|
398
|
+
/* hover / press feedback (0.18s, like the site) */
|
|
399
|
+
button.row, .row.selectable, .stat, .tr, .choice, .nav-item, .btn, .side-pin, .tabs-pill button, .seg button, .theme button {
|
|
400
|
+
transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
|
|
401
|
+
}
|
|
402
|
+
button.row:hover, .row.selectable:hover, button.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28, 25, 23, .06); }
|
|
403
|
+
.rows.tight button.row:hover { transform: none; box-shadow: none; }
|
|
404
|
+
.btn:active, button.row:active, .nav-item:active { transform: translateY(0) scale(.985); }
|
|
405
|
+
|
|
406
|
+
/* skeletons */
|
|
407
|
+
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, var(--sunk) 50%, var(--line) 100%); background-size: 200% 100%; margin: 6px 0; }
|
|
408
|
+
.motion .sk { animation: shimmer 1.3s linear infinite; }
|
|
409
|
+
@keyframes shimmer { to { background-position: -200% 0; } }
|
|
410
|
+
.skel { pointer-events: none; }
|
|
411
|
+
.row.skel { min-height: 76px; }
|
|
412
|
+
.chip-sk { position: absolute; right: 16px; top: 18px; width: 64px; height: 20px; }
|
|
413
|
+
.row.skel { position: relative; }
|
|
414
|
+
.stat.skel .stat-top .sk:first-child { height: 22px; }
|
|
415
|
+
.msg.skel { grid-template-columns: 32px 1fr; }
|
|
416
|
+
.avatar.sk { margin: 0; height: 32px; }
|
|
417
|
+
|
|
418
|
+
/* empty states */
|
|
419
|
+
.empty { display: grid; justify-items: center; gap: 4px; padding: 40px 16px; text-align: center; }
|
|
420
|
+
.empty-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); margin-bottom: 8px; }
|
|
421
|
+
.empty-title { font-weight: 600; margin: 0; color: var(--ink); }
|
|
422
|
+
.empty p { margin: 0; max-width: 420px; }
|
|
423
|
+
.empty .btn { margin-top: 12px; }
|
|
424
|
+
|
|
425
|
+
/* drawer head */
|
|
426
|
+
.crumb { margin: 0; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
427
|
+
.head-actions { display: flex; gap: 6px; }
|
|
428
|
+
#detailPin[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
|
|
429
|
+
#detailPin[aria-pressed="true"] .ic { fill: currentColor; }
|
|
430
|
+
.resume-actions .btn .ic { width: 16px; height: 16px; }
|
|
431
|
+
|
|
432
|
+
/* move dialog */
|
|
433
|
+
dialog.modal { width: min(720px, calc(100vw - 32px)); }
|
|
434
|
+
dialog.narrow { width: min(520px, calc(100vw - 32px)); }
|
|
435
|
+
.choice { display: flex; align-items: center; gap: 10px; }
|
|
436
|
+
.choice .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
|
|
437
|
+
.browse-list button { display: flex; align-items: center; gap: 10px; }
|
|
438
|
+
.browse-list button .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
|
|
439
|
+
.browse-list .use-here { color: var(--accent); }
|
|
440
|
+
.browse-list .use-here .ic { color: var(--accent); }
|
|
441
|
+
.browse-list .use-here .muted { margin-left: auto; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
442
|
+
|
|
443
|
+
/* command palette */
|
|
444
|
+
dialog.palette { width: min(640px, calc(100vw - 32px)); padding: 0; margin: 12vh auto auto; overflow: hidden; border-radius: 16px; }
|
|
445
|
+
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
|
|
446
|
+
.pal-input input { flex: 1; border: 0; background: transparent; outline: none; min-height: 56px; font: inherit; font-size: 16px; color: var(--ink); }
|
|
447
|
+
.pal-list { max-height: min(56vh, 460px); overflow: auto; padding: 6px; }
|
|
448
|
+
.pal-group { padding: 10px 12px 4px; font: 600 11px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
|
449
|
+
.pal-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
|
|
450
|
+
.pal-item .ic { width: 16px; height: 16px; flex: none; color: var(--muted); }
|
|
451
|
+
.pal-item[aria-selected="true"] { background: var(--select); color: var(--ink); }
|
|
452
|
+
.pal-item[aria-selected="true"] .ic { color: var(--accent); }
|
|
453
|
+
.pal-label { flex: 1; min-width: 0; display: grid; }
|
|
454
|
+
.pal-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
455
|
+
.pal-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
456
|
+
.pal-empty { padding: 28px 16px; text-align: center; }
|
|
457
|
+
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--sunk); }
|
|
458
|
+
.pal-foot kbd { margin-right: 4px; }
|
|
459
|
+
|
|
460
|
+
/* shortcuts */
|
|
461
|
+
.sc-list { margin: 8px 0 0; display: grid; }
|
|
462
|
+
.sc-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
|
|
463
|
+
.sc-list > div:last-child { border-bottom: 0; }
|
|
464
|
+
.sc-list dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
|
|
465
|
+
.sc-list dd { margin: 0; }
|
|
466
|
+
|
|
467
|
+
/* layering */
|
|
468
|
+
.bulk { z-index: var(--z-bulk); }
|
|
469
|
+
#toast { z-index: var(--z-toast); }
|
|
470
|
+
|
|
471
|
+
/* ---------- motion ---------- */
|
|
472
|
+
@keyframes rise { from { opacity: 0; filter: blur(6px); transform: translateY(16px); } }
|
|
473
|
+
@keyframes word { from { opacity: 0; filter: blur(10px); transform: translateY(35%); } }
|
|
474
|
+
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
|
|
475
|
+
@keyframes grow { from { transform: scaleX(0); } }
|
|
476
|
+
@keyframes fadeIn { from { opacity: 0; } }
|
|
477
|
+
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
|
|
478
|
+
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
|
|
479
|
+
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
|
|
480
|
+
|
|
481
|
+
.motion .split.in .w { display: inline-block; animation: word .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
|
|
482
|
+
.motion .rv-text.in { animation: rise .8s var(--ease) both .12s; }
|
|
483
|
+
.motion .rv { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
|
|
484
|
+
.motion .heat.in i { animation: pop .45s var(--ease-menu) both; animation-delay: calc(var(--c, 0) * 22ms + 150ms); }
|
|
485
|
+
.motion #topProjects.in .bar-mini span { transform-origin: left; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
|
|
486
|
+
.motion .segbar.in i { animation: pop .4s var(--ease-menu) both; animation-delay: calc(var(--i, 0) * 25ms + 150ms); }
|
|
487
|
+
.motion dialog.drawer[open] { animation: drawerIn .45s var(--ease) both; }
|
|
488
|
+
.motion dialog.drawer[open]::backdrop, .motion dialog.modal[open]::backdrop, .motion dialog.palette[open]::backdrop { animation: fadeIn .25s ease both; }
|
|
489
|
+
.motion dialog.modal[open], .motion dialog.palette[open] { animation: palIn .28s var(--ease-menu) both; }
|
|
490
|
+
.motion .pal-item.rv { animation-duration: .36s; animation-delay: calc(var(--i, 0) * 25ms); }
|
|
491
|
+
.motion #toast.show { animation: toastIn .35s var(--ease) both; }
|
|
492
|
+
.motion .bulk:not([hidden]) { animation: rise .4s var(--ease) both; }
|
|
493
|
+
.motion .msg.rv { animation-duration: .5s; }
|
|
494
|
+
.motion .tabs-pill button[aria-pressed="true"], .motion .seg button[aria-pressed="true"] { transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
|
|
495
|
+
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
|
|
496
|
+
@media (prefers-reduced-motion: reduce) {
|
|
497
|
+
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
|
|
498
|
+
}
|
|
499
|
+
.side-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
500
|
+
|
|
501
|
+
/* ---------- bookmarks ---------- */
|
|
502
|
+
.row-between { flex-direction: row !important; justify-content: space-between; align-items: flex-start !important; }
|
|
503
|
+
.msg-actions { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; }
|
|
504
|
+
.msg-actions .msg-copy { margin-left: 0; }
|
|
505
|
+
.msg-bm { width: 32px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 8px; cursor: pointer; opacity: 0;
|
|
506
|
+
transition: opacity .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease); }
|
|
507
|
+
.msg-bm .ic { width: 15px; height: 15px; }
|
|
508
|
+
.msg:hover .msg-bm, .msg-bm:focus-visible, .msg-bm[aria-pressed="true"] { opacity: 1; }
|
|
509
|
+
.msg-bm[aria-pressed="true"] { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
|
|
510
|
+
.msg-bm[aria-pressed="true"] .ic { fill: currentColor; }
|
|
511
|
+
.msg.is-bm .bubble, .msg.is-bm.assistant .bubble { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
|
|
512
|
+
.msg.is-bm.assistant .bubble { border-radius: 4px; }
|
|
513
|
+
.bm-note { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--accent); background: var(--panel); transition: border-color .18s var(--ease), background-color .3s var(--ease); }
|
|
514
|
+
.bm-note .ic { width: 14px; height: 14px; fill: currentColor; flex: none; }
|
|
515
|
+
.bm-note input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; min-height: 38px; color: var(--ink); font-size: 13.5px; }
|
|
516
|
+
.bm-note:focus-within { border-style: solid; border-color: var(--accent); }
|
|
517
|
+
.bm-note.saved, .bm-item.saved .bm-note { background: var(--ok-soft); border-color: var(--ok); }
|
|
518
|
+
.bm-note.inline { color: var(--muted); margin-top: 6px; }
|
|
519
|
+
|
|
520
|
+
.marks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
|
|
521
|
+
.marks .eyebrow { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); margin-right: 2px; }
|
|
522
|
+
.marks .eyebrow .ic { width: 13px; height: 13px; fill: currentColor; }
|
|
523
|
+
.mark-chip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font: inherit; font-size: 12.5px; min-height: 32px; padding: 0 10px; border-radius: 999px; cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease); }
|
|
524
|
+
.mark-chip:hover { border-color: var(--accent); color: var(--ink); }
|
|
525
|
+
|
|
526
|
+
@keyframes flash { 0% { background-color: var(--accent-soft); } 100% { background-color: transparent; } }
|
|
527
|
+
.msg.flash { border-radius: 12px; animation: flash 1.6s var(--ease) both; }
|
|
528
|
+
.msg.flash .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
529
|
+
|
|
530
|
+
.bm-list { display: grid; gap: 14px; }
|
|
531
|
+
.bm-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
|
|
532
|
+
.bm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--sunk); border-bottom: 1px solid var(--line); }
|
|
533
|
+
.bm-head h2 { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
534
|
+
.bm-head .mono-s { margin: 2px 0 0; }
|
|
535
|
+
.bm-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .3s var(--ease); }
|
|
536
|
+
.bm-item:last-child { border-bottom: 0; }
|
|
537
|
+
.bm-item:hover { background: var(--sunk); }
|
|
538
|
+
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
|
|
539
|
+
.avatar.sm.u { background: var(--accent-soft); color: var(--accent); }
|
|
540
|
+
.avatar.sm.a { background: var(--ink); color: var(--accent); font-size: 13px; }
|
|
541
|
+
.bm-meta { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); align-items: baseline; }
|
|
542
|
+
.bm-meta b { color: var(--ink); font-weight: 600; }
|
|
543
|
+
.bm-text { margin: 4px 0 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
|
|
544
|
+
.bm-actions { display: flex; gap: 6px; }
|
|
545
|
+
.bm-actions .ic { width: 15px; height: 15px; }
|
|
546
|
+
.btn.icon.sm { width: 36px; min-height: 36px; }
|
|
547
|
+
@media (max-width: 760px) { .bm-item { grid-template-columns: 28px 1fr; } .bm-actions { grid-column: 2; } }
|
|
548
|
+
.avatar.sm.c { background: var(--accent-soft); color: var(--accent); }
|
|
549
|
+
.avatar.sm.c .ic { width: 14px; height: 14px; fill: currentColor; }
|
|
550
|
+
.bm-item.chat .bm-meta { flex-wrap: wrap; }
|
|
551
|
+
.bm-item.chat .bm-meta b { font-size: 14.5px; }
|
|
552
|
+
.bm-item.chat .bm-text .ic { width: 13px; height: 13px; transform: scaleY(-1); vertical-align: -2px; opacity: .7; }
|
|
553
|
+
.bm-sep { margin: 8px 0 -4px 4px; color: var(--muted); }
|
|
554
|
+
.bm-head .pin-dot .ic { width: 13px; height: 13px; }
|
|
555
|
+
.side-pin .ic { fill: currentColor; }
|
|
556
|
+
.src-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 1px 8px 1px 6px; }
|
|
557
|
+
.src-badge .ic { width: 12px; height: 12px; fill: currentColor; }
|
|
558
|
+
.src-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
|
|
559
|
+
.chip-src { font-size: 11px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 0 6px; margin-right: 6px; }
|
|
560
|
+
|
|
561
|
+
/* ---------- multiple tools ---------- */
|
|
562
|
+
.s-claude { --tool: #E8590C; } .s-codex { --tool: #1C1917; } .s-cursor { --tool: #57534E; } .s-copilot { --tool: #2563EB; }
|
|
563
|
+
.s-opencode { --tool: #9A3412; } .s-gemini { --tool: #CA8A04; } .s-chatgpt { --tool: #15803D; } .s-claudeai { --tool: #C2410C; }
|
|
564
|
+
[data-theme="dark"] .s-codex { --tool: #E7E5E4; } [data-theme="dark"] .s-cursor { --tool: #A8A29E; } [data-theme="dark"] .s-copilot { --tool: #7AA7FF; }
|
|
565
|
+
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
|
|
566
|
+
.src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tool, var(--muted)); }
|
|
567
|
+
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tool, var(--muted)); flex: none; }
|
|
568
|
+
.row-title .dot, .rows.tight .row-title .src { margin-right: 6px; vertical-align: 1px; }
|
|
569
|
+
.bar-mini span[class^="s-"] { background: var(--tool); }
|
|
570
|
+
.src-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
|
|
571
|
+
.src-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
|
|
572
|
+
.src-tabs button span { color: var(--muted); font-size: 12px; }
|
|
573
|
+
.src-tabs button:hover { border-color: var(--muted); }
|
|
574
|
+
.src-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--select); color: var(--ink); font-weight: 500; }
|
|
575
|
+
.side-tools { justify-content: flex-start; gap: 10px; font-size: 14px; }
|
|
576
|
+
.side-tools .nav-count { margin-left: auto; }
|
|
577
|
+
.resume-note { grid-column: 1 / -1; margin: 0; }
|
|
578
|
+
.resume-actions .btn[hidden] { display: none; }
|
|
579
|
+
.src-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0 4px; }
|
|
580
|
+
.src-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
|
|
581
|
+
.src-row:last-child { border-bottom: 0; }
|
|
582
|
+
.src-row.off { opacity: .65; }
|
|
583
|
+
.src-name { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
|
|
584
|
+
.src-state { display: flex; gap: 8px; align-items: center; }
|
|
585
|
+
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 96px; border: 2px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); cursor: pointer; text-align: center; padding: 16px; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
|
|
586
|
+
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
587
|
+
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
|
|
588
|
+
.drop.busy { opacity: .6; pointer-events: none; }
|
|
589
|
+
.drop .ic { color: var(--accent); }
|
|
590
|
+
.ok-t { color: var(--ok); }
|
|
591
|
+
.row.selectable > span.check { width: 52px; }
|
|
592
|
+
.msg.assistant .avatar[class*=" s-"]:not(.s-claude):not(.s-claudeai) { background: var(--tool); color: var(--panel); font-size: 11px; letter-spacing: -.02em; }
|
|
593
|
+
.src-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--panel); font-weight: 600; }
|
|
594
|
+
.src-tabs button[aria-pressed="true"] span { color: inherit; opacity: .7; }
|
|
595
|
+
.src-tabs button[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--panel); }
|
|
596
|
+
.src-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
597
|
+
.date-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -4px 0 12px; }
|
|
598
|
+
.date-custom label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
|
|
599
|
+
.date-custom input { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; min-height: 40px; padding: 0 10px; }
|
|
600
|
+
.date-custom input:focus { border-color: var(--accent); outline: none; }
|
|
601
|
+
#dateRange { min-width: 150px; }
|
|
602
|
+
.heat i[data-day] { cursor: pointer; }
|
|
603
|
+
.heat i[data-day]:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
|
|
604
|
+
.gh-row { display: flex; gap: 8px; }
|
|
605
|
+
.gh-star { flex: 1; justify-content: flex-start; gap: 10px; text-decoration: none; font-size: 14px; }
|
|
606
|
+
.gh-star .ic { color: #CA8A04; }
|
|
607
|
+
.gh-star:hover .ic { fill: #FACC15; }
|
|
608
|
+
.gh-count { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--sunk); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; color: var(--ink-2); }
|
|
609
|
+
.gh-issue { text-decoration: none; }
|
|
610
|
+
a.btn { text-decoration: none; }
|