BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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