img-upload-kit 0.0.0-stage → 2.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.
Files changed (112) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/LICENSE +21 -0
  3. package/MIGRATION.md +192 -0
  4. package/README.md +242 -2
  5. package/dist/bin.js +1186 -0
  6. package/dist/bin.js.map +1 -0
  7. package/dist/blur.cjs +41 -0
  8. package/dist/blur.cjs.map +1 -0
  9. package/dist/blur.d.cts +17 -0
  10. package/dist/blur.d.ts +17 -0
  11. package/dist/blur.js +41 -0
  12. package/dist/blur.js.map +1 -0
  13. package/dist/blurDataUtils-DveBRtqE.d.cts +43 -0
  14. package/dist/blurDataUtils-yx9Q6HlU.d.ts +43 -0
  15. package/dist/blurService-D5TpMNji.d.ts +83 -0
  16. package/dist/blurService-DacwylJx.d.cts +83 -0
  17. package/dist/chunk-2OVNXHTN.cjs +514 -0
  18. package/dist/chunk-2OVNXHTN.cjs.map +1 -0
  19. package/dist/chunk-3ICG2SLL.cjs +135 -0
  20. package/dist/chunk-3ICG2SLL.cjs.map +1 -0
  21. package/dist/chunk-4ASFG3KB.js +514 -0
  22. package/dist/chunk-4ASFG3KB.js.map +1 -0
  23. package/dist/chunk-AI3JJLSA.js +2370 -0
  24. package/dist/chunk-AI3JJLSA.js.map +1 -0
  25. package/dist/chunk-CV23O4YU.js +145 -0
  26. package/dist/chunk-CV23O4YU.js.map +1 -0
  27. package/dist/chunk-G7LLSKBV.js +158 -0
  28. package/dist/chunk-G7LLSKBV.js.map +1 -0
  29. package/dist/chunk-IB3TEDLR.js +294 -0
  30. package/dist/chunk-IB3TEDLR.js.map +1 -0
  31. package/dist/chunk-KJVYWKIG.cjs +158 -0
  32. package/dist/chunk-KJVYWKIG.cjs.map +1 -0
  33. package/dist/chunk-NEDBIIE3.cjs +226 -0
  34. package/dist/chunk-NEDBIIE3.cjs.map +1 -0
  35. package/dist/chunk-QHU7FUO4.cjs +37 -0
  36. package/dist/chunk-QHU7FUO4.cjs.map +1 -0
  37. package/dist/chunk-QQHZJKNA.js +135 -0
  38. package/dist/chunk-QQHZJKNA.js.map +1 -0
  39. package/dist/chunk-S2IFAWJK.js +37 -0
  40. package/dist/chunk-S2IFAWJK.js.map +1 -0
  41. package/dist/chunk-TT5C7K3Q.js +226 -0
  42. package/dist/chunk-TT5C7K3Q.js.map +1 -0
  43. package/dist/chunk-U2TWTEBY.cjs +2370 -0
  44. package/dist/chunk-U2TWTEBY.cjs.map +1 -0
  45. package/dist/chunk-WISG74VL.cjs +294 -0
  46. package/dist/chunk-WISG74VL.cjs.map +1 -0
  47. package/dist/chunk-YRXXQUDE.cjs +145 -0
  48. package/dist/chunk-YRXXQUDE.cjs.map +1 -0
  49. package/dist/cli.cjs +1241 -0
  50. package/dist/cli.cjs.map +1 -0
  51. package/dist/cli.d.cts +99 -0
  52. package/dist/cli.d.ts +99 -0
  53. package/dist/cli.js +1194 -0
  54. package/dist/cli.js.map +1 -0
  55. package/dist/headless.cjs +27 -0
  56. package/dist/headless.cjs.map +1 -0
  57. package/dist/headless.d.cts +4 -0
  58. package/dist/headless.d.ts +4 -0
  59. package/dist/headless.js +27 -0
  60. package/dist/headless.js.map +1 -0
  61. package/dist/index-BIdnqtW8.d.ts +234 -0
  62. package/dist/index-Brk_uHs6.d.cts +234 -0
  63. package/dist/index-CPMlaQsC.d.ts +635 -0
  64. package/dist/index-DHINe-rA.d.cts +635 -0
  65. package/dist/index.cjs +65 -0
  66. package/dist/index.cjs.map +1 -0
  67. package/dist/index.d.cts +43 -0
  68. package/dist/index.d.ts +43 -0
  69. package/dist/index.js +65 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/memoryAdapter-Ck0ccZbF.d.cts +25 -0
  72. package/dist/memoryAdapter-DxEKaG0b.d.ts +25 -0
  73. package/dist/placeholders-C4ftwaII.d.ts +5 -0
  74. package/dist/placeholders-x_3rt65M.d.cts +5 -0
  75. package/dist/react.cjs +3779 -0
  76. package/dist/react.cjs.map +1 -0
  77. package/dist/react.d.cts +476 -0
  78. package/dist/react.d.ts +476 -0
  79. package/dist/react.js +3779 -0
  80. package/dist/react.js.map +1 -0
  81. package/dist/server-handler.cjs +14 -0
  82. package/dist/server-handler.cjs.map +1 -0
  83. package/dist/server-handler.d.cts +3 -0
  84. package/dist/server-handler.d.ts +3 -0
  85. package/dist/server-handler.js +14 -0
  86. package/dist/server-handler.js.map +1 -0
  87. package/dist/server.cjs +1801 -0
  88. package/dist/server.cjs.map +1 -0
  89. package/dist/server.d.cts +142 -0
  90. package/dist/server.d.ts +142 -0
  91. package/dist/server.js +1801 -0
  92. package/dist/server.js.map +1 -0
  93. package/dist/storage.cjs +447 -0
  94. package/dist/storage.cjs.map +1 -0
  95. package/dist/storage.d.cts +163 -0
  96. package/dist/storage.d.ts +163 -0
  97. package/dist/storage.js +447 -0
  98. package/dist/storage.js.map +1 -0
  99. package/dist/styles/animated-image.css +112 -0
  100. package/dist/styles/dropzone-and-tiles.css +247 -0
  101. package/dist/styles/modals-and-dock.css +248 -0
  102. package/dist/styles/primitives.css +197 -0
  103. package/dist/styles/quality-and-inputs.css +184 -0
  104. package/dist/styles/tokens.css +123 -0
  105. package/dist/styles.css +1122 -0
  106. package/dist/types-BrP-o9nd.d.cts +85 -0
  107. package/dist/types-sZ3KoFQY.d.ts +85 -0
  108. package/dist/types-yShGNQnW.d.cts +61 -0
  109. package/dist/types-yShGNQnW.d.ts +61 -0
  110. package/dist/upload-C5Trd6Dh.d.cts +154 -0
  111. package/dist/upload-C5Trd6Dh.d.ts +154 -0
  112. package/package.json +198 -4
@@ -0,0 +1,1122 @@
1
+ /* image-upload-kit — bundled modular styles */
2
+ /* image-upload-kit — Layer 1: Design Tokens & Base Reset */
3
+
4
+ :root,
5
+ .iuk-root {
6
+ --iuk-bg: #ffffff;
7
+ --iuk-surface: #f8fafc;
8
+ --iuk-surface-hover: #f1f5f9;
9
+ --iuk-border: #e2e8f0;
10
+ --iuk-border-strong: #cbd5e1;
11
+ --iuk-text: #0f172a;
12
+ --iuk-text-muted: #64748b;
13
+ --iuk-primary: #2563eb;
14
+ --iuk-primary-hover: #1d4ed8;
15
+ --iuk-primary-soft: rgba(37, 99, 235, 0.1);
16
+ --iuk-danger: #dc2626;
17
+ --iuk-danger-soft: rgba(220, 38, 38, 0.1);
18
+ --iuk-success: #16a34a;
19
+ --iuk-success-soft: rgba(22, 163, 74, 0.1);
20
+ --iuk-warning: #d97706;
21
+ --iuk-warning-soft: rgba(217, 119, 6, 0.12);
22
+ --iuk-info: #0284c7;
23
+ --iuk-info-soft: rgba(2, 132, 199, 0.1);
24
+ --iuk-placeholder-bg: #f1f5f9;
25
+ --iuk-radius-sm: 6px;
26
+ --iuk-radius-md: 10px;
27
+ --iuk-radius-lg: 14px;
28
+ --iuk-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
29
+ --iuk-shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.22), 0 8px 16px -8px rgba(15, 23, 42, 0.12);
30
+ --iuk-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
31
+ }
32
+
33
+ @media (prefers-color-scheme: dark) {
34
+ :root:not([data-theme="light"]):not(.light),
35
+ :root:not([data-theme="light"]):not(.light) .iuk-root {
36
+ --iuk-bg: #0f172a;
37
+ --iuk-surface: #1e293b;
38
+ --iuk-surface-hover: #283548;
39
+ --iuk-border: #334155;
40
+ --iuk-border-strong: #475569;
41
+ --iuk-text: #f8fafc;
42
+ --iuk-text-muted: #94a3b8;
43
+ --iuk-primary: #3b82f6;
44
+ --iuk-primary-hover: #60a5fa;
45
+ --iuk-primary-soft: rgba(59, 130, 246, 0.18);
46
+ --iuk-danger: #ef4444;
47
+ --iuk-danger-soft: rgba(239, 68, 68, 0.18);
48
+ --iuk-success: #22c55e;
49
+ --iuk-success-soft: rgba(34, 197, 94, 0.18);
50
+ --iuk-warning: #f59e0b;
51
+ --iuk-warning-soft: rgba(245, 158, 11, 0.18);
52
+ --iuk-info: #38bdf8;
53
+ --iuk-info-soft: rgba(56, 189, 248, 0.18);
54
+ --iuk-placeholder-bg: #1e293b;
55
+ --iuk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
56
+ --iuk-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
57
+ }
58
+ }
59
+
60
+ [data-theme="dark"],
61
+ [data-theme="dark"] .iuk-root,
62
+ .dark,
63
+ .dark .iuk-root {
64
+ --iuk-bg: #0f172a;
65
+ --iuk-surface: #1e293b;
66
+ --iuk-surface-hover: #283548;
67
+ --iuk-border: #334155;
68
+ --iuk-border-strong: #475569;
69
+ --iuk-text: #f8fafc;
70
+ --iuk-text-muted: #94a3b8;
71
+ --iuk-primary: #3b82f6;
72
+ --iuk-primary-hover: #60a5fa;
73
+ --iuk-primary-soft: rgba(59, 130, 246, 0.18);
74
+ --iuk-danger: #ef4444;
75
+ --iuk-danger-soft: rgba(239, 68, 68, 0.18);
76
+ --iuk-success: #22c55e;
77
+ --iuk-success-soft: rgba(34, 197, 94, 0.18);
78
+ --iuk-warning: #f59e0b;
79
+ --iuk-warning-soft: rgba(245, 158, 11, 0.18);
80
+ --iuk-info: #38bdf8;
81
+ --iuk-info-soft: rgba(56, 189, 248, 0.18);
82
+ --iuk-placeholder-bg: #1e293b;
83
+ --iuk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
84
+ --iuk-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
85
+ }
86
+
87
+ .iuk-root, .iuk-single, .iuk-multi, .iuk-modal-backdrop, .iuk-progress-dock, .iuk-minimized-dock {
88
+ box-sizing: border-box;
89
+ font-family: var(--iuk-font);
90
+ color: var(--iuk-text);
91
+ }
92
+
93
+ .iuk-root *, .iuk-root *::before, .iuk-root *::after, .iuk-modal-backdrop *, .iuk-progress-dock * {
94
+ box-sizing: border-box;
95
+ }
96
+
97
+ .iuk-hidden-input { display: none !important; }
98
+
99
+ @keyframes iuk-spin { to { transform: rotate(360deg); } }
100
+
101
+ .iuk-spin { animation: iuk-spin 0.85s linear infinite; flex-shrink: 0; }
102
+
103
+ .iuk-spinner {
104
+ width: 30px;
105
+ height: 30px;
106
+ border-radius: 9999px;
107
+ border: 2.5px solid var(--iuk-border);
108
+ border-top-color: var(--iuk-primary);
109
+ animation: iuk-spin 0.8s linear infinite;
110
+ }
111
+
112
+ @media (prefers-reduced-motion: reduce) {
113
+ .iuk-spin,
114
+ .iuk-spinner,
115
+ .iuk-root *,
116
+ .iuk-single *,
117
+ .iuk-multi *,
118
+ .iuk-modal-backdrop *,
119
+ .iuk-progress-dock * {
120
+ animation-duration: 0.01ms !important;
121
+ animation-iteration-count: 1 !important;
122
+ transition-duration: 0.01ms !important;
123
+ }
124
+ }
125
+
126
+
127
+ /* image-upload-kit — Layer 2: UI Primitives */
128
+
129
+ .iuk-label {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ gap: 5px;
133
+ font-size: 0.875rem;
134
+ font-weight: 600;
135
+ line-height: 1.4;
136
+ color: var(--iuk-text);
137
+ }
138
+
139
+ .iuk-required { color: var(--iuk-danger); font-weight: 700; }
140
+ .iuk-helper-text { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--iuk-text-muted); }
141
+ .iuk-helper-text--error { color: var(--iuk-danger); font-weight: 500; }
142
+
143
+ /* Buttons */
144
+ .iuk-btn {
145
+ display: inline-flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ gap: 7px;
149
+ padding: 8px 14px;
150
+ border-radius: var(--iuk-radius-sm);
151
+ border: 1px solid transparent;
152
+ font-family: inherit;
153
+ font-size: 0.8125rem;
154
+ font-weight: 500;
155
+ line-height: 1.25;
156
+ cursor: pointer;
157
+ user-select: none;
158
+ white-space: nowrap;
159
+ text-decoration: none;
160
+ transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
161
+ }
162
+
163
+ .iuk-btn:focus-visible,
164
+ .iuk-icon-btn:focus-visible,
165
+ .iuk-save-button:focus-visible,
166
+ .iuk-link-btn:focus-visible {
167
+ outline: 2px solid var(--iuk-primary);
168
+ outline-offset: 2px;
169
+ }
170
+
171
+ .iuk-btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
172
+
173
+ .iuk-btn code {
174
+ padding: 1px 5px;
175
+ border-radius: 4px;
176
+ background: var(--iuk-surface);
177
+ border: 1px solid var(--iuk-border);
178
+ font-size: 0.75rem;
179
+ color: var(--iuk-text-muted);
180
+ }
181
+
182
+ .iuk-btn--primary { background: var(--iuk-primary); color: #ffffff; border-color: var(--iuk-primary); box-shadow: var(--iuk-shadow-sm); }
183
+ .iuk-btn--primary:hover:not(:disabled) { background: var(--iuk-primary-hover); border-color: var(--iuk-primary-hover); }
184
+
185
+ .iuk-btn--secondary { background: var(--iuk-bg); color: var(--iuk-text); border-color: var(--iuk-border); box-shadow: var(--iuk-shadow-sm); }
186
+ .iuk-btn--secondary:hover:not(:disabled) { background: var(--iuk-surface-hover); border-color: var(--iuk-border-strong); }
187
+
188
+ .iuk-btn--danger { background: var(--iuk-danger-soft); color: var(--iuk-danger); border-color: color-mix(in srgb, var(--iuk-danger) 28%, transparent); }
189
+ .iuk-btn--danger:hover:not(:disabled) { background: var(--iuk-danger); color: #ffffff; border-color: var(--iuk-danger); }
190
+
191
+ .iuk-btn--active { background: var(--iuk-primary-soft); color: var(--iuk-primary); border-color: var(--iuk-primary); }
192
+ .iuk-btn--sm { padding: 5px 10px; font-size: 0.75rem; gap: 5px; }
193
+
194
+ .iuk-link-btn {
195
+ padding: 0;
196
+ border: 0;
197
+ background: none;
198
+ color: inherit;
199
+ font: inherit;
200
+ font-weight: 600;
201
+ text-decoration: underline;
202
+ text-underline-offset: 2px;
203
+ cursor: pointer;
204
+ }
205
+
206
+ .iuk-link-btn:hover { opacity: 0.8; }
207
+
208
+ /* Icon Buttons */
209
+ .iuk-icon-btn {
210
+ display: inline-flex;
211
+ align-items: center;
212
+ justify-content: center;
213
+ width: 32px;
214
+ height: 32px;
215
+ padding: 0;
216
+ border-radius: var(--iuk-radius-sm);
217
+ border: 1px solid transparent;
218
+ background: transparent;
219
+ color: var(--iuk-text-muted);
220
+ cursor: pointer;
221
+ flex-shrink: 0;
222
+ transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
223
+ }
224
+
225
+ .iuk-icon-btn:hover { background: var(--iuk-surface-hover); color: var(--iuk-text); }
226
+
227
+ .iuk-icon-btn--floating {
228
+ width: 34px;
229
+ height: 34px;
230
+ border-radius: 9999px;
231
+ background: var(--iuk-bg);
232
+ color: var(--iuk-text);
233
+ border-color: var(--iuk-border);
234
+ box-shadow: var(--iuk-shadow-sm);
235
+ }
236
+
237
+ /* Save Button */
238
+ .iuk-save-button {
239
+ display: inline-flex;
240
+ align-items: center;
241
+ justify-content: center;
242
+ gap: 8px;
243
+ padding: 9px 18px;
244
+ border-radius: var(--iuk-radius-sm);
245
+ border: 1px solid var(--iuk-primary);
246
+ background: var(--iuk-primary);
247
+ color: #ffffff;
248
+ font-family: inherit;
249
+ font-size: 0.875rem;
250
+ font-weight: 600;
251
+ line-height: 1.25;
252
+ cursor: pointer;
253
+ box-shadow: var(--iuk-shadow-sm);
254
+ transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
255
+ }
256
+
257
+ .iuk-save-button:hover:not(:disabled) { background: var(--iuk-primary-hover); border-color: var(--iuk-primary-hover); }
258
+ .iuk-save-button:disabled { opacity: 0.5; cursor: not-allowed; }
259
+ .iuk-save-button__icon { display: inline-flex; align-items: center; flex-shrink: 0; }
260
+
261
+ /* Badges */
262
+ .iuk-badge {
263
+ display: inline-flex;
264
+ align-items: center;
265
+ gap: 5px;
266
+ padding: 2px 8px;
267
+ border-radius: 9999px;
268
+ border: 1px solid var(--iuk-border);
269
+ background: var(--iuk-surface);
270
+ color: var(--iuk-text-muted);
271
+ font-size: 0.75rem;
272
+ font-weight: 600;
273
+ line-height: 1.35;
274
+ white-space: nowrap;
275
+ }
276
+
277
+ .iuk-badge--accent { background: var(--iuk-primary-soft); color: var(--iuk-primary); border-color: color-mix(in srgb, var(--iuk-primary) 28%, transparent); }
278
+ .iuk-badge--warning { background: var(--iuk-warning-soft); color: var(--iuk-warning); border-color: color-mix(in srgb, var(--iuk-warning) 30%, transparent); }
279
+
280
+ /* Alerts */
281
+ .iuk-alert {
282
+ display: flex;
283
+ align-items: center;
284
+ gap: 8px;
285
+ padding: 10px 12px;
286
+ border-radius: var(--iuk-radius-sm);
287
+ border: 1px solid var(--iuk-border);
288
+ font-size: 0.8125rem;
289
+ line-height: 1.45;
290
+ }
291
+
292
+ .iuk-alert__row { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
293
+ .iuk-alert--info { background: var(--iuk-info-soft); color: var(--iuk-info); border-color: color-mix(in srgb, var(--iuk-info) 28%, transparent); }
294
+ .iuk-alert--success { background: var(--iuk-success-soft); color: var(--iuk-success); border-color: color-mix(in srgb, var(--iuk-success) 28%, transparent); }
295
+ .iuk-alert--warning { background: var(--iuk-warning-soft); color: var(--iuk-warning); border-color: color-mix(in srgb, var(--iuk-warning) 30%, transparent); }
296
+ .iuk-alert--error { background: var(--iuk-danger-soft); color: var(--iuk-danger); border-color: color-mix(in srgb, var(--iuk-danger) 28%, transparent); }
297
+
298
+ /* Commit Bar & Progress Bar */
299
+ .iuk-commit-bar {
300
+ display: flex;
301
+ align-items: center;
302
+ justify-content: flex-end;
303
+ flex-wrap: wrap;
304
+ gap: 10px;
305
+ padding-top: 12px;
306
+ margin-top: 4px;
307
+ border-top: 1px solid var(--iuk-border);
308
+ }
309
+
310
+ .iuk-progress-bar {
311
+ width: 100%;
312
+ height: 5px;
313
+ border-radius: 9999px;
314
+ background: rgba(148, 163, 184, 0.32);
315
+ overflow: hidden;
316
+ }
317
+
318
+ .iuk-progress-bar__fill {
319
+ height: 100%;
320
+ border-radius: inherit;
321
+ background: var(--iuk-primary);
322
+ transition: width 0.2s ease-out;
323
+ }
324
+
325
+
326
+ /* image-upload-kit — Layer 3: BlurImage, QualitySelector & AltTextInput */
327
+
328
+ /* BlurImage */
329
+ .iuk-blur-image-wrap {
330
+ position: relative;
331
+ display: block;
332
+ width: 100%;
333
+ height: 100%;
334
+ overflow: hidden;
335
+ }
336
+
337
+ .iuk-blur-image-backdrop {
338
+ position: absolute;
339
+ inset: 0;
340
+ z-index: 1;
341
+ background-position: center;
342
+ background-repeat: no-repeat;
343
+ filter: blur(14px);
344
+ transform: scale(1.08);
345
+ opacity: 1;
346
+ pointer-events: none;
347
+ transition: opacity 0.32s ease-out;
348
+ }
349
+
350
+ .iuk-blur-image-backdrop--hidden { opacity: 0; }
351
+ .iuk-blur-image-el { position: relative; z-index: 2; display: block; width: 100%; height: 100%; }
352
+
353
+ /* QualitySelector */
354
+ .iuk-quality {
355
+ display: flex;
356
+ flex-direction: column;
357
+ gap: 8px;
358
+ padding: 12px;
359
+ border-radius: var(--iuk-radius-md);
360
+ border: 1px solid var(--iuk-border);
361
+ background: var(--iuk-surface);
362
+ font-family: var(--iuk-font);
363
+ }
364
+
365
+ .iuk-quality__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
366
+ .iuk-quality__title { font-size: 0.8125rem; font-weight: 600; color: var(--iuk-text); }
367
+
368
+ .iuk-quality__pill {
369
+ display: inline-flex;
370
+ align-items: center;
371
+ padding: 2px 8px;
372
+ border-radius: 9999px;
373
+ font-size: 0.75rem;
374
+ font-weight: 600;
375
+ line-height: 1.35;
376
+ }
377
+
378
+ .iuk-quality__pill--low { background: var(--iuk-warning-soft); color: var(--iuk-warning); }
379
+ .iuk-quality__pill--medium { background: var(--iuk-info-soft); color: var(--iuk-info); }
380
+ .iuk-quality__pill--high { background: var(--iuk-success-soft); color: var(--iuk-success); }
381
+ .iuk-quality__pill--maximum { background: var(--iuk-primary-soft); color: var(--iuk-primary); }
382
+
383
+ .iuk-quality__tabs {
384
+ display: grid;
385
+ grid-template-columns: repeat(4, minmax(0, 1fr));
386
+ gap: 4px;
387
+ padding: 3px;
388
+ border-radius: var(--iuk-radius-sm);
389
+ border: 1px solid var(--iuk-border);
390
+ background: var(--iuk-bg);
391
+ }
392
+
393
+ @media (max-width: 420px) {
394
+ .iuk-quality__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
395
+ }
396
+
397
+ .iuk-quality__tab {
398
+ display: inline-flex;
399
+ align-items: center;
400
+ justify-content: center;
401
+ gap: 4px;
402
+ padding: 6px 8px;
403
+ border-radius: calc(var(--iuk-radius-sm) - 2px);
404
+ border: 1px solid transparent;
405
+ background: transparent;
406
+ color: var(--iuk-text-muted);
407
+ font-family: inherit;
408
+ font-size: 0.75rem;
409
+ font-weight: 500;
410
+ cursor: pointer;
411
+ transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
412
+ }
413
+
414
+ .iuk-quality__tab:hover:not(:disabled):not(.iuk-quality__tab--selected) {
415
+ background: var(--iuk-surface-hover);
416
+ color: var(--iuk-text);
417
+ }
418
+
419
+ .iuk-quality__tab:focus-visible { outline: 2px solid var(--iuk-primary); outline-offset: 1px; }
420
+
421
+ .iuk-quality__tab--selected {
422
+ background: var(--iuk-primary);
423
+ color: #ffffff;
424
+ font-weight: 600;
425
+ box-shadow: var(--iuk-shadow-sm);
426
+ }
427
+
428
+ .iuk-quality__tab--recommended {
429
+ border-color: color-mix(in srgb, var(--iuk-primary) 35%, transparent);
430
+ color: var(--iuk-text);
431
+ }
432
+
433
+ .iuk-quality__tab--disabled { opacity: 0.55; cursor: not-allowed; }
434
+ .iuk-quality__star { color: var(--iuk-warning); font-size: 0.6875rem; line-height: 1; }
435
+
436
+ .iuk-quality__detail {
437
+ display: flex;
438
+ flex-direction: column;
439
+ gap: 6px;
440
+ padding: 8px 10px;
441
+ border-radius: var(--iuk-radius-sm);
442
+ border: 1px solid var(--iuk-border);
443
+ border-inline-start-width: 3px;
444
+ background: var(--iuk-bg);
445
+ }
446
+
447
+ .iuk-quality__detail--low { border-inline-start-color: var(--iuk-warning); }
448
+ .iuk-quality__detail--medium { border-inline-start-color: var(--iuk-info); }
449
+ .iuk-quality__detail--high { border-inline-start-color: var(--iuk-success); }
450
+ .iuk-quality__detail--maximum { border-inline-start-color: var(--iuk-primary); }
451
+
452
+ .iuk-quality__desc { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--iuk-text-muted); }
453
+
454
+ .iuk-quality__meta {
455
+ display: flex;
456
+ align-items: center;
457
+ flex-wrap: wrap;
458
+ gap: 6px;
459
+ font-size: 0.75rem;
460
+ color: var(--iuk-text-muted);
461
+ }
462
+
463
+ .iuk-quality__tag {
464
+ padding: 1px 6px;
465
+ border-radius: 4px;
466
+ border: 1px solid var(--iuk-border);
467
+ background: var(--iuk-surface);
468
+ font-size: 0.6875rem;
469
+ font-weight: 600;
470
+ color: var(--iuk-text);
471
+ }
472
+
473
+ .iuk-quality__dot { width: 3px; height: 3px; border-radius: 9999px; background: var(--iuk-border-strong); }
474
+ .iuk-quality__saving { font-weight: 600; color: var(--iuk-success); }
475
+ .iuk-quality__rec-badge { margin-inline-start: auto; font-size: 0.6875rem; font-weight: 600; color: var(--iuk-primary); }
476
+
477
+ .iuk-quality__note {
478
+ display: flex;
479
+ align-items: flex-start;
480
+ gap: 6px;
481
+ font-size: 0.75rem;
482
+ line-height: 1.4;
483
+ color: var(--iuk-text-muted);
484
+ }
485
+
486
+ .iuk-quality__note-icon { flex-shrink: 0; margin-top: 2px; color: var(--iuk-info); }
487
+
488
+ /* AltTextInput */
489
+ .iuk-alt-input { display: flex; flex-direction: column; gap: 6px; width: 100%; font-family: var(--iuk-font); }
490
+ .iuk-alt-input__header { display: flex; align-items: center; gap: 6px; color: var(--iuk-text); }
491
+ .iuk-alt-input__label { font-size: 0.8125rem; font-weight: 600; color: var(--iuk-text); cursor: pointer; }
492
+
493
+ .iuk-alt-input__field {
494
+ width: 100%;
495
+ padding: 9px 12px;
496
+ border-radius: var(--iuk-radius-sm);
497
+ border: 1px solid var(--iuk-border);
498
+ background: var(--iuk-bg);
499
+ color: var(--iuk-text);
500
+ font-family: inherit;
501
+ font-size: 0.875rem;
502
+ line-height: 1.4;
503
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
504
+ }
505
+
506
+ .iuk-alt-input__field::placeholder { color: var(--iuk-text-muted); opacity: 0.75; }
507
+ .iuk-alt-input__field:focus { outline: none; border-color: var(--iuk-primary); box-shadow: 0 0 0 3px var(--iuk-primary-soft); }
508
+ .iuk-alt-input__field:disabled { opacity: 0.6; cursor: not-allowed; background: var(--iuk-surface); }
509
+ .iuk-alt-input__hint { margin: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: var(--iuk-text-muted); }
510
+
511
+
512
+ /* image-upload-kit — Layer 4: Dropzones, Grids & PreviewTile */
513
+
514
+ /* SingleImageUpload & Dropzone */
515
+ .iuk-single {
516
+ display: flex;
517
+ flex-direction: column;
518
+ gap: 10px;
519
+ width: 100%;
520
+ }
521
+
522
+ .iuk-single__preview-wrap {
523
+ width: 100%;
524
+ }
525
+
526
+ .iuk-single__preview-wrap .iuk-tile {
527
+ aspect-ratio: 16 / 10;
528
+ max-height: 320px;
529
+ cursor: default;
530
+ }
531
+
532
+ .iuk-single__download {
533
+ align-self: flex-start;
534
+ }
535
+
536
+ .iuk-dropzone {
537
+ position: relative;
538
+ display: flex;
539
+ flex-direction: column;
540
+ align-items: center;
541
+ justify-content: center;
542
+ min-height: 200px;
543
+ padding: 28px 20px;
544
+ border-radius: var(--iuk-radius-md);
545
+ border: 1.5px dashed var(--iuk-border-strong);
546
+ background: var(--iuk-surface);
547
+ text-align: center;
548
+ cursor: pointer;
549
+ transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
550
+ }
551
+
552
+ .iuk-dropzone:hover:not(.iuk-dropzone--disabled):not(.iuk-dropzone--has-image) {
553
+ border-color: var(--iuk-primary);
554
+ background: var(--iuk-surface-hover);
555
+ }
556
+
557
+ .iuk-dropzone:focus-visible {
558
+ outline: 2px solid var(--iuk-primary);
559
+ outline-offset: 2px;
560
+ }
561
+
562
+ .iuk-dropzone--dragging {
563
+ border-color: var(--iuk-primary);
564
+ background: var(--iuk-primary-soft);
565
+ box-shadow: 0 0 0 3px var(--iuk-primary-soft);
566
+ }
567
+
568
+ .iuk-dropzone--has-image {
569
+ min-height: 0;
570
+ padding: 0;
571
+ border: 0;
572
+ background: transparent;
573
+ cursor: default;
574
+ }
575
+
576
+ .iuk-dropzone--disabled { opacity: 0.6; cursor: not-allowed; }
577
+ .iuk-dropzone--error { border-color: var(--iuk-danger); }
578
+
579
+ .iuk-dropzone__prompt {
580
+ display: flex;
581
+ flex-direction: column;
582
+ align-items: center;
583
+ gap: 8px;
584
+ max-width: 360px;
585
+ }
586
+
587
+ .iuk-dropzone__icon {
588
+ display: flex;
589
+ align-items: center;
590
+ justify-content: center;
591
+ width: 56px;
592
+ height: 56px;
593
+ margin-bottom: 4px;
594
+ border-radius: 9999px;
595
+ border: 1px solid var(--iuk-border);
596
+ background: var(--iuk-bg);
597
+ color: var(--iuk-primary);
598
+ box-shadow: var(--iuk-shadow-sm);
599
+ }
600
+
601
+ .iuk-dropzone__text { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--iuk-text); }
602
+ .iuk-dropzone__hint { margin: 0 0 4px; font-size: 0.8125rem; color: var(--iuk-text-muted); }
603
+ .iuk-dropzone__progress { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--iuk-primary); }
604
+
605
+ /* MultiImageUpload & Grid */
606
+ .iuk-multi { display: flex; flex-direction: column; gap: 12px; width: 100%; }
607
+ .iuk-multi__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
608
+ .iuk-multi__count { font-weight: 500; color: var(--iuk-text-muted); }
609
+ .iuk-multi__bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
610
+
611
+ .iuk-multi__empty {
612
+ display: flex;
613
+ flex-direction: column;
614
+ align-items: center;
615
+ justify-content: center;
616
+ min-height: 220px;
617
+ padding: 32px 20px;
618
+ border-radius: var(--iuk-radius-md);
619
+ border: 1.5px dashed var(--iuk-border-strong);
620
+ background: var(--iuk-surface);
621
+ text-align: center;
622
+ transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
623
+ }
624
+
625
+ .iuk-multi__empty--dragging { border-color: var(--iuk-primary); background: var(--iuk-primary-soft); box-shadow: 0 0 0 3px var(--iuk-primary-soft); }
626
+ .iuk-multi__empty--disabled { opacity: 0.6; cursor: not-allowed; }
627
+ .iuk-multi__empty--error { border-color: var(--iuk-danger); }
628
+
629
+ .iuk-multi__title { margin: 0; font-size: 1rem; font-weight: 600; color: var(--iuk-text); }
630
+ .iuk-multi__btn-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
631
+ .iuk-multi__subtext { margin: 4px 0 0; font-size: 0.75rem; color: var(--iuk-text-muted); }
632
+
633
+ .iuk-multi__grid {
634
+ display: grid;
635
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
636
+ gap: 12px;
637
+ }
638
+
639
+ /* PreviewTile */
640
+ .iuk-tile {
641
+ position: relative;
642
+ width: 100%;
643
+ aspect-ratio: 1 / 1;
644
+ border-radius: var(--iuk-radius-md);
645
+ border: 1px solid var(--iuk-border);
646
+ background: var(--iuk-surface);
647
+ overflow: hidden;
648
+ transition: border-color 0.15s ease, box-shadow 0.15s ease;
649
+ }
650
+
651
+ .iuk-tile--selected {
652
+ border-color: var(--iuk-primary);
653
+ box-shadow: 0 0 0 2px var(--iuk-primary);
654
+ }
655
+
656
+ .iuk-tile--error { border-color: var(--iuk-danger); }
657
+ .iuk-tile--add-more { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--iuk-border-strong); }
658
+ .iuk-tile--dragging { border-color: var(--iuk-primary); background: var(--iuk-primary-soft); }
659
+ .iuk-tile--disabled { opacity: 0.55; cursor: not-allowed; }
660
+
661
+ .iuk-tile__media { position: relative; width: 100%; height: 100%; }
662
+
663
+ .iuk-tile__checkbox {
664
+ position: absolute;
665
+ top: 8px;
666
+ left: 8px;
667
+ z-index: 3;
668
+ display: flex;
669
+ align-items: center;
670
+ justify-content: center;
671
+ width: 24px;
672
+ height: 24px;
673
+ border-radius: 6px;
674
+ background: rgba(15, 23, 42, 0.66);
675
+ backdrop-filter: blur(4px);
676
+ }
677
+
678
+ .iuk-tile__checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--iuk-primary); cursor: pointer; }
679
+
680
+ .iuk-tile__action {
681
+ position: absolute;
682
+ top: 8px;
683
+ z-index: 3;
684
+ display: inline-flex;
685
+ align-items: center;
686
+ justify-content: center;
687
+ width: 28px;
688
+ height: 28px;
689
+ padding: 0;
690
+ border-radius: 9999px;
691
+ border: 1px solid rgba(255, 255, 255, 0.18);
692
+ background: rgba(15, 23, 42, 0.68);
693
+ backdrop-filter: blur(4px);
694
+ color: #ffffff;
695
+ cursor: pointer;
696
+ transition: background-color 0.15s ease, transform 0.12s ease;
697
+ }
698
+
699
+ .iuk-tile__action:hover { background: rgba(15, 23, 42, 0.9); transform: scale(1.05); }
700
+ .iuk-tile__action--remove { right: 8px; }
701
+ .iuk-tile__action--remove:hover { background: var(--iuk-danger); }
702
+ .iuk-tile__action--blur { right: 40px; }
703
+ .iuk-tile__action--alt { right: 72px; }
704
+ .iuk-tile__action--has-alt { background: rgba(22, 163, 74, 0.9); }
705
+ .iuk-tile__action--has-alt:hover { background: var(--iuk-success); }
706
+
707
+ .iuk-tile__overlay {
708
+ position: absolute;
709
+ inset: 0;
710
+ z-index: 4;
711
+ display: flex;
712
+ flex-direction: column;
713
+ align-items: center;
714
+ justify-content: center;
715
+ gap: 6px;
716
+ padding: 12px;
717
+ background: rgba(15, 23, 42, 0.68);
718
+ backdrop-filter: blur(3px);
719
+ color: #ffffff;
720
+ text-align: center;
721
+ }
722
+
723
+ .iuk-tile__overlay--error { background: rgba(127, 29, 29, 0.88); color: #fecaca; }
724
+ .iuk-tile__overlay--error p { margin: 0; font-size: 0.75rem; line-height: 1.35; }
725
+ .iuk-tile__status { margin: 0; font-size: 0.75rem; font-weight: 500; }
726
+
727
+ .iuk-tile__badge {
728
+ position: absolute;
729
+ bottom: 8px;
730
+ z-index: 3;
731
+ display: inline-flex;
732
+ align-items: center;
733
+ gap: 4px;
734
+ padding: 3px 7px;
735
+ border-radius: 9999px;
736
+ background: rgba(15, 23, 42, 0.74);
737
+ backdrop-filter: blur(4px);
738
+ color: #ffffff;
739
+ font-size: 0.6875rem;
740
+ font-weight: 600;
741
+ }
742
+
743
+ .iuk-tile__badge--success { left: 8px; background: rgba(22, 163, 74, 0.9); }
744
+ .iuk-tile__badge--color { right: 8px; }
745
+ .iuk-tile__badge--color code { font-size: 0.6875rem; color: #ffffff; }
746
+ .iuk-tile__color-dot { width: 10px; height: 10px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.6); flex-shrink: 0; }
747
+
748
+ .iuk-tile__add-content { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; text-align: center; color: var(--iuk-text-muted); }
749
+ .iuk-tile__add-content p { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--iuk-text); }
750
+ .iuk-tile__add-btns { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
751
+
752
+ /* RTL positioning flips for tile badges, actions & checkbox */
753
+ [dir="rtl"] .iuk-tile__checkbox { left: auto; right: 8px; }
754
+ [dir="rtl"] .iuk-tile__action--remove { right: auto; left: 8px; }
755
+ [dir="rtl"] .iuk-tile__action--blur { right: auto; left: 40px; }
756
+ [dir="rtl"] .iuk-tile__action--alt { right: auto; left: 72px; }
757
+ [dir="rtl"] .iuk-tile__badge--success { left: auto; right: 8px; }
758
+ [dir="rtl"] .iuk-tile__badge--color { right: auto; left: 8px; }
759
+
760
+
761
+ /* image-upload-kit — Layer 5: Modals, Progress Panel & Minimized Dock */
762
+
763
+ /* Backdrop & Upload Dialog */
764
+ .iuk-modal-backdrop {
765
+ position: fixed;
766
+ inset: 0;
767
+ z-index: 9990;
768
+ display: flex;
769
+ align-items: center;
770
+ justify-content: center;
771
+ padding: 16px;
772
+ background: rgba(15, 23, 42, 0.62);
773
+ backdrop-filter: blur(4px);
774
+ overflow-y: auto;
775
+ }
776
+
777
+ .iuk-modal-backdrop:has(.iuk-alt-modal, .iuk-blur-modal) {
778
+ z-index: 9995;
779
+ }
780
+
781
+ .iuk-modal-backdrop--hidden,
782
+ .iuk-upload-dialog--hidden {
783
+ display: none !important;
784
+ }
785
+
786
+ .iuk-upload-dialog {
787
+ position: relative;
788
+ width: 100%;
789
+ max-width: 680px;
790
+ margin: auto;
791
+ display: flex;
792
+ flex-direction: column;
793
+ gap: 8px;
794
+ }
795
+
796
+ .iuk-upload-dialog__controls {
797
+ display: flex;
798
+ align-items: center;
799
+ justify-content: flex-end;
800
+ gap: 8px;
801
+ }
802
+
803
+ .iuk-upload-dialog__card {
804
+ width: 100%;
805
+ max-height: calc(100vh - 88px);
806
+ overflow-y: auto;
807
+ padding: 20px;
808
+ border-radius: var(--iuk-radius-lg);
809
+ border: 1px solid var(--iuk-border);
810
+ background: var(--iuk-bg);
811
+ color: var(--iuk-text);
812
+ box-shadow: var(--iuk-shadow-lg);
813
+ }
814
+
815
+ .iuk-upload-dialog__title {
816
+ margin: 0 0 14px;
817
+ font-size: 1.0625rem;
818
+ font-weight: 600;
819
+ color: var(--iuk-text);
820
+ }
821
+
822
+ /* AltTextModal */
823
+ .iuk-alt-modal {
824
+ width: 100%;
825
+ max-width: 460px;
826
+ display: flex;
827
+ flex-direction: column;
828
+ gap: 12px;
829
+ padding: 20px;
830
+ border-radius: var(--iuk-radius-lg);
831
+ border: 1px solid var(--iuk-border);
832
+ background: var(--iuk-bg);
833
+ color: var(--iuk-text);
834
+ box-shadow: var(--iuk-shadow-lg);
835
+ }
836
+
837
+ .iuk-alt-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
838
+ .iuk-alt-modal__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; color: var(--iuk-text); }
839
+ .iuk-alt-modal__preview { width: 100%; height: 180px; border-radius: var(--iuk-radius-md); border: 1px solid var(--iuk-border); background: var(--iuk-surface); overflow: hidden; }
840
+ .iuk-alt-modal__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px; }
841
+
842
+ /* BlurVisualizationModal */
843
+ .iuk-blur-modal {
844
+ width: 100%;
845
+ max-width: 720px;
846
+ max-height: calc(100vh - 40px);
847
+ display: flex;
848
+ flex-direction: column;
849
+ border-radius: var(--iuk-radius-lg);
850
+ border: 1px solid var(--iuk-border);
851
+ background: var(--iuk-bg);
852
+ color: var(--iuk-text);
853
+ box-shadow: var(--iuk-shadow-lg);
854
+ overflow: hidden;
855
+ }
856
+
857
+ .iuk-blur-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--iuk-border); }
858
+ .iuk-blur-modal__title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
859
+ .iuk-blur-modal__title-icon { color: var(--iuk-primary); flex-shrink: 0; }
860
+ .iuk-blur-modal__title { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--iuk-text); }
861
+
862
+ .iuk-blur-modal__body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
863
+ .iuk-blur-modal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
864
+ .iuk-blur-modal__controls { display: flex; flex-direction: column; gap: 12px; }
865
+ .iuk-blur-modal__section-title { margin: 0; display: block; font-size: 0.875rem; font-weight: 600; color: var(--iuk-text); }
866
+ .iuk-blur-modal__subtitle { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--iuk-text-muted); }
867
+
868
+ .iuk-blur-modal__picker-row { display: flex; align-items: center; gap: 10px; }
869
+
870
+ .iuk-blur-modal__color-well {
871
+ position: relative;
872
+ width: 42px;
873
+ height: 42px;
874
+ border-radius: var(--iuk-radius-sm);
875
+ border: 1px solid var(--iuk-border-strong);
876
+ overflow: hidden;
877
+ cursor: pointer;
878
+ flex-shrink: 0;
879
+ box-shadow: var(--iuk-shadow-sm);
880
+ }
881
+
882
+ .iuk-blur-modal__color-well input[type="color"] {
883
+ position: absolute;
884
+ inset: -6px;
885
+ width: calc(100% + 12px);
886
+ height: calc(100% + 12px);
887
+ padding: 0;
888
+ border: 0;
889
+ background: none;
890
+ cursor: pointer;
891
+ }
892
+
893
+ .iuk-blur-modal__hex-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
894
+
895
+ .iuk-blur-modal__hex-field {
896
+ display: inline-flex;
897
+ align-items: center;
898
+ gap: 4px;
899
+ height: 38px;
900
+ padding: 0 10px;
901
+ border-radius: var(--iuk-radius-sm);
902
+ border: 1px solid var(--iuk-border);
903
+ background: var(--iuk-bg);
904
+ color: var(--iuk-text-muted);
905
+ font-size: 0.875rem;
906
+ }
907
+
908
+ .iuk-blur-modal__hex-field:focus-within { border-color: var(--iuk-primary); box-shadow: 0 0 0 3px var(--iuk-primary-soft); }
909
+ .iuk-blur-modal__hex-field input { width: 72px; border: 0; outline: none; background: transparent; color: var(--iuk-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; }
910
+
911
+ .iuk-blur-modal__swatch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--iuk-radius-sm); border: 1px solid var(--iuk-border); background: var(--iuk-surface); font-size: 0.75rem; }
912
+ .iuk-blur-modal__swatch-dot { width: 14px; height: 14px; border-radius: 9999px; border: 1px solid rgba(0, 0, 0, 0.18); flex-shrink: 0; }
913
+ .iuk-blur-modal__actions-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
914
+
915
+ .iuk-blur-modal__preview-col { display: flex; flex-direction: column; gap: 10px; }
916
+ .iuk-blur-modal__stage { position: relative; width: 100%; height: 210px; border-radius: var(--iuk-radius-md); border: 1px solid var(--iuk-border); overflow: hidden; }
917
+ .iuk-blur-modal__stage--sampling { cursor: crosshair; outline: 2px solid var(--iuk-primary); outline-offset: 2px; }
918
+ .iuk-blur-modal__no-blur-note { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 3; padding: 3px 8px; border-radius: 9999px; background: rgba(15, 23, 42, 0.72); color: #ffffff; font-size: 0.6875rem; }
919
+ .iuk-blur-modal__savings { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--iuk-radius-sm); background: var(--iuk-success-soft); color: var(--iuk-success); font-size: 0.8125rem; }
920
+
921
+ .iuk-blur-modal__alt-section { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--iuk-border); }
922
+
923
+ .iuk-blur-modal__textarea {
924
+ width: 100%;
925
+ min-height: 64px;
926
+ padding: 9px 12px;
927
+ border-radius: var(--iuk-radius-sm);
928
+ border: 1px solid var(--iuk-border);
929
+ background: var(--iuk-bg);
930
+ color: var(--iuk-text);
931
+ font-family: inherit;
932
+ font-size: 0.875rem;
933
+ line-height: 1.45;
934
+ resize: vertical;
935
+ }
936
+
937
+ .iuk-blur-modal__textarea:focus { outline: none; border-color: var(--iuk-primary); box-shadow: 0 0 0 3px var(--iuk-primary-soft); }
938
+ .iuk-blur-modal__footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--iuk-border); background: var(--iuk-surface); }
939
+
940
+ /* UploadProgressPanel & Minimized Dock */
941
+ .iuk-progress-dock {
942
+ position: fixed;
943
+ bottom: 20px;
944
+ right: 20px;
945
+ z-index: 9992;
946
+ display: flex;
947
+ flex-direction: column-reverse;
948
+ align-items: flex-end;
949
+ gap: 8px;
950
+ width: 320px;
951
+ max-width: calc(100vw - 32px);
952
+ pointer-events: none;
953
+ }
954
+
955
+ .iuk-progress-dock--collapsed { width: auto; }
956
+ .iuk-progress-panel { pointer-events: auto; width: 100%; border-radius: var(--iuk-radius-md); border: 1px solid var(--iuk-border); background: var(--iuk-bg); color: var(--iuk-text); box-shadow: var(--iuk-shadow-lg); overflow: hidden; }
957
+ .iuk-progress-panel--minimized { width: auto; min-width: 240px; }
958
+
959
+ .iuk-progress-panel__header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 0; background: var(--iuk-surface); color: var(--iuk-text); font-family: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-align: start; }
960
+ .iuk-progress-panel__header:hover { background: var(--iuk-surface-hover); }
961
+ .iuk-progress-panel__title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
962
+ .iuk-progress-panel__count { color: var(--iuk-text-muted); font-weight: 500; }
963
+ .iuk-progress-panel__body { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; border-top: 1px solid var(--iuk-border); }
964
+
965
+ .iuk-progress-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--iuk-border); }
966
+ .iuk-progress-item:last-child { border-bottom: 0; }
967
+ .iuk-progress-item__thumb { width: 38px; height: 38px; border-radius: var(--iuk-radius-sm); border: 1px solid var(--iuk-border); overflow: hidden; flex-shrink: 0; }
968
+ .iuk-progress-item__info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
969
+ .iuk-progress-item__name { font-size: 0.75rem; font-weight: 600; color: var(--iuk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
970
+ .iuk-progress-item__status { font-size: 0.6875rem; color: var(--iuk-text-muted); }
971
+
972
+ .iuk-minimized-dock { position: fixed; bottom: 20px; right: 20px; z-index: 9992; }
973
+ .iuk-minimized-portal { pointer-events: auto; }
974
+
975
+ .iuk-minimized-pill {
976
+ display: inline-flex;
977
+ align-items: center;
978
+ gap: 10px;
979
+ padding: 10px 14px;
980
+ border-radius: 9999px;
981
+ border: 1px solid var(--iuk-border);
982
+ background: var(--iuk-bg);
983
+ color: var(--iuk-text);
984
+ font-family: inherit;
985
+ cursor: pointer;
986
+ box-shadow: var(--iuk-shadow-lg);
987
+ transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
988
+ }
989
+
990
+ .iuk-minimized-pill:hover { background: var(--iuk-surface-hover); border-color: var(--iuk-border-strong); transform: translateY(-1px); }
991
+ .iuk-minimized-pill__copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; line-height: 1.25; }
992
+ .iuk-minimized-pill__primary { font-size: 0.8125rem; font-weight: 600; color: var(--iuk-text); }
993
+ .iuk-minimized-pill__secondary { font-size: 0.6875rem; color: var(--iuk-text-muted); }
994
+
995
+ /* RTL Dock Adjustments */
996
+ .iuk-progress-dock[dir="rtl"],
997
+ [dir="rtl"] .iuk-progress-dock { right: auto; left: 20px; align-items: flex-start; }
998
+ .iuk-modal-backdrop[dir="rtl"] + .iuk-minimized-dock,
999
+ [dir="rtl"] .iuk-minimized-dock { right: auto; left: 20px; direction: rtl; }
1000
+
1001
+ /* Responsive Adjustments */
1002
+ @media (max-width: 768px) {
1003
+ .iuk-blur-modal__grid { grid-template-columns: 1fr; }
1004
+ .iuk-upload-dialog__card, .iuk-alt-modal, .iuk-blur-modal__body { padding: 16px; }
1005
+ .iuk-progress-dock, .iuk-progress-dock[dir="rtl"], [dir="rtl"] .iuk-progress-dock,
1006
+ .iuk-minimized-dock, .iuk-modal-backdrop[dir="rtl"] + .iuk-minimized-dock, [dir="rtl"] .iuk-minimized-dock { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; align-items: stretch; }
1007
+ .iuk-minimized-pill { width: 100%; justify-content: space-between; }
1008
+ }
1009
+
1010
+
1011
+ /* ── AnimatedImage: blur-up crossfade image (Imagine-Global parity) ─────── */
1012
+ .iuk-animated-image {
1013
+ position: relative;
1014
+ width: 100%;
1015
+ height: 100%;
1016
+ overflow: hidden;
1017
+ overflow: clip;
1018
+ border-radius: inherit;
1019
+ clip-path: inset(0 round inherit);
1020
+ contain: paint;
1021
+ transition: background-color var(--iuk-animated-image-color-transition, 300ms ease);
1022
+ }
1023
+
1024
+ .iuk-animated-image--fill {
1025
+ position: absolute;
1026
+ inset: 0;
1027
+ }
1028
+
1029
+ .iuk-animated-image__placeholder {
1030
+ position: absolute;
1031
+ inset: 0;
1032
+ width: 100%;
1033
+ height: 100%;
1034
+ object-position: center;
1035
+ /* Tiny placeholder stretched to full size is blurred and scaled slightly so
1036
+ blurred edges stay clipped inside the overflow: hidden wrapper. */
1037
+ filter: blur(var(--iuk-animated-image-blur, 20px));
1038
+ transform: scale(var(--iuk-animated-image-placeholder-scale, 1.1));
1039
+ transform-origin: center;
1040
+ z-index: 1;
1041
+ opacity: 1;
1042
+ transition: opacity var(--iuk-ai-ph-dur, 500ms) ease-in-out;
1043
+ pointer-events: none;
1044
+ }
1045
+
1046
+ .iuk-animated-image__placeholder--hidden {
1047
+ opacity: 0;
1048
+ }
1049
+
1050
+ .iuk-animated-image__img {
1051
+ position: relative;
1052
+ display: block;
1053
+ z-index: 2;
1054
+ width: 100%;
1055
+ height: auto;
1056
+ opacity: 0;
1057
+ transform: scale(var(--iuk-animated-image-reveal-scale, 1.02));
1058
+ border-radius: inherit;
1059
+ user-select: none;
1060
+ -webkit-user-select: none;
1061
+ -webkit-user-drag: none;
1062
+ transition:
1063
+ opacity var(--iuk-animated-image-duration, 600ms) ease-in-out,
1064
+ transform var(--iuk-animated-image-duration, 600ms) ease-in-out;
1065
+ }
1066
+
1067
+ .iuk-animated-image__img[data-state='loaded'] {
1068
+ opacity: 1;
1069
+ transform: scale(1);
1070
+ }
1071
+
1072
+ .iuk-animated-image__img[data-state='error'] {
1073
+ opacity: 0;
1074
+ visibility: hidden;
1075
+ }
1076
+
1077
+ .iuk-animated-image--fill .iuk-animated-image__img {
1078
+ position: absolute;
1079
+ inset: 0;
1080
+ height: 100%;
1081
+ }
1082
+
1083
+ /* In contain mode, the generated blur placeholder stays visible with object-fit: cover
1084
+ and scale(1.1) behind the contained image so letterbox/pillarbox bars show the blur. */
1085
+ .iuk-animated-image--contain .iuk-animated-image__img {
1086
+ transform: none;
1087
+ }
1088
+
1089
+ .iuk-animated-image__shimmer {
1090
+ position: absolute;
1091
+ inset: 0;
1092
+ z-index: 3;
1093
+ background: linear-gradient(
1094
+ 90deg,
1095
+ transparent 0%,
1096
+ var(--iuk-animated-image-shimmer, rgba(255, 255, 255, 0.1)) 50%,
1097
+ transparent 100%
1098
+ );
1099
+ animation: iuk-animated-image-shimmer 2s infinite;
1100
+ pointer-events: none;
1101
+ }
1102
+
1103
+ .iuk-animated-image__shimmer--hidden {
1104
+ opacity: 0;
1105
+ }
1106
+
1107
+ @keyframes iuk-animated-image-shimmer {
1108
+ from { transform: translateX(-100%); }
1109
+ to { transform: translateX(100%); }
1110
+ }
1111
+
1112
+ @media (prefers-reduced-motion: reduce) {
1113
+ .iuk-animated-image__img,
1114
+ .iuk-animated-image__placeholder {
1115
+ transform: none !important;
1116
+ transition-duration: 0ms !important;
1117
+ transition-delay: 0ms !important;
1118
+ }
1119
+ .iuk-animated-image__shimmer {
1120
+ animation: none;
1121
+ }
1122
+ }