@farisabid/foliokit 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.
- package/LICENSE +21 -0
- package/README.md +151 -2
- package/bin/foliokit.js +476 -0
- package/package.json +46 -4
- package/public/css/main.css +915 -0
- package/public/css/tokens.css +29 -0
- package/public/favicon.svg +17 -0
- package/public/index.html +747 -0
- package/public/js/core/pdf-engine.js +69 -0
- package/public/js/core/state.js +365 -0
- package/public/js/tools/dev-tools.js +1508 -0
- package/public/js/tools/edit-pdf.js +1618 -0
- package/public/js/tools/office-tools.js +221 -0
- package/public/js/tools/pdf-ops.js +949 -0
- package/public/js/tools/sign-pdf.js +198 -0
- package/public/manifest.json +26 -0
- package/public/sw.js +88 -0
- package/public/vendor/fonts/inter-1.woff2 +0 -0
- package/public/vendor/fonts/inter-2.woff2 +0 -0
- package/public/vendor/fonts/inter-3.woff2 +0 -0
- package/public/vendor/fonts/inter-4.woff2 +0 -0
- package/public/vendor/fonts/inter-5.woff2 +0 -0
- package/public/vendor/fonts/inter-6.woff2 +0 -0
- package/public/vendor/fonts/inter-7.woff2 +0 -0
- package/public/vendor/fonts/inter.css +316 -0
- package/public/vendor/fonts/jbmono-1.woff2 +0 -0
- package/public/vendor/fonts/jbmono-2.woff2 +0 -0
- package/public/vendor/fonts/jbmono-3.woff2 +0 -0
- package/public/vendor/fonts/jbmono-4.woff2 +0 -0
- package/public/vendor/fonts/jbmono-5.woff2 +0 -0
- package/public/vendor/fonts/jbmono-6.woff2 +0 -0
- package/public/vendor/fonts/jbmono.css +109 -0
- package/public/vendor/jszip.min.js +13 -0
- package/public/vendor/pdf-lib.min.js +16 -0
- package/public/vendor/pdf.min.js +22 -0
- package/public/vendor/pdf.worker.min.js +22 -0
- package/public/vendor/qrcode.min.js +1 -0
- package/server.js +125 -0
- package/start.bat +19 -0
- package/start.sh +12 -0
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
/* Foliokit — Layout & Komponen
|
|
2
|
+
* Reset dasar, header, dashboard, workspace (PDF/Office/Dev), toast, responsif.
|
|
3
|
+
* Semua nilai tema diambil dari tokens.css.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
html { -webkit-text-size-adjust: 100%; }
|
|
10
|
+
body {
|
|
11
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
12
|
+
background: var(--canvas);
|
|
13
|
+
color: var(--text);
|
|
14
|
+
min-height: 100vh;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
line-height: 1.5;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
}
|
|
19
|
+
.font-mono { font-family: 'JetBrains Mono', 'Cascadia Code', monospace; }
|
|
20
|
+
|
|
21
|
+
:focus-visible { outline: 2px solid var(--obsidian); outline-offset: 2px; }
|
|
22
|
+
|
|
23
|
+
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
24
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
25
|
+
::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 999px; }
|
|
26
|
+
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
|
|
27
|
+
::selection { background: var(--obsidian); color: #fff; }
|
|
28
|
+
|
|
29
|
+
.hidden { display: none !important; }
|
|
30
|
+
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
|
|
31
|
+
|
|
32
|
+
/* ============ HEADER ============ */
|
|
33
|
+
.app-header {
|
|
34
|
+
position: sticky; top: 0; z-index: 50;
|
|
35
|
+
background: rgba(255,255,255,0.82);
|
|
36
|
+
backdrop-filter: blur(12px);
|
|
37
|
+
-webkit-backdrop-filter: blur(12px);
|
|
38
|
+
border-bottom: 1px solid var(--border);
|
|
39
|
+
}
|
|
40
|
+
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
|
|
41
|
+
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; }
|
|
42
|
+
.brand-mark {
|
|
43
|
+
width: 24px; height: 24px; border-radius: 6px;
|
|
44
|
+
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
.brand-mark svg { width: 24px; height: 24px; display: block; }
|
|
47
|
+
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
|
|
48
|
+
.brand-divider { width: 1px; height: 12px; background: var(--border-2); margin: 0 2px; }
|
|
49
|
+
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--text-2); }
|
|
50
|
+
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
|
|
51
|
+
|
|
52
|
+
.header-actions { display: flex; align-items: center; gap: 8px; }
|
|
53
|
+
.search-wrap { position: relative; width: 224px; }
|
|
54
|
+
.search-wrap > svg {
|
|
55
|
+
position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
|
|
56
|
+
width: 14px; height: 14px; color: var(--muted); pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
.header-search {
|
|
59
|
+
width: 100%; padding: 6px 40px 6px 30px;
|
|
60
|
+
border: 1px solid var(--border); border-radius: 8px;
|
|
61
|
+
font-size: 12px; font-family: inherit; color: var(--text);
|
|
62
|
+
background: var(--subtle); transition: border-color 0.15s, background 0.15s;
|
|
63
|
+
}
|
|
64
|
+
.header-search::placeholder { color: var(--muted); }
|
|
65
|
+
.header-search:focus { outline: none; border-color: var(--obsidian); background: var(--surface); }
|
|
66
|
+
.kbd {
|
|
67
|
+
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
|
|
68
|
+
font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--muted);
|
|
69
|
+
border: 1px solid var(--border); background: var(--surface); padding: 1px 5px; border-radius: 5px;
|
|
70
|
+
}
|
|
71
|
+
.icon-btn {
|
|
72
|
+
width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
|
|
73
|
+
background: var(--surface); display: flex; align-items: center; justify-content: center;
|
|
74
|
+
cursor: pointer; color: var(--text-2); transition: background 0.15s, border-color 0.15s, color 0.15s;
|
|
75
|
+
}
|
|
76
|
+
.icon-btn:hover { background: var(--subtle); border-color: var(--muted); color: var(--text); }
|
|
77
|
+
.icon-btn svg { width: 16px; height: 16px; }
|
|
78
|
+
|
|
79
|
+
/* ============ DASHBOARD ============ */
|
|
80
|
+
.dash { max-width: 992px; margin: 0 auto; padding: 48px 32px 64px; }
|
|
81
|
+
|
|
82
|
+
.hero-row {
|
|
83
|
+
display: flex; align-items: flex-end; justify-content: space-between;
|
|
84
|
+
gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
|
|
85
|
+
}
|
|
86
|
+
.hero-copy { max-width: 440px; }
|
|
87
|
+
.hero-title { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); }
|
|
88
|
+
.hero-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
|
|
89
|
+
.hero-drop {
|
|
90
|
+
display: flex; align-items: center; gap: 10px;
|
|
91
|
+
border: 1px dashed #D4D4D8; background: var(--surface);
|
|
92
|
+
padding: 12px 20px; border-radius: 12px; cursor: pointer;
|
|
93
|
+
transition: border-color 0.15s, background 0.15s; flex-shrink: 0;
|
|
94
|
+
}
|
|
95
|
+
.hero-drop:hover { border-color: #A1A1AA; }
|
|
96
|
+
.hero-drop.drag-over { border-color: var(--obsidian); background: var(--subtle); }
|
|
97
|
+
.hero-drop svg { width: 16px; height: 16px; color: var(--muted); }
|
|
98
|
+
.hero-drop span { font-size: 12px; font-weight: 500; color: #3F3F46; }
|
|
99
|
+
|
|
100
|
+
.section { margin-bottom: 48px; }
|
|
101
|
+
.section-head {
|
|
102
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
103
|
+
border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 16px;
|
|
104
|
+
}
|
|
105
|
+
.section-title {
|
|
106
|
+
font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
|
|
107
|
+
text-transform: uppercase; color: var(--muted);
|
|
108
|
+
}
|
|
109
|
+
.section-count { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
|
|
110
|
+
|
|
111
|
+
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
|
|
112
|
+
|
|
113
|
+
.tool-card {
|
|
114
|
+
background: var(--surface); border: 1px solid rgba(0,0,0,0.08);
|
|
115
|
+
border-radius: 12px; padding: 20px; cursor: pointer;
|
|
116
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
117
|
+
display: flex; flex-direction: column; min-height: 132px;
|
|
118
|
+
}
|
|
119
|
+
.tool-card:hover { border-color: #A1A1AA; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
|
|
120
|
+
.tool-card-icon {
|
|
121
|
+
width: 32px; height: 32px; border-radius: 8px; background: var(--canvas);
|
|
122
|
+
border: 1px solid #F1F1F3; display: flex; align-items: center; justify-content: center;
|
|
123
|
+
color: #3F3F46; margin-bottom: 16px; transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
124
|
+
}
|
|
125
|
+
.tool-card-icon svg { width: 16px; height: 16px; stroke-width: 1.6; }
|
|
126
|
+
.tool-card:hover .tool-card-icon { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }
|
|
127
|
+
.tool-card h3 { font-size: 13px; font-weight: 500; color: var(--text); }
|
|
128
|
+
.tool-card p { font-size: 11px; color: var(--text-2); margin-top: 4px; line-height: 1.6; }
|
|
129
|
+
|
|
130
|
+
.dash-footer { text-align: center; padding: 32px 0 0; border-top: 1px solid var(--border); margin-top: 8px; }
|
|
131
|
+
.dash-footer p { font-size: 11px; color: var(--muted); }
|
|
132
|
+
|
|
133
|
+
/* ============ WORKSPACE ============ */
|
|
134
|
+
.workspace { display: none; }
|
|
135
|
+
.workspace.active { display: block; }
|
|
136
|
+
|
|
137
|
+
.ws-subheader {
|
|
138
|
+
position: sticky; top: 56px; z-index: 40;
|
|
139
|
+
background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
|
|
140
|
+
border-bottom: 1px solid var(--border);
|
|
141
|
+
padding: 0 32px; height: 56px;
|
|
142
|
+
display: flex; align-items: center; justify-content: space-between; gap: 16px;
|
|
143
|
+
}
|
|
144
|
+
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; min-width: 0; }
|
|
145
|
+
.breadcrumb button {
|
|
146
|
+
display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
|
|
147
|
+
cursor: pointer; color: var(--text-2); font-size: 12px; font-weight: 500; font-family: inherit;
|
|
148
|
+
transition: color 0.15s; flex-shrink: 0;
|
|
149
|
+
}
|
|
150
|
+
.breadcrumb button:hover { color: var(--text); }
|
|
151
|
+
.breadcrumb button svg { width: 14px; height: 14px; }
|
|
152
|
+
.breadcrumb .sep { color: var(--border-2); }
|
|
153
|
+
.breadcrumb .crumb-title { font-weight: 500; color: var(--text); white-space: nowrap; }
|
|
154
|
+
.breadcrumb .crumb-file {
|
|
155
|
+
color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px;
|
|
156
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.btn-primary {
|
|
160
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
161
|
+
padding: 8px 16px; border-radius: 8px; border: none;
|
|
162
|
+
background: var(--obsidian); color: #fff; font-size: 12px; font-weight: 500;
|
|
163
|
+
font-family: inherit; cursor: pointer; transition: background 0.15s; white-space: nowrap;
|
|
164
|
+
}
|
|
165
|
+
.btn-primary:hover { background: var(--obsidian-hover); }
|
|
166
|
+
.btn-primary:active { transform: scale(0.99); }
|
|
167
|
+
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
168
|
+
.btn-primary svg { width: 14px; height: 14px; }
|
|
169
|
+
|
|
170
|
+
.btn-outline {
|
|
171
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
172
|
+
padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-2);
|
|
173
|
+
background: var(--surface); color: #3F3F46; font-size: 12px; font-weight: 500;
|
|
174
|
+
font-family: inherit; cursor: pointer; transition: border-color 0.15s, color 0.15s;
|
|
175
|
+
}
|
|
176
|
+
.btn-outline:hover { border-color: var(--obsidian); color: var(--text); }
|
|
177
|
+
.btn-outline:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
178
|
+
.btn-outline svg { width: 14px; height: 14px; }
|
|
179
|
+
|
|
180
|
+
.btn-ghost {
|
|
181
|
+
background: none; border: none; cursor: pointer; color: var(--text-2);
|
|
182
|
+
font-size: 11px; font-family: inherit; text-decoration: underline;
|
|
183
|
+
text-underline-offset: 2px; transition: color 0.15s;
|
|
184
|
+
}
|
|
185
|
+
.btn-ghost:hover { color: var(--text); }
|
|
186
|
+
|
|
187
|
+
/* Split studio layout */
|
|
188
|
+
.studio-body { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 112px); }
|
|
189
|
+
@media (min-width: 900px) { .studio-body { grid-template-columns: 8fr 4fr; } }
|
|
190
|
+
|
|
191
|
+
.studio {
|
|
192
|
+
background: var(--subtle); padding: 40px; display: flex; flex-direction: column;
|
|
193
|
+
align-items: center; justify-content: space-between; gap: 24px;
|
|
194
|
+
border-right: 1px solid var(--border);
|
|
195
|
+
}
|
|
196
|
+
.page-nav {
|
|
197
|
+
display: flex; align-items: center; gap: 16px;
|
|
198
|
+
background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
|
|
199
|
+
border: 1px solid var(--border); border-radius: 999px;
|
|
200
|
+
padding: 4px 16px; font-size: 11px; color: var(--text-2);
|
|
201
|
+
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
|
|
202
|
+
}
|
|
203
|
+
.page-nav button { background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 13px; line-height: 1; padding: 2px; }
|
|
204
|
+
.page-nav button:hover { color: var(--text); }
|
|
205
|
+
.page-nav .divider { width: 1px; height: 12px; background: var(--border-2); }
|
|
206
|
+
.studio-stage {
|
|
207
|
+
flex: 1; width: 100%; display: flex; align-items: center; justify-content: center;
|
|
208
|
+
padding: 24px 0; min-height: 320px;
|
|
209
|
+
}
|
|
210
|
+
.studio-paper {
|
|
211
|
+
width: 100%; max-width: 440px; background: #fff;
|
|
212
|
+
box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
|
|
213
|
+
border-radius: 2px; min-height: 480px; display: flex; align-items: center; justify-content: center;
|
|
214
|
+
overflow: hidden; position: relative;
|
|
215
|
+
}
|
|
216
|
+
.studio-paper canvas { max-width: 100%; height: auto; display: block; }
|
|
217
|
+
.sign-stamp-item {
|
|
218
|
+
position: absolute; transform: translate(-50%, -50%);
|
|
219
|
+
pointer-events: auto; cursor: grab; user-select: none; touch-action: none;
|
|
220
|
+
outline: 1px dashed rgba(79,70,229,0); border-radius: 2px; transition: outline-color .12s;
|
|
221
|
+
}
|
|
222
|
+
.sign-stamp-item img { width: 100%; display: block; opacity: 0.92; pointer-events: none; -webkit-user-drag: none; }
|
|
223
|
+
.sign-stamp-item:hover, .sign-stamp-item.dragging { outline-color: rgba(79,70,229,0.55); }
|
|
224
|
+
.sign-stamp-item.dragging { cursor: grabbing; }
|
|
225
|
+
.sign-stamp-del {
|
|
226
|
+
position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
|
|
227
|
+
border: 1px solid #fff; background: #EF4444; color: #fff; font-size: 12px; line-height: 1;
|
|
228
|
+
display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
|
|
229
|
+
box-shadow: 0 1px 3px rgba(0,0,0,.25);
|
|
230
|
+
}
|
|
231
|
+
.sign-stamp-resize {
|
|
232
|
+
position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 3px;
|
|
233
|
+
background: #4F46E5; border: 1px solid #fff; cursor: nwse-resize; touch-action: none;
|
|
234
|
+
box-shadow: 0 1px 3px rgba(0,0,0,.2);
|
|
235
|
+
}
|
|
236
|
+
.studio-caption { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
|
|
237
|
+
.studio-empty { text-align: center; color: var(--muted); padding: 40px; }
|
|
238
|
+
.studio-empty svg { width: 32px; height: 32px; margin: 0 auto 10px; color: var(--border-2); }
|
|
239
|
+
.studio-empty .t { font-size: 13px; font-weight: 500; color: #52525B; }
|
|
240
|
+
.studio-empty .s { font-size: 11px; margin-top: 4px; }
|
|
241
|
+
|
|
242
|
+
.inspector {
|
|
243
|
+
background: var(--surface); padding: 24px; display: flex; flex-direction: column;
|
|
244
|
+
justify-content: space-between; gap: 24px;
|
|
245
|
+
}
|
|
246
|
+
.inspector-top { display: flex; flex-direction: column; gap: 24px; }
|
|
247
|
+
.inspector-label {
|
|
248
|
+
font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
|
|
249
|
+
text-transform: uppercase; color: var(--muted);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--subtle); padding: 4px; border-radius: 10px; }
|
|
253
|
+
.segmented button {
|
|
254
|
+
padding: 6px 10px; border-radius: 7px; border: none; background: none;
|
|
255
|
+
font-size: 12px; font-family: inherit; color: var(--text-2); cursor: pointer; font-weight: 500;
|
|
256
|
+
transition: all 0.15s;
|
|
257
|
+
}
|
|
258
|
+
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
|
|
259
|
+
|
|
260
|
+
.ink-dots { display: flex; align-items: center; gap: 10px; }
|
|
261
|
+
.ink-dot {
|
|
262
|
+
width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-2);
|
|
263
|
+
cursor: pointer; padding: 0; transition: box-shadow 0.15s;
|
|
264
|
+
}
|
|
265
|
+
.ink-dot.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--obsidian); }
|
|
266
|
+
|
|
267
|
+
.form-group { margin-bottom: 16px; }
|
|
268
|
+
.form-group:last-child { margin-bottom: 0; }
|
|
269
|
+
.form-label {
|
|
270
|
+
display: block; font-size: 12px; font-weight: 500; color: #52525B; margin-bottom: 6px;
|
|
271
|
+
}
|
|
272
|
+
.form-input {
|
|
273
|
+
width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-2);
|
|
274
|
+
background: var(--surface); font-size: 13px; font-family: inherit; color: var(--text);
|
|
275
|
+
transition: border-color 0.15s;
|
|
276
|
+
}
|
|
277
|
+
.form-input:focus { border-color: var(--obsidian); outline: none; }
|
|
278
|
+
.form-input.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
|
|
279
|
+
textarea.form-input { resize: vertical; min-height: 64px; line-height: 1.6; }
|
|
280
|
+
select.form-input { cursor: pointer; }
|
|
281
|
+
.form-hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
|
|
282
|
+
|
|
283
|
+
.draw-box { border: 1px solid var(--border-2); border-radius: 10px; background: var(--canvas); overflow: hidden; }
|
|
284
|
+
.draw-box canvas { width: 100%; display: block; cursor: crosshair; touch-action: none; }
|
|
285
|
+
|
|
286
|
+
.file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
|
|
287
|
+
.file-item {
|
|
288
|
+
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
289
|
+
padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
|
|
290
|
+
background: var(--surface); font-size: 12px;
|
|
291
|
+
}
|
|
292
|
+
.file-item-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
293
|
+
.file-item-name svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
|
|
294
|
+
.file-item-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
295
|
+
.file-item-size { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10px; flex-shrink: 0; }
|
|
296
|
+
.file-item-x { background: none; border: none; cursor: pointer; color: var(--muted); padding: 2px; display: flex; }
|
|
297
|
+
.file-item-x:hover { color: var(--danger); }
|
|
298
|
+
.file-item-x svg { width: 14px; height: 14px; }
|
|
299
|
+
|
|
300
|
+
.grab-handle { cursor: grab; color: var(--muted); display: flex; }
|
|
301
|
+
.grab-handle svg { width: 14px; height: 14px; }
|
|
302
|
+
|
|
303
|
+
.panel-note {
|
|
304
|
+
padding: 12px; border-radius: 8px; background: var(--canvas);
|
|
305
|
+
border: 1px solid var(--border); font-size: 11px; color: var(--text-2); line-height: 1.6;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* ============ RECEIPT (Kwitansi) ============ */
|
|
309
|
+
.receipt-body { display: grid; grid-template-columns: 1fr; }
|
|
310
|
+
@media (min-width: 900px) { .receipt-body { grid-template-columns: 5fr 7fr; } }
|
|
311
|
+
.receipt-form { background: var(--surface); padding: 32px; border-right: 1px solid var(--border); }
|
|
312
|
+
.receipt-preview-area {
|
|
313
|
+
background: var(--subtle); padding: 48px 32px; display: flex; align-items: flex-start; justify-content: center;
|
|
314
|
+
}
|
|
315
|
+
.receipt-paper {
|
|
316
|
+
width: 100%; max-width: 640px; background: #fff; border: 1px solid var(--border-2);
|
|
317
|
+
border-radius: 12px; padding: 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
|
|
318
|
+
}
|
|
319
|
+
.receipt-head {
|
|
320
|
+
display: flex; align-items: flex-start; justify-content: space-between;
|
|
321
|
+
border-bottom: 2px solid var(--obsidian); padding-bottom: 16px; margin-bottom: 24px;
|
|
322
|
+
}
|
|
323
|
+
.receipt-head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
|
|
324
|
+
.receipt-head .no { font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-2); margin-top: 2px; }
|
|
325
|
+
.receipt-badge {
|
|
326
|
+
font-size: 11px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
|
|
327
|
+
letter-spacing: 0.08em; padding: 4px 10px; border: 1px solid #D4D4D8; border-radius: 6px; color: #3F3F46;
|
|
328
|
+
}
|
|
329
|
+
.receipt-row {
|
|
330
|
+
display: grid; grid-template-columns: 4fr 8fr; gap: 12px; align-items: baseline;
|
|
331
|
+
padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #F4F4F5; font-size: 12px;
|
|
332
|
+
}
|
|
333
|
+
.receipt-row .k { color: var(--muted); }
|
|
334
|
+
.receipt-row .v { font-weight: 500; color: var(--text); }
|
|
335
|
+
.receipt-row .v.italic { font-style: italic; font-weight: 500; color: #3F3F46; }
|
|
336
|
+
.receipt-foot { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 24px; gap: 24px; }
|
|
337
|
+
.receipt-amount {
|
|
338
|
+
display: inline-block; padding: 10px 20px; border-radius: 10px;
|
|
339
|
+
background: var(--obsidian); color: #fff; font-family: 'JetBrains Mono', monospace;
|
|
340
|
+
font-size: 14px; font-weight: 500; white-space: nowrap;
|
|
341
|
+
}
|
|
342
|
+
.receipt-sign { text-align: right; font-size: 12px; }
|
|
343
|
+
.receipt-sign .date { color: var(--text-2); }
|
|
344
|
+
.receipt-sign .who { font-weight: 500; color: var(--text); border-top: 1px solid #D4D4D8; padding-top: 6px; margin-top: 40px; }
|
|
345
|
+
|
|
346
|
+
/* ============ GENERIC WORKSPACE PANEL ============ */
|
|
347
|
+
.ws-panel-wrap { max-width: 1024px; margin: 0 auto; padding: 32px; }
|
|
348
|
+
.ws-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
|
|
349
|
+
@media (min-width: 800px) { .ws-grid-2 { grid-template-columns: 1fr 1fr; } }
|
|
350
|
+
.panel {
|
|
351
|
+
background: var(--surface); border: 1px solid var(--border-2);
|
|
352
|
+
border-radius: 12px; padding: 24px;
|
|
353
|
+
}
|
|
354
|
+
.panel h3 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
|
|
355
|
+
.panel .sub { font-size: 11px; color: var(--text-2); margin-bottom: 16px; }
|
|
356
|
+
|
|
357
|
+
.checkerboard {
|
|
358
|
+
background-image:
|
|
359
|
+
linear-gradient(45deg, #E4E4E7 25%, transparent 25%),
|
|
360
|
+
linear-gradient(-45deg, #E4E4E7 25%, transparent 25%),
|
|
361
|
+
linear-gradient(45deg, transparent 75%, #E4E4E7 75%),
|
|
362
|
+
linear-gradient(-45deg, transparent 75%, #E4E4E7 75%);
|
|
363
|
+
background-size: 14px 14px;
|
|
364
|
+
background-position: 0 0, 0 7px, 7px -7px, -7px 0px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 8px; }
|
|
368
|
+
.stat-card { padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--canvas); text-align: center; }
|
|
369
|
+
.stat-value { font-size: 18px; font-weight: 500; font-family: 'JetBrains Mono', monospace; }
|
|
370
|
+
.stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
|
|
371
|
+
|
|
372
|
+
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
373
|
+
.chip {
|
|
374
|
+
padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-2);
|
|
375
|
+
background: var(--surface); font-size: 11px; font-family: inherit; color: var(--text-2);
|
|
376
|
+
cursor: pointer; transition: all 0.15s;
|
|
377
|
+
}
|
|
378
|
+
.chip:hover { border-color: var(--obsidian); color: var(--text); }
|
|
379
|
+
|
|
380
|
+
.radio-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
381
|
+
.radio-row label {
|
|
382
|
+
display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
|
|
383
|
+
border: 1px solid var(--border-2); background: var(--surface); font-size: 12px; cursor: pointer;
|
|
384
|
+
transition: all 0.15s;
|
|
385
|
+
}
|
|
386
|
+
.radio-row label:has(input:checked) { border-color: var(--obsidian); font-weight: 500; }
|
|
387
|
+
.radio-row input { accent-color: var(--obsidian); }
|
|
388
|
+
|
|
389
|
+
input[type="range"] { width: 100%; accent-color: var(--obsidian); height: 4px; cursor: pointer; }
|
|
390
|
+
|
|
391
|
+
.diff-added { background: #DCFCE7; color: #166534; padding: 1px 3px; border-radius: 3px; font-weight: 500; }
|
|
392
|
+
.diff-removed { background: #FEE2E2; color: #991B1B; padding: 1px 3px; border-radius: 3px; text-decoration: line-through; }
|
|
393
|
+
|
|
394
|
+
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
|
|
395
|
+
.thumb-card {
|
|
396
|
+
border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; background: var(--surface);
|
|
397
|
+
display: flex; flex-direction: column;
|
|
398
|
+
}
|
|
399
|
+
.thumb-card canvas { width: 100%; height: auto; display: block; background: #fff; }
|
|
400
|
+
.thumb-card .thumb-bar {
|
|
401
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
402
|
+
padding: 6px 8px; border-top: 1px solid var(--border); font-size: 10px;
|
|
403
|
+
font-family: 'JetBrains Mono', monospace; color: var(--muted);
|
|
404
|
+
}
|
|
405
|
+
.thumb-card .thumb-bar button { background: none; border: none; cursor: pointer; color: var(--muted); display: flex; padding: 2px; }
|
|
406
|
+
.thumb-card .thumb-bar button:hover { color: var(--text); }
|
|
407
|
+
.thumb-card .thumb-bar svg { width: 13px; height: 13px; }
|
|
408
|
+
.thumb-card { position: relative; }
|
|
409
|
+
.thumb-index {
|
|
410
|
+
position: absolute; top: 6px; left: 6px; z-index: 2;
|
|
411
|
+
min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px;
|
|
412
|
+
background: rgba(15,23,42,0.78); color: #fff; font-size: 10px; font-weight: 600;
|
|
413
|
+
display: flex; align-items: center; justify-content: center;
|
|
414
|
+
font-family: 'JetBrains Mono', monospace;
|
|
415
|
+
}
|
|
416
|
+
.thumb-empty {
|
|
417
|
+
display: flex; align-items: center; justify-content: center; gap: 8px;
|
|
418
|
+
padding: 40px 16px; color: var(--muted); font-size: 12px;
|
|
419
|
+
}
|
|
420
|
+
.merge-groups { display: flex; flex-direction: column; gap: 14px; width: 100%; }
|
|
421
|
+
.merge-group {
|
|
422
|
+
border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); padding: 10px;
|
|
423
|
+
transition: border-color .12s, box-shadow .12s, opacity .12s;
|
|
424
|
+
}
|
|
425
|
+
.merge-group.drag-over { border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
|
|
426
|
+
.merge-group.dragging { opacity: 0.7; }
|
|
427
|
+
.merge-group-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; user-select: none; }
|
|
428
|
+
.merge-group-badge {
|
|
429
|
+
font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
|
|
430
|
+
color: #4F46E5; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 6px; padding: 1px 7px;
|
|
431
|
+
}
|
|
432
|
+
.merge-group-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
|
|
433
|
+
.merge-group-meta { font-size: 10px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
|
|
434
|
+
.merge-group-actions { margin-left: auto; display: flex; gap: 4px; }
|
|
435
|
+
.merge-group-actions button {
|
|
436
|
+
border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
|
|
437
|
+
border-radius: 6px; min-width: 22px; height: 22px; font-size: 12px; cursor: pointer;
|
|
438
|
+
display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
|
|
439
|
+
}
|
|
440
|
+
.merge-group-actions button:hover:not(:disabled) { border-color: var(--muted); color: var(--text); }
|
|
441
|
+
.merge-group-actions button:disabled { opacity: 0.4; cursor: default; }
|
|
442
|
+
.spinner {
|
|
443
|
+
width: 14px; height: 14px; border-radius: 50%;
|
|
444
|
+
border: 2px solid var(--border); border-top-color: #4F46E5;
|
|
445
|
+
animation: spin 0.7s linear infinite; display: inline-block;
|
|
446
|
+
}
|
|
447
|
+
@keyframes spin { to { transform: rotate(360deg); } }
|
|
448
|
+
|
|
449
|
+
/* ============ TOAST ============ */
|
|
450
|
+
.toast {
|
|
451
|
+
position: fixed; bottom: 20px; right: 20px; z-index: 100;
|
|
452
|
+
padding: 10px 16px; border-radius: 10px; background: var(--obsidian); color: #fff;
|
|
453
|
+
font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 10px;
|
|
454
|
+
transform: translateY(80px); opacity: 0; transition: all 0.3s ease; pointer-events: none;
|
|
455
|
+
box-shadow: 0 8px 24px rgba(0,0,0,0.16); max-width: 360px;
|
|
456
|
+
}
|
|
457
|
+
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
|
|
458
|
+
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
|
|
459
|
+
.toast.error .toast-dot { background: #F59E0B; }
|
|
460
|
+
|
|
461
|
+
/* ============ RESPONSIVE ============ */
|
|
462
|
+
@media (max-width: 820px) {
|
|
463
|
+
.container, .dash, .ws-panel-wrap { padding-left: 20px; padding-right: 20px; }
|
|
464
|
+
.tool-grid { grid-template-columns: 1fr 1fr; }
|
|
465
|
+
.search-wrap { display: none; }
|
|
466
|
+
.ws-subheader { padding: 0 20px; }
|
|
467
|
+
.studio { padding: 24px; }
|
|
468
|
+
}
|
|
469
|
+
@media (max-width: 560px) {
|
|
470
|
+
.tool-grid { grid-template-columns: 1fr; }
|
|
471
|
+
.hero-row { flex-direction: column; align-items: stretch; }
|
|
472
|
+
.hero-drop { justify-content: center; }
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
@media print {
|
|
476
|
+
body { background: #fff; }
|
|
477
|
+
.app-header, .ws-subheader, .receipt-form, .dash { display: none !important; }
|
|
478
|
+
.workspace { display: block !important; }
|
|
479
|
+
.receipt-body { display: block !important; }
|
|
480
|
+
.receipt-preview-area { background: #fff; padding: 0; }
|
|
481
|
+
.receipt-paper { border: none; box-shadow: none; max-width: none; }
|
|
482
|
+
.toast { display: none !important; }
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* ==================================================
|
|
486
|
+
v2.0 UI REFRESH — Icon System, Hero, Filter Pills
|
|
487
|
+
================================================== */
|
|
488
|
+
.app-header .header-inner { height: 64px; }
|
|
489
|
+
.brand-mark {
|
|
490
|
+
background: linear-gradient(135deg, #E11D48 0%, #6366F1 100%);
|
|
491
|
+
box-shadow: 0 2px 8px rgba(99,102,241,0.22);
|
|
492
|
+
}
|
|
493
|
+
.status-pill {
|
|
494
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
495
|
+
font-size: 11px; font-weight: 500; color: #047857;
|
|
496
|
+
background: #ECFDF5; border: 1px solid #A7F3D0;
|
|
497
|
+
padding: 3px 9px; border-radius: 999px; white-space: nowrap;
|
|
498
|
+
}
|
|
499
|
+
.status-pill .status-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
|
|
500
|
+
.header-actions { gap: 10px; }
|
|
501
|
+
.btn-cta {
|
|
502
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
503
|
+
padding: 7px 14px; border-radius: 9px; border: none;
|
|
504
|
+
background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff;
|
|
505
|
+
font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer;
|
|
506
|
+
transition: transform .15s, box-shadow .15s; white-space: nowrap;
|
|
507
|
+
box-shadow: 0 2px 10px rgba(79,70,229,0.25);
|
|
508
|
+
}
|
|
509
|
+
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(79,70,229,0.32); }
|
|
510
|
+
.btn-cta svg { width: 14px; height: 14px; }
|
|
511
|
+
|
|
512
|
+
/* ---- Dashboard hero ---- */
|
|
513
|
+
.dash { max-width: 1180px; }
|
|
514
|
+
.hero-card {
|
|
515
|
+
display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center;
|
|
516
|
+
background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
|
|
517
|
+
padding: 30px; margin-bottom: 28px;
|
|
518
|
+
box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 14px 34px -20px rgba(15,23,42,0.2);
|
|
519
|
+
}
|
|
520
|
+
.hero-eyebrow {
|
|
521
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
522
|
+
font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
|
|
523
|
+
color: #6366F1; margin-bottom: 10px;
|
|
524
|
+
}
|
|
525
|
+
.hero-eyebrow::before { content: ''; width: 16px; height: 1.5px; background: #6366F1; }
|
|
526
|
+
.hero-card .hero-title { font-size: 27px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
|
|
527
|
+
.hero-card .hero-sub { font-size: 12.5px; margin-top: 9px; max-width: 420px; }
|
|
528
|
+
.trust-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
|
|
529
|
+
.trust-pill {
|
|
530
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
531
|
+
font-size: 10.5px; font-weight: 500; color: var(--text-2);
|
|
532
|
+
background: var(--subtle); border: 1px solid var(--border);
|
|
533
|
+
padding: 4px 9px; border-radius: 999px;
|
|
534
|
+
}
|
|
535
|
+
.trust-pill svg { width: 11px; height: 11px; color: #10B981; }
|
|
536
|
+
|
|
537
|
+
.hero-dropzone {
|
|
538
|
+
display: flex; flex-direction: column; align-items: center; gap: 10px;
|
|
539
|
+
border: 1.5px dashed #818CF8; background: #F8FAFF; border-radius: 16px;
|
|
540
|
+
padding: 26px 22px; text-align: center; cursor: pointer;
|
|
541
|
+
transition: border-color .18s, background .18s, transform .18s;
|
|
542
|
+
}
|
|
543
|
+
.hero-dropzone:hover, .hero-dropzone.drag-over { border-color: #4F46E5; background: #EEF2FF; }
|
|
544
|
+
.hero-dropzone.drag-over { transform: scale(1.005); }
|
|
545
|
+
.dropzone-glyph {
|
|
546
|
+
width: 46px; height: 46px; border-radius: 13px; background: #fff;
|
|
547
|
+
border: 1px solid #C7D2FE; display: flex; align-items: center; justify-content: center;
|
|
548
|
+
color: #4F46E5; box-shadow: 0 2px 8px rgba(79,70,229,0.12);
|
|
549
|
+
}
|
|
550
|
+
.dropzone-glyph svg { width: 22px; height: 22px; }
|
|
551
|
+
.dropzone-text { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
|
|
552
|
+
.dropzone-text span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
|
|
553
|
+
.format-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 2px; }
|
|
554
|
+
.format-chips span {
|
|
555
|
+
font-size: 9.5px; font-family: 'JetBrains Mono', monospace; font-weight: 500;
|
|
556
|
+
color: #4F46E5; background: #fff; border: 1px solid #C7D2FE;
|
|
557
|
+
padding: 2px 7px; border-radius: 5px;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* ---- Category filter pills ---- */
|
|
561
|
+
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
|
|
562
|
+
.filter-pill {
|
|
563
|
+
display: inline-flex; align-items: center; gap: 7px;
|
|
564
|
+
padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border);
|
|
565
|
+
background: var(--surface); color: var(--text-2);
|
|
566
|
+
font-size: 11.5px; font-weight: 500; font-family: inherit;
|
|
567
|
+
cursor: pointer; transition: border-color .15s, background .15s, color .15s;
|
|
568
|
+
}
|
|
569
|
+
.filter-pill:hover { border-color: #94A3B8; color: var(--text); }
|
|
570
|
+
.filter-pill.active { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }
|
|
571
|
+
.filter-pill .cnt { font-family: 'JetBrains Mono', monospace; font-size: 10px; opacity: 0.65; }
|
|
572
|
+
|
|
573
|
+
/* ---- Tool grid & cards ---- */
|
|
574
|
+
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
|
|
575
|
+
.tool-card {
|
|
576
|
+
position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
|
|
577
|
+
padding: 16px; min-height: 156px; width: 100%; text-align: left;
|
|
578
|
+
font-family: inherit; color: inherit;
|
|
579
|
+
background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
|
|
580
|
+
cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
|
|
581
|
+
}
|
|
582
|
+
.tool-card:hover { transform: translateY(-2px); border-color: var(--icon-accent, #94A3B8); box-shadow: 0 6px 20px rgba(15,23,42,0.06); }
|
|
583
|
+
.tool-card:focus-visible { outline: 2px solid var(--icon-accent, #4F46E5); outline-offset: 2px; }
|
|
584
|
+
.tool-card.featured { background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFF 100%); border-color: #C7D2FE; }
|
|
585
|
+
.tool-card-icon {
|
|
586
|
+
width: 48px; height: 48px; border-radius: 12px; flex: none;
|
|
587
|
+
display: flex; align-items: center; justify-content: center;
|
|
588
|
+
background: var(--icon-bg, #F1F5F9); border: 1.5px solid var(--icon-border, #E2E8F0);
|
|
589
|
+
color: var(--icon-accent, #475569); transition: transform .16s ease, border-color .16s ease;
|
|
590
|
+
}
|
|
591
|
+
.tool-card-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
|
|
592
|
+
.tool-card:hover .tool-card-icon {
|
|
593
|
+
background: var(--icon-bg, #F1F5F9); color: var(--icon-accent, #475569);
|
|
594
|
+
border-color: var(--icon-accent, #94A3B8); transform: scale(1.04);
|
|
595
|
+
}
|
|
596
|
+
.tool-card-body { display: flex; flex-direction: column; }
|
|
597
|
+
.tool-card-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
|
|
598
|
+
.tool-card h3 { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
|
|
599
|
+
.tool-card p { font-size: 11.5px; color: var(--text-2); margin-top: 4px; line-height: 1.55; }
|
|
600
|
+
.tool-badge {
|
|
601
|
+
font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
|
|
602
|
+
color: #4F46E5; background: #EEF2FF; border: 1px solid #C7D2FE;
|
|
603
|
+
padding: 1px 5px; border-radius: 5px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
@media (max-width: 1119px) { .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
|
|
607
|
+
@media (max-width: 819px) { .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .hero-card { grid-template-columns: 1fr; } }
|
|
608
|
+
@media (max-width: 539px) { .tool-grid { grid-template-columns: 1fr; } }
|
|
609
|
+
|
|
610
|
+
/* ==================================================
|
|
611
|
+
EDIT PDF STUDIO (v2.0)
|
|
612
|
+
================================================== */
|
|
613
|
+
#view-edit-pdf .edit-shell { height: calc(100vh - 64px); }
|
|
614
|
+
.edit-shell { display: flex; flex-direction: column; height: calc(100vh - 64px); background: var(--surface); overflow: hidden; }
|
|
615
|
+
|
|
616
|
+
.edit-header {
|
|
617
|
+
height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between;
|
|
618
|
+
gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface);
|
|
619
|
+
}
|
|
620
|
+
.edit-header-left, .edit-header-center, .edit-header-right { display: flex; align-items: center; gap: 7px; min-width: 0; }
|
|
621
|
+
.edit-header-left { flex: 1; }
|
|
622
|
+
.edit-header-center { flex: none; }
|
|
623
|
+
.edit-header-right { flex: 1; justify-content: flex-end; }
|
|
624
|
+
.edit-back {
|
|
625
|
+
display: inline-flex; align-items: center; gap: 4px; border: none; background: none;
|
|
626
|
+
cursor: pointer; color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 500;
|
|
627
|
+
padding: 6px 7px; border-radius: 7px; flex: none;
|
|
628
|
+
}
|
|
629
|
+
.edit-back:hover { background: var(--subtle); color: var(--text); }
|
|
630
|
+
.edit-back svg { width: 15px; height: 15px; }
|
|
631
|
+
.edit-file-name { font-size: 12.5px; font-weight: 600; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
632
|
+
.edit-file-meta { font-size: 10.5px; font-family: 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; }
|
|
633
|
+
.edit-file-meta .m + .m::before { content: '·'; margin: 0 5px; color: var(--border-2); }
|
|
634
|
+
.edit-ico-btn {
|
|
635
|
+
width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border);
|
|
636
|
+
background: var(--surface); color: var(--text-2); display: inline-flex; align-items: center;
|
|
637
|
+
justify-content: center; cursor: pointer; transition: background .12s, color .12s, border-color .12s; flex: none;
|
|
638
|
+
}
|
|
639
|
+
.edit-ico-btn:hover { background: var(--subtle); color: var(--text); border-color: var(--muted); }
|
|
640
|
+
.edit-ico-btn:disabled { opacity: 0.32; cursor: not-allowed; }
|
|
641
|
+
.edit-ico-btn svg { width: 15px; height: 15px; }
|
|
642
|
+
.edit-zoom-label { font-size: 11px; font-family: 'JetBrains Mono', monospace; min-width: 44px; text-align: center; color: var(--text-2); }
|
|
643
|
+
.edit-btn {
|
|
644
|
+
display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px;
|
|
645
|
+
border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
|
|
646
|
+
font-size: 11.5px; font-family: inherit; font-weight: 500; cursor: pointer;
|
|
647
|
+
transition: border-color .12s, color .12s, background .12s; white-space: nowrap;
|
|
648
|
+
}
|
|
649
|
+
.edit-btn:hover { border-color: var(--muted); color: var(--text); }
|
|
650
|
+
.edit-btn.primary { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }
|
|
651
|
+
.edit-btn.primary:hover { background: var(--obsidian-hover); border-color: var(--obsidian-hover); }
|
|
652
|
+
.edit-btn svg { width: 14px; height: 14px; }
|
|
653
|
+
|
|
654
|
+
.edit-toolbar {
|
|
655
|
+
height: 50px; flex: none; display: flex; align-items: center; gap: 4px;
|
|
656
|
+
padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; background: var(--surface);
|
|
657
|
+
}
|
|
658
|
+
.edit-tool {
|
|
659
|
+
display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
|
|
660
|
+
border: 1px solid transparent; background: none; color: var(--text-2);
|
|
661
|
+
font-size: 11.5px; font-family: inherit; font-weight: 500; cursor: pointer;
|
|
662
|
+
white-space: nowrap; transition: background .12s, color .12s, border-color .12s; flex: none;
|
|
663
|
+
}
|
|
664
|
+
.edit-tool svg { width: 15px; height: 15px; flex: none; }
|
|
665
|
+
.edit-tool:hover { background: var(--subtle); color: var(--text); }
|
|
666
|
+
.edit-tool.active { background: #EEF2FF; border-color: #C7D2FE; color: #4F46E5; }
|
|
667
|
+
.edit-tool.danger.active { background: #FFF1F2; border-color: #FECDD3; color: #E11D48; }
|
|
668
|
+
.edit-tool kbd {
|
|
669
|
+
font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--muted);
|
|
670
|
+
border: 1px solid var(--border); border-radius: 4px; padding: 0 3px; background: #fff;
|
|
671
|
+
}
|
|
672
|
+
.edit-tool.active kbd { background: #fff; color: #4F46E5; border-color: #C7D2FE; }
|
|
673
|
+
.edit-tool-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; flex: none; }
|
|
674
|
+
|
|
675
|
+
.edit-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 212px minmax(0,1fr) 316px; }
|
|
676
|
+
.edit-rail { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); min-height: 0; }
|
|
677
|
+
.edit-rail-head {
|
|
678
|
+
display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
|
|
679
|
+
font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
|
|
680
|
+
color: var(--muted); border-bottom: 1px solid var(--border); flex: none;
|
|
681
|
+
}
|
|
682
|
+
.edit-thumbs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
|
|
683
|
+
.edit-thumb {
|
|
684
|
+
position: relative; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
|
|
685
|
+
background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s; padding: 0; text-align: left;
|
|
686
|
+
}
|
|
687
|
+
.edit-thumb:hover { border-color: var(--muted); }
|
|
688
|
+
.edit-thumb.active { border-color: #4F46E5; box-shadow: 0 0 0 2px rgba(79,70,229,0.15); }
|
|
689
|
+
.edit-thumb canvas { width: 100%; display: block; }
|
|
690
|
+
.edit-thumb-label {
|
|
691
|
+
display: flex; align-items: center; justify-content: space-between; gap: 4px;
|
|
692
|
+
padding: 4px 7px; border-top: 1px solid var(--border);
|
|
693
|
+
font-size: 9.5px; font-family: 'JetBrains Mono', monospace; color: var(--text-2); background: var(--surface);
|
|
694
|
+
}
|
|
695
|
+
.edit-thumb-label .edit-count { color: #4F46E5; font-weight: 600; }
|
|
696
|
+
.edit-add-page {
|
|
697
|
+
margin: 12px; padding: 7px; border: 1px dashed var(--border-2); border-radius: 8px;
|
|
698
|
+
background: var(--canvas); color: var(--text-2); font-size: 11px; font-family: inherit; cursor: pointer;
|
|
699
|
+
}
|
|
700
|
+
.edit-add-page:hover { border-color: #4F46E5; color: #4F46E5; background: #EEF2FF; }
|
|
701
|
+
|
|
702
|
+
.edit-stage { position: relative; background: var(--studio); overflow: auto; min-width: 0; }
|
|
703
|
+
.edit-stage-scroll { min-width: 100%; min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 26px; box-sizing: border-box; }
|
|
704
|
+
.edit-stage-wrap { position: relative; flex: none; background: #fff; box-shadow: 0 10px 30px -12px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.06); }
|
|
705
|
+
.edit-stage-wrap canvas { display: block; }
|
|
706
|
+
#edit-annot-canvas { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
|
|
707
|
+
#edit-stage-wrap.tool-select #edit-annot-canvas { cursor: default; }
|
|
708
|
+
#edit-stage-wrap.tool-text #edit-annot-canvas { cursor: text; }
|
|
709
|
+
#edit-text-inline {
|
|
710
|
+
position: absolute; z-index: 5; border: 1.5px solid #4F46E5; border-radius: 3px;
|
|
711
|
+
background: rgba(255,255,255,0.96); outline: none; resize: none; overflow: hidden;
|
|
712
|
+
padding: 2px 3px; font-family: Helvetica, Arial, sans-serif; color: #1E1B4B;
|
|
713
|
+
line-height: 1.25; box-shadow: 0 2px 10px rgba(15,23,42,0.15);
|
|
714
|
+
}
|
|
715
|
+
.edit-pager {
|
|
716
|
+
position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
|
|
717
|
+
display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px;
|
|
718
|
+
background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border: 1px solid var(--border);
|
|
719
|
+
box-shadow: 0 4px 16px rgba(15,23,42,0.1); font-size: 11px; color: var(--text-2); z-index: 6;
|
|
720
|
+
}
|
|
721
|
+
.edit-pager button { border: none; background: none; cursor: pointer; color: var(--text-2); font-size: 15px; line-height: 1; padding: 4px 7px; border-radius: 6px; }
|
|
722
|
+
.edit-pager button:hover { background: var(--subtle); color: var(--text); }
|
|
723
|
+
.edit-pager button:disabled { opacity: 0.3; cursor: default; }
|
|
724
|
+
.edit-pager .mono { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
|
|
725
|
+
.edit-empty {
|
|
726
|
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
|
|
727
|
+
width: min(360px, 86%); text-align: center; padding: 40px 24px;
|
|
728
|
+
border: 1.5px dashed #94A3B8; border-radius: 16px; background: rgba(255,255,255,0.65); color: var(--text-2);
|
|
729
|
+
}
|
|
730
|
+
.edit-empty.drag-over { border-color: #4F46E5; background: #EEF2FF; }
|
|
731
|
+
.edit-empty svg { width: 38px; height: 38px; color: #94A3B8; margin-bottom: 10px; }
|
|
732
|
+
.edit-empty .t { font-size: 13px; font-weight: 600; color: var(--text); }
|
|
733
|
+
.edit-empty .s { font-size: 11.5px; margin-top: 4px; line-height: 1.6; }
|
|
734
|
+
|
|
735
|
+
.edit-inspector { border-left: 1px solid var(--border); background: var(--surface); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
|
|
736
|
+
.edit-props { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
|
|
737
|
+
.edit-sec-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
|
|
738
|
+
.edit-field { display: flex; flex-direction: column; gap: 5px; }
|
|
739
|
+
.edit-field label, .edit-field .lbl { font-size: 11.5px; font-weight: 500; color: var(--text-2); }
|
|
740
|
+
.edit-row { display: flex; align-items: center; gap: 8px; }
|
|
741
|
+
.edit-row .edit-field { flex: 1; }
|
|
742
|
+
.edit-input {
|
|
743
|
+
width: 100%; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--border-2);
|
|
744
|
+
background: var(--surface); font-family: inherit; font-size: 12px; color: var(--text);
|
|
745
|
+
}
|
|
746
|
+
.edit-input:focus { outline: none; border-color: #4F46E5; }
|
|
747
|
+
textarea.edit-input { resize: vertical; min-height: 58px; line-height: 1.5; }
|
|
748
|
+
.edit-seg { display: flex; gap: 3px; background: var(--subtle); padding: 3px; border-radius: 8px; }
|
|
749
|
+
.edit-seg button { flex: 1; padding: 5px 6px; border: none; border-radius: 6px; background: none; font-family: inherit; font-size: 11px; color: var(--text-2); cursor: pointer; }
|
|
750
|
+
.edit-seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,0.08); font-weight: 600; }
|
|
751
|
+
.edit-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
|
|
752
|
+
.edit-swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; padding: 0; }
|
|
753
|
+
.edit-swatch.active { border-color: var(--obsidian); box-shadow: 0 0 0 1px #fff inset; }
|
|
754
|
+
.edit-stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
|
|
755
|
+
.edit-stamp-btn { padding: 8px 6px; border-radius: 7px; border: 1px solid var(--border-2); background: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }
|
|
756
|
+
.edit-stamp-btn:hover { transform: translateY(-1px); filter: brightness(0.97); }
|
|
757
|
+
.edit-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: var(--text-2); line-height: 1.5; cursor: pointer; }
|
|
758
|
+
.edit-check input { margin-top: 2px; accent-color: #4F46E5; }
|
|
759
|
+
.edit-note { padding: 10px; border-radius: 8px; background: var(--canvas); border: 1px solid var(--border); font-size: 10.5px; color: var(--text-2); line-height: 1.6; }
|
|
760
|
+
.edit-warn { padding: 10px; border-radius: 8px; background: #FFF1F2; border: 1px solid #FECDD3; font-size: 10.5px; color: #BE123C; line-height: 1.6; }
|
|
761
|
+
.edit-layers { border-top: 1px solid var(--border); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
|
|
762
|
+
.edit-layer {
|
|
763
|
+
display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px;
|
|
764
|
+
border: 1px solid var(--border); background: var(--surface); font-size: 11px; color: var(--text-2); cursor: pointer;
|
|
765
|
+
}
|
|
766
|
+
.edit-layer:hover { border-color: var(--muted); }
|
|
767
|
+
.edit-layer.active { border-color: #4F46E5; background: #EEF2FF; color: #3730A3; }
|
|
768
|
+
.edit-layer .ly-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
769
|
+
.edit-layer .ly-btn { border: none; background: none; color: var(--muted); cursor: pointer; display: flex; padding: 1px; }
|
|
770
|
+
.edit-layer .ly-btn:hover { color: var(--danger); }
|
|
771
|
+
.edit-layer svg { width: 13px; height: 13px; }
|
|
772
|
+
.edit-export {
|
|
773
|
+
margin: 0 16px 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--border);
|
|
774
|
+
background: linear-gradient(180deg, #F8FAFF, #FFFFFF); position: sticky; bottom: 12px;
|
|
775
|
+
}
|
|
776
|
+
.edit-export .ttl { font-size: 11.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
|
|
777
|
+
|
|
778
|
+
@media (max-width: 1100px) { .edit-body { grid-template-columns: 170px minmax(0,1fr) 282px; } }
|
|
779
|
+
@media (max-width: 920px) {
|
|
780
|
+
.edit-body { grid-template-columns: minmax(0,1fr) 278px; }
|
|
781
|
+
.edit-rail { display: none; }
|
|
782
|
+
.edit-rail.is-open { display: flex; position: absolute; left: 0; top: 106px; bottom: 0; z-index: 20; width: 200px; box-shadow: 0 10px 30px rgba(15,23,42,0.15); }
|
|
783
|
+
}
|
|
784
|
+
@media (max-width: 700px) {
|
|
785
|
+
.edit-body { grid-template-columns: minmax(0,1fr); }
|
|
786
|
+
.edit-inspector { display: none; }
|
|
787
|
+
.edit-header-center { display: none; }
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/* ==================================================
|
|
791
|
+
DEVELOPER TOOLS (v2.1)
|
|
792
|
+
================================================== */
|
|
793
|
+
.dev-privacy-banner {
|
|
794
|
+
display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
|
|
795
|
+
padding: 9px 13px; border-radius: 10px; font-size: 11px; line-height: 1.5;
|
|
796
|
+
background: #F8FAFF; border: 1px solid #C7D2FE; color: #3730A3;
|
|
797
|
+
}
|
|
798
|
+
.dev-privacy-banner svg { width: 15px; height: 15px; flex: none; color: #4F46E5; }
|
|
799
|
+
|
|
800
|
+
.dev-shell { display: flex; flex-direction: column; height: calc(100vh - 64px); background: var(--canvas); overflow: hidden; }
|
|
801
|
+
.dev-header { flex: none; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
|
|
802
|
+
.dev-back { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 8px; cursor: pointer; flex: none; }
|
|
803
|
+
.dev-back:hover { border-color: var(--muted); color: var(--text); }
|
|
804
|
+
.dev-back svg { width: 15px; height: 15px; }
|
|
805
|
+
.dev-tool-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--icon-bg, #EEF2FF); border: 1px solid var(--icon-border, #C7D2FE); flex: none; }
|
|
806
|
+
.dev-tool-icon svg { width: 20px; height: 20px; }
|
|
807
|
+
.dev-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
|
|
808
|
+
.dev-crumb-sep { color: var(--border-2); font-size: 13px; flex: none; user-select: none; }
|
|
809
|
+
.dev-crumb-root { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
|
|
810
|
+
.dev-switch { position: relative; min-width: 0; }
|
|
811
|
+
.dev-switch-btn {
|
|
812
|
+
display: inline-flex; align-items: center; gap: 9px; min-height: 40px; max-width: 100%;
|
|
813
|
+
padding: 4px 10px 4px 6px; border-radius: 10px; border: 1px solid var(--border);
|
|
814
|
+
background: var(--surface); color: var(--text); font-family: inherit; cursor: pointer;
|
|
815
|
+
transition: border-color .12s, background .12s;
|
|
816
|
+
}
|
|
817
|
+
.dev-switch-btn:hover { border-color: var(--muted); background: var(--subtle); }
|
|
818
|
+
.dev-switch-btn:focus-visible { outline: none; border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,0.14); }
|
|
819
|
+
.dev-switch-btn .dev-tool-icon { width: 28px; height: 28px; border-radius: 8px; }
|
|
820
|
+
.dev-switch-btn .dev-tool-icon svg { width: 17px; height: 17px; }
|
|
821
|
+
.dev-switch-label { display: flex; flex-direction: column; min-width: 0; text-align: left; }
|
|
822
|
+
.dev-switch-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
823
|
+
.dev-switch-tag { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
|
|
824
|
+
.dev-switch-caret { width: 15px; height: 15px; color: var(--muted); flex: none; }
|
|
825
|
+
.dev-menu {
|
|
826
|
+
position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
|
|
827
|
+
width: min(360px, 88vw); max-height: min(70vh, 520px); overflow-y: auto;
|
|
828
|
+
background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
|
|
829
|
+
box-shadow: 0 12px 30px -8px rgba(15,23,42,0.22), 0 0 0 1px rgba(15,23,42,0.03); padding: 6px;
|
|
830
|
+
}
|
|
831
|
+
.dev-menu-group { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 9px 10px 4px; }
|
|
832
|
+
.dev-menu-item {
|
|
833
|
+
display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px;
|
|
834
|
+
border-radius: 9px; border: 1px solid transparent; background: none; cursor: pointer;
|
|
835
|
+
text-align: left; font-family: inherit; color: var(--text-2);
|
|
836
|
+
}
|
|
837
|
+
.dev-menu-item:hover, .dev-menu-item:focus-visible { background: var(--subtle); color: var(--text); outline: none; }
|
|
838
|
+
.dev-menu-item.active { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
|
|
839
|
+
.dev-menu-item .di-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--icon-bg, #F1F5F9); border: 1px solid var(--icon-border, #E2E8F0); flex: none; }
|
|
840
|
+
.dev-menu-item .di-ico svg { width: 17px; height: 17px; }
|
|
841
|
+
.dev-menu-item .di-label { font-size: 12px; font-weight: 500; line-height: 1.3; flex: 1; }
|
|
842
|
+
.dev-menu-item .di-tag { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); flex: none; }
|
|
843
|
+
.dev-menu-item.active .di-label { font-weight: 600; }
|
|
844
|
+
.dev-secure { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 10.5px; font-weight: 500; color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
|
|
845
|
+
.dev-secure::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
|
|
846
|
+
.dev-actions { display: flex; align-items: center; gap: 7px; flex: none; }
|
|
847
|
+
|
|
848
|
+
.dev-body { flex: 1; min-height: 0; overflow: auto; }
|
|
849
|
+
.dev-stage { width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px; min-width: 0; }
|
|
850
|
+
.dev-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15,23,42,0.03); }
|
|
851
|
+
.dev-panel h3 { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
|
|
852
|
+
.dev-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
|
853
|
+
.dev-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
|
|
854
|
+
.dev-field:last-child { margin-bottom: 0; }
|
|
855
|
+
.dev-label { font-size: 11px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
856
|
+
.dev-input, .dev-textarea, .dev-select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); font-family: inherit; font-size: 12px; color: var(--text); }
|
|
857
|
+
.dev-textarea { resize: vertical; min-height: 96px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.5; }
|
|
858
|
+
.dev-input:focus, .dev-textarea:focus, .dev-select:focus { outline: none; border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
|
|
859
|
+
.dev-mono { font-family: 'JetBrains Mono', monospace; }
|
|
860
|
+
.dev-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; transition: .12s; white-space: nowrap; }
|
|
861
|
+
.dev-btn:hover { border-color: var(--muted); color: var(--text); }
|
|
862
|
+
.dev-btn.primary { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }
|
|
863
|
+
.dev-btn.primary:hover { background: var(--obsidian-hover); border-color: var(--obsidian-hover); }
|
|
864
|
+
.dev-btn.sm { padding: 4px 8px; font-size: 10.5px; }
|
|
865
|
+
.dev-btn.block { width: 100%; justify-content: center; }
|
|
866
|
+
.dev-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
|
|
867
|
+
.dev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
868
|
+
.dev-chip { font-size: 10.5px; font-family: 'JetBrains Mono', monospace; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
|
|
869
|
+
.dev-chip:hover { border-color: #4F46E5; color: #4F46E5; }
|
|
870
|
+
.dev-out { background: #0F172A; color: #E2E8F0; border-radius: 10px; padding: 12px 14px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
|
|
871
|
+
.dev-out.light { background: var(--canvas); color: var(--text); border: 1px solid var(--border); }
|
|
872
|
+
.dev-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
|
|
873
|
+
.dev-badge.ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
|
|
874
|
+
.dev-badge.bad { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }
|
|
875
|
+
.dev-badge.warn { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
|
|
876
|
+
.dev-badge.info { background: #EEF2FF; color: #4F46E5; border: 1px solid #C7D2FE; }
|
|
877
|
+
.dev-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 11.5px; }
|
|
878
|
+
.dev-kv .k { color: var(--muted); font-weight: 500; }
|
|
879
|
+
.dev-kv .v { font-family: 'JetBrains Mono', monospace; color: var(--text); word-break: break-all; }
|
|
880
|
+
.dev-table { width: 100%; border-collapse: collapse; font-size: 11px; }
|
|
881
|
+
.dev-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
|
|
882
|
+
.dev-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; color: var(--text); word-break: break-all; }
|
|
883
|
+
.dev-table tr:last-child td { border-bottom: none; }
|
|
884
|
+
.dev-mark { background: #FDE047; color: #713F12; border-radius: 3px; padding: 0 1px; }
|
|
885
|
+
.dev-mark.alt { background: #BFDBFE; color: #1E3A8A; }
|
|
886
|
+
.dev-pre { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
|
|
887
|
+
.dev-empty { color: var(--muted); font-size: 11.5px; padding: 10px 0; text-align: center; }
|
|
888
|
+
.dev-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
|
|
889
|
+
.dev-tab { border: none; background: none; padding: 7px 12px; font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
|
|
890
|
+
.dev-tab.active { color: #4F46E5; border-bottom-color: #4F46E5; }
|
|
891
|
+
.dev-swatches2 { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
892
|
+
.dev-swatch2 { width: 56px; height: 52px; border-radius: 10px; border: 1px solid rgba(15,23,42,.08); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; font-size: 8px; font-family: 'JetBrains Mono', monospace; padding-bottom: 3px; }
|
|
893
|
+
.dev-hint { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
|
|
894
|
+
.dev-err { background: #FFF1F2; border: 1px solid #FECDD3; color: #BE123C; border-radius: 8px; padding: 9px 12px; font-size: 11px; font-family: 'JetBrains Mono', monospace; white-space: pre-wrap; }
|
|
895
|
+
.dev-color-big { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border-2); overflow: hidden; flex: none; }
|
|
896
|
+
.dev-color-big input[type=color] { width: 140%; height: 140%; border: none; padding: 0; margin: -20%; cursor: pointer; }
|
|
897
|
+
.dev-copy1 { border: none; background: none; cursor: pointer; color: var(--muted); padding: 2px; display: inline-flex; vertical-align: middle; }
|
|
898
|
+
.dev-copy1:hover { color: #4F46E5; }
|
|
899
|
+
.dev-copy1 svg { width: 13px; height: 13px; }
|
|
900
|
+
.dev-list-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; margin-bottom: 5px; background: var(--surface); }
|
|
901
|
+
.dev-list-row .txt { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; word-break: break-all; }
|
|
902
|
+
.dev-inline-out { width: 100%; border: none; background: none; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text); resize: none; outline: none; }
|
|
903
|
+
@media (max-width: 900px) {
|
|
904
|
+
.dev-grid2 { grid-template-columns: 1fr; }
|
|
905
|
+
.dev-secure { display: none; }
|
|
906
|
+
}
|
|
907
|
+
@media (max-width: 680px) {
|
|
908
|
+
.dev-header { flex-wrap: wrap; }
|
|
909
|
+
.dev-crumbs { flex: 1 1 100%; order: 1; }
|
|
910
|
+
.dev-actions { order: 3; margin-left: auto; }
|
|
911
|
+
.dev-crumb-root, .dev-crumb-sep { display: none; }
|
|
912
|
+
.dev-switch { flex: 1; }
|
|
913
|
+
.dev-switch-btn { width: 100%; }
|
|
914
|
+
.dev-menu { width: min(360px, 92vw); }
|
|
915
|
+
}
|