BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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