/* ==========================================================================
   Anchor HQ -- Inbox Section  (Stardew Mailbox Theme)
   ==========================================================================
   Cozy post-office aesthetic: parchment envelopes, wax seals for priority,
   pixel-badge channel icons, quill-style draft box.
   All original class names preserved for JS compatibility.
   ========================================================================== */


/* --------------------------------------------------------------------------
   KEYFRAMES
   -------------------------------------------------------------------------- */

/* Gentle breathing glow for unread envelopes */
@keyframes inbox-unread-glow {
  0%, 100% { box-shadow: inset 3px 0 0 var(--gold, #ffd700),
                          0 1px 8px rgba(255, 215, 0, 0.08); }
  50%      { box-shadow: inset 3px 0 0 var(--gold, #ffd700),
                          0 1px 12px rgba(255, 215, 0, 0.18); }
}

/* Wax-seal shimmer on priority items */
@keyframes inbox-seal-shimmer {
  0%   { background-position: -40px 0; }
  100% { background-position: 40px 0; }
}

/* Slide-down for expanded message body */
@keyframes inbox-expand-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle stamp press for new draft box */
@keyframes inbox-stamp {
  0%   { transform: scale(1.08); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}


/* --------------------------------------------------------------------------
   FILTERS BAR
   -------------------------------------------------------------------------- */

.inbox-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

/* Keyboard nav hint (j/k) -- sits at far right of filter bar */
.inbox-filters::after {
  content: "j/k to navigate";
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.42rem;
  color: var(--muted, #6d5f52);
  opacity: 0.45;
  letter-spacing: 0.06em;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   INBOX LIST
   -------------------------------------------------------------------------- */

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* --------------------------------------------------------------------------
   INBOX CARD  (the envelope)
   -------------------------------------------------------------------------- */

.inbox-card {
  background: var(--panel, #1e1914);
  border: 2px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 6px);
  padding: 16px;
  transition: all 200ms ease;
  cursor: pointer;
  position: relative;
}

.inbox-card:hover {
  border-color: var(--border-accent, rgba(218,165,32,0.35));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(218, 165, 32, 0.06);
}

/* Focus outline for keyboard navigation */
.inbox-card:focus-visible {
  outline: 2px solid var(--gold, #ffd700);
  outline-offset: 2px;
}

/* --- Unread state: parchment tint + gold left border + glow --- */
.inbox-card.unread {
  border-left: 3px solid var(--gold, #ffd700);
  background:
    /* subtle parchment grain texture */
    radial-gradient(ellipse at 15% 40%, rgba(139, 111, 71, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 25%, rgba(139, 111, 71, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(139, 111, 71, 0.035) 0%, transparent 50%),
    /* warm base tint */
    linear-gradient(135deg,
      rgba(245, 230, 200, 0.04) 0%,
      rgba(218, 165, 32, 0.03) 100%),
    var(--panel, #1e1914);
  animation: inbox-unread-glow 3.5s ease-in-out infinite;
}

/* --- Priority card: wax seal accent --- */
.inbox-card.priority {
  border-left: 3px solid var(--red, #d44a28);
}

/* Wax seal indicator for priority -- pseudo "wax blob" top-right */
.inbox-card.priority::before {
  content: "!";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: radial-gradient(ellipse at 35% 35%, #e05555, #a02020);
  color: #fff;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #7a1818;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              1px 2px 0 rgba(0,0,0,0.25);
  z-index: 1;
}


/* --------------------------------------------------------------------------
   CARD HEADER ROW  (icon + name + time)
   -------------------------------------------------------------------------- */

.inbox-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}


/* --------------------------------------------------------------------------
   CHANNEL ICON  (pixel badge style)
   -------------------------------------------------------------------------- */

.inbox-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--border, rgba(255,255,255,0.08));
  image-rendering: pixelated;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

/* Slack -- earthy green pixel badge */
.inbox-channel-icon.slack {
  background: rgba(74, 154, 122, 0.14);
  border-color: rgba(74, 154, 122, 0.35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    1px 1px 0 rgba(0, 0, 0, 0.12);
}

/* Email -- calm blue pixel badge */
.inbox-channel-icon.email {
  background: rgba(91, 141, 217, 0.14);
  border-color: rgba(91, 141, 217, 0.35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    1px 1px 0 rgba(0, 0, 0, 0.12);
}

/* Skool -- warm orange pixel badge */
.inbox-channel-icon.skool {
  background: rgba(232, 126, 4, 0.14);
  border-color: rgba(232, 126, 4, 0.35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    1px 1px 0 rgba(0, 0, 0, 0.12);
}

/* Hover highlight on card lifts badge color */
.inbox-card:hover .inbox-channel-icon.slack  { border-color: #4a9a7a; box-shadow: 0 0 6px rgba(74, 154, 122, 0.25); }
.inbox-card:hover .inbox-channel-icon.email  { border-color: #5b8dd9; box-shadow: 0 0 6px rgba(91, 141, 217, 0.25); }
.inbox-card:hover .inbox-channel-icon.skool  { border-color: #e87e04; box-shadow: 0 0 6px rgba(232, 126, 4, 0.25); }


/* --------------------------------------------------------------------------
   SENDER AVATAR  (pixel-art initials)
   --------------------------------------------------------------------------
   Optionally rendered by JS next to .inbox-from.
   Pure CSS pixel-style circle with colored background.
   -------------------------------------------------------------------------- */

.inbox-avatar {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  flex-shrink: 0;
  image-rendering: pixelated;
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.2),
    1px 1px 0 rgba(0, 0, 0, 0.15);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Color classes based on channel (applied by JS) */
.inbox-avatar.slack  { background: linear-gradient(135deg, #4a9a7a, #367a5e); }
.inbox-avatar.email  { background: linear-gradient(135deg, #5b8dd9, #4070b8); }
.inbox-avatar.skool  { background: linear-gradient(135deg, #e87e04, #c06800); }

/* Fallback / generic colors for hash-based assignment */
.inbox-avatar[data-color="red"]    { background: linear-gradient(135deg, #e05555, #a03030); }
.inbox-avatar[data-color="green"]  { background: linear-gradient(135deg, #5cb85c, #3a8a3a); }
.inbox-avatar[data-color="blue"]   { background: linear-gradient(135deg, #5b8dd9, #3a72b0); }
.inbox-avatar[data-color="purple"] { background: linear-gradient(135deg, #9b59b6, #6d3a80); }
.inbox-avatar[data-color="orange"] { background: linear-gradient(135deg, #e87e04, #b05e00); }
.inbox-avatar[data-color="teal"]   { background: linear-gradient(135deg, #1abc9c, #0e8c74); }
.inbox-avatar[data-color="gold"]   { background: linear-gradient(135deg, #f0c040, #c8a000); }


/* --------------------------------------------------------------------------
   FROM / TIME / SUBJECT / PREVIEW
   -------------------------------------------------------------------------- */

.inbox-from {
  font-weight: 700;
  font-size: .88rem;
  flex: 1;
}

.inbox-time {
  font-size: .72rem;
  color: var(--muted, #6d5f52);
  flex-shrink: 0;
  font-family: var(--font-body, Inter, sans-serif);
}

.inbox-subject {
  font-weight: 600;
  font-size: .82rem;
  margin-bottom: 4px;
  line-height: 1.35;
}

.inbox-preview {
  font-size: .78rem;
  color: var(--muted, #6d5f52);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   FOOTER  (status badges + action buttons)
   -------------------------------------------------------------------------- */

.inbox-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   STATUS BADGES  (pixel pill style)
   -------------------------------------------------------------------------- */

.inbox-status {
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  image-rendering: pixelated;
}

.inbox-status.unread {
  background: var(--gold-soft, rgba(218, 165, 32, 0.15));
  color: var(--gold-bright, #f0c040);
  border: 1px solid var(--border-accent, rgba(218,165,32,0.35));
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.08);
}

.inbox-status.read {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted, #6d5f52);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.inbox-status.replied {
  background: rgba(74, 154, 122, 0.12);
  color: var(--green, #5ba84c);
  border: 1px solid rgba(74, 154, 122, 0.3);
}

.inbox-status.draft {
  background: rgba(240, 192, 64, 0.12);
  color: var(--yellow, #e8a33a);
  border: 1px solid rgba(240, 192, 64, 0.3);
}


/* --------------------------------------------------------------------------
   ACTION BUTTONS  (wooden-style micro buttons)
   -------------------------------------------------------------------------- */

.inbox-action-btn {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: transparent;
  color: var(--muted, #6d5f52);
  cursor: pointer;
  font-family: inherit;
  transition: all 180ms ease;
  position: relative;
}

.inbox-action-btn:hover {
  color: var(--text, #f0e6d3);
  border-color: var(--wood-light, #a8895e);
  background: rgba(218, 165, 32, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.inbox-action-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.inbox-action-btn.primary {
  border-color: var(--border-accent, rgba(218,165,32,0.35));
  color: var(--gold-bright, #f0c040);
}

.inbox-action-btn.primary:hover {
  background: var(--gold-soft, rgba(218, 165, 32, 0.15));
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1),
              0 0 6px rgba(255, 215, 0, 0.1);
}


/* --------------------------------------------------------------------------
   EXPANDED MESSAGE VIEW  (opened envelope)
   -------------------------------------------------------------------------- */

.inbox-expanded {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text, #f0e6d3);
  position: relative;
}

/* Opened state with slide animation */
.inbox-card.open .inbox-expanded {
  display: block;
  animation: inbox-expand-in 250ms ease;
}

/* Dashed border top to mimic torn-open envelope edge */
.inbox-card.open .inbox-expanded {
  border-top-style: dashed;
  border-top-color: var(--border-accent, rgba(218,165,32,0.25));
}

/* Decorative "opened" indicator */
.inbox-card.open .inbox-expanded::before {
  content: "-- opened --";
  display: block;
  text-align: center;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.38rem;
  color: var(--muted, #6d5f52);
  opacity: 0.4;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}


/* --------------------------------------------------------------------------
   DRAFT BOX  (quill & parchment style)
   -------------------------------------------------------------------------- */

.inbox-draft-box {
  margin-top: 14px;
  padding: 16px;
  background:
    /* Parchment grain */
    radial-gradient(ellipse at 20% 50%, rgba(139, 111, 71, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(139, 111, 71, 0.04) 0%, transparent 50%),
    /* Warm parchment tint */
    linear-gradient(135deg,
      rgba(245, 230, 200, 0.06) 0%,
      rgba(218, 165, 32, 0.04) 100%);
  border: 1px solid var(--border-accent, rgba(218,165,32,0.35));
  border-radius: var(--radius-sm, 4px);
  position: relative;
  animation: inbox-stamp 300ms ease;
  /* Left "quill stripe" accent */
  border-left: 3px solid var(--gold, #ffd700);
}

.inbox-draft-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold, #ffd700);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Quill icon before label via pseudo-element */
.inbox-draft-label::before {
  content: "\270E";  /* pencil/quill unicode */
  font-size: 0.85rem;
  font-family: inherit;
  display: inline-block;
}

.inbox-draft-text {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text, #f0e6d3);
  /* Ruled-paper lines effect */
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 22px,
    rgba(139, 111, 71, 0.06) 22px,
    rgba(139, 111, 71, 0.06) 23px
  );
  background-position: 0 4px;
  padding: 2px 0;
}


/* --------------------------------------------------------------------------
   KEYBOARD NAVIGATION HELPERS
   --------------------------------------------------------------------------
   Subtle visual cues for keyboard users.
   -------------------------------------------------------------------------- */

/* Active/selected card via keyboard */
.inbox-card.keyboard-active {
  border-color: var(--gold, #ffd700);
  box-shadow: 0 0 0 1px var(--gold, #ffd700),
              0 4px 16px rgba(0, 0, 0, 0.3);
}

/* "Enter to open" hint on focused card */
.inbox-card.keyboard-active::after {
  content: "Enter";
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.35rem;
  color: var(--muted, #6d5f52);
  opacity: 0.4;
  background: var(--panel-soft, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.inbox-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted, #6d5f52);
}

.inbox-empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  image-rendering: pixelated;
}

.inbox-empty-text {
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  line-height: 1.8;
}


/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .inbox-card {
    padding: 14px;
  }

  .inbox-filters {
    gap: 6px;
  }
}


/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .inbox-card {
    padding: 12px;
  }

  .inbox-card-header {
    gap: 8px;
  }

  .inbox-channel-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .inbox-from {
    font-size: .82rem;
  }

  .inbox-subject {
    font-size: .78rem;
  }

  .inbox-preview {
    -webkit-line-clamp: 1;
  }

  .inbox-draft-box {
    padding: 12px;
  }

  /* Filters: horizontal scroll on mobile */
  .inbox-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
  }

  .inbox-filters::-webkit-scrollbar {
    display: none;
  }

  /* Hide keyboard hints on touch devices */
  .inbox-filters::after,
  .inbox-card.keyboard-active::after {
    display: none;
  }

  /* Filter buttons: ensure touch targets */
  .filter-btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 6px 14px;
  }

  /* Footer actions wrap */
  .inbox-footer {
    gap: 6px;
  }

  .inbox-action-btn {
    padding: 6px 12px;
    min-height: 36px;
    font-size: 0.68rem;
  }

  /* Full-width cards */
  .inbox-list {
    gap: 6px;
  }

  /* Expanded view compact */
  .inbox-expanded {
    font-size: 0.78rem;
    margin-top: 10px;
    padding-top: 10px;
  }

  .inbox-draft-label {
    font-size: 0.42rem;
  }

  .inbox-draft-text {
    font-size: 0.78rem;
  }

  /* Avatar compact */
  .inbox-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.35rem;
  }

  .inbox-time {
    font-size: 0.65rem;
  }

  .inbox-status {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .inbox-bulk-bar.visible {
    left: 0;
    padding: 10px 16px;
  }

  .inbox-select-all {
    font-size: 0.55rem;
  }

  .inbox-pagination {
    gap: 4px;
  }

  .inbox-page-btn {
    min-width: 28px;
    min-height: 28px;
    font-size: 0.55rem;
  }
}


/* --------------------------------------------------------------------------
   SELECT ALL CHECKBOX (in filter bar)
   -------------------------------------------------------------------------- */

.inbox-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.65rem;
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  color: var(--muted, #6d5f52);
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 2px;
  transition: all 180ms ease;
  white-space: nowrap;
}

.inbox-select-all:hover {
  border-color: var(--border-accent, rgba(218,165,32,0.35));
  color: var(--text, #f0e6d3);
}

.inbox-select-all input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--gold, #ffd700);
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   CARD CHECKBOX
   -------------------------------------------------------------------------- */

.inbox-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  margin-right: 4px;
}

.inbox-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold, #ffd700);
  cursor: pointer;
}

/* Selected card highlight */
.inbox-card.selected {
  border-color: var(--gold, #ffd700);
  background:
    linear-gradient(135deg,
      rgba(218, 165, 32, 0.06) 0%,
      rgba(218, 165, 32, 0.02) 100%),
    var(--panel, #1e1914);
  box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.2);
}


/* --------------------------------------------------------------------------
   EXPANDED ACTIONS ROW (inside expanded body)
   -------------------------------------------------------------------------- */

.inbox-expanded-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
}


/* --------------------------------------------------------------------------
   PAGINATION CONTROLS
   -------------------------------------------------------------------------- */

.inbox-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 0;
}

.inbox-page-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 2px;
  background: transparent;
  color: var(--muted, #6d5f52);
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 180ms ease;
}

.inbox-page-btn:hover:not(:disabled) {
  border-color: var(--border-accent, rgba(218,165,32,0.35));
  color: var(--text, #f0e6d3);
  background: rgba(218, 165, 32, 0.06);
}

.inbox-page-btn.active {
  background: var(--gold-soft, rgba(218, 165, 32, 0.15));
  border-color: var(--gold, #ffd700);
  color: var(--gold-bright, #f0c040);
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.1);
}

.inbox-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* --------------------------------------------------------------------------
   FLOATING BULK ACTION BAR
   -------------------------------------------------------------------------- */

.inbox-bulk-bar {
  position: fixed;
  bottom: -60px;
  left: var(--sidebar-width, 240px);
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background:
    linear-gradient(180deg,
      rgba(62, 47, 30, 0.97) 0%,
      rgba(45, 34, 22, 0.99) 100%);
  border-top: 2px solid var(--gold, #ffd700);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  transition: bottom 300ms ease;
}

.inbox-bulk-bar.visible {
  bottom: 0;
}

.bulk-count {
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.55rem;
  color: var(--gold-bright, #f0c040);
  letter-spacing: 0.06em;
}

.bulk-dismiss-btn {
  padding: 8px 16px;
  border: 2px solid var(--gold, #ffd700);
  border-radius: 2px;
  background: var(--gold-soft, rgba(218, 165, 32, 0.15));
  color: var(--gold-bright, #f0c040);
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.55rem;
  cursor: pointer;
  transition: all 180ms ease;
  letter-spacing: 0.04em;
}

.bulk-dismiss-btn:hover {
  background: var(--gold, #ffd700);
  color: #1a1408;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.bulk-clear-btn {
  padding: 6px 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 2px;
  background: transparent;
  color: var(--muted, #6d5f52);
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.5rem;
  cursor: pointer;
  transition: all 180ms ease;
}

.bulk-clear-btn:hover {
  color: var(--text, #f0e6d3);
  border-color: var(--wood-light, #a8895e);
}


/* --------------------------------------------------------------------------
   UNDO TOAST
   -------------------------------------------------------------------------- */

.inbox-undo-toast {
  position: fixed;
  bottom: -60px;
  right: 24px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background:
    linear-gradient(135deg,
      rgba(245, 230, 200, 0.12) 0%,
      rgba(218, 165, 32, 0.08) 100%),
    rgba(45, 34, 22, 0.97);
  border: 2px solid var(--gold, #ffd700);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
              0 0 8px rgba(255, 215, 0, 0.1);
  font-size: 0.78rem;
  color: var(--text, #f0e6d3);
  transition: bottom 300ms ease;
}

.inbox-undo-toast.visible {
  bottom: 80px;
}

/* When bulk bar is NOT visible, undo toast sits lower */
.inbox-bulk-bar:not(.visible) ~ .inbox-undo-toast.visible {
  bottom: 24px;
}

.inbox-undo-btn {
  padding: 5px 12px;
  border: 1px solid var(--gold, #ffd700);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-bright, #f0c040);
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  font-size: 0.5rem;
  cursor: pointer;
  transition: all 180ms ease;
  letter-spacing: 0.04em;
}

.inbox-undo-btn:hover {
  background: var(--gold, #ffd700);
  color: #1a1408;
}
