BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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