html, body { margin: 0; }
body { padding: 0; }

:root{
  --tb-h: 40px;
  --tb-bg: #ffffff;
  --tb-border: #e6e6e6;
  --tb-text: #3a3a3a;
  --tb-muted: #888;
  --tb-pill-bg: #e9f7ec;
  --tb-pill-fill: #89d7a1;
  --tb-shadow: 0 2px 10px rgba(0,0,0,.06);
  --tb-logo-h: 24px;
}

/* 600+ */
@media (min-width: 600px){
  :root{
    --tb-h: 44px;
    --tb-logo-h: 26px;
  }
}

/* 900+ */
@media (min-width: 900px){
  :root{
    --tb-h: 48px;
    --tb-logo-h: 28px;
  }
}

/* 1200+ */
@media (min-width: 1200px){
  :root{
    --tb-h: 52px;
    --tb-logo-h: 30px;
  }
}

/* 1600+ */
@media (min-width: 1600px){
  :root{
    --tb-h: 56px;
    --tb-logo-h: 32px;
  }
}

.topbar {
  position: relative; top: 0; z-index: 10000;
  height: var(--tb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .8rem;
  background: linear-gradient(to bottom, #fafafa, #eaeaea); /* subtle gradient */
  border-bottom: 1px solid var(--tb-border);
  box-shadow: var(--tb-shadow);
  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  z-index: 7000;
}

/* 900px and up (match layout gutters) */
@media (min-width: 900px){
  .topbar { padding: 0 2.5rem; }
}

/* 1600px and up */
@media (min-width: 1600px){
  .topbar { padding: 0 2.5rem; }
}

.tb-left{ display:flex; align-items:center; gap:.5rem; min-width:0; }
.tb-logo{ display:flex; align-items:center; gap:.4rem; text-decoration:none; color:var(--tb-text); }
.tb-logo img{ height: var(--tb-logo-h); width:auto; display:block; }
.tb-logo-text{ font-weight:700; letter-spacing:.2px; }

.tb-right{ display:flex; align-items:center; gap:.5rem; flex-wrap: nowrap; }

.tb-progress{
  position:relative;
  height:28px;
  min-width:80px;
  background:var(--tb-pill-bg);
  border-radius:6px;
  overflow:hidden;          /* ADD THIS */
  padding:0 8px;
  display:flex;
  align-items:center;
  gap:.35rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.tb-progress-fill{
  position:absolute; left:0; top:0; bottom:0;
  background:var(--tb-pill-fill);
  border-radius:6px; opacity:.55; transition:width .3s ease;
}
.tb-progress-text{ position:relative; font-weight:600; color:#1a4731; }

/* Make progress pill clearly interactive */
.tb-progress { cursor: pointer; }
.tb-progress:focus { outline: 2px solid #8ecf8e; outline-offset: 2px; }

.tb-icon-btn{
  height:28px; min-width:28px; border:1px solid var(--tb-border);
  background:#f5f5f5; border-radius:6px; display:inline-grid; place-items:center; padding:0 6px; cursor:pointer;
  position: relative;
}
.tb-icon-btn:hover{ background:#f7f7f7; }

.tb-bell{ font-size:16px; line-height:1; }
.tb-badge{
  position:absolute; transform:translate(10px, -10px);
  background:#ff4d4f; color:#fff; font-size:11px; padding:0 5px; border-radius:10px; line-height:18px; min-width:18px; text-align:center;
}

.tb-badge.gradient {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
}

.tb-notify, .tb-user{ position:relative; display:flex; }

/* Avatar button (single source of truth) */
.tb-avatar-btn{
  height: 28px;
  width: 28px;
  border: 1px solid var(--tb-border);
  background: #f5f5f5;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

/* Avatar image fills the button */
.tb-avatar-btn img{
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.tb-menu{
  right:0; width:320px; max-height:60vh; overflow:auto;
  background:#fff; border:1px solid var(--tb-border); border-radius:10px; box-shadow:var(--tb-shadow);
  padding:.5rem; display:none;
}
.tb-menu.open{ display:block; }

.tb-menu-head, .tb-menu-foot{
  display:flex; align-items:center; justify-content:space-between; padding:.25rem .25rem .5rem;
}
.tb-clear{ background:transparent; border:none; color:var(--tb-muted); cursor:pointer; font-size:12px; }
.tb-clear:hover{ color:var(--tb-text); }

.tb-list{ list-style:none; padding:0; margin:0; }
.tb-item{
  display:grid; grid-template-columns: 35px 1fr auto; gap:.5rem; align-items:center;
  padding:.4rem; border-radius:8px;
}
.tb-item.unread{ background:#ffffff; }
.tb-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  border-color: #b0c8f9;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tb-item .ico{ font-size:35px; }
.tb-item .who{ font-weight:600; }
.tb-item .meta{ color:var(--tb-muted); font-size:12px; text-decoration: none; }
.tb-item .thumb{ width:35px; height:35px; border-radius:6px; object-fit:cover; }

/* Login button (matches Follow button style) */
.login-btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid #8ecf8e;
  cursor: pointer;
  line-height: 1.4;
  background-image: linear-gradient(90deg,#bfedcf 0%,#dcf7e6 100%);
  color: #006838;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.login-btn:hover {
  background: linear-gradient(#c8f0c8, #aee0ae);
}

.tb-user { position: relative; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }



/* topbar.css */
.tb-levelups { position: relative; display: flex; }      /* anchors the menu */
.tb-item .ico.img { width: 18px; height: 18px; border-radius: 4px; overflow: hidden; }
.tb-item .ico.img img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Gold only when .is-gold is present on the pill */
.tb-progress.is-gold{
  border: 1px solid #fbd193;
  background: #fce389;
  background-image: linear-gradient(-30deg,#fff1a6,#ffe682 20%,#fef4ad 35%,#f6e097 55%,#f9eb9d);
  color: #7b3b07;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 2px rgba(0,0,0,.08);
}
.tb-progress.is-gold .tb-progress-fill{
  opacity: .9;
  border-radius: 6px;
  background-image: linear-gradient(90deg,#f6db8c,#edc254 35%,#e6b345 65%,#d6a74b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.tb-progress.is-gold .tb-progress-text{
  font-weight: 700;
  color: #7b3b07;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Badge now sits on the progress pill */
.tb-progress { position: relative; }
#tbActivityBadge {
  position: absolute;
  top: -8px;
  right: -8px;
  transform: none;
  background: #ff4e50;
}
#tbActivityBadge.gradient {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
}

/* Tiny caret button to the right inside the pill */
.tb-caret {
  position: relative;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 2px 4px;
  color: #1a4731;
}
.tb-caret:focus { outline: 2px solid #8ecf8e; outline-offset: 2px; }

/* badge when mounted on the progress pill */
.tb-progress .tb-badge{
  position: absolute;
  top: -9px;
  right: -9px;
  transform: none;        /* override bell's translate */
  z-index: 2;
}

/* Local frame size for stickers inside the Activity dropdown */
#tbActivityMenu {
  --frame: 35px;
}

.tb-menu .tb-list .tb-item{
  grid-template-columns: var(--frame) 1fr auto;  /* widen icon column */
}

.tb-menu .tb-list .tb-item .ico,
.tb-menu .tb-list .tb-item .ico.img {
  width: var(--frame);
  height: var(--frame);
  border-radius: 6px;       /* nice square-ish corner */
}



/* optional: make the row a touch taller to breathe around 35px icons */
.tb-menu .tb-list .tb-item { padding: .45rem; }

/* Upload link styling (matches login button theme) */
.upload-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0px 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: linear-gradient(#f8f8f8, #e0e0e0);
  color: #444;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
/* Hover/active states to sell the bevel */
.upload-link:hover{
  background: linear-gradient(#ffffff, #ececec);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 1px 0 rgba(0,0,0,.05);
}
.upload-link:active{
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.05);
}

/* Keyboard focus */
.upload-link:focus{
  outline: 2px solid #9bd0ff;
  outline-offset: 2px;
}
@media (max-width: 600px){
  .upload-link { font-size: 0.8rem; padding: 3px 8px; }
}


.upload-icon {
  width: 10px;   /* smaller width */
  height: 10px;  /* smaller height */
  vertical-align: middle;
  margin-right: 6px; /* adds space to the right of the icon */
  display: block;
}


/* Show when open */
.tb-menu.open {
  display: block;
}

/* Optional hover/focus visual */
.tb-menu:hover {
  backdrop-filter: blur(6px);
  background-color: #f9f9f9;
}


/* Optional subtle gold highlight if dropdown is tied to level-ups */
.tb-menu.gold {
  background: linear-gradient(180deg, #fff8dc 0%, #ffe89a 100%);
  border-color: #caa642;
}

/* Optional hover glow refinement */
#tbActivityMenu:hover,
#tbUserMenu:hover {
  box-shadow:
    0 -4px 8px -4px rgba(0, 0, 0, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.1);
}


#tbActivityMenu,
#tbUserMenu {
  position: fixed;
  right: 0;
  top: var(--tb-h);        /* Align directly beneath the topbar */
  z-index: 5999;           /* Below the topbar’s shadow layer */
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  background-color: #f9f9f9;
}


/* Subtle gap between notifications */
.tb-menu .tb-list .tb-item + .tb-item {
  margin-top: 6px;         /* adjust between 4–8px for feel */
  padding-top: 4px;        /* optional – keeps internal rhythm consistent */
}

.tb-item {
  border: none; /* or transparent, to prevent layout shift */
}

.tb-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

#tbActivityMenu .who { display: none; }

/* Neutralize link color in Activity dropdown */
#tbActivityMenu .tb-item a {
  color: #555; /* or var(--tb-text) for consistency */
  text-decoration: none;
  transition: color 0.2s ease;
}

#tbActivityMenu .tb-item a:hover {
  color: #000; /* slightly darker on hover for clarity */
  text-decoration: underline;
}

/* Soft horizontal divider under Activity heading */
.tb-divider {
  border: none;
  border-top: 1px solid #e6e6e6;
  height: 0;
  margin: 6px 0 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7); /* subtle lift */
}

/* Change "Activity" header font color */
#tbActivityMenu .tb-menu-head strong {
  color: #444; /* pick any color here — example uses your blue accent */
  font-weight: 700; /* keeps it bold and legible */
}

/* Base text style inside notifications */
#tbActivityMenu .tb-item {
  font-size: 14px;             /* ← change this to adjust size */
  color: #3a3a3a;                 /* ← main font color for notification text */
}

/* Links inside notifications (post titles) */
#tbActivityMenu .tb-item a {
  color: #3a3a3a;                 /* neutral link color */
  text-decoration: none;
  font-weight: 600;            /* makes links slightly bolder */
}

#tbActivityMenu .tb-item a:hover {
  color: #2d5bd1;              /* same blue accent from upload.html */
  text-decoration: underline;
}

/* Timestamp (meta info, e.g., "2h") */
#tbActivityMenu .tb-item .meta {
  font-size: 12px;             /* smaller size for time */
  color: #444;                 /* subtle muted tone */
}

/* Make "View all" match "Mark all read" (left-aligned version) */
#tbActivityMenu .tb-menu-foot {
  display: flex;
  justify-content: flex-start;   /* left align */
  padding-top: .25rem;
}

#tbActivityMenu .tb-menu-foot a {
  font-size: 12px;
  color: var(--tb-muted);        /* same tone as "Mark all read" */
  transition: color 0.2s ease;
}

#tbActivityMenu .tb-menu-foot a:hover {
  color: #2d5bd1;    
  text-decoration: underline;
}


/* Dropdowns: sit below the bar + only a top line */
#tbActivityMenu,
#tbUserMenu {
  z-index: 6999;                 /* below .topbar (7000) */
  border: none;                  /* remove the all-around border from .tb-menu */
  border-top: 1px solid var(--tb-border);  /* match the bar's grey line */
}


/* Dropdowns sit UNDER the bar and only have a top line */
#tbActivityMenu,
#tbUserMenu {
  z-index: 9999;                        /* below .topbar (10000) */
  border: none;                         /* remove full border */ /* matching grey seam */
  box-shadow: 0 4px 16px rgba(0,0,0,.08);  /* keep bottom depth */
  border-top: 2px solid var(--tb-border);
}

.tb-icon-btn {
  height:28px; min-width:28px;
  border:1px solid var(--tb-border);
  background:#f5f5f5;
  border-radius:6px;
  display:inline-grid; place-items:center;
  padding:0 6px;
  cursor:pointer;
  position:relative;
}
.tb-bell { font-size:16px; line-height:1; }
.tb-badge {
  position:absolute; transform:translate(10px,-10px);
  background:#ff4d4f; color:#fff;
  font-size:11px; padding:0 5px;
  border-radius:10px; line-height:18px;
  min-width:18px; text-align:center;
}

.upload-link .upload-icon {
  display: none !important;
}

/* Account dropdown: make it match the Activity card style */
.tb-user-menu {
  /* reuse .tb-menu card look, just allow a slightly narrower width */
  width: 220px;
}

/* Make each account option a soft rounded row */
.tb-user-menu .tb-user-item {
  padding: .35rem .5rem;
  border-radius: 8px;
  margin: 0;
}

/* Links/buttons inside the user menu */
.tb-user-menu .tb-user-item a,
.tb-user-menu .tb-user-item .linklike {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--tb-text);
  text-decoration: none;
}

/* Hover state similar to notification rows */
.tb-user-menu .tb-user-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  border-radius: 8px;
}

/* Don’t underline on hover; just rely on the row highlight */
.tb-user-menu .tb-user-item a:hover,
.tb-user-menu .tb-user-item .linklike:hover {
  text-decoration: none;
}

/* Account dropdown matches Activity card but a bit narrower */
.tb-user-menu{
  width: 240px;
}

/* Base style for rows inside the account dropdown */
.tb-user-menu .tb-user-item{
  padding: .35rem .5rem;
  border-radius: 8px;
  margin: 0;
}

/* Profile row: avatar + name inline */
.tb-user-menu .tb-user-profile a{
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-size: 14px;
  color: var(--tb-text);
}

/* Square avatar, same look as topbar */
.tb-user-avatar{
  flex: 0 0 auto;
  width: 28px;     /* match your topbar size */
  height: 28px;
  border-radius: 4px; /* same rounded corners as topbar */
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08); /* subtle border like topbar */
  background: #fff;
}

.tb-user-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Name text */
.tb-user-name{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Hover state similar to notification rows */
.tb-user-menu .tb-user-item:hover{
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

/* Make the sign-out button look like a full-width row link */
.tb-user-menu .tb-user-item .linklike{
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--tb-text);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.tb-user-menu .tb-user-item .linklike:hover{
  text-decoration: none;
}

/* Make ALL rows in the user dropdown the same height */
.tb-user-menu .tb-user-item {
  padding: .65rem .6rem;   /* bigger, cleaner, closer to Activity rows */
  border-radius: 8px;
}

/* Make the button fill the row like the link does */
.tb-user-menu .tb-user-item .linklike {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  padding: 0;              /* don't double-padding the inner element */
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tb-text);
}

/* Ensure hover is the same on both rows */
.tb-user-menu .tb-user-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.tb-membership-cta {
  font-size: 12px;
  color: #2d5bd1;
  text-decoration: none;
}
.tb-membership-cta:hover {
  text-decoration: underline;
}

/* Make membership row align like the avatar row */
.tb-user-membership-active-row {
  display: flex;
  align-items: center;   /* centers text vertically like username */
  gap: .5rem;
  padding: .45rem .5rem;
}

/* Stack the membership text lines */
.tb-user-membership-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* First line styling (matches username) */
.membership-line-1 {
  font-size: 14px;
  color: var(--tb-text);
  font-weight: 400; /* or 500 / 600 if you want */
}

/* CTA link style */
.membership-line-1 a {
  color: #2d5bd1;
  text-decoration: none;
}
.membership-line-1 a:hover {
  text-decoration: underline;
}

/* Make membership row align like the avatar row */
.tb-user-membership-active-row {
  display: flex;
  align-items: center;   /* centers text vertically like username */
  gap: .5rem;
  padding: .45rem .5rem;
}

/* Stack the membership text lines */
.tb-user-membership-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* First line styling (matches username) */
.membership-line-1 {
  font-size: 14px;
  color: var(--tb-text);
  font-weight: 400; /* or 500 / 600 if you want */
}

/* CTA link style */
.membership-line-1 a {
  color: #2d5bd1;
  text-decoration: none;
}
.membership-line-1 a:hover {
  text-decoration: underline;
}

.tb-user-signout-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--tb-text);
  padding: 0; /* IMPORTANT – don’t let the button add padding */
  cursor: pointer;
}



.tb-signout-row button.linklike {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  font-size: 14px !important;
  color: var(--tb-text);
}


.tb-membership-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--tb-text);
  cursor: pointer;
  text-align: left;
}

.tb-membership-details {
  margin-top: 2px;
  font-size: 13px;
  color: var(--tb-muted);
  padding-left: 0;
}

/* "Active until" detail line under Membership active */
.tb-user-membership-block .membership-line-2 {
  font-size: 12px;
  color: var(--tb-muted);
  margin-top: 2px;
}

/* Make the first line feel clickable */
.tb-membership-toggle {
  cursor: pointer;
}

#tbUserMenu .tb-menu-head strong {
  color: #444 !important;
}

/* Always keep dropdown menus above sticker sidebar + content */
#tbActivityMenu,
#tbUserMenu {
  position: fixed;              /* or whatever you currently use */
  z-index: 20000 !important;    /* higher than any sidebar/content */
}

/* ─────────────────────────────
   Mobile-only "+" thread button
   ───────────────────────────── */

.upload-desktop {
  display: inline-flex;
}

.upload-mobile {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  justify-content: center;
  align-items: center;
}

/* Mobile swap */
@media (max-width: 600px) {
  .upload-desktop {
    display: none !important;
  }

  .upload-mobile {
    display: none;

    width: 28px;
    height: 28px;
    padding: 0;

    display: inline-grid;
    place-items: center;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    border-radius: 6px; /* matches avatar + pill */
  }
 }

 @media (max-width: 600px) {
  .upload-mobile {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
  }

  .upload-thread-icon {
    width: 14px;
    height: 14px;
    display: block;
    filter: contrast(1.05);
  }
}

.tb-progress {
  background: var(--progress-bg);
}

.tb-progress-fill {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.tb-empty{
  padding: 14px 12px;
  text-align: center;
  color: var(--tb-muted);
  white-space: nowrap;
  list-style: none;
}

/* Empty Activity message (not part of sticker row layout) */
#tbActivityMenu .tb-empty-msg{
  padding: 12px 12px 8px;
  color: var(--tb-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* Make invite sentence same size as "Open thread" */
#tbActivityMenu .tb-item strong + span,
#tbActivityMenu .tb-item strong + text,
#tbActivityMenu .tb-item {
  font-size: 12px;
}

.tb-progress-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tb-activity-title {
  color: #3a3a3a; /* match whatever your notif text is */
  font-weight: 700; /* still slightly emphasized */
  text-decoration: none;
}

.tb-activity-title:hover {
  text-decoration: underline;
}

/* Epic message: ONLY text + spacing (topbar dropdown) */
#tbActivityMenu .tb-item[data-type="epic_message"]{
  padding-top: .65rem;
  padding-bottom: .65rem;
}

/* Message preview: lighter + separated */
#tbActivityMenu .tb-item[data-type="epic_message"] .tb-epic-preview{
  display: block;
  margin-top: 6px;
  margin-left: 2px;
  line-height: 1.35;
  opacity: .8;
  font-weight: 400;
}

/* Activity dropdown: allow the middle text column to actually shrink/wrap */
#tbActivityMenu .tb-item > :nth-child(2) {
  min-width: 0;
}

/* Let message text break instead of overflowing */
#tbActivityMenu .tb-item,
#tbActivityMenu .tb-item a,
#tbActivityMenu .tb-item .tb-epic-preview {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep the timestamp on one line */
#tbActivityMenu .tb-item > .meta:last-child {
  white-space: nowrap;
}

#tbActivityMenu .tb-item[data-type="epic_message"] .tb-epic-preview {
  white-space: normal;
  max-width: 100%;
}

.tb-menu-head-link {
  text-decoration: none;
  color: inherit;
}

.tb-menu-head-link:hover {
  text-decoration: none;
}