/** * ───────────────────────────────────────────── * SPB Drive — Personal Cloud Drive * ───────────────────────────────────────────── * Author : Simon-Pierre Boucher * Contact : contact@spboucher.ai * File : src/web/assets/app.css * Purpose : Full UI stylesheet — shell, views, overlays, share pages * License : MIT © Simon-Pierre Boucher * ───────────────────────────────────────────── */ * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font-sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } /* Signature aurora wash — a whisper of the brand at the top of every page. */ body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(46rem 24rem at 12% -6%, var(--aurora-a), transparent 60%), radial-gradient(40rem 22rem at 88% -8%, var(--aurora-b), transparent 60%), radial-gradient(30rem 18rem at 55% -12%, var(--aurora-c), transparent 65%); } a { color: var(--accent-ink); text-decoration: none; } a:hover { text-decoration: underline; } button { font: inherit; color: inherit; letter-spacing: inherit; } ::selection { background: var(--accent-soft); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } /* ── Primitives ─────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color 150ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--spring); white-space: nowrap; user-select: none; } .btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); } .btn:active { transform: scale(0.97); } .btn.primary { background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(79, 70, 229, 0.28); } .btn.primary:hover { filter: brightness(1.06); box-shadow: 0 4px 16px rgba(79, 70, 229, 0.36); } .btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); } .btn.ghost { background: transparent; border-color: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--surface-2); border-color: transparent; box-shadow: none; } .btn.icon { padding: 7px; border-radius: 11px; } .btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; } .btn svg { width: 16px; height: 16px; flex: none; } input[type='text'], input[type='password'], input[type='search'], input[type='number'], input[type='datetime-local'], select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font: inherit; width: 100%; transition: border-color 150ms var(--ease); } input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; } input[type='range'], input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); } label.field { display: block; margin-bottom: 12px; } label.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; } .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); cursor: pointer; user-select: none; } .chip.active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); } .chip .dot { width: 8px; height: 8px; border-radius: 50%; } kbd { font: 11px var(--font-mono); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; } .mono { font-family: var(--font-mono); } .muted { color: var(--muted); } .spin { animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ── Login ──────────────────────────────────────────────────── */ .login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px; } .login-card { width: 372px; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-2); } .login-logo { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 18px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font: 700 19px var(--font-mono); letter-spacing: -0.5px; box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3); } .login-card h1 { font-size: 19px; text-align: center; margin: 0 0 4px; } .login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 24px; } .login-error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; } .login-remember { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 13px; color: var(--muted); } .login-card .btn { width: 100%; justify-content: center; padding: 10px; } /* ── App shell ──────────────────────────────────────────────── */ .shell { display: grid; grid-template-rows: 60px 1fr; height: 100vh; height: 100dvh; } .topbar { display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--surface-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: relative; z-index: 10; } .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; letter-spacing: -0.02em; } .brand .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font: 700 12px var(--font-mono); box-shadow: 0 3px 10px rgba(79, 70, 229, 0.28); } .searchbox { flex: 1; max-width: 560px; position: relative; } .searchbox svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--muted); pointer-events: none; } .searchbox input { padding-left: 36px; background: var(--surface-2); border-radius: 999px; border-color: transparent; } .searchbox input:focus { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow-1); } .topbar .spacer { flex: 1; } .body { display: grid; grid-template-columns: 248px 1fr; min-height: 0; } .body.info-open { grid-template-columns: 248px 1fr 320px; } /* Sidebar */ .sidebar { background: transparent; border-right: 1px solid var(--border); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; } .sidebar-scrim { position: fixed; inset: 0; z-index: 64; background: var(--scrim); display: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } .new-btn { margin: 0 4px 12px; justify-content: center; font-weight: 600; padding: 10px; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-size: 13.5px; } .nav-item svg { width: 16px; height: 16px; color: var(--muted); flex: none; } .nav-item:hover { background: var(--surface-2); } .nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; } .nav-item.active svg { color: var(--accent-ink); } .nav-item .count { margin-left: auto; font-size: 11px; color: var(--muted); } .nav-section { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 14px 12px 4px; } .tree { margin: 2px 0; } .tree-row { display: flex; align-items: center; border-radius: var(--radius-sm); } .tree-row:hover { background: var(--surface-2); } .tree-row.active { background: var(--accent-soft); } .tree-row.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; } .tree-toggle { width: 22px; height: 26px; display: grid; place-items: center; background: none; border: none; cursor: pointer; color: var(--muted); flex: none; } .tree-toggle svg { width: 10px; height: 10px; transition: transform 150ms var(--ease); } .tree-toggle.open svg { transform: rotate(90deg); } .tree-label { flex: 1; display: flex; align-items: center; gap: 7px; padding: 4px 6px 4px 0; background: none; border: none; cursor: pointer; color: var(--text); font-size: 13px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .tree-label svg { width: 15px; height: 15px; flex: none; } .storage-meter { margin-top: auto; padding: 14px 12px 6px; border-top: 1px solid var(--border); } /* 2px surface gaps between stacked segments (mark spec) */ .storage-meter .bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; display: flex; gap: 2px; margin: 8px 0 6px; } .storage-meter .bar i { height: 100%; display: block; border-radius: 2px; } .storage-meter .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); } .storage-meter .legend .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; } /* Main pane */ .main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; } .toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); min-height: 52px; flex-wrap: wrap; } .crumbs { display: flex; align-items: center; gap: 2px; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; } .crumb { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-size: 13.5px; } .crumb:hover { background: var(--surface-2); color: var(--text); } .crumb.current { color: var(--text); font-weight: 600; } .crumb.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; } .crumb-sep { color: var(--muted); opacity: 0.5; } .sel-toolbar { display: flex; align-items: center; gap: 6px; } .sel-count { font-size: 13px; color: var(--accent-ink); font-weight: 600; margin-right: 6px; } .content { flex: 1; overflow-y: auto; padding: 14px 18px 80px; position: relative; } /* Grid view */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card, 168px), 1fr)); gap: 14px; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: default; position: relative; user-select: none; box-shadow: var(--shadow-1); transition: border-color 150ms var(--ease), background 150ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--spring); } .card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); } .card.selected { border-color: transparent; box-shadow: var(--ring), var(--shadow-1); background: var(--accent-soft); } .card.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; } .card .thumb { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; position: relative; } .card .thumb img { width: 100%; height: 100%; object-fit: cover; } .card .thumb svg.type-icon { width: 34%; height: 34%; } .card .thumb .badge { position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,0.72); color: #fff; font: 500 10.5px var(--font-mono); padding: 1px 6px; border-radius: 5px; } .card .meta { padding: 9px 11px; display: flex; align-items: center; gap: 8px; } .card .meta svg { width: 15px; height: 15px; flex: none; } .card .meta .name { flex: 1; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card .star-ind { position: absolute; left: 7px; top: 7px; width: 15px; height: 15px; color: var(--warning); filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); } .card .tag-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; } /* List view */ .list { display: flex; flex-direction: column; } .list-header, .row { display: grid; grid-template-columns: 30px minmax(200px, 1fr) 90px 110px 150px 140px; align-items: center; gap: 10px; padding: 5px 10px; border-radius: var(--radius-sm); } .list-header { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; position: sticky; top: 0; background: var(--bg); z-index: 2; } .list-header button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; display: flex; align-items: center; gap: 4px; padding: 4px 0; } .row { cursor: default; user-select: none; font-size: 13px; } .row:hover { background: var(--surface); } .row.selected { background: var(--accent-soft); } .row.drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; } .row .name { display: flex; align-items: center; gap: 9px; overflow: hidden; } .row .name svg { width: 16px; height: 16px; flex: none; } .row .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .cell { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .row .rowtags { display: flex; gap: 4px; } .row .star-cell { color: var(--warning); display: grid; place-items: center; } .row .star-cell svg { width: 14px; height: 14px; } /* Inline rename */ .rename-input { font: inherit; padding: 2px 6px !important; width: auto !important; min-width: 120px; } /* Selection rectangle */ .select-rect { position: absolute; border: 1px solid var(--accent); background: var(--accent-soft); z-index: 5; pointer-events: none; } /* Empty states */ .empty { display: grid; place-items: center; padding: 70px 20px; text-align: center; color: var(--muted); } .empty svg { width: 120px; height: 90px; margin-bottom: 18px; opacity: 0.9; } .empty h3 { color: var(--text); margin: 0 0 6px; font-size: 15px; } .empty p { margin: 0; font-size: 13px; } /* Skeletons */ .skeleton { border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; height: 150px; } @keyframes shimmer { to { background-position: -200% 0; } } /* ── Info panel ─────────────────────────────────────────────── */ .info-panel { background: var(--surface); border-left: 1px solid var(--border); overflow-y: auto; padding: 18px; display: none; } .body.info-open .info-panel { display: block; animation: slide-in 180ms var(--ease); } @keyframes slide-in { from { translate: 24px 0; opacity: 0; } } .info-thumb { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; } .info-thumb img { width: 100%; height: 100%; object-fit: cover; } .info-thumb svg { width: 56px; height: 56px; } .info-panel h3 { font-size: 14.5px; margin: 0 0 12px; word-break: break-word; } .kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 12.5px; margin-bottom: 16px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; } .info-section { border-top: 1px solid var(--border); padding-top: 13px; margin-top: 13px; } .info-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 9px; } .tag-editor { display: flex; flex-wrap: wrap; gap: 5px; } /* ── Context menu ───────────────────────────────────────────── */ .ctx-menu { position: fixed; z-index: 80; min-width: 218px; background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; animation: pop 130ms var(--spring); } @keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(3px); } } /* Mobile: context menu as a bottom sheet */ .ctx-menu.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; min-width: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); animation: sheet-up 220ms var(--spring); max-height: 70vh; overflow-y: auto; } .ctx-menu.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 10px; } .ctx-menu.sheet .ctx-item { padding: 13px 14px; font-size: 15px; border-radius: var(--radius-sm); } .ctx-menu.sheet .ctx-item svg { width: 18px; height: 18px; } @keyframes sheet-up { from { transform: translateY(40%); opacity: 0.4; } } .ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 11px; border: none; background: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; text-align: left; color: var(--text); } .ctx-item svg { width: 15px; height: 15px; color: var(--muted); flex: none; } .ctx-item:hover, .ctx-item.focused { background: var(--accent-soft); } .ctx-item.danger { color: var(--danger); } .ctx-item.danger svg { color: var(--danger); } .ctx-item kbd { margin-left: auto; } .ctx-sep { height: 1px; background: var(--border); margin: 5px 8px; } .ctx-colors { display: flex; gap: 6px; padding: 7px 11px; } .ctx-colors button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; } .ctx-colors button:hover { border-color: var(--text); } /* ── Toasts — inverted pills, readable over any content ─────── */ .toasts { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center; } .toast { display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border: none; border-radius: 999px; box-shadow: var(--shadow-pop); padding: 11px 20px; font-size: 13px; font-weight: 500; animation: toast-in 240ms var(--spring); } @keyframes toast-in { from { translate: 0 16px; opacity: 0; } } .toast button { background: none; border: none; color: var(--accent-2); font-weight: 700; cursor: pointer; padding: 0; } .toast.error { box-shadow: 0 0 0 2px var(--danger), var(--shadow-pop); } /* ── Modals ─────────────────────────────────────────────────── */ .modal-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; display: grid; place-items: center; animation: fade 150ms var(--ease); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } @keyframes fade { from { opacity: 0; } } .modal { width: 448px; max-width: calc(100vw - 32px); max-height: 86vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 24px; animation: pop 160ms var(--spring); } .modal h2 { font-size: 16px; margin: 0 0 16px; letter-spacing: -0.02em; } .modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; } .modal.wide { width: 620px; } /* Folder tree picker */ .picker-tree { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; } /* Share modal specifics */ .share-url { display: flex; gap: 8px; margin: 12px 0; } .share-url input { font-family: var(--font-mono); font-size: 12px; } .share-qr { display: grid; place-items: center; padding: 10px; } .share-qr img { border-radius: var(--radius-sm); background: #fff; padding: 8px; } /* ── Upload panel ───────────────────────────────────────────── */ .upload-panel { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 360px; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; display: none; } .upload-panel.open { display: block; animation: toast-in 200ms var(--ease); } .upload-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-2); font-weight: 600; font-size: 13px; } .upload-head .agg { color: var(--muted); font-weight: 400; font-size: 12px; } .upload-head button { margin-left: auto; } .upload-list { max-height: 300px; overflow-y: auto; } .upload-panel.min .upload-list { display: none; } .upload-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12.5px; } .upload-item .fname { flex: 1; min-width: 0; } .upload-item .fname .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .upload-item .fname .s { color: var(--muted); font-size: 11px; } .upload-item .prog { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 4px; } .upload-item .prog i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 200ms linear; } .upload-item.done .prog i { background: var(--accent-2); } .upload-item.err .prog i { background: var(--danger); } .upload-item .act { display: flex; gap: 2px; } /* Drop overlay */ .drop-overlay { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: none; place-items: center; pointer-events: none; } .drop-overlay.active { display: grid; } .drop-overlay .inner { border: 2px dashed var(--accent); border-radius: 16px; padding: 60px 90px; color: var(--accent); font-size: 17px; font-weight: 600; background: var(--accent-soft); display: flex; flex-direction: column; align-items: center; gap: 14px; } .drop-overlay svg { width: 44px; height: 44px; } /* ── Preview overlay ────────────────────────────────────────── */ .preview-overlay { position: fixed; inset: 0; z-index: 85; background: var(--scrim-heavy); display: flex; flex-direction: column; animation: fade 150ms var(--ease); } .preview-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: #fff; } .preview-head .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .preview-head .size { color: rgba(255,255,255,0.6); font-size: 12px; white-space: nowrap; } .preview-head .p-actions { margin-left: auto; display: flex; gap: 4px; } .preview-head .btn { background: rgba(255,255,255,0.08); border-color: transparent; color: #fff; } .preview-head .btn:hover { background: rgba(255,255,255,0.16); } .preview-body { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; padding: 0 64px 24px; } .preview-stage { max-width: 100%; max-height: 100%; display: grid; place-items: center; } .preview-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; } .preview-nav:hover { background: rgba(255,255,255,0.22); } .preview-nav.prev { left: 12px; } .preview-nav.next { right: 12px; } .preview-nav svg { width: 20px; height: 20px; } .preview-count { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; color: rgba(255,255,255,0.55); font-size: 12px; } .pv-img-wrap { overflow: hidden; width: 100%; height: 100%; display: grid; place-items: center; cursor: grab; } .pv-img-wrap img { max-width: 100%; max-height: 100%; transition: transform 120ms var(--ease); transform-origin: center; } .pv-toolbar { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; z-index: 4; display: flex; gap: 4px; background: rgba(10,13,20,0.85); border: 1px solid rgba(255,255,255,0.1); border-radius: 99px; padding: 5px 8px; } .pv-toolbar .btn { background: none; border: none; color: #fff; padding: 6px 9px; } .pv-toolbar .btn:hover { background: rgba(255,255,255,0.12); } .pv-toolbar .zoom-label { color: rgba(255,255,255,0.65); font-size: 12px; align-self: center; min-width: 42px; text-align: center; } video.pv-video { max-width: 100%; max-height: 100%; border-radius: var(--radius); background: #000; outline: none; } .pv-panel { width: min(920px, 100%); height: 100%; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; } .pv-panel .pv-scroll { flex: 1; overflow: auto; padding: 22px 28px; } .pv-panel .pv-toolstrip { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); flex-wrap: wrap; } /* Code preview */ .pv-code pre { margin: 0; font: 12.5px/1.6 var(--font-mono); } .pv-code .shiki { background: transparent !important; padding: 0; } .pv-code.linenums code { counter-reset: ln; } .pv-code.linenums .line::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; margin-right: 1.2em; text-align: right; color: var(--muted); opacity: 0.55; user-select: none; } .pv-code.wrap pre { white-space: pre-wrap; word-break: break-all; } /* Markdown preview */ .md-body { font-size: 14.5px; line-height: 1.65; max-width: 780px; margin: 0 auto; } .md-body h1, .md-body h2 { border-bottom: 1px solid var(--border); padding-bottom: 6px; } .md-body h1 a, .md-body h2 a, .md-body h3 a, .md-body h4 a { color: inherit; } .md-body pre.code-fence, .md-body pre.mermaid-block { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; overflow-x: auto; font: 12.5px/1.6 var(--font-mono); } .md-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; } .md-body pre code { background: none; padding: 0; } .md-body table { border-collapse: collapse; width: 100%; margin: 14px 0; } .md-body th, .md-body td { border: 1px solid var(--border); padding: 7px 11px; text-align: left; } .md-body th { background: var(--surface-2); } .md-body img { max-width: 100%; } .md-body blockquote { border-left: 3px solid var(--accent); margin: 14px 0; padding: 2px 16px; color: var(--muted); } .md-body .task-list-item { list-style: none; } .md-body .task-list-item input { margin-right: 7px; } /* CSV table */ .csv-wrap { overflow: auto; height: 100%; } .csv-table { border-collapse: collapse; font: 12px var(--font-mono); min-width: 100%; } .csv-table th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; border: 1px solid var(--border); padding: 6px 10px; text-align: left; cursor: pointer; white-space: nowrap; } .csv-table th:hover { color: var(--accent); } .csv-table td { border: 1px solid var(--border); padding: 4px 10px; white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; } .csv-table tr:nth-child(even) td { background: var(--surface); } /* JSON tree */ .json-tree { font: 12.5px/1.7 var(--font-mono); } .json-tree details { padding-left: 18px; } .json-tree summary { cursor: pointer; list-style: none; margin-left: -18px; } .json-tree summary::before { content: '▸'; display: inline-block; width: 14px; color: var(--muted); } .json-tree details[open] > summary::before { content: '▾'; } .json-key { color: var(--accent); } .json-str { color: var(--accent-2); } .json-num { color: var(--warning); } .json-bool { color: #b48cff; } .json-null { color: var(--muted); } /* Archive browser */ .arc-list { font-size: 13px; } .arc-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; } .arc-row:hover { background: var(--surface-2); } .arc-row svg { width: 15px; height: 15px; color: var(--muted); flex: none; } .arc-row .sz { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--font-mono); } /* Audio player */ .pv-audio { width: min(680px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; } .pv-audio .art { width: 88px; height: 88px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; } .pv-audio .art img { width: 100%; height: 100%; object-fit: cover; } .pv-audio .art svg { width: 34px; height: 34px; color: var(--muted); } .pv-audio .top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; } .pv-audio .tt { min-width: 0; } .pv-audio .tt .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-audio .tt .a { color: var(--muted); font-size: 12.5px; } #waveform { margin: 6px 0 12px; } .audio-controls { display: flex; align-items: center; gap: 8px; } .audio-controls .time { font: 12px var(--font-mono); color: var(--muted); margin-left: auto; } /* PDF viewer */ .pv-pdf { width: 100%; height: 100%; display: flex; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; } .pdf-rail { width: 130px; overflow-y: auto; border-right: 1px solid var(--border); padding: 10px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); flex: none; } .pdf-rail canvas { width: 100%; border-radius: 4px; cursor: pointer; border: 2px solid transparent; display: block; } .pdf-rail .cur canvas { border-color: var(--accent); } .pdf-rail .pn { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 3px; } .pdf-main { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; } .pdf-page { position: relative; box-shadow: 0 3px 16px rgba(0,0,0,0.4); } .pdf-page canvas { display: block; } .pdf-page .textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; opacity: 1; forced-color-adjust: none; transform-origin: 0 0; z-index: 1; } .pdf-page .textLayer span, .pdf-page .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0 0; } .pdf-page .textLayer ::selection { background: rgba(79, 140, 255, 0.4); } .pdf-page .textLayer .hl { background: rgba(255, 209, 102, 0.5); color: transparent; border-radius: 2px; } /* Font specimen */ .font-specimen h2 { font-size: 34px; margin: 4px 0 20px; font-weight: 400; } .font-specimen .alpha { font-size: 21px; word-break: break-all; color: var(--muted); margin-bottom: 20px; } .font-specimen .pangram { border-top: 1px solid var(--border); padding-top: 16px; } /* Fallback card */ .fallback-card { text-align: center; padding: 46px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-width: 440px; } .fallback-card svg { width: 64px; height: 64px; margin-bottom: 14px; } .fallback-card h3 { margin: 0 0 4px; word-break: break-all; } .fallback-card .fm { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; } .fallback-card .sha { font: 10.5px var(--font-mono); color: var(--muted); word-break: break-all; opacity: 0.7; margin-bottom: 18px; } /* Processing state */ .pv-processing { text-align: center; color: #fff; } .pv-processing .bar { width: 220px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); overflow: hidden; margin: 16px auto 0; } .pv-processing .bar i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 2px; animation: indeterminate 1.2s infinite var(--ease); } @keyframes indeterminate { from { margin-left: -40%; } to { margin-left: 100%; } } /* ── Share pages (public) ───────────────────────────────────── */ .share-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; } .share-topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 22px 14px; border-bottom: 1px solid var(--border); background: var(--surface-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; } .share-main { flex: 1; display: flex; flex-direction: column; padding: 26px 22px; max-width: 1080px; margin: 0 auto; width: 100%; } .share-main.wide { max-width: 1280px; } .share-file-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; } .share-file-head .fico { width: 44px; height: 44px; flex: none; } .share-file-head h1 { font-size: 17px; margin: 0; word-break: break-word; } .share-file-head .fmeta { color: var(--muted); font-size: 12.5px; } .share-file-head .btn { margin-left: auto; } .share-stage { flex: 1; min-height: 380px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; padding: 14px; } .share-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; border-top: 1px solid var(--border); } .share-footer a { color: var(--muted); } /* Share folder browser reuses grid/list */ .share-crumbs { margin-bottom: 14px; } /* Expired / error pages */ .center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; } .center-page .big { font-size: 56px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; } .center-page h1 { font-size: 19px; margin: 0 0 8px; } .center-page p { color: var(--muted); margin: 0 0 22px; } /* Shortcuts cheat sheet */ .shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; font-size: 13px; } .shortcuts-grid > div { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 3px 0; } /* Settings page */ .settings { max-width: 620px; } .settings .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; } .settings .panel h3 { margin: 0 0 14px; font-size: 14.5px; } .session-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; } .session-row:first-of-type { border-top: none; } .session-row .who { flex: 1; min-width: 0; } .session-row .ua { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Activity page */ .activity-list { max-width: 760px; } .act-row { display: flex; gap: 13px; padding: 10px 6px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: flex-start; } .act-row svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 2px; } .act-row .when { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; } /* Shares manager */ .shares-table { width: 100%; border-collapse: collapse; font-size: 13px; } .shares-table th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; border-bottom: 1px solid var(--border); } .shares-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; } .shares-table .url-cell { display: flex; gap: 6px; align-items: center; font: 11.5px var(--font-mono); } /* ── Text editor overlay ────────────────────────────────────── */ .editor-overlay { background: var(--bg); } .editor-body { flex: 1; min-height: 0; display: flex; padding: 0 18px 18px; } .editor-text { flex: 1; resize: none; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font: 13px/1.65 var(--font-mono); padding: 18px 22px; tab-size: 4; } .editor-text:focus { border-color: var(--accent); outline: none; } .editor-overlay .preview-head { color: var(--text); } .editor-overlay .preview-head .size { color: var(--muted); } .editor-overlay .preview-head .btn { background: var(--surface-2); border-color: var(--border); color: var(--text); } .editor-overlay .preview-head .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .editor-dirty { color: var(--warning); font-size: 12px; white-space: nowrap; } .editor-status { color: var(--muted); font-size: 12px; align-self: center; white-space: nowrap; } /* ── Storage insights page ──────────────────────────────────── */ .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; } .stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; } .stat-tile .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; } .stat-tile .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; } .stat-tile .s { font-size: 11.5px; color: var(--muted); margin-top: 5px; } .storage-page { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } .storage-page .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; } .storage-page .panel h3 { margin: 0 0 12px; font-size: 14.5px; } .big-file { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--radius-sm); cursor: pointer; } .big-file:hover { background: var(--surface-2); } .big-file svg { width: 16px; height: 16px; flex: none; } .big-file .bf-main { flex: 1; min-width: 0; } .big-file .bf-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .big-file .bf-path { color: var(--muted); font-size: 11px; } .big-file .bf-bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 3px; } .big-file .bf-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; } .big-file .bf-size { font: 11.5px var(--font-mono); color: var(--muted); white-space: nowrap; } .dup-group { border-top: 1px solid var(--border); padding: 9px 0; } .dup-group:first-of-type { border-top: none; } .dup-head { font-size: 12.5px; margin-bottom: 5px; } .dup-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 0; } .dup-row .crumb { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 11.5px; } /* ── Public file-request page ───────────────────────────────── */ .request-main { max-width: 620px; justify-content: center; } .request-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; } .request-card h1 { font-size: 19px; margin: 0 0 6px; } .request-label { color: var(--accent); font-size: 14px; margin: 0 0 6px; } .request-sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; } .request-drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 42px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); cursor: pointer; text-align: center; transition: border-color 150ms var(--ease), background 150ms var(--ease); } .request-drop:hover, .request-drop.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .request-drop svg { width: 38px; height: 38px; } .request-card .upload-list { margin-top: 14px; max-height: 320px; } .request-card .upload-item { border-top: 1px solid var(--border); padding: 9px 4px; } /* ── Bottom navigation (mobile app bar) ─────────────────────── */ .bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; display: none; align-items: center; justify-content: space-around; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--border); } .bottomnav button { background: none; border: none; cursor: pointer; color: var(--muted); width: 52px; height: 42px; border-radius: 13px; display: grid; place-items: center; transition: color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--spring); } .bottomnav button svg { width: 21px; height: 21px; } .bottomnav button:active { transform: scale(0.92); } .bottomnav button.active { color: var(--accent-ink); background: var(--accent-soft); } .bottomnav .bn-fab { width: 54px; height: 54px; border-radius: 18px; margin-top: -22px; background: var(--grad-brand); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); } .bottomnav .bn-fab svg { width: 24px; height: 24px; } .bottomnav .bn-fab.active { color: #fff; } /* ── Responsive ─────────────────────────────────────────────── */ .sidebar-toggle { display: none; } @media (max-width: 900px) { .body, .body.info-open { grid-template-columns: 1fr; } .sidebar { position: fixed; z-index: 65; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); padding-top: calc(14px + env(safe-area-inset-top)); background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; translate: -102% 0; transition: translate 240ms var(--spring); box-shadow: var(--shadow-pop); } .sidebar.open { translate: 0 0; } .sidebar-scrim.active { display: block; animation: fade 180ms var(--ease); } .sidebar-toggle { display: inline-flex; } /* Info panel becomes a bottom sheet */ .info-panel { position: fixed; z-index: 66; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72vh; border-left: none; border-top: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); padding-bottom: calc(18px + env(safe-area-inset-bottom)); } .body.info-open .info-panel { display: block; animation: sheet-up 240ms var(--spring); } .info-panel::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 12px; } .searchbox { max-width: none; } .brand span { display: none; } .topbar { gap: 8px; } /* The FAB owns "new/upload" on phones */ #uploadBtn { display: none; } .bottomnav { display: flex; } .content { padding: 12px 12px calc(120px + env(safe-area-inset-bottom)); } .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } .upload-panel { width: calc(100vw - 20px); right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); } /* Bigger touch targets everywhere */ .nav-item { padding: 11px 12px; font-size: 14.5px; } .tree-toggle { height: 34px; } .tree-label { padding: 8px 6px 8px 0; font-size: 14px; } .btn { padding: 9px 16px; } .btn.icon { padding: 9px; } .grid { grid-template-columns: repeat(auto-fill, minmax(min(var(--card, 150px), 44vw), 1fr)); gap: 10px; } .card .meta { padding: 10px 12px; } .toolbar { padding: 8px 12px; min-height: 48px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .toolbar::-webkit-scrollbar { display: none; } .toolbar input[type='range'] { display: none; } /* card-size slider is pointless on touch */ .crumbs { flex: none; max-width: 60vw; overflow-x: auto; scrollbar-width: none; } .list-header, .row { grid-template-columns: 26px 1fr 78px; } .list-header > :nth-child(n+4), .row > :nth-child(n+4) { display: none; } .row { padding: 9px 10px; } .preview-body { padding: 0 6px calc(10px + env(safe-area-inset-bottom)); } .preview-nav { width: 40px; height: 40px; } .preview-nav.prev { left: 4px; } .preview-nav.next { right: 4px; } .preview-head { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; } .pdf-rail { display: none; } .pv-toolbar { bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 96vw; overflow-x: auto; } .editor-body { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); } .editor-text { padding: 14px; font-size: 14px; } .storage-page { grid-template-columns: 1fr; } .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; } .shares-table { display: block; overflow-x: auto; } .modal { max-height: 80vh; } .request-card { padding: 22px 18px; } } @media print { .topbar, .sidebar, .toolbar, .preview-head, .pv-toolbar, .preview-nav { display: none !important; } }