BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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