:root { --bg: #fbfaf8; --fg: #1d1d1f; --muted: #6b6b70; --line: #e3e1dc; --accent: #2f5fd0; --err: #b3261e; --sel: #eef2fc; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161618; --fg: #ececee; --muted: #9a9aa1; --line: #2c2c30; --accent: #7aa2ff; --err: #ff8a80; --sel: #1f2633; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
header h1 { font-size: 17px; margin: 0; }
#who { color: var(--muted); }
#lock { margin-left: auto; }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
section { max-width: 640px; }
#browse { max-width: none; }
label { display: block; margin: 10px 0; }
label input, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; color: inherit;
  background: transparent; border: 1px solid var(--line); border-radius: 6px; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { display: inline; width: auto; margin: 0; }
button, a.button { display: inline-block; margin: 6px 6px 6px 0; padding: 7px 14px; font: inherit; color: #fff;
  background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
button.quiet, nav .tab { color: var(--fg); background: transparent; border: 1px solid var(--line); }
nav { display: flex; gap: 4px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
nav .tab.on { background: var(--sel); border-color: var(--accent); }
#counts { margin-left: auto; color: var(--muted); }
#status { min-height: 1.4em; color: var(--muted); }
#status.error, .error { color: var(--err); }
.secret { font: 600 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 12px;
  border: 1px dashed var(--line); border-radius: 6px; word-break: break-all; }
.note, .meta { color: var(--muted); font-size: 13px; }
input[type=search] { width: 100%; padding: 8px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.list { list-style: none; margin: 0; padding: 0; max-height: 75vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.list li { padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; }
.list li.on { background: var(--sel); }
.list li.empty { cursor: default; color: var(--muted); }
.path { overflow-wrap: anywhere; }
.view { min-width: 0; }
.view h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.view img, .view video { max-width: 100%; max-height: 70vh; display: block; margin: 8px 0; border-radius: 4px; }
.view img.thumb { max-height: 160px; }
.view pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 60vh; overflow: auto; padding: 10px;
  border: 1px solid var(--line); border-radius: 6px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0; font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--accent); }
#unlock-passkeys button { display: block; }
