:root {
  --bg: #f0f0f0;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #d8d8d8;
  --accent: #b3261e;
  --ok: #1e7b34;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-weight: 400; text-align: center; font-size: 2rem; margin: 16px 0 32px; }
h2 { font-weight: 600; font-size: 1.1rem; margin: 40px 0 12px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Feed */
.post { margin: 0 0 36px; }
.post img { margin: 0 auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); background: #ddd; }
.post figcaption { margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.post time { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.notice { text-align: center; color: var(--muted); }
.add-button {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--text); color: #fff; text-decoration: none; font-size: 32px; line-height: 54px; text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.add-button:hover, .add-button:focus-visible { background: #333; }

/* Upload page */
.panel { background: var(--card); border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
label.field { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=password], input[type=text], textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
button, .button {
  font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 11px 20px; cursor: pointer;
  background: var(--text); color: #fff; text-decoration: none; display: inline-block;
}
button:disabled { opacity: .4; cursor: default; }
button.secondary { background: #e4e4e4; color: var(--text); }
button.danger { background: #fbe9e7; color: var(--accent); }
button.small { padding: 6px 12px; font-size: .9rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.drop {
  display: block; border: 2px dashed #b9b9b9; border-radius: 10px; padding: 28px 16px; text-align: center; cursor: pointer;
  margin-bottom: 16px; background: #fafafa;
}
.drop.over { border-color: var(--text); background: #f0f0f0; }
.drop strong { display: block; font-size: 1.1rem; }
.drop span { color: var(--muted); font-size: .9rem; }
.drop img { max-height: 360px; width: auto; margin: 0 auto 10px; }
.status { margin-top: 12px; min-height: 1.4em; }
.status.error { color: var(--accent); }
.status.ok { color: var(--ok); }
.mine { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mine img { width: 96px; height: 72px; object-fit: cover; object-position: top; flex: none; border-radius: 4px; background: #ddd; }
.mine .text { flex: 1; min-width: 0; }
.mine .caption { white-space: pre-line; overflow-wrap: anywhere; }
.mine time { color: var(--muted); font-size: .85rem; }
.mine .row { margin-top: 6px; }
.links { text-align: center; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.links a { margin: 0 8px; }
[hidden] { display: none !important; }
