.device-identity {
  min-width: 0;
  flex: 1;
}

.device-meta {
  margin-bottom: 0;
}

.activity-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #34475a;
  border-radius: 15px;
  background: linear-gradient(135deg, #15212d, #101923);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #7181951c;
  color: #9aabba;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.activity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.activity-copy strong {
  color: #e8eff6;
  font-size: 15px;
}

.activity-copy span {
  overflow: hidden;
  color: #91a3b4;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-seen {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid #ffffff12;
  color: #7f92a4;
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.activity-seen b {
  color: #bdcbd7;
  font-size: 11px;
  font-weight: 700;
}

.status-playing {
  border-color: #2d7653;
  background: linear-gradient(135deg, #153528, #11251f);
}
.status-playing .activity-icon { background: #53d28c22; color: #69dfa0; }
.status-playing .activity-copy strong { color: #8ce5b2; }

.status-paused {
  border-color: #6c572d;
  background: linear-gradient(135deg, #2b2519, #1d1d19);
}
.status-paused .activity-icon { background: #f3bd4c20; color: #f3bd4c; }
.status-paused .activity-copy strong { color: #f1cc79; }

.status-suspended {
  border-color: #72549b;
  background: linear-gradient(135deg, #2a2238, #1b1c2b);
}
.status-suspended .activity-icon { background: #a678e820; color: #bd91f3; }
.status-suspended .activity-copy strong { color: #d0aff8; }

.status-idle {
  border-color: #385b7f;
  background: linear-gradient(135deg, #16283a, #111f2c);
}
.status-idle .activity-icon { background: #5c9dff20; color: #7db2ff; }
.status-idle .activity-copy strong { color: #afd2f4; }

.status-exhausted,
.status-locked {
  border-color: #713740;
  background: linear-gradient(135deg, #321c22, #23191e);
}
.status-exhausted .activity-icon,
.status-locked .activity-icon { background: #f2606d20; color: #ff7c87; }
.status-exhausted .activity-copy strong,
.status-locked .activity-copy strong { color: #ff9ca5; }

.status-profile_disconnected,
.status-profile_signed_out {
  border-color: #38658f;
  background: linear-gradient(135deg, #162b3f, #12212d);
}
.status-profile_disconnected .activity-icon,
.status-profile_signed_out .activity-icon {
  background: #5c9dff1f;
  color: #78b4ff;
  font-size: 10px;
  box-shadow: inset 0 0 0 1px #5c9dff28;
}
.status-profile_disconnected .activity-copy strong,
.status-profile_signed_out .activity-copy strong { color: #a9cff8; }

.status-profile_unknown {
  border-color: #6b572f;
  background: linear-gradient(135deg, #2a2419, #191e24);
}
.status-profile_unknown .activity-icon {
  background: #f3bd4c1f;
  color: #f3bd4c;
  font-size: 10px;
  box-shadow: inset 0 0 0 1px #f3bd4c22;
}
.status-profile_unknown .activity-copy strong { color: #f2d28c; }

.status-offline {
  border-color: #3c4652;
  background: linear-gradient(135deg, #181f27, #11171e);
  opacity: .9;
}

@media (max-width: 600px) {
  .activity-status {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .activity-copy span {
    white-space: normal;
  }

  .activity-seen {
    grid-column: 2;
    grid-template-columns: auto 1fr;
    padding: 7px 0 0;
    border-top: 1px solid #ffffff10;
    border-left: 0;
    text-align: left;
    white-space: normal;
  }
}
