* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f4f6;
  color: #1a1a1a;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.wrap.narrow { max-width: 420px; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  text-align: center;
}
.cover { width: 100%; border-radius: 10px; margin-bottom: 16px; object-fit: cover; max-height: 320px; }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.teaser { color: #555; font-size: 15px; }
.content { text-align: left; margin-top: 16px; font-size: 15px; color: #333; }

.redirect-msg { margin-top: 20px; color: #ee4d2d; font-weight: 600; }

.btn {
  display: inline-block;
  margin-top: 12px;
  background: #ee4d2d;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-outline {
  background: #fff;
  color: #ee4d2d;
  border: 1px solid #ee4d2d;
}

.form { display: flex; flex-direction: column; gap: 6px; background: #fff; padding: 20px; border-radius: 12px; }
.form label { font-size: 13px; font-weight: 600; margin-top: 10px; color: #444; }
.form input, .form textarea {
  padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form .checkbox { display: flex; align-items: center; gap: 8px; flex-direction: row; }
.error { color: #d63333; font-size: 14px; }

.topbar { display: flex; align-items: center; justify-content: space-between; }

.table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; text-align: left; }
.actions { display: flex; gap: 12px; }
.link-btn { background: none; border: none; color: #d63333; cursor: pointer; font-size: 14px; padding: 0; }

.post-list { list-style: none; padding: 0; }
.post-list li { background: #fff; padding: 12px; border-radius: 8px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.clicks { color: #888; font-size: 13px; }
