BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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