BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

style.css 31.9 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-group-separator {
436 grid-column: 1 / -1;
437 display: flex;
438 align-items: center;
439 gap: 0.55rem;
440 margin-top: 0.1rem;
441 margin-bottom: 0.1rem;
442 color: var(--text-muted);
443 font-size: 0.76rem;
444 letter-spacing: 0.02em;
445}
446
447.file-group-separator::before,
448.file-group-separator::after {
449 content: '';
450 height: 1px;
451 background: var(--border);
452 flex: 1;
453}
454
455.file-group-separator span {
456 padding: 0.12rem 0.45rem;
457 border: 1px solid var(--border);
458 border-radius: 999px;
459 background: rgba(255, 255, 255, 0.02);
460 white-space: nowrap;
461}
462
463.file-item {
464 display: flex;
465 flex-direction: column;
466 align-items: center;
467 padding: 0.9rem 0.5rem 0.7rem;
468 border-radius: var(--radius);
469 border: 1px solid transparent;
470 cursor: pointer;
471 user-select: none;
472 transition: background var(--transition), border-color var(--transition);
473 text-align: center;
474 gap: 0.4rem;
475 position: relative;
476 touch-action: manipulation;
477}
478
479.file-item:hover {
480 background: var(--surface);
481 border-color: var(--border);
482}
483
484.file-item.file-item--preview-placeholder {
485 visibility: hidden;
486 pointer-events: none;
487}
488
489.file-item.selected {
490 background: var(--surface2);
491 border-color: var(--accent);
492}
493
494.file-item .icon {
495 width: 52px;
496 height: 52px;
497 display: flex;
498 align-items: center;
499 justify-content: center;
500 position: relative;
501}
502
503.file-item .icon.thumb-pending::after {
504 content: '';
505 position: absolute;
506 width: 14px;
507 height: 14px;
508 left: 50%;
509 top: 50%;
510 border: 2px solid rgba(232, 234, 240, 0.35);
511 border-top-color: var(--accent);
512 border-radius: 50%;
513 animation: icon-thumb-spin 0.75s linear infinite;
514 background: rgba(15, 17, 23, 0.85);
515}
516
517@keyframes icon-thumb-spin {
518 from {
519 transform: translate(-50%, -50%) rotate(0deg);
520 }
521
522 to {
523 transform: translate(-50%, -50%) rotate(360deg);
524 }
525}
526
527.file-item .icon svg {
528 width: 100%;
529 height: 100%;
530}
531
532.file-item .icon .watched-overlay {
533 position: absolute;
534 left: 50%;
535 top: 50%;
536 width: 28px;
537 height: 28px;
538 transform: translate(-50%, -50%);
539 display: flex;
540 align-items: center;
541 justify-content: center;
542 pointer-events: none;
543 border-radius: 50%;
544 background: rgba(15, 17, 23, 0.45);
545}
546
547.file-item .icon .watched-overlay--partway {
548 width: 16.8px;
549 height: 16.8px;
550}
551
552.file-item .icon .watched-overlay--partway path {
553 fill: #8f98a5;
554}
555
556.file-item .icon .watched-overlay-svg {
557 width: 100%;
558 height: 100%;
559}
560
561.file-item .name {
562 font-size: 0.8rem;
563 word-break: normal;
564 overflow-wrap: anywhere;
565 max-width: 100%;
566 line-height: 1.3;
567 color: var(--text);
568 white-space: normal;
569 overflow: hidden;
570 text-overflow: ellipsis;
571 max-height: calc(1.3em * 4);
572 display: -webkit-box;
573 -webkit-box-orient: vertical;
574 -webkit-line-clamp: 4;
575 line-clamp: 4;
576}
577
578/* =========================================================
579 SIDEBAR
580 ========================================================= */
581#sidebar {
582 position: fixed;
583 top: var(--topbar-h);
584 right: 0;
585 bottom: 0;
586 width: var(--sidebar-w);
587 background: var(--surface);
588 border-left: 1px solid var(--border);
589 padding: 1.25rem;
590 overflow-y: auto;
591 z-index: 20;
592 display: flex;
593 flex-direction: column;
594 gap: 0.75rem;
595}
596
597#sidebar-close {
598 display: none;
599 align-items: center;
600 justify-content: center;
601 width: 1.7rem;
602 height: 1.7rem;
603 border: 1px solid transparent;
604 border-radius: 999px;
605 background: transparent;
606 color: var(--text-muted);
607 font-size: 1rem;
608 line-height: 1;
609}
610
611#sidebar-close:hover {
612 background: var(--surface2);
613 color: var(--text);
614}
615
616#sidebar-icon {
617 display: flex;
618 justify-content: center;
619}
620
621#sidebar-icon svg {
622 width: 64px;
623 height: 64px;
624}
625
626#sidebar-name {
627 font-size: 1rem;
628 word-break: break-all;
629 text-align: center;
630}
631
632#sidebar-meta {
633 display: grid;
634 grid-template-columns: auto 1fr;
635 gap: 0.3rem 0.75rem;
636}
637
638#sidebar-meta dt {
639 color: var(--text-muted);
640 font-size: 0.8rem;
641 font-weight: 600;
642}
643
644#sidebar-meta dd {
645 font-size: 0.8rem;
646 word-break: break-all;
647}
648
649#sidebar-meta .root-access-list {
650 margin: 0;
651 padding-left: 1rem;
652}
653
654#sidebar-meta .root-access-list li {
655 margin: 0.12rem 0;
656}
657
658#sidebar-actions {
659 display: flex;
660 flex-direction: column;
661 gap: 0.5rem;
662 margin-top: 0.5rem;
663}
664
665#sidebar-actions button {
666 background: var(--surface2);
667 color: var(--text);
668 padding: 0.5rem 0.8rem;
669 text-align: left;
670}
671
672#sidebar-actions button:hover {
673 background: var(--border);
674}
675
676#sidebar-actions button.danger {
677 color: var(--danger);
678}
679
680.sidebar-view-options {
681 display: flex;
682 flex-direction: column;
683 gap: 0.5rem;
684 border-top: 1px solid var(--border);
685 padding-top: 0.7rem;
686 margin-top: 0.2rem;
687}
688
689.sidebar-view-options h3 {
690 margin: 0;
691 font-size: 0.82rem;
692 color: var(--text-muted);
693 text-transform: uppercase;
694 letter-spacing: 0.04em;
695}
696
697.sidebar-view-option-label {
698 display: flex;
699 flex-direction: column;
700 gap: 0.28rem;
701 font-size: 0.8rem;
702 color: var(--text-muted);
703}
704
705.sidebar-view-option-control {
706 width: 100%;
707 background: var(--surface2);
708 border: 1px solid var(--border);
709 border-radius: var(--radius);
710 color: var(--text);
711 padding: 0.42rem 0.5rem;
712}
713
714.sidebar-view-toggle {
715 display: flex;
716 align-items: center;
717 gap: 0.45rem;
718 font-size: 0.8rem;
719 color: var(--text);
720}
721
722.custom-context-menu {
723 position: fixed;
724 min-width: 220px;
725 max-width: min(320px, calc(100vw - 12px));
726 background: var(--surface);
727 border: 1px solid var(--border);
728 border-radius: var(--radius);
729 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
730 padding: 0.35rem;
731 z-index: 12000;
732}
733
734.custom-context-menu button,
735.custom-context-menu .custom-context-menu-item {
736 display: flex;
737 align-items: center;
738 justify-content: space-between;
739 width: 100%;
740 background: transparent;
741 color: var(--text);
742 padding: 0.45rem 0.55rem;
743 text-align: left;
744 border-radius: 6px;
745}
746
747.custom-context-menu button:hover,
748.custom-context-menu .custom-context-menu-item:hover {
749 background: var(--surface2);
750}
751
752.custom-context-menu button.danger,
753.custom-context-menu .custom-context-menu-item.danger {
754 color: var(--danger);
755}
756
757.custom-context-menu-separator {
758 height: 1px;
759 background: var(--border);
760 margin: 0.32rem 0;
761}
762
763.custom-context-menu-row {
764 position: relative;
765}
766
767.custom-context-submenu {
768 position: absolute;
769 top: 0;
770 left: calc(100% + 0.3rem);
771 min-width: 210px;
772 background: var(--surface);
773 border: 1px solid var(--border);
774 border-radius: var(--radius);
775 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
776 padding: 0.35rem;
777 display: none;
778}
779
780.custom-context-menu-row:hover>.custom-context-submenu,
781.custom-context-menu-row:focus-within>.custom-context-submenu {
782 display: block;
783}
784
785/* ─── Duplicates panel ─────────────────────────────────── */
786#sidebar-duplicates {
787 margin-top: 1rem;
788 border-top: 1px solid var(--border);
789 padding-top: 0.75rem;
790}
791
792.sidebar-duplicates-heading {
793 font-size: 0.75rem;
794 font-weight: 600;
795 text-transform: uppercase;
796 letter-spacing: 0.05em;
797 color: var(--text-muted, #888);
798 margin: 0 0 0.4rem;
799}
800
801.sidebar-duplicates-list {
802 list-style: none;
803 margin: 0;
804 padding: 0;
805 display: flex;
806 flex-direction: column;
807 gap: 0.25rem;
808}
809
810.sidebar-duplicate-entry {
811 display: block;
812 width: 100%;
813 background: var(--surface2);
814 color: var(--text);
815 padding: 0.35rem 0.6rem;
816 text-align: left;
817 font-size: 0.8rem;
818 white-space: nowrap;
819 overflow: hidden;
820 text-overflow: ellipsis;
821 border-radius: var(--radius);
822 cursor: pointer;
823}
824
825.sidebar-duplicate-entry:hover {
826 background: var(--border);
827}
828
829.admin-size-feedback {
830 font-size: 0.82rem;
831 margin: 0.25rem 0 0.5rem;
832 padding: 0.25rem 0.5rem;
833 border-radius: var(--radius);
834}
835
836.admin-size-feedback.ok {
837 color: var(--accent);
838}
839
840.admin-size-feedback.err {
841 color: #e55;
842}
843
844/* =========================================================
845 MODALS
846 ========================================================= */
847.modal-overlay {
848 position: fixed;
849 inset: 0;
850 background: rgba(0, 0, 0, 0.65);
851 display: flex;
852 align-items: center;
853 justify-content: center;
854 z-index: 11000;
855}
856
857#file-conflict-modal,
858#overwrite-modal {
859 z-index: 11150;
860}
861
862.modal {
863 background: var(--surface);
864 border: 1px solid var(--border);
865 border-radius: var(--radius);
866 padding: 2rem;
867 width: min(560px, 94vw);
868 max-height: 90vh;
869 overflow-y: auto;
870 position: relative;
871}
872
873.modal.small {
874 width: min(340px, 94vw);
875}
876
877#confirm-modal .modal.confirm-modal-wide {
878 width: min(760px, 94vw);
879}
880
881.modal h2 {
882 font-size: 1.3rem;
883 margin-bottom: 1.25rem;
884}
885
886.modal h3 {
887 font-size: 1rem;
888 color: var(--text-muted);
889 margin: 1rem 0 0.5rem;
890}
891
892.modal-close {
893 position: absolute;
894 top: 0.75rem;
895 right: 0.75rem;
896 background: none;
897 color: var(--text-muted);
898 font-size: 1.1rem;
899 padding: 0.25rem 0.5rem;
900}
901
902.modal-close:hover {
903 color: var(--text);
904}
905
906.update-commit-list {
907 max-height: min(48vh, 420px);
908 overflow: auto;
909 border: 1px solid var(--border);
910 border-radius: 10px;
911 background: var(--bg);
912 padding: 0.6rem 0.8rem;
913}
914
915.update-commit-item+.update-commit-item {
916 margin-top: 0.9rem;
917 padding-top: 0.9rem;
918 border-top: 1px solid var(--border);
919}
920
921.update-commit-item h3 {
922 margin: 0;
923 font-size: 1.06rem;
924 font-weight: 700;
925 color: var(--text);
926}
927
928.update-commit-hash {
929 color: var(--text-muted);
930 font-weight: 600;
931 font-size: 0.9rem;
932}
933
934.update-commit-subject {
935 color: var(--text);
936}
937
938.update-commit-body {
939 margin: 0.45rem 0 0;
940 font-size: 0.94rem;
941 color: var(--text-muted);
942 line-height: 1.45;
943}
944
945/* =========================================================
946 FOLDER ICON PICKER
947 ========================================================= */
948.folder-icon-modal {
949 width: min(680px, 94vw);
950 max-height: 90vh;
951 display: flex;
952 flex-direction: column;
953 gap: 0.75rem;
954 overflow: hidden;
955}
956
957.folder-icon-grid {
958 display: grid;
959 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
960 gap: 0.5rem;
961 max-height: 50vh;
962 overflow-y: auto;
963 padding: 0.25rem;
964 background: var(--bg);
965 border: 1px solid var(--border);
966 border-radius: var(--radius);
967}
968
969.folder-icon-filter {
970 width: 100%;
971 background: var(--bg);
972 border: 1px solid var(--border);
973 border-radius: 6px;
974 color: var(--text);
975 font-size: 0.9rem;
976 padding: 0.48rem 0.68rem;
977 outline: none;
978}
979
980.folder-icon-filter:focus {
981 border-color: var(--accent);
982}
983
984.debug-modal {
985 width: min(980px, 96vw);
986 max-height: 92vh;
987}
988
989.debug-toolbar {
990 display: flex;
991 justify-content: space-between;
992 align-items: center;
993 gap: 0.8rem;
994 margin: 0.75rem 0 1rem;
995}
996
997.debug-section-head {
998 display: flex;
999 align-items: center;
1000 justify-content: space-between;
1001 gap: 0.8rem;
1002}
1003
1004.debug-copy-btn {
1005 padding: 0.3rem 0.55rem;
1006 border-radius: 7px;
1007 font-size: 0.78rem;
1008 border: 1px solid var(--border);
1009 background: var(--bg);
1010 color: var(--text-muted);
1011}
1012
1013.debug-copy-btn:hover {
1014 color: var(--text);
1015 border-color: var(--accent);
1016}
1017
1018.debug-summary-grid {
1019 display: grid;
1020 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
1021 gap: 0.6rem;
1022 margin-bottom: 0.8rem;
1023}
1024
1025.debug-summary-item {
1026 background: var(--bg);
1027 border: 1px solid var(--border);
1028 border-radius: 10px;
1029 padding: 0.55rem 0.7rem;
1030}
1031
1032.debug-summary-item .k {
1033 display: block;
1034 color: var(--text-muted);
1035 font-size: 0.82rem;
1036}
1037
1038.debug-summary-item .v {
1039 display: block;
1040 color: var(--text);
1041 font-weight: 650;
1042 margin-top: 0.12rem;
1043}
1044
1045.debug-chips {
1046 display: flex;
1047 flex-wrap: wrap;
1048 gap: 0.45rem;
1049}
1050
1051.debug-chip {
1052 border: 1px solid var(--border);
1053 border-radius: 999px;
1054 padding: 0.22rem 0.6rem;
1055 background: var(--bg);
1056 font-size: 0.82rem;
1057}
1058
1059.debug-table-wrap {
1060 border: 1px solid var(--border);
1061 border-radius: 10px;
1062 overflow: auto;
1063 background: var(--bg);
1064}
1065
1066.debug-table {
1067 width: 100%;
1068 border-collapse: collapse;
1069 font-size: 0.85rem;
1070}
1071
1072.debug-table th,
1073.debug-table td {
1074 border-bottom: 1px solid var(--border);
1075 text-align: left;
1076 vertical-align: top;
1077 padding: 0.45rem 0.55rem;
1078}
1079
1080.debug-table thead th {
1081 position: sticky;
1082 top: 0;
1083 z-index: 1;
1084 background: var(--surface);
1085}
1086
1087.debug-table tr:last-child td {
1088 border-bottom: 0;
1089}
1090
1091.debug-path {
1092 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1093 word-break: break-word;
1094}
1095
1096.folder-icon-cell {
1097 display: flex;
1098 flex-direction: column;
1099 align-items: center;
1100 gap: 0.3rem;
1101 padding: 0.4rem;
1102 border-radius: var(--radius);
1103 border: 2px solid transparent;
1104 cursor: pointer;
1105 transition: border-color var(--transition), background var(--transition);
1106}
1107
1108.folder-icon-cell:hover {
1109 background: var(--surface2);
1110}
1111
1112.folder-icon-cell.selected {
1113 border-color: var(--accent);
1114 background: rgba(91, 127, 255, 0.12);
1115}
1116
1117.folder-icon-thumb {
1118 width: 60px;
1119 height: 60px;
1120 object-fit: cover;
1121 border-radius: 4px;
1122 background: var(--surface2);
1123}
1124
1125.folder-icon-label {
1126 font-size: 0.68rem;
1127 color: var(--text-muted);
1128 word-break: break-all;
1129 text-align: center;
1130 max-width: 72px;
1131 overflow: hidden;
1132 display: -webkit-box;
1133 -webkit-line-clamp: 2;
1134 -webkit-box-orient: vertical;
1135}
1136
1137.vjs-text-track-cue>div {
1138 background: transparent !important;
1139 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
1140 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
1141}
1142
1143/* Admin path list */
1144.path-row {
1145 display: flex;
1146 align-items: center;
1147 gap: 0.5rem;
1148 padding: 0.4rem 0;
1149 border-bottom: 1px solid var(--border);
1150 font-size: 0.88rem;
1151}
1152
1153.path-row span {
1154 flex: 1;
1155 word-break: break-all;
1156}
1157
1158.path-row button {
1159 background: none;
1160 color: var(--danger);
1161 padding: 0.2rem 0.5rem;
1162}
1163
1164.path-add-row {
1165 display: flex;
1166 gap: 0.5rem;
1167 margin: 0.5rem 0;
1168}
1169
1170.path-add-row input {
1171 flex: 1;
1172 background: var(--bg);
1173 border: 1px solid var(--border);
1174 border-radius: 6px;
1175 padding: 0.45rem 0.7rem;
1176 color: var(--text);
1177 font-size: 0.9rem;
1178 outline: none;
1179}
1180
1181.path-add-row input:focus {
1182 border-color: var(--accent);
1183}
1184
1185.path-add-row button {
1186 background: var(--surface2);
1187 color: var(--text);
1188 padding: 0.45rem 0.9rem;
1189}
1190
1191.path-add-row button:hover {
1192 background: var(--border);
1193}
1194
1195.admin-favicon-row {
1196 display: flex;
1197 align-items: center;
1198 justify-content: space-between;
1199 margin: 0.35rem 0 0.6rem;
1200 font-size: 0.88rem;
1201 color: var(--text-muted);
1202}
1203
1204.admin-favicon-row .icon-btn {
1205 color: var(--text);
1206 background: var(--surface2);
1207}
1208
1209.admin-favicon-row .icon-btn:hover {
1210 background: var(--border);
1211}
1212
1213/* User list */
1214.user-row {
1215 display: flex;
1216 align-items: center;
1217 gap: 0.6rem;
1218 padding: 0.5rem 0;
1219 border-bottom: 1px solid var(--border);
1220}
1221
1222.user-row .user-name {
1223 flex: 1;
1224 font-weight: 600;
1225 font-size: 0.9rem;
1226}
1227
1228.user-row .user-admin-badge {
1229 font-size: 0.72rem;
1230 background: var(--accent);
1231 color: #fff;
1232 border-radius: 4px;
1233 padding: 0.1rem 0.4rem;
1234}
1235
1236.user-row button {
1237 background: none;
1238 color: var(--text-muted);
1239 padding: 0.2rem 0.5rem;
1240 font-size: 0.85rem;
1241}
1242
1243.user-row button:hover {
1244 color: var(--text);
1245}
1246
1247.user-row button.danger {
1248 color: var(--danger);
1249}
1250
1251#admin-orphan-userfolders-section {
1252 margin-top: 1rem;
1253 padding-top: 0.55rem;
1254 border-top: 1px solid var(--border);
1255}
1256
1257#admin-orphan-userfolders-section h4 {
1258 margin: 0 0 0.35rem;
1259 font-size: 0.86rem;
1260 color: var(--text);
1261}
1262
1263.orphan-folder-row .orphan-folder-meta {
1264 font-size: 0.8rem;
1265 color: var(--text-muted);
1266}
1267
1268/* User form permissions */
1269#user-permissions {
1270 margin-top: 0.75rem;
1271}
1272
1273#user-permissions h4 {
1274 font-size: 0.85rem;
1275 color: var(--text-muted);
1276 margin-bottom: 0.4rem;
1277}
1278
1279.perm-row {
1280 display: flex;
1281 align-items: center;
1282 gap: 0.75rem;
1283 flex-wrap: wrap;
1284 font-size: 0.85rem;
1285 margin-bottom: 0.4rem;
1286}
1287
1288.perm-row .perm-label {
1289 min-width: 130px;
1290 color: var(--text);
1291}
1292
1293.checkbox-label {
1294 display: flex;
1295 align-items: center;
1296 gap: 0.5rem;
1297 font-size: 0.9rem;
1298 margin-bottom: 0.5rem;
1299}
1300
1301.checkbox-label input[type="checkbox"] {
1302 width: 16px;
1303 height: 16px;
1304 accent-color: var(--accent);
1305}
1306
1307/* Form labels in modals */
1308.modal form label {
1309 display: flex;
1310 flex-direction: column;
1311 gap: 0.3rem;
1312 font-size: 0.85rem;
1313 color: var(--text-muted);
1314 margin-bottom: 0.9rem;
1315}
1316
1317.modal form input[type="text"],
1318.modal form input[type="password"] {
1319 background: var(--bg);
1320 border: 1px solid var(--border);
1321 border-radius: 6px;
1322 padding: 0.5rem 0.75rem;
1323 color: var(--text);
1324 font-size: 0.95rem;
1325 outline: none;
1326 transition: border-color var(--transition);
1327}
1328
1329.modal form input:focus {
1330 border-color: var(--accent);
1331}
1332
1333/* Admin user-folder controls use the same visual language as modal forms. */
1334#admin-userfolder-section label {
1335 display: flex;
1336 flex-direction: column;
1337 gap: 0.3rem;
1338 font-size: 0.85rem;
1339 color: var(--text-muted);
1340 margin-bottom: 0.9rem;
1341}
1342
1343#admin-userfolder-section input[type="text"] {
1344 background: var(--bg);
1345 border: 1px solid var(--border);
1346 border-radius: 6px;
1347 padding: 0.5rem 0.75rem;
1348 color: var(--text);
1349 font-size: 0.95rem;
1350 outline: none;
1351 transition: border-color var(--transition);
1352}
1353
1354#admin-userfolder-section input[type="text"]:focus {
1355 border-color: var(--accent);
1356}
1357
1358/* =========================================================
1359 FILE PREVIEW — SHARED MEDIA STYLES
1360 ========================================================= */
1361.preview-media {
1362 max-width: 100%;
1363 max-height: 100%;
1364 width: auto;
1365 height: auto;
1366 object-fit: contain;
1367}
1368
1369.preview-frame {
1370 width: 100%;
1371 height: 100%;
1372 border: none;
1373 border-radius: 8px;
1374 background: #fff;
1375}
1376
1377.preview-audio {
1378 width: min(640px, 95%);
1379}
1380
1381.preview-model-wrap {
1382 width: 100%;
1383 height: 100%;
1384 min-height: 240px;
1385 border: 1px solid var(--border);
1386 border-radius: 8px;
1387 background: #0d111a;
1388 display: flex;
1389 flex-direction: column;
1390 align-items: stretch;
1391 justify-content: stretch;
1392 overflow: hidden;
1393}
1394
1395.preview-model-canvas {
1396 flex: 1 1 auto;
1397 width: 100%;
1398 min-height: 180px;
1399 display: block;
1400 cursor: grab;
1401}
1402
1403.preview-model-canvas:active {
1404 cursor: grabbing;
1405}
1406
1407.preview-model-hint {
1408 margin: 0;
1409 padding: 0.45rem 0.7rem;
1410 border-top: 1px solid rgba(120, 128, 160, 0.35);
1411 color: #b8c4e8;
1412 font-size: 0.78rem;
1413 text-align: center;
1414}
1415
1416.preview-text {
1417 width: 100%;
1418 min-height: 100%;
1419 color: #dce4ff;
1420 background: #0d111a;
1421 border: 1px solid var(--border);
1422 border-radius: 8px;
1423 padding: 0.9rem;
1424 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1425 overflow: auto;
1426 white-space: pre;
1427 text-align: left;
1428}
1429
1430.preview-code .tok-comment {
1431 color: #6f7f9a;
1432}
1433
1434.preview-code .tok-string {
1435 color: #9ee37d;
1436}
1437
1438.preview-code .tok-number {
1439 color: #f8c46a;
1440}
1441
1442.preview-code .tok-keyword {
1443 color: #8bb4ff;
1444 font-weight: 600;
1445}
1446
1447.preview-code .tok-key {
1448 color: #59c8ff;
1449}
1450
1451.preview-unsupported {
1452 color: var(--text-muted);
1453 font-size: 0.95rem;
1454 max-width: 56ch;
1455 text-align: center;
1456}
1457
1458.preview-footer {
1459 border-top: 1px solid var(--border);
1460 padding: 0.8rem 1rem;
1461 display: flex;
1462 justify-content: flex-end;
1463}
1464
1465.preview-footer .primary {
1466 width: auto;
1467 margin-top: 0;
1468 min-width: 8rem;
1469}
1470
1471
1472
1473/* =========================================================
1474
1475.toast-msg {
1476 background: var(--surface2);
1477 border: 1px solid var(--border);
1478 border-radius: 8px;
1479 padding: 0.6rem 1.25rem;
1480 font-size: 0.9rem;
1481 animation: slideup 0.25s ease;
1482}
1483
1484.toast-msg.err {
1485 border-color: var(--danger);
1486 color: var(--danger);
1487}
1488
1489.toast-msg.ok {
1490 border-color: var(--success);
1491 color: var(--success);
1492}
1493
1494@keyframes slideup {
1495 from {
1496 opacity: 0;
1497 transform: translateY(12px);
1498 }
1499
1500 to {
1501 opacity: 1;
1502 transform: translateY(0);
1503 }
1504}
1505
1506/* =========================================================
1507 UPLOAD PROGRESS
1508 ========================================================= */
1509.upload-bar-wrap {
1510 position: fixed;
1511 bottom: 0;
1512 left: 0;
1513 right: 0;
1514 background: var(--surface);
1515 border-top: 1px solid var(--border);
1516 padding: 0.5rem 1rem;
1517 z-index: 80;
1518 font-size: 0.85rem;
1519}
1520
1521.upload-bar-track {
1522 height: 6px;
1523 background: var(--border);
1524 border-radius: 3px;
1525 margin-top: 0.3rem;
1526}
1527
1528.upload-bar-fill {
1529 height: 100%;
1530 background: var(--accent);
1531 border-radius: 3px;
1532 transition: width 0.2s linear;
1533}
1534
1535/* =========================================================
1536 RESPONSIVE — narrow screens
1537 ========================================================= */
1538@media (max-width: 600px) {
1539 #topbar {
1540 height: auto;
1541 min-height: var(--topbar-h);
1542 padding: 0.5rem 0.6rem;
1543 align-items: flex-start;
1544 flex-direction: column;
1545 }
1546
1547 #topbar>#btn-refresh {
1548 align-self: flex-start;
1549 }
1550
1551 #breadcrumb-wrap {
1552 width: 100%;
1553 }
1554
1555 #topbar-actions {
1556 width: 100%;
1557 flex-wrap: wrap;
1558 gap: 0.15rem;
1559 }
1560
1561 .top-search {
1562 order: -1;
1563 width: 100%;
1564 margin-right: 0;
1565 }
1566
1567 .top-search input {
1568 flex: 1;
1569 min-width: 0;
1570 width: auto;
1571 }
1572
1573 .topbar-dropdown-menu {
1574 position: fixed;
1575 top: calc(var(--topbar-h) + 0.35rem);
1576 left: 0.6rem;
1577 right: 0.6rem;
1578 min-width: 0;
1579 }
1580
1581 .topbar-dropdown-menu--right {
1582 left: 0.6rem;
1583 right: 0.6rem;
1584 }
1585
1586 .icon-btn {
1587 padding: 0.4rem 0.55rem;
1588 font-size: 0.82rem;
1589 }
1590
1591 #main-content {
1592 padding: 0.9rem;
1593 }
1594
1595 #file-grid {
1596 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1597 }
1598
1599 #app.sidebar-open #main-content {
1600 margin-right: 0;
1601 }
1602
1603 #sidebar {
1604 top: auto;
1605 right: 0;
1606 bottom: 0;
1607 left: 0;
1608 height: auto;
1609 max-height: min(68vh, calc(100vh - 0.5rem));
1610 padding: 0.9rem 0.9rem 1rem;
1611 border-left: none;
1612 border-top: 1px solid var(--border);
1613 width: 100%;
1614 border-radius: 14px 14px 0 0;
1615 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1616 gap: 0.55rem;
1617 }
1618
1619 #sidebar-close {
1620 display: inline-flex;
1621 position: absolute;
1622 top: 0.45rem;
1623 right: 0.45rem;
1624 border-color: var(--border);
1625 background: var(--surface2);
1626 }
1627
1628 #sidebar-name {
1629 padding-right: 2rem;
1630 }
1631
1632 #sidebar-icon svg {
1633 width: 54px;
1634 height: 54px;
1635 }
1636
1637 #sidebar-actions {
1638 margin-top: 0.2rem;
1639 }
1640
1641 .modal {
1642 padding: 1.25rem;
1643 }
1644
1645 .preview-overlay {
1646 padding: 0.8rem;
1647 }
1648
1649 .preview-sheet {
1650 width: 100%;
1651 height: 92vh;
1652 }
1653
1654 .preview-fold {
1655 width: 54px;
1656 height: 54px;
1657 }
1658
1659 .preview-close {
1660 top: 5px;
1661 right: 5px;
1662 }
1663}
1664
1665/* =========================================================
1666 DIALOG MODALS (confirm / prompt / overwrite)
1667 ========================================================= */
1668.dialog-message {
1669 color: var(--text-muted);
1670 font-size: 0.93rem;
1671 margin: 0 0 1.5rem;
1672 line-height: 1.5;
1673 word-break: break-word;
1674}
1675
1676.dialog-actions {
1677 display: flex;
1678 gap: 0.6rem;
1679 justify-content: flex-end;
1680 flex-wrap: wrap;
1681}
1682
1683.dialog-actions--overwrite {
1684 justify-content: space-between;
1685}
1686
1687.dialog-actions button {
1688 min-width: 5rem;
1689 background: var(--surface2);
1690 color: var(--text);
1691 padding: 0.5rem 1rem;
1692}
1693
1694.dialog-actions button:hover {
1695 background: var(--border);
1696}
1697
1698/* Override .primary full-width inside dialog rows */
1699.dialog-actions button.primary {
1700 width: auto;
1701 margin-top: 0;
1702}