BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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