BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

Fix My Folder access paths
timfa Tim Falken · pushed by timfa · 6 months ago
7c87f490 History
style.css 20.4 KiB Download Raw
1/* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4*,
5*::before,
6*::after {
7 box-sizing: border-box;
8 margin: 0;
9 padding: 0;
10}
11
12:root {
13 --bg: #0f1117;
14 --surface: #1a1d27;
15 --surface2: #21242f;
16 --border: #2e3247;
17 --accent: #5b7fff;
18 --accent-hover: #7b9fff;
19 --text: #e8eaf0;
20 --text-muted: #7880a0;
21 --danger: #e05c6e;
22 --success: #3fcf8e;
23 --radius: 10px;
24 --topbar-h: 56px;
25 --sidebar-w: 300px;
26 --transition: 0.18s ease;
27}
28
29html,
30body {
31 height: 100%;
32 font-family: system-ui, -apple-system, sans-serif;
33}
34
35body {
36 background: var(--bg);
37 color: var(--text);
38 overflow: hidden;
39}
40
41.hidden {
42 display: none !important;
43}
44
45.muted {
46 color: var(--text-muted);
47}
48
49.error {
50 color: var(--danger);
51 font-size: 0.85rem;
52 margin-top: 0.3rem;
53}
54
55/* =========================================================
56 AUTH OVERLAY
57 ========================================================= */
58.overlay {
59 position: fixed;
60 inset: 0;
61 background: var(--bg);
62 display: flex;
63 align-items: center;
64 justify-content: center;
65 z-index: 100;
66}
67
68.auth-card {
69 background: var(--surface);
70 border: 1px solid var(--border);
71 border-radius: var(--radius);
72 padding: 2.5rem 2rem;
73 width: min(420px, 92vw);
74}
75
76.auth-card h1 {
77 font-size: 1.6rem;
78 margin-bottom: 0.5rem;
79}
80
81.auth-subtitle {
82 font-size: 0.88rem;
83 color: var(--text-muted);
84 margin-bottom: 1.2rem;
85}
86
87#auth-form label {
88 display: flex;
89 flex-direction: column;
90 gap: 0.3rem;
91 font-size: 0.85rem;
92 color: var(--text-muted);
93 margin-bottom: 1rem;
94}
95
96#auth-form input {
97 background: var(--bg);
98 border: 1px solid var(--border);
99 border-radius: 6px;
100 padding: 0.55rem 0.75rem;
101 color: var(--text);
102 font-size: 1rem;
103 outline: none;
104 transition: border-color var(--transition);
105}
106
107#auth-form input:focus {
108 border-color: var(--accent);
109}
110
111/* =========================================================
112 BUTTONS
113 ========================================================= */
114button {
115 cursor: pointer;
116 border: none;
117 border-radius: 6px;
118 font-size: 0.9rem;
119 transition: background var(--transition), color var(--transition);
120}
121
122.icon-btn {
123 display: flex;
124 align-items: center;
125 gap: 0.4rem;
126 background: transparent;
127 color: var(--text-muted);
128 padding: 0.4rem 0.7rem;
129 border-radius: 6px;
130}
131
132.icon-btn:hover {
133 background: var(--surface2);
134 color: var(--text);
135}
136
137.icon-btn svg {
138 width: 18px;
139 height: 18px;
140}
141
142button[type="submit"],
143.primary {
144 background: var(--accent);
145 color: #fff;
146 padding: 0.55rem 1.2rem;
147 font-weight: 600;
148 width: 100%;
149 margin-top: 0.5rem;
150}
151
152button[type="submit"]:hover,
153.primary:hover {
154 background: var(--accent-hover);
155}
156
157button.danger {
158 background: var(--surface2);
159 color: var(--danger);
160 padding: 0.55rem 1.2rem;
161 width: 100%;
162 margin-top: 0.5rem;
163}
164
165button.danger:hover {
166 background: var(--border);
167}
168
169/* =========================================================
170 TOP BAR
171 ========================================================= */
172#app {
173 display: flex;
174 flex-direction: column;
175 height: 100vh;
176}
177
178#topbar {
179 height: var(--topbar-h);
180 background: var(--surface);
181 border-bottom: 1px solid var(--border);
182 display: flex;
183 align-items: center;
184 padding: 0 1rem;
185 gap: 0.5rem;
186 flex-shrink: 0;
187}
188
189#breadcrumb-wrap {
190 flex: 1;
191 min-width: 0;
192}
193
194#breadcrumb {
195 display: flex;
196 align-items: center;
197 flex-wrap: wrap;
198 gap: 0.1rem;
199 font-size: 0.9rem;
200 white-space: nowrap;
201 overflow: hidden;
202}
203
204#breadcrumb .crumb {
205 color: var(--text-muted);
206 background: none;
207 padding: 0.2rem 0.35rem;
208 border-radius: 4px;
209 text-decoration: none;
210 cursor: pointer;
211}
212
213#breadcrumb .crumb:hover {
214 color: var(--text);
215 background: var(--surface2);
216}
217
218#breadcrumb .crumb.active {
219 color: var(--text);
220 cursor: default;
221}
222
223#breadcrumb .sep {
224 color: var(--border);
225 user-select: none;
226}
227
228#topbar-actions {
229 display: flex;
230 align-items: center;
231 gap: 0.25rem;
232 flex-shrink: 0;
233}
234
235/* =========================================================
236 MAIN + SIDEBAR LAYOUT
237 ========================================================= */
238#main-content {
239 flex: 1;
240 overflow-y: auto;
241 padding: 1.25rem;
242 position: relative;
243}
244
245#folder-stats {
246 margin-bottom: 0.8rem;
247 font-size: 0.85rem;
248}
249
250/* Drop overlay */
251#drop-overlay {
252 position: absolute;
253 inset: 0;
254 background: rgba(91, 127, 255, 0.12);
255 border: 3px dashed var(--accent);
256 border-radius: var(--radius);
257 display: flex;
258 align-items: center;
259 justify-content: center;
260 z-index: 10;
261 font-size: 1.4rem;
262 color: var(--accent);
263 pointer-events: none;
264}
265
266/* When sidebar is open, shrink main content */
267#app.sidebar-open #main-content {
268 margin-right: var(--sidebar-w);
269}
270
271/* =========================================================
272 FILE GRID
273 ========================================================= */
274#file-grid {
275 display: grid;
276 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
277 gap: 0.75rem;
278}
279
280.file-item {
281 display: flex;
282 flex-direction: column;
283 align-items: center;
284 padding: 0.9rem 0.5rem 0.7rem;
285 border-radius: var(--radius);
286 border: 1px solid transparent;
287 cursor: pointer;
288 user-select: none;
289 transition: background var(--transition), border-color var(--transition);
290 text-align: center;
291 gap: 0.4rem;
292 position: relative;
293 touch-action: manipulation;
294}
295
296.file-item:hover {
297 background: var(--surface);
298 border-color: var(--border);
299}
300
301.file-item.selected {
302 background: var(--surface2);
303 border-color: var(--accent);
304}
305
306.file-item .icon {
307 width: 52px;
308 height: 52px;
309 display: flex;
310 align-items: center;
311 justify-content: center;
312 position: relative;
313}
314
315.file-item .icon.thumb-pending::after {
316 content: '';
317 position: absolute;
318 width: 14px;
319 height: 14px;
320 left: 50%;
321 top: 50%;
322 border: 2px solid rgba(232, 234, 240, 0.35);
323 border-top-color: var(--accent);
324 border-radius: 50%;
325 animation: icon-thumb-spin 0.75s linear infinite;
326 background: rgba(15, 17, 23, 0.85);
327}
328
329@keyframes icon-thumb-spin {
330 from { transform: translate(-50%, -50%) rotate(0deg); }
331 to { transform: translate(-50%, -50%) rotate(360deg); }
332}
333
334.file-item .icon svg {
335 width: 100%;
336 height: 100%;
337}
338
339.file-item .name {
340 font-size: 0.8rem;
341 word-break: break-all;
342 max-width: 100%;
343 line-height: 1.3;
344 color: var(--text);
345}
346
347/* =========================================================
348 SIDEBAR
349 ========================================================= */
350#sidebar {
351 position: fixed;
352 top: var(--topbar-h);
353 right: 0;
354 bottom: 0;
355 width: var(--sidebar-w);
356 background: var(--surface);
357 border-left: 1px solid var(--border);
358 padding: 1.25rem;
359 overflow-y: auto;
360 z-index: 20;
361 display: flex;
362 flex-direction: column;
363 gap: 0.75rem;
364}
365
366#sidebar-close {
367 display: none;
368 align-items: center;
369 justify-content: center;
370 width: 1.7rem;
371 height: 1.7rem;
372 border: 1px solid transparent;
373 border-radius: 999px;
374 background: transparent;
375 color: var(--text-muted);
376 font-size: 1rem;
377 line-height: 1;
378}
379
380#sidebar-close:hover {
381 background: var(--surface2);
382 color: var(--text);
383}
384
385#sidebar-icon {
386 display: flex;
387 justify-content: center;
388}
389
390#sidebar-icon svg {
391 width: 64px;
392 height: 64px;
393}
394
395#sidebar-name {
396 font-size: 1rem;
397 word-break: break-all;
398 text-align: center;
399}
400
401#sidebar-meta {
402 display: grid;
403 grid-template-columns: auto 1fr;
404 gap: 0.3rem 0.75rem;
405}
406
407#sidebar-meta dt {
408 color: var(--text-muted);
409 font-size: 0.8rem;
410 font-weight: 600;
411}
412
413#sidebar-meta dd {
414 font-size: 0.8rem;
415 word-break: break-all;
416}
417
418#sidebar-meta .root-access-list {
419 margin: 0;
420 padding-left: 1rem;
421}
422
423#sidebar-meta .root-access-list li {
424 margin: 0.12rem 0;
425}
426
427#sidebar-actions {
428 display: flex;
429 flex-direction: column;
430 gap: 0.5rem;
431 margin-top: 0.5rem;
432}
433
434#sidebar-actions button {
435 background: var(--surface2);
436 color: var(--text);
437 padding: 0.5rem 0.8rem;
438 text-align: left;
439}
440
441#sidebar-actions button:hover {
442 background: var(--border);
443}
444
445#sidebar-actions button.danger {
446 color: var(--danger);
447}
448
449/* ─── Duplicates panel ─────────────────────────────────── */
450#sidebar-duplicates {
451 margin-top: 1rem;
452 border-top: 1px solid var(--border);
453 padding-top: 0.75rem;
454}
455
456.sidebar-duplicates-heading {
457 font-size: 0.75rem;
458 font-weight: 600;
459 text-transform: uppercase;
460 letter-spacing: 0.05em;
461 color: var(--text-muted, #888);
462 margin: 0 0 0.4rem;
463}
464
465.sidebar-duplicates-list {
466 list-style: none;
467 margin: 0;
468 padding: 0;
469 display: flex;
470 flex-direction: column;
471 gap: 0.25rem;
472}
473
474.sidebar-duplicate-entry {
475 display: block;
476 width: 100%;
477 background: var(--surface2);
478 color: var(--text);
479 padding: 0.35rem 0.6rem;
480 text-align: left;
481 font-size: 0.8rem;
482 white-space: nowrap;
483 overflow: hidden;
484 text-overflow: ellipsis;
485 border-radius: var(--radius);
486 cursor: pointer;
487}
488
489.sidebar-duplicate-entry:hover {
490 background: var(--border);
491}
492
493.admin-size-feedback {
494 font-size: 0.82rem;
495 margin: 0.25rem 0 0.5rem;
496 padding: 0.25rem 0.5rem;
497 border-radius: var(--radius);
498}
499
500.admin-size-feedback.ok {
501 color: var(--accent);
502}
503
504.admin-size-feedback.err {
505 color: #e55;
506}
507
508/* =========================================================
509 MODALS
510 ========================================================= */
511.modal-overlay {
512 position: fixed;
513 inset: 0;
514 background: rgba(0, 0, 0, 0.65);
515 display: flex;
516 align-items: center;
517 justify-content: center;
518 z-index: 11000;
519}
520
521#file-conflict-modal,
522#overwrite-modal {
523 z-index: 11150;
524}
525
526.modal {
527 background: var(--surface);
528 border: 1px solid var(--border);
529 border-radius: var(--radius);
530 padding: 2rem;
531 width: min(560px, 94vw);
532 max-height: 90vh;
533 overflow-y: auto;
534 position: relative;
535}
536
537.modal.small {
538 width: min(340px, 94vw);
539}
540
541.modal h2 {
542 font-size: 1.3rem;
543 margin-bottom: 1.25rem;
544}
545
546.modal h3 {
547 font-size: 1rem;
548 color: var(--text-muted);
549 margin: 1rem 0 0.5rem;
550}
551
552.modal-close {
553 position: absolute;
554 top: 0.75rem;
555 right: 0.75rem;
556 background: none;
557 color: var(--text-muted);
558 font-size: 1.1rem;
559 padding: 0.25rem 0.5rem;
560}
561
562.modal-close:hover {
563 color: var(--text);
564}
565
566/* =========================================================
567 FOLDER ICON PICKER
568 ========================================================= */
569.folder-icon-modal {
570 width: min(680px, 94vw);
571 max-height: 90vh;
572 display: flex;
573 flex-direction: column;
574 gap: 0.75rem;
575 overflow: hidden;
576}
577
578.folder-icon-grid {
579 display: grid;
580 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
581 gap: 0.5rem;
582 max-height: 50vh;
583 overflow-y: auto;
584 padding: 0.25rem;
585 background: var(--bg);
586 border: 1px solid var(--border);
587 border-radius: var(--radius);
588}
589
590.folder-icon-cell {
591 display: flex;
592 flex-direction: column;
593 align-items: center;
594 gap: 0.3rem;
595 padding: 0.4rem;
596 border-radius: var(--radius);
597 border: 2px solid transparent;
598 cursor: pointer;
599 transition: border-color var(--transition), background var(--transition);
600}
601
602.folder-icon-cell:hover {
603 background: var(--surface2);
604}
605
606.folder-icon-cell.selected {
607 border-color: var(--accent);
608 background: rgba(91, 127, 255, 0.12);
609}
610
611.folder-icon-thumb {
612 width: 60px;
613 height: 60px;
614 object-fit: cover;
615 border-radius: 4px;
616 background: var(--surface2);
617}
618
619.folder-icon-label {
620 font-size: 0.68rem;
621 color: var(--text-muted);
622 word-break: break-all;
623 text-align: center;
624 max-width: 72px;
625 overflow: hidden;
626 display: -webkit-box;
627 -webkit-line-clamp: 2;
628 -webkit-box-orient: vertical;
629}
630
631/* Admin path list */
632.path-row {
633 display: flex;
634 align-items: center;
635 gap: 0.5rem;
636 padding: 0.4rem 0;
637 border-bottom: 1px solid var(--border);
638 font-size: 0.88rem;
639}
640
641.path-row span {
642 flex: 1;
643 word-break: break-all;
644}
645
646.path-row button {
647 background: none;
648 color: var(--danger);
649 padding: 0.2rem 0.5rem;
650}
651
652.path-add-row {
653 display: flex;
654 gap: 0.5rem;
655 margin: 0.5rem 0;
656}
657
658.path-add-row input {
659 flex: 1;
660 background: var(--bg);
661 border: 1px solid var(--border);
662 border-radius: 6px;
663 padding: 0.45rem 0.7rem;
664 color: var(--text);
665 font-size: 0.9rem;
666 outline: none;
667}
668
669.path-add-row input:focus {
670 border-color: var(--accent);
671}
672
673.path-add-row button {
674 background: var(--surface2);
675 color: var(--text);
676 padding: 0.45rem 0.9rem;
677}
678
679.path-add-row button:hover {
680 background: var(--border);
681}
682
683/* User list */
684.user-row {
685 display: flex;
686 align-items: center;
687 gap: 0.6rem;
688 padding: 0.5rem 0;
689 border-bottom: 1px solid var(--border);
690}
691
692.user-row .user-name {
693 flex: 1;
694 font-weight: 600;
695 font-size: 0.9rem;
696}
697
698.user-row .user-admin-badge {
699 font-size: 0.72rem;
700 background: var(--accent);
701 color: #fff;
702 border-radius: 4px;
703 padding: 0.1rem 0.4rem;
704}
705
706.user-row button {
707 background: none;
708 color: var(--text-muted);
709 padding: 0.2rem 0.5rem;
710 font-size: 0.85rem;
711}
712
713.user-row button:hover {
714 color: var(--text);
715}
716
717.user-row button.danger {
718 color: var(--danger);
719}
720
721/* User form permissions */
722#user-permissions {
723 margin-top: 0.75rem;
724}
725
726#user-permissions h4 {
727 font-size: 0.85rem;
728 color: var(--text-muted);
729 margin-bottom: 0.4rem;
730}
731
732.perm-row {
733 display: flex;
734 align-items: center;
735 gap: 0.75rem;
736 flex-wrap: wrap;
737 font-size: 0.85rem;
738 margin-bottom: 0.4rem;
739}
740
741.perm-row .perm-label {
742 min-width: 130px;
743 color: var(--text);
744}
745
746.checkbox-label {
747 display: flex;
748 align-items: center;
749 gap: 0.5rem;
750 font-size: 0.9rem;
751 margin-bottom: 0.5rem;
752}
753
754.checkbox-label input[type="checkbox"] {
755 width: 16px;
756 height: 16px;
757 accent-color: var(--accent);
758}
759
760/* Form labels in modals */
761.modal form label {
762 display: flex;
763 flex-direction: column;
764 gap: 0.3rem;
765 font-size: 0.85rem;
766 color: var(--text-muted);
767 margin-bottom: 0.9rem;
768}
769
770.modal form input[type="text"],
771.modal form input[type="password"] {
772 background: var(--bg);
773 border: 1px solid var(--border);
774 border-radius: 6px;
775 padding: 0.5rem 0.75rem;
776 color: var(--text);
777 font-size: 0.95rem;
778 outline: none;
779 transition: border-color var(--transition);
780}
781
782.modal form input:focus {
783 border-color: var(--accent);
784}
785
786/* Admin user-folder controls use the same visual language as modal forms. */
787#admin-userfolder-section label {
788 display: flex;
789 flex-direction: column;
790 gap: 0.3rem;
791 font-size: 0.85rem;
792 color: var(--text-muted);
793 margin-bottom: 0.9rem;
794}
795
796#admin-userfolder-section input[type="text"] {
797 background: var(--bg);
798 border: 1px solid var(--border);
799 border-radius: 6px;
800 padding: 0.5rem 0.75rem;
801 color: var(--text);
802 font-size: 0.95rem;
803 outline: none;
804 transition: border-color var(--transition);
805}
806
807#admin-userfolder-section input[type="text"]:focus {
808 border-color: var(--accent);
809}
810
811/* =========================================================
812 FILE PREVIEW — SHARED MEDIA STYLES
813 ========================================================= */
814.preview-media {
815 max-width: 100%;
816 max-height: 100%;
817 width: auto;
818 height: auto;
819 object-fit: contain;
820}
821
822.preview-frame {
823 width: 100%;
824 height: 100%;
825 border: none;
826 border-radius: 8px;
827 background: #fff;
828}
829
830.preview-audio {
831 width: min(640px, 95%);
832}
833
834.preview-text {
835 width: 100%;
836 min-height: 100%;
837 color: #dce4ff;
838 background: #0d111a;
839 border: 1px solid var(--border);
840 border-radius: 8px;
841 padding: 0.9rem;
842 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
843 overflow: auto;
844 white-space: pre;
845 text-align: left;
846}
847
848.preview-code .tok-comment {
849 color: #6f7f9a;
850}
851
852.preview-code .tok-string {
853 color: #9ee37d;
854}
855
856.preview-code .tok-number {
857 color: #f8c46a;
858}
859
860.preview-code .tok-keyword {
861 color: #8bb4ff;
862 font-weight: 600;
863}
864
865.preview-code .tok-key {
866 color: #59c8ff;
867}
868
869.preview-unsupported {
870 color: var(--text-muted);
871 font-size: 0.95rem;
872 max-width: 56ch;
873 text-align: center;
874}
875
876.preview-footer {
877 border-top: 1px solid var(--border);
878 padding: 0.8rem 1rem;
879 display: flex;
880 justify-content: flex-end;
881}
882
883.preview-footer .primary {
884 width: auto;
885 margin-top: 0;
886 min-width: 8rem;
887}
888
889
890
891/* =========================================================
892
893.toast-msg {
894 background: var(--surface2);
895 border: 1px solid var(--border);
896 border-radius: 8px;
897 padding: 0.6rem 1.25rem;
898 font-size: 0.9rem;
899 animation: slideup 0.25s ease;
900}
901
902.toast-msg.err {
903 border-color: var(--danger);
904 color: var(--danger);
905}
906
907.toast-msg.ok {
908 border-color: var(--success);
909 color: var(--success);
910}
911
912@keyframes slideup {
913 from {
914 opacity: 0;
915 transform: translateY(12px);
916 }
917
918 to {
919 opacity: 1;
920 transform: translateY(0);
921 }
922}
923
924/* =========================================================
925 UPLOAD PROGRESS
926 ========================================================= */
927.upload-bar-wrap {
928 position: fixed;
929 bottom: 0;
930 left: 0;
931 right: 0;
932 background: var(--surface);
933 border-top: 1px solid var(--border);
934 padding: 0.5rem 1rem;
935 z-index: 80;
936 font-size: 0.85rem;
937}
938
939.upload-bar-track {
940 height: 6px;
941 background: var(--border);
942 border-radius: 3px;
943 margin-top: 0.3rem;
944}
945
946.upload-bar-fill {
947 height: 100%;
948 background: var(--accent);
949 border-radius: 3px;
950 transition: width 0.2s linear;
951}
952
953/* =========================================================
954 RESPONSIVE — narrow screens
955 ========================================================= */
956@media (max-width: 600px) {
957 #topbar {
958 height: auto;
959 min-height: var(--topbar-h);
960 padding: 0.5rem 0.6rem;
961 align-items: flex-start;
962 flex-direction: column;
963 }
964
965 #breadcrumb-wrap {
966 width: 100%;
967 }
968
969 #topbar-actions {
970 width: 100%;
971 flex-wrap: wrap;
972 gap: 0.15rem;
973 }
974
975 .icon-btn {
976 padding: 0.4rem 0.55rem;
977 font-size: 0.82rem;
978 }
979
980 #main-content {
981 padding: 0.9rem;
982 }
983
984 #file-grid {
985 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
986 }
987
988 #app.sidebar-open #main-content {
989 margin-right: 0;
990 }
991
992 #sidebar {
993 top: auto;
994 right: 0;
995 bottom: 0;
996 left: 0;
997 height: auto;
998 max-height: min(68vh, calc(100vh - 0.5rem));
999 padding: 0.9rem 0.9rem 1rem;
1000 border-left: none;
1001 border-top: 1px solid var(--border);
1002 width: 100%;
1003 border-radius: 14px 14px 0 0;
1004 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1005 gap: 0.55rem;
1006 }
1007
1008 #sidebar-close {
1009 display: inline-flex;
1010 position: absolute;
1011 top: 0.45rem;
1012 right: 0.45rem;
1013 border-color: var(--border);
1014 background: var(--surface2);
1015 }
1016
1017 #sidebar-name {
1018 padding-right: 2rem;
1019 }
1020
1021 #sidebar-icon svg {
1022 width: 54px;
1023 height: 54px;
1024 }
1025
1026 #sidebar-actions {
1027 margin-top: 0.2rem;
1028 }
1029
1030 .modal {
1031 padding: 1.25rem;
1032 }
1033
1034 .preview-overlay {
1035 padding: 0.8rem;
1036 }
1037
1038 .preview-sheet {
1039 width: 100%;
1040 height: 92vh;
1041 }
1042
1043 .preview-fold {
1044 width: 54px;
1045 height: 54px;
1046 }
1047
1048 .preview-close {
1049 top: 5px;
1050 right: 5px;
1051 }
1052}
1053
1054/* =========================================================
1055 DIALOG MODALS (confirm / prompt / overwrite)
1056 ========================================================= */
1057.dialog-message {
1058 color: var(--text-muted);
1059 font-size: 0.93rem;
1060 margin: 0 0 1.5rem;
1061 line-height: 1.5;
1062 word-break: break-word;
1063}
1064
1065.dialog-actions {
1066 display: flex;
1067 gap: 0.6rem;
1068 justify-content: flex-end;
1069 flex-wrap: wrap;
1070}
1071
1072.dialog-actions--overwrite {
1073 justify-content: space-between;
1074}
1075
1076.dialog-actions button {
1077 min-width: 5rem;
1078 background: var(--surface2);
1079 color: var(--text);
1080 padding: 0.5rem 1rem;
1081}
1082
1083.dialog-actions button:hover {
1084 background: var(--border);
1085}
1086
1087/* Override .primary full-width inside dialog rows */
1088.dialog-actions button.primary {
1089 width: auto;
1090 margin-top: 0;
1091}