:root {
  color: #17202a;
  background: #f4f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 64px; }
.hero, .panel { background: #fff; border: 1px solid #dce4ef; border-radius: 14px; padding: 20px; box-shadow: 0 5px 20px rgb(34 58 91 / 5%); }
.hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.eyebrow { margin: 0 0 6px; color: #4f6e91; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
h1, h2 { margin: 0 0 8px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: 1.1rem; }
.muted, .hint { color: #63748a; }
.hint { font-size: .88rem; margin: 10px 0 0; }
.token-field { display: grid; gap: 6px; min-width: min(360px, 100%); color: #63748a; font-size: .82rem; }
.panel { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; border: 1px solid #c6d1df; border-radius: 8px; padding: 10px 11px; background: #fff; }
.row input { flex: 1 1 280px; }
button { border: 0; border-radius: 8px; padding: 10px 14px; background: #e7edf5; cursor: pointer; }
button.primary { background: #1769d1; color: #fff; }
button.secondary { background: #51657d; color: #fff; }
button.danger { background: #b83232; color: #fff; }
button:disabled { cursor: wait; opacity: .55; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cards, .posts { display: grid; gap: 12px; margin-top: 12px; }
.card, .post { border: 1px solid #e1e7ef; border-radius: 10px; padding: 14px; }
.card-head, .post-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3, .post h3 { margin: 0 0 5px; font-size: 1rem; }
.meta { color: #63748a; font-size: .85rem; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #edf2f8; font-size: .78rem; white-space: nowrap; }
.caption { min-height: 120px; margin-top: 10px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.message { margin-top: 16px; border-radius: 8px; padding: 10px 12px; background: #e8f6ed; color: #175b2d; }
.message.error { background: #fdeaea; color: #8a2020; }
@media (max-width: 720px) {
  .hero { display: block; }
  .token-field { margin-top: 14px; min-width: 0; }
}
