/* Private File Share --------------------------------------------------- */
.ps-wrap { padding-block: 0 clamp(40px, 6vw, 80px); }
.ps-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); }
.ps-card h2 { margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: -0.02em; }
.ps-card p { margin: 0; color: var(--text-2); }
.ps-login { display: flex; flex-direction: column; gap: 1.1rem; max-width: 440px; margin-inline: auto; }
.ps-logout { margin: 0; }
.ps-opt { color: var(--muted); font-weight: 400; }

.ps-tool .ws-pane { gap: 1rem; }
.ps-files { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.ps-files[hidden] { display: none; }
.ps-file { padding: 0.65rem 0.8rem; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); }
.ps-file.is-done { border-color: rgba(52, 211, 153, 0.55); }
.ps-file.is-error { border-color: rgba(244, 63, 94, 0.6); }
.ps-file-top { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.ps-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.ps-file-size { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.ps-file-x { width: 28px; height: 28px; font-size: 1.1rem; line-height: 1; }
.ps-bar { height: 5px; margin-top: 0.5rem; border-radius: 99px; background: rgba(var(--ink), 0.1); overflow: hidden; }
.ps-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 0.25s var(--ease); }
.ps-file-state { margin-top: 0.35rem; color: var(--text-2); font-size: 0.8rem; }
.ps-file.is-error .ps-file-state { color: var(--danger); }

.ps-options { display: flex; flex-direction: column; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.ps-options:disabled { opacity: 0.5; }

.ps-result { padding: 1rem; border: 1px solid rgba(52, 211, 153, 0.55); border-radius: 14px; background: rgba(52, 211, 153, 0.08); }
.ps-result[hidden] { display: none; }
.ps-result-title { margin: 0 0 0.6rem; color: var(--text); font-weight: 600; }
.ps-link-row { display: flex; gap: 0.5rem; }
.ps-link-row .input { flex: 1; min-width: 0; }

.ps-shares { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.ps-share { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.ps-share-title { color: var(--text); overflow-wrap: anywhere; }
.ps-share-note { color: var(--text-2); font-size: 0.88rem; }
.ps-share-meta { color: var(--muted); font-size: 0.8rem; }
.ps-share-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.ps-del:hover { border-color: rgba(244, 63, 94, 0.7); color: var(--danger); }
.ps-empty { margin: 0; color: var(--text-2); }
.ps-empty[hidden] { display: none; }

.ps-steps { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; padding-left: 1.3rem; color: var(--text-2); }
.ps-steps strong { color: var(--text); }

.ps-getlist { display: flex; flex-direction: column; gap: 0.7rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.ps-getitem { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.ps-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: rgba(var(--ink), 0.06); }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumb-file { color: var(--text); font: 700 0.8rem var(--font-display); letter-spacing: 0.05em; background: var(--grad); color: #fff; }
.ps-getmeta { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ps-getmeta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ps-getmeta small { color: var(--muted); }
@media (max-width: 520px) {
  .ps-getitem { flex-wrap: wrap; }
  .ps-getitem .btn { width: 100%; }
  .ps-link-row { flex-direction: column; }
}
