body.dark {
  --bg: #0a0e17; --surface: #121826; --surface-2: #1a2233;
  --line: #232c40; --line-strong: #2e3950;
  --ink-900: #eef2fb; --ink-700: #c4cce0; --ink-500: #8a93ad; --ink-400: #6b748f;
}
body { min-height: 100vh; background: var(--bg); }
.feedShell { width: min(980px, 100%); margin: 0 auto; padding: 18px 16px 60px; }
.feedTop { display: flex; align-items: center; gap: 14px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.feedTop h1 { font-size: 24px; }
.loginBox { margin-top: 22px; padding: 20px; }
.loginBox h2 { margin-top: 6px; font-size: 20px; }
.loginRow { margin-top: 14px; }
.feedFilters { margin: 18px 0 12px; padding: 14px; display: grid; grid-template-columns: 110px 135px 120px 1fr 135px 1.4fr auto auto; gap: 10px; align-items: end; }
#btnGoAbsensi {
  background: linear-gradient(135deg, rgba(34,197,94,.92), rgba(21,128,61,.86));
  border-color: rgba(134,239,172,.38);
  color: #fff;
}
.feedMeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px; }
.chatFeed { display: flex; flex-direction: column; gap: 10px; }
.dayBreak { align-self: center; padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-500); font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.msg { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.msgTime { font-family: var(--font-mono); color: var(--ink-500); font-size: 13px; text-align: right; padding-top: 14px; }
.bubble { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow-1); }
.bubble.in { border-left: 4px solid var(--ok-600); }
.bubble.out { border-left: 4px solid var(--bad-600); }
.msgHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msgWho { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.msgStore { margin-top: 4px; color: var(--ink-500); font-weight: 600; }
.msgLine { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; align-items: center; }
.pillBtn { cursor: pointer; border: 0; font-family: inherit; }
.photoModalCard { width: min(860px, 100%); }
.absensiModalCard { width: min(520px, 100%); }
.photoModalBody { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.photoOpenLink { color: var(--brand-300); font-weight: 800; text-decoration: none; align-self: flex-start; }
.attendancePhotoPreview { display: block; width: 100%; max-height: 72dvh; object-fit: contain; border-radius: var(--r); background: #000; }
.emptyState { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 28px; text-align: center; color: var(--ink-500); background: var(--surface); }
@media (max-width: 760px) {
  .feedFilters { grid-template-columns: 1fr 1fr; }
  .feedFilters #feedSearch { grid-column: 1 / -1; }
  .feedFilters #btnFeedApply, .feedFilters #btnGoAbsensi { grid-column: 1 / -1; width: 100%; }
  .msg { grid-template-columns: 1fr; }
  .msgTime { text-align: left; padding: 0 4px; }
  .photoModalCard { width: 100%; max-height: calc(100dvh - 14px); padding: 14px; }
  .attendancePhotoPreview { max-height: calc(100dvh - 170px); }
}
