:root { color-scheme: light dark; --accent: #005a9e; --err: #c00000; --muted: #666; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; padding: 0 0 env(safe-area-inset-bottom); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--accent); color: #fff; }
.bar h1 { font-size: 18px; margin: 0; }
.bar .muted { color: #cfe3f5; font-size: 12px; font-weight: normal; }
.bar-buttons { display: flex; gap: 8px; }
main { padding: 14px; max-width: 640px; margin: 0 auto; }
main[hidden], [hidden] { display: none !important; }
h2 { font-size: 18px; margin: 4px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
#update-note { margin: 4px 14px 0; font-size: 13px; }
.error { color: var(--err); min-height: 1.5em; }
.notice { background: #fff4d6; color: #5a4200; padding: 8px 10px; border-radius: 6px; }
button, .file-button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid #888; background: #f2f2f2; color: #111; cursor: pointer; min-height: 44px; }
.bar button { min-height: 36px; padding: 4px 12px; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); width: 100%; margin-top: 12px; }
button.link { border: none; background: none; color: var(--accent); padding: 8px 0; text-align: left; }
.file-button { display: inline-block; background: var(--accent); color: #fff; border-color: var(--accent); }
.file-button input { display: none; }
label { display: block; margin-top: 12px; font-weight: bold; }
input[type="password"], input[type="search"], input[type="file"] { display: block; width: 100%; font: inherit; padding: 10px; margin-top: 4px; border: 1px solid #888; border-radius: 8px; min-height: 44px; }
.meta { display: grid; grid-template-columns: 7em 1fr; gap: 4px 10px; margin: 8px 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.notes { white-space: pre-wrap; }
.secret { font-family: Consolas, monospace; padding: 6px 10px; border: 1px solid #888; border-radius: 6px; display: inline-block; user-select: none; -webkit-user-select: none; touch-action: none; min-width: 5em; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li button { display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid #ccc; border-radius: 0; background: none; padding: 12px 4px; }
.entries .t { font-weight: bold; }
.entries .u { color: var(--muted); font-size: 13px; }
@media (prefers-color-scheme: dark) {
  .notice { background: #4a3d12; color: #ffe9a8; }
  button, .file-button { background: #2b2b2b; color: #eee; }
  button.primary, .file-button { background: var(--accent); color: #fff; }
  .entries li button { background: none; color: inherit; border-bottom-color: #444; }
  button.link { background: none; }
}
.out { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f4f4; color: #111; padding: 10px; border-radius: 6px; font: 12px/1.5 Consolas, monospace; }
