:root { color-scheme: light; --accent:#E53935; --bg:#F3F7F6; --ink:#1C2423; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
button { font: inherit; }
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px;
  min-height: 52px; padding: 0 8px 0 52px; background: rgba(243,247,246,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 1100px) {
  .bar { padding-left: 12px; }
}
.bar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.bar-btn {
  height: 36px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--accent); font-weight: 700; font-size: 13px;
}
.bar-btn:disabled { opacity: .4; cursor: default; }
.page { width: min(640px, 100%); margin: 0 auto; padding: 8px 12px 28px; }
.guest, .empty, .error, .status {
  margin: 40px auto; max-width: 420px; padding: 24px; border-radius: 16px;
  background: #fff; text-align: center; box-shadow: 0 1px 0 rgba(28,36,35,.04);
}
.guest h2, .empty h2 { margin: 12px 0 8px; font-size: 18px; }
.guest p, .empty p, .error p, .status { margin: 0; color: rgba(28,36,35,.62); }
.guest button, .error button {
  margin-top: 16px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: #0B6E6E; color: #fff; font-weight: 700; cursor: pointer;
}
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px;
  border: 0; border-radius: 14px; background: #fff; text-align: left; cursor: pointer;
  color: inherit; box-shadow: 0 1px 0 rgba(28,36,35,.04);
  animation: notif-enter .28s ease both;
}
.row:hover { background: #fafcfb; }
.row.unread { background: color-mix(in srgb, var(--tint, var(--accent)) 7%, #fff); }
.row.unread .title { font-weight: 800; }
.avatar, .avatar img {
  width: 48px; height: 48px; border-radius: 999px; flex: none; object-fit: cover;
  background: color-mix(in srgb, var(--tint, #2F80ED) 14%, #fff);
  color: var(--tint, #2F80ED);
}
.avatar { display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.avatar svg { width: 22px; height: 22px; }
.main { flex: 1; min-width: 0; }
.title { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.35; }
.body {
  margin: 4px 0 0; color: rgba(28,36,35,.62); font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.meta time { color: rgba(28,36,35,.45); font-size: 12px; }
.dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--tint, var(--accent)); flex: none;
}
.more {
  display: block; width: 100%; margin-top: 8px; height: 44px; border: 0; border-radius: 12px;
  background: #fff; color: rgba(28,36,35,.7); font-weight: 700; cursor: pointer;
}
.more[hidden] { display: none; }
.skel { height: 72px; border-radius: 14px; background: linear-gradient(90deg,#eef3f2,#f7fafa,#eef3f2); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes notif-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.detail-sheet {
  display: none; position: fixed; inset: 0; z-index: 40;
}
.detail-sheet:not([hidden]) { display: block; }
.detail-backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(16,24,23,.35); cursor: pointer;
}
.detail-panel {
  position: absolute; left: 50%; bottom: 0; width: min(480px, calc(100% - 16px));
  max-height: min(70vh, 480px); overflow: auto; transform: translateX(-50%);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0; background: #fff;
  box-shadow: 0 -8px 28px rgba(16,24,23,.12);
}
.detail-handle {
  display: block; width: 36px; height: 4px; margin: 4px auto 12px; border-radius: 999px;
  background: rgba(28,36,35,.16);
}
.detail-panel h2 { margin: 0 0 8px; font-size: 16px; }
.detail-panel p { margin: 0; color: rgba(28,36,35,.7); white-space: pre-wrap; word-break: break-word; }
