BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

formatting
timfa Tim Falken · pushed by timfa · 6 months ago
abe013c0 History
style.css 20.5 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 {
331 transform: translate(-50%, -50%) rotate(0deg);
332 }
333
334 to {
335 transform: translate(-50%, -50%) rotate(360deg);
336 }
337}
338
339.file-item .icon svg {
340 width: 100%;
341 height: 100%;
342}
343
344.file-item .name {
345 font-size: 0.8rem;
346 word-break: break-all;
347 max-width: 100%;
348 line-height: 1.3;
349 color: var(--text);
350}
351
352/* =========================================================
353 SIDEBAR
354 ========================================================= */
355#sidebar {
356 position: fixed;
357 top: var(--topbar-h);
358 right: 0;
359 bottom: 0;
360 width: var(--sidebar-w);
361 background: var(--surface);
362 border-left: 1px solid var(--border);
363 padding: 1.25rem;
364 overflow-y: auto;
365 z-index: 20;
366 display: flex;
367 flex-direction: column;
368 gap: 0.75rem;
369}
370
371#sidebar-close {
372 display: none;
373 align-items: center;
374 justify-content: center;
375 width: 1.7rem;
376 height: 1.7rem;
377 border: 1px solid transparent;
378 border-radius: 999px;
379 background: transparent;
380 color: var(--text-muted);
381 font-size: 1rem;
382 line-height: 1;
383}
384
385#sidebar-close:hover {
386 background: var(--surface2);
387 color: var(--text);
388}
389
390#sidebar-icon {
391 display: flex;
392 justify-content: center;
393}
394
395#sidebar-icon svg {
396 width: 64px;
397 height: 64px;
398}
399
400#sidebar-name {
401 font-size: 1rem;
402 word-break: break-all;
403 text-align: center;
404}
405
406#sidebar-meta {
407 display: grid;
408 grid-template-columns: auto 1fr;
409 gap: 0.3rem 0.75rem;
410}
411
412#sidebar-meta dt {
413 color: var(--text-muted);
414 font-size: 0.8rem;
415 font-weight: 600;
416}
417
418#sidebar-meta dd {
419 font-size: 0.8rem;
420 word-break: break-all;
421}
422
423#sidebar-meta .root-access-list {
424 margin: 0;
425 padding-left: 1rem;
426}
427
428#sidebar-meta .root-access-list li {
429 margin: 0.12rem 0;
430}
431
432#sidebar-actions {
433 display: flex;
434 flex-direction: column;
435 gap: 0.5rem;
436 margin-top: 0.5rem;
437}
438
439#sidebar-actions button {
440 background: var(--surface2);
441 color: var(--text);
442 padding: 0.5rem 0.8rem;
443 text-align: left;
444}
445
446#sidebar-actions button:hover {
447 background: var(--border);
448}
449
450#sidebar-actions button.danger {
451 color: var(--danger);
452}
453
454/* ─── Duplicates panel ─────────────────────────────────── */
455#sidebar-duplicates {
456 margin-top: 1rem;
457 border-top: 1px solid var(--border);
458 padding-top: 0.75rem;
459}
460
461.sidebar-duplicates-heading {
462 font-size: 0.75rem;
463 font-weight: 600;
464 text-transform: uppercase;
465 letter-spacing: 0.05em;
466 color: var(--text-muted, #888);
467 margin: 0 0 0.4rem;
468}
469
470.sidebar-duplicates-list {
471 list-style: none;
472 margin: 0;
473 padding: 0;
474 display: flex;
475 flex-direction: column;
476 gap: 0.25rem;
477}
478
479.sidebar-duplicate-entry {
480 display: block;
481 width: 100%;
482 background: var(--surface2);
483 color: var(--text);
484 padding: 0.35rem 0.6rem;
485 text-align: left;
486 font-size: 0.8rem;
487 white-space: nowrap;
488 overflow: hidden;
489 text-overflow: ellipsis;
490 border-radius: var(--radius);
491 cursor: pointer;
492}
493
494.sidebar-duplicate-entry:hover {
495 background: var(--border);
496}
497
498.admin-size-feedback {
499 font-size: 0.82rem;
500 margin: 0.25rem 0 0.5rem;
501 padding: 0.25rem 0.5rem;
502 border-radius: var(--radius);
503}
504
505.admin-size-feedback.ok {
506 color: var(--accent);
507}
508
509.admin-size-feedback.err {
510 color: #e55;
511}
512
513/* =========================================================
514 MODALS
515 ========================================================= */
516.modal-overlay {
517 position: fixed;
518 inset: 0;
519 background: rgba(0, 0, 0, 0.65);
520 display: flex;
521 align-items: center;
522 justify-content: center;
523 z-index: 11000;
524}
525
526#file-conflict-modal,
527#overwrite-modal {
528 z-index: 11150;
529}
530
531.modal {
532 background: var(--surface);
533 border: 1px solid var(--border);
534 border-radius: var(--radius);
535 padding: 2rem;
536 width: min(560px, 94vw);
537 max-height: 90vh;
538 overflow-y: auto;
539 position: relative;
540}
541
542.modal.small {
543 width: min(340px, 94vw);
544}
545
546.modal h2 {
547 font-size: 1.3rem;
548 margin-bottom: 1.25rem;
549}
550
551.modal h3 {
552 font-size: 1rem;
553 color: var(--text-muted);
554 margin: 1rem 0 0.5rem;
555}
556
557.modal-close {
558 position: absolute;
559 top: 0.75rem;
560 right: 0.75rem;
561 background: none;
562 color: var(--text-muted);
563 font-size: 1.1rem;
564 padding: 0.25rem 0.5rem;
565}
566
567.modal-close:hover {
568 color: var(--text);
569}
570
571/* =========================================================
572 FOLDER ICON PICKER
573 ========================================================= */
574.folder-icon-modal {
575 width: min(680px, 94vw);
576 max-height: 90vh;
577 display: flex;
578 flex-direction: column;
579 gap: 0.75rem;
580 overflow: hidden;
581}
582
583.folder-icon-grid {
584 display: grid;
585 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
586 gap: 0.5rem;
587 max-height: 50vh;
588 overflow-y: auto;
589 padding: 0.25rem;
590 background: var(--bg);
591 border: 1px solid var(--border);
592 border-radius: var(--radius);
593}
594
595.folder-icon-cell {
596 display: flex;
597 flex-direction: column;
598 align-items: center;
599 gap: 0.3rem;
600 padding: 0.4rem;
601 border-radius: var(--radius);
602 border: 2px solid transparent;
603 cursor: pointer;
604 transition: border-color var(--transition), background var(--transition);
605}
606
607.folder-icon-cell:hover {
608 background: var(--surface2);
609}
610
611.folder-icon-cell.selected {
612 border-color: var(--accent);
613 background: rgba(91, 127, 255, 0.12);
614}
615
616.folder-icon-thumb {
617 width: 60px;
618 height: 60px;
619 object-fit: cover;
620 border-radius: 4px;
621 background: var(--surface2);
622}
623
624.folder-icon-label {
625 font-size: 0.68rem;
626 color: var(--text-muted);
627 word-break: break-all;
628 text-align: center;
629 max-width: 72px;
630 overflow: hidden;
631 display: -webkit-box;
632 -webkit-line-clamp: 2;
633 -webkit-box-orient: vertical;
634}
635
636/* Admin path list */
637.path-row {
638 display: flex;
639 align-items: center;
640 gap: 0.5rem;
641 padding: 0.4rem 0;
642 border-bottom: 1px solid var(--border);
643 font-size: 0.88rem;
644}
645
646.path-row span {
647 flex: 1;
648 word-break: break-all;
649}
650
651.path-row button {
652 background: none;
653 color: var(--danger);
654 padding: 0.2rem 0.5rem;
655}
656
657.path-add-row {
658 display: flex;
659 gap: 0.5rem;
660 margin: 0.5rem 0;
661}
662
663.path-add-row input {
664 flex: 1;
665 background: var(--bg);
666 border: 1px solid var(--border);
667 border-radius: 6px;
668 padding: 0.45rem 0.7rem;
669 color: var(--text);
670 font-size: 0.9rem;
671 outline: none;
672}
673
674.path-add-row input:focus {
675 border-color: var(--accent);
676}
677
678.path-add-row button {
679 background: var(--surface2);
680 color: var(--text);
681 padding: 0.45rem 0.9rem;
682}
683
684.path-add-row button:hover {
685 background: var(--border);
686}
687
688/* User list */
689.user-row {
690 display: flex;
691 align-items: center;
692 gap: 0.6rem;
693 padding: 0.5rem 0;
694 border-bottom: 1px solid var(--border);
695}
696
697.user-row .user-name {
698 flex: 1;
699 font-weight: 600;
700 font-size: 0.9rem;
701}
702
703.user-row .user-admin-badge {
704 font-size: 0.72rem;
705 background: var(--accent);
706 color: #fff;
707 border-radius: 4px;
708 padding: 0.1rem 0.4rem;
709}
710
711.user-row button {
712 background: none;
713 color: var(--text-muted);
714 padding: 0.2rem 0.5rem;
715 font-size: 0.85rem;
716}
717
718.user-row button:hover {
719 color: var(--text);
720}
721
722.user-row button.danger {
723 color: var(--danger);
724}
725
726/* User form permissions */
727#user-permissions {
728 margin-top: 0.75rem;
729}
730
731#user-permissions h4 {
732 font-size: 0.85rem;
733 color: var(--text-muted);
734 margin-bottom: 0.4rem;
735}
736
737.perm-row {
738 display: flex;
739 align-items: center;
740 gap: 0.75rem;
741 flex-wrap: wrap;
742 font-size: 0.85rem;
743 margin-bottom: 0.4rem;
744}
745
746.perm-row .perm-label {
747 min-width: 130px;
748 color: var(--text);
749}
750
751.checkbox-label {
752 display: flex;
753 align-items: center;
754 gap: 0.5rem;
755 font-size: 0.9rem;
756 margin-bottom: 0.5rem;
757}
758
759.checkbox-label input[type="checkbox"] {
760 width: 16px;
761 height: 16px;
762 accent-color: var(--accent);
763}
764
765/* Form labels in modals */
766.modal form label {
767 display: flex;
768 flex-direction: column;
769 gap: 0.3rem;
770 font-size: 0.85rem;
771 color: var(--text-muted);
772 margin-bottom: 0.9rem;
773}
774
775.modal form input[type="text"],
776.modal form input[type="password"] {
777 background: var(--bg);
778 border: 1px solid var(--border);
779 border-radius: 6px;
780 padding: 0.5rem 0.75rem;
781 color: var(--text);
782 font-size: 0.95rem;
783 outline: none;
784 transition: border-color var(--transition);
785}
786
787.modal form input:focus {
788 border-color: var(--accent);
789}
790
791/* Admin user-folder controls use the same visual language as modal forms. */
792#admin-userfolder-section label {
793 display: flex;
794 flex-direction: column;
795 gap: 0.3rem;
796 font-size: 0.85rem;
797 color: var(--text-muted);
798 margin-bottom: 0.9rem;
799}
800
801#admin-userfolder-section input[type="text"] {
802 background: var(--bg);
803 border: 1px solid var(--border);
804 border-radius: 6px;
805 padding: 0.5rem 0.75rem;
806 color: var(--text);
807 font-size: 0.95rem;
808 outline: none;
809 transition: border-color var(--transition);
810}
811
812#admin-userfolder-section input[type="text"]:focus {
813 border-color: var(--accent);
814}
815
816/* =========================================================
817 FILE PREVIEW — SHARED MEDIA STYLES
818 ========================================================= */
819.preview-media {
820 max-width: 100%;
821 max-height: 100%;
822 width: auto;
823 height: auto;
824 object-fit: contain;
825}
826
827.preview-frame {
828 width: 100%;
829 height: 100%;
830 border: none;
831 border-radius: 8px;
832 background: #fff;
833}
834
835.preview-audio {
836 width: min(640px, 95%);
837}
838
839.preview-text {
840 width: 100%;
841 min-height: 100%;
842 color: #dce4ff;
843 background: #0d111a;
844 border: 1px solid var(--border);
845 border-radius: 8px;
846 padding: 0.9rem;
847 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
848 overflow: auto;
849 white-space: pre;
850 text-align: left;
851}
852
853.preview-code .tok-comment {
854 color: #6f7f9a;
855}
856
857.preview-code .tok-string {
858 color: #9ee37d;
859}
860
861.preview-code .tok-number {
862 color: #f8c46a;
863}
864
865.preview-code .tok-keyword {
866 color: #8bb4ff;
867 font-weight: 600;
868}
869
870.preview-code .tok-key {
871 color: #59c8ff;
872}
873
874.preview-unsupported {
875 color: var(--text-muted);
876 font-size: 0.95rem;
877 max-width: 56ch;
878 text-align: center;
879}
880
881.preview-footer {
882 border-top: 1px solid var(--border);
883 padding: 0.8rem 1rem;
884 display: flex;
885 justify-content: flex-end;
886}
887
888.preview-footer .primary {
889 width: auto;
890 margin-top: 0;
891 min-width: 8rem;
892}
893
894
895
896/* =========================================================
897
898.toast-msg {
899 background: var(--surface2);
900 border: 1px solid var(--border);
901 border-radius: 8px;
902 padding: 0.6rem 1.25rem;
903 font-size: 0.9rem;
904 animation: slideup 0.25s ease;
905}
906
907.toast-msg.err {
908 border-color: var(--danger);
909 color: var(--danger);
910}
911
912.toast-msg.ok {
913 border-color: var(--success);
914 color: var(--success);
915}
916
917@keyframes slideup {
918 from {
919 opacity: 0;
920 transform: translateY(12px);
921 }
922
923 to {
924 opacity: 1;
925 transform: translateY(0);
926 }
927}
928
929/* =========================================================
930 UPLOAD PROGRESS
931 ========================================================= */
932.upload-bar-wrap {
933 position: fixed;
934 bottom: 0;
935 left: 0;
936 right: 0;
937 background: var(--surface);
938 border-top: 1px solid var(--border);
939 padding: 0.5rem 1rem;
940 z-index: 80;
941 font-size: 0.85rem;
942}
943
944.upload-bar-track {
945 height: 6px;
946 background: var(--border);
947 border-radius: 3px;
948 margin-top: 0.3rem;
949}
950
951.upload-bar-fill {
952 height: 100%;
953 background: var(--accent);
954 border-radius: 3px;
955 transition: width 0.2s linear;
956}
957
958/* =========================================================
959 RESPONSIVE — narrow screens
960 ========================================================= */
961@media (max-width: 600px) {
962 #topbar {
963 height: auto;
964 min-height: var(--topbar-h);
965 padding: 0.5rem 0.6rem;
966 align-items: flex-start;
967 flex-direction: column;
968 }
969
970 #breadcrumb-wrap {
971 width: 100%;
972 }
973
974 #topbar-actions {
975 width: 100%;
976 flex-wrap: wrap;
977 gap: 0.15rem;
978 }
979
980 .icon-btn {
981 padding: 0.4rem 0.55rem;
982 font-size: 0.82rem;
983 }
984
985 #main-content {
986 padding: 0.9rem;
987 }
988
989 #file-grid {
990 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
991 }
992
993 #app.sidebar-open #main-content {
994 margin-right: 0;
995 }
996
997 #sidebar {
998 top: auto;
999 right: 0;
1000 bottom: 0;
1001 left: 0;
1002 height: auto;
1003 max-height: min(68vh, calc(100vh - 0.5rem));
1004 padding: 0.9rem 0.9rem 1rem;
1005 border-left: none;
1006 border-top: 1px solid var(--border);
1007 width: 100%;
1008 border-radius: 14px 14px 0 0;
1009 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1010 gap: 0.55rem;
1011 }
1012
1013 #sidebar-close {
1014 display: inline-flex;
1015 position: absolute;
1016 top: 0.45rem;
1017 right: 0.45rem;
1018 border-color: var(--border);
1019 background: var(--surface2);
1020 }
1021
1022 #sidebar-name {
1023 padding-right: 2rem;
1024 }
1025
1026 #sidebar-icon svg {
1027 width: 54px;
1028 height: 54px;
1029 }
1030
1031 #sidebar-actions {
1032 margin-top: 0.2rem;
1033 }
1034
1035 .modal {
1036 padding: 1.25rem;
1037 }
1038
1039 .preview-overlay {
1040 padding: 0.8rem;
1041 }
1042
1043 .preview-sheet {
1044 width: 100%;
1045 height: 92vh;
1046 }
1047
1048 .preview-fold {
1049 width: 54px;
1050 height: 54px;
1051 }
1052
1053 .preview-close {
1054 top: 5px;
1055 right: 5px;
1056 }
1057}
1058
1059/* =========================================================
1060 DIALOG MODALS (confirm / prompt / overwrite)
1061 ========================================================= */
1062.dialog-message {
1063 color: var(--text-muted);
1064 font-size: 0.93rem;
1065 margin: 0 0 1.5rem;
1066 line-height: 1.5;
1067 word-break: break-word;
1068}
1069
1070.dialog-actions {
1071 display: flex;
1072 gap: 0.6rem;
1073 justify-content: flex-end;
1074 flex-wrap: wrap;
1075}
1076
1077.dialog-actions--overwrite {
1078 justify-content: space-between;
1079}
1080
1081.dialog-actions button {
1082 min-width: 5rem;
1083 background: var(--surface2);
1084 color: var(--text);
1085 padding: 0.5rem 1rem;
1086}
1087
1088.dialog-actions button:hover {
1089 background: var(--border);
1090}
1091
1092/* Override .primary full-width inside dialog rows */
1093.dialog-actions button.primary {
1094 width: auto;
1095 margin-top: 0;
1096}