:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #6b7384;
  --primary: #4ec7b9;
  --primary-strong: #2ca399;
  --border: #e3e7ee;
  --success: #7dd45b;
  --info: #5aa6ff;
  --warn: #f9b640;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, #e8f8f6, #f4f7ff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero__chips {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-time {
  color: var(--muted);
  margin: 0 0 4px;
}

.meta-desc {
  color: var(--muted);
  margin: 4px 0 0;
}

.section {
  margin: 16px 0 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.04);
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.head__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 2px;
}

h1, h2, h3 {
  margin: 0;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.poster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poster__preview {
  position: relative;
  height: 240px;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #2f3f65, #1c2436);
  overflow: hidden;
}

.poster__meta {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poster__date {
  margin: 0 0 6px;
  opacity: 0.82;
}

.poster__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.poster__quote {
  margin: 0;
  line-height: 1.5;
  max-width: 220px;
}

.poster__qr {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  font-size: 12px;
  align-self: flex-end;
}

.poster__controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mood-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mood {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f2f4f8;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
}

.mood.active {
  border-color: var(--primary);
  background: #e6fbf7;
  color: var(--primary-strong);
}

.input-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

input, textarea, select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  background: #fff;
}

.icon-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 10px 0 6px;
}

.stat {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--border);
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  font-size: 18px;
}

.chip-group, .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.pill.small {
  padding: 6px 10px;
  font-size: 12px;
}

.pill.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pill.ghost {
  background: #f2f5fa;
}

.chip, .tag {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
}

.chip.success { background: #e6f8ec; color: #2fa06c; }
.chip.info { background: #e7f0ff; color: #2e74ff; }
.chip.warn { background: #fff4e6; color: #d28c14; }
.chip.neutral { background: #f0f3f8; color: #60708f; }

.search {
  max-width: 260px;
}

.list {
  display: grid;
  gap: 10px;
}

.list .item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.item__meta p {
  margin: 0;
  color: var(--muted);
}

.item__meta h4 {
  margin: 2px 0 4px;
}

.item__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.item button {
  align-self: center;
  height: fit-content;
}

.profile__info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.profile__stats p {
  margin: 0;
  color: var(--muted);
}

.profile__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bottom-nav {
  position: sticky;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  margin-top: 16px;
  box-shadow: 0 8px 16px rgba(31, 42, 68, 0.06);
}

.bottom-nav button {
  border: none;
  background: none;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.bottom-nav button.primary {
  background: var(--primary);
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 43, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.show { display: flex; }

.modal__content {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  width: min(480px, 100%);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__body {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.actions-end {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .section { padding: 14px; }
  .list .item { grid-template-columns: 1fr; }
}

