BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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